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

Function text

packages/opencode/src/cli/cmd/run/trace.ts:39–51  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

37}
38
39function text(data: unknown) {
40 return JSON.stringify(
41 data,
42 (_key, value) => {
43 if (typeof value === "bigint") {
44 return String(value)
45 }
46
47 return value
48 },
49 0,
50 )
51}
52
53export function trace(): Trace | undefined {
54 if (state !== undefined) {

Callers 2

traceFunction · 0.70
writeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected