openclaw-overlay-plugin 0.7.40 → 0.7.41
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/dist/index.js +2 -1
- package/index.ts +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1447,7 +1447,8 @@ function buildEnvironment(config) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
function parseCliOutput(stdout) {
|
|
1449
1449
|
try {
|
|
1450
|
-
|
|
1450
|
+
const str = typeof stdout === 'string' ? stdout : String(stdout || '');
|
|
1451
|
+
return JSON.parse(str.trim());
|
|
1451
1452
|
}
|
|
1452
1453
|
catch (error) {
|
|
1453
1454
|
throw new Error(`Failed to parse CLI output: ${error.message}`);
|
package/index.ts
CHANGED
|
@@ -1632,7 +1632,8 @@ function buildEnvironment(config: any) {
|
|
|
1632
1632
|
|
|
1633
1633
|
function parseCliOutput(stdout: any) {
|
|
1634
1634
|
try {
|
|
1635
|
-
|
|
1635
|
+
const str = typeof stdout === 'string' ? stdout : String(stdout || '');
|
|
1636
|
+
return JSON.parse(str.trim());
|
|
1636
1637
|
} catch (error: any) {
|
|
1637
1638
|
throw new Error(`Failed to parse CLI output: ${error.message}`);
|
|
1638
1639
|
}
|
package/package.json
CHANGED