MCPcopy Create free account
hub / github.com/TanStack/ai / bucketFor

Function bucketFor

testing/e2e/src/lib/phase-capture.ts:34–41  ·  view source on GitHub ↗
(captureId: string)

Source from the content-addressed store, hash-verified

32const captures: Map<string, PhaseCapture> = new Map()
33
34function bucketFor(captureId: string): PhaseCapture {
35 let bucket = captures.get(captureId)
36 if (!bucket) {
37 bucket = { phases: [], onFinishCount: 0, yieldedChunks: [] }
38 captures.set(captureId, bucket)
39 }
40 return bucket
41}
42
43export function resetPhaseCapture(captureId: string): void {
44 captures.set(captureId, {

Callers 4

getPhaseCaptureFunction · 0.70
recordPhaseFunction · 0.70
recordOnFinishFunction · 0.70
recordYieldedChunkFunction · 0.70

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected