@openagents-org/agent-launcher 0.2.34 → 0.2.35
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 +5 -0
- package/src/installer.js +1 -0
package/package.json
CHANGED
package/src/daemon.js
CHANGED
|
@@ -107,6 +107,11 @@ class Daemon {
|
|
|
107
107
|
*/
|
|
108
108
|
async stopAgent(agentName) {
|
|
109
109
|
this._stoppedAgents.add(agentName);
|
|
110
|
+
// Mark state as stopped immediately
|
|
111
|
+
if (this._processes[agentName]) {
|
|
112
|
+
this._processes[agentName].state = 'stopped';
|
|
113
|
+
}
|
|
114
|
+
this._writeStatus();
|
|
110
115
|
// Stop the adapter directly if running
|
|
111
116
|
if (this._adapters && this._adapters[agentName]) {
|
|
112
117
|
this._adapters[agentName].stop();
|