@zeldrisho/pi-gate 0.7.3 → 0.7.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/CHANGELOG.md +9 -1
- package/package.json +3 -6
- package/src/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.7.4] - 2026-11-01
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Shorten approval timeout and cancellation notices.
|
|
15
|
+
- Remove the package's Node.js engine restriction; the current Node.js LTS release is the tested runtime.
|
|
16
|
+
|
|
10
17
|
## [0.7.3] - 2026-10-28
|
|
11
18
|
|
|
12
19
|
### Changed
|
|
@@ -118,7 +125,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
118
125
|
- support `prompt`, `block`, and `allow` actions, with longest-pattern-wins resolution
|
|
119
126
|
- block rather than auto-approve in non-UI modes
|
|
120
127
|
|
|
121
|
-
[Unreleased]: https://github.com/zeldrisho/pi-packages/compare/pi-gate-v0.7.
|
|
128
|
+
[Unreleased]: https://github.com/zeldrisho/pi-packages/compare/pi-gate-v0.7.4...HEAD
|
|
129
|
+
[0.7.4]: https://github.com/zeldrisho/pi-packages/compare/pi-gate-v0.7.3...pi-gate-v0.7.4
|
|
122
130
|
[0.7.3]: https://github.com/zeldrisho/pi-packages/compare/pi-gate-v0.7.2...pi-gate-v0.7.3
|
|
123
131
|
[0.7.2]: https://github.com/zeldrisho/pi-packages/compare/pi-gate-v0.7.1...pi-gate-v0.7.2
|
|
124
132
|
[0.7.1]: https://github.com/zeldrisho/pi-packages/compare/pi-gate-v0.7.0...pi-gate-v0.7.1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeldrisho/pi-gate",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Pi extension that gates bash commands and protects its configuration from tool edits",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"command-blocking",
|
|
@@ -36,16 +36,13 @@
|
|
|
36
36
|
"@earendil-works/pi-tui": "^1.4.0",
|
|
37
37
|
"typebox": "^1.4.2",
|
|
38
38
|
"typescript": "^7.0.2",
|
|
39
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@1.
|
|
40
|
-
"vite-plus": "1.
|
|
39
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.4.0",
|
|
40
|
+
"vite-plus": "1.4.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@earendil-works/pi-coding-agent": "*",
|
|
44
44
|
"@earendil-works/pi-tui": "*"
|
|
45
45
|
},
|
|
46
|
-
"engines": {
|
|
47
|
-
"node": ">=24"
|
|
48
|
-
},
|
|
49
46
|
"pi": {
|
|
50
47
|
"extensions": [
|
|
51
48
|
"./src/index.ts"
|
package/src/index.ts
CHANGED
|
@@ -138,7 +138,7 @@ function reasonRuleName(pattern: string): string {
|
|
|
138
138
|
|
|
139
139
|
/** Formats an approval timeout with the matched rule, elapsed limit in seconds, and retry guidance. */
|
|
140
140
|
function timeoutReason(pattern: string, timeoutMs: number): string {
|
|
141
|
-
return `pi-gate:
|
|
141
|
+
return `pi-gate: approval timed out after ${timeoutMs / 1_000}s (rule "${reasonRuleName(pattern)}"); command not run. Ask the user before retrying.`;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
function reportHerdrBlocked(pi: ExtensionAPI, ctx: { mode?: string }, active: boolean): void {
|
|
@@ -342,7 +342,7 @@ export default function piGate(pi: ExtensionAPI): void {
|
|
|
342
342
|
return {
|
|
343
343
|
block: true,
|
|
344
344
|
reason:
|
|
345
|
-
"pi-gate: approval cancelled or policy changed; command not run. Ask the user
|
|
345
|
+
"pi-gate: approval cancelled or policy changed; command not run. Ask the user before retrying.",
|
|
346
346
|
terminate: true,
|
|
347
347
|
};
|
|
348
348
|
}
|