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

Function flushCurrent

packages/pi-tui/src/utils.ts:640–647  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

638 let i = 0;
639
640 const flushCurrent = (): void => {
641 if (!current) {
642 return;
643 }
644 tokens.push(current);
645 current = "";
646 currentKind = null;
647 };
648
649 while (i < text.length) {
650 const ansiResult = extractAnsiCode(text, i);

Callers 1

splitIntoTokensWithAnsiFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected