@zhushanwen/pi-permission 1.3.0 → 1.3.1
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/package.json +3 -2
- package/src/index.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-permission",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Pi permission extension — four permission modes (yolo/auto/approve/strict) with three-layer pipeline (AST + rules + AI classifier).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"tree-sitter-bash": "^0.25.1",
|
|
31
31
|
"web-tree-sitter": "^0.26.11",
|
|
32
|
-
"@zhushanwen/pi-llm-shared": "0.3.
|
|
32
|
+
"@zhushanwen/pi-llm-shared": "0.3.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@earendil-works/pi-ai": "*",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@earendil-works/pi-ai": "*",
|
|
52
52
|
"@earendil-works/pi-coding-agent": "*",
|
|
53
53
|
"@earendil-works/pi-tui": "*",
|
|
54
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
54
55
|
"vitest": "^4.1.8"
|
|
55
56
|
},
|
|
56
57
|
"scripts": {
|
package/src/index.ts
CHANGED
|
@@ -227,7 +227,8 @@ export default function permissionExtension(pi: ExtensionAPI): void {
|
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* 注册 permission footer line renderer(consumer 端握手)。
|
|
230
|
-
* 不依赖 ctx.ui:
|
|
230
|
+
* 不依赖 ctx.ui.theme:theme 不从 ExtensionUIContext 取——pi 的 ExtensionUIContext
|
|
231
|
+
* 虽有 theme 字段(types.d.ts:174-175),但 statusline 渲染的权威 theme 由
|
|
231
232
|
* pi-statusline 每次 render 时经 render(ctx, theme) 传入(render hook 的 theme 参数 = pi Theme 对象)。
|
|
232
233
|
* headless(rpc/json mode)时 render 收不到有效 theme → 返回 null,statusline 跳过。
|
|
233
234
|
*/
|