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

Function reader

graph-ui/src/browser-ai/file-facts.test.ts:10–14  ·  view source on GitHub ↗
(path: string, text: string, kind: 'file' | 'selection' = 'file', lines?: [number, number], partial?: string)

Source from the content-addressed store, hash-verified

8 */
9
10const reader = (path: string, text: string, kind: 'file' | 'selection' = 'file', lines?: [number, number], partial?: string): BrowserChatReaderContext => ({
11 project: 'demo', path, status: 'ready',
12 source: { id: 'r', text, path, project: 'demo', startLine: lines?.[0] ?? 1, startColumn: 1, endLine: lines?.[1] ?? text.split('\n').length, endColumn: 1, sourceVersion: 'sha256:1', kind,
13 ...partial ? { partial } : {} },
14});
15
16describe('facts read from a configuration or text file (K12)', () => {
17 it('tells data and text files from program code by their name', () => {

Callers 1

file-facts.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected