@agent-wechat/agent-wechat 1.0.0-beta.11 → 1.0.0-beta.12

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
@@ -159,6 +159,36 @@ Run `node scripts/native-model-smoke.mjs` and `node scripts/native-media-model-s
159
159
 
160
160
  Native text/media sends retain daemon intent/job identity and caller idempotency. Text waits for accepted submission; media jobs preserve partial and uncertain outcomes rather than resending. Ordinary audio remains a file; only explicit `audioAsVoice` requests independently encoded voice. Sender/group/mention gates run before retrieval/transcription. Verified voice may use the configured OpenClaw transcription runtime after admission. Native QR login uses a durable daemon operation and authenticated PNG retrieval. Logout commits local inhibition before at most one authenticated native logout, reporting the remote outcome separately; saved-device revocation remains unverified. Explicitly confirmed forgetting removes local auth while retaining history; disconnect retains reusable trust.
161
161
 
162
+ ## Outgoing attachment sizes
163
+
164
+ `channels.agent-wechat.mediaMaxMb` limits both incoming retained attachments and
165
+ outgoing sources in MiB. Outgoing sources must also fit the selected kind's
166
+ native limit: ordinary files have a 512 MiB ceiling (536,870,912 bytes);
167
+ video sources allow 50 MiB; images and voice retain 26,214,383 bytes. Native File Transfer PDFs passed
168
+ acceptance, recipient opening and cold byte verification at 32 MiB and 50 MiB.
169
+ Full-client 512 MiB send validation remains pending. The 50 MiB file also passed
170
+ real OpenClaw storage; see the [native capability checklist](../native-client-rust/FEATURES.md).
171
+ Raising `mediaMaxMb` cannot extend the kind-specific limit. Kind selection occurs
172
+ before staging, using the local extension or HTTP content type. Ordinary audio
173
+ is a file unless `audioAsVoice` selects voice.
174
+
175
+ For ordinary files above 26,214,383 bytes, the adapter polls the same submitted
176
+ job for up to an hour, allowing upload and exact readback before final
177
+ message submission. A timeout or status-poll failure preserves the job ID and idempotency key and never
178
+ automatically sends another copy. Unsupported cache-hit responses or uncertain
179
+ reservations/submissions require inspection. See [Send attachments](https://thisnick.github.io/agent-wechat/use/media/)
180
+ for CLI, HTTP API and SDK examples.
181
+
182
+ Video sends default to a prepared H.264/AAC playback copy and thumbnail. For one
183
+ video attachment, the regular message tool accepts
184
+ `channelData: { "agent-wechat": { "videoQuality": "original" } }` to include the
185
+ unchanged source too; `"normal"` selects playback only. Set `mediaMaxMb` to allow
186
+ the source size. `forceDocument` (or host alias `asDocument`) sends the media as
187
+ an ordinary file and cannot be combined with video quality. Video jobs poll the
188
+ same job for up to an hour. See the native capability checklist for separate
189
+ server, recipient and local-writeback validation.
190
+
191
+
162
192
  ## Optional Gateway facade
163
193
 
164
194
  Set `native.gatewayFacade: {"enabled": true}` to register `/plugins/agent-wechat/native` on the Gateway. The default is disabled. A custom prefix must remain namespaced under `/plugins/...`; changing daemon configuration requires a Gateway reload.