mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 19:20:46 +08:00
feat(ume): key alarm forward to OClaw via WSS and AI monitor UI
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
9a39ddfcc7
commit
1f1b42e8bf
18 changed files with 1079 additions and 32 deletions
|
|
@ -17,6 +17,8 @@ type Props = {
|
|||
oclawBridgeLatencyMs?: number;
|
||||
oclawBridgeErrorKind?: string;
|
||||
oclawBridgeError?: string;
|
||||
oclawBridgeQueueSize?: number;
|
||||
oclawBridgePublishedOk?: number;
|
||||
};
|
||||
children: ReactNode;
|
||||
};
|
||||
|
|
@ -29,11 +31,15 @@ export function AppLayout({ connections, children }: Props) {
|
|||
const netxSuffix =
|
||||
typeof connections.netxApiLatencyMs === "number" ? ` (${connections.netxApiLatencyMs}ms)` : "";
|
||||
const oclawSuffix =
|
||||
typeof connections.oclawBridgeLatencyMs === "number"
|
||||
? ` (${connections.oclawBridgeLatencyMs}ms)`
|
||||
connections.oclawBridge === "up"
|
||||
? typeof connections.oclawBridgePublishedOk === "number"
|
||||
? ` (pub ${connections.oclawBridgePublishedOk})`
|
||||
: ""
|
||||
: connections.oclawBridgeErrorKind
|
||||
? ` (${connections.oclawBridgeErrorKind})`
|
||||
: "";
|
||||
: typeof connections.oclawBridgeQueueSize === "number" && connections.oclawBridgeQueueSize > 0
|
||||
? ` (q ${connections.oclawBridgeQueueSize})`
|
||||
: "";
|
||||
const oclawTitle =
|
||||
connections.oclawBridge === "down" && connections.oclawBridgeError
|
||||
? connections.oclawBridgeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue