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

Function isSuccessfulEditMessage

cli/src/utils/implementor-helpers.ts:354–366  ·  view source on GitHub ↗
(message: unknown)

Source from the content-addressed store, hash-verified

352}
353
354function isSuccessfulEditMessage(message: unknown): boolean {
355 if (typeof message !== 'string') {
356 return false
357 }
358
359 return message
360 .split('\n')
361 .some((line) =>
362 SUCCESSFUL_EDIT_MESSAGES.some((successMessage) =>
363 line.trim().startsWith(successMessage),
364 ),
365 )
366}
367
368function isErrorOutput(output: string): boolean {
369 const trimmedOutput = output.trim()

Callers 2

extractDiffFunction · 0.85
hasFailedEditOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected