@agent-wechat/cli 0.16.0 → 1.0.0-beta.10
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 +65 -172
- package/THIRD_PARTY_NOTICES.txt +291 -0
- package/native-release.json +53 -0
- package/package.json +13 -16
- package/scripts/native-check-package.mjs +21 -0
- package/scripts/native-install.mjs +21 -0
- package/scripts/native-launcher.mjs +4 -0
- package/scripts/native-runtime.mjs +193 -0
- package/dist/cli.js +0 -8802
package/README.md
CHANGED
|
@@ -1,214 +1,107 @@
|
|
|
1
1
|
# @agent-wechat/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`wx` is the native Rust client and foreground daemon. The npm package installs a matching release executable; it does not implement the native protocol in JavaScript. Linux x64/ARM64 with glibc 2.36+ is validated. The release matrix also builds macOS ARM64 and native Windows x64/ARM64 candidates; native-machine account acceptance is pending. musl remains unsupported. Official-app profile takeover is Linux-only. Clients on other systems can use the HTTP API of a supported Linux daemon. `wx --json version` and `/v1/status` expose the runtime and account capabilities; unsupported official schemas fail explicitly.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
After a matching release has been published:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @agent-wechat/cli
|
|
10
|
+
npm install -g @agent-wechat/cli@VERSION
|
|
11
|
+
wx --json version
|
|
11
12
|
```
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
During the native beta series, use a published exact version such as `1.0.0-beta.0`, or `@agent-wechat/cli@beta`. The stable `latest` channel retains the old container CLI until promotion. See the beta release instructions before assuming a beta has been published.
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
The explicit npm installation downloads one exact-version asset over verified HTTPS. Its size and SHA-256 must match `native-release.json` inside the npm package, then a bounded local identity check must report the same version, native backend, Rust target and serve capability before atomic installation. Normal command invocation never downloads a missing runtime. A missing manifest, unsupported platform, corrupt asset or wrong backend is an error.
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`wx up` automatically pulls the Docker image from ghcr.io if it isn't found locally.
|
|
20
|
-
|
|
21
|
-
> **Note:** agent-wechat requires `SYS_PTRACE` and `seccomp=unconfined` to interact with the WeChat desktop process. It cannot run in serverless or restricted container environments (AWS Fargate, Cloud Run, etc.). Use a VM or bare-metal Docker host.
|
|
22
|
-
|
|
23
|
-
## Quick Start
|
|
18
|
+
Installers that disable lifecycle scripts are supported:
|
|
24
19
|
|
|
25
20
|
```bash
|
|
26
|
-
|
|
27
|
-
wx
|
|
28
|
-
|
|
29
|
-
# Check status
|
|
30
|
-
wx status
|
|
31
|
-
|
|
32
|
-
# Log in (displays QR code in terminal)
|
|
33
|
-
wx auth login
|
|
34
|
-
|
|
35
|
-
# List chats
|
|
36
|
-
wx chats list
|
|
37
|
-
|
|
38
|
-
# Send a message
|
|
39
|
-
wx messages send <chatId> --text "Hello"
|
|
21
|
+
npm install -g --ignore-scripts @agent-wechat/cli@VERSION
|
|
22
|
+
wx-native-install
|
|
40
23
|
```
|
|
41
24
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Container
|
|
45
|
-
|
|
46
|
-
| Command | Description |
|
|
47
|
-
|---------|-------------|
|
|
48
|
-
| `wx up [--proxy user:pass@host:port]` | Start the agent-wechat container |
|
|
49
|
-
| `wx down` | Stop and remove the container |
|
|
50
|
-
| `wx logs` | Tail container logs |
|
|
51
|
-
| `wx status` | Show container up/down status and login status (when available) |
|
|
52
|
-
|
|
53
|
-
### Auth
|
|
54
|
-
|
|
55
|
-
| Command | Description |
|
|
56
|
-
|---------|-------------|
|
|
57
|
-
| `wx auth login` | Log in to WeChat (shows QR code) |
|
|
58
|
-
| `wx auth logout` | Log out of WeChat |
|
|
59
|
-
| `wx auth status` | Check login status |
|
|
60
|
-
| `wx auth token` | Show current auth token |
|
|
61
|
-
| `wx auth token --regenerate` | Generate a new auth token |
|
|
62
|
-
|
|
63
|
-
Login options:
|
|
64
|
-
- `--timeout <seconds>` — login timeout (default: 300)
|
|
65
|
-
- `--new` — switch to a new account instead of existing
|
|
66
|
-
|
|
67
|
-
### Chats
|
|
68
|
-
|
|
69
|
-
| Command | Description |
|
|
70
|
-
|---------|-------------|
|
|
71
|
-
| `wx chats list` | List chats from WeChat |
|
|
72
|
-
| `wx chats get <chatId>` | Get details for a specific chat |
|
|
73
|
-
| `wx chats find <name>` | Search chats by display name |
|
|
74
|
-
| `wx chats open <chatId>` | Open a chat in the WeChat UI |
|
|
75
|
-
|
|
76
|
-
Options: `--limit <n>`, `--offset <n>`, `--json`
|
|
77
|
-
|
|
78
|
-
### Messages
|
|
79
|
-
|
|
80
|
-
| Command | Description |
|
|
81
|
-
|---------|-------------|
|
|
82
|
-
| `wx messages list <chatId>` | List messages in a chat |
|
|
83
|
-
| `wx messages send <chatId>` | Send a message |
|
|
84
|
-
| `wx messages media <chatId> <localId>` | Download a media attachment |
|
|
85
|
-
|
|
86
|
-
Send options:
|
|
87
|
-
- `--text "message"` — send text
|
|
88
|
-
- `--image photo.jpg` — send an image
|
|
89
|
-
- `--file document.pdf` — send a file
|
|
25
|
+
For offline deployment, provision the release binary and its `wx-vVERSION-checksums.json` into one local directory, then run:
|
|
90
26
|
|
|
91
|
-
|
|
92
|
-
-
|
|
93
|
-
|
|
94
|
-
- `--thumbnail` — save the cached preview
|
|
95
|
-
- `--best` — explicitly choose the default best-available image behavior
|
|
96
|
-
|
|
97
|
-
Media retrieval does not open a chat. Use `wx chats open <chatId>` separately
|
|
98
|
-
if WeChat needs to cache a regular photo's standard-size copy.
|
|
99
|
-
|
|
100
|
-
### Sessions
|
|
101
|
-
|
|
102
|
-
| Command | Description |
|
|
103
|
-
|---------|-------------|
|
|
104
|
-
| `wx session list` | List all sessions |
|
|
105
|
-
| `wx session create <name>` | Create a new session |
|
|
106
|
-
| `wx session start <id>` | Start a session |
|
|
107
|
-
| `wx session stop <id>` | Stop a session |
|
|
108
|
-
| `wx session delete <id>` | Delete a session |
|
|
109
|
-
|
|
110
|
-
### Debug
|
|
111
|
-
|
|
112
|
-
| Command | Description |
|
|
113
|
-
|---------|-------------|
|
|
114
|
-
| `wx screenshot [file]` | Save a screenshot (default: screenshot.png) |
|
|
115
|
-
| `wx a11y` | Dump the accessibility tree (`--format json|aria`) |
|
|
116
|
-
|
|
117
|
-
## Global Options
|
|
118
|
-
|
|
119
|
-
| Option | Description |
|
|
120
|
-
|--------|-------------|
|
|
121
|
-
| `-s, --session <name>` | Use a specific session (default: "default") |
|
|
122
|
-
| `-V, --version` | Show version |
|
|
123
|
-
| `-h, --help` | Show help |
|
|
27
|
+
```bash
|
|
28
|
+
AGENT_WECHAT_NATIVE_ARTIFACT_DIR=/absolute/release-assets wx-native-install
|
|
29
|
+
```
|
|
124
30
|
|
|
125
|
-
|
|
31
|
+
The offline manifest must agree with the npm-bundled manifest. Alternatively, provision a trusted executable yourself and set `AGENT_WECHAT_NATIVE_BINARY=/absolute/path/to/wx`; the launcher verifies its native identity/version rather than downloading. This explicit override trusts the operator-provisioned bytes and does not assert they are identical to a release asset. `AGENT_WECHAT_SKIP_NATIVE_INSTALL=1` defers installation during image/package provisioning; commands remain unavailable until the runtime is provided. Do not disable TLS verification.
|
|
126
32
|
|
|
127
|
-
The
|
|
33
|
+
The OpenClaw plugin uses an already installed global native `wx` or a configured absolute executable. It never downloads binaries or relies on its plugin installer running npm lifecycle scripts. For managed processes, prefer the actual release executable path to avoid an extra launcher process; the npm launcher also forwards arguments, standard streams, exit codes and termination signals.
|
|
128
34
|
|
|
129
|
-
|
|
130
|
-
|--------|-------------|
|
|
131
|
-
| `AGENT_WECHAT_URL` | Server URL (default: `http://localhost:6174`) |
|
|
132
|
-
| `AGENT_WECHAT_TOKEN` | Auth token (overrides token file) |
|
|
133
|
-
| `~/.config/agent-wechat/token` | Auto-generated auth token |
|
|
35
|
+
## Configuration and storage
|
|
134
36
|
|
|
135
|
-
|
|
37
|
+
```bash
|
|
38
|
+
wx config show
|
|
39
|
+
wx serve --server-config /absolute/server/config.toml
|
|
40
|
+
```
|
|
136
41
|
|
|
137
|
-
|
|
42
|
+
The default server configuration is `$XDG_CONFIG_HOME/agent-wechat/server/config.toml`, or `~/.config/agent-wechat/server/config.toml`. The durable root defaults to `$XDG_DATA_HOME/agent-wechat`, or `~/.local/share/agent-wechat`. `wx serve --data-dir PATH` and `AGENT_WECHAT_DATA_DIR` override it. Server config can select `listen`, `dataDir` and `tokenFile`; relative references resolve against the config file. Paths are not credentials.
|
|
138
43
|
|
|
139
|
-
|
|
44
|
+
The initial workflow takes over an existing official profile in place. Close the official app, start `wx serve`, then use a second terminal:
|
|
140
45
|
|
|
141
|
-
|
|
46
|
+
```bash
|
|
47
|
+
wx auth login --official
|
|
48
|
+
# Or choose a specific path on the daemon host:
|
|
49
|
+
wx auth login --official=/absolute/official-profile
|
|
50
|
+
```
|
|
142
51
|
|
|
143
|
-
|
|
52
|
+
The daemon binds the stored identity, attempts saved-device login and derives verified database keys after authentication. The official app stays closed while this daemon owns the files.
|
|
144
53
|
|
|
145
|
-
|
|
54
|
+
Recall an own message using its opaque message ID and exact decimal-string
|
|
55
|
+
server ID from history or a verified send receipt:
|
|
146
56
|
|
|
147
57
|
```bash
|
|
148
|
-
wx
|
|
58
|
+
wx --account example messages recall MESSAGE_ID --server-id SERVER_ID
|
|
59
|
+
wx --account example operations get OPERATION_ID
|
|
149
60
|
```
|
|
150
61
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
62
|
+
Use `--detach` to return the durable operation immediately. A private receipt is
|
|
63
|
+
written before submission; the same target uses a stable default idempotency
|
|
64
|
+
key. An uncertain result exits8 and must be inspected rather than automatically
|
|
65
|
+
resubmitted. WeChat decides eligibility, and stopping the watcher does not cancel
|
|
66
|
+
the recall. Recalled messages remain as placeholders; their media is unavailable
|
|
67
|
+
through the daemon. Raw journals, cached files and backups are retained.
|
|
155
68
|
|
|
156
|
-
|
|
69
|
+
Lower-level registration and experimental profile copies are also available:
|
|
157
70
|
|
|
158
71
|
```bash
|
|
159
|
-
|
|
72
|
+
# Only use an explicitly stopped/quiescent profile; never share a writer.
|
|
73
|
+
wx store attach --account example --path /absolute/official-profile --source-stopped
|
|
74
|
+
wx store import --account copied --source /absolute/stopped-profile --source-stopped
|
|
75
|
+
wx store export --account copied --destination /absolute/new-export --source-stopped
|
|
160
76
|
```
|
|
161
77
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
### Option 2: Docker Compose (production / networked)
|
|
165
|
-
|
|
166
|
-
For production or when running alongside other services (e.g., OpenClaw), use the `docker-compose.yml` in the repo root as a reference:
|
|
167
|
-
|
|
168
|
-
```yaml
|
|
169
|
-
services:
|
|
170
|
-
agent-wechat:
|
|
171
|
-
image: ghcr.io/thisnick/agent-wechat:latest
|
|
172
|
-
container_name: agent-wechat
|
|
173
|
-
security_opt:
|
|
174
|
-
- seccomp=unconfined
|
|
175
|
-
cap_add:
|
|
176
|
-
- SYS_PTRACE
|
|
177
|
-
- NET_ADMIN
|
|
178
|
-
ports:
|
|
179
|
-
- "6174:6174"
|
|
180
|
-
volumes:
|
|
181
|
-
- agent-wechat-data:/data
|
|
182
|
-
- agent-wechat-home:/home/wechat
|
|
183
|
-
- ~/.config/agent-wechat/token:/data/auth-token:ro
|
|
184
|
-
environment:
|
|
185
|
-
- PROXY=${PROXY:-} # optional: user:pass@host:port
|
|
186
|
-
restart: unless-stopped
|
|
187
|
-
|
|
188
|
-
volumes:
|
|
189
|
-
agent-wechat-data:
|
|
190
|
-
agent-wechat-home:
|
|
191
|
-
```
|
|
78
|
+
Direct mode keeps official profile bytes at the selected path and daemon-only state under `dataDir`. Fresh creation, export and returning files to the official app are outside the initial supported takeover scope. Import/export copy the same format; they do not convert schema or refresh login trust. Use `--help` for the implemented command surface. Never copy or attach a running production profile implicitly.
|
|
192
79
|
|
|
193
|
-
|
|
80
|
+
## Build and validate without deployment
|
|
81
|
+
|
|
82
|
+
From the repository root:
|
|
194
83
|
|
|
195
84
|
```bash
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
85
|
+
pnpm --filter @agent-wechat/cli... build
|
|
86
|
+
pnpm --filter @agent-wechat/cli test
|
|
87
|
+
pnpm native:build
|
|
88
|
+
pnpm native:test
|
|
89
|
+
pnpm native:release:build
|
|
90
|
+
node scripts/native-package-smoke.mjs artifacts/native
|
|
91
|
+
# Substitute the exact artifact version emitted by the build:
|
|
92
|
+
python3 scripts/native-cli-smoke.py artifacts/native/wx-vVERSION-linux-x64-gnu
|
|
93
|
+
python3 scripts/native-cli-fixture-test.py artifacts/native/wx-vVERSION-linux-x64-gnu
|
|
94
|
+
python3 scripts/native-export-smoke.py artifacts/native/wx-vVERSION-linux-x64-gnu
|
|
199
95
|
```
|
|
200
96
|
|
|
201
|
-
|
|
97
|
+
Source-workspace postinstall defers release installation; run the Rust binary from its target directory or use an explicit trusted executable override. The local release builder tests the Rust workspace, verifies executable identity and creates versioned assets; it does not publish, deploy or log an account in. The package smoke test packs/unpacks an actual npm tarball and installs from local artifacts into a temporary directory.
|
|
202
98
|
|
|
203
|
-
|
|
99
|
+
Deployment examples and the deliberate release preparation sequence are in [deploy/native](../../deploy/native/README.md). The previous container CLI and Wechaty packages are retired; see the [migration guide](https://thisnick.github.io/agent-wechat/setup/migrate/).
|
|
204
100
|
|
|
205
|
-
|
|
101
|
+
## Package helper scripts
|
|
206
102
|
|
|
207
|
-
|
|
208
|
-
# From the repo root — auto-detects host architecture
|
|
209
|
-
pnpm build:image
|
|
103
|
+
`native-install.mjs` runs during npm installation, or through `wx-native-install` for offline/disabled-script installs. It selects the host architecture, checks the npm-bundled hash and verifies executable identity before atomic installation. `native-launcher.mjs` only runs an already installed executable.
|
|
210
104
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
```
|
|
105
|
+
`native-check-package.mjs` is the prepack/prepublish gate. It checks version/source/target/checksum metadata; before publication it additionally requires both architecture assets to exist and match the package's manifest. A local pack smoke can use one architecture fragment; publication requires the complete matrix. These helpers belong to the existing CLI package, not additional npm packages.
|
|
106
|
+
|
|
107
|
+
Candidate platform validation and remaining profile boundaries are tracked in [the acceptance checklist](../../dev-notes/native-platform-acceptance.md). Windows executables are named `wx.exe`; the npm launcher chooses the OS/CPU-specific asset. A native ARM64 Node installation selects the native Windows ARM64 executable.
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
Native wx third-party notices
|
|
2
|
+
|
|
3
|
+
NOTICE
|
|
4
|
+
|
|
5
|
+
The AES-GCM known-answer fixture in src/mmtls.rs is reproduced from
|
|
6
|
+
code/outer.py in Citizen Lab's wechat-security-report repository:
|
|
7
|
+
https://github.com/citizenlab/wechat-security-report
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2025 Mona Wang
|
|
10
|
+
Used under the MIT License; see fixtures/LICENSE-CITIZENLAB.
|
|
11
|
+
|
|
12
|
+
The public MMTLS verification pins and business ECDH/signature pins are public
|
|
13
|
+
protocol constants from the Linux 4.1.13.26 default configuration. They are not
|
|
14
|
+
account credentials. Reference artifact SHA-256:
|
|
15
|
+
2749535f299ba67feb8ef80cab898bb0531fa8f376b16f8a72db706811c84132
|
|
16
|
+
|
|
17
|
+
Other test vectors contain synthetic inputs, RFC 5869 test-case 1 data, or
|
|
18
|
+
independently generated Python cryptography/zlib ciphertext. No private capture,
|
|
19
|
+
account identity, token, device state, message, or runtime executable is shipped.
|
|
20
|
+
|
|
21
|
+
The portable SILK SDK sources under vendor/silk are from kn007/silk-v3-decoder,
|
|
22
|
+
pinned commit 507be6bca8ce1fb977a061481f1d79e8c610e309:
|
|
23
|
+
https://github.com/kn007/silk-v3-decoder
|
|
24
|
+
|
|
25
|
+
The wrapper project is MIT licensed; the SILK SDK sources retain their Skype
|
|
26
|
+
BSD-style notices. Full license text and an allowlist of SHA-256 source hashes
|
|
27
|
+
are in vendor/silk/LICENSE-MIT, LICENSE-SDK and SOURCE.json. Only portable C and
|
|
28
|
+
headers are included. No codec binary from the official client is loaded.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
vendor/silk/LICENSE-MIT
|
|
32
|
+
|
|
33
|
+
The MIT License (MIT)
|
|
34
|
+
|
|
35
|
+
Copyright (c) 2020 Karl Chen
|
|
36
|
+
|
|
37
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
38
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
39
|
+
in the Software without restriction, including without limitation the rights
|
|
40
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
41
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
42
|
+
furnished to do so, subject to the following conditions:
|
|
43
|
+
|
|
44
|
+
The above copyright notice and this permission notice shall be included in all
|
|
45
|
+
copies or substantial portions of the Software.
|
|
46
|
+
|
|
47
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
48
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
49
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
50
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
51
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
52
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
53
|
+
SOFTWARE.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
vendor/silk/LICENSE-SDK
|
|
57
|
+
|
|
58
|
+
Copyright (c) 2006-2012, Skype Limited. All rights reserved.
|
|
59
|
+
Redistribution and use in source and binary forms, with or without
|
|
60
|
+
modification, (subject to the limitations in the disclaimer below)
|
|
61
|
+
are permitted provided that the following conditions are met:
|
|
62
|
+
- Redistributions of source code must retain the above copyright notice,
|
|
63
|
+
this list of conditions and the following disclaimer.
|
|
64
|
+
- Redistributions in binary form must reproduce the above copyright
|
|
65
|
+
notice, this list of conditions and the following disclaimer in the
|
|
66
|
+
documentation and/or other materials provided with the distribution.
|
|
67
|
+
- Neither the name of Skype Limited, nor the names of specific
|
|
68
|
+
contributors, may be used to endorse or promote products derived from
|
|
69
|
+
this software without specific prior written permission.
|
|
70
|
+
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED
|
|
71
|
+
BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
72
|
+
CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
|
|
73
|
+
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
74
|
+
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
75
|
+
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
76
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
77
|
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
|
78
|
+
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
79
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
80
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
81
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
WXGF still-preview decoding
|
|
85
|
+
|
|
86
|
+
WXGF partition discovery uses the approach from sjzar/chatlog, `pkg/util/dat2img/wxgf.go`, commit a16b689f4e7120f3aa3a1bfb42853113101068f1 (Apache License 2.0). The Rust implementation adds bounded parsing, HEVC validation, process limits and still-preview semantics; it does not implement the upstream animation conversion. See LICENSE-CHATLOG.
|
|
87
|
+
|
|
88
|
+
Source: https://github.com/sjzar/chatlog/blob/a16b689f4e7120f3aa3a1bfb42853113101068f1/pkg/util/dat2img/wxgf.go
|
|
89
|
+
|
|
90
|
+
Apache License
|
|
91
|
+
Version 2.0, January 2004
|
|
92
|
+
http://www.apache.org/licenses/
|
|
93
|
+
|
|
94
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
95
|
+
|
|
96
|
+
1. Definitions.
|
|
97
|
+
|
|
98
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
99
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
100
|
+
|
|
101
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
102
|
+
the copyright owner that is granting the License.
|
|
103
|
+
|
|
104
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
105
|
+
other entities that control, are controlled by, or are under common
|
|
106
|
+
control with that entity. For the purposes of this definition,
|
|
107
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
108
|
+
direction or management of such entity, whether by contract or
|
|
109
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
110
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
111
|
+
|
|
112
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
113
|
+
exercising permissions granted by this License.
|
|
114
|
+
|
|
115
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
116
|
+
including but not limited to software source code, documentation
|
|
117
|
+
source, and configuration files.
|
|
118
|
+
|
|
119
|
+
"Object" form shall mean any form resulting from mechanical
|
|
120
|
+
transformation or translation of a Source form, including but
|
|
121
|
+
not limited to compiled object code, generated documentation,
|
|
122
|
+
and conversions to other media types.
|
|
123
|
+
|
|
124
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
125
|
+
Object form, made available under the License, as indicated by a
|
|
126
|
+
copyright notice that is included in or attached to the work
|
|
127
|
+
(an example is provided in the Appendix below).
|
|
128
|
+
|
|
129
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
130
|
+
form, that is based on (or derived from) the Work and for which the
|
|
131
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
132
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
133
|
+
of this License, Derivative Works shall not include works that remain
|
|
134
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
135
|
+
the Work and Derivative Works thereof.
|
|
136
|
+
|
|
137
|
+
"Contribution" shall mean any work of authorship, including
|
|
138
|
+
the original version of the Work and any modifications or additions
|
|
139
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
140
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
141
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
142
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
143
|
+
means any form of electronic, verbal, or written communication sent
|
|
144
|
+
to the Licensor or its representatives, including but not limited to
|
|
145
|
+
communication on electronic mailing lists, source code control systems,
|
|
146
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
147
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
148
|
+
excluding communication that is conspicuously marked or otherwise
|
|
149
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
150
|
+
|
|
151
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
152
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
153
|
+
subsequently incorporated within the Work.
|
|
154
|
+
|
|
155
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
156
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
157
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
158
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
159
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
160
|
+
Work and such Derivative Works in Source or Object form.
|
|
161
|
+
|
|
162
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
163
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
164
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
165
|
+
(except as stated in this section) patent license to make, have made,
|
|
166
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
167
|
+
where such license applies only to those patent claims licensable
|
|
168
|
+
by such Contributor that are necessarily infringed by their
|
|
169
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
170
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
171
|
+
institute patent litigation against any entity (including a
|
|
172
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
173
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
174
|
+
or contributory patent infringement, then any patent licenses
|
|
175
|
+
granted to You under this License for that Work shall terminate
|
|
176
|
+
as of the date such litigation is filed.
|
|
177
|
+
|
|
178
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
179
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
180
|
+
modifications, and in Source or Object form, provided that You
|
|
181
|
+
meet the following conditions:
|
|
182
|
+
|
|
183
|
+
(a) You must give any other recipients of the Work or
|
|
184
|
+
Derivative Works a copy of this License; and
|
|
185
|
+
|
|
186
|
+
(b) You must cause any modified files to carry prominent notices
|
|
187
|
+
stating that You changed the files; and
|
|
188
|
+
|
|
189
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
190
|
+
that You distribute, all copyright, patent, trademark, and
|
|
191
|
+
attribution notices from the Source form of the Work,
|
|
192
|
+
excluding those notices that do not pertain to any part of
|
|
193
|
+
the Derivative Works; and
|
|
194
|
+
|
|
195
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
196
|
+
distribution, then any Derivative Works that You distribute must
|
|
197
|
+
include a readable copy of the attribution notices contained
|
|
198
|
+
within such NOTICE file, excluding those notices that do not
|
|
199
|
+
pertain to any part of the Derivative Works, in at least one
|
|
200
|
+
of the following places: within a NOTICE text file distributed
|
|
201
|
+
as part of the Derivative Works; within the Source form or
|
|
202
|
+
documentation, if provided along with the Derivative Works; or,
|
|
203
|
+
within a display generated by the Derivative Works, if and
|
|
204
|
+
wherever such third-party notices normally appear. The contents
|
|
205
|
+
of the NOTICE file are for informational purposes only and
|
|
206
|
+
do not modify the License. You may add Your own attribution
|
|
207
|
+
notices within Derivative Works that You distribute, alongside
|
|
208
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
209
|
+
that such additional attribution notices cannot be construed
|
|
210
|
+
as modifying the License.
|
|
211
|
+
|
|
212
|
+
You may add Your own copyright statement to Your modifications and
|
|
213
|
+
may provide additional or different license terms and conditions
|
|
214
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
215
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
216
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
217
|
+
the conditions stated in this License.
|
|
218
|
+
|
|
219
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
220
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
221
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
222
|
+
this License, without any additional terms or conditions.
|
|
223
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
224
|
+
the terms of any separate license agreement you may have executed
|
|
225
|
+
with Licensor regarding such Contributions.
|
|
226
|
+
|
|
227
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
228
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
229
|
+
except as required for reasonable and customary use in describing the
|
|
230
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
231
|
+
|
|
232
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
233
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
234
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
235
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
236
|
+
implied, including, without limitation, any warranties or conditions
|
|
237
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
238
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
239
|
+
appropriateness of using or redistributing the Work and assume any
|
|
240
|
+
risks associated with Your exercise of permissions under this License.
|
|
241
|
+
|
|
242
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
243
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
244
|
+
unless required by applicable law (such as deliberate and grossly
|
|
245
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
246
|
+
liable to You for damages, including any direct, indirect, special,
|
|
247
|
+
incidental, or consequential damages of any character arising as a
|
|
248
|
+
result of this License or out of the use or inability to use the
|
|
249
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
250
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
251
|
+
other commercial damages or losses), even if such Contributor
|
|
252
|
+
has been advised of the possibility of such damages.
|
|
253
|
+
|
|
254
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
255
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
256
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
257
|
+
or other liability obligations and/or rights consistent with this
|
|
258
|
+
License. However, in accepting such obligations, You may act only
|
|
259
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
260
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
261
|
+
defend, and hold each Contributor harmless for any liability
|
|
262
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
263
|
+
of your accepting any such warranty or additional liability.
|
|
264
|
+
|
|
265
|
+
END OF TERMS AND CONDITIONS
|
|
266
|
+
|
|
267
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
268
|
+
|
|
269
|
+
To apply the Apache License to your work, attach the following
|
|
270
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
271
|
+
replaced with your own identifying information. (Don't include
|
|
272
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
273
|
+
comment syntax for the file format. We also recommend that a
|
|
274
|
+
file or class name and description of purpose be included on the
|
|
275
|
+
same "printed page" as the copyright notice for easier
|
|
276
|
+
identification within third-party archives.
|
|
277
|
+
|
|
278
|
+
Copyright [yyyy] [name of copyright owner]
|
|
279
|
+
|
|
280
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
281
|
+
you may not use this file except in compliance with the License.
|
|
282
|
+
You may obtain a copy of the License at
|
|
283
|
+
|
|
284
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
285
|
+
|
|
286
|
+
Unless required by applicable law or agreed to in writing, software
|
|
287
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
288
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
289
|
+
See the License for the specific language governing permissions and
|
|
290
|
+
limitations under the License.
|
|
291
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"version": "1.0.0-beta.10",
|
|
4
|
+
"repository": "thisnick/agent-wechat",
|
|
5
|
+
"sourceCommit": "960a6aabc73f2c828da51a07ca6d66eb62b334f4",
|
|
6
|
+
"sourceTreeDirty": false,
|
|
7
|
+
"assets": [
|
|
8
|
+
{
|
|
9
|
+
"name": "wx-v1.0.0-beta.10-darwin-arm64",
|
|
10
|
+
"platform": "darwin",
|
|
11
|
+
"arch": "arm64",
|
|
12
|
+
"rustTarget": "aarch64-apple-darwin",
|
|
13
|
+
"bytes": 23786736,
|
|
14
|
+
"sha256": "73d5e55b5a0f2b749cfbcb6b5c7a7f2374f7a771248e4cb789aef1e4e049998e"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "wx-v1.0.0-beta.10-linux-arm64-gnu",
|
|
18
|
+
"platform": "linux",
|
|
19
|
+
"arch": "arm64",
|
|
20
|
+
"libc": "gnu",
|
|
21
|
+
"minimumGlibc": "2.36",
|
|
22
|
+
"rustTarget": "aarch64-unknown-linux-gnu",
|
|
23
|
+
"bytes": 27866264,
|
|
24
|
+
"sha256": "4c7947aa2ff96609432f39c56eb264ed16662ea74e9a1b0feeddf1d3b77c18c4"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "wx-v1.0.0-beta.10-linux-x64-gnu",
|
|
28
|
+
"platform": "linux",
|
|
29
|
+
"arch": "x64",
|
|
30
|
+
"libc": "gnu",
|
|
31
|
+
"minimumGlibc": "2.36",
|
|
32
|
+
"rustTarget": "x86_64-unknown-linux-gnu",
|
|
33
|
+
"bytes": 29517584,
|
|
34
|
+
"sha256": "085f360afc87e4c2b7bd855f1f34ff01d36b790f59d50de3a4b10a252b673233"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "wx-v1.0.0-beta.10-win32-arm64.exe",
|
|
38
|
+
"platform": "win32",
|
|
39
|
+
"arch": "arm64",
|
|
40
|
+
"rustTarget": "aarch64-pc-windows-msvc",
|
|
41
|
+
"bytes": 21433856,
|
|
42
|
+
"sha256": "746dc74569661b0eb9406f68b053dbe7907c8c95e895cc06b0db826e49631246"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "wx-v1.0.0-beta.10-win32-x64.exe",
|
|
46
|
+
"platform": "win32",
|
|
47
|
+
"arch": "x64",
|
|
48
|
+
"rustTarget": "x86_64-pc-windows-msvc",
|
|
49
|
+
"bytes": 25889792,
|
|
50
|
+
"sha256": "499652c6dbfe9f0d2f0c011147745244d2b519a57caaaf651afada8bab03f109"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|