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

Function parseOperation

sdk/src/tools/apply-patch.ts:588–599  ·  view source on GitHub ↗
(parameters: unknown)

Source from the content-addressed store, hash-verified

586}
587
588function parseOperation(parameters: unknown): ApplyPatchOperation | null {
589 if (
590 typeof parameters !== 'object' ||
591 parameters === null ||
592 !('operation' in parameters) ||
593 typeof (parameters as { operation: unknown }).operation !== 'object'
594 ) {
595 return null
596 }
597
598 return (parameters as { operation: ApplyPatchOperation }).operation
599}
600
601export async function applyPatchTool(params: {
602 parameters: unknown

Callers 1

applyPatchToolFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected