MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / isFileEditLike

Function isFileEditLike

tools/claw-launcher-ui/server.mjs:1671–1682  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1669}
1670
1671function isFileEditLike(value) {
1672 if (!value || typeof value !== 'object' || Array.isArray(value)) {
1673 return false
1674 }
1675 const record = value
1676 return (
1677 typeof record.filePath === 'string' &&
1678 (Array.isArray(record.structuredPatch) ||
1679 ((record.type === 'create' || record.type === 'update') &&
1680 typeof record.content === 'string'))
1681 )
1682}
1683
1684function collectFileEditResults(root) {
1685 const stack = [root]

Callers 1

collectFileEditResultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected