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

Function run

packages/opencode/src/acp/agent.ts:88–93  ·  view source on GitHub ↗
(effect: Effect.Effect<A, ACPService.Error>)

Source from the content-addressed store, hash-verified

86}
87
88function run<A>(effect: Effect.Effect<A, ACPService.Error>) {
89 return Effect.runPromise(effect.pipe(Effect.mapError(ACPError.toRequestError))).catch((defect: unknown) => {
90 if (defect instanceof RequestError) throw defect
91 throw ACPError.toRequestError(ACPError.fromUnknownDefect(defect))
92 })
93}
94
95export * as ACP from "./agent"

Callers 13

initializeMethod · 0.70
authenticateMethod · 0.70
newSessionMethod · 0.70
loadSessionMethod · 0.70
listSessionsMethod · 0.70
resumeSessionMethod · 0.70
closeSessionMethod · 0.70
unstable_forkSessionMethod · 0.70
setSessionModeMethod · 0.70
promptMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected