@aliou/pi-guardrails 0.7.4 → 0.7.6

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
@@ -8,29 +8,14 @@ Security hooks to prevent potentially dangerous operations.
8
8
 
9
9
  ## Installation
10
10
 
11
- Install via the pi-extensions package:
12
-
13
11
  ```bash
14
- pi install git:github.com/aliou/pi-extensions
15
- ```
16
-
17
- Or selectively in your `settings.json`:
18
-
19
- ```json
20
- {
21
- "packages": [
22
- {
23
- "source": "git:github.com/aliou/pi-extensions",
24
- "extensions": ["extensions/guardrails"]
25
- }
26
- ]
27
- }
12
+ pi install npm:@aliou/pi-guardrails
28
13
  ```
29
14
 
30
- Or from npm:
15
+ Or from git:
31
16
 
32
17
  ```bash
33
- pi install npm:@aliou/pi-guardrails
18
+ pi install git:github.com/aliou/pi-guardrails
34
19
  ```
35
20
 
36
21
  ## Features
@@ -40,7 +25,7 @@ pi install npm:@aliou/pi-guardrails
40
25
 
41
26
  All hooks use structural shell parsing via `@aliou/sh` to avoid false positives from keywords inside commit messages, grep patterns, heredocs, or file paths. On parse failure, each hook falls back to regex matching (previous behavior).
42
27
 
43
- > **Migration note**: The `preventBrew`, `preventPython`, `enforcePackageManager`, and `packageManager` fields have been removed from guardrails and moved to the [`@aliou/pi-toolchain`](../toolchain) extension. Old configs containing these fields are auto-cleaned on first load with a one-time warning. Install `@aliou/pi-toolchain` and configure `.pi/extensions/toolchain.json` instead.
28
+ > **Migration note**: The `preventBrew`, `preventPython`, `enforcePackageManager`, and `packageManager` fields have been removed from guardrails and moved to the [`@aliou/pi-toolchain`](https://github.com/aliou/pi-toolchain) extension. Old configs containing these fields are auto-cleaned on first load with a one-time warning. Install `@aliou/pi-toolchain` and configure `.pi/extensions/toolchain.json` instead.
44
29
 
45
30
  ## Configuration
46
31
 
@@ -225,7 +210,7 @@ interface GuardrailsDangerousEvent {
225
210
  }
226
211
  ```
227
212
 
228
- The [presenter extension](../presenter) listens for `guardrails:dangerous` events and plays a notification sound.
213
+ The [presenter extension](https://github.com/aliou/pi-extensions/tree/main/extensions/presenter) listens for `guardrails:dangerous` events and plays a notification sound.
229
214
 
230
215
  ## Hooks
231
216
 
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@aliou/pi-guardrails",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
+ "license": "MIT",
4
5
  "type": "module",
5
6
  "private": false,
6
7
  "keywords": [
@@ -12,11 +13,11 @@
12
13
  ],
13
14
  "repository": {
14
15
  "type": "git",
15
- "url": "https://github.com/aliou/pi-extensions"
16
+ "url": "https://github.com/aliou/pi-guardrails"
16
17
  },
17
18
  "pi": {
18
19
  "extensions": [
19
- "./index.ts"
20
+ "./src/index.ts"
20
21
  ],
21
22
  "video": "https://assets.aliou.me/pi-extensions/demos/pi-guardrails.mp4"
22
23
  },
@@ -24,18 +25,37 @@
24
25
  "access": "public"
25
26
  },
26
27
  "files": [
27
- "*.ts",
28
- "hooks",
29
- "commands",
30
- "components",
31
- "utils",
28
+ "src",
32
29
  "README.md"
33
30
  ],
34
31
  "dependencies": {
35
- "@aliou/sh": "^0.1.0",
36
- "@aliou/pi-utils-settings": "^0.4.0"
32
+ "@aliou/pi-utils-settings": "^0.4.0",
33
+ "@aliou/sh": "^0.1.0"
37
34
  },
38
35
  "peerDependencies": {
39
36
  "@mariozechner/pi-coding-agent": ">=0.51.0"
37
+ },
38
+ "devDependencies": {
39
+ "@biomejs/biome": "^2.3.13",
40
+ "@changesets/cli": "^2.27.11",
41
+ "@mariozechner/pi-coding-agent": "0.52.7",
42
+ "@mariozechner/pi-tui": "0.52.7",
43
+ "@sinclair/typebox": "^0.34.48",
44
+ "@types/node": "^25.0.10",
45
+ "husky": "^9.1.7",
46
+ "typescript": "^5.9.3"
47
+ },
48
+ "peerDependenciesMeta": {
49
+ "@mariozechner/pi-coding-agent": {
50
+ "optional": true
51
+ }
52
+ },
53
+ "scripts": {
54
+ "typecheck": "tsc --noEmit",
55
+ "lint": "biome check",
56
+ "format": "biome check --write",
57
+ "changeset": "changeset",
58
+ "version": "changeset version",
59
+ "release": "pnpm changeset publish"
40
60
  }
41
61
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes