MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / getSources

Function getSources

apps/baseai.dev/src/components/Search.tsx:79–94  ·  view source on GitHub ↗
({ query })

Source from the content-addressed store, hash-verified

77 navigate
78 },
79 getSources({ query }) {
80 return import('../mdx/search.mjs').then(({ search }) => {
81 return [
82 {
83 sourceId: 'documentation',
84 getItems() {
85 return search(query, { limit: 5 });
86 },
87 getItemUrl({ item }) {
88 return item.url;
89 },
90 onSelect: navigate
91 }
92 ];
93 });
94 }
95 })
96 );
97

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected