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

Function handleFinish

cli/src/utils/sdk-event-handlers.ts:486–490  ·  view source on GitHub ↗
(state: EventHandlerState, event: PrintModeFinish)

Source from the content-addressed store, hash-verified

484}
485
486const handleFinish = (state: EventHandlerState, event: PrintModeFinish) => {
487 if (typeof event.totalCost === 'number' && state.onTotalCost) {
488 state.onTotalCost(event.totalCost)
489 }
490}
491
492export const createStreamChunkHandler =
493 (state: EventHandlerState) => (event: StreamChunkEvent) => {

Callers 1

createEventHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected