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

Function redact

packages/opencode/src/cli/cmd/export.ts:11–13  ·  view source on GitHub ↗
(kind: string, id: string, value: string)

Source from the content-addressed store, hash-verified

9import { Effect } from "effect"
10
11function redact(kind: string, id: string, value: string) {
12 return value.trim() ? `[redacted:${kind}:${id}]` : value
13}
14
15function data(kind: string, id: string, value: Record<string, unknown> | undefined) {
16 if (!value) return value

Callers 6

spanFunction · 0.85
diffFunction · 0.85
sourceFunction · 0.85
filepartFunction · 0.85
partFunction · 0.85
sanitizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected