MCPcopy
hub / github.com/anomalyco/opencode / runOpts

Function runOpts

packages/opencode/test/lib/cli-process.ts:263–275  ·  view source on GitHub ↗
(opts?: RunOpts)

Source from the content-addressed store, hash-verified

261 }
262
263 const runOpts = (opts?: RunOpts): SpawnOpts | undefined => {
264 if (!opts?.permission) return opts
265 return {
266 ...opts,
267 env: {
268 ...opts.env,
269 OPENCODE_CONFIG_CONTENT: JSON.stringify({
270 ...testProviderConfig(llm.url),
271 permission: opts.permission,
272 }),
273 },
274 }
275 }
276
277 const run = (message: string, opts?: RunOpts): Effect.Effect<RunResult> => {
278 return spawn(runArgs(message, opts), runOpts(opts))

Callers 2

runFunction · 0.85
withCliFixtureFunction · 0.85

Calls 1

testProviderConfigFunction · 0.90

Tested by

no test coverage detected