MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isDone

Function isDone

sdk/src/tools/apply-patch.ts:100–106  ·  view source on GitHub ↗
(state: ParserState, prefixes: string[])

Source from the content-addressed store, hash-verified

98}
99
100function isDone(state: ParserState, prefixes: string[]): boolean {
101 if (state.index >= state.lines.length) {
102 return true
103 }
104
105 return prefixes.some((prefix) => state.lines[state.index]?.startsWith(prefix))
106}
107
108function isWrappedAtHeader(line: string): boolean {
109 return /^@@.*@@(?: .*)?$/.test(line)

Callers 2

parseCreateDiffFunction · 0.85
parseUpdateDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected