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

Function span

packages/opencode/src/cli/cmd/export.ts:20–25  ·  view source on GitHub ↗
(id: string, value: { value: string; start: number; end: number })

Source from the content-addressed store, hash-verified

18}
19
20function span(id: string, value: { value: string; start: number; end: number }) {
21 return {
22 ...value,
23 value: redact("file-text", id, value.value),
24 }
25}
26
27function diff(kind: string, diffs: { file?: string; patch?: string }[] | undefined) {
28 return diffs?.map((item, i) => ({

Callers 1

sourceFunction · 0.70

Calls 1

redactFunction · 0.85

Tested by

no test coverage detected