spawn/packages/cli/src/gcp/agents.ts
A 608e8b4bdd
refactor: eliminate 7 identical agents.ts boilerplate files (#2088)
* 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>
2026-03-01 22:06:57 -05:00

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,
});