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

Function graph

graph-ui/src/browser-ai/explanation-context.test.ts:15–20  ·  view source on GitHub ↗
(selected: unknown, relationships?: unknown, rest: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

13}
14
15function graph(selected: unknown, relationships?: unknown, rest: Record<string, unknown> = {}): BrowserChatContext {
16 return { id: 'snapshot', label: 'Example', text: JSON.stringify({ evidence: {
17 kind: 'current-selection-evidence', project: 'sample', view: 'galaxy', source: 'indexed relationships', generation: 'generation-1',
18 selected, relationships, limitations: { indexCoverage: 'unavailable' }, ...rest,
19 }, omissions: [] }) };
20}
21
22const outputText = (prepared: ReturnType<typeof prepareExplanationContext>) => [...prepared.evidence.map(item => item.text), ...prepared.limitations].join('\n');
23

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected