@spences10/pi-svelte-guardrails 0.0.14 → 0.0.16
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 +12 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @spences10/pi-svelte-guardrails
|
|
2
2
|
|
|
3
|
+
<!-- package-readme:header:start -->
|
|
4
|
+
|
|
3
5
|
[](https://viteplus.dev)
|
|
4
6
|
[](https://vitest.dev)
|
|
5
7
|
[](https://www.npmjs.com/package/@spences10/pi-svelte-guardrails)
|
|
@@ -7,6 +9,8 @@
|
|
|
7
9
|
|
|
8
10
|

|
|
9
11
|
|
|
12
|
+
<!-- package-readme:header:end -->
|
|
13
|
+
|
|
10
14
|
Catch discouraged Svelte patterns before they land in your codebase.
|
|
11
15
|
`pi-svelte-guardrails` blocks common agent mistakes and points the
|
|
12
16
|
model toward current Svelte 5 practices while edits are still cheap to
|
|
@@ -16,10 +20,14 @@ By default, blocks `$effect` in `.svelte` `write`/`edit` tool calls
|
|
|
16
20
|
and bash writes, then tells the agent to prefer `$derived`, event
|
|
17
21
|
handlers, actions, or explicit lifecycle alternatives.
|
|
18
22
|
|
|
23
|
+
<!-- package-readme:install:start -->
|
|
24
|
+
|
|
19
25
|
```bash
|
|
20
26
|
pi install npm:@spences10/pi-svelte-guardrails
|
|
21
27
|
```
|
|
22
28
|
|
|
29
|
+
<!-- package-readme:install:end -->
|
|
30
|
+
|
|
23
31
|
Standalone package use is opt-in: installing the package globally
|
|
24
32
|
applies it to your Pi sessions, but projects and downstream users do
|
|
25
33
|
not inherit it unless they install the package.
|
|
@@ -79,6 +87,8 @@ write/edit again before reporting success.
|
|
|
79
87
|
|
|
80
88
|
## Development
|
|
81
89
|
|
|
90
|
+
<!-- package-readme:development:start commands="check,test,build" -->
|
|
91
|
+
|
|
82
92
|
Package scripts build transitive workspace dependencies first, then
|
|
83
93
|
run local tools through Vite+ with `vp exec`.
|
|
84
94
|
|
|
@@ -87,3 +97,5 @@ pnpm --filter @spences10/pi-svelte-guardrails run check
|
|
|
87
97
|
pnpm --filter @spences10/pi-svelte-guardrails run test
|
|
88
98
|
pnpm --filter @spences10/pi-svelte-guardrails run build
|
|
89
99
|
```
|
|
100
|
+
|
|
101
|
+
<!-- package-readme:development:end -->
|
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.16",
|
|
4
4
|
"description": "Svelte 5 guardrails for Pi that block discouraged agent-written patterns before they land in code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-guardrails",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@spences10/pi-settings": "0.0.
|
|
31
|
+
"@spences10/pi-settings": "0.0.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@earendil-works/pi-coding-agent": "0.80.
|
|
34
|
+
"@earendil-works/pi-coding-agent": "0.80.10",
|
|
35
35
|
"@types/node": "^25.8.0",
|
|
36
|
-
"typescript": "^7.0.
|
|
36
|
+
"typescript": "^7.0.0",
|
|
37
37
|
"vitest": "4.1.10"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|