@zonease/aiworker-cli 0.4.7 → 0.4.9
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 +9 -4
- package/aiworker-bun.js +498 -0
- package/aiworker.js +48 -478
- package/package.json +2 -1
- package/web/fleet/assets/index-Ba3f2IoY.js +20 -0
- package/web/fleet/index.html +1 -1
- package/web/worker/assets/index-y8aomiPl.js +30 -0
- package/web/worker/index.html +3 -3
- package/web/fleet/assets/index-CG6-NnyZ.js +0 -20
- package/web/worker/assets/index-e7kVxdqq.js +0 -30
package/README.md
CHANGED
|
@@ -95,14 +95,19 @@ aiworker chat w_ntssfzwwzzq0 'hello' # NDJSON 流式输出
|
|
|
95
95
|
### 已发布
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
bun install -g @zonease/aiworker-cli
|
|
99
|
-
|
|
98
|
+
bun install -g @zonease/aiworker-cli
|
|
99
|
+
|
|
100
|
+
# 已安装 Bun 时也可免全局安装:
|
|
101
|
+
bunx @zonease/aiworker-cli --help
|
|
102
|
+
|
|
103
|
+
# npm / npx 也可作为分发入口,但运行时仍需要 bun 在 PATH:
|
|
104
|
+
npx @zonease/aiworker-cli --help
|
|
100
105
|
npm install -g @zonease/aiworker-cli
|
|
101
106
|
```
|
|
102
107
|
|
|
103
|
-
binary 跑在 `~/.bun/bin/aiworker` 或 `$(npm bin -g)/aiworker`。第一次跑任意命令时自动 mint master key 写到 `~/.aiworker/.env`(chmod 0600)。
|
|
108
|
+
AIWorker CLI 是 Bun-native:`npx` / `npm install -g` 不会把 runtime 改成 Node。没有 Bun 时,CLI 会提示安装 Bun 或改用 GitHub Releases 的 standalone binary。binary 跑在 `~/.bun/bin/aiworker` 或 `$(npm bin -g)/aiworker`。第一次跑任意命令时自动 mint master key 写到 `~/.aiworker/.env`(chmod 0600)。
|
|
104
109
|
|
|
105
|
-
**项目级 worker**(PLAN-023
|
|
110
|
+
**项目级 worker**(PLAN-023,可选):`aiworker init` 默认在当前目录 `<cwd>/.aiworker/` 落项目级 layout(每 project 一份独立 worker.db / master key / persona / skills;不要求当前目录是 git repo),engine(claude / codex / cursor)保持 user 级共享。`aiworker scope` 诊断当前命中的 layout。详见 [docs/cli.md §`aiworker init`](docs/cli.md)。
|
|
106
111
|
|
|
107
112
|
### 本地开发
|
|
108
113
|
|