tokentracker-cli 0.5.1 → 0.5.3
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/README.md +5 -1
- package/dashboard/dist/assets/DashboardPage-CGaKcd55.js +12 -0
- package/dashboard/dist/assets/LeaderboardPage-Dj9QZ8jC.js +1 -0
- package/dashboard/dist/assets/LeaderboardProfilePage-Bz-aUVkS.js +1 -0
- package/dashboard/dist/assets/ThemeToggle-BeCU2uxY.js +1 -0
- package/dashboard/dist/assets/leaderboard-columns-wV7NeEpI.js +1 -0
- package/dashboard/dist/assets/main-Cwn9_aQV.css +1 -0
- package/dashboard/dist/assets/main-b3V-nHUe.js +4759 -0
- package/dashboard/dist/brand-logos/claude-code.svg +3 -0
- package/dashboard/dist/brand-logos/codex.svg +3 -0
- package/dashboard/dist/brand-logos/cursor.svg +3 -0
- package/dashboard/dist/brand-logos/gemini.svg +20 -0
- package/dashboard/dist/brand-logos/openclaw.svg +22 -0
- package/dashboard/dist/brand-logos/opencode.svg +3 -0
- package/dashboard/dist/dashboard-dark.png +0 -0
- package/dashboard/dist/feed.xml +7 -7
- package/dashboard/dist/index.html +5 -5
- package/dashboard/dist/llms.txt +13 -13
- package/dashboard/dist/robots.txt +3 -3
- package/dashboard/dist/share.html +2 -2
- package/dashboard/dist/sitemap.xml +2 -2
- package/package.json +4 -13
- package/src/commands/init.js +8 -95
- package/src/commands/serve.js +1 -1
- package/src/commands/sync.js +106 -153
- package/src/lib/activation-check.js +21 -21
- package/src/lib/browser-auth.js +1 -1
- package/src/lib/doctor.js +0 -13
- package/src/lib/gemini-config.js +1 -1
- package/src/lib/local-api.js +94 -12
- package/src/lib/openclaw-hook.js +8 -8
- package/src/lib/openclaw-session-plugin.js +7 -7
- package/src/lib/opencode-config.js +1 -1
- package/src/lib/opencode-usage-audit.js +1 -1
- package/src/lib/rollout.js +9 -15
- package/src/lib/runtime-config.js +1 -11
- package/dashboard/dist/assets/DashboardPage-CExFMoW6.js +0 -20
- package/dashboard/dist/assets/LandingExtras-xTxVZkGw.js +0 -1
- package/dashboard/dist/assets/LeaderboardPage-OsAoNAEz.js +0 -1
- package/dashboard/dist/assets/LeaderboardProfilePage-DK2OUyhv.js +0 -1
- package/dashboard/dist/assets/MatrixRain-C71qNSYx.js +0 -1
- package/dashboard/dist/assets/MatrixShell-DVXCuT--.js +0 -1
- package/dashboard/dist/assets/main-B_NbZucu.css +0 -1
- package/dashboard/dist/assets/main-DBkuzJr4.js +0 -2058
- package/dashboard/dist/assets/vibeusage-api-93ghbEE8.js +0 -1
- package/dashboard/dist/icon.svg +0 -1
- package/dashboard/dist/landing-dashboard.jpg +0 -0
- package/dashboard/dist/og-image.jpg +0 -0
- package/dashboard/dist/share-dashboard.jpg +0 -0
- package/dashboard/dist/social-preview.png +0 -0
- package/dashboard/dist/wrapped-2025.png +0 -0
- package/node_modules/@insforge/sdk/LICENSE +0 -201
- package/node_modules/@insforge/sdk/README.md +0 -259
- package/node_modules/@insforge/sdk/dist/index.d.mts +0 -854
- package/node_modules/@insforge/sdk/dist/index.d.ts +0 -854
- package/node_modules/@insforge/sdk/dist/index.js +0 -1823
- package/node_modules/@insforge/sdk/dist/index.js.map +0 -1
- package/node_modules/@insforge/sdk/dist/index.mjs +0 -1784
- package/node_modules/@insforge/sdk/dist/index.mjs.map +0 -1
- package/node_modules/@insforge/sdk/package.json +0 -68
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts +0 -583
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js +0 -111
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts +0 -188
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js +0 -48
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts +0 -1127
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js +0 -277
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts +0 -187
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js +0 -105
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts +0 -144
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js +0 -41
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts +0 -1627
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js +0 -209
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts +0 -263
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js +0 -89
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts +0 -4
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js +0 -22
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts +0 -34
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js +0 -24
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts +0 -39
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js +0 -18
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts +0 -34
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js +0 -14
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts +0 -19
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/index.js +0 -19
- package/node_modules/@insforge/shared-schemas/dist/index.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts +0 -237
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js +0 -41
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts +0 -79
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js +0 -31
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts +0 -940
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js +0 -50
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts +0 -395
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js +0 -73
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts +0 -269
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js +0 -109
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts +0 -166
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js +0 -49
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts +0 -39
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js +0 -15
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/package.json +0 -31
- package/node_modules/@socket.io/component-emitter/LICENSE +0 -24
- package/node_modules/@socket.io/component-emitter/Readme.md +0 -79
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +0 -179
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +0 -176
- package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +0 -4
- package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +0 -179
- package/node_modules/@socket.io/component-emitter/lib/esm/index.js +0 -169
- package/node_modules/@socket.io/component-emitter/lib/esm/package.json +0 -4
- package/node_modules/@socket.io/component-emitter/package.json +0 -28
- package/node_modules/@supabase/node-fetch/LICENSE.md +0 -22
- package/node_modules/@supabase/node-fetch/README.md +0 -633
- package/node_modules/@supabase/node-fetch/browser.js +0 -22
- package/node_modules/@supabase/node-fetch/lib/index.es.js +0 -1778
- package/node_modules/@supabase/node-fetch/lib/index.js +0 -1787
- package/node_modules/@supabase/node-fetch/lib/index.mjs +0 -1776
- package/node_modules/@supabase/node-fetch/package.json +0 -80
- package/node_modules/@supabase/postgrest-js/LICENSE +0 -21
- package/node_modules/@supabase/postgrest-js/README.md +0 -56
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts +0 -71
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js +0 -222
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts +0 -74
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js +0 -121
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts +0 -17
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js +0 -18
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts +0 -108
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js +0 -381
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts +0 -117
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js +0 -251
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts +0 -157
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js +0 -226
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts +0 -4
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js +0 -6
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts +0 -19
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js +0 -28
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts +0 -261
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js +0 -5
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts +0 -157
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js +0 -3
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts +0 -31
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js +0 -3
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts +0 -264
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js +0 -3
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts +0 -106
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js +0 -3
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts +0 -2
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js +0 -5
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/esm/wrapper.mjs +0 -28
- package/node_modules/@supabase/postgrest-js/package.json +0 -75
- package/node_modules/@supabase/postgrest-js/src/PostgrestBuilder.ts +0 -300
- package/node_modules/@supabase/postgrest-js/src/PostgrestClient.ts +0 -192
- package/node_modules/@supabase/postgrest-js/src/PostgrestError.ts +0 -18
- package/node_modules/@supabase/postgrest-js/src/PostgrestFilterBuilder.ts +0 -604
- package/node_modules/@supabase/postgrest-js/src/PostgrestQueryBuilder.ts +0 -437
- package/node_modules/@supabase/postgrest-js/src/PostgrestTransformBuilder.ts +0 -368
- package/node_modules/@supabase/postgrest-js/src/constants.ts +0 -2
- package/node_modules/@supabase/postgrest-js/src/index.ts +0 -35
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/parser.ts +0 -469
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/result.ts +0 -503
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/types.ts +0 -115
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/utils.ts +0 -602
- package/node_modules/@supabase/postgrest-js/src/types.ts +0 -201
- package/node_modules/@supabase/postgrest-js/src/version.ts +0 -1
- package/node_modules/debug/LICENSE +0 -20
- package/node_modules/debug/README.md +0 -481
- package/node_modules/debug/package.json +0 -60
- package/node_modules/debug/src/browser.js +0 -271
- package/node_modules/debug/src/common.js +0 -274
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/node.js +0 -263
- package/node_modules/engine.io-client/LICENSE +0 -22
- package/node_modules/engine.io-client/README.md +0 -331
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +0 -3
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +0 -4
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +0 -1
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +0 -14
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +0 -15
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +0 -38
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +0 -1
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +0 -67
- package/node_modules/engine.io-client/build/cjs/globals.d.ts +0 -4
- package/node_modules/engine.io-client/build/cjs/globals.js +0 -26
- package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +0 -21
- package/node_modules/engine.io-client/build/cjs/globals.node.js +0 -97
- package/node_modules/engine.io-client/build/cjs/index.d.ts +0 -15
- package/node_modules/engine.io-client/build/cjs/index.js +0 -32
- package/node_modules/engine.io-client/build/cjs/package.json +0 -10
- package/node_modules/engine.io-client/build/cjs/socket.d.ts +0 -482
- package/node_modules/engine.io-client/build/cjs/socket.js +0 -765
- package/node_modules/engine.io-client/build/cjs/transport.d.ts +0 -106
- package/node_modules/engine.io-client/build/cjs/transport.js +0 -153
- package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +0 -8
- package/node_modules/engine.io-client/build/cjs/transports/index.js +0 -11
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +0 -15
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +0 -60
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +0 -108
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +0 -285
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +0 -11
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +0 -44
- package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +0 -52
- package/node_modules/engine.io-client/build/cjs/transports/polling.js +0 -165
- package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +0 -36
- package/node_modules/engine.io-client/build/cjs/transports/websocket.js +0 -136
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +0 -14
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +0 -68
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +0 -18
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +0 -94
- package/node_modules/engine.io-client/build/cjs/util.d.ts +0 -7
- package/node_modules/engine.io-client/build/cjs/util.js +0 -65
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +0 -3
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +0 -2
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +0 -1
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +0 -11
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +0 -34
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +0 -1
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +0 -64
- package/node_modules/engine.io-client/build/esm/globals.d.ts +0 -4
- package/node_modules/engine.io-client/build/esm/globals.js +0 -22
- package/node_modules/engine.io-client/build/esm/globals.node.d.ts +0 -21
- package/node_modules/engine.io-client/build/esm/globals.node.js +0 -91
- package/node_modules/engine.io-client/build/esm/index.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm/index.js +0 -15
- package/node_modules/engine.io-client/build/esm/package.json +0 -10
- package/node_modules/engine.io-client/build/esm/socket.d.ts +0 -482
- package/node_modules/engine.io-client/build/esm/socket.js +0 -727
- package/node_modules/engine.io-client/build/esm/transport.d.ts +0 -106
- package/node_modules/engine.io-client/build/esm/transport.js +0 -142
- package/node_modules/engine.io-client/build/esm/transports/index.d.ts +0 -8
- package/node_modules/engine.io-client/build/esm/transports/index.js +0 -8
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +0 -56
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +0 -108
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +0 -271
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +0 -11
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +0 -17
- package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +0 -52
- package/node_modules/engine.io-client/build/esm/transports/polling.js +0 -145
- package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +0 -36
- package/node_modules/engine.io-client/build/esm/transports/websocket.js +0 -125
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +0 -14
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +0 -41
- package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +0 -18
- package/node_modules/engine.io-client/build/esm/transports/webtransport.js +0 -80
- package/node_modules/engine.io-client/build/esm/util.d.ts +0 -7
- package/node_modules/engine.io-client/build/esm/util.js +0 -59
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +0 -3
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +0 -2
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +0 -1
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +0 -11
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +0 -34
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +0 -1
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +0 -64
- package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +0 -4
- package/node_modules/engine.io-client/build/esm-debug/globals.js +0 -22
- package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +0 -21
- package/node_modules/engine.io-client/build/esm-debug/globals.node.js +0 -91
- package/node_modules/engine.io-client/build/esm-debug/index.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm-debug/index.js +0 -15
- package/node_modules/engine.io-client/build/esm-debug/package.json +0 -10
- package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +0 -482
- package/node_modules/engine.io-client/build/esm-debug/socket.js +0 -756
- package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +0 -106
- package/node_modules/engine.io-client/build/esm-debug/transport.js +0 -145
- package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +0 -8
- package/node_modules/engine.io-client/build/esm-debug/transports/index.js +0 -8
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +0 -56
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +0 -108
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +0 -276
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +0 -11
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +0 -17
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +0 -52
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +0 -158
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +0 -36
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +0 -128
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +0 -14
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +0 -41
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +0 -18
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +0 -87
- package/node_modules/engine.io-client/build/esm-debug/util.d.ts +0 -7
- package/node_modules/engine.io-client/build/esm-debug/util.js +0 -59
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js +0 -7
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +0 -1
- package/node_modules/engine.io-client/dist/engine.io.js +0 -2968
- package/node_modules/engine.io-client/dist/engine.io.js.map +0 -1
- package/node_modules/engine.io-client/dist/engine.io.min.js +0 -7
- package/node_modules/engine.io-client/dist/engine.io.min.js.map +0 -1
- package/node_modules/engine.io-client/package.json +0 -95
- package/node_modules/engine.io-parser/LICENSE +0 -22
- package/node_modules/engine.io-parser/Readme.md +0 -158
- package/node_modules/engine.io-parser/build/cjs/commons.d.ts +0 -14
- package/node_modules/engine.io-parser/build/cjs/commons.js +0 -19
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +0 -2
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +0 -48
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +0 -2
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +0 -66
- package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +0 -2
- package/node_modules/engine.io-parser/build/cjs/decodePacket.js +0 -59
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +0 -4
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +0 -72
- package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +0 -3
- package/node_modules/engine.io-parser/build/cjs/encodePacket.js +0 -38
- package/node_modules/engine.io-parser/build/cjs/index.d.ts +0 -9
- package/node_modules/engine.io-parser/build/cjs/index.js +0 -164
- package/node_modules/engine.io-parser/build/cjs/package.json +0 -8
- package/node_modules/engine.io-parser/build/esm/commons.d.ts +0 -14
- package/node_modules/engine.io-parser/build/esm/commons.js +0 -14
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +0 -2
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +0 -43
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +0 -2
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +0 -62
- package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +0 -2
- package/node_modules/engine.io-parser/build/esm/decodePacket.js +0 -55
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +0 -4
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +0 -68
- package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +0 -3
- package/node_modules/engine.io-parser/build/esm/encodePacket.js +0 -33
- package/node_modules/engine.io-parser/build/esm/index.d.ts +0 -9
- package/node_modules/engine.io-parser/build/esm/index.js +0 -156
- package/node_modules/engine.io-parser/build/esm/package.json +0 -8
- package/node_modules/engine.io-parser/package.json +0 -46
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -38
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/socket.io-client/LICENSE +0 -21
- package/node_modules/socket.io-client/README.md +0 -29
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +0 -2
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +0 -4
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +0 -12
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +0 -69
- package/node_modules/socket.io-client/build/cjs/index.d.ts +0 -29
- package/node_modules/socket.io-client/build/cjs/index.js +0 -76
- package/node_modules/socket.io-client/build/cjs/manager.d.ts +0 -295
- package/node_modules/socket.io-client/build/cjs/manager.js +0 -416
- package/node_modules/socket.io-client/build/cjs/on.d.ts +0 -2
- package/node_modules/socket.io-client/build/cjs/on.js +0 -9
- package/node_modules/socket.io-client/build/cjs/socket.d.ts +0 -593
- package/node_modules/socket.io-client/build/cjs/socket.js +0 -910
- package/node_modules/socket.io-client/build/cjs/url.d.ts +0 -33
- package/node_modules/socket.io-client/build/cjs/url.js +0 -69
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +0 -2
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +0 -2
- package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +0 -12
- package/node_modules/socket.io-client/build/esm/contrib/backo2.js +0 -66
- package/node_modules/socket.io-client/build/esm/index.d.ts +0 -29
- package/node_modules/socket.io-client/build/esm/index.js +0 -58
- package/node_modules/socket.io-client/build/esm/manager.d.ts +0 -295
- package/node_modules/socket.io-client/build/esm/manager.js +0 -367
- package/node_modules/socket.io-client/build/esm/on.d.ts +0 -2
- package/node_modules/socket.io-client/build/esm/on.js +0 -6
- package/node_modules/socket.io-client/build/esm/package.json +0 -5
- package/node_modules/socket.io-client/build/esm/socket.d.ts +0 -593
- package/node_modules/socket.io-client/build/esm/socket.js +0 -882
- package/node_modules/socket.io-client/build/esm/url.d.ts +0 -33
- package/node_modules/socket.io-client/build/esm/url.js +0 -59
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +0 -2
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +0 -2
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +0 -12
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +0 -66
- package/node_modules/socket.io-client/build/esm-debug/index.d.ts +0 -29
- package/node_modules/socket.io-client/build/esm-debug/index.js +0 -62
- package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +0 -295
- package/node_modules/socket.io-client/build/esm-debug/manager.js +0 -386
- package/node_modules/socket.io-client/build/esm-debug/on.d.ts +0 -2
- package/node_modules/socket.io-client/build/esm-debug/on.js +0 -6
- package/node_modules/socket.io-client/build/esm-debug/package.json +0 -5
- package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +0 -593
- package/node_modules/socket.io-client/build/esm-debug/socket.js +0 -903
- package/node_modules/socket.io-client/build/esm-debug/url.d.ts +0 -33
- package/node_modules/socket.io-client/build/esm-debug/url.js +0 -63
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js +0 -7
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +0 -1
- package/node_modules/socket.io-client/dist/socket.io.js +0 -4908
- package/node_modules/socket.io-client/dist/socket.io.js.map +0 -1
- package/node_modules/socket.io-client/dist/socket.io.min.js +0 -7
- package/node_modules/socket.io-client/dist/socket.io.min.js.map +0 -1
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +0 -7
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +0 -1
- package/node_modules/socket.io-client/package.json +0 -101
- package/node_modules/socket.io-parser/LICENSE +0 -20
- package/node_modules/socket.io-parser/Readme.md +0 -81
- package/node_modules/socket.io-parser/build/cjs/binary.d.ts +0 -20
- package/node_modules/socket.io-parser/build/cjs/binary.js +0 -88
- package/node_modules/socket.io-parser/build/cjs/index.d.ts +0 -90
- package/node_modules/socket.io-parser/build/cjs/index.js +0 -321
- package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +0 -7
- package/node_modules/socket.io-parser/build/cjs/is-binary.js +0 -55
- package/node_modules/socket.io-parser/build/cjs/package.json +0 -3
- package/node_modules/socket.io-parser/build/esm/binary.d.ts +0 -20
- package/node_modules/socket.io-parser/build/esm/binary.js +0 -83
- package/node_modules/socket.io-parser/build/esm/index.d.ts +0 -90
- package/node_modules/socket.io-parser/build/esm/index.js +0 -311
- package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +0 -7
- package/node_modules/socket.io-parser/build/esm/is-binary.js +0 -50
- package/node_modules/socket.io-parser/build/esm/package.json +0 -3
- package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +0 -20
- package/node_modules/socket.io-parser/build/esm-debug/binary.js +0 -83
- package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +0 -90
- package/node_modules/socket.io-parser/build/esm-debug/index.js +0 -316
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +0 -7
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +0 -50
- package/node_modules/socket.io-parser/build/esm-debug/package.json +0 -3
- package/node_modules/socket.io-parser/package.json +0 -58
- package/node_modules/tr46/.npmignore +0 -4
- package/node_modules/tr46/index.js +0 -193
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +0 -1
- package/node_modules/tr46/package.json +0 -31
- package/node_modules/webidl-conversions/LICENSE.md +0 -12
- package/node_modules/webidl-conversions/README.md +0 -53
- package/node_modules/webidl-conversions/lib/index.js +0 -189
- package/node_modules/webidl-conversions/package.json +0 -23
- package/node_modules/whatwg-url/LICENSE.txt +0 -21
- package/node_modules/whatwg-url/README.md +0 -67
- package/node_modules/whatwg-url/lib/URL-impl.js +0 -200
- package/node_modules/whatwg-url/lib/URL.js +0 -196
- package/node_modules/whatwg-url/lib/public-api.js +0 -11
- package/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
- package/node_modules/whatwg-url/lib/utils.js +0 -20
- package/node_modules/whatwg-url/package.json +0 -32
- package/node_modules/ws/LICENSE +0 -20
- package/node_modules/ws/README.md +0 -548
- package/node_modules/ws/browser.js +0 -8
- package/node_modules/ws/index.js +0 -13
- package/node_modules/ws/lib/buffer-util.js +0 -131
- package/node_modules/ws/lib/constants.js +0 -12
- package/node_modules/ws/lib/event-target.js +0 -292
- package/node_modules/ws/lib/extension.js +0 -203
- package/node_modules/ws/lib/limiter.js +0 -55
- package/node_modules/ws/lib/permessage-deflate.js +0 -514
- package/node_modules/ws/lib/receiver.js +0 -704
- package/node_modules/ws/lib/sender.js +0 -497
- package/node_modules/ws/lib/stream.js +0 -159
- package/node_modules/ws/lib/subprotocol.js +0 -62
- package/node_modules/ws/lib/validation.js +0 -130
- package/node_modules/ws/lib/websocket-server.js +0 -540
- package/node_modules/ws/lib/websocket.js +0 -1338
- package/node_modules/ws/package.json +0 -69
- package/node_modules/ws/wrapper.mjs +0 -8
- package/node_modules/xmlhttprequest-ssl/LICENSE +0 -22
- package/node_modules/xmlhttprequest-ssl/README.md +0 -67
- package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +0 -689
- package/node_modules/xmlhttprequest-ssl/package.json +0 -40
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -208
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/package.json +0 -118
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -257
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5136
- package/node_modules/zod/src/v4/classic/checks.ts +0 -30
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -66
- package/node_modules/zod/src/v4/classic/errors.ts +0 -75
- package/node_modules/zod/src/v4/classic/external.ts +0 -50
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -33
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1594
- package/node_modules/zod/src/v4/core/checks.ts +0 -1283
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -134
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -424
- package/node_modules/zod/src/v4/core/function.ts +0 -176
- package/node_modules/zod/src/v4/core/index.ts +0 -15
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -143
- package/node_modules/zod/src/v4/core/parse.ts +0 -94
- package/node_modules/zod/src/v4/core/regexes.ts +0 -135
- package/node_modules/zod/src/v4/core/registries.ts +0 -96
- package/node_modules/zod/src/v4/core/schemas.ts +0 -3842
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
- package/node_modules/zod/src/v4/core/util.ts +0 -775
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -125
- package/node_modules/zod/src/v4/locales/az.ts +0 -121
- package/node_modules/zod/src/v4/locales/be.ts +0 -184
- package/node_modules/zod/src/v4/locales/ca.ts +0 -127
- package/node_modules/zod/src/v4/locales/cs.ts +0 -142
- package/node_modules/zod/src/v4/locales/de.ts +0 -124
- package/node_modules/zod/src/v4/locales/en.ts +0 -127
- package/node_modules/zod/src/v4/locales/eo.ts +0 -125
- package/node_modules/zod/src/v4/locales/es.ts +0 -125
- package/node_modules/zod/src/v4/locales/fa.ts +0 -134
- package/node_modules/zod/src/v4/locales/fi.ts +0 -131
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
- package/node_modules/zod/src/v4/locales/fr.ts +0 -124
- package/node_modules/zod/src/v4/locales/he.ts +0 -125
- package/node_modules/zod/src/v4/locales/hu.ts +0 -126
- package/node_modules/zod/src/v4/locales/id.ts +0 -125
- package/node_modules/zod/src/v4/locales/index.ts +0 -39
- package/node_modules/zod/src/v4/locales/it.ts +0 -125
- package/node_modules/zod/src/v4/locales/ja.ts +0 -122
- package/node_modules/zod/src/v4/locales/kh.ts +0 -126
- package/node_modules/zod/src/v4/locales/ko.ts +0 -131
- package/node_modules/zod/src/v4/locales/mk.ts +0 -127
- package/node_modules/zod/src/v4/locales/ms.ts +0 -124
- package/node_modules/zod/src/v4/locales/nl.ts +0 -126
- package/node_modules/zod/src/v4/locales/no.ts +0 -124
- package/node_modules/zod/src/v4/locales/ota.ts +0 -125
- package/node_modules/zod/src/v4/locales/pl.ts +0 -126
- package/node_modules/zod/src/v4/locales/ps.ts +0 -133
- package/node_modules/zod/src/v4/locales/pt.ts +0 -123
- package/node_modules/zod/src/v4/locales/ru.ts +0 -184
- package/node_modules/zod/src/v4/locales/sl.ts +0 -126
- package/node_modules/zod/src/v4/locales/sv.ts +0 -127
- package/node_modules/zod/src/v4/locales/ta.ts +0 -125
- package/node_modules/zod/src/v4/locales/th.ts +0 -126
- package/node_modules/zod/src/v4/locales/tr.ts +0 -121
- package/node_modules/zod/src/v4/locales/ua.ts +0 -126
- package/node_modules/zod/src/v4/locales/ur.ts +0 -126
- package/node_modules/zod/src/v4/locales/vi.ts +0 -125
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -22
- package/node_modules/zod/src/v4/mini/external.ts +0 -40
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -62
- package/node_modules/zod/src/v4/mini/parse.ts +0 -1
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
- package/node_modules/zod/src/v4-mini/index.ts +0 -1
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -111
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3775
- package/node_modules/zod/v3/types.d.cts +0 -1031
- package/node_modules/zod/v3/types.d.ts +0 -1031
- package/node_modules/zod/v3/types.js +0 -3693
- package/node_modules/zod/v4/classic/checks.cjs +0 -32
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -57
- package/node_modules/zod/v4/classic/compat.d.cts +0 -46
- package/node_modules/zod/v4/classic/compat.d.ts +0 -46
- package/node_modules/zod/v4/classic/compat.js +0 -27
- package/node_modules/zod/v4/classic/errors.cjs +0 -67
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -41
- package/node_modules/zod/v4/classic/external.cjs +0 -70
- package/node_modules/zod/v4/classic/external.d.cts +0 -13
- package/node_modules/zod/v4/classic/external.d.ts +0 -13
- package/node_modules/zod/v4/classic/external.js +0 -18
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/parse.cjs +0 -32
- package/node_modules/zod/v4/classic/parse.d.cts +0 -23
- package/node_modules/zod/v4/classic/parse.d.ts +0 -23
- package/node_modules/zod/v4/classic/parse.js +0 -6
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1109
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -630
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -630
- package/node_modules/zod/v4/classic/schemas.js +0 -1006
- package/node_modules/zod/v4/core/api.cjs +0 -1039
- package/node_modules/zod/v4/core/api.d.cts +0 -284
- package/node_modules/zod/v4/core/api.d.ts +0 -284
- package/node_modules/zod/v4/core/api.js +0 -906
- package/node_modules/zod/v4/core/checks.cjs +0 -591
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -565
- package/node_modules/zod/v4/core/core.cjs +0 -67
- package/node_modules/zod/v4/core/core.d.cts +0 -49
- package/node_modules/zod/v4/core/core.d.ts +0 -49
- package/node_modules/zod/v4/core/core.js +0 -61
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -226
- package/node_modules/zod/v4/core/errors.d.cts +0 -208
- package/node_modules/zod/v4/core/errors.d.ts +0 -208
- package/node_modules/zod/v4/core/errors.js +0 -195
- package/node_modules/zod/v4/core/function.cjs +0 -102
- package/node_modules/zod/v4/core/function.d.cts +0 -52
- package/node_modules/zod/v4/core/function.d.ts +0 -52
- package/node_modules/zod/v4/core/function.js +0 -75
- package/node_modules/zod/v4/core/index.cjs +0 -44
- package/node_modules/zod/v4/core/index.d.cts +0 -15
- package/node_modules/zod/v4/core/index.d.ts +0 -15
- package/node_modules/zod/v4/core/index.js +0 -15
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -87
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -87
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/parse.cjs +0 -87
- package/node_modules/zod/v4/core/parse.d.cts +0 -25
- package/node_modules/zod/v4/core/parse.d.ts +0 -25
- package/node_modules/zod/v4/core/parse.js +0 -57
- package/node_modules/zod/v4/core/regexes.cjs +0 -103
- package/node_modules/zod/v4/core/regexes.d.cts +0 -62
- package/node_modules/zod/v4/core/regexes.d.ts +0 -62
- package/node_modules/zod/v4/core/regexes.js +0 -95
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -1748
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1041
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1041
- package/node_modules/zod/v4/core/schemas.js +0 -1717
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/to-json-schema.js +0 -849
- package/node_modules/zod/v4/core/util.cjs +0 -539
- package/node_modules/zod/v4/core/util.d.cts +0 -183
- package/node_modules/zod/v4/core/util.d.ts +0 -183
- package/node_modules/zod/v4/core/util.js +0 -493
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -142
- package/node_modules/zod/v4/locales/ar.d.cts +0 -4
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -116
- package/node_modules/zod/v4/locales/az.cjs +0 -141
- package/node_modules/zod/v4/locales/az.d.cts +0 -4
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -115
- package/node_modules/zod/v4/locales/be.cjs +0 -190
- package/node_modules/zod/v4/locales/be.d.cts +0 -4
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -164
- package/node_modules/zod/v4/locales/ca.cjs +0 -144
- package/node_modules/zod/v4/locales/ca.d.cts +0 -4
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -118
- package/node_modules/zod/v4/locales/cs.cjs +0 -161
- package/node_modules/zod/v4/locales/cs.d.cts +0 -4
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -135
- package/node_modules/zod/v4/locales/de.cjs +0 -142
- package/node_modules/zod/v4/locales/de.d.cts +0 -4
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -116
- package/node_modules/zod/v4/locales/en.cjs +0 -145
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -5
- package/node_modules/zod/v4/locales/en.js +0 -117
- package/node_modules/zod/v4/locales/eo.cjs +0 -144
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -5
- package/node_modules/zod/v4/locales/eo.js +0 -116
- package/node_modules/zod/v4/locales/es.cjs +0 -143
- package/node_modules/zod/v4/locales/es.d.cts +0 -4
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -117
- package/node_modules/zod/v4/locales/fa.cjs +0 -148
- package/node_modules/zod/v4/locales/fa.d.cts +0 -4
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -122
- package/node_modules/zod/v4/locales/fi.cjs +0 -148
- package/node_modules/zod/v4/locales/fi.d.cts +0 -4
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -122
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -117
- package/node_modules/zod/v4/locales/fr.cjs +0 -142
- package/node_modules/zod/v4/locales/fr.d.cts +0 -4
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -116
- package/node_modules/zod/v4/locales/he.cjs +0 -143
- package/node_modules/zod/v4/locales/he.d.cts +0 -4
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -117
- package/node_modules/zod/v4/locales/hu.cjs +0 -143
- package/node_modules/zod/v4/locales/hu.d.cts +0 -4
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -117
- package/node_modules/zod/v4/locales/id.cjs +0 -142
- package/node_modules/zod/v4/locales/id.d.cts +0 -4
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -116
- package/node_modules/zod/v4/locales/index.cjs +0 -84
- package/node_modules/zod/v4/locales/index.d.cts +0 -39
- package/node_modules/zod/v4/locales/index.d.ts +0 -39
- package/node_modules/zod/v4/locales/index.js +0 -39
- package/node_modules/zod/v4/locales/it.cjs +0 -143
- package/node_modules/zod/v4/locales/it.d.cts +0 -4
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -117
- package/node_modules/zod/v4/locales/ja.cjs +0 -141
- package/node_modules/zod/v4/locales/ja.d.cts +0 -4
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -115
- package/node_modules/zod/v4/locales/kh.cjs +0 -143
- package/node_modules/zod/v4/locales/kh.d.cts +0 -4
- package/node_modules/zod/v4/locales/kh.d.ts +0 -4
- package/node_modules/zod/v4/locales/kh.js +0 -117
- package/node_modules/zod/v4/locales/ko.cjs +0 -147
- package/node_modules/zod/v4/locales/ko.d.cts +0 -4
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -121
- package/node_modules/zod/v4/locales/mk.cjs +0 -144
- package/node_modules/zod/v4/locales/mk.d.cts +0 -4
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -118
- package/node_modules/zod/v4/locales/ms.cjs +0 -142
- package/node_modules/zod/v4/locales/ms.d.cts +0 -4
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -116
- package/node_modules/zod/v4/locales/nl.cjs +0 -143
- package/node_modules/zod/v4/locales/nl.d.cts +0 -4
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -117
- package/node_modules/zod/v4/locales/no.cjs +0 -142
- package/node_modules/zod/v4/locales/no.d.cts +0 -4
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -116
- package/node_modules/zod/v4/locales/ota.cjs +0 -143
- package/node_modules/zod/v4/locales/ota.d.cts +0 -4
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -117
- package/node_modules/zod/v4/locales/pl.cjs +0 -143
- package/node_modules/zod/v4/locales/pl.d.cts +0 -4
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -117
- package/node_modules/zod/v4/locales/ps.cjs +0 -148
- package/node_modules/zod/v4/locales/ps.d.cts +0 -4
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -122
- package/node_modules/zod/v4/locales/pt.cjs +0 -142
- package/node_modules/zod/v4/locales/pt.d.cts +0 -4
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -116
- package/node_modules/zod/v4/locales/ru.cjs +0 -190
- package/node_modules/zod/v4/locales/ru.d.cts +0 -4
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -164
- package/node_modules/zod/v4/locales/sl.cjs +0 -143
- package/node_modules/zod/v4/locales/sl.d.cts +0 -4
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -117
- package/node_modules/zod/v4/locales/sv.cjs +0 -144
- package/node_modules/zod/v4/locales/sv.d.cts +0 -4
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -118
- package/node_modules/zod/v4/locales/ta.cjs +0 -143
- package/node_modules/zod/v4/locales/ta.d.cts +0 -4
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -117
- package/node_modules/zod/v4/locales/th.cjs +0 -143
- package/node_modules/zod/v4/locales/th.d.cts +0 -4
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -117
- package/node_modules/zod/v4/locales/tr.cjs +0 -143
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -5
- package/node_modules/zod/v4/locales/tr.js +0 -115
- package/node_modules/zod/v4/locales/ua.cjs +0 -143
- package/node_modules/zod/v4/locales/ua.d.cts +0 -4
- package/node_modules/zod/v4/locales/ua.d.ts +0 -4
- package/node_modules/zod/v4/locales/ua.js +0 -117
- package/node_modules/zod/v4/locales/ur.cjs +0 -143
- package/node_modules/zod/v4/locales/ur.d.cts +0 -4
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -117
- package/node_modules/zod/v4/locales/vi.cjs +0 -142
- package/node_modules/zod/v4/locales/vi.d.cts +0 -4
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -116
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -116
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -117
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -47
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -17
- package/node_modules/zod/v4/mini/external.cjs +0 -62
- package/node_modules/zod/v4/mini/external.d.cts +0 -11
- package/node_modules/zod/v4/mini/external.d.ts +0 -11
- package/node_modules/zod/v4/mini/external.js +0 -13
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -60
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -30
- package/node_modules/zod/v4/mini/parse.cjs +0 -8
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -839
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -356
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -356
- package/node_modules/zod/v4/mini/schemas.js +0 -732
- package/node_modules/zod/v4-mini/index.cjs +0 -17
- package/node_modules/zod/v4-mini/index.d.cts +0 -1
- package/node_modules/zod/v4-mini/index.d.ts +0 -1
- package/node_modules/zod/v4-mini/index.js +0 -1
- package/src/lib/insforge-client.js +0 -79
- package/src/lib/insforge.js +0 -29
- package/src/lib/uploader.js +0 -224
- package/src/lib/vibeusage-api.js +0 -243
- package/src/lib/vibeusage-public-repo.js +0 -105
package/src/commands/sync.js
CHANGED
|
@@ -22,16 +22,10 @@ const {
|
|
|
22
22
|
parseCursorApiIncremental,
|
|
23
23
|
parseKiroIncremental,
|
|
24
24
|
} = require("../lib/rollout");
|
|
25
|
-
const { drainQueueToCloud } = require("../lib/uploader");
|
|
26
|
-
const { collectLocalSubscriptions } = require("../lib/subscriptions");
|
|
27
25
|
const { createProgress, renderBar, formatNumber, formatBytes } = require("../lib/progress");
|
|
28
|
-
const { syncHeartbeat } = require("../lib/vibeusage-api");
|
|
29
26
|
const {
|
|
30
|
-
DEFAULTS: UPLOAD_DEFAULTS,
|
|
31
27
|
normalizeState: normalizeUploadState,
|
|
32
28
|
decideAutoUpload,
|
|
33
|
-
recordUploadSuccess,
|
|
34
|
-
recordUploadFailure,
|
|
35
29
|
} = require("../lib/upload-throttle");
|
|
36
30
|
const {
|
|
37
31
|
isCursorInstalled,
|
|
@@ -347,118 +341,26 @@ async function cmdSync(argv) {
|
|
|
347
341
|
progress?.stop();
|
|
348
342
|
|
|
349
343
|
const runtime = resolveRuntimeConfig({ config: config || {}, env: process.env });
|
|
350
|
-
const deviceToken = runtime.deviceToken;
|
|
351
|
-
const baseUrl = runtime.baseUrl;
|
|
352
344
|
|
|
353
|
-
let uploadResult =
|
|
345
|
+
let uploadResult = { inserted: 0, skipped: 0 };
|
|
354
346
|
let uploadAttempted = false;
|
|
355
|
-
if (deviceToken) {
|
|
356
|
-
const beforeState = (await readJson(queueStatePath)) || { offset: 0 };
|
|
357
|
-
const projectBeforeState = (await readJson(projectQueueStatePath)) || { offset: 0 };
|
|
358
|
-
const queueSize = await safeStatSize(queuePath);
|
|
359
|
-
const projectQueueSize = await safeStatSize(projectQueuePath);
|
|
360
|
-
const pendingBytes =
|
|
361
|
-
Math.max(0, queueSize - Number(beforeState.offset || 0)) +
|
|
362
|
-
Math.max(0, projectQueueSize - Number(projectBeforeState.offset || 0));
|
|
363
|
-
let maxBatches = opts.auto ? 3 : opts.drain ? 10_000 : 10;
|
|
364
|
-
let batchSize = UPLOAD_DEFAULTS.batchSize;
|
|
365
|
-
let allowUpload = pendingBytes > 0;
|
|
366
|
-
let autoDecision = null;
|
|
367
|
-
|
|
368
|
-
if (opts.auto) {
|
|
369
|
-
autoDecision = decideAutoUpload({
|
|
370
|
-
nowMs: Date.now(),
|
|
371
|
-
pendingBytes,
|
|
372
|
-
state: uploadThrottle,
|
|
373
|
-
});
|
|
374
|
-
allowUpload = allowUpload && autoDecision.allowed;
|
|
375
|
-
maxBatches = autoDecision.allowed ? autoDecision.maxBatches : 0;
|
|
376
|
-
batchSize = autoDecision.batchSize;
|
|
377
|
-
if (!autoDecision.allowed && pendingBytes > 0 && autoDecision.blockedUntilMs > 0) {
|
|
378
|
-
const reason = deriveAutoSkipReason({ decision: autoDecision, state: uploadThrottle });
|
|
379
|
-
await scheduleAutoRetry({
|
|
380
|
-
trackerDir,
|
|
381
|
-
retryAtMs: autoDecision.blockedUntilMs,
|
|
382
|
-
reason,
|
|
383
|
-
pendingBytes,
|
|
384
|
-
source: "auto-throttled",
|
|
385
|
-
autoRetryNoSpawn: runtime.autoRetryNoSpawn,
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
347
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
if (allowUpload && maxBatches > 0) {
|
|
401
|
-
uploadAttempted = true;
|
|
402
|
-
const deviceSubscriptions = await collectLocalSubscriptions({
|
|
403
|
-
home,
|
|
404
|
-
env: process.env,
|
|
405
|
-
probeKeychain: true,
|
|
406
|
-
probeKeychainDetails: true,
|
|
348
|
+
if (runtime.deviceToken && runtime.baseUrl) {
|
|
349
|
+
uploadAttempted = true;
|
|
350
|
+
try {
|
|
351
|
+
uploadResult = await drainQueueToCloud({
|
|
352
|
+
baseUrl: runtime.baseUrl,
|
|
353
|
+
deviceToken: runtime.deviceToken,
|
|
354
|
+
queuePath,
|
|
355
|
+
queueStatePath,
|
|
356
|
+
maxBatches: opts.drain ? 100 : 5,
|
|
357
|
+
batchSize: 200,
|
|
407
358
|
});
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
deviceToken,
|
|
412
|
-
deviceSubscriptions,
|
|
413
|
-
queuePath,
|
|
414
|
-
queueStatePath,
|
|
415
|
-
projectQueuePath,
|
|
416
|
-
projectQueueStatePath,
|
|
417
|
-
maxBatches,
|
|
418
|
-
batchSize,
|
|
419
|
-
onProgress: (u) => {
|
|
420
|
-
if (!progress?.enabled) return;
|
|
421
|
-
const pct = u.queueSize > 0 ? u.offset / u.queueSize : 1;
|
|
422
|
-
progress.update(
|
|
423
|
-
`Uploading ${renderBar(pct)} ${formatBytes(u.offset)}/${formatBytes(u.queueSize)} | inserted ${formatNumber(
|
|
424
|
-
u.inserted,
|
|
425
|
-
)} skipped ${formatNumber(u.skipped)}`,
|
|
426
|
-
);
|
|
427
|
-
},
|
|
428
|
-
});
|
|
429
|
-
if (uploadResult.attempted > 0) {
|
|
430
|
-
const next = recordUploadSuccess({ nowMs: Date.now(), state: uploadThrottleState });
|
|
431
|
-
uploadThrottleState = next;
|
|
432
|
-
await writeJson(uploadThrottlePath, next);
|
|
433
|
-
}
|
|
434
|
-
} catch (e) {
|
|
435
|
-
const next = recordUploadFailure({
|
|
436
|
-
nowMs: Date.now(),
|
|
437
|
-
state: uploadThrottleState,
|
|
438
|
-
error: e,
|
|
439
|
-
});
|
|
440
|
-
uploadThrottleState = next;
|
|
441
|
-
await writeJson(uploadThrottlePath, next);
|
|
442
|
-
if (opts.auto && pendingBytes > 0) {
|
|
443
|
-
const retryAtMs = Math.max(next.nextAllowedAtMs || 0, next.backoffUntilMs || 0);
|
|
444
|
-
if (retryAtMs > 0) {
|
|
445
|
-
await scheduleAutoRetry({
|
|
446
|
-
trackerDir,
|
|
447
|
-
retryAtMs,
|
|
448
|
-
reason: "backoff",
|
|
449
|
-
pendingBytes,
|
|
450
|
-
source: "auto-error",
|
|
451
|
-
autoRetryNoSpawn: runtime.autoRetryNoSpawn,
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
throw e;
|
|
359
|
+
} catch (e) {
|
|
360
|
+
if (!opts.auto) {
|
|
361
|
+
process.stderr.write(`Upload error: ${e?.message || e}\n`);
|
|
456
362
|
}
|
|
457
|
-
} else {
|
|
458
|
-
uploadResult = { inserted: 0, skipped: 0 };
|
|
459
363
|
}
|
|
460
|
-
|
|
461
|
-
progress?.stop();
|
|
462
364
|
}
|
|
463
365
|
|
|
464
366
|
const afterState = (await readJson(queueStatePath)) || { offset: 0 };
|
|
@@ -485,14 +387,6 @@ async function cmdSync(argv) {
|
|
|
485
387
|
}
|
|
486
388
|
}
|
|
487
389
|
|
|
488
|
-
await maybeSendHeartbeat({
|
|
489
|
-
baseUrl,
|
|
490
|
-
deviceToken,
|
|
491
|
-
trackerDir,
|
|
492
|
-
uploadResult,
|
|
493
|
-
pendingBytes,
|
|
494
|
-
});
|
|
495
|
-
|
|
496
390
|
if (!opts.auto) {
|
|
497
391
|
const totalParsed =
|
|
498
392
|
parseResult.filesProcessed +
|
|
@@ -515,10 +409,10 @@ async function cmdSync(argv) {
|
|
|
515
409
|
"Sync finished:",
|
|
516
410
|
`- Parsed files: ${totalParsed}`,
|
|
517
411
|
`- New 30-min buckets queued: ${totalBuckets}`,
|
|
518
|
-
deviceToken
|
|
412
|
+
runtime.deviceToken
|
|
519
413
|
? `- Uploaded: ${uploadResult.inserted} inserted, ${uploadResult.skipped} skipped`
|
|
520
414
|
: "- Uploaded: skipped (no device token)",
|
|
521
|
-
deviceToken && pendingBytes > 0 && !opts.drain
|
|
415
|
+
runtime.deviceToken && pendingBytes > 0 && !opts.drain
|
|
522
416
|
? `- Remaining: ${formatBytes(pendingBytes)} pending (run sync again, or use --drain)`
|
|
523
417
|
: null,
|
|
524
418
|
"",
|
|
@@ -714,34 +608,6 @@ async function safeStatSize(p) {
|
|
|
714
608
|
}
|
|
715
609
|
}
|
|
716
610
|
|
|
717
|
-
async function maybeSendHeartbeat({
|
|
718
|
-
baseUrl,
|
|
719
|
-
deviceToken,
|
|
720
|
-
trackerDir,
|
|
721
|
-
uploadResult,
|
|
722
|
-
pendingBytes,
|
|
723
|
-
}) {
|
|
724
|
-
if (!deviceToken || !uploadResult) return;
|
|
725
|
-
if (pendingBytes > 0) return;
|
|
726
|
-
if (Number(uploadResult.inserted || 0) !== 0) return;
|
|
727
|
-
|
|
728
|
-
const heartbeatPath = path.join(trackerDir, "sync.heartbeat.json");
|
|
729
|
-
const heartbeatState = await readJson(heartbeatPath);
|
|
730
|
-
const lastPingAt = Date.parse(heartbeatState?.lastPingAt || "");
|
|
731
|
-
const nowMs = Date.now();
|
|
732
|
-
if (Number.isFinite(lastPingAt) && nowMs - lastPingAt < HEARTBEAT_MIN_INTERVAL_MS) return;
|
|
733
|
-
|
|
734
|
-
try {
|
|
735
|
-
await syncHeartbeat({ baseUrl, deviceToken });
|
|
736
|
-
await writeJson(heartbeatPath, {
|
|
737
|
-
lastPingAt: new Date(nowMs).toISOString(),
|
|
738
|
-
minIntervalMinutes: HEARTBEAT_MIN_INTERVAL_MINUTES,
|
|
739
|
-
});
|
|
740
|
-
} catch (_e) {
|
|
741
|
-
// best-effort heartbeat; ignore failures
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
611
|
function deriveAutoSkipReason({ decision, state }) {
|
|
746
612
|
if (!decision || decision.reason !== "throttled") return decision?.reason || "unknown";
|
|
747
613
|
const backoffUntilMs = Number(state?.backoffUntilMs || 0);
|
|
@@ -790,7 +656,7 @@ async function scheduleAutoRetry({
|
|
|
790
656
|
spawnAutoRetryProcess({
|
|
791
657
|
retryPath,
|
|
792
658
|
trackerBinPath: path.join(trackerDir, "app", "bin", "tracker.js"),
|
|
793
|
-
fallbackPkg: "
|
|
659
|
+
fallbackPkg: "tokentracker-cli",
|
|
794
660
|
delayMs,
|
|
795
661
|
});
|
|
796
662
|
return { scheduled: true, retryAtMs: retryMs };
|
|
@@ -856,7 +722,94 @@ async function writeOpenclawSignal(trackerDir) {
|
|
|
856
722
|
}
|
|
857
723
|
}
|
|
858
724
|
|
|
859
|
-
const HEARTBEAT_MIN_INTERVAL_MINUTES = 30;
|
|
860
|
-
const HEARTBEAT_MIN_INTERVAL_MS = HEARTBEAT_MIN_INTERVAL_MINUTES * 60 * 1000;
|
|
861
725
|
const AUTO_RETRY_FILENAME = "auto.retry.json";
|
|
862
726
|
const AUTO_RETRY_MAX_DELAY_MS = 2 * 60 * 60 * 1000;
|
|
727
|
+
|
|
728
|
+
const readline = require("node:readline");
|
|
729
|
+
|
|
730
|
+
const INGEST_SLUG = "tokentracker-ingest";
|
|
731
|
+
const MAX_INGEST_BUCKETS = 500;
|
|
732
|
+
|
|
733
|
+
async function drainQueueToCloud({ baseUrl, deviceToken, queuePath, queueStatePath, maxBatches = 5, batchSize = 200 }) {
|
|
734
|
+
const state = (await readJson(queueStatePath)) || { offset: 0 };
|
|
735
|
+
let offset = Number(state.offset || 0);
|
|
736
|
+
let inserted = 0;
|
|
737
|
+
let skipped = 0;
|
|
738
|
+
|
|
739
|
+
const queueSize = await safeStatSize(queuePath);
|
|
740
|
+
const limit = Math.min(Math.max(1, Math.floor(Number(batchSize || 200))), MAX_INGEST_BUCKETS);
|
|
741
|
+
|
|
742
|
+
for (let batch = 0; batch < maxBatches; batch++) {
|
|
743
|
+
if (offset >= queueSize) break;
|
|
744
|
+
const result = await readQueueBatch(queuePath, offset, limit);
|
|
745
|
+
if (result.buckets.length === 0) break;
|
|
746
|
+
|
|
747
|
+
const root = baseUrl.replace(/\/$/, "");
|
|
748
|
+
const anonKey = process.env.TOKENTRACKER_INSFORGE_ANON_KEY || "";
|
|
749
|
+
const headers = {
|
|
750
|
+
"Content-Type": "application/json",
|
|
751
|
+
Accept: "application/json",
|
|
752
|
+
Authorization: `Bearer ${deviceToken}`,
|
|
753
|
+
};
|
|
754
|
+
if (anonKey) headers.apikey = anonKey;
|
|
755
|
+
const res = await fetch(`${root}/functions/${INGEST_SLUG}`, {
|
|
756
|
+
method: "POST",
|
|
757
|
+
headers,
|
|
758
|
+
body: JSON.stringify({ hourly: result.buckets }),
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
const rawText = await res.text().catch(() => "");
|
|
762
|
+
let data = {};
|
|
763
|
+
try { data = JSON.parse(rawText); } catch { data = {}; }
|
|
764
|
+
if (!res.ok) {
|
|
765
|
+
throw new Error(`HTTP ${res.status}: ${rawText.substring(0, 500)}`);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
inserted += Number(data?.inserted || 0);
|
|
769
|
+
skipped += Number(data?.skipped || 0);
|
|
770
|
+
|
|
771
|
+
offset = result.nextOffset;
|
|
772
|
+
state.offset = offset;
|
|
773
|
+
state.updatedAt = new Date().toISOString();
|
|
774
|
+
await writeJson(queueStatePath, state);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
return { inserted, skipped };
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
async function readQueueBatch(queuePath, startOffset, maxBuckets) {
|
|
781
|
+
const st = await fs.stat(queuePath).catch(() => null);
|
|
782
|
+
if (!st || !st.isFile()) return { buckets: [], nextOffset: startOffset };
|
|
783
|
+
if (startOffset >= st.size) return { buckets: [], nextOffset: startOffset };
|
|
784
|
+
|
|
785
|
+
const stream = fssync.createReadStream(queuePath, { encoding: "utf8", start: startOffset });
|
|
786
|
+
const rl = readline.createInterface({ input: stream, crlfDelay: Infinity });
|
|
787
|
+
|
|
788
|
+
const bucketMap = new Map();
|
|
789
|
+
let offset = startOffset;
|
|
790
|
+
let linesRead = 0;
|
|
791
|
+
for await (const line of rl) {
|
|
792
|
+
const bytes = Buffer.byteLength(line, "utf8") + 1;
|
|
793
|
+
offset += bytes;
|
|
794
|
+
if (!line.trim()) continue;
|
|
795
|
+
let bucket;
|
|
796
|
+
try {
|
|
797
|
+
bucket = JSON.parse(line);
|
|
798
|
+
} catch (_e) {
|
|
799
|
+
continue;
|
|
800
|
+
}
|
|
801
|
+
const hourStart = typeof bucket?.hour_start === "string" ? bucket.hour_start : null;
|
|
802
|
+
if (!hourStart) continue;
|
|
803
|
+
const source = (typeof bucket?.source === "string" ? bucket.source.trim().toLowerCase() : "") || "codex";
|
|
804
|
+
const model = (typeof bucket?.model === "string" ? bucket.model.trim() : "") || "unknown";
|
|
805
|
+
bucket.source = source;
|
|
806
|
+
bucket.model = model;
|
|
807
|
+
bucketMap.set(`${source}|${model}|${hourStart}`, bucket);
|
|
808
|
+
linesRead += 1;
|
|
809
|
+
if (linesRead >= maxBuckets) break;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
rl.close();
|
|
813
|
+
stream.close?.();
|
|
814
|
+
return { buckets: Array.from(bucketMap.values()), nextOffset: offset };
|
|
815
|
+
}
|
|
@@ -5,7 +5,7 @@ const { readJson } = require("./fs");
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* 跨 AI CLI 自动激活检测
|
|
8
|
-
* 在
|
|
8
|
+
* 在 tokentracker 各种命令执行时顺带检测并完成配置
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
const AI_CLIS = [
|
|
@@ -84,7 +84,7 @@ async function checkAndActivate({ home = os.homedir(), silent = true, autoConfig
|
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
if (!silent) {
|
|
87
|
-
console.log(`⏳ 检测到 ${cli.displayName} 未配置,运行 '
|
|
87
|
+
console.log(`⏳ 检测到 ${cli.displayName} 未配置,运行 'tokentracker init' 以配置`);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
} catch (err) {
|
|
@@ -115,7 +115,7 @@ async function checkCodexConfigured({ home }) {
|
|
|
115
115
|
try {
|
|
116
116
|
const content = await fs.readFile(configPath, "utf8");
|
|
117
117
|
// 检查是否已配置 notify
|
|
118
|
-
return content.includes("
|
|
118
|
+
return content.includes("tokentracker") || content.includes("notify");
|
|
119
119
|
} catch {
|
|
120
120
|
return false;
|
|
121
121
|
}
|
|
@@ -125,9 +125,9 @@ async function configureCodex({ home, silent }) {
|
|
|
125
125
|
try {
|
|
126
126
|
// 使用现有的 codex-config 模块
|
|
127
127
|
const { upsertCodexNotify } = require("./codex-config");
|
|
128
|
-
const notifyCmd = path.join(home, ".
|
|
128
|
+
const notifyCmd = path.join(home, ".tokentracker", "bin", "notify.cjs");
|
|
129
129
|
const codexConfigPath = path.join(home, ".codex", "config.toml");
|
|
130
|
-
const notifyOriginalPath = path.join(home, ".
|
|
130
|
+
const notifyOriginalPath = path.join(home, ".tokentracker", "backups", "codex-notify-original.json");
|
|
131
131
|
|
|
132
132
|
await upsertCodexNotify({
|
|
133
133
|
codexConfigPath,
|
|
@@ -157,10 +157,10 @@ async function checkClaudeCodeConfigured({ home }) {
|
|
|
157
157
|
const settingsPath = path.join(home, ".claude", "settings.json");
|
|
158
158
|
try {
|
|
159
159
|
const settings = await readJson(settingsPath);
|
|
160
|
-
// 检查是否已有
|
|
160
|
+
// 检查是否已有 tokentracker 相关的 hook
|
|
161
161
|
const hooks = settings?.hooks?.SessionStart || [];
|
|
162
|
-
return hooks.some(h =>
|
|
163
|
-
h.hooks?.some(hook => hook.command?.includes("
|
|
162
|
+
return hooks.some(h =>
|
|
163
|
+
h.hooks?.some(hook => hook.command?.includes("tokentracker"))
|
|
164
164
|
);
|
|
165
165
|
} catch {
|
|
166
166
|
return false;
|
|
@@ -178,8 +178,8 @@ async function configureClaudeCode({ home, silent }) {
|
|
|
178
178
|
|
|
179
179
|
// 检查是否已存在
|
|
180
180
|
const exists = settings.hooks.SessionStart.some(h =>
|
|
181
|
-
h.matcher === "startup" &&
|
|
182
|
-
h.hooks?.some(hook => hook.command?.includes("
|
|
181
|
+
h.matcher === "startup" &&
|
|
182
|
+
h.hooks?.some(hook => hook.command?.includes("tokentracker activate-if-needed"))
|
|
183
183
|
);
|
|
184
184
|
|
|
185
185
|
if (!exists) {
|
|
@@ -187,7 +187,7 @@ async function configureClaudeCode({ home, silent }) {
|
|
|
187
187
|
matcher: "startup",
|
|
188
188
|
hooks: [{
|
|
189
189
|
type: "command",
|
|
190
|
-
command: "
|
|
190
|
+
command: "tokentracker activate-if-needed --silent 2>/dev/null || true"
|
|
191
191
|
}]
|
|
192
192
|
});
|
|
193
193
|
|
|
@@ -216,7 +216,7 @@ async function checkOpencodeConfigured({ home }) {
|
|
|
216
216
|
const pluginDir = path.join(home, ".config", "opencode", "plugins");
|
|
217
217
|
try {
|
|
218
218
|
const files = await fs.readdir(pluginDir);
|
|
219
|
-
return files.some(f => f.includes("
|
|
219
|
+
return files.some(f => f.includes("tokentracker"));
|
|
220
220
|
} catch {
|
|
221
221
|
return false;
|
|
222
222
|
}
|
|
@@ -227,11 +227,11 @@ async function configureOpencode({ home, silent }) {
|
|
|
227
227
|
const pluginDir = path.join(home, ".config", "opencode", "plugins");
|
|
228
228
|
await fs.mkdir(pluginDir, { recursive: true });
|
|
229
229
|
|
|
230
|
-
const pluginPath = path.join(pluginDir, "
|
|
231
|
-
const pluginCode = `export const
|
|
230
|
+
const pluginPath = path.join(pluginDir, "tokentracker-activation.js");
|
|
231
|
+
const pluginCode = `export const TokentrackerActivation = async ({ $ }) => {
|
|
232
232
|
return {
|
|
233
233
|
"session.created": async () => {
|
|
234
|
-
await $'
|
|
234
|
+
await $'tokentracker activate-if-needed --silent'.quiet().nothrow();
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
237
|
};`;
|
|
@@ -260,7 +260,7 @@ async function checkEveryCodeConfigured({ home }) {
|
|
|
260
260
|
const configPath = path.join(home, ".code", "config.toml");
|
|
261
261
|
try {
|
|
262
262
|
const content = await fs.readFile(configPath, "utf8");
|
|
263
|
-
return content.includes("
|
|
263
|
+
return content.includes("tokentracker");
|
|
264
264
|
} catch {
|
|
265
265
|
return false;
|
|
266
266
|
}
|
|
@@ -277,11 +277,11 @@ async function configureEveryCode({ home, silent }) {
|
|
|
277
277
|
content = "";
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
const notifyCmd = path.join(home, ".
|
|
280
|
+
const notifyCmd = path.join(home, ".tokentracker", "bin", "notify.cjs");
|
|
281
281
|
const notifyLine = `notify = ["/usr/bin/env", "node", "${notifyCmd}"]`;
|
|
282
|
-
|
|
283
|
-
if (!content.includes("
|
|
284
|
-
content = content.trim() + "\n\n#
|
|
282
|
+
|
|
283
|
+
if (!content.includes("tokentracker")) {
|
|
284
|
+
content = content.trim() + "\n\n# tokentracker integration\n" + notifyLine + "\n";
|
|
285
285
|
await fs.writeFile(configPath, content, "utf8");
|
|
286
286
|
}
|
|
287
287
|
return true;
|
|
@@ -329,7 +329,7 @@ async function configureOpenclaw({ home, silent }) {
|
|
|
329
329
|
const result = await installOpenclawSessionPlugin({
|
|
330
330
|
home,
|
|
331
331
|
trackerDir,
|
|
332
|
-
packageName: "
|
|
332
|
+
packageName: "tokentracker-cli",
|
|
333
333
|
env: process.env,
|
|
334
334
|
});
|
|
335
335
|
|
package/src/lib/browser-auth.js
CHANGED
|
@@ -6,7 +6,7 @@ const { DEFAULT_BASE_URL } = require("./runtime-config");
|
|
|
6
6
|
|
|
7
7
|
async function beginBrowserAuth({ baseUrl, dashboardUrl, timeoutMs, open }) {
|
|
8
8
|
const nonce = crypto.randomBytes(16).toString("hex");
|
|
9
|
-
const callbackPath = `/
|
|
9
|
+
const callbackPath = `/tokentracker/callback/${nonce}`;
|
|
10
10
|
const authUrl = dashboardUrl ? new URL("/", dashboardUrl) : new URL("/auth/sign-up", baseUrl);
|
|
11
11
|
const postAuthRedirect = resolvePostAuthRedirect({ dashboardUrl, authUrl });
|
|
12
12
|
const { callbackUrl, waitForCallback } = await startLocalCallbackServer({
|
package/src/lib/doctor.js
CHANGED
|
@@ -56,8 +56,6 @@ function buildRuntimeChecks(runtime = {}) {
|
|
|
56
56
|
? Number(runtime.httpTimeoutMs)
|
|
57
57
|
: null;
|
|
58
58
|
const debug = Boolean(runtime.debug);
|
|
59
|
-
const insforgeAnonKey =
|
|
60
|
-
typeof runtime.insforgeAnonKey === "string" && runtime.insforgeAnonKey.trim() ? "set" : "unset";
|
|
61
59
|
const autoRetryNoSpawn = Boolean(runtime.autoRetryNoSpawn);
|
|
62
60
|
|
|
63
61
|
checks.push({
|
|
@@ -115,17 +113,6 @@ function buildRuntimeChecks(runtime = {}) {
|
|
|
115
113
|
},
|
|
116
114
|
});
|
|
117
115
|
|
|
118
|
-
checks.push({
|
|
119
|
-
id: "runtime.insforge_anon_key",
|
|
120
|
-
status: "ok",
|
|
121
|
-
detail: insforgeAnonKey === "set" ? "anon key set" : "anon key unset",
|
|
122
|
-
critical: false,
|
|
123
|
-
meta: {
|
|
124
|
-
anon_key: insforgeAnonKey,
|
|
125
|
-
source: runtime?.sources?.insforgeAnonKey || null,
|
|
126
|
-
},
|
|
127
|
-
});
|
|
128
|
-
|
|
129
116
|
checks.push({
|
|
130
117
|
id: "runtime.auto_retry_no_spawn",
|
|
131
118
|
status: "ok",
|
package/src/lib/gemini-config.js
CHANGED
|
@@ -5,7 +5,7 @@ const fs = require("node:fs/promises");
|
|
|
5
5
|
const { ensureDir, readJson, writeJson } = require("./fs");
|
|
6
6
|
|
|
7
7
|
const DEFAULT_EVENT = "SessionEnd";
|
|
8
|
-
const DEFAULT_HOOK_NAME = "
|
|
8
|
+
const DEFAULT_HOOK_NAME = "tokentracker";
|
|
9
9
|
const DEFAULT_MATCHER = "exit|clear|logout|prompt_input_exit|other";
|
|
10
10
|
|
|
11
11
|
function resolveGeminiConfigDir({ home = os.homedir(), env = process.env } = {}) {
|
package/src/lib/local-api.js
CHANGED
|
@@ -281,10 +281,27 @@ function trimOutput(value, max = 4000) {
|
|
|
281
281
|
return t.length <= max ? t : t.slice(t.length - max);
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
function
|
|
284
|
+
function readJsonBody(req) {
|
|
285
|
+
return new Promise((resolve, reject) => {
|
|
286
|
+
const chunks = [];
|
|
287
|
+
req.on("data", (c) => chunks.push(c));
|
|
288
|
+
req.on("end", () => {
|
|
289
|
+
try {
|
|
290
|
+
const raw = Buffer.concat(chunks).toString("utf8");
|
|
291
|
+
if (!raw.trim()) return resolve({});
|
|
292
|
+
resolve(JSON.parse(raw));
|
|
293
|
+
} catch (e) {
|
|
294
|
+
reject(e);
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
req.on("error", reject);
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function runSyncCommand(extraEnv = {}) {
|
|
285
302
|
return new Promise((resolve, reject) => {
|
|
286
303
|
const child = spawn(process.execPath, [TRACKER_BIN, "sync"], {
|
|
287
|
-
env: process.env,
|
|
304
|
+
env: { ...process.env, ...extraEnv },
|
|
288
305
|
stdio: ["ignore", "pipe", "pipe"],
|
|
289
306
|
});
|
|
290
307
|
let stdout = "";
|
|
@@ -443,14 +460,79 @@ function createLocalApiHandler({ queuePath }) {
|
|
|
443
460
|
return async function handleLocalApi(req, res, url) {
|
|
444
461
|
const p = url.pathname;
|
|
445
462
|
|
|
463
|
+
// --- auth proxy: forward /api/auth/* to InsForge cloud ---
|
|
464
|
+
if (p.startsWith("/api/auth/")) {
|
|
465
|
+
let insforgeBase = process.env.TOKENTRACKER_INSFORGE_BASE_URL
|
|
466
|
+
|| process.env.INSFORGE_BASE_URL
|
|
467
|
+
|| "";
|
|
468
|
+
if (!insforgeBase) {
|
|
469
|
+
try {
|
|
470
|
+
const cfgPath = path.join(os.homedir(), ".tokentracker", "tracker", "config.json");
|
|
471
|
+
const cfg = JSON.parse(fs.readFileSync(cfgPath, "utf8"));
|
|
472
|
+
insforgeBase = cfg?.baseUrl || "";
|
|
473
|
+
} catch { /* ignore */ }
|
|
474
|
+
}
|
|
475
|
+
if (!insforgeBase) {
|
|
476
|
+
json(res, { error: "InsForge base URL not configured" }, 500);
|
|
477
|
+
return true;
|
|
478
|
+
}
|
|
479
|
+
try {
|
|
480
|
+
const targetUrl = `${insforgeBase.replace(/\/$/, "")}${p}${url.search || ""}`;
|
|
481
|
+
const proxyHeaders = {};
|
|
482
|
+
for (const [key, value] of Object.entries(req.headers)) {
|
|
483
|
+
if (key === "host" || key === "connection") continue;
|
|
484
|
+
proxyHeaders[key] = value;
|
|
485
|
+
}
|
|
486
|
+
const bodyChunks = [];
|
|
487
|
+
for await (const chunk of req) bodyChunks.push(chunk);
|
|
488
|
+
const body = bodyChunks.length > 0 ? Buffer.concat(bodyChunks) : undefined;
|
|
489
|
+
const proxyRes = await fetch(targetUrl, {
|
|
490
|
+
method: req.method || "GET",
|
|
491
|
+
headers: proxyHeaders,
|
|
492
|
+
body,
|
|
493
|
+
credentials: "include",
|
|
494
|
+
redirect: "manual",
|
|
495
|
+
});
|
|
496
|
+
res.writeHead(proxyRes.status, Object.fromEntries(
|
|
497
|
+
[...proxyRes.headers.entries()].filter(([k]) =>
|
|
498
|
+
!["transfer-encoding", "connection"].includes(k.toLowerCase())
|
|
499
|
+
).map(([k, v]) => {
|
|
500
|
+
// Rewrite cookie domain to localhost
|
|
501
|
+
if (k.toLowerCase() === "set-cookie") {
|
|
502
|
+
return [k, v.replace(/;\s*[Dd]omain=[^;]*/g, "; Domain=localhost")];
|
|
503
|
+
}
|
|
504
|
+
return [k, v];
|
|
505
|
+
})
|
|
506
|
+
));
|
|
507
|
+
const resBody = await proxyRes.arrayBuffer();
|
|
508
|
+
res.end(Buffer.from(resBody));
|
|
509
|
+
} catch (e) {
|
|
510
|
+
json(res, { error: `Auth proxy error: ${e?.message || e}` }, 502);
|
|
511
|
+
}
|
|
512
|
+
return true;
|
|
513
|
+
}
|
|
514
|
+
|
|
446
515
|
// --- local-sync (POST) ---
|
|
447
|
-
if (p === "/functions/
|
|
516
|
+
if (p === "/functions/tokentracker-local-sync") {
|
|
448
517
|
if (String(req.method || "GET").toUpperCase() !== "POST") {
|
|
449
518
|
json(res, { ok: false, error: "Method Not Allowed" }, 405);
|
|
450
519
|
return true;
|
|
451
520
|
}
|
|
452
521
|
try {
|
|
453
|
-
|
|
522
|
+
let body = {};
|
|
523
|
+
try {
|
|
524
|
+
body = await readJsonBody(req);
|
|
525
|
+
} catch {
|
|
526
|
+
body = {};
|
|
527
|
+
}
|
|
528
|
+
const extraEnv = {};
|
|
529
|
+
if (typeof body.deviceToken === "string" && body.deviceToken.trim()) {
|
|
530
|
+
extraEnv.TOKENTRACKER_DEVICE_TOKEN = body.deviceToken.trim();
|
|
531
|
+
}
|
|
532
|
+
if (typeof body.insforgeBaseUrl === "string" && /^https?:\/\//i.test(body.insforgeBaseUrl.trim())) {
|
|
533
|
+
extraEnv.TOKENTRACKER_INSFORGE_BASE_URL = body.insforgeBaseUrl.trim();
|
|
534
|
+
}
|
|
535
|
+
const result = await runSyncCommand(extraEnv);
|
|
454
536
|
json(res, { ok: true, ...result });
|
|
455
537
|
} catch (e) {
|
|
456
538
|
json(res, { ok: false, error: e?.message, code: e?.code ?? null, stdout: e?.stdout || "", stderr: e?.stderr || "" }, 500);
|
|
@@ -459,7 +541,7 @@ function createLocalApiHandler({ queuePath }) {
|
|
|
459
541
|
}
|
|
460
542
|
|
|
461
543
|
// --- usage-summary ---
|
|
462
|
-
if (p === "/functions/
|
|
544
|
+
if (p === "/functions/tokentracker-usage-summary") {
|
|
463
545
|
const from = url.searchParams.get("from") || "";
|
|
464
546
|
const to = url.searchParams.get("to") || "";
|
|
465
547
|
const rows = readQueueData(qp);
|
|
@@ -524,7 +606,7 @@ function createLocalApiHandler({ queuePath }) {
|
|
|
524
606
|
}
|
|
525
607
|
|
|
526
608
|
// --- usage-daily ---
|
|
527
|
-
if (p === "/functions/
|
|
609
|
+
if (p === "/functions/tokentracker-usage-daily") {
|
|
528
610
|
const from = url.searchParams.get("from") || "";
|
|
529
611
|
const to = url.searchParams.get("to") || "";
|
|
530
612
|
const rows = readQueueData(qp);
|
|
@@ -534,7 +616,7 @@ function createLocalApiHandler({ queuePath }) {
|
|
|
534
616
|
}
|
|
535
617
|
|
|
536
618
|
// --- usage-heatmap ---
|
|
537
|
-
if (p === "/functions/
|
|
619
|
+
if (p === "/functions/tokentracker-usage-heatmap") {
|
|
538
620
|
const weeks = parseInt(url.searchParams.get("weeks") || "52", 10);
|
|
539
621
|
const rows = readQueueData(qp);
|
|
540
622
|
const daily = aggregateByDay(rows);
|
|
@@ -577,7 +659,7 @@ function createLocalApiHandler({ queuePath }) {
|
|
|
577
659
|
}
|
|
578
660
|
|
|
579
661
|
// --- usage-model-breakdown ---
|
|
580
|
-
if (p === "/functions/
|
|
662
|
+
if (p === "/functions/tokentracker-usage-model-breakdown") {
|
|
581
663
|
const from = url.searchParams.get("from") || "";
|
|
582
664
|
const to = url.searchParams.get("to") || "";
|
|
583
665
|
const rows = readQueueData(qp).filter((r) => {
|
|
@@ -639,7 +721,7 @@ function createLocalApiHandler({ queuePath }) {
|
|
|
639
721
|
}
|
|
640
722
|
|
|
641
723
|
// --- project-usage-summary ---
|
|
642
|
-
if (p === "/functions/
|
|
724
|
+
if (p === "/functions/tokentracker-project-usage-summary") {
|
|
643
725
|
const projectMap = new Map();
|
|
644
726
|
scanCodexProjects(projectMap);
|
|
645
727
|
scanClaudeProjects(projectMap);
|
|
@@ -676,7 +758,7 @@ function createLocalApiHandler({ queuePath }) {
|
|
|
676
758
|
}
|
|
677
759
|
|
|
678
760
|
// --- user-status (stub) ---
|
|
679
|
-
if (p === "/functions/
|
|
761
|
+
if (p === "/functions/tokentracker-user-status") {
|
|
680
762
|
json(res, {
|
|
681
763
|
user_id: "local-user", email: "local@localhost", name: "Local User", is_public: false,
|
|
682
764
|
created_at: new Date().toISOString(),
|
|
@@ -686,7 +768,7 @@ function createLocalApiHandler({ queuePath }) {
|
|
|
686
768
|
}
|
|
687
769
|
|
|
688
770
|
// --- usage-hourly (stub for day-view) ---
|
|
689
|
-
if (p === "/functions/
|
|
771
|
+
if (p === "/functions/tokentracker-usage-hourly") {
|
|
690
772
|
const day = url.searchParams.get("day") || new Date().toISOString().slice(0, 10);
|
|
691
773
|
const timeZoneContext = getTimeZoneContext(url);
|
|
692
774
|
const rows = readQueueData(qp);
|
|
@@ -696,7 +778,7 @@ function createLocalApiHandler({ queuePath }) {
|
|
|
696
778
|
}
|
|
697
779
|
|
|
698
780
|
// --- usage-monthly (stub for trend view) ---
|
|
699
|
-
if (p === "/functions/
|
|
781
|
+
if (p === "/functions/tokentracker-usage-monthly") {
|
|
700
782
|
const from = url.searchParams.get("from") || "";
|
|
701
783
|
const to = url.searchParams.get("to") || "";
|
|
702
784
|
const rows = readQueueData(qp);
|