jinzd-ai-cli 0.4.213 → 0.4.215
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 +5 -2
- package/README.zh-CN.md +5 -2
- package/dist/{batch-PKY63TME.js → batch-74H5SA7P.js} +2 -2
- package/dist/{chunk-MRGWPCFQ.js → chunk-2224JGA6.js} +1 -1
- package/dist/{chunk-UDMU4FUF.js → chunk-3TSHNZKI.js} +1 -1
- package/dist/{chunk-THNECAAY.js → chunk-6C3JYNM6.js} +380 -74
- package/dist/{chunk-IWLVH32D.js → chunk-7JES2NWR.js} +1 -1
- package/dist/{chunk-FGUKBIYO.js → chunk-KL7UBVSQ.js} +2 -2
- package/dist/{chunk-J35V3IAH.js → chunk-RS4WBI73.js} +1 -1
- package/dist/{chunk-7NTFMLJJ.js → chunk-X6OXS7KU.js} +1 -1
- package/dist/{chunk-G3PW3AOB.js → chunk-ZOF5NFKW.js} +1 -1
- package/dist/{ci-HBZ6CIW5.js → ci-3ALK2XJN.js} +2 -2
- package/dist/{constants-CAUBTSFW.js → constants-IN2HXJK7.js} +1 -1
- package/dist/{doctor-cli-5Z5UWYW6.js → doctor-cli-7XL4TCVT.js} +4 -4
- package/dist/electron-server.js +558 -184
- package/dist/{hub-ZRADBR76.js → hub-VAOG5EY6.js} +1 -1
- package/dist/index.js +17 -16
- package/dist/{run-tests-7J3PNWVS.js → run-tests-J2JQ57R3.js} +1 -1
- package/dist/{run-tests-DSOJBJWA.js → run-tests-QJD43AML.js} +2 -2
- package/dist/{server-U4I7RI42.js → server-VGPZOISQ.js} +88 -8
- package/dist/{server-PWBWHVYB.js → server-WDLV3W4F.js} +4 -4
- package/dist/{task-orchestrator-RUXWRMQV.js → task-orchestrator-QFOCO3N7.js} +4 -4
- package/dist/{usage-2P6TIBTN.js → usage-IEB476NE.js} +2 -2
- package/dist/web/client/actions.js +1 -0
- package/dist/web/client/app.js +183 -11
- package/dist/web/client/index.html +21 -3
- package/dist/web/client/style.css +62 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -166,7 +166,7 @@ AI autonomously invokes these 27 tools during conversations:
|
|
|
166
166
|
| `google_search` | safe | Google Custom Search API |
|
|
167
167
|
| `run_interactive` | safe | Run interactive programs with stdin input |
|
|
168
168
|
| `run_tests` | safe | Auto-detect and run project tests (JUnit XML parsing) |
|
|
169
|
-
| `spawn_agent` | safe | Delegate subtasks to isolated
|
|
169
|
+
| `spawn_agent` | safe | Delegate subtasks to named isolated agents (`agent`: explorer/worker/reviewer/security/tester) |
|
|
170
170
|
| `ask_user` | safe | Pause and ask the user a question |
|
|
171
171
|
| `save_memory` | safe | Persist important info across sessions |
|
|
172
172
|
| `write_todos` | safe | Task breakdown with live progress rendering |
|
|
@@ -371,8 +371,11 @@ Built-in profiles:
|
|
|
371
371
|
Auto Mode may auto-approve low-risk actions such as explicit writes inside the workspace/temp roots, read-only HTTP tools, plain non-force `git push`, and dependency installs already declared in `package.json` or a lockfile. It denies high-risk shapes such as `curl | bash`, force push, and likely secret exfiltration. Production deploys, database migrations, IaC destroy, credential/permission changes, and third-party agent loops fall back to confirmation.
|
|
372
372
|
|
|
373
373
|
Auto Mode is not enabled by project config. Use `/permissions recently-denied` to inspect actions it blocked, or `/permissions clear-denied` to clear that session list.
|
|
374
|
-
###
|
|
374
|
+
### Agent Team
|
|
375
|
+
|
|
376
|
+
`spawn_agent` can now use named roles from built-ins or JSON configs in `~/.aicli/agents/` and `.aicli/agents/`. Built-ins are `explorer`, `worker`, `reviewer`, `security`, and `tester`. Agent configs may set description, provider/model, system instructions, allowed/blocked tools, permission profile, max tool rounds, and context policy; they can only narrow the inherited sub-agent safety boundary. Use `/agent list|switch|stop|summary` to inspect roles and recent sub-agent runs.
|
|
375
377
|
|
|
378
|
+
### Network Policy
|
|
376
379
|
`networkPolicy` is disabled by default for backward compatibility. When enabled, it governs network-facing tools before execution: `web_fetch`, `web_search`, `google_search`, MCP tools, and shell commands that look like network access (`curl`, `wget`, `git clone/fetch/pull/push`, package installs, SSH/SCP, etc.).
|
|
377
380
|
|
|
378
381
|
```json
|
package/README.zh-CN.md
CHANGED
|
@@ -158,7 +158,7 @@ AI 在对话中可自主调用 28 个工具:
|
|
|
158
158
|
| `google_search` | 安全 | Google 自定义搜索 |
|
|
159
159
|
| `run_interactive` | 安全 | 运行交互式程序并输入 |
|
|
160
160
|
| `run_tests` | 安全 | 自动检测并运行测试(JUnit XML 解析) |
|
|
161
|
-
| `spawn_agent` | 安全 |
|
|
161
|
+
| `spawn_agent` | 安全 | 委派子任务给命名隔离 agent(`agent`: explorer/worker/reviewer/security/tester) |
|
|
162
162
|
| `ask_user` | 安全 | 暂停并向用户提问 |
|
|
163
163
|
| `save_memory` | 安全 | 跨会话持久化重要信息 |
|
|
164
164
|
| `write_todos` | 安全 | 任务拆解,终端实时渲染进度 |
|
|
@@ -377,8 +377,11 @@ HTTPS_PROXY=http://127.0.0.1:10809 aicli
|
|
|
377
377
|
Auto Mode 可自动通过低风险动作,例如 workspace/temp 根目录内的显式写入、只读 HTTP 工具、非 force 的普通 `git push`、已经写在 `package.json` 或 lockfile 中的依赖安装。它会拒绝 `curl | bash`、force push、疑似 secret 外传;生产部署、数据库迁移、IaC destroy、IAM/token/key/权限变更、第三方 agent loop 默认进入确认。
|
|
378
378
|
|
|
379
379
|
Auto Mode 不会被项目配置静默开启。用 `/permissions recently-denied` 查看最近被 Auto Mode 拒绝的动作,用 `/permissions clear-denied` 清空本会话列表。
|
|
380
|
-
###
|
|
380
|
+
### Agent Team
|
|
381
|
+
|
|
382
|
+
`spawn_agent` 现在支持命名角色,来源包括内置角色以及 `~/.aicli/agents/`、`.aicli/agents/` 下的 JSON 配置。内置角色包括 `explorer`、`worker`、`reviewer`、`security`、`tester`。agent 配置可声明 description、provider/model、system instructions、allowed/blocked tools、permission profile、max tool rounds、context policy;这些配置只能在继承的子代理安全边界内继续收窄,不能越权放宽。使用 `/agent list|switch|stop|summary` 查看角色和最近子代理运行记录。
|
|
381
383
|
|
|
384
|
+
### 可信 Hooks 生命周期
|
|
382
385
|
旧版 `preToolExecution` / `postToolExecution` 仍然兼容。新版生命周期 hooks 配置在 `hooks.events.<EventName>` 下,通过 `AICLI_HOOK_EVENT_JSON` 接收 JSON 事件;命令 stdout 如果输出 JSON,ai-cli 会读取 `allow`、`deny`、`ask`、`warning` 或 `warnings` 等决策。
|
|
383
386
|
|
|
384
387
|
```json
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ConfigManager
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2224JGA6.js";
|
|
5
5
|
import "./chunk-TZQHYZKT.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-7JES2NWR.js";
|
|
7
7
|
import {
|
|
8
8
|
atomicWriteFileSync
|
|
9
9
|
} from "./chunk-IW3Q7AE5.js";
|