@spences10/pi-redact 0.0.9 → 0.0.11

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 -5
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,13 +1,14 @@
1
1
  # @spences10/pi-redact
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@spences10/pi-redact?color=CB3837&logo=npm)](https://www.npmjs.com/package/@spences10/pi-redact)
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-redact?color=CB3837&logo=npm&logoColor=white)](https://www.npmjs.com/package/@spences10/pi-redact)
6
+ [![license](https://img.shields.io/npm/l/@spences10/pi-redact)](https://www.npmjs.com/package/@spences10/pi-redact)
6
7
 
7
- Pi extension that redacts likely secrets from tool output before the
8
- model sees them.
9
-
10
- Maintained in the `my-pi` Vite+ workspace and tested with Vitest.
8
+ Prevent accidental secret exposure before tool output reaches the
9
+ model. `pi-redact` scans command results for likely tokens, keys, and
10
+ credentials, replacing them with safe placeholders while preserving
11
+ enough context to debug.
11
12
 
12
13
  ## Installation
13
14
 
@@ -92,6 +93,9 @@ proper secret hygiene as the primary control:
92
93
 
93
94
  ## Development
94
95
 
96
+ Package scripts build transitive workspace dependencies first, then
97
+ run local tools through Vite+ with `vp exec`.
98
+
95
99
  ```bash
96
100
  pnpm --filter @spences10/pi-redact run check
97
101
  pnpm --filter @spences10/pi-redact run test
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spences10/pi-redact",
3
- "version": "0.0.9",
4
- "description": "Pi extension that redacts secrets from tool output before the model sees them",
3
+ "version": "0.0.11",
4
+ "description": "Tool-output redaction for Pi that replaces likely secrets before they reach the model context",
5
5
  "keywords": [
6
6
  "pi",
7
7
  "pi-package",
@@ -54,12 +54,12 @@
54
54
  },
55
55
  "scripts": {
56
56
  "build": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run build:self",
57
- "build:self": "tsc -p tsconfig.build.json",
57
+ "build:self": "vp exec tsc -p tsconfig.build.json",
58
58
  "check": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run check:self",
59
- "check:self": "tsc --noEmit -p tsconfig.json",
59
+ "check:self": "vp exec tsc --noEmit -p tsconfig.json",
60
60
  "test": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run test:self",
61
- "test:self": "vitest run",
62
- "coverage:self": "vitest run --coverage",
61
+ "test:self": "vp exec vitest run",
62
+ "coverage:self": "vp exec vitest run --coverage",
63
63
  "coverage": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run coverage:self"
64
64
  }
65
65
  }