@spences10/pi-confirm-destructive 0.0.12 → 0.0.14
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 +9 -4
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# @spences10/pi-confirm-destructive
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@spences10/pi-confirm-destructive)
|
|
4
3
|
[](https://viteplus.dev)
|
|
5
4
|
[](https://vitest.dev)
|
|
5
|
+
[](https://www.npmjs.com/package/@spences10/pi-confirm-destructive)
|
|
6
|
+
[](https://www.npmjs.com/package/@spences10/pi-confirm-destructive)
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
Stop destructive shell commands before they surprise you.
|
|
9
|
+
`pi-confirm-destructive` adds a Git-aware confirmation layer for
|
|
10
|
+
deletes, resets, force pushes, and other risky actions so agents pause
|
|
11
|
+
before changing or losing work.
|
|
10
12
|
|
|
11
13
|
## Installation
|
|
12
14
|
|
|
@@ -64,6 +66,9 @@ confirm-destructive guard.
|
|
|
64
66
|
|
|
65
67
|
## Development
|
|
66
68
|
|
|
69
|
+
Package scripts build transitive workspace dependencies first, then
|
|
70
|
+
run local tools through Vite+ with `vp exec`.
|
|
71
|
+
|
|
67
72
|
```bash
|
|
68
73
|
pnpm --filter @spences10/pi-confirm-destructive run check
|
|
69
74
|
pnpm --filter @spences10/pi-confirm-destructive run test
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spences10/pi-confirm-destructive",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Pi
|
|
3
|
+
"version": "0.0.14",
|
|
4
|
+
"description": "Git-aware Pi guardrail that asks for confirmation before destructive shell actions can change or lose work",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"confirm",
|
|
7
7
|
"destructive",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run build:self",
|
|
51
|
-
"build:self": "tsc -p tsconfig.build.json",
|
|
51
|
+
"build:self": "vp exec tsc -p tsconfig.build.json",
|
|
52
52
|
"check": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run check:self",
|
|
53
|
-
"check:self": "tsc --noEmit -p tsconfig.json",
|
|
53
|
+
"check:self": "vp exec tsc --noEmit -p tsconfig.json",
|
|
54
54
|
"test": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run test:self",
|
|
55
|
-
"test:self": "vitest run",
|
|
56
|
-
"test:watch": "vitest",
|
|
57
|
-
"coverage:self": "vitest run --coverage",
|
|
55
|
+
"test:self": "vp exec vitest run",
|
|
56
|
+
"test:watch": "vp exec vitest",
|
|
57
|
+
"coverage:self": "vp exec vitest run --coverage",
|
|
58
58
|
"coverage": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run coverage:self"
|
|
59
59
|
}
|
|
60
60
|
}
|