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

Function reader

graph-ui/src/browser-ai/BrowserChatDock.test.tsx:25–25  ·  view source on GitHub ↗
(text: string, kind: 'file' | 'selection' = 'file', path = 'src/sum.ts')

Source from the content-addressed store, hash-verified

23
24const selection: BrowserChatAttachment = { id: 'selection-1', text: '\t a +\r\n b ', path: 'src/sum.ts', project: 'sample', startLine: 3, startColumn: 7, endLine: 4, endColumn: 5, sourceVersion: 'sha256:123' };
25const reader = (text: string, kind: 'file' | 'selection' = 'file', path = 'src/sum.ts'): BrowserChatReaderContext => ({ project: 'sample', path, status: 'ready', source: { ...selection, text, path, kind, id: `reader-${path}-${kind}` } });
26function fixture() {
27 const runtime = {
28 prepare: vi.fn(async (_progress: (value: BrowserAiProgress) => void, _options?: { cacheOnly?: boolean }) => {}),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected