MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / push

Method push

packages/agent-core/src/mcp/client-stdio.ts:209–214  ·  view source on GitHub ↗
(chunk: string)

Source from the content-addressed store, hash-verified

207 constructor(private readonly capacity: number) {}
208
209 push(chunk: string): void {
210 this.buffer += chunk;
211 if (this.buffer.length > this.capacity) {
212 this.buffer = this.buffer.slice(this.buffer.length - this.capacity);
213 }
214 }
215
216 snapshot(): string {
217 return this.buffer;

Callers 15

buildFixtureZipFunction · 0.45
agentWithContextFunction · 0.45
collectRequiredFunction · 0.45
captureFunction · 0.45
cron-expr.test.tsFile · 0.45
createHarnessFunction · 0.45
scheduler.test.tsFile · 0.45
createZipBufferFunction · 0.45
createZipBufferFunction · 0.45

Calls

no outgoing calls

Tested by 15

buildFixtureZipFunction · 0.36
agentWithContextFunction · 0.36
collectRequiredFunction · 0.36
captureFunction · 0.36
createHarnessFunction · 0.36
createZipBufferFunction · 0.36
createZipBufferFunction · 0.36
disposeMethod · 0.36
disposeMethod · 0.36
disposeMethod · 0.36
disposeMethod · 0.36
disposeMethod · 0.36