@zonease/aiworker-cli 0.3.0 → 0.4.0
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 +3 -0
- package/aiworker.js +229 -204
- package/package.json +3 -2
- package/web/fleet/assets/index-BPew1ixe.css +2 -0
- package/web/fleet/assets/index-DzBnJ6fr.js +20 -0
- package/web/fleet/favicon.svg +4 -0
- package/web/fleet/index.html +14 -0
- package/web/worker/assets/index-BPew1ixe.css +2 -0
- package/web/worker/assets/index-ZLEe-oRM.js +30 -0
- package/web/worker/favicon.svg +4 -0
- package/web/worker/index.html +14 -0
package/README.md
CHANGED
|
@@ -102,6 +102,8 @@ npm install -g @zonease/aiworker-cli
|
|
|
102
102
|
|
|
103
103
|
binary 跑在 `~/.bun/bin/aiworker` 或 `$(npm bin -g)/aiworker`。第一次跑任意命令时自动 mint master key 写到 `~/.aiworker/.env`(chmod 0600)。
|
|
104
104
|
|
|
105
|
+
**项目级 worker**(PLAN-023,可选):在 git repo 内 `aiworker init` 默认在 `<cwd>/.aiworker/` 落项目级 layout(每 project 一份独立 worker.db / master key / persona / skills),engine(claude / codex / cursor)保持 user 级共享。`aiworker scope` 诊断当前命中的 layout。详见 [docs/cli.md §`aiworker init`](docs/cli.md)。
|
|
106
|
+
|
|
105
107
|
### 本地开发
|
|
106
108
|
|
|
107
109
|
```sh
|
|
@@ -360,6 +362,7 @@ apps/{api, cli, web} + packages/{core, gateway, gateway-proto, shared, storage-s
|
|
|
360
362
|
- **timing-safe** bearer 比较
|
|
361
363
|
- **5 channel webhook 强制验签**(Telegram / WhatsApp / Lark / LINE / Web binding token)
|
|
362
364
|
- **Caddy 路径分流**:`/ws` basicauth 守 operator + 已配对 worker,`/enroll-ws` 仅接受 OTP submit;fail-closed(缺 `/etc/caddy/auth.snippet` 直接拒启动,BUG-007)
|
|
365
|
+
- **`/admin/*`(fleet + worker UI)** 与 `/ws`、`/api/*` 同等级——公网必须走 basicauth。新发布 worker bundle 不含 secret,但 prompt 用户输入 bearer 的登录界面如果裸暴露会被钓鱼。`aiworker {gateway start, serve}` 默认挂 `/admin/*`,关掉用 `--no-serve-web` 或 env `AIWORKER_GATEWAY_NO_SERVE_WEB=1` / `AIWORKER_WORKER_NO_SERVE_WEB=1`(PLAN-022 / FEAT-033)
|
|
363
366
|
|
|
364
367
|
---
|
|
365
368
|
|