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

Function knowledgeStateFor

graph-ui/src/provider/cbm-rpc-provider.ts:213–224  ·  view source on GitHub ↗
(ctx: FactStateContext)

Source from the content-addressed store, hash-verified

211 * however complete the index becomes.
212 */
213export function knowledgeStateFor(ctx: FactStateContext): KnowledgeState {
214 if (!ctx.engineAvailable) {
215 return 'unknown';
216 }
217 if (!ctx.supported) {
218 return 'unsupported';
219 }
220 if (!ctx.indexed) {
221 return 'notIndexed';
222 }
223 return ctx.derived ? 'inferred' : 'known';
224}
225
226/** Map an engine label to the narrower product symbol kind. */
227export function symbolKindOf(label: string | undefined): CodeAtlasSymbolKind {

Callers 7

calleesFactMethod · 0.85
callersFactMethod · 0.85
testedByFactMethod · 0.85
throwsFactMethod · 0.85
envReadsFactMethod · 0.85
typeRefsFactMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected