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

Method validPasteIds

packages/pi-tui/src/components/editor.ts:374–376  ·  view source on GitHub ↗

Set of currently valid paste IDs, for marker-aware segmentation.

()

Source from the content-addressed store, hash-verified

372
373 /** Set of currently valid paste IDs, for marker-aware segmentation. */
374 private validPasteIds(): Set<number> {
375 return new Set(this.pastes.keys());
376 }
377
378 /** Segment text with paste-marker awareness, only merging markers with valid IDs. */
379 private segment(text: string, mode: "word" | "grapheme"): Iterable<Intl.SegmentData> {

Callers 1

segmentMethod · 0.95

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected