@privateclaw/privateclaw 0.1.18 → 0.1.23

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.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -134,6 +134,17 @@ That means the installed extension can surface `/privateclaw`, `/privateclaw gro
134
134
 
135
135
  Capabilities advertise `/renew-session` and `/session-qr` for active sessions, and for group sessions they also advertise `/mute-bot` or `/unmute-bot` depending on the current session state.
136
136
 
137
+ ## Channel QR delivery notes
138
+
139
+ When the plugin sends a pairing QR back through an existing OpenClaw chat transport, it must follow the channel outbound contract rather than the provider's internal attachment schema. In practice that means OpenClaw `ReplyPayload` with `text` plus `mediaUrl` / `mediaUrls`.
140
+
141
+ - Rich-media transports such as `discord`, `telegram`, `slack`, `signal`, `imessage`, `bluebubbles`, `mattermost`, `msteams`, `matrix`, `googlechat`, `feishu`, `whatsapp`, `line`, and `zalouser` can usually render a generated QR directly from `mediaUrl`.
142
+ - `qqbot` still supports legacy inline `<qqimg>...</qqimg>` text, but its current gateway also accepts structured `mediaUrl` / `mediaUrls`, so both paths are valid.
143
+ - `zalo`, `tlon`, and `synology-chat` are effectively URL-only for QR delivery: they need a reachable HTTP(S) image URL rather than a private local file path.
144
+ - `irc`, `nextcloud-talk`, and `twitch` degrade to plain text links, while `nostr` currently has `media: false`, so those channels should always rely on the invite URI text as the guaranteed fallback.
145
+
146
+ The current provider implementation already special-cases QQ-style inline image replies for compatibility and uses `mediaUrl` for the general path. If you extend pairing delivery in the future, think in four buckets instead of just `qq` vs everyone else: `qqbot`, rich-media channels, URL-only channels, and no-media / text-only channels.
147
+
137
148
  ## Demo CLI
138
149
 
139
150
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@privateclaw/privateclaw",
3
- "version": "0.1.18",
3
+ "version": "0.1.23",
4
4
  "description": "PrivateClaw provider runtime and OpenClaw-compatible plugin adapter. iOS public beta: https://testflight.apple.com/join/XvgJ9c33 ; Android closed alpha requires joining https://groups.google.com/g/gg-studio-ai-products before installing https://play.google.com/store/apps/details?id=gg.ai.privateclaw",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",