jinzd-ai-cli 0.4.212 → 0.4.213
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 +7 -0
- package/README.zh-CN.md +7 -0
- package/dist/{batch-WIKFEOAZ.js → batch-PKY63TME.js} +2 -2
- package/dist/{chunk-IFZX26K7.js → chunk-7NTFMLJJ.js} +1 -1
- package/dist/{chunk-HW2ALWQJ.js → chunk-FGUKBIYO.js} +2 -2
- package/dist/{chunk-LU6FBJQ5.js → chunk-G3PW3AOB.js} +1 -1
- package/dist/{chunk-GBBVCZ4W.js → chunk-IWLVH32D.js} +1 -1
- package/dist/{chunk-KE4B3NOQ.js → chunk-J35V3IAH.js} +1 -1
- package/dist/{chunk-NYCBOVNF.js → chunk-MRGWPCFQ.js} +1 -1
- package/dist/{chunk-N5LB3PPL.js → chunk-THNECAAY.js} +250 -59
- package/dist/{chunk-HX6N6QEY.js → chunk-UDMU4FUF.js} +1 -1
- package/dist/{ci-X3LNUFZV.js → ci-HBZ6CIW5.js} +2 -2
- package/dist/{constants-KDWG4KR4.js → constants-CAUBTSFW.js} +1 -1
- package/dist/{doctor-cli-TJTWIW7U.js → doctor-cli-5Z5UWYW6.js} +4 -4
- package/dist/electron-server.js +473 -214
- package/dist/{hub-JWSV4MKC.js → hub-ZRADBR76.js} +1 -1
- package/dist/index.js +79 -18
- package/dist/{run-tests-D7YBY4XB.js → run-tests-7J3PNWVS.js} +1 -1
- package/dist/{run-tests-H4Q2PRX6.js → run-tests-DSOJBJWA.js} +2 -2
- package/dist/{server-OFKGDRYI.js → server-PWBWHVYB.js} +4 -4
- package/dist/{server-VNCN7AY5.js → server-U4I7RI42.js} +83 -7
- package/dist/{task-orchestrator-AL2E642M.js → task-orchestrator-RUXWRMQV.js} +4 -4
- package/dist/{usage-LB6REWPO.js → usage-2P6TIBTN.js} +2 -2
- package/dist/web/client/app.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -364,6 +364,13 @@ Built-in profiles:
|
|
|
364
364
|
```
|
|
365
365
|
|
|
366
366
|
`/status` and `/security status` show the active profile. The Web status payload also includes `permissionProfile` for UI surfaces.
|
|
367
|
+
### Auto Mode
|
|
368
|
+
|
|
369
|
+
`/auto on|off|status` enables a session-scoped, rule-based action classifier. It is designed to reduce confirmation fatigue without widening `/yolo`: `/yolo` still only skips write confirmations, while destructive tools still require confirmation.
|
|
370
|
+
|
|
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
|
+
|
|
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.
|
|
367
374
|
### Network Policy
|
|
368
375
|
|
|
369
376
|
`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.).
|
package/README.zh-CN.md
CHANGED
|
@@ -370,6 +370,13 @@ HTTPS_PROXY=http://127.0.0.1:10809 aicli
|
|
|
370
370
|
}
|
|
371
371
|
```
|
|
372
372
|
|
|
373
|
+
### Auto Mode
|
|
374
|
+
|
|
375
|
+
`/auto on|off|status` 会开启会话级规则分类器,用来减少确认疲劳,但不会扩大 `/yolo` 的边界:`/yolo` 仍然只跳过 write 确认,destructive 仍需确认。
|
|
376
|
+
|
|
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
|
+
|
|
379
|
+
Auto Mode 不会被项目配置静默开启。用 `/permissions recently-denied` 查看最近被 Auto Mode 拒绝的动作,用 `/permissions clear-denied` 清空本会话列表。
|
|
373
380
|
### 可信 Hooks 生命周期
|
|
374
381
|
|
|
375
382
|
旧版 `preToolExecution` / `postToolExecution` 仍然兼容。新版生命周期 hooks 配置在 `hooks.events.<EventName>` 下,通过 `AICLI_HOOK_EVENT_JSON` 接收 JSON 事件;命令 stdout 如果输出 JSON,ai-cli 会读取 `allow`、`deny`、`ask`、`warning` 或 `warnings` 等决策。
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ConfigManager
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MRGWPCFQ.js";
|
|
5
5
|
import "./chunk-TZQHYZKT.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-IWLVH32D.js";
|
|
7
7
|
import {
|
|
8
8
|
atomicWriteFileSync
|
|
9
9
|
} from "./chunk-IW3Q7AE5.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
truncateForPersist
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-THNECAAY.js";
|
|
5
5
|
import {
|
|
6
6
|
APP_NAME,
|
|
7
7
|
CONFIG_DIR_NAME,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
MCP_PROTOCOL_VERSION,
|
|
14
14
|
MCP_TOOL_PREFIX,
|
|
15
15
|
VERSION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IWLVH32D.js";
|
|
17
17
|
import {
|
|
18
18
|
atomicWriteFileSync
|
|
19
19
|
} from "./chunk-IW3Q7AE5.js";
|