@gajae-code/stats 0.3.0 → 0.3.2
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/dist/types/client/App.d.ts +1 -1
- package/dist/types/client/components/BehaviorChart.d.ts +1 -1
- package/dist/types/client/components/BehaviorModelsTable.d.ts +1 -1
- package/dist/types/client/components/BehaviorSummary.d.ts +1 -1
- package/dist/types/client/components/ChartsContainer.d.ts +1 -1
- package/dist/types/client/components/CostChart.d.ts +1 -1
- package/dist/types/client/components/CostSummary.d.ts +1 -1
- package/dist/types/client/components/Header.d.ts +1 -1
- package/dist/types/client/components/ModelsTable.d.ts +1 -1
- package/dist/types/client/components/RequestDetail.d.ts +1 -1
- package/dist/types/client/components/RequestList.d.ts +1 -1
- package/dist/types/client/components/StatsGrid.d.ts +1 -1
- package/dist/types/client/components/chart-shared.d.ts +1 -1
- package/dist/types/client/components/models-table-shared.d.ts +8 -8
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function App(): import("react
|
|
1
|
+
export default function App(): import("react").JSX.Element;
|
|
@@ -2,5 +2,5 @@ import type { BehaviorTimeSeriesPoint } from "../types";
|
|
|
2
2
|
interface BehaviorChartProps {
|
|
3
3
|
behaviorSeries: BehaviorTimeSeriesPoint[];
|
|
4
4
|
}
|
|
5
|
-
export declare function BehaviorChart({ behaviorSeries }: BehaviorChartProps): import("react
|
|
5
|
+
export declare function BehaviorChart({ behaviorSeries }: BehaviorChartProps): import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -3,5 +3,5 @@ interface BehaviorModelsTableProps {
|
|
|
3
3
|
models: BehaviorModelStats[];
|
|
4
4
|
behaviorSeries: BehaviorTimeSeriesPoint[];
|
|
5
5
|
}
|
|
6
|
-
export declare function BehaviorModelsTable({ models, behaviorSeries }: BehaviorModelsTableProps): import("react
|
|
6
|
+
export declare function BehaviorModelsTable({ models, behaviorSeries }: BehaviorModelsTableProps): import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -3,5 +3,5 @@ interface BehaviorSummaryProps {
|
|
|
3
3
|
overall: BehaviorOverallStats;
|
|
4
4
|
behaviorSeries: BehaviorTimeSeriesPoint[];
|
|
5
5
|
}
|
|
6
|
-
export declare function BehaviorSummary({ overall, behaviorSeries }: BehaviorSummaryProps): import("react
|
|
6
|
+
export declare function BehaviorSummary({ overall, behaviorSeries }: BehaviorSummaryProps): import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -3,5 +3,5 @@ interface ChartsContainerProps {
|
|
|
3
3
|
modelSeries: ModelTimeSeriesPoint[];
|
|
4
4
|
timeRange: TimeRange;
|
|
5
5
|
}
|
|
6
|
-
export declare function ChartsContainer({ modelSeries, timeRange }: ChartsContainerProps): import("react
|
|
6
|
+
export declare function ChartsContainer({ modelSeries, timeRange }: ChartsContainerProps): import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -2,5 +2,5 @@ import type { CostTimeSeriesPoint } from "../types";
|
|
|
2
2
|
interface CostChartProps {
|
|
3
3
|
costSeries: CostTimeSeriesPoint[];
|
|
4
4
|
}
|
|
5
|
-
export declare function CostChart({ costSeries }: CostChartProps): import("react
|
|
5
|
+
export declare function CostChart({ costSeries }: CostChartProps): import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -2,5 +2,5 @@ import type { CostTimeSeriesPoint } from "../types";
|
|
|
2
2
|
interface CostSummaryProps {
|
|
3
3
|
costSeries: CostTimeSeriesPoint[];
|
|
4
4
|
}
|
|
5
|
-
export declare function CostSummary({ costSeries }: CostSummaryProps): import("react
|
|
5
|
+
export declare function CostSummary({ costSeries }: CostSummaryProps): import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -8,5 +8,5 @@ interface HeaderProps {
|
|
|
8
8
|
timeRange: TimeRange;
|
|
9
9
|
onTimeRangeChange: (timeRange: TimeRange) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function Header({ activeTab, onTabChange, onSync, syncing, timeRange, onTimeRangeChange }: HeaderProps): import("react
|
|
11
|
+
export declare function Header({ activeTab, onTabChange, onSync, syncing, timeRange, onTimeRangeChange }: HeaderProps): import("react").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -4,5 +4,5 @@ interface ModelsTableProps {
|
|
|
4
4
|
performanceSeries: ModelPerformancePoint[];
|
|
5
5
|
timeRange: TimeRange;
|
|
6
6
|
}
|
|
7
|
-
export declare function ModelsTable({ models, performanceSeries, timeRange }: ModelsTableProps): import("react
|
|
7
|
+
export declare function ModelsTable({ models, performanceSeries, timeRange }: ModelsTableProps): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -2,5 +2,5 @@ interface RequestDetailProps {
|
|
|
2
2
|
id: number;
|
|
3
3
|
onClose: () => void;
|
|
4
4
|
}
|
|
5
|
-
export declare function RequestDetail({ id, onClose }: RequestDetailProps): import("react
|
|
5
|
+
export declare function RequestDetail({ id, onClose }: RequestDetailProps): import("react").JSX.Element | null;
|
|
6
6
|
export {};
|
|
@@ -4,5 +4,5 @@ interface RequestListProps {
|
|
|
4
4
|
onSelect: (req: MessageStats) => void;
|
|
5
5
|
title: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function RequestList({ requests, onSelect, title }: RequestListProps): import("react
|
|
7
|
+
export declare function RequestList({ requests, onSelect, title }: RequestListProps): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -2,5 +2,5 @@ import type { AggregatedStats } from "../types";
|
|
|
2
2
|
interface StatsGridProps {
|
|
3
3
|
stats: AggregatedStats;
|
|
4
4
|
}
|
|
5
|
-
export declare function StatsGrid({ stats }: StatsGridProps): import("react
|
|
5
|
+
export declare function StatsGrid({ stats }: StatsGridProps): import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -183,5 +183,5 @@ export declare function ChartFrame({ title, subtitle, empty, emptyMessage, contr
|
|
|
183
183
|
byModel: boolean;
|
|
184
184
|
onByModelChange: (v: boolean) => void;
|
|
185
185
|
children: React.ReactNode;
|
|
186
|
-
}): import("react
|
|
186
|
+
}): import("react").JSX.Element;
|
|
187
187
|
export {};
|
|
@@ -44,7 +44,7 @@ export declare function MiniSparkline({ timestamps, values, color }: {
|
|
|
44
44
|
timestamps: number[];
|
|
45
45
|
values: number[];
|
|
46
46
|
color: string;
|
|
47
|
-
}): import("react
|
|
47
|
+
}): import("react").JSX.Element;
|
|
48
48
|
/**
|
|
49
49
|
* Plugin block (legend + tooltip) shared by every multi-series detail chart
|
|
50
50
|
* in the table expanded views.
|
|
@@ -155,16 +155,16 @@ export declare function ModelTableShell({ title, subtitle, children }: {
|
|
|
155
155
|
title: string;
|
|
156
156
|
subtitle?: string;
|
|
157
157
|
children: React.ReactNode;
|
|
158
|
-
}): import("react
|
|
158
|
+
}): import("react").JSX.Element;
|
|
159
159
|
/** Sticky column-header row for a model table. */
|
|
160
160
|
export declare function ModelTableHeader({ columns, gridTemplate }: {
|
|
161
161
|
columns: TableColumn[];
|
|
162
162
|
gridTemplate: string;
|
|
163
|
-
}): import("react
|
|
163
|
+
}): import("react").JSX.Element;
|
|
164
164
|
/** Scroll wrapper for the row stack — capped to fit the dashboard viewport. */
|
|
165
165
|
export declare function ModelTableBody({ children }: {
|
|
166
166
|
children: React.ReactNode;
|
|
167
|
-
}): import("react
|
|
167
|
+
}): import("react").JSX.Element;
|
|
168
168
|
/**
|
|
169
169
|
* Two-line model identity cell (model name + provider) shared by every
|
|
170
170
|
* per-model table. Kept as a stable named contract so callers don't restate
|
|
@@ -173,7 +173,7 @@ export declare function ModelTableBody({ children }: {
|
|
|
173
173
|
export declare function ModelNameCell({ model, provider }: {
|
|
174
174
|
model: string;
|
|
175
175
|
provider: string;
|
|
176
|
-
}): import("react
|
|
176
|
+
}): import("react").JSX.Element;
|
|
177
177
|
/**
|
|
178
178
|
* One expandable model row. `cells` matches the column order from
|
|
179
179
|
* `ModelTableHeader` plus the trend cell at the end (caller controls the
|
|
@@ -186,10 +186,10 @@ export declare function ExpandableModelRow({ gridTemplate, cells, trendCell, isE
|
|
|
186
186
|
isExpanded: boolean;
|
|
187
187
|
onToggle: () => void;
|
|
188
188
|
expandedContent: React.ReactNode;
|
|
189
|
-
}): import("react
|
|
189
|
+
}): import("react").JSX.Element;
|
|
190
190
|
/** Placeholder shown in the trend cell when a model has no time-series data. */
|
|
191
|
-
export declare function TrendEmpty(): import("react
|
|
191
|
+
export declare function TrendEmpty(): import("react").JSX.Element;
|
|
192
192
|
/** Placeholder shown in the expanded detail-chart slot when data is missing. */
|
|
193
193
|
export declare function DetailChartEmpty({ message }: {
|
|
194
194
|
message?: string;
|
|
195
|
-
}): import("react
|
|
195
|
+
}): import("react").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@gajae-code/stats",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"description": "Local observability dashboard for pi AI usage statistics",
|
|
6
6
|
"homepage": "https://gaebal-gajae.dev",
|
|
7
7
|
"author": "Yeachan-Heo",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"fmt": "biome format --write ."
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@gajae-code/ai": "0.3.
|
|
41
|
-
"@gajae-code/utils": "0.3.
|
|
40
|
+
"@gajae-code/ai": "0.3.2",
|
|
41
|
+
"@gajae-code/utils": "0.3.2",
|
|
42
42
|
"@tailwindcss/node": "^4.2.4",
|
|
43
43
|
"chart.js": "^4.5.1",
|
|
44
44
|
"date-fns": "^4.1.0",
|