MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / closeAndSeed

Function closeAndSeed

packages/node-runtime/src/semantic-index/chunker.ts:265–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263 let newCount = 0
264
265 const closeAndSeed = () => {
266 drafts.push(current)
267 const seed = config.overlapMessages > 0 ? current.slice(-config.overlapMessages) : []
268 current = [...seed]
269 newCount = 0
270 }
271
272 for (const m of parent) {
273 current.push(m)

Callers 1

buildChildDraftsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected