@zonease/aiworker-cli 0.5.2 → 0.5.3

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
@@ -108,6 +108,7 @@ npm install -g @zonease/aiworker-cli
108
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)。
109
109
 
110
110
  **项目级 worker**(PLAN-023,可选):`aiworker up --soul developer` 会在当前目录 `<cwd>/.aiworker/` 落项目级 layout(每 project 一份独立 worker.db / master key / persona / skills;不要求当前目录是 git repo),随后完成能力预检并启动本地 HTTP/admin。engine(claude / codex / cursor)保持 user 级共享。`aiworker scope` 诊断当前命中的 layout;显式拆步时仍可用 `aiworker init` / `aiworker doctor` / `aiworker serve`。详见 [docs/cli.md §`aiworker up`](docs/cli.md)。
111
+ 新项目默认使用安全的 `http/default` stub executor;准备好 Codex / Claude 等本机 CLI 后,用 `aiworker executor select --engine codex --apply` 显式切换 task executor,再用 `aiworker executor doctor --engine codex` 检查 engine CLI、executor-native capability manifest 与 projection compatibility。
111
112
 
112
113
  ```sh
113
114
  cd ~/code/my-project
@@ -259,8 +260,16 @@ aiworker fleet config get <workerId>
259
260
 
260
261
  # 2. 切到 claude-code default variant(model=sonnet, timeout=120s)
261
262
  NEW='{
262
- "brains": [],
263
- "brainWriteTarget": "",
263
+ "brains": [
264
+ {
265
+ "id": "local-filesystem",
266
+ "type": "filesystem",
267
+ "priority": 100,
268
+ "readOnly": false,
269
+ "config": {}
270
+ }
271
+ ],
272
+ "brainWriteTarget": "local-filesystem",
264
273
  "brainRetrieval": "first-match",
265
274
  "executor": { "engine": "claude-code", "variant": "default" },
266
275
  "channels": [],
@@ -268,7 +277,12 @@ NEW='{
268
277
  }'
269
278
  aiworker fleet config set <workerId> "$NEW" --if-match 1
270
279
 
271
- # 3. chat 验证
280
+ # 3. 如果是在该 worker 主机 / 项目目录内调试,可只读确认 brain source / skills / memories
281
+ aiworker brain status
282
+ aiworker brain skills
283
+ aiworker brain memories --limit 20
284
+
285
+ # 4. chat 验证
272
286
  aiworker fleet chat <workerId> '请用中文回我一句话'
273
287
  # {"kind":"accepted",...}
274
288
  # {"kind":"chat.message","payload":{"role":"assistant","content":"...claude 真实回复..."}}