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

Function booleanText

graph-ui/src/system/IndexesPanel.tsx:21–21  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

19
20const failureText = (error: unknown) => error instanceof Error ? error.message : String(error);
21const booleanText = (value: string | null | undefined) => value === 'true' ? 'On' : value === 'false' ? 'Off' : 'Unknown';
22const watcherText = (health: ProjectHealth | null, failed: boolean) => {
23 if (failed || health?.watchRegistered == null || health.watcherRunning == null) return 'Unknown';
24 return health.watchRegistered ? health.watcherRunning ? 'Active' : 'Registered · daemon watcher stopped' : 'Not registered';

Callers 1

WatcherSettingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected