MCPcopy
hub / github.com/ahmedkhaleel2004/gitdiagram / withEstimatedCost

Function withEstimatedCost

src/server/generate/session-audit.ts:61–70  ·  view source on GitHub ↗
(
  audit: GenerationSessionAudit,
  estimatedCost: GenerationCostSummary,
)

Source from the content-addressed store, hash-verified

59}
60
61export function withEstimatedCost(
62 audit: GenerationSessionAudit,
63 estimatedCost: GenerationCostSummary,
64): GenerationSessionAudit {
65 return {
66 ...audit,
67 estimatedCost,
68 updatedAt: nowIso(),
69 };
70}
71
72export function withFinalCost(
73 audit: GenerationSessionAudit,

Callers 1

runFunction · 0.90

Calls 1

nowIsoFunction · 0.85

Tested by

no test coverage detected