@spences10/pi-child-env 0.1.5 → 0.1.7

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 +20 -1
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # @spences10/pi-child-env
2
2
 
3
- Shared safe environment builder for Pi child processes.
3
+ [![built with Vite+](https://img.shields.io/badge/built%20with-Vite+-646CFF?logo=vite&logoColor=white)](https://viteplus.dev)
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-child-env?color=CB3837&logo=npm&logoColor=white)](https://www.npmjs.com/package/@spences10/pi-child-env)
6
+ [![license](https://img.shields.io/npm/l/@spences10/pi-child-env)](https://www.npmjs.com/package/@spences10/pi-child-env)
7
+
8
+ Launch Pi child processes without leaking unsafe environment state.
9
+ `pi-child-env` centralizes the allowlist/scrubbing rules extensions
10
+ use for subprocesses, so tools get the variables they need while
11
+ secrets and noisy runtime internals stay out.
4
12
 
5
13
  By default it passes only a minimal non-secret baseline (`PATH`,
6
14
  `PI_CODING_AGENT_DIR`, locale, terminal, temp, home/user, color, and
@@ -34,3 +42,14 @@ Profile-specific allowlists:
34
42
  - `team-mode` — `MY_PI_TEAM_MODE_ENV_ALLOWLIST`
35
43
 
36
44
  Use allowlists only for variables the child process truly needs.
45
+
46
+ ## Development
47
+
48
+ Package scripts build transitive workspace dependencies first, then
49
+ run local tools through Vite+ with `vp exec`.
50
+
51
+ ```bash
52
+ pnpm --filter @spences10/pi-child-env run check
53
+ pnpm --filter @spences10/pi-child-env run test
54
+ pnpm --filter @spences10/pi-child-env run build
55
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spences10/pi-child-env",
3
- "version": "0.1.5",
4
- "description": "Shared safe environment builder for Pi child processes",
3
+ "version": "0.1.7",
4
+ "description": "Safe environment builder for Pi child processes that passes needed variables while scrubbing secrets and noisy runtime state",
5
5
  "keywords": [
6
6
  "env",
7
7
  "pi",
@@ -37,12 +37,12 @@
37
37
  },
38
38
  "scripts": {
39
39
  "build": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run build:self",
40
- "build:self": "tsc -p tsconfig.build.json",
40
+ "build:self": "vp exec tsc -p tsconfig.build.json",
41
41
  "check": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run check:self",
42
- "check:self": "tsc --noEmit -p tsconfig.json",
42
+ "check:self": "vp exec tsc --noEmit -p tsconfig.json",
43
43
  "test": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run test:self",
44
- "test:self": "vitest run",
45
- "coverage:self": "vitest run --coverage",
44
+ "test:self": "vp exec vitest run",
45
+ "coverage:self": "vp exec vitest run --coverage",
46
46
  "coverage": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run coverage:self"
47
47
  }
48
48
  }