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

Function withStageUsage

src/server/generate/session-audit.ts:83–92  ·  view source on GitHub ↗
(
  audit: GenerationSessionAudit,
  stageUsage: GenerationStageUsage,
)

Source from the content-addressed store, hash-verified

81}
82
83export function withStageUsage(
84 audit: GenerationSessionAudit,
85 stageUsage: GenerationStageUsage,
86): GenerationSessionAudit {
87 return {
88 ...audit,
89 stageUsages: [...audit.stageUsages, stageUsage],
90 updatedAt: nowIso(),
91 };
92}
93
94export function withGraphAttempt(
95 audit: GenerationSessionAudit,

Callers 1

runFunction · 0.90

Calls 1

nowIsoFunction · 0.85

Tested by

no test coverage detected