@narumitw/pi-analytics 0.49.5 → 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 +10 -1
- package/dist/index.ts +1811 -0
- package/dist/index.ts.map +7 -0
- package/package.json +13 -9
- package/src/menu.ts +49 -19
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:
|
|
@@ -96,7 +100,7 @@ Pi exposes HTTP responses and final assistant failures, not every provider-SDK t
|
|
|
96
100
|
|
|
97
101
|
The command accepts no arguments. TUI mode uses the full dashboard; RPC mode adapts the same standard screens to dialogs. Print and JSON modes reject the interactive command observably instead of writing ad hoc protocol output.
|
|
98
102
|
|
|
99
|
-
The root menu contains Change time range, Skills, Tools, Provider reliability, Response cycles, Data & privacy, and Close. Skills and Tools are searchable browse views with details and model breakdowns. Escape goes Back from nested screens and closes the root. Ctrl+C closes the menu.
|
|
103
|
+
The root menu contains Change time range, Skills, Tools, Provider reliability, Response cycles, Data & privacy, and Close. Skills and Tools are searchable browse views with details and model breakdowns. Escape goes Back from nested screens and closes the root. Ctrl+C closes the menu. Data deletion uses Pi TUI Kit's standalone confirmation: Back keeps the dashboard open, Ctrl+C closes it in TUI mode, and cancellation never clears data.
|
|
100
104
|
|
|
101
105
|
## 🔐 Local data and privacy
|
|
102
106
|
|
|
@@ -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.
|