openclaw-overlay-plugin 0.7.48 → 0.7.50
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 +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1463,7 +1463,7 @@ function buildEnvironment(config) {
|
|
|
1463
1463
|
function parseCliOutput(stdout) {
|
|
1464
1464
|
try {
|
|
1465
1465
|
const str = typeof stdout === 'string' ? stdout : String(stdout || '');
|
|
1466
|
-
return JSON.parse(str
|
|
1466
|
+
return JSON.parse(str.trim());
|
|
1467
1467
|
}
|
|
1468
1468
|
catch (error) {
|
|
1469
1469
|
throw new Error(`Failed to parse CLI output: ${error.message}`);
|
package/index.ts
CHANGED
|
@@ -1649,7 +1649,7 @@ function buildEnvironment(config: any) {
|
|
|
1649
1649
|
function parseCliOutput(stdout: any) {
|
|
1650
1650
|
try {
|
|
1651
1651
|
const str = typeof stdout === 'string' ? stdout : String(stdout || '');
|
|
1652
|
-
return JSON.parse(str
|
|
1652
|
+
return JSON.parse(str.trim());
|
|
1653
1653
|
} catch (error: any) {
|
|
1654
1654
|
throw new Error(`Failed to parse CLI output: ${error.message}`);
|
|
1655
1655
|
}
|
package/package.json
CHANGED