pi-verdict 0.2.3 → 0.2.4

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
@@ -61,7 +61,7 @@ pi --extension ./extensions/auto-mode.ts
61
61
  - `allow`/`deny` are JS regex arrays; **`deny` wins over `allow`**, both beat the classifier
62
62
  - matched against the **full command string** for bash, the **absolute path** for file tools (read/write/edit/grep/find/ls); other tools (MCP etc.) always go to the classifier
63
63
  - `builtinDenyFloor: false` turns the built-in danger/path floor off entirely (risk accepted by you; the classifier and your rules remain)
64
- - `classifierModel: "provider/model-id"` persistently sets the classifier model (e.g. a fast flash-class model); precedence is flag > env > config > session model (self-reflection); an invalid value falls back to the session model with a one-time warning
64
+ - `classifierModel: "provider/model-id"` sets the classifier model (e.g. a fast flash-class model); precedence is flag > env > config > session model (self-reflection); an invalid value falls back to the session model with a one-time warning
65
65
  - the spec accepts pi's native `--model` thinking suffix: `"zai/glm-5.3-flash:low"` sets classifier thinking to effort low (default without suffix: thinking explicitly off — the [measured](research/thinking-param-blackhole.md) default)
66
66
  - first run generates a template at `~/.pi/agent/config/pi-verdict.json` (honors `PI_CODING_AGENT_DIR`); changes apply to new sessions
67
67
 
package/README.zh-CN.md CHANGED
@@ -47,7 +47,7 @@ pi --extension ./extensions/auto-mode.ts
47
47
  | `PI_AUTO_MODE_MODEL` | — | 模型配置的环境变量形式 |
48
48
  | `PI_AUTO_MODE_DEBUG=1` | 关 | 调试的环境变量形式(flag 优先) |
49
49
 
50
- ### 用户规则(`config/pi-verdict.json`)
50
+ ### 用户自定义规则(`config/pi-verdict.json`)
51
51
 
52
52
  ```json
53
53
  {
@@ -61,7 +61,7 @@ pi --extension ./extensions/auto-mode.ts
61
61
  - `allow`/`deny` 为 JS 正则数组;**`deny` 优先于 `allow`**,两者都优先于分类器
62
62
  - 匹配目标:bash = **完整命令串**;文件类工具(read/write/edit/grep/find/ls)= **绝对路径**;其余工具(MCP 等)恒走分类器
63
63
  - `builtinDenyFloor: false` 可整体关闭内置危险/路径拦截(风险自担;分类器与你的规则仍在)
64
- - `classifierModel: "provider/model-id"` 持久指定分类器模型(如轻量 flash 类);优先级 flag > env > config > 自省;无效值回退会话模型并一次性警告
64
+ - `classifierModel: "provider/model-id"` 指定分类器模型(如轻量 flash 类);优先级 flag > env > config > 自省;无效值回退会话模型并一次性警告
65
65
  - spec 支持 pi 原生 `--model` 思考级别后缀:`"zai/glm-5.3-flash:low"` 将分类器思考设为 effort low(无后缀缺省 = 显式关思考,[实测](research/thinking-param-blackhole.md)背书的默认)
66
66
  - 首次运行自动生成模板 `~/.pi/agent/config/pi-verdict.json`(尊重 `PI_CODING_AGENT_DIR`);修改后新会话生效
67
67
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-verdict",
3
- "version": "0.2.3",
4
- "description": "Pi coding agent extension: automatic tool-call permission verdicts rule layer + model classifier with three-state adjudication (allow/ask/deny), fail-closed, evidence-driven",
3
+ "version": "0.2.4",
4
+ "description": "A permission gate for Pi in the style of Claude Code's auto mode",
5
5
  "author": "Jesset (https://github.com/jesset)",
6
6
  "type": "module",
7
7
  "main": "extensions/auto-mode.ts",
@@ -52,4 +52,4 @@
52
52
  "@types/node": "^26.3.0",
53
53
  "typescript": "^7.0.2"
54
54
  }
55
- }
55
+ }