agent-relay-server 0.4.31 → 0.4.33
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/dashboard.js +1 -0
- package/src/db.ts +1 -0
package/README.md
CHANGED
|
@@ -110,6 +110,7 @@ Both integrations share the same provider env vars:
|
|
|
110
110
|
| `AGENT_RELAY_PROFILE` | unset | Named profile loaded from the profiles file |
|
|
111
111
|
| `AGENT_RELAY_PROFILES_FILE` | `~/.config/agent-relay/profiles.json` | JSON profile file |
|
|
112
112
|
| `AGENT_RELAY_APPROVAL` | `open` | Approval mode: `open`, `guarded`, `read-only` |
|
|
113
|
+
| `AGENT_RELAY_DISABLED` | unset | Set to `1` to bypass provider hooks, monitors, and launcher shims |
|
|
113
114
|
|
|
114
115
|
Profiles preconfigure labels, tags, capabilities, channels, approval mode, and meta fields:
|
|
115
116
|
|
package/package.json
CHANGED
package/public/dashboard.js
CHANGED
|
@@ -1096,6 +1096,7 @@
|
|
|
1096
1096
|
|
|
1097
1097
|
function isAgentStale(vm, agent) {
|
|
1098
1098
|
if (!agent?.lastSeen || agent.status === "offline") return false;
|
|
1099
|
+
if (agent.id === "user" || agent.id === "system") return false;
|
|
1099
1100
|
const lastSeenMs = new Date(agent.lastSeen).getTime();
|
|
1100
1101
|
if (!Number.isFinite(lastSeenMs)) return false;
|
|
1101
1102
|
return (vm.now || Date.now()) - lastSeenMs > 60_000;
|
package/src/db.ts
CHANGED
|
@@ -629,6 +629,7 @@ export function heartbeat(id: string, guard?: AgentSessionGuard): boolean {
|
|
|
629
629
|
export function reapStaleAgents(ttlMs: number = STALE_TTL_MS): string[] {
|
|
630
630
|
const now = Date.now();
|
|
631
631
|
const cutoff = now - ttlMs;
|
|
632
|
+
db.prepare("UPDATE agents SET last_seen = ? WHERE id IN ('user', 'system')").run(now);
|
|
632
633
|
const rows = db
|
|
633
634
|
.prepare(
|
|
634
635
|
"UPDATE agents SET status = 'offline', ready = 0 WHERE status != 'offline' AND last_seen < ? AND id NOT IN ('user', 'system') RETURNING id"
|