MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / envelope

Function envelope

graph-ui/src/app/coverage-source.test.ts:83–87  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

81 const summary = { ...STATUS, indexed_at: 'g', parse_partial: { files: [], count: 1, truncated: true }, not_indexed: { dirs: [], dirs_count: 1, files: [], files_count: 1, truncated: true } };
82 const entries = [{ path: 'partial.c', kind: 'parse_partial' }, { path: 'build', kind: 'not_indexed_dir' }, { path: 'image.png', kind: 'not_indexed_file' }];
83 const envelope = (start: number, end: number) => ({
84 project: 'p', metadata: METADATA, has_more: end < entries.length,
85 ...(end < entries.length ? { next_offset: end } : {}),
86 scopes: [{ scope: '.', status: 'known_gaps', total: 3, returned: end - start, truncated: true, entries: entries.slice(start, end) }],
87 });
88 const { client, calls } = fakeClient([envelope(0, 2), envelope(2, 3)], summary);
89 const reading = await loadCoverage(client, 'p');
90 expect(calls.filter((call) => call.tool === 'check_index_coverage').map((call) => call.scopeOffset)).toEqual([0, 2]);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected