@openagents-org/agent-launcher 0.2.24 → 0.2.26
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 +7 -1
package/package.json
CHANGED
package/src/adapters/openclaw.js
CHANGED
|
@@ -235,11 +235,13 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
235
235
|
// Direct spawn — unbuffered stderr for real-time tool streaming
|
|
236
236
|
spawnBinary = nodeBin;
|
|
237
237
|
spawnArgs = [entryPoint, ...args];
|
|
238
|
+
this._log(`Spawn: direct node (${nodeBin}) → ${entryPoint}`);
|
|
238
239
|
} else {
|
|
239
240
|
// Fallback to cmd.exe (buffered stderr — no real-time status)
|
|
240
241
|
spawnBinary = process.env.COMSPEC || 'cmd.exe';
|
|
241
242
|
const quotedArgs = args.map((a) => a.includes(' ') ? `"${a}"` : a);
|
|
242
243
|
spawnArgs = ['/C', binary, ...quotedArgs];
|
|
244
|
+
this._log(`Spawn: cmd.exe fallback (nodeBin=${nodeBin}, entry=${entryPoint})`);
|
|
243
245
|
}
|
|
244
246
|
}
|
|
245
247
|
|
|
@@ -275,6 +277,11 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
275
277
|
stderrBuffer = lines.pop() || ''; // keep incomplete last line
|
|
276
278
|
|
|
277
279
|
for (const line of lines) {
|
|
280
|
+
// Debug: log all diagnostic lines from stderr
|
|
281
|
+
if (line.includes('[agent/embedded]') || line.includes('[diagnostic]')) {
|
|
282
|
+
this._log(`stderr: ${line.trim().slice(0, 120)}`);
|
|
283
|
+
}
|
|
284
|
+
|
|
278
285
|
const toolStart = line.match(/embedded run tool start:.*tool=(\w+)/);
|
|
279
286
|
if (toolStart) {
|
|
280
287
|
const toolName = toolStart[1];
|
|
@@ -282,7 +289,6 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
282
289
|
this._log(`Tool status: ${label}`);
|
|
283
290
|
this.sendStatus(channel, label).catch(() => {});
|
|
284
291
|
}
|
|
285
|
-
// Also detect agent thinking
|
|
286
292
|
const agentStart = line.match(/embedded run agent start/);
|
|
287
293
|
if (agentStart) {
|
|
288
294
|
this.sendStatus(channel, 'thinking...').catch(() => {});
|