@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 +1 -1
- package/src/adapters/openclaw.js +9 -4
package/package.json
CHANGED
package/src/adapters/openclaw.js
CHANGED
|
@@ -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
|
|
217
|
-
const
|
|
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
|
|
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(() => {});
|