@zonease/aiworker-cli 0.4.9 → 0.4.11
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 +4 -4
- package/aiworker-bun.js +355 -261
- package/package.json +1 -1
- package/web/fleet/assets/index-HtWCzxMu.js +20 -0
- package/web/fleet/index.html +1 -1
- package/web/worker/assets/index-D4ceJCPk.js +30 -0
- package/web/worker/index.html +1 -1
- package/web/fleet/assets/index-Ba3f2IoY.js +0 -20
- package/web/worker/assets/index-y8aomiPl.js +0 -30
package/README.md
CHANGED
|
@@ -222,11 +222,11 @@ aiworker schedule add <workerId> --expression '0 9 * * *' --prompt '早报' --ch
|
|
|
222
222
|
aiworker schedule remove <workerId> <jobId>
|
|
223
223
|
```
|
|
224
224
|
|
|
225
|
-
Operator 端首次需写 `~/.aiworker/
|
|
225
|
+
Operator 端首次需写 `~/.aiworker/aiworker.json`:
|
|
226
226
|
|
|
227
227
|
```sh
|
|
228
228
|
mkdir -p ~/.aiworker
|
|
229
|
-
cat > ~/.aiworker/
|
|
229
|
+
cat > ~/.aiworker/aiworker.json <<EOF
|
|
230
230
|
{
|
|
231
231
|
"gatewayUrl": "wss://operator:<basicauth-pwd>@your-gateway.example/ws",
|
|
232
232
|
"deviceId": "op-$(uuidgen)",
|
|
@@ -234,7 +234,7 @@ cat > ~/.aiworker/aim.json <<EOF
|
|
|
234
234
|
"defaultWorkerId": ""
|
|
235
235
|
}
|
|
236
236
|
EOF
|
|
237
|
-
chmod 600 ~/.aiworker/
|
|
237
|
+
chmod 600 ~/.aiworker/aiworker.json
|
|
238
238
|
```
|
|
239
239
|
|
|
240
240
|
> gateway 同机 loopback:用 `ws://127.0.0.1:9218/ws`,无需 basicauth/token(loopback bypass)。
|
|
@@ -356,7 +356,7 @@ apps/{api, cli, web} + packages/{core, gateway, gateway-proto, shared, storage-s
|
|
|
356
356
|
|
|
357
357
|
| 现象 | 原因 | 修法 |
|
|
358
358
|
|---|---|---|
|
|
359
|
-
| `aiworker fleet list` → `WebSocket Expected 101 status code` |
|
|
359
|
+
| `aiworker fleet list` → `WebSocket Expected 101 status code` | aiworker.json `gatewayUrl` 缺 `/ws` 或 basicauth | 重写 `~/.aiworker/aiworker.json`(见上) |
|
|
360
360
|
| 公网 `/health` 返回 401 | Caddy basicauth | `curl -u operator:<pwd> https://your-gateway/health` |
|
|
361
361
|
| OTP enroll 后 `aiworker chat` `executor error: OpenAI API key is not configured` | worker 没配 LLM | 走"Worker 配 LLM executor"段,切 claude-code / 配 OpenAI key |
|
|
362
362
|
| systemd `aiworker-gateway` exit 1 `gateway 入口未找到` | 用了 0.2.0 旧 cli | `bun install -g @zonease/aiworker-cli@latest`(≥0.2.1)+ restart |
|