@spences10/pi-coding-preferences 0.0.6 → 0.0.8

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 -2
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,7 +1,14 @@
1
1
  # @spences10/pi-coding-preferences
2
2
 
3
- Pi extension that blocks configured coding workflow anti-patterns
4
- before agents run them.
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-coding-preferences?color=CB3837&logo=npm&logoColor=white)](https://www.npmjs.com/package/@spences10/pi-coding-preferences)
6
+ [![license](https://img.shields.io/npm/l/@spences10/pi-coding-preferences)](https://www.npmjs.com/package/@spences10/pi-coding-preferences)
7
+
8
+ Keep agents aligned with your local coding standards before bad
9
+ commands run. `pi-coding-preferences` turns workflow preferences—like
10
+ using `rg` instead of `grep`—into lightweight guardrails that nudge
11
+ the model toward the project’s conventions.
5
12
 
6
13
  It ships with default workflow preferences. Add user preferences at
7
14
  `~/.pi/agent/coding-preferences.json` and project preferences at
@@ -32,3 +39,14 @@ pi install npm:@spences10/pi-coding-preferences
32
39
  This is opt-in: installing the package globally applies it to your Pi
33
40
  sessions, but projects and downstream users do not inherit it unless
34
41
  they install the package.
42
+
43
+ ## Development
44
+
45
+ Package scripts build transitive workspace dependencies first, then
46
+ run local tools through Vite+ with `vp exec`.
47
+
48
+ ```bash
49
+ pnpm --filter @spences10/pi-coding-preferences run check
50
+ pnpm --filter @spences10/pi-coding-preferences run test
51
+ pnpm --filter @spences10/pi-coding-preferences run build
52
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spences10/pi-coding-preferences",
3
- "version": "0.0.6",
4
- "description": "Pi extension that nudges agents toward configured coding workflow preferences",
3
+ "version": "0.0.8",
4
+ "description": "Configurable Pi guardrails that keep agents aligned with local coding workflow preferences before bad commands run",
5
5
  "keywords": [
6
6
  "agent-guardrails",
7
7
  "coding-preferences",
@@ -46,13 +46,13 @@
46
46
  },
47
47
  "scripts": {
48
48
  "build": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run build:self",
49
- "build:self": "tsc -p tsconfig.build.json",
49
+ "build:self": "vp exec tsc -p tsconfig.build.json",
50
50
  "check": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run check:self",
51
- "check:self": "tsc --noEmit -p tsconfig.json",
51
+ "check:self": "vp exec tsc --noEmit -p tsconfig.json",
52
52
  "test": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run test:self",
53
- "test:self": "vitest run",
54
- "test:watch": "vitest",
55
- "coverage:self": "vitest run --coverage",
53
+ "test:self": "vp exec vitest run",
54
+ "test:watch": "vp exec vitest",
55
+ "coverage:self": "vp exec vitest run --coverage",
56
56
  "coverage": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run coverage:self"
57
57
  }
58
58
  }