token-usage-dashboard 1.0.9 → 1.0.11
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/build/client/_app/immutable/chunks/{Cs9ix4uI.js → DDewuPNb.js} +2 -2
- package/build/client/_app/immutable/chunks/DDewuPNb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DDewuPNb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dsm7b1TR.js +3 -0
- package/build/client/_app/immutable/chunks/Dsm7b1TR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dsm7b1TR.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.D4LA_7JD.js → app.B4iyXCcH.js} +2 -2
- package/build/client/_app/immutable/entry/app.B4iyXCcH.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B4iyXCcH.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.EZhL2Yjj.js +1 -0
- package/build/client/_app/immutable/entry/start.EZhL2Yjj.js.br +1 -0
- package/build/client/_app/immutable/entry/start.EZhL2Yjj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.PGglbI9f.js +1 -0
- package/build/client/_app/immutable/nodes/0.PGglbI9f.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.PGglbI9f.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.bXNtibEg.js +1 -0
- package/build/client/_app/immutable/nodes/1.bXNtibEg.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.bXNtibEg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CX7_mI8s.js +2 -0
- package/build/client/_app/immutable/nodes/2.CX7_mI8s.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CX7_mI8s.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +8 -8
- package/build/index.js +8 -8
- package/build/server/chunks/chunks/{client.js-dzA-_vbM.js → client.js-Ct2tMSTS.js} +6 -6
- package/build/server/chunks/chunks/{exports.js-Dd48p7Ih.js → exports.js-D7S4dPRP.js} +88 -2
- package/build/server/chunks/chunks/{internal.js-WfBRMRsu.js → internal.js-CtDPw1co.js} +4 -3
- package/build/server/chunks/chunks/{server.js-mTMwhapa.js → server.js-DxWEh0qK.js} +286 -260
- package/build/server/chunks/chunks/{shared.js-7DyfRqo3.js → shared.js-CAkvBFpL.js} +2 -2
- package/build/server/chunks/chunks/{utils.js-DzwqnkBT.js → utils.js-U7QVKoQm.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/refresh/{_server.ts.js-ByCHvh6I.js → _server.ts.js-DmuUmmD4.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/settings/{_server.ts.js-z3BUpIC2.js → _server.ts.js-CiGFkz6L.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/usage/{_server.ts.js-C6vS-sK1.js → _server.ts.js-GScKbdma.js} +4 -4
- package/build/server/chunks/entries/fallbacks/{error.svelte.js-CAWEWGLK.js → error.svelte.js-DaJCw5i4.js} +7 -7
- package/build/server/chunks/entries/pages/{_page.svelte.js-DWD4fuiY.js → _page.svelte.js-ZYdmVAtc.js} +7 -7
- package/build/server/chunks/{handler-CvhtfVM1.js → handler-BHEnEQNm.js} +5 -5
- package/build/server/chunks/{index.js-CItxG5Fx.js → index.js-BnqGrlE5.js} +6 -6
- package/build/server/chunks/{manifest.js-B6xVyARC.js → manifest.js-56Cs023v.js} +8 -8
- package/build/server/chunks/nodes/{0.js-CxT79s9-.js → 0.js-7EReDAeT.js} +2 -2
- package/build/server/chunks/nodes/{1.js-ClmHS2nO.js → 1.js-DRwcDqvL.js} +3 -3
- package/build/server/chunks/nodes/{2.js-CdZxFyXS.js → 2.js-DRpC6msK.js} +3 -3
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/Cs9ix4uI.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cs9ix4uI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DC6tN2WI.js +0 -3
- package/build/client/_app/immutable/chunks/DC6tN2WI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DC6tN2WI.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D4LA_7JD.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D4LA_7JD.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.h5yz1FcE.js +0 -1
- package/build/client/_app/immutable/entry/start.h5yz1FcE.js.br +0 -0
- package/build/client/_app/immutable/entry/start.h5yz1FcE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CrqqkQn-.js +0 -1
- package/build/client/_app/immutable/nodes/0.CrqqkQn-.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CrqqkQn-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CTKJ-7rB.js +0 -1
- package/build/client/_app/immutable/nodes/1.CTKJ-7rB.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CTKJ-7rB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BdW0LqA6.js +0 -2
- package/build/client/_app/immutable/nodes/2.BdW0LqA6.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BdW0LqA6.js.gz +0 -0
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import http from 'node:http';
|
|
2
2
|
import fs__default from 'node:fs';
|
|
3
3
|
import process from 'node:process';
|
|
4
|
-
import { p as polka, h as handler, f as format_listening_address } from './server/chunks/handler-
|
|
4
|
+
import { p as polka, h as handler, f as format_listening_address } from './server/chunks/handler-BHEnEQNm.js';
|
|
5
5
|
import { env, timeout_env } from './env.js';
|
|
6
6
|
import { rm } from 'node:fs/promises';
|
|
7
7
|
import './shims.js';
|
|
@@ -11,14 +11,14 @@ import 'node:path';
|
|
|
11
11
|
import 'node:timers';
|
|
12
12
|
import 'node:querystring';
|
|
13
13
|
import 'node:stream';
|
|
14
|
-
import './server/chunks/chunks/shared.js-
|
|
15
|
-
import './server/chunks/chunks/server.js-
|
|
16
|
-
import './server/chunks/chunks/utils.js-
|
|
17
|
-
import './server/chunks/index.js-
|
|
18
|
-
import './server/chunks/chunks/internal.js-
|
|
14
|
+
import './server/chunks/chunks/shared.js-CAkvBFpL.js';
|
|
15
|
+
import './server/chunks/chunks/server.js-DxWEh0qK.js';
|
|
16
|
+
import './server/chunks/chunks/utils.js-U7QVKoQm.js';
|
|
17
|
+
import './server/chunks/index.js-BnqGrlE5.js';
|
|
18
|
+
import './server/chunks/chunks/internal.js-CtDPw1co.js';
|
|
19
19
|
import './server/chunks/chunks/internal2.js-BlXt2rfE.js';
|
|
20
|
-
import './server/chunks/chunks/exports.js-
|
|
21
|
-
import './server/chunks/manifest.js-
|
|
20
|
+
import './server/chunks/chunks/exports.js-D7S4dPRP.js';
|
|
21
|
+
import './server/chunks/manifest.js-56Cs023v.js';
|
|
22
22
|
import 'node:url';
|
|
23
23
|
|
|
24
24
|
const path = env('SOCKET_PATH', false);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as index_server_exports } from './internal.js-
|
|
2
|
-
import './shared.js-
|
|
3
|
-
import './exports.js-
|
|
4
|
-
import { a1 as noop } from './server.js-
|
|
5
|
-
import './utils.js-
|
|
1
|
+
import { i as index_server_exports } from './internal.js-CtDPw1co.js';
|
|
2
|
+
import './shared.js-CAkvBFpL.js';
|
|
3
|
+
import './exports.js-D7S4dPRP.js';
|
|
4
|
+
import { a1 as noop } from './server.js-DxWEh0qK.js';
|
|
5
|
+
import './utils.js-U7QVKoQm.js';
|
|
6
6
|
|
|
7
7
|
var is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
|
8
8
|
var placeholder_url = "a:";
|
|
@@ -25,4 +25,4 @@ if (is_legacy) {
|
|
|
25
25
|
/** @import { Query } from './remote-functions/query/instance.svelte.js' */
|
|
26
26
|
/** @import { LiveQuery } from './remote-functions/query-live/instance.svelte.js' */
|
|
27
27
|
var { onMount, tick } = index_server_exports;
|
|
28
|
-
//# sourceMappingURL=client.js-
|
|
28
|
+
//# sourceMappingURL=client.js-Ct2tMSTS.js.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { a1 as noop, ag as safe_not_equal } from './server.js-DxWEh0qK.js';
|
|
2
|
+
|
|
1
3
|
var internal = new URL("sveltekit-internal://");
|
|
2
4
|
/**
|
|
3
5
|
* @param {string} base
|
|
@@ -112,6 +114,90 @@ function allow_nodejs_console_log(url) {
|
|
|
112
114
|
};
|
|
113
115
|
}
|
|
114
116
|
//#endregion
|
|
117
|
+
//#region node_modules/svelte/src/store/shared/index.js
|
|
118
|
+
/** @import { Readable, StartStopNotifier, Subscriber, Unsubscriber, Updater, Writable } from '../public.js' */
|
|
119
|
+
/** @import { Stores, StoresValues, SubscribeInvalidateTuple } from '../private.js' */
|
|
120
|
+
/**
|
|
121
|
+
* @type {Array<SubscribeInvalidateTuple<any> | any>}
|
|
122
|
+
*/
|
|
123
|
+
var subscriber_queue = [];
|
|
124
|
+
/**
|
|
125
|
+
* Creates a `Readable` store that allows reading by subscription.
|
|
126
|
+
*
|
|
127
|
+
* @template T
|
|
128
|
+
* @param {T} [value] initial value
|
|
129
|
+
* @param {StartStopNotifier<T>} [start]
|
|
130
|
+
* @returns {Readable<T>}
|
|
131
|
+
*/
|
|
132
|
+
function readable(value, start) {
|
|
133
|
+
return { subscribe: writable(value, start).subscribe };
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
137
|
+
*
|
|
138
|
+
* @template T
|
|
139
|
+
* @param {T} [value] initial value
|
|
140
|
+
* @param {StartStopNotifier<T>} [start]
|
|
141
|
+
* @returns {Writable<T>}
|
|
142
|
+
*/
|
|
143
|
+
function writable(value, start = noop) {
|
|
144
|
+
/** @type {Unsubscriber | null} */
|
|
145
|
+
let stop = null;
|
|
146
|
+
/** @type {Set<SubscribeInvalidateTuple<T>>} */
|
|
147
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
148
|
+
/**
|
|
149
|
+
* @param {T} new_value
|
|
150
|
+
* @returns {void}
|
|
151
|
+
*/
|
|
152
|
+
function set(new_value) {
|
|
153
|
+
if (safe_not_equal(value, new_value)) {
|
|
154
|
+
value = new_value;
|
|
155
|
+
if (stop) {
|
|
156
|
+
const run_queue = !subscriber_queue.length;
|
|
157
|
+
for (const subscriber of subscribers) {
|
|
158
|
+
subscriber[1]();
|
|
159
|
+
subscriber_queue.push(subscriber, value);
|
|
160
|
+
}
|
|
161
|
+
if (run_queue) {
|
|
162
|
+
for (let i = 0; i < subscriber_queue.length; i += 2) subscriber_queue[i][0](subscriber_queue[i + 1]);
|
|
163
|
+
subscriber_queue.length = 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @param {Updater<T>} fn
|
|
170
|
+
* @returns {void}
|
|
171
|
+
*/
|
|
172
|
+
function update(fn) {
|
|
173
|
+
set(fn(value));
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @param {Subscriber<T>} run
|
|
177
|
+
* @param {() => void} [invalidate]
|
|
178
|
+
* @returns {Unsubscriber}
|
|
179
|
+
*/
|
|
180
|
+
function subscribe(run, invalidate = noop) {
|
|
181
|
+
/** @type {SubscribeInvalidateTuple<T>} */
|
|
182
|
+
const subscriber = [run, invalidate];
|
|
183
|
+
subscribers.add(subscriber);
|
|
184
|
+
if (subscribers.size === 1) stop = start(set, update) || noop;
|
|
185
|
+
run(value);
|
|
186
|
+
return () => {
|
|
187
|
+
subscribers.delete(subscriber);
|
|
188
|
+
if (subscribers.size === 0 && stop) {
|
|
189
|
+
stop();
|
|
190
|
+
stop = null;
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
set,
|
|
196
|
+
update,
|
|
197
|
+
subscribe
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
115
201
|
//#region node_modules/@sveltejs/kit/src/utils/hash.js
|
|
116
202
|
/**
|
|
117
203
|
* Hash using djb2
|
|
@@ -259,5 +345,5 @@ var validate_page_exports = validator(valid_page_exports);
|
|
|
259
345
|
var validate_layout_server_exports = validator(valid_layout_server_exports);
|
|
260
346
|
var validate_page_server_exports = validator(valid_page_server_exports);
|
|
261
347
|
|
|
262
|
-
export { disable_search as a, validate_layout_exports as b, validate_page_server_exports as c, decode_pathname as d, validate_page_exports as e, find_route as f, hash as h, make_trackable as m, normalize_path as n, resolve as r, validate_layout_server_exports as v };
|
|
263
|
-
//# sourceMappingURL=exports.js-
|
|
348
|
+
export { disable_search as a, validate_layout_exports as b, validate_page_server_exports as c, decode_pathname as d, validate_page_exports as e, find_route as f, readable as g, hash as h, make_trackable as m, normalize_path as n, resolve as r, validate_layout_server_exports as v, writable as w };
|
|
349
|
+
//# sourceMappingURL=exports.js-D7S4dPRP.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as render, s as set, L as LEGACY_PROPS, g as get, f as flushSync, d as define_property, m as mutable_source, i as init_operations, a as get_first_child, b as get_next_sibling, H as HYDRATION_ERROR, c as set_hydrating, e as set_hydrate_node, h as hydration_failed, j as clear_text_content, k as component_root, l as hydrate_node, n as create_text, o as array_from, p as is_passive_event, q as set_active_reaction, t as set_active_effect, u as active_reaction, v as active_effect, w as setContext, x as hydrating, y as block, z as branch, A as queue_micro_task, B as invoke_error_boundary, C as current_batch, D as pause_effect, E as move_effect, F as defer_effect, G as set_component_context, I as Batch, J as component_context, K as internal_set, M as destroy_effect, N as next, O as skip_nodes, P as derived, Q as effect_tracking, R as render_effect, S as svelte_boundary_reset_noop, T as svelte_boundary_reset_onerror, U as source, V as untrack, W as increment, X as hydrate_next, Y as push$1, Z as mark_as_component, _ as hydration_mismatch, $ as pop$1, a0 as run, a1 as noop, a2 as hasContext, a3 as getContext, a4 as getAllContexts, a5 as createContext, a6 as ssr_context, a7 as lifecycle_function_unavailable, a8 as EFFECT_TRANSPARENT, a9 as EFFECT_PRESERVED, aa as experimental_async_required, ab as get_render_context, ac as uneval, ad as hydratable_serialization_failed } from './server.js-
|
|
1
|
+
import { r as render, s as set, L as LEGACY_PROPS, g as get, f as flushSync, d as define_property, m as mutable_source, i as init_operations, a as get_first_child, b as get_next_sibling, H as HYDRATION_ERROR, c as set_hydrating, e as set_hydrate_node, h as hydration_failed, j as clear_text_content, k as component_root, l as hydrate_node, n as create_text, o as array_from, p as is_passive_event, q as set_active_reaction, t as set_active_effect, u as active_reaction, v as active_effect, w as setContext, x as hydrating, y as block, z as branch, A as queue_micro_task, B as invoke_error_boundary, C as current_batch, D as pause_effect, E as move_effect, F as defer_effect, G as set_component_context, I as Batch, J as component_context, K as internal_set, M as destroy_effect, N as next, O as skip_nodes, P as derived, Q as effect_tracking, R as render_effect, S as svelte_boundary_reset_noop, T as svelte_boundary_reset_onerror, U as source, V as untrack, W as increment, X as hydrate_next, Y as push$1, Z as mark_as_component, _ as hydration_mismatch, $ as pop$1, a0 as run, a1 as noop, a2 as hasContext, a3 as getContext, a4 as getAllContexts, a5 as createContext, a6 as ssr_context, a7 as lifecycle_function_unavailable, a8 as EFFECT_TRANSPARENT, a9 as EFFECT_PRESERVED, aa as experimental_async_required, ab as get_render_context, ac as uneval, ad as hydratable_serialization_failed } from './server.js-DxWEh0qK.js';
|
|
2
2
|
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -986,6 +986,7 @@ function encode(key, value, unresolved) {
|
|
|
986
986
|
const p = value.then((v) => {
|
|
987
987
|
entry.serialized = entry.serialized.replace(placeholder, () => `r(${uneval(v)})`);
|
|
988
988
|
}).catch((devalue_error) => hydratable_serialization_failed(key, serialization_stack(entry.stack, devalue_error?.stack)));
|
|
989
|
+
unresolved?.set(p, key);
|
|
989
990
|
p.catch(() => {}).finally(() => unresolved?.delete(p));
|
|
990
991
|
(entry.promises ??= []).push(p);
|
|
991
992
|
return placeholder;
|
|
@@ -1175,7 +1176,7 @@ var options = {
|
|
|
1175
1176
|
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\" data-theme=\"%aiusage.theme%\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <meta name=\"color-scheme\" content=\"light dark\" />\n <meta\n name=\"description\"\n content=\"Every token your AI coding tools have spent, from the transcripts already on your machine.\"\n />\n <meta name=\"robots\" content=\"noindex\" />\n <link rel=\"icon\" href=\"" + assets + "/favicon.svg\" type=\"image/svg+xml\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"hover\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
|
|
1176
1177
|
error: error_template_default
|
|
1177
1178
|
},
|
|
1178
|
-
version_hash: "
|
|
1179
|
+
version_hash: "1ezmq0l"
|
|
1179
1180
|
};
|
|
1180
1181
|
async function get_hooks() {
|
|
1181
1182
|
let handle;
|
|
@@ -1198,4 +1199,4 @@ async function get_hooks() {
|
|
|
1198
1199
|
}
|
|
1199
1200
|
|
|
1200
1201
|
export { set_public_env as a, set_read_implementation as b, get_hooks as g, index_server_exports as i, options as o, public_env as p, read_implementation as r, set_private_env as s };
|
|
1201
|
-
//# sourceMappingURL=internal.js-
|
|
1202
|
+
//# sourceMappingURL=internal.js-CtDPw1co.js.map
|