@narumitw/pi-analytics 0.49.3 → 0.49.4
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 +2 -2
- package/package.json +6 -3
- package/src/storage/files.ts +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ pi -e npm:@narumitw/pi-analytics
|
|
|
36
36
|
Try a local checkout from the repository root:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
pi -e ./
|
|
39
|
+
pi -e ./packages/pi-analytics
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
The storage implementation uses Node's built-in filesystem APIs and has no native database dependency.
|
|
@@ -150,7 +150,7 @@ If legacy history matters, stop every old Pi process first and preserve both fil
|
|
|
150
150
|
## 🗂️ Package layout
|
|
151
151
|
|
|
152
152
|
```text
|
|
153
|
-
|
|
153
|
+
packages/pi-analytics/
|
|
154
154
|
├── src/
|
|
155
155
|
│ ├── index.ts # Thin Pi entrypoint
|
|
156
156
|
│ ├── analytics.ts # Pi lifecycle, command, and session ownership
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-analytics",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.4",
|
|
4
4
|
"description": "Local-first usage analytics for Pi models, skills, tools, and reliability.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
"./src/index.ts"
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
|
+
"piExtension": {
|
|
27
|
+
"lifecycle": "experimental"
|
|
28
|
+
},
|
|
26
29
|
"scripts": {
|
|
27
30
|
"check": "biome check --vcs-use-ignore-file=false src test package.json tsconfig.json README.md && npm run typecheck",
|
|
28
31
|
"format": "biome check --write --vcs-use-ignore-file=false src test package.json tsconfig.json README.md",
|
|
@@ -36,13 +39,13 @@
|
|
|
36
39
|
},
|
|
37
40
|
"devDependencies": {
|
|
38
41
|
"@biomejs/biome": "2.5.7",
|
|
39
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
42
|
+
"@earendil-works/pi-coding-agent": "0.84.1",
|
|
40
43
|
"@types/node": "26.1.2",
|
|
41
44
|
"typescript": "7.0.2"
|
|
42
45
|
},
|
|
43
46
|
"repository": {
|
|
44
47
|
"type": "git",
|
|
45
48
|
"url": "https://github.com/narumiruna/pi-extensions",
|
|
46
|
-
"directory": "
|
|
49
|
+
"directory": "packages/pi-analytics"
|
|
47
50
|
}
|
|
48
51
|
}
|
package/src/storage/files.ts
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
|
|
25
25
|
const GENERATION_PATTERN =
|
|
26
26
|
/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/u;
|
|
27
|
-
const DEFAULT_WRITE_TIMEOUT_MS =
|
|
27
|
+
const DEFAULT_WRITE_TIMEOUT_MS = 5_000;
|
|
28
28
|
const YIELD_EVERY_RECORDS = 100;
|
|
29
29
|
|
|
30
30
|
export interface ClearAnalyticsResult {
|