MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / emptySearch

Function emptySearch

src/ui-server/api/search.ts:229–237  ·  view source on GitHub ↗

The resting state of the palette: the shape of a real answer, with nothing in it.

(raw: string)

Source from the content-addressed store, hash-verified

227
228/** The resting state of the palette: the shape of a real answer, with nothing in it. */
229function emptySearch(raw: string): unknown {
230 return {
231 query: raw,
232 text: '',
233 filters: { kinds: [], languages: [], paths: [], names: [] },
234 results: wireList<WireSearchResult>([], 0),
235 groups: [],
236 };
237}

Callers 1

buildSearchFunction · 0.85

Calls 1

wireListFunction · 0.90

Tested by

no test coverage detected