@openagents-org/agent-launcher 0.2.156 → 0.2.157
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/package.json +1 -1
- package/src/daemon.js +9 -4
package/package.json
CHANGED
package/src/daemon.js
CHANGED
|
@@ -67,13 +67,18 @@ class Daemon {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* Roster of agents this node hosts, for the workspace's node view. Sourced
|
|
72
|
+
* from config (the source of truth for what's configured) and augmented with
|
|
73
|
+
* live process state, so a removed agent drops off immediately rather than
|
|
74
|
+
* lingering as a stale 'stopped' process entry.
|
|
75
|
+
*/
|
|
71
76
|
_buildRoster() {
|
|
72
77
|
const roster = [];
|
|
73
78
|
try {
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
roster.push({ name, type:
|
|
79
|
+
for (const a of this.config.getAgents()) {
|
|
80
|
+
const proc = this._processes[a.name];
|
|
81
|
+
roster.push({ name: a.name, type: a.type || 'unknown', status: (proc && proc.state) || 'stopped' });
|
|
77
82
|
}
|
|
78
83
|
} catch {
|
|
79
84
|
// best-effort
|