agent-relay-server 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +1 -1
- package/public/index.html +11 -1
package/README.md
CHANGED
|
@@ -311,6 +311,7 @@ claude/ # Claude Code plugin
|
|
|
311
311
|
├── monitors/monitors.json # Auto-start inbox monitor
|
|
312
312
|
└── hooks/
|
|
313
313
|
├── relay-monitor.sh # Register, inject context, poll
|
|
314
|
+
├── set-status.sh # Turn hooks: busy/idle status updates
|
|
314
315
|
├── session-end.sh # Mark agent offline
|
|
315
316
|
└── poll-inbox.sh # Inbox poll loop
|
|
316
317
|
|
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
<div class="card agent-card" :class="{ selected: selectedAgent === a.id }">
|
|
283
283
|
<div class="card-body">
|
|
284
284
|
<div class="d-flex align-items-start gap-2">
|
|
285
|
-
<span class="status-dot mt-1" :class="[a.status, a.status !== 'offline' && !a.ready ? 'not-ready' : '']" :title="a
|
|
285
|
+
<span class="status-dot mt-1" :class="[a.status, a.status !== 'offline' && !a.ready ? 'not-ready' : '']" :title="agentStatusTitle(a)"></span>
|
|
286
286
|
<div class="flex-grow-1 min-width-0">
|
|
287
287
|
<div class="d-flex align-items-center gap-2">
|
|
288
288
|
<template x-if="a.label">
|
|
@@ -946,6 +946,16 @@ function relay() {
|
|
|
946
946
|
return agent ? this.displayName(agent) : target.slice(-8);
|
|
947
947
|
},
|
|
948
948
|
|
|
949
|
+
agentStatusTitle(agent) {
|
|
950
|
+
if (!agent) return '';
|
|
951
|
+
if (agent.status === 'offline') return 'offline';
|
|
952
|
+
if (agent.ready) return agent.status;
|
|
953
|
+
const lastSeenMs = new Date(agent.lastSeen).getTime();
|
|
954
|
+
if (!Number.isFinite(lastSeenMs)) return 'Trying to reconnect…';
|
|
955
|
+
const ageSec = Math.max(0, (Date.now() - lastSeenMs) / 1000);
|
|
956
|
+
return ageSec <= 45 ? 'Starting up…' : 'Trying to reconnect…';
|
|
957
|
+
},
|
|
958
|
+
|
|
949
959
|
timeAgo(iso) {
|
|
950
960
|
if (!iso) return '';
|
|
951
961
|
const ts = new Date(iso).getTime();
|