@oh-my-pi/omp-stats 17.2.9 → 17.2.10

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.
@@ -13,7 +13,7 @@ export interface RangeMeta {
13
13
  bucketMs: number;
14
14
  /** Number of buckets the server is expected to return for this range. */
15
15
  bucketCount: number;
16
- /** date-fns format string for x-axis labels and tooltip headings. */
16
+ /** Date format string for x-axis labels and tooltip headings. */
17
17
  tickFormat: string;
18
18
  }
19
19
  export declare function rangeMeta(range: TimeRange): RangeMeta;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/omp-stats",
4
- "version": "17.2.9",
4
+ "version": "17.2.10",
5
5
  "description": "Local observability dashboard for pi AI usage statistics",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -39,12 +39,11 @@
39
39
  "fmt": "biome format --write ."
40
40
  },
41
41
  "dependencies": {
42
- "@oh-my-pi/pi-ai": "17.2.9",
43
- "@oh-my-pi/pi-catalog": "17.2.9",
44
- "@oh-my-pi/pi-utils": "17.2.9",
42
+ "@oh-my-pi/pi-ai": "17.2.10",
43
+ "@oh-my-pi/pi-catalog": "17.2.10",
44
+ "@oh-my-pi/pi-utils": "17.2.10",
45
45
  "@tailwindcss/node": "^4.3.2",
46
46
  "chart.js": "^4.5.1",
47
- "date-fns": "^4.4.0",
48
47
  "lucide-react": "^1.24.0",
49
48
  "react": "19.2.7",
50
49
  "react-chartjs-2": "^5.3.1",
@@ -55,7 +54,6 @@
55
54
  "@types/bun": "^1.3.14",
56
55
  "@types/react": "^19.2.17",
57
56
  "@types/react-dom": "^19.2.3",
58
- "linkedom": "^0.18.13",
59
57
  "postcss": "^8.5.16"
60
58
  },
61
59
  "engines": {
@@ -5,7 +5,7 @@
5
5
  * behavior series.
6
6
  */
7
7
 
8
- import { format } from "date-fns";
8
+ import { format } from "@oh-my-pi/pi-utils/dates";
9
9
 
10
10
  // OMP brand palette (packages/collab-web/src/styles/tokens.css): pink/purple/cyan.
11
11
  // Categorical series lead with the brand gradient hues (pink -> purple -> cyan).
@@ -5,7 +5,7 @@
5
5
  * the shared plugin/scale config consumed by multi-line detail charts.
6
6
  */
7
7
 
8
- import { format } from "date-fns";
8
+ import { format } from "@oh-my-pi/pi-utils/dates";
9
9
  import { ChevronDown, ChevronUp } from "lucide-react";
10
10
  import { Line } from "react-chartjs-2";
11
11
  import type { ChartTheme } from "./chart-shared";
@@ -4,7 +4,7 @@
4
4
  * defined in `aggregator.ts`.
5
5
  */
6
6
 
7
- import { format } from "date-fns";
7
+ import { format } from "@oh-my-pi/pi-utils/dates";
8
8
  import type { TimeRange } from "../types";
9
9
 
10
10
  const HOUR_MS = 60 * 60 * 1000;
@@ -20,7 +20,7 @@ export interface RangeMeta {
20
20
  bucketMs: number;
21
21
  /** Number of buckets the server is expected to return for this range. */
22
22
  bucketCount: number;
23
- /** date-fns format string for x-axis labels and tooltip headings. */
23
+ /** Date format string for x-axis labels and tooltip headings. */
24
24
  tickFormat: string;
25
25
  }
26
26
 
@@ -1,4 +1,4 @@
1
- import { formatDistanceToNow } from "date-fns";
1
+ import { formatDistanceToNow } from "@oh-my-pi/pi-utils/dates";
2
2
 
3
3
  export function formatInteger(value: number): string {
4
4
  return value.toLocaleString();
@@ -1,4 +1,4 @@
1
- import { format } from "date-fns";
1
+ import { format } from "@oh-my-pi/pi-utils/dates";
2
2
  import { useMemo, useState } from "react";
3
3
  import { Bar, Line } from "react-chartjs-2";
4
4
  import { getBehaviorDashboardStats } from "../api";
@@ -1,4 +1,4 @@
1
- import { format } from "date-fns";
1
+ import { format } from "@oh-my-pi/pi-utils/dates";
2
2
  import { useMemo } from "react";
3
3
  import { Line } from "react-chartjs-2";
4
4
  import { getOverviewStats, getRecentRequests } from "../api";