@spences10/pi-svelte-guardrails 0.0.7 → 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.
- package/README.md +16 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# @spences10/pi-svelte-guardrails
|
|
2
2
|
|
|
3
|
+
[](https://viteplus.dev)
|
|
4
|
+
[](https://vitest.dev)
|
|
5
|
+
[](https://www.npmjs.com/package/@spences10/pi-svelte-guardrails)
|
|
6
|
+
[](https://www.npmjs.com/package/@spences10/pi-svelte-guardrails)
|
|
7
|
+
|
|
3
8
|
Pi extension that blocks agents from writing discouraged Svelte
|
|
4
9
|
patterns. In `my-pi`, this guardrail is built in and enabled by
|
|
5
10
|
default. In vanilla Pi, install it explicitly with this package.
|
|
@@ -68,3 +73,14 @@ the pattern. The current default remains `block`.
|
|
|
68
73
|
When a tool result says a write was blocked, the target file was not
|
|
69
74
|
created or modified. Rewrite the change without `$effect` and run the
|
|
70
75
|
write/edit again before reporting success.
|
|
76
|
+
|
|
77
|
+
## Development
|
|
78
|
+
|
|
79
|
+
Package scripts build transitive workspace dependencies first, then
|
|
80
|
+
run local tools through Vite+ with `vp exec`.
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pnpm --filter @spences10/pi-svelte-guardrails run check
|
|
84
|
+
pnpm --filter @spences10/pi-svelte-guardrails run test
|
|
85
|
+
pnpm --filter @spences10/pi-svelte-guardrails run build
|
|
86
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spences10/pi-svelte-guardrails",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Pi extension that blocks discouraged Svelte patterns before agents write them",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-guardrails",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run build:self",
|
|
50
|
-
"build:self": "tsc -p tsconfig.build.json",
|
|
50
|
+
"build:self": "vp exec tsc -p tsconfig.build.json",
|
|
51
51
|
"check": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run check:self",
|
|
52
|
-
"check:self": "tsc --noEmit -p tsconfig.json",
|
|
52
|
+
"check:self": "vp exec tsc --noEmit -p tsconfig.json",
|
|
53
53
|
"test": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run test:self",
|
|
54
|
-
"test:self": "vitest run",
|
|
55
|
-
"test:watch": "vitest",
|
|
56
|
-
"coverage:self": "vitest run --coverage",
|
|
54
|
+
"test:self": "vp exec vitest run",
|
|
55
|
+
"test:watch": "vp exec vitest",
|
|
56
|
+
"coverage:self": "vp exec vitest run --coverage",
|
|
57
57
|
"coverage": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run coverage:self"
|
|
58
58
|
}
|
|
59
59
|
}
|