@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 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; the plugin's automatic preview hook is only a
87
- best-effort fallback.
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 === false) return;
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) {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "auto_preview": {
30
30
  "type": "boolean",
31
- "description": "Best-effort fallback that attaches PNG previews after publishing. Agents should still send preview.pages[].path to users explicitly."
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbrt/weclawbotctl",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "WeClawBot pairing and screen-control CLI for local AI agents.",
5
5
  "type": "module",
6
6
  "license": "MIT",