MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / cut

Function cut

src/bot/chunk.ts:38–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 const reopenPrefix = () => '```' + fenceInfo + '\n';
37 const isFresh = () => disp.length === (fenceOpen ? reopenPrefix().length : 0);
38 const cut = () => {
39 pieces.push({ display: fenceOpen ? disp + CLOSE : disp, consumed });
40 disp = fenceOpen ? reopenPrefix() : '';
41 consumed = 0;
42 };
43
44 for (let li = 0; li < lines.length; li++) {
45 let line = lines[li]!;

Callers 1

splitForStreamFunction · 0.85

Calls 2

reopenPrefixFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected