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

Function readableMessage

graph-ui/src/diagnostics/DaemonAlerts.tsx:9–15  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

7import './diagnostics.css';
8
9function readableMessage(raw: string): string {
10 try {
11 const record: unknown = JSON.parse(raw);
12 if (record && typeof record === 'object' && !Array.isArray(record) && 'message' in record && typeof record.message === 'string') return record.message;
13 } catch { /* Plain daemon log lines already are the display message. */ }
14 return raw;
15}
16
17export interface DaemonAlertsProps {
18 project?: string;

Callers 1

DaemonAlertsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected