MCPcopy Index your code
hub / github.com/anomalyco/opencode / run

Function run

packages/cli/src/framework/runtime.ts:58–60  ·  view source on GitHub ↗
(commands: Spec.Any, handlers: ReadonlyArray<LazyHandler>, options: { readonly version: string })

Source from the content-addressed store, hash-verified

56}
57
58export function run(commands: Spec.Any, handlers: ReadonlyArray<LazyHandler>, options: { readonly version: string }) {
59 return Command.run(provide(commands, handlers), options) as Effect.Effect<void, unknown, Command.Environment>
60}
61
62function provide(node: Spec.Any, handlers: ReadonlyArray<LazyHandler>): ProvidedCommand {
63 const handler = handlers.find((handler) => handler.spec === node.spec)

Callers

nothing calls this directly

Calls 2

provideFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected