MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / warmUp

Function warmUp

e2e/src/clients/opencode.ts:112–117  ·  view source on GitHub ↗
(home: OpenCodeHome)

Source from the content-addressed store, hash-verified

110 * never touch it.
111 */
112export const warmUp = (home: OpenCodeHome): void => {
113 const bare = join(home.projectDir, "..", "warmup");
114 mkdirSync(bare, { recursive: true });
115 writeFileSync(join(bare, "opencode.json"), "{}");
116 spawnSync("opencode", ["mcp", "list"], { cwd: bare, env: home.env, timeout: 60_000 });
117};
118
119/**
120 * Play the signed-in human for an OAuth flow OpenCode just started: wait for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected