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

Function publishPluginError

packages/opencode/src/plugin/index.ts:135–137  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

133 const bridge = yield* EffectBridge.make()
134
135 function publishPluginError(message: string) {
136 bridge.fork(events.publish(Session.Event.Error, { error: new NamedError.Unknown({ message }).toObject() }))
137 }
138
139 const { Server } = yield* Effect.promise(() => import("../server/server"))
140

Callers 1

errorFunction · 0.85

Calls 3

forkMethod · 0.45
publishMethod · 0.45
toObjectMethod · 0.45

Tested by

no test coverage detected