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

Function reader

graph-ui/src/browser-ai/explanation-context.test.ts:7–13  ·  view source on GitHub ↗
(text: string, kind: 'file' | 'selection' = 'file')

Source from the content-addressed store, hash-verified

5import { JSONB_AGG_CALLERS, jsonbAggEvidence, jsonbAggScope, largeFolderScope } from './galaxy-evidence.fixture';
6
7function reader(text: string, kind: 'file' | 'selection' = 'file'): BrowserChatReaderContext {
8 const lines = text.split('\n');
9 return { project: 'sample', path: 'src/example.ts', status: 'ready', source: {
10 id: 'reader', text, kind, project: 'sample', path: 'src/example.ts', sourceVersion: 'sha256:example',
11 startLine: 1, startColumn: 1, endLine: lines.length, endColumn: lines.at(-1)!.length + 1,
12 } };
13}
14
15function graph(selected: unknown, relationships?: unknown, rest: Record<string, unknown> = {}): BrowserChatContext {
16 return { id: 'snapshot', label: 'Example', text: JSON.stringify({ evidence: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected