(home: OpenCodeHome)
| 110 | * never touch it. |
| 111 | */ |
| 112 | export 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 |
nothing calls this directly
no outgoing calls
no test coverage detected