@linxiraos/pi-stats 1.1.8 → 1.1.9
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/CHANGELOG.md +4 -0
- package/package.json +87 -94
- package/src/gain-aggregator.ts +1 -1
- package/src/index.ts +0 -0
- package/THIRD-PARTY-NOTICES.txt +0 -22909
- package/dist/client/index.css +0 -1
- package/dist/client/index.html +0 -24
- package/dist/client/index.js +0 -257
- package/dist/client/styles.css +0 -1956
- package/dist/types/aggregator.d.ts +0 -103
- package/dist/types/client/App.d.ts +0 -1
- package/dist/types/client/api.d.ts +0 -28
- package/dist/types/client/app/AppLayout.d.ts +0 -16
- package/dist/types/client/app/NavRail.d.ts +0 -7
- package/dist/types/client/app/RangeControl.d.ts +0 -7
- package/dist/types/client/app/SyncButton.d.ts +0 -14
- package/dist/types/client/app/ThemeToggle.d.ts +0 -1
- package/dist/types/client/app/TopBar.d.ts +0 -15
- package/dist/types/client/app/routes.d.ts +0 -12
- package/dist/types/client/components/AgentTokenShare.d.ts +0 -5
- package/dist/types/client/components/chart-shared.d.ts +0 -178
- package/dist/types/client/components/models-table-shared.d.ts +0 -175
- package/dist/types/client/components/range-meta.d.ts +0 -21
- package/dist/types/client/data/charts.d.ts +0 -1
- package/dist/types/client/data/formatters.d.ts +0 -13
- package/dist/types/client/data/useHashRoute.d.ts +0 -10
- package/dist/types/client/data/useResource.d.ts +0 -13
- package/dist/types/client/data/view-models.d.ts +0 -75
- package/dist/types/client/index.d.ts +0 -2
- package/dist/types/client/routes/BehaviorRoute.d.ts +0 -7
- package/dist/types/client/routes/CostsRoute.d.ts +0 -7
- package/dist/types/client/routes/ErrorsRoute.d.ts +0 -8
- package/dist/types/client/routes/GainRoute.d.ts +0 -7
- package/dist/types/client/routes/ModelsRoute.d.ts +0 -7
- package/dist/types/client/routes/OverviewRoute.d.ts +0 -8
- package/dist/types/client/routes/ProjectsRoute.d.ts +0 -7
- package/dist/types/client/routes/ProvidersRoute.d.ts +0 -7
- package/dist/types/client/routes/RequestsRoute.d.ts +0 -8
- package/dist/types/client/routes/ToolsRoute.d.ts +0 -7
- package/dist/types/client/routes/TracesRoute.d.ts +0 -11
- package/dist/types/client/routes/index.d.ts +0 -11
- package/dist/types/client/traces/AggregatesPanel.d.ts +0 -9
- package/dist/types/client/traces/Minimap.d.ts +0 -14
- package/dist/types/client/traces/SpanDrawer.d.ts +0 -14
- package/dist/types/client/traces/SummaryStrip.d.ts +0 -9
- package/dist/types/client/traces/TimelineCanvas.d.ts +0 -25
- package/dist/types/client/traces/TraceView.d.ts +0 -11
- package/dist/types/client/traces/TranscriptList.d.ts +0 -24
- package/dist/types/client/traces/time-scale.d.ts +0 -40
- package/dist/types/client/traces/trace-colors.d.ts +0 -31
- package/dist/types/client/types.d.ts +0 -63
- package/dist/types/client/ui/AsyncBoundary.d.ts +0 -12
- package/dist/types/client/ui/DataTable.d.ts +0 -17
- package/dist/types/client/ui/EmptyState.d.ts +0 -7
- package/dist/types/client/ui/ErrorState.d.ts +0 -6
- package/dist/types/client/ui/JsonBlock.d.ts +0 -7
- package/dist/types/client/ui/MetricCluster.d.ts +0 -5
- package/dist/types/client/ui/Panel.d.ts +0 -7
- package/dist/types/client/ui/RequestDrawer.d.ts +0 -5
- package/dist/types/client/ui/SegmentedControl.d.ts +0 -12
- package/dist/types/client/ui/Skeleton.d.ts +0 -8
- package/dist/types/client/ui/StatusPill.d.ts +0 -7
- package/dist/types/client/ui/index.d.ts +0 -11
- package/dist/types/client/useSystemTheme.d.ts +0 -11
- package/dist/types/db.d.ts +0 -183
- package/dist/types/embedded-client.d.ts +0 -18
- package/dist/types/gain-aggregator.d.ts +0 -26
- package/dist/types/index.d.ts +0 -17
- package/dist/types/parser.d.ts +0 -61
- package/dist/types/port-conflict.d.ts +0 -16
- package/dist/types/server.d.ts +0 -15
- package/dist/types/shared-types.d.ts +0 -551
- package/dist/types/sync-worker.d.ts +0 -31
- package/dist/types/trace.d.ts +0 -33
- package/dist/types/types.d.ts +0 -198
- package/dist/types/usage-windows.d.ts +0 -72
- package/dist/types/user-metrics.d.ts +0 -81
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,96 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
"./client/components/*": {
|
|
91
|
-
"types": "./dist/types/client/components/*.d.ts",
|
|
92
|
-
"import": "./src/client/components/*.ts"
|
|
93
|
-
},
|
|
94
|
-
"./*.js": "./src/*.ts"
|
|
95
|
-
}
|
|
2
|
+
"exports": {
|
|
3
|
+
"./*.js": "./src/*.ts",
|
|
4
|
+
"./client/components/*": {
|
|
5
|
+
"import": "./src/client/components/*.ts",
|
|
6
|
+
"types": "./src/client/components/*.ts"
|
|
7
|
+
},
|
|
8
|
+
"./client/*": {
|
|
9
|
+
"import": "./src/client/*.ts",
|
|
10
|
+
"types": "./src/client/*.ts"
|
|
11
|
+
},
|
|
12
|
+
"./client": {
|
|
13
|
+
"import": "./src/client/index.tsx",
|
|
14
|
+
"types": "./src/client/index.tsx"
|
|
15
|
+
},
|
|
16
|
+
"./*": {
|
|
17
|
+
"import": "./src/*.ts",
|
|
18
|
+
"types": "./src/*.ts"
|
|
19
|
+
},
|
|
20
|
+
".": {
|
|
21
|
+
"import": "./src/index.ts",
|
|
22
|
+
"types": "./src/index.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"src",
|
|
27
|
+
"build.ts",
|
|
28
|
+
"tailwind.config.js",
|
|
29
|
+
"README.md",
|
|
30
|
+
"CHANGELOG.md"
|
|
31
|
+
],
|
|
32
|
+
"engines": {
|
|
33
|
+
"bun": ">=1.3.14"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"postcss": "^8.5.16",
|
|
37
|
+
"@types/react-dom": "^19.2.3",
|
|
38
|
+
"@types/react": "^19.2.17",
|
|
39
|
+
"@types/bun": "^1.3.14"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@linxiraos/pi-utils": "1.1.9",
|
|
43
|
+
"@linxiraos/pi-catalog": "1.1.9",
|
|
44
|
+
"@linxiraos/pi-ai": "1.1.9",
|
|
45
|
+
"tailwindcss": "^4.3.2",
|
|
46
|
+
"react-dom": "19.2.7",
|
|
47
|
+
"react-chartjs-2": "^5.3.1",
|
|
48
|
+
"react": "19.2.7",
|
|
49
|
+
"lucide-react": "^1.24.0",
|
|
50
|
+
"chart.js": "^4.5.1",
|
|
51
|
+
"@tailwindcss/node": "^4.3.2"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"check:types": "tsgo -p tsconfig.json --noEmit && tsgo -p tsconfig.client.json --noEmit",
|
|
55
|
+
"check": "tsgo -p tsconfig.json --noEmit",
|
|
56
|
+
"dev": "bun run src/index.ts",
|
|
57
|
+
"build": "bun run build.ts",
|
|
58
|
+
"gen:stats:reset": "bun scripts/generate-client-bundle.ts --reset",
|
|
59
|
+
"gen:stats": "bun scripts/generate-client-bundle.ts --generate"
|
|
60
|
+
},
|
|
61
|
+
"bin": {
|
|
62
|
+
"zeta-stats": "./src/index.ts"
|
|
63
|
+
},
|
|
64
|
+
"types": "./src/index.ts",
|
|
65
|
+
"main": "./src/index.ts",
|
|
66
|
+
"keywords": [
|
|
67
|
+
"ai",
|
|
68
|
+
"observability",
|
|
69
|
+
"metrics",
|
|
70
|
+
"dashboard",
|
|
71
|
+
"llm",
|
|
72
|
+
"statistics"
|
|
73
|
+
],
|
|
74
|
+
"bugs": {
|
|
75
|
+
"url": "https://github.com/Linxira-OS/linxira-zeta/issues"
|
|
76
|
+
},
|
|
77
|
+
"repository": {
|
|
78
|
+
"directory": "packages/stats",
|
|
79
|
+
"url": "git+https://github.com/Linxira-OS/linxira-zeta.git",
|
|
80
|
+
"type": "git"
|
|
81
|
+
},
|
|
82
|
+
"license": "MIT",
|
|
83
|
+
"author": "Can Boluk",
|
|
84
|
+
"homepage": "https://linxira-os.github.io/zeta/",
|
|
85
|
+
"description": "Local observability dashboard for pi AI usage statistics",
|
|
86
|
+
"version": "1.1.9",
|
|
87
|
+
"name": "@linxiraos/pi-stats",
|
|
88
|
+
"type": "module"
|
|
96
89
|
}
|
package/src/gain-aggregator.ts
CHANGED
|
@@ -68,7 +68,7 @@ function matchesProject(cwd: string | undefined, project: string): boolean {
|
|
|
68
68
|
export function normalizeProjectPath(p: string): string | null {
|
|
69
69
|
const clean = canonicalProjectPath(p);
|
|
70
70
|
if (TEMP_PATH_RE.test(clean)) return null;
|
|
71
|
-
if (/\/\.
|
|
71
|
+
if (/\/\.zeta\/wt\//u.test(clean)) return null;
|
|
72
72
|
|
|
73
73
|
const worktreePatterns = [
|
|
74
74
|
/^(.+)\/\.wt\/[^/]+(?:\/.*)?$/u,
|
package/src/index.ts
CHANGED
|
File without changes
|