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

Method emitDataSequence

packages/pi-tui/src/stdin-buffer.ts:389–398  ·  view source on GitHub ↗
(sequence: string)

Source from the content-addressed store, hash-verified

387 }
388
389 private emitDataSequence(sequence: string): void {
390 const rawCodepoint = sequence.length === 1 ? sequence.codePointAt(0) : undefined;
391 if (rawCodepoint !== undefined && rawCodepoint === this.pendingKittyPrintableCodepoint) {
392 this.pendingKittyPrintableCodepoint = undefined;
393 return;
394 }
395
396 this.pendingKittyPrintableCodepoint = parseUnmodifiedKittyPrintableCodepoint(sequence);
397 this.emit("data", sequence);
398 }
399
400 flush(): string[] {
401 if (this.timeout) {

Callers 1

processMethod · 0.95

Calls 2

emitMethod · 0.45

Tested by

no test coverage detected