@openagents-org/agent-launcher 0.2.23 → 0.2.25

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.23",
3
+ "version": "0.2.25",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -213,10 +213,11 @@ class OpenClawAdapter extends BaseAdapter {
213
213
 
214
214
  if (IS_WINDOWS) {
215
215
  // Find node.exe to spawn openclaw.mjs directly (unbuffered stderr)
216
- const { getExtraBinDirs } = require('../paths');
217
- const extraDirs = getExtraBinDirs();
216
+ const portableNodeDir = path.join(os.homedir(), '.openagents', 'nodejs');
217
+ const searchDirs = [portableNodeDir];
218
+ try { const { getExtraBinDirs } = require('../paths'); searchDirs.push(...getExtraBinDirs()); } catch {}
218
219
  let nodeBin = null;
219
- for (const d of extraDirs) {
220
+ for (const d of searchDirs) {
220
221
  const candidate = path.join(d, 'node.exe');
221
222
  if (fs.existsSync(candidate)) { nodeBin = candidate; break; }
222
223
  }
@@ -274,6 +275,11 @@ class OpenClawAdapter extends BaseAdapter {
274
275
  stderrBuffer = lines.pop() || ''; // keep incomplete last line
275
276
 
276
277
  for (const line of lines) {
278
+ // Debug: log all diagnostic lines from stderr
279
+ if (line.includes('[agent/embedded]') || line.includes('[diagnostic]')) {
280
+ this._log(`stderr: ${line.trim().slice(0, 120)}`);
281
+ }
282
+
277
283
  const toolStart = line.match(/embedded run tool start:.*tool=(\w+)/);
278
284
  if (toolStart) {
279
285
  const toolName = toolStart[1];
@@ -281,7 +287,6 @@ class OpenClawAdapter extends BaseAdapter {
281
287
  this._log(`Tool status: ${label}`);
282
288
  this.sendStatus(channel, label).catch(() => {});
283
289
  }
284
- // Also detect agent thinking
285
290
  const agentStart = line.match(/embedded run agent start/);
286
291
  if (agentStart) {
287
292
  this.sendStatus(channel, 'thinking...').catch(() => {});