@openagents-org/agent-launcher 0.2.30 → 0.2.31
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 +6 -1
package/package.json
CHANGED
package/src/adapters/openclaw.js
CHANGED
|
@@ -290,16 +290,21 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
290
290
|
let stderrContent = '';
|
|
291
291
|
try {
|
|
292
292
|
stderrContent = fs.readFileSync(stderrFile, 'utf-8');
|
|
293
|
+
this._log(`CLI exit code=${code}, stdout=${output.length}b, stderr=${stderrContent.length}b`);
|
|
293
294
|
// Process any remaining lines for tool events
|
|
294
295
|
const remaining = stderrContent.slice(stderrOffset);
|
|
295
296
|
if (remaining) {
|
|
296
297
|
for (const line of remaining.split('\n')) processLine(line);
|
|
297
298
|
}
|
|
298
|
-
} catch {
|
|
299
|
+
} catch (e) {
|
|
300
|
+
this._log(`CLI stderr read error: ${e.message}`);
|
|
301
|
+
}
|
|
299
302
|
try { fs.unlinkSync(stderrFile); } catch {}
|
|
300
303
|
|
|
301
304
|
// OpenClaw --json writes JSON to stderr, so combine stdout + stderr
|
|
302
305
|
const allOutput = output + '\n' + stderrContent;
|
|
306
|
+
const hasPayloads = allOutput.includes('"payloads"');
|
|
307
|
+
this._log(`CLI parse: hasPayloads=${hasPayloads}, total=${allOutput.length}b`);
|
|
303
308
|
|
|
304
309
|
if (code !== 0) {
|
|
305
310
|
reject(new Error(`CLI exited ${code}: ${allOutput.slice(-300)}`));
|