@zhushanwen/pi-permission 1.4.1 → 1.4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-permission",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
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",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"tree-sitter-bash": "^0.25.1",
|
|
52
52
|
"web-tree-sitter": "^0.26.11",
|
|
53
|
-
"@zhushanwen/pi-ext-guards": "0.
|
|
54
|
-
"@zhushanwen/pi-extension-logger": "0.
|
|
55
|
-
"@zhushanwen/pi-llm-shared": "0.
|
|
53
|
+
"@zhushanwen/pi-ext-guards": "0.3.0",
|
|
54
|
+
"@zhushanwen/pi-extension-logger": "0.6.0",
|
|
55
|
+
"@zhushanwen/pi-llm-shared": "0.7.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@earendil-works/pi-ai": "^0.84.4",
|
|
@@ -26,7 +26,7 @@ beforeEach(() => {
|
|
|
26
26
|
afterEach(() => {
|
|
27
27
|
if (originalAgentDirEnv === undefined) delete process.env.PI_CODING_AGENT_DIR;
|
|
28
28
|
else process.env.PI_CODING_AGENT_DIR = originalAgentDirEnv;
|
|
29
|
-
rmSync(tempAgentDir, { recursive: true, force: true });
|
|
29
|
+
rmSync(tempAgentDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 20 });
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
/** 最小 mock:只记录 registerCommand 和 on 调用 */
|
|
@@ -140,7 +140,7 @@ afterEach(() => {
|
|
|
140
140
|
delete process.env.PI_CODING_AGENT_DIR;
|
|
141
141
|
Reflect.deleteProperty(globalThis, FOOTER_HANDSHAKE_KEY);
|
|
142
142
|
Reflect.deleteProperty(globalThis, REQUEST_RENDER_KEY);
|
|
143
|
-
if (existsSync(TMP_ROOT)) rmSync(TMP_ROOT, { recursive: true, force: true });
|
|
143
|
+
if (existsSync(TMP_ROOT)) rmSync(TMP_ROOT, { recursive: true, force: true, maxRetries: 5, retryDelay: 20 });
|
|
144
144
|
});
|
|
145
145
|
|
|
146
146
|
// ──────────────────────── 测试 ────────────────────────
|
|
@@ -90,7 +90,7 @@ beforeEach(() => {
|
|
|
90
90
|
afterEach(() => {
|
|
91
91
|
delete process.env.PI_CODING_AGENT_DIR;
|
|
92
92
|
Reflect.deleteProperty(globalThis, FOOTER_HANDSHAKE_KEY);
|
|
93
|
-
if (existsSync(TMP_ROOT)) rmSync(TMP_ROOT, { recursive: true, force: true });
|
|
93
|
+
if (existsSync(TMP_ROOT)) rmSync(TMP_ROOT, { recursive: true, force: true, maxRetries: 5, retryDelay: 20 });
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
describe("session_start 双派发幂等守卫(oncePerProcess,u-audit-fix)", () => {
|