(ctx: SpawnContext)
| 123 | }, |
| 124 | |
| 125 | composeEnv(ctx: SpawnContext): Record<string, string> { |
| 126 | const env: Record<string, string> = { |
| 127 | OPENCODE_DISABLE_MODELS_FETCH: '1', |
| 128 | OPENCODE_DISABLE_AUTOUPDATE: '1', |
| 129 | OPENCODE_DISABLE_LSP_DOWNLOAD: '1', |
| 130 | }; |
| 131 | |
| 132 | return env; |
| 133 | }, |
| 134 | |
| 135 | async writeAiConfig(cwd: string, cred: WorkspaceAiCred): Promise<void> { |
| 136 | const hasProvider = !!(cred.baseUrl || cred.apiKey || cred.model); |
nothing calls this directly
no outgoing calls
no test coverage detected