@openbrt/weclawbotctl 0.1.16 → 0.1.18
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 +12 -3
- package/index.mjs +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/skills/weclawbot-curator/SKILL.md +10 -4
- package/workspace/AGENTS.md +5 -1
package/README.md
CHANGED
|
@@ -83,8 +83,15 @@ 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
|
+
|
|
89
|
+
The purpose of sending the preview is not just proof that MQTT worked. The
|
|
90
|
+
preview is the feedback surface that lets the user's agent learn the user's
|
|
91
|
+
reading habits, layout taste, density tolerance, font preferences, and page
|
|
92
|
+
rhythm over time. Treat "send to screen" as a two-part delivery: the device is
|
|
93
|
+
updated, and the user receives the same effect image in the current chat unless
|
|
94
|
+
the agent reports a concrete preview-delivery failure.
|
|
88
95
|
|
|
89
96
|
To clear the current note, use the firmware clear command:
|
|
90
97
|
|
|
@@ -297,7 +304,9 @@ Before publishing, agents should inspect or otherwise self-evaluate the rendered
|
|
|
297
304
|
pages against the user's preferences and their own learned standards when their
|
|
298
305
|
runtime supports it. Regenerate the document if the bitmap does not satisfy those
|
|
299
306
|
standards. After a successful publish, send the preview PNGs to the user through
|
|
300
|
-
the current chat/media channel so the user can see the effect
|
|
307
|
+
the current chat/media channel so the user can see the effect and correct the
|
|
308
|
+
agent's choices. Carry those corrections forward instead of resetting local
|
|
309
|
+
style memory on plugin upgrades.
|
|
301
310
|
|
|
302
311
|
```bash
|
|
303
312
|
weclawbotctl preview /path/to/screen-document.json
|
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
|
}
|
package/package.json
CHANGED
|
@@ -58,7 +58,10 @@ OpenClaw Telegram/UI sessions, prefer `weclawbot_publish_screen_document`: its
|
|
|
58
58
|
result includes `preview.pages[].path` PNG files for the exact mono1 pages. The
|
|
59
59
|
agent must inspect those preview files when possible, then send the preview PNGs
|
|
60
60
|
back to the user through its normal chat/media channel before or alongside the
|
|
61
|
-
"已上屏" reply.
|
|
61
|
+
"已上屏" reply. This preview is not decoration and not merely proof of delivery:
|
|
62
|
+
it is the feedback surface that lets the user and agent steadily converge on the
|
|
63
|
+
user's reading habits, layout taste, density tolerance, font preferences, and
|
|
64
|
+
page rhythm. If the agent used CLI instead, run `weclawbotctl preview <doc>`
|
|
62
65
|
before publishing, or read the `preview` field emitted by `weclawbotctl screen`.
|
|
63
66
|
Do not use OpenClaw Canvas for requests that
|
|
64
67
|
mention WeClawBot, the physical screen, or “屏上”; Canvas is an OpenClaw UI
|
|
@@ -92,9 +95,12 @@ inspect images. Judge the preview against the user's preferences and the agent's
|
|
|
92
95
|
own learned standards: legibility, margins, crowding, page count, and continuity
|
|
93
96
|
across pages. If the preview does not satisfy those standards, regenerate the
|
|
94
97
|
pages before publishing. After a successful publish, include the preview PNG in
|
|
95
|
-
the user-visible response so the user can see what was sent
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
the user-visible response so the user can see what was sent and correct the
|
|
99
|
+
agent's choices. Treat explicit comments, repeated corrections, clear requests,
|
|
100
|
+
manual page changes, and acceptance without complaint as signals for future
|
|
101
|
+
layout decisions. This review and feedback loop belongs in the agent/tool layer;
|
|
102
|
+
do not expect firmware to fix typography, show chat previews, or split pages
|
|
103
|
+
after the pixels arrive.
|
|
98
104
|
|
|
99
105
|
`weclawbotctl screen` and `weclawbot_publish_screen_document` wait for the
|
|
100
106
|
device status topic by default. Treat only `applied` as success. If the device
|
package/workspace/AGENTS.md
CHANGED
|
@@ -48,7 +48,11 @@ the tool returns `preview.pages[].path` PNG files for the exact pages. Inspect
|
|
|
48
48
|
those preview images when possible, and send them back to the user through the
|
|
49
49
|
normal chat/media channel before or alongside the success reply. If using CLI,
|
|
50
50
|
run `weclawbotctl preview <document.json>` before publishing, or read the
|
|
51
|
-
`preview` field emitted by `weclawbotctl screen`.
|
|
51
|
+
`preview` field emitted by `weclawbotctl screen`. The preview is the user's
|
|
52
|
+
feedback surface: use it to learn their reading habits, preferred density,
|
|
53
|
+
layout taste, font choices, and page rhythm over time. Do not treat "上屏" as
|
|
54
|
+
complete until the physical screen is updated and the user can see the same
|
|
55
|
+
effect in chat, or you have clearly reported why the preview could not be sent.
|
|
52
56
|
|
|
53
57
|
The firmware receives pixels. Do not send raw text to firmware, and do not
|
|
54
58
|
answer that direct delivery is unavailable before checking the local
|