MCPcopy Create free account
hub / github.com/anomalyco/opencode / patchFiles

Function patchFiles

packages/session-ui/src/components/apply-patch-file.ts:75–78  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

73}
74
75export function patchFiles(raw: unknown) {
76 if (!Array.isArray(raw)) return []
77 return raw.map(patchFile).filter((file): file is ApplyPatchFile => !!file)
78}

Callers 2

renderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected