openclaw-overlay-plugin 0.7.48 → 0.7.49
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 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -593,7 +593,7 @@ export default function register(api) {
|
|
|
593
593
|
// Register a skill-style wake handler
|
|
594
594
|
api.registerHook({
|
|
595
595
|
id: "openclaw-overlay-wake",
|
|
596
|
-
|
|
596
|
+
events: ["gateway:start"],
|
|
597
597
|
handler: async (ctx) => {
|
|
598
598
|
// Auto-check for registration on startup
|
|
599
599
|
(async () => {
|
|
@@ -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
|
@@ -643,7 +643,7 @@ export default function register(api: any) {
|
|
|
643
643
|
// Register a skill-style wake handler
|
|
644
644
|
api.registerHook({
|
|
645
645
|
id: "openclaw-overlay-wake",
|
|
646
|
-
|
|
646
|
+
events: ["gateway:start"],
|
|
647
647
|
handler: async (ctx: any) => {
|
|
648
648
|
// Auto-check for registration on startup
|
|
649
649
|
(async () => {
|
|
@@ -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