@openbrt/weclawbotctl 0.1.16 → 0.1.17
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/README.md +2 -2
- package/index.mjs +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,8 +83,8 @@ possible and send them through their normal chat/media channel so the user sees
|
|
|
83
83
|
the actual effect, not just "published".
|
|
84
84
|
When the OpenClaw tool `weclawbot_publish_screen_document` is used, its return
|
|
85
85
|
value contains the same `preview.pages[].path` list. The agent owns delivering
|
|
86
|
-
that preview to the user
|
|
87
|
-
|
|
86
|
+
that preview to the user. The optional automatic preview hook is off by default
|
|
87
|
+
and exists only for legacy experiments.
|
|
88
88
|
|
|
89
89
|
To clear the current note, use the firmware clear command:
|
|
90
90
|
|
package/index.mjs
CHANGED
|
@@ -289,7 +289,7 @@ async function finishHookActivity(api, event, ctx) {
|
|
|
289
289
|
|
|
290
290
|
async function attachScreenPreview(api, event, ctx) {
|
|
291
291
|
try {
|
|
292
|
-
if (api.pluginConfig?.auto_preview
|
|
292
|
+
if (api.pluginConfig?.auto_preview !== true) return;
|
|
293
293
|
if (event?.error) return;
|
|
294
294
|
const sessionKey = resolveHookSessionKey(event, ctx);
|
|
295
295
|
if (!sessionKey) {
|
package/openclaw.plugin.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"auto_preview": {
|
|
30
30
|
"type": "boolean",
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "Optional legacy fallback that attaches PNG previews after publishing. Defaults off; agents should send preview.pages[].path to users explicitly."
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|