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

Function reader

graph-ui/src/browser-ai/chat-model.test.ts:6–6  ·  view source on GitHub ↗
(text = source.text, kind: 'file' | 'selection' = 'selection')

Source from the content-addressed store, hash-verified

4const source: BrowserChatAttachment = { id: 'selection-1', text: '\t partial(\r\n a + b\n', path: 'src/math.ts', project: 'sample', startLine: 3, startColumn: 8, endLine: 5, endColumn: 1, sourceVersion: 'sha256:test' };
5const attached = (content: string) => JSON.parse(content.slice(content.indexOf('\n{') + 1).split('\n')[0]);
6const reader = (text = source.text, kind: 'file' | 'selection' = 'selection'): BrowserChatReaderContext => ({ project: source.project, path: source.path, status: 'ready', source: { ...source, text, kind } });
7
8describe('browser chat context', () => {
9 it('preserves partial selection characters, whitespace, line endings and range exactly', () => {

Callers 1

chat-model.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected