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

Function cause

packages/opencode/src/cli/cmd/plug.ts:64–68  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

62}
63
64function cause(err: unknown) {
65 if (!err || typeof err !== "object") return
66 if (!("cause" in err)) return
67 return (err as { cause?: unknown }).cause
68}
69
70export function createPlugTask(input: PlugInput, dep: PlugDeps = defaultPlugDeps) {
71 const mod = input.mod

Callers 1

createPlugTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected