mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-12 06:00:25 +00:00
* refactor: eliminate 7 identical agents.ts boilerplate files Adds createCloudAgents() factory to shared/agent-setup.ts, reducing each cloud's agents.ts from 16-line copy-paste to a single call. Net reduction of 49 lines across 9 files. Fixes #2078 Agent: complexity-hunter Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * chore: apply biome formatting --------- Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
9 lines
280 B
TypeScript
9 lines
280 B
TypeScript
// gcp/agents.ts — GCP Compute Engine agent configs (thin wrapper over shared)
|
|
|
|
import { runServer, uploadFile } from "./gcp";
|
|
import { createCloudAgents } from "../shared/agent-setup";
|
|
|
|
export const { agents, resolveAgent } = createCloudAgents({
|
|
runServer,
|
|
uploadFile,
|
|
});
|