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

Function runLocalEffect

packages/opencode/src/cli/cmd/agent.ts:69–70  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E>)

Source from the content-addressed store, hash-verified

67 const ctx = maybeCtx
68 const agentSvc = yield* Agent.Service
69 const runLocalEffect = <A, E>(effect: Effect.Effect<A, E>) =>
70 Effect.runPromise(effect.pipe(Effect.provideService(InstanceRef, ctx)))
71 yield* Effect.promise(async () => {
72 const cliPath = args.path
73 const cliDescription = args.description

Callers 1

agent.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected