usage-board 3.2.1 → 4.0.1

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.
Files changed (53) hide show
  1. package/dist/index.mjs +1 -1
  2. package/dist/public/_nuxt/37OOe3RF.js +1 -0
  3. package/dist/public/_nuxt/65Ayv2XK.js +146 -0
  4. package/dist/public/_nuxt/BOWwkrCY.js +25 -0
  5. package/dist/public/_nuxt/C0GhHHgI.js +3 -0
  6. package/dist/public/_nuxt/{CLHpvfq1.js → D7qEPtpx.js} +1 -1
  7. package/dist/public/_nuxt/D9-Yw1TR.js +1 -0
  8. package/dist/public/_nuxt/DF2WsXH3.js +1 -0
  9. package/dist/public/_nuxt/DKaPq50Z.js +6 -0
  10. package/dist/public/_nuxt/{CBu27bzx.js → DXWxIyGU.js} +1 -1
  11. package/dist/public/_nuxt/De8DvPWL.js +1 -0
  12. package/dist/public/_nuxt/DgMMKsPE.js +258 -0
  13. package/dist/public/_nuxt/DxvuOJRP.js +1 -0
  14. package/dist/public/_nuxt/Jp5cgQZi.js +4 -0
  15. package/dist/public/_nuxt/builds/latest.json +1 -1
  16. package/dist/public/_nuxt/builds/meta/34b12f78-e5b7-490f-99ba-b4a8ab41b914.json +1 -0
  17. package/dist/public/_nuxt/entry.DnkKc-6G.css +1 -0
  18. package/dist/public/_nuxt/qXgLTL_3.js +21 -0
  19. package/dist/public/_nuxt/y6mAKUDU.js +1 -0
  20. package/dist/server/chunks/build/client.precomputed.mjs +1 -1
  21. package/dist/server/chunks/nitro/nitro.mjs +2509 -1687
  22. package/dist/server/chunks/routes/api/analysis/agent/session.json.mjs +1 -1
  23. package/dist/server/chunks/routes/api/analysis/agent/token.json.mjs +1 -1
  24. package/dist/server/chunks/routes/api/analysis/cache.json.mjs +1 -1
  25. package/dist/server/chunks/routes/api/analysis/hot-project.json.mjs +1 -1
  26. package/dist/server/chunks/routes/api/analysis/model.json.mjs +1 -1
  27. package/dist/server/chunks/routes/api/analysis/overview-cards.json.mjs +4 -4
  28. package/dist/server/chunks/routes/api/analysis/session.json.mjs +1 -1
  29. package/dist/server/chunks/routes/api/analysis/token/daily.json.mjs +1 -1
  30. package/dist/server/chunks/routes/api/analysis/token/today-hourly.json.mjs +21 -0
  31. package/dist/server/chunks/routes/api/analysis/token.json.mjs +1 -1
  32. package/dist/server/chunks/routes/api/payload.json.mjs +2 -2
  33. package/dist/server/chunks/routes/api/projects/_project/modules.get.mjs +2 -2
  34. package/dist/server/chunks/routes/api/projects/catalog.get.mjs +2 -2
  35. package/dist/server/chunks/routes/renderer.mjs +2 -2
  36. package/dist/server/chunks/routes/ws.mjs +2 -2
  37. package/dist/server/index.mjs +2 -2
  38. package/dist/server/package.json +1 -1
  39. package/package.json +2 -2
  40. package/dist/public/_nuxt/BL-DadsH.js +0 -260
  41. package/dist/public/_nuxt/BO_d_Oyx.js +0 -6
  42. package/dist/public/_nuxt/BtuXxixc.js +0 -25
  43. package/dist/public/_nuxt/CC4_0abj.js +0 -1
  44. package/dist/public/_nuxt/CGsjOcfM.js +0 -21
  45. package/dist/public/_nuxt/COBlwcVj.js +0 -1
  46. package/dist/public/_nuxt/CjeAKHhp.js +0 -1
  47. package/dist/public/_nuxt/CvvesHM7.js +0 -105
  48. package/dist/public/_nuxt/IstswKJB.js +0 -4
  49. package/dist/public/_nuxt/N8W_Dp-N.js +0 -119
  50. package/dist/public/_nuxt/builds/meta/be10c896-ee75-4f4f-911d-c3f0a8b4d417.json +0 -1
  51. package/dist/public/_nuxt/entry.vHfFzkyD.css +0 -1
  52. package/dist/public/_nuxt/vkAmg0G5.js +0 -1
  53. package/dist/public/_nuxt/wUprbfrX.js +0 -1
