MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / composeEnv

Function composeEnv

src/workspaces/adapters/opencode.ts:125–133  ·  view source on GitHub ↗
(ctx: SpawnContext)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected