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

Function chunk

test/retrieval-embed-resilience.test.ts:11–13  ·  view source on GitHub ↗
(file: string, text: string, startLine = 1, endLine = 10)

Source from the content-addressed store, hash-verified

9} from '../src/context/retrieval.js';
10
11function chunk(file: string, text: string, startLine = 1, endLine = 10): Chunk {
12 return { file, startLine, endLine, text, hash: text.slice(0, 8) };
13}
14
15describe('capTextForEmbedding', () => {
16 it('leaves short text untouched', () => {

Calls

no outgoing calls

Tested by

no test coverage detected