@@ -1,5 +1,4 @@
1
1
  import { d as defineRequiredAgentAnalysisHandler } from '../../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
1
  import { d as defineRequiredAgentAnalysisHandler, g as getRequiredAnalysisAgentTokenType, A as ANALYSIS_AGENT_TOKEN_ROW_KEYS } from '../../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
1
  import { a as defineHomeAnalysisHandler } from '../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
1
  import { b as defineScopedAnalysisHandler } from '../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
1
  import { b as defineScopedAnalysisHandler } from '../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
- import { b as defineScopedAnalysisHandler } from '../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
1
+ import { b as defineScopedAnalysisHandler, c as buildOverviewCardsWithTodayTokenBreakdown } from '../../../nitro/nitro.mjs';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -17,8 +17,8 @@ import '@iconify/utils';
17
17
  import 'consola';
18
18
 
19
19
  const overviewCards_json = defineScopedAnalysisHandler({
20
- agent: (dashboard) => dashboard.overviewCards,
21
- home: (modules) => modules.overviewCards
20
+ agent: (dashboard) => buildOverviewCardsWithTodayTokenBreakdown(dashboard.overviewCards, dashboard.dailyTokenUsage),
21
+ home: (modules) => buildOverviewCardsWithTodayTokenBreakdown(modules.overviewCards, modules.dailyTokenUsage)
22
22
  });
23
23
 
24
24
  export { overviewCards_json as default };
@@ -1,5 +1,4 @@
1
1
  import { a as defineHomeAnalysisHandler } from '../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
1
  import { a as defineHomeAnalysisHandler } from '../../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -0,0 +1,21 @@
1
+ import { a as defineHomeAnalysisHandler } from '../../../../nitro/nitro.mjs';
2
+ import 'node:http';
3
+ import 'node:https';
4
+ import 'node:events';
5
+ import 'node:buffer';
6
+ import 'node:fs';
7
+ import 'node:path';
8
+ import 'node:crypto';
9
+ import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
+ import 'glob';
12
+ import 'chokidar';
13
+ import 'node:os';
14
+ import 'path-type';
15
+ import 'node:url';
16
+ import '@iconify/utils';
17
+ import 'consola';
18
+
19
+ const todayHourly_json = defineHomeAnalysisHandler((modules) => modules.todayHourlyUsage);
20
+
21
+ export { todayHourly_json as default };
@@ -1,5 +1,4 @@
1
1
  import { b as defineScopedAnalysisHandler } from '../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
- import { c as defineEventHandler, r as resolveConfig, e as getUsageDataRuntime, u as useRuntimeConfig } from '../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
1
+ import { e as defineEventHandler, r as resolveConfig, f as getUsageDataRuntime, u as useRuntimeConfig } from '../../nitro/nitro.mjs';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
- import { c as defineEventHandler, r as resolveConfig, f as getRouterParam, h as getQuery, n as normalizeStringValue, i as normalizeStringList, e as getUsageDataRuntime, u as useRuntimeConfig } from '../../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
1
+ import { e as defineEventHandler, r as resolveConfig, h as getRouterParam, i as getQuery, n as normalizeStringValue, j as normalizeStringList, f as getUsageDataRuntime, u as useRuntimeConfig } from '../../../../nitro/nitro.mjs';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
- import { c as defineEventHandler, r as resolveConfig, e as getUsageDataRuntime, u as useRuntimeConfig } from '../../../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
1
+ import { e as defineEventHandler, r as resolveConfig, f as getUsageDataRuntime, u as useRuntimeConfig } from '../../../nitro/nitro.mjs';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,9 +1,8 @@
1
1
  import { createRenderer, getRequestDependencies, getPreloadLinks, getPrefetchLinks } from 'vue-bundle-renderer/runtime';
