@spences10/pi-context 0.0.17 → 0.0.19

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 +16 -0
  2. package/package.json +9 -8
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # @spences10/pi-context
2
2
 
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-context?color=CB3837&logo=npm&logoColor=white)](https://www.npmjs.com/package/@spences10/pi-context)
6
+ [![license](https://img.shields.io/npm/l/@spences10/pi-context)](https://www.npmjs.com/package/@spences10/pi-context)
7
+
3
8
  Local SQLite context sidecar for Pi. Oversized text tool output is
4
9
  redacted, stored in an FTS5-backed database, and replaced with a
5
10
  compact receipt that shows the source id, project/session scope, and
@@ -130,3 +135,14 @@ This is redacted local persistence and retrieval, not a security
130
135
  sandbox. Stored text is redacted with `@spences10/pi-redact` before
131
136
  persistence, but anything persisted in the local SQLite DB should
132
137
  still be treated as local tool output.
138
+
139
+ ## Development
140
+
141
+ Package scripts build transitive workspace dependencies first, then
142
+ run local tools through Vite+ with `vp exec`.
143
+
144
+ ```bash
145
+ pnpm --filter @spences10/pi-context run check
146
+ pnpm --filter @spences10/pi-context run test
147
+ pnpm --filter @spences10/pi-context run build
148
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spences10/pi-context",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "Pi extension for local SQLite context sidecar storage and retrieval of large tool output",
5
5
  "keywords": [
6
6
  "context",
@@ -36,13 +36,14 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@spences10/pi-redact": "0.0.8",
40
- "@spences10/pi-tui-modal": "0.0.15"
39
+ "@spences10/pi-redact": "0.0.10",
40
+ "@spences10/pi-tui-modal": "0.0.17"
41
41
  },
42
42
  "devDependencies": {
43
+ "@earendil-works/pi-coding-agent": "^0.74.1",
43
44
  "@types/node": "^25.8.0",
44
45
  "typescript": "^6.0.3",
45
- "vitest": "^4.1.6"
46
+ "vitest": "4.1.5"
46
47
  },
47
48
  "peerDependencies": {
48
49
  "@earendil-works/pi-coding-agent": "*",
@@ -59,12 +60,12 @@
59
60
  },
60
61
  "scripts": {
61
62
  "build": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run build:self",
62
- "build:self": "tsc -p tsconfig.build.json && cp src/schema.sql dist/schema.sql",
63
+ "build:self": "vp exec tsc -p tsconfig.build.json && cp src/schema.sql dist/schema.sql",
63
64
  "check": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run check:self",
64
- "check:self": "tsc --noEmit",
65
+ "check:self": "vp exec tsc --noEmit",
65
66
  "test": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run build:self && pnpm run test:self",
66
- "test:self": "vitest run",
67
- "coverage:self": "vitest run --coverage",
67
+ "test:self": "vp exec vitest run",
68
+ "coverage:self": "vp exec vitest run --coverage",
68
69
  "coverage": "pnpm --filter \"$npm_package_name^...\" run build:self && pnpm run coverage:self"
69
70
  }
70
71
  }