@narumitw/pi-analytics 0.49.6 → 0.49.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.
package/README.md CHANGED
@@ -41,6 +41,10 @@ pi -e ./packages/pi-analytics
41
41
 
42
42
  The storage implementation uses Node's built-in filesystem APIs and has no native database dependency.
43
43
 
44
+ The package declares `dist/index.ts`, so an unbuilt local checkout must run `npm --workspace @narumitw/pi-analytics run build` before Pi loads the package directory.
45
+
46
+ `just try analytics` runs that build automatically.
47
+
44
48
  ## 🚀 Quick start
45
49
 
46
50
  Complete at least one Pi response, then run:
@@ -151,6 +155,9 @@ If legacy history matters, stop every old Pi process first and preserve both fil
151
155
 
152
156
  ```text
153
157
  packages/pi-analytics/
158
+ ├── dist/ # Generated TypeScript runtime loaded by Jiti
159
+ ├── scripts/
160
+ │ └── build-runtime.mjs # Deterministic runtime builder and boundary validator
154
161
  ├── src/
155
162
  │ ├── index.ts # Thin Pi entrypoint
156
163
  │ ├── analytics.ts # Pi lifecycle, command, and session ownership
@@ -171,6 +178,8 @@ packages/pi-analytics/
171
178
  └── tsconfig.json
172
179
  ```
173
180
 
181
+ The generated runtime is built from the authoritative `src/index.ts` graph and does not import back into `src`.
182
+
174
183
  ## 🔎 Keywords
175
184
 
176
185
  Pi extension, Pi coding agent, local analytics, agent skills, tool usage, model calls, provider reliability, JSON Lines, content-free metrics.