2
- import { k as buildAssetsURL, u as useRuntimeConfig, l as getResponseStatusText, m as getResponseStatus, o as defineRenderHandler, p as publicAssetsURL, h as getQuery, q as createError, s as destr, t as getRouteRules, v as joinURL, w as useNitroApp } from '../nitro/nitro.mjs';
2
+ import { l as buildAssetsURL, u as useRuntimeConfig, m as getResponseStatusText, o as getResponseStatus, p as defineRenderHandler, q as publicAssetsURL, i as getQuery, s as createError, t as destr, v as getRouteRules, w as joinURL, x as useNitroApp } from '../nitro/nitro.mjs';
3
3
  import { createHead as createHead$1, propsToString, renderSSRHead } from 'unhead/server';
4
4
  import { stringify, uneval } from 'devalue';
5
5
  import { isRef, toValue } from 'vue';
6
- import '@lonewolfyx/utils';
7
6
  import 'node:http';
8
7
  import 'node:https';
9
8
  import 'node:events';
@@ -12,6 +11,7 @@ import 'node:fs';
12
11
  import 'node:path';
13
12
  import 'node:crypto';
14
13
  import 'node:sqlite';
14
+ import '@lonewolfyx/utils';
15
15
  import 'glob';
16
16
  import 'chokidar';
17
17
  import 'node:os';
@@ -1,5 +1,4 @@
1
- import { j as defineWebSocketHandler, u as useRuntimeConfig, r as resolveConfig, e as getUsageDataRuntime, i as normalizeStringList, n as normalizeStringValue } from '../nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
1
+ import { k as defineWebSocketHandler, u as useRuntimeConfig, r as resolveConfig, f as getUsageDataRuntime, j as normalizeStringList, n as normalizeStringValue } from '../nitro/nitro.mjs';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,5 +1,4 @@
1
- import process from 'node:process';globalThis._importMeta_={url:import.meta.url,env:process.env};export { x as handler, y as listener, z as websocket } from './chunks/nitro/nitro.mjs';
2
- import '@lonewolfyx/utils';
1
+ import process from 'node:process';globalThis._importMeta_={url:import.meta.url,env:process.env};export { y as handler, z as listener, B as websocket } from './chunks/nitro/nitro.mjs';
3
2
  import 'node:http';
4
3
  import 'node:https';
5
4
  import 'node:events';
@@ -8,6 +7,7 @@ import 'node:fs';
8
7
  import 'node:path';
9
8
  import 'node:crypto';
10
9
  import 'node:sqlite';
10
+ import '@lonewolfyx/utils';
11
11
  import 'glob';
12
12
  import 'chokidar';
13
13
  import 'node:os';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usage-board-prod",
3
- "version": "3.2.1",
3
+ "version": "4.0.1",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "usage-board",
3
3
  "type": "module",
4
- "version": "3.2.1",
4
+ "version": "4.0.1",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "description": "An all-in-one dashboard to quickly analyze token usage from local json files",
7
7
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "preview": "nuxt preview",
37
37
  "typecheck": "nuxt typecheck",
38
38
  "lint": "nuxt prepare && eslint .",
39
- "lint:fix": "eslint --fix",
39
+ "lint:fix": "nuxt prepare && eslint --fix",
40
40
  "dev:cli": "tsdown -w",
41
41
  "test": "vitest",
42
42
  "prepare": "simple-git-hooks",