MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / handleSearch

Function handleSearch

ai-code-studio/src/components/MemoryPanel.tsx:78–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 async function handleSearch() {
79 if (!searchQuery.trim()) return;
80 setSearching(true);
81 try {
82 const data = await api<{ results: MemoryFile[] }>('/api/memory/search', {
83 method: 'POST',
84 body: JSON.stringify({ query: searchQuery }),
85 });
86 setSearchResults(data.results);
87 setActiveView('search');
88 } catch { /* ignore */ }
89 setSearching(false);
90 }
91
92 const [dreamResult, setDreamResult] = useState<string | null>(null);
93

Callers 1

MemoryPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected