@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.
Files changed (2) hide show
  1. package/README.md +9 -4
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # @spences10/pi-confirm-destructive
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@spences10/pi-confirm-destructive?color=CB3837&logo=npm)](https://www.npmjs.com/package/@spences10/pi-confirm-destructive)
4
3
  [![built with Vite+](https://img.shields.io/badge/built%20with-Vite+-646CFF?logo=vite&logoColor=white)](https://viteplus.dev)
5
4
  [![tested with Vitest](https://img.shields.io/badge/tested%20with-Vitest-6E9F18?logo=vitest&logoColor=white)](https://vitest.dev)
5
+ [![npm version](https://img.shields.io/npm/v/@spences10/pi-confirm-destructive?color=CB3837&logo=npm&logoColor=white)](https://www.npmjs.com/package/@spences10/pi-confirm-destructive)
6
+ [![license](https://img.shields.io/npm/l/@spences10/pi-confirm-destructive)](https://www.npmjs.com/package/@spences10/pi-confirm-destructive)
6
7
 
7
- Git-aware destructive action guard for the Pi coding agent.
8
-
9
- Maintained in the `my-pi` Vite+ workspace and tested with Vitest.
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.12",
4
- "description": "Pi extension that confirms destructive actions before they run",
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
  }