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

Function copy

graph-ui/src/architecture/SourceEvidenceDrawer.tsx:124–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }, [source]);
123 const moveTo = (line: number) => setPageWindow({ key: targetKey, start: line });
124 const copy = async () => {
125 try {
126 await navigator.clipboard.writeText(`${target.filePath}:${requestedLine ?? firstLine ?? 1}`);
127 if (activeKey.current === readKey) { setCopiedKey(readKey); setCopyError(undefined); }
128 } catch {
129 if (activeKey.current === readKey) setCopyError({ key: readKey, message: 'Copy unavailable. Select the location above to copy it manually.' });
130 }
131 };
132 return <aside className="source-evidence-drawer" role="dialog" aria-modal="false" aria-label="Source evidence" onKeyDown={event => {
133 if (event.key === 'Escape') { event.preventDefault(); event.stopPropagation(); onClose(); }
134 }}>

Callers 1

SourceEvidenceDrawerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected