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

Function architectureTarget

graph-ui/src/browser-ai/symbol-source.ts:38–42  ·  view source on GitHub ↗
(context: BrowserChatContext)

Source from the content-addressed store, hash-verified

36}
37
38function architectureTarget(context: BrowserChatContext): SourceTarget | undefined {
39 let parsed: Record<string, unknown> | undefined;
40 try { parsed = record(record(JSON.parse(context.text))?.evidence); } catch { return undefined; }
41 return parsed?.kind === 'current-selection-evidence' ? architectureFacts(parsed)?.target : undefined;
42}
43
44/** The symbol an explanation is about, whether its source is read or already carried. */
45export function selectionSubject(context: BrowserChatContext | undefined): { name: string; kind?: string } | undefined {

Callers 1

selectionSubjectFunction · 0.85

Calls 2

architectureFactsFunction · 0.90
recordFunction · 0.70

Tested by

no test coverage detected