@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.34",
3
+ "version": "0.2.35",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
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();
package/src/installer.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const fs = require('fs');
4
+ const os = require('os');
4
5
  const path = require('path');
5
6
  const { execSync, exec } = require('child_process');
6
7
  const { whichBinary, getEnhancedEnv } = require('./paths');