MCPcopy
hub / github.com/TanStack/ai / push

Method push

packages/ai-acp/src/stream/queue.ts:15–23  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

13 private failed = false
14
15 push(value: T): void {
16 if (this.ended || this.failed) return
17 const waiter = this.waiters.shift()
18 if (waiter) {
19 waiter.resolve({ value, done: false })
20 } else {
21 this.values.push(value)
22 }
23 }
24
25 end(): void {
26 if (this.ended || this.failed) return

Callers 15

chatStreamAcpMethod · 0.95
chatStreamMethod · 0.95
computeMetricsFunction · 0.45
applyStabilityFunction · 0.45
judgeLatestSessionFunction · 0.45
mainFunction · 0.45
createDiscoveryToolFunction · 0.45
findSecretParamsFunction · 0.45
generateTypeStubsFunction · 0.45
collectTsFilesFunction · 0.45

Calls 1

resolveMethod · 0.80

Tested by 15

collectTsFilesFunction · 0.36
collectFunction · 0.36
collectFunction · 0.36
collectFunction · 0.36
parseSSEStreamFunction · 0.36
setupFunction · 0.36
onConfigFunction · 0.36
onStartFunction · 0.36
onConfigFunction · 0.36
onStructuredOutputConfigFunction · 0.36
onStartFunction · 0.36
onIterationFunction · 0.36