MCPcopy Create free account
hub / github.com/apache/maka / formatCost

Function formatCost

packages/cli/src/pi-transcript.ts:1471–1474  ·  view source on GitHub ↗
(costUsd: number)

Source from the content-addressed store, hash-verified

1469}
1470
1471function formatCost(costUsd: number): string {
1472 if (costUsd < 0.01) return '<0.01';
1473 return costUsd.toFixed(2);
1474}
1475
1476function appendAssistantText(state: MakaPiTranscriptState, messageId: string, text: string): void {
1477 const last = state.entries[state.entries.length - 1];

Callers 1

renderMakaPiStatusLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected