@jheavenknows/bluerouter 5.1.62 → 5.2.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/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +15 -13
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/routes-manifest.json +12 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cluster/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cluster/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cluster/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/resource-monitor/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/resource-monitor/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/resource-monitor/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/branding/[asset]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/branding/[asset]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/branding/route.js +1 -1
- package/app/.next-cli-build/server/app/api/branding/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/branding/upload/route.js +1 -1
- package/app/.next-cli-build/server/app/api/branding/upload/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/qwen-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/qwen-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/config/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/config/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/heartbeat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/heartbeat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/command/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/command/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/snapshot/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cluster/snapshot/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +2 -2
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route.js +1 -0
- package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js +47 -0
- package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js +1 -329
- package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/token-saver/route.js +2 -2
- package/app/.next-cli-build/server/app/api/dashboard/token-saver/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/caveman-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/caveman-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +2 -2
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +2 -2
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +2 -2
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/api-key-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/api-key-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/import-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/import-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/usage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/permissions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/permissions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/routing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/routing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/recalculate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/recalculate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/[id]/route.js +3 -3
- package/app/.next-cli-build/server/app/api/resource-monitor/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/ai-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/ai-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/analyze/route.js +3 -3
- package/app/.next-cli-build/server/app/api/resource-monitor/analyze/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/route.js +3 -3
- package/app/.next-cli-build/server/app/api/resource-monitor/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +2 -2
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/analytics.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/analytics.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/analytics.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/analytics.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/analytics.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/analytics.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/api-keys.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/api-keys.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cluster.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cluster.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk/dashboard/cluster/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk/dashboard/cluster.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/provider-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/provider-health.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard/resource-monitor/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard/resource-monitor.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing/page.js +2 -2
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +2 -2
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +2 -2
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +15 -13
- package/app/.next-cli-build/server/chunks/2664.js +1 -0
- package/app/.next-cli-build/server/chunks/2731.js +375 -0
- package/app/.next-cli-build/server/chunks/{3248.js → 3031.js} +2 -2
- package/app/.next-cli-build/server/chunks/3110.js +1 -1
- package/app/.next-cli-build/server/chunks/402.js +1 -1
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/4790.js +1 -1
- package/app/.next-cli-build/server/chunks/5434.js +329 -0
- package/app/.next-cli-build/server/chunks/5810.js +384 -0
- package/app/.next-cli-build/server/chunks/{9479.js → 6118.js} +1 -1
- package/app/.next-cli-build/server/chunks/6328.js +1 -1
- package/app/.next-cli-build/server/chunks/6759.js +1 -1
- package/app/.next-cli-build/server/chunks/6811.js +1 -1
- package/app/.next-cli-build/server/chunks/689.js +6 -6
- package/app/.next-cli-build/server/chunks/6977.js +4 -233
- package/app/.next-cli-build/server/chunks/8352.js +2 -2
- package/app/.next-cli-build/server/chunks/8491.js +2 -2
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +3 -3
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/0Jimn3HyjTisxjaNXbz5E/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/{5263-750f758e19269333.js → 5263-44fa80304458b0ea.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/analytics/page-7a66013a838a63bf.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/resource-monitor/{page-05d2cd8e11e930dc.js → page-5f479cc10bd09c16.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/config/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/heartbeat/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/command/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/snapshot/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/sync/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/test/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/ai-models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/analyze/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/caveman-test/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/monitor/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-health/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/[id]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/ai-models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/analyze/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/history/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/restart/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-9dd8e15354833c59.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-9dd8e15354833c59.js +1 -0
- package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-shm +0 -0
- package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-wal +0 -0
- package/app/package.json +1 -1
- package/package.json +1 -1
- package/app/.next-cli-build/static/bnvY5yHUWbTyTB23sa7Ba/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/analytics/page-c63cf50756d71ffe.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/config/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/heartbeat/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/command/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/snapshot/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/sync/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/test/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/caveman-test/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/monitor/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-health/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/[id]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/ai-models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/analyze/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/history/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/restart/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-4e0a15ae7b98e3a3.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-4e0a15ae7b98e3a3.js +0 -1
- /package/app/.next-cli-build/static/{bnvY5yHUWbTyTB23sa7Ba → 0Jimn3HyjTisxjaNXbz5E}/_ssgManifest.js +0 -0
- /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.1.57-to-5.1.58-5.1.58-20260722-113541 → upgrade-5.1.61-to-5.1.62-5.1.62-20260722-130430}/data.sqlite +0 -0
- /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.1.58-to-5.1.59-5.1.59-20260722-114806 → upgrade-5.1.62-to-5.2.2-5.2.2-20260722-133208}/data.sqlite +0 -0
|
@@ -1,329 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=451,a.ids=[451
|
|
2
|
-
COUNT(*) AS requests,
|
|
3
|
-
SUM(CASE WHEN error_text IS NOT NULL AND error_text <> '' THEN 1
|
|
4
|
-
WHEN status_code IS NOT NULL AND CONCAT('', status_code) NOT LIKE '2%' THEN 1
|
|
5
|
-
ELSE 0 END) AS errors,
|
|
6
|
-
SUM(CASE WHEN (error_text IS NULL OR error_text = '') AND (status_code IS NULL OR CONCAT('', status_code) LIKE '2%') THEN 1 ELSE 0 END) AS success,
|
|
7
|
-
MAX(created_at) AS lastSeen
|
|
8
|
-
FROM prompt_logs
|
|
9
|
-
${b.clause}
|
|
10
|
-
GROUP BY ${d}
|
|
11
|
-
ORDER BY requests DESC, errors DESC, lastSeen DESC
|
|
12
|
-
LIMIT ${f}`,b.params)}function L(a,b=null){return(a||[]).map(a=>(function(a={},b={}){let c=C(a.requests,0),d=C(a.errors,0),e=C(a.success,Math.max(0,c-d));return{key:B(a.key??a.metric_key)||"unknown",label:B(a.label||a.key||a.metric_key)||"unknown",requests:c,success:e,errors:d,errorRate:c?d/c:0,promptTokens:0,completionTokens:0,totalTokens:0,cost:0,lastSeen:B(a.lastSeen),topModels:[],topTools:[],topIps:[],...b}})(a,b?b(a):{}))}let M={createdAt:0,data:null,promise:null};async function N(){return M.promise?M.promise:M.data&&Date.now()-M.createdAt<6e5?M.data:(M.promise=(0,z.DU)().then(a=>(M={createdAt:Date.now(),data:a,promise:null},a)).catch(()=>(M.promise=null,M.data||{models:[],stages:[]})),M.promise)}async function O(a,b){let c=a.type,d=[await H(a)];try{let e=await Promise.all(Array.from({length:3},()=>H(a).catch(()=>null)));d.push(...e.filter(Boolean));let f=a=>d[a%d.length],g=function(a={},b){let c=function(a={}){return{keyword:B(a.keyword),model:B(a.model),stage:B(a.stage),sessionId:B(a.sessionId),clientIp:B(a.clientIp||a.sourceIp),sourceTool:B(a.sourceTool),dateFrom:B(a.dateFrom||a.startStored||a.startIso),dateTo:B(a.dateTo||a.endStored||a.endIso),workingTimeRanges:Array.isArray(a.workingTimeRanges)?a.workingTimeRanges:[]}}(a),d=[],e=[],f=a=>(e.push(a),"postgres"===b?`$${e.length}`:"?"),g="postgres"===b?"ILIKE":"LIKE";if(c.keyword){let a=`%${c.keyword}%`;d.push(`(${["prompt_text","response_text","error_text","model","endpoint","provider","account_name","connection_id","display_model","session_id","client_ip","client_host","client_user_agent","source_tool","source_tool_label","source_host"].map(b=>`${b} ${g} ${f(a)}`).join(" OR ")})`)}if(c.model&&d.push(`(model = ${f(c.model)} OR display_model = ${f(c.model)})`),c.stage&&d.push(`stage = ${f(c.stage)}`),c.sessionId&&d.push(`session_id = ${f(c.sessionId)}`),c.clientIp&&d.push(`client_ip ${g} ${f(`%${c.clientIp}%`)}`),c.sourceTool){let a=`%${c.sourceTool}%`;d.push(`(source_tool ${g} ${f(a)} OR source_tool_label ${g} ${f(a)} OR source_host ${g} ${f(a)})`)}let h=c.workingTimeRanges.filter(a=>a?.startIso&&a?.endIso);return h.length?d.push(`(${h.map(a=>`(created_at >= ${f(a.startIso)} AND created_at < ${f(a.endIso)})`).join(" OR ")})`):(c.dateFrom&&d.push(`created_at >= ${f(c.dateFrom)}`),c.dateTo&&d.push(`created_at < ${f(c.dateTo)}`)),{clause:d.length?`WHERE ${d.join(" AND ")}`:"",params:e,add:f}}(b,c),[h,i,j,k,l,m,n,o,p]=await Promise.all([f(0).queryOne(`SELECT COUNT(*) AS count FROM prompt_logs ${g.clause}`,g.params),K(f(1),g,"COALESCE(NULLIF(client_ip, ''), 'unknown') AS metric_key, COALESCE(NULLIF(client_ip, ''), 'unknown') AS label","COALESCE(NULLIF(client_ip, ''), 'unknown')"),K(f(2),g,"COALESCE(NULLIF(source_tool_label, ''), NULLIF(source_tool, ''), NULLIF(source_host, ''), 'unknown') AS metric_key, COALESCE(NULLIF(source_tool_label, ''), NULLIF(source_tool, ''), NULLIF(source_host, ''), 'unknown') AS label","COALESCE(NULLIF(source_tool_label, ''), NULLIF(source_tool, ''), NULLIF(source_host, ''), 'unknown')"),K(f(3),g,"COALESCE(NULLIF(session_id, ''), 'unknown') AS metric_key, COALESCE(NULLIF(session_id, ''), 'unknown') AS label","COALESCE(NULLIF(session_id, ''), 'unknown')"),K(f(0),g,"COALESCE(NULLIF(stage, ''), 'unknown') AS metric_key, COALESCE(NULLIF(stage, ''), 'unknown') AS label","COALESCE(NULLIF(stage, ''), 'unknown')"),K(f(1),g,"COALESCE(NULLIF(display_model, ''), NULLIF(model, ''), 'unknown') AS metric_key, COALESCE(NULLIF(display_model, ''), NULLIF(model, ''), 'unknown') AS label","COALESCE(NULLIF(display_model, ''), NULLIF(model, ''), 'unknown')"),K(f(2),g,"COALESCE(NULLIF(account_name, ''), NULLIF(connection_id, ''), NULLIF(provider, ''), 'unknown') AS metric_key, COALESCE(NULLIF(account_name, ''), NULLIF(connection_id, ''), NULLIF(provider, ''), 'unknown') AS label","COALESCE(NULLIF(account_name, ''), NULLIF(connection_id, ''), NULLIF(provider, ''), 'unknown')"),K(f(3),g,"CASE WHEN error_text IS NOT NULL AND error_text <> '' THEN 'error' ELSE COALESCE(CONCAT('', status_code), 'ok') END AS metric_key, CASE WHEN error_text IS NOT NULL AND error_text <> '' THEN 'error' ELSE COALESCE(CONCAT('', status_code), 'ok') END AS label","CASE WHEN error_text IS NOT NULL AND error_text <> '' THEN 'error' ELSE COALESCE(CONCAT('', status_code), 'ok') END"),N()]),q=C(h?.count,0),r=L(i),s=L(j),t=L(k),u=L(l),v=L(m),w=L(n),x=L(o);return{total:q,sampled:q,disabled:!1,missing:!1,dbInfo:{type:a.type,host:a.host,database:a.database},models:p.models||[],stages:p.stages||[],topClientIps:r,topSourceTools:s,topSessions:t,topStages:u,topModels:v,topAccounts:w,topStatuses:x}}finally{await Promise.all(d.map(a=>a.close().catch(()=>{})))}}async function P(a={}){let b=await D();if(!b.enabled)return{disabled:!0,missing:!1,total:0,sampled:0,dbInfo:{type:b.type},models:[],stages:[],topClientIps:[],topSourceTools:[],topSessions:[],topStages:[],topModels:[],topAccounts:[],topStatuses:[]};if(await J(b),"postgres"===b.type||"mysql"===b.type)return O(b,a);throw Error(`Unsupported prompt log database type: ${b.type}`)}var Q=c(35901),R=c(77638);let S=new Set(["today","todayWorking","yesterday","yesterdayWorking","24h","thisWeek","lastWeek","7d","thisMonth","lastMonth","30d","60d","all","custom"]),T="today",U=process.env.DASHBOARD_ANALYTICS_TIME_ZONE||"Asia/Saigon",V=["Token Destroyer","Context Monarch","Prompt Titan","Output Overlord","Quota Crusher"],W="lower(trim(COALESCE(CAST(status AS TEXT), '')))",X=`(
|
|
13
|
-
${W} GLOB 'error*'
|
|
14
|
-
OR ${W} GLOB 'fail*'
|
|
15
|
-
OR ${W} GLOB 'failed*'
|
|
16
|
-
OR ${W} GLOB 'timeout*'
|
|
17
|
-
OR ${W} GLOB 'network*'
|
|
18
|
-
OR ${W} GLOB 'aborted*'
|
|
19
|
-
OR ${W} GLOB 'abort*'
|
|
20
|
-
OR ${W} GLOB 'rate_limited*'
|
|
21
|
-
OR ${W} GLOB 'provider_error*'
|
|
22
|
-
OR ${W} GLOB 'gateway_error*'
|
|
23
|
-
OR ${W} GLOB 'parse_error*'
|
|
24
|
-
OR ${W} GLOB 'model_error*'
|
|
25
|
-
)`,Y=`(
|
|
26
|
-
(COALESCE(statusCode, 0) BETWEEN 200 AND 299 AND NOT ${X})
|
|
27
|
-
OR ${W} = ''
|
|
28
|
-
OR ${W} IN ('ok', 'success', 'succeeded', 'complete', 'completed', 'done', '200')
|
|
29
|
-
OR ${W} GLOB '2[0-9][0-9]*'
|
|
30
|
-
OR ${W} GLOB 'ok*'
|
|
31
|
-
OR ${W} GLOB 'success*'
|
|
32
|
-
OR ${W} GLOB 'succeeded*'
|
|
33
|
-
OR ${W} GLOB 'complete*'
|
|
34
|
-
OR ${W} GLOB 'completed*'
|
|
35
|
-
OR ${W} GLOB 'done*'
|
|
36
|
-
)`,Z=`(
|
|
37
|
-
${W} IN ('pending', 'running', 'in_progress', 'queued', 'processing')
|
|
38
|
-
)`,$=`(NOT ${Z})`,_=`
|
|
39
|
-
SUM(CASE WHEN ${$} THEN 1 ELSE 0 END) AS requests,
|
|
40
|
-
SUM(CASE WHEN ${$} AND ${Y} THEN 1 ELSE 0 END) AS success,
|
|
41
|
-
SUM(CASE WHEN ${$} AND NOT ${Y} THEN 1 ELSE 0 END) AS errors,
|
|
42
|
-
SUM(CASE WHEN ${Z} THEN 1 ELSE 0 END) AS pending,
|
|
43
|
-
COALESCE(SUM(CASE WHEN ${$} THEN COALESCE(promptTokens, 0) ELSE 0 END), 0) AS promptTokens,
|
|
44
|
-
COALESCE(SUM(CASE WHEN ${$} THEN COALESCE(completionTokens, 0) ELSE 0 END), 0) AS completionTokens,
|
|
45
|
-
COALESCE(SUM(CASE WHEN ${$} THEN COALESCE(promptTokens, 0) + COALESCE(completionTokens, 0) ELSE 0 END), 0) AS totalTokens,
|
|
46
|
-
COALESCE(SUM(CASE WHEN ${$} THEN COALESCE(cachedTokens, 0) ELSE 0 END), 0) AS cachedTokens,
|
|
47
|
-
COALESCE(SUM(CASE WHEN ${$} THEN COALESCE(reasoningTokens, 0) ELSE 0 END), 0) AS reasoningTokens,
|
|
48
|
-
COALESCE(SUM(CASE WHEN ${$} THEN COALESCE(cost, 0) ELSE 0 END), 0) AS cost,
|
|
49
|
-
MAX(timestamp) AS lastSeen
|
|
50
|
-
`;function aa(a){return String(a||"").trim()}function ab(a){return aa(a).toLowerCase()}function ac(a,b=0){let c=Number(a);return Number.isFinite(c)?c:b}function ad(a){let b=aa(a);if(!b)return"";let c=new Date(b);return Number.isNaN(c.getTime())?"":c.toISOString()}function ae(a,b){let c=new Intl.DateTimeFormat("en-CA",{timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),d={};for(let a of c)"literal"!==a.type&&(d[a.type]=Number(a.value));return d}function af(a,b){let c=ae(a,b);return Date.UTC(c.year,c.month-1,c.day,c.hour,c.minute,c.second||0)-a.getTime()}function ag(a,b,c,d,e=0,f=0,g=0,h=0){let i=new Date(Date.UTC(b,c-1,d,e,f,g,h)),j=af(i,a);return j=af(i=new Date(i.getTime()-j),a),new Date(Date.UTC(b,c-1,d,e,f,g,h)-j)}function ah(a,b){let c=ae(a,b);return{year:c.year,month:c.month,day:c.day}}function ai(a,b){return[{from:[8,0],to:[12,0]},{from:[13,15],to:[17,15]}].map(c=>{let d=ag(b,a.year,a.month,a.day,c.from[0],c.from[1]),e=ag(b,a.year,a.month,a.day,c.to[0],c.to[1]);return{start:d,end:e,startIso:d.toISOString(),endIso:e.toISOString()}})}function aj(a=new Date){let b=new Date(a);return b.setHours(0,0,0,0),b}function ak(a,b){let c=new Date(a);return c.setDate(c.getDate()+b),c}function al(a=new Date){let b=aj(a),c=b.getDay();return ak(b,0===c?-6:1-c)}function am(a=new Date){let b=new Date(a);return b.setDate(1),b.setHours(0,0,0,0),b}function an(a={}){var b;return{...function(a={}){let b=S.has(a.period)?a.period:"24h",c=function(a){let b=aa(a);if(!b)return"UTC";try{return new Intl.DateTimeFormat("en-US",{timeZone:b}).format(new Date),b}catch{return"UTC"}}(a.timeZone),d=new Date(3e4*Math.floor(Date.now()/3e4)),e=null,f=d,g=[];if("custom"===b){let b=ad(a.dateFrom),c=ad(a.dateTo);e=new Date(b||d.getTime()-864e5),f=c?new Date(c):d}else if("today"===b)e=aj(d);else if("todayWorking"===b)g=ai(ah(d,c),c),e=g[0]?.start||aj(d),f=g[g.length-1]?.end||d;else if("yesterday"===b){let a=aj(d);e=ak(a,-1),f=a}else if("yesterdayWorking"===b)g=ai(function({year:a,month:b,day:c}){let d=new Date(Date.UTC(a,b-1,c));return d.setUTCDate(d.getUTCDate()+-1),{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate()}}(ah(d,c)),c),e=g[0]?.start||ak(aj(d),-1),f=g[g.length-1]?.end||aj(d);else if("24h"===b)e=new Date(d.getTime()-864e5);else if("thisWeek"===b)e=al(d);else if("lastWeek"===b){let a=al(d);e=ak(a,-7),f=a}else if("7d"===b)e=new Date(d.getTime()-6048e5);else if("thisMonth"===b)e=am(d);else if("lastMonth"===b){let a=am(d);(e=new Date(a)).setMonth(e.getMonth()-1),f=a}else e="30d"===b?new Date(d.getTime()-2592e6):new Date(d.getTime()-5184e6);if(e&&f&&e>f){let a=e;e=f,f=a}return{period:b,timeZone:c,start:e,end:f,startIso:e?e.toISOString():"",endIso:f?f.toISOString():"",workingTimeRanges:g}}(a),provider:aa(a.provider),model:aa(a.model),connectionId:aa(a.connectionId),status:aa(a.status),endpoint:aa(a.endpoint),apiKey:aa(a.apiKey),clientIp:aa(a.clientIp||a.sourceIp),sourceTool:aa(a.sourceTool),sessionId:aa(a.sessionId),keyword:aa(a.keyword),maxPromptLogRows:Math.max(200,Math.min(1500,Math.floor(ac(a.maxPromptLogRows,1500)))),userOwnedOnly:!0===a.userOwnedOnly||"1"===a.userOwnedOnly||"true"===a.userOwnedOnly,ownerCandidates:Array.isArray(b=a.ownerCandidates)?[...new Set(b.map(a=>ab(a)).filter(Boolean))]:[...new Set(String(b||"").split(/[,\s]+/).map(a=>ab(a)).filter(Boolean))],ownedAnyUserOnly:!0===a.ownedAnyUserOnly||"1"===a.ownedAnyUserOnly||"true"===a.ownedAnyUserOnly}}function ao(a){let b,c=aa(a);return c?(b=aa(c))?b.length<=12?b:`${b.slice(0,8)}...${b.slice(-4)}`:"local-no-key":"local-no-key"}async function ap(a){try{let b=await a.all("SELECT * FROM apiKeys ORDER BY createdAt DESC")||[],c=new Map,d=new Map,e=[];for(let a of b){let b=function(a={}){let b=aa(a.key),c=ao(b);return{id:aa(a.id),key:b,fingerprint:c,masked:c,name:aa(a.name)||c,ownerUser:aa(a.ownerUser||a.owner_user),createdByUser:aa(a.createdByUser||a.created_by_user),machineId:aa(a.machineId||a.machine_id),isActive:void 0===a.isActive||1===a.isActive||!0===a.isActive,createdAt:aa(a.createdAt||a.created_at)}}(a);e.push(b),b.key&&c.set(b.key,b),d.set(b.fingerprint,b)}return{rows:b,all:e,byKey:c,byFingerprint:d}}catch{return{rows:[],all:[],byKey:new Map,byFingerprint:new Map}}}async function aq(a){let b=new Map;try{for(let c of await a.all("SELECT id, provider, name, email, isActive FROM providerConnections")||[])b.set(c.id,{id:c.id,provider:c.provider||"",name:c.name||c.email||c.id,email:c.email||"",isActive:1===c.isActive||!0===c.isActive})}catch{}try{for(let c of await a.all("SELECT id, type, name FROM providerNodes")||[]){let a=aa(c.id);if(!a)continue;let d=aa(c.name)||a;b.set(a,{id:a,provider:a,type:aa(c.type),name:d,isProviderNode:!0})}}catch{}return b}function ar(a,b=new Map){let c=aa(a);if(!c)return"unknown";let d=b.get(c);if(d?.name)return d.name;let e=[...b.values()].filter(a=>a.provider===c&&a.name&&a.name!==c);return 1===e.length?e[0].name:c}function as(a){let b=ac(a.errors,0),c=ac(a.success,0),d=ac(a.pending,0),e=ac(a.requests,c+b),f=ac(a.promptTokens,0),g=ac(a.completionTokens,0),h=ac(a.totalTokens,f+g),i=c+b||e;return{...a,requests:e,success:c,errors:b,pending:d,totalTokens:h,errorRate:i?b/i:0,avgPromptTokens:e?f/e:0,avgCompletionTokens:e?g/e:0,avgTokens:e?h/e:0}}function at(a,b,c,d,e=!1){let f=Array.isArray(d.workingTimeRanges)?d.workingTimeRanges.filter(a=>a?.startIso&&a?.endIso):[];if(f.length){let d=e?"<=":"<";for(let e of(a.push(`(${f.map(()=>`(${c} >= ? AND ${c} ${d} ?)`).join(" OR ")})`),f))b.push(e.startIso,e.endIso);return}d.startIso&&(a.push(`${c} >= ?`),b.push(d.startIso)),d.endIso&&(a.push(`${c} ${e?"<=":"<"} ?`),b.push(d.endIso))}function au(a,b=null,c={}){let d=[],e=[];if(at(d,e,"timestamp",a,!1),a.provider&&"provider"!==c.skip&&(d.push("provider = ?"),e.push(a.provider)),a.model&&"model"!==c.skip&&(d.push("model = ?"),e.push(a.model)),a.connectionId&&"connectionId"!==c.skip&&(d.push("connectionId = ?"),e.push(a.connectionId)),a.status&&"status"!==c.skip&&(d.push("status = ?"),e.push(a.status)),a.endpoint&&"endpoint"!==c.skip&&(d.push("endpoint = ?"),e.push(a.endpoint)),b&&"apiKey"!==c.skip)if(b.noMatch)d.push("1 = 0");else{let a=[];if((b.keys||[]).length>0){let c=b.keys.map(()=>"?").join(", ");a.push(`(apiKey IN (${c}) OR apiKeyFingerprint IN (${c}) OR apiKeyId IN (${c}))`),e.push(...b.keys,...b.keys,...b.keys)}if(b.filter){a.push("(apiKeyFingerprint LIKE ? OR apiKeyName LIKE ? OR apiKeyOwner LIKE ? OR apiKeyId LIKE ?)");let c=`%${b.filter}%`;e.push(c,c,c,c)}b.includeLocal&&a.push("(apiKey IS NULL OR apiKey = '' OR apiKeyFingerprint = 'local-no-key')"),a.length&&d.push(`(${a.join(" OR ")})`)}let f=a.ownerScope;if(f?.enabled&&"apiKey"!==c.skip)if(f.noMatch)d.push("1 = 0");else{let a=[];if((f.identifiers||[]).length>0){let b=f.identifiers.map(()=>"?").join(", ");a.push(`(apiKey IN (${b}) OR apiKeyFingerprint IN (${b}) OR apiKeyId IN (${b}))`),e.push(...f.identifiers,...f.identifiers,...f.identifiers)}if((f.owners||[]).length>0){let b=f.owners.map(()=>"?").join(", ");a.push(`lower(COALESCE(apiKeyOwner, '')) IN (${b})`),e.push(...f.owners)}d.push(a.length?`(${a.join(" OR ")})`:"1 = 0")}if(a.clientIp&&"clientIp"!==c.skip&&(d.push("clientIpNormalized LIKE ?"),e.push(`%${a.clientIp}%`)),a.sourceTool&&"sourceTool"!==c.skip){d.push("(sourceTool LIKE ? OR sourceToolLabel LIKE ? OR sourceHost LIKE ?)");let b=`%${a.sourceTool}%`;e.push(b,b,b)}return a.sessionId&&"sessionId"!==c.skip&&(d.push("sessionId = ?"),e.push(a.sessionId)),{clause:d.length?`WHERE ${d.join(" AND ")}`:"",params:e}}function av(a,b){return Math.floor(a/b)*b}async function aw(a,b,c){let d=au(b,c);return await a.get(`SELECT MIN(timestamp) AS minTs, MAX(timestamp) AS maxTs FROM usageHistory ${d.clause}`,d.params)||{}}async function ax(a,b,c){let d=au(b,c),e=await a.get(`SELECT
|
|
51
|
-
${_},
|
|
52
|
-
COUNT(DISTINCT COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''))) AS activeApiKeys,
|
|
53
|
-
COUNT(DISTINCT NULLIF(provider, '')) AS activeProviders,
|
|
54
|
-
COUNT(DISTINCT NULLIF(model, '')) AS activeModels,
|
|
55
|
-
COUNT(DISTINCT NULLIF(endpoint, '')) AS activeEndpoints
|
|
56
|
-
FROM usageHistory
|
|
57
|
-
${d.clause}`,d.params)||{},f=function(a={}){return as({requests:ac(a.requests,0),success:ac(a.success,0),errors:ac(a.errors,0),pending:ac(a.pending,0),promptTokens:ac(a.promptTokens,0),completionTokens:ac(a.completionTokens,0),totalTokens:ac(a.totalTokens,0),cachedTokens:ac(a.cachedTokens,0),reasoningTokens:ac(a.reasoningTokens,0),cost:ac(a.cost,0),lastSeen:a.lastSeen||""})}(e),g=b.start&&b.end?Math.max(1,(b.end.getTime()-b.start.getTime())/6e4):1;return{...f,activeApiKeys:ac(e.activeApiKeys,0),activeProviders:ac(e.activeProviders,0),activeModels:ac(e.activeModels,0),activeEndpoints:ac(e.activeEndpoints,0),requestsPerMinute:f.requests/g,tokensPerMinute:f.totalTokens/g,inputOutputRatio:f.completionTokens?f.promptTokens/f.completionTokens:f.promptTokens?null:0}}function ay(a,b={}){return as({key:aa(a.key)||"unknown",label:aa(a.label||a.key)||"unknown",requests:ac(a.requests,0),success:ac(a.success,0),errors:ac(a.errors,0),pending:ac(a.pending,0),promptTokens:ac(a.promptTokens,0),completionTokens:ac(a.completionTokens,0),totalTokens:ac(a.totalTokens,0),cachedTokens:ac(a.cachedTokens,0),reasoningTokens:ac(a.reasoningTokens,0),cost:ac(a.cost,0),lastSeen:a.lastSeen||"",...b})}async function az(a,b,c,d,e,f=[],g=50,h="requests DESC, totalTokens DESC"){let i=au(b,c);return await a.all(`SELECT
|
|
58
|
-
${d},
|
|
59
|
-
${_}
|
|
60
|
-
FROM usageHistory
|
|
61
|
-
${i.clause}
|
|
62
|
-
GROUP BY ${e}
|
|
63
|
-
ORDER BY ${h}
|
|
64
|
-
LIMIT ?`,[...f,...i.params,g])||[]}async function aA(a,b,c,d,e=new Map){let f=au(b,c),g=f.clause?`${f.clause} AND ${$}`:`WHERE ${$}`,h=`COALESCE(NULLIF(${d}, ''), 'unknown')`,i=await a.all(`SELECT
|
|
65
|
-
COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), 'local-no-key') AS apiKeyGroupKey,
|
|
66
|
-
${h} AS itemKey,
|
|
67
|
-
COUNT(*) AS requests,
|
|
68
|
-
COALESCE(SUM(COALESCE(promptTokens, 0) + COALESCE(completionTokens, 0)), 0) AS totalTokens,
|
|
69
|
-
MAX(timestamp) AS lastSeen
|
|
70
|
-
FROM usageHistory
|
|
71
|
-
${g}
|
|
72
|
-
GROUP BY COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), 'local-no-key'), ${h}
|
|
73
|
-
ORDER BY apiKeyGroupKey ASC, requests DESC, totalTokens DESC`,f.params)||[],j=new Map;for(let a of i){let b=aa(a.itemKey)||"unknown",c="provider"===d?ar(b,e):b;!function(a,b,c,d=3){if(!b||!c?.key)return;let e=a.get(b)||[];e.push(c),e.sort((a,b)=>b.requests-a.requests||b.totalTokens-a.totalTokens||String(a.label).localeCompare(String(b.label))),a.set(b,e.slice(0,d))}(j,a.apiKeyGroupKey,{key:b,label:c,requests:ac(a.requests,0),totalTokens:ac(a.totalTokens,0),lastSeen:a.lastSeen||""})}return j}async function aB(a,b,c,d,e){let f=Array.isArray(a)?a:[a],g=au(b,e),[h,i,j,k,l,m,n,o,p,q]=await Promise.all([az(a8(f,0),b,e,"COALESCE(NULLIF(provider, ''), 'unknown') AS key, COALESCE(NULLIF(provider, ''), 'unknown') AS label","COALESCE(NULLIF(provider, ''), 'unknown')"),az(a8(f,1),b,e,`
|
|
74
|
-
COALESCE(NULLIF(provider, ''), 'unknown') || '|' || COALESCE(NULLIF(model, ''), 'unknown') AS key,
|
|
75
|
-
COALESCE(NULLIF(provider, ''), 'unknown') AS provider,
|
|
76
|
-
COALESCE(NULLIF(model, ''), 'unknown') AS model,
|
|
77
|
-
COALESCE(NULLIF(model, ''), 'unknown') || ' (' || COALESCE(NULLIF(provider, ''), 'unknown') || ')' AS label
|
|
78
|
-
`,"COALESCE(NULLIF(provider, ''), 'unknown'), COALESCE(NULLIF(model, ''), 'unknown')"),az(a8(f,2),b,e,`
|
|
79
|
-
COALESCE(NULLIF(connectionId, ''), 'unknown') AS key,
|
|
80
|
-
COALESCE(NULLIF(connectionId, ''), 'unknown') AS connectionId,
|
|
81
|
-
COALESCE(NULLIF(provider, ''), 'unknown') AS provider,
|
|
82
|
-
COALESCE(NULLIF(connectionId, ''), 'unknown') AS label
|
|
83
|
-
`,"COALESCE(NULLIF(connectionId, ''), 'unknown')"),az(a8(f,3),b,e,"COALESCE(NULLIF(endpoint, ''), 'unknown') AS key, COALESCE(NULLIF(endpoint, ''), 'unknown') AS label","COALESCE(NULLIF(endpoint, ''), 'unknown')"),az(a8(f,4),b,e,"COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), 'local-no-key') AS key, COALESCE(NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), 'local-no-key') AS rawApiKey, COALESCE(NULLIF(apiKeyName, ''), '') AS apiKeyName, COALESCE(NULLIF(apiKeyOwner, ''), '') AS apiKeyOwner, COALESCE(NULLIF(apiKeyId, ''), '') AS apiKeyId","COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), 'local-no-key')"),aA(a8(f,6),b,e,"model",d),aA(a8(f,7),b,e,"provider",d),aA(a8(f,8),b,e,"endpoint",d),az(a8(f,5),b,e,"COALESCE(NULLIF(status, ''), 'ok') AS key, COALESCE(NULLIF(status, ''), 'ok') AS label","COALESCE(NULLIF(status, ''), 'ok')"),a8(f,9).all(`SELECT
|
|
84
|
-
COALESCE(NULLIF(status, ''), 'error') AS status,
|
|
85
|
-
COALESCE(NULLIF(provider, ''), 'unknown') AS provider,
|
|
86
|
-
COALESCE(NULLIF(model, ''), 'unknown') AS model,
|
|
87
|
-
COALESCE(NULLIF(endpoint, ''), 'unknown') AS endpoint,
|
|
88
|
-
COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), 'local-no-key') AS rawApiKey,
|
|
89
|
-
COALESCE(NULLIF(status, ''), 'error') || '|' || COALESCE(NULLIF(provider, ''), 'unknown') || '|' || COALESCE(NULLIF(model, ''), 'unknown') || '|' || COALESCE(NULLIF(endpoint, ''), 'unknown') AS key,
|
|
90
|
-
${_}
|
|
91
|
-
FROM usageHistory
|
|
92
|
-
${g.clause?`${g.clause} AND NOT ${Y} AND NOT ${Z}`:`WHERE NOT ${Y} AND NOT ${Z}`}
|
|
93
|
-
GROUP BY COALESCE(NULLIF(status, ''), 'error'), COALESCE(NULLIF(provider, ''), 'unknown'), COALESCE(NULLIF(model, ''), 'unknown'), COALESCE(NULLIF(endpoint, ''), 'unknown'), COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), 'local-no-key')
|
|
94
|
-
ORDER BY errors DESC, requests DESC, lastSeen DESC
|
|
95
|
-
LIMIT ?`,[...g.params,100]).then(a=>a||[])]),r=h.map(a=>ay(a,{label:ar(a.key||a.label,d),provider:a.key||a.label||"unknown",topModels:[],topApiKeys:[]})),s=i.map(a=>ay(a,{provider:a.provider||"",providerLabel:ar(a.provider,d),model:a.model||"",label:`${a.model||"unknown"} (${ar(a.provider,d)})`,topApiKeys:[]})),t=j.map(a=>{let b=d.get(a.connectionId);return ay(a,{label:b?.name||a.connectionId||"unknown",provider:b?.provider||a.provider||"",providerLabel:ar(b?.provider||a.provider,d),connectionId:a.connectionId||"",topModels:[]})}),u=k.map(a=>ay(a)),v=l.map(a=>{let b="local-no-key"===a.rawApiKey?"":a.rawApiKey,d=c.byKey.get(b)||c.byFingerprint.get(b)||c.all.find(b=>b.id===a.apiKeyId||b.id===a.key),e=d?.fingerprint||ao(b),f=a.apiKeyName||d?.name||(b?e:"Local / kh\xf4ng d\xf9ng API key");return ay(a,{key:a.apiKeyId||e,label:f,name:f,fingerprint:e,apiKeyId:a.apiKeyId||d?.id||"",ownerUser:a.apiKeyOwner||d?.ownerUser||"",createdByUser:d?.createdByUser||"",isActive:d?.isActive??null,topModels:m.get(a.key)||[],topProviders:n.get(a.key)||[],topEndpoints:o.get(a.key)||[]})});return{providers:r,models:s,providerAccounts:t,endpoints:u,apiKeys:v,statuses:p.map(a=>ay(a)),errors:q.map(a=>{let b="local-no-key"===a.rawApiKey?"":a.rawApiKey,e=c.byKey.get(b)||c.byFingerprint.get(b)||c.all.find(a=>a.id===b);return ay(a,{label:a.status||"error",status:a.status||"error",provider:a.provider||"unknown",providerLabel:ar(a.provider,d),model:a.model||"unknown",endpoint:a.endpoint||"unknown",apiKey:e?.fingerprint||ao(b)})})}}async function aC(a,b,c,d={}){let e=function(a,b,c){let d=a.start?a.start.getTime():NaN,e=a.end?a.end.getTime():Date.now();if(!Number.isFinite(d)){let a=b?new Date(b).getTime():NaN,f=c?new Date(c).getTime():NaN;Number.isFinite(a)&&(d=a),Number.isFinite(f)&&(e=f)}Number.isFinite(d)||(d=e-864e5);let f=Math.max(1,e-d);return f<=216e5?3e5:f<=1296e5?36e5:f<=6912e5?216e5:f<=648e7?864e5:6048e5}(b,d.minTs,d.maxTs),f=Math.max(60,Math.floor(e/1e3)),g=b.start?b.start.getTime():new Date(d.minTs||Date.now()-864e5).getTime(),h=b.end?b.end.getTime():new Date(d.maxTs||Date.now()).getTime();Number.isFinite(g)||(g=Date.now()-864e5),Number.isFinite(h)||(h=Date.now());let i=Math.floor(((h=Math.max(g=av(g,e),h))-g)/e)+1,j=f*(i>240?Math.ceil(i/240):1),k=1e3*j,l=au(b,c),m=await a.all(`SELECT
|
|
96
|
-
((CAST(strftime('%s', timestamp) AS INTEGER) / ?) * ?) AS bucketSec,
|
|
97
|
-
${_}
|
|
98
|
-
FROM usageHistory
|
|
99
|
-
${l.clause}
|
|
100
|
-
GROUP BY bucketSec
|
|
101
|
-
HAVING bucketSec IS NOT NULL
|
|
102
|
-
ORDER BY bucketSec ASC`,[j,j,...l.params])||[],n=new Map;for(let a=av(g,k);a<=h;a+=k)n.set(a,{ts:a,label:new Date(a).toISOString(),requests:0,success:0,errors:0,pending:0,promptTokens:0,completionTokens:0,totalTokens:0,cachedTokens:0,reasoningTokens:0,cost:0});for(let a of m){let b=1e3*ac(a.bucketSec,0);b&&n.set(b,{ts:b,label:new Date(b).toISOString(),requests:ac(a.requests,0),success:ac(a.success,0),errors:ac(a.errors,0),pending:ac(a.pending,0),promptTokens:ac(a.promptTokens,0),completionTokens:ac(a.completionTokens,0),totalTokens:ac(a.totalTokens,0),cachedTokens:ac(a.cachedTokens,0),reasoningTokens:ac(a.reasoningTokens,0),cost:ac(a.cost,0)})}return[...n.values()].sort((a,b)=>a.ts-b.ts)}function aD(a,b){if(!a.length)return null;let c=[...a].sort((a,b)=>a-b),d=Math.min(c.length-1,Math.max(0,Math.ceil(b/100*c.length)-1));return c[d]}async function aE(a,b,c){try{let d=au(b,c),e=await a.all(`SELECT latencyMs
|
|
103
|
-
FROM usageHistory
|
|
104
|
-
${d.clause?`${d.clause} AND`:"WHERE"} latencyMs IS NOT NULL AND latencyMs > 0`,d.params)||[],f=[],g=0;for(let a of e){let b=Number(a.latencyMs);Number.isFinite(b)&&b>0&&(f.push(b),g+=b)}if(f.length>0)return f.sort((a,b)=>a-b),{samples:f.length,avgMs:g/f.length,p50Ms:aG(f,50),p95Ms:aG(f,95),p99Ms:aG(f,99)}}catch{}let d=[];try{let c,e,f=(c=[],e=[],at(c,e,"timestamp",b,!1),b.provider&&(c.push("provider = ?"),e.push(b.provider)),b.model&&(c.push("model = ?"),e.push(b.model)),b.connectionId&&(c.push("connectionId = ?"),e.push(b.connectionId)),b.status&&(c.push("status = ?"),e.push(b.status)),{clause:c.length?`WHERE ${c.join(" AND ")}`:"",params:e});d=await a.all(`SELECT data FROM requestDetails ${f.clause} ORDER BY timestamp DESC LIMIT ?`,[...f.params,3e3])||[]}catch{d=[]}let e=[];for(let a of d){let b=function(a){let b=a?.latency||{};for(let c of[b.totalMs,b.total_ms,b.durationMs,b.duration_ms,b.elapsedMs,b.elapsed_ms,b.responseMs,b.response_ms,b.ms,b.total,a?.durationMs,a?.latencyMs]){let a=Number(c);if(Number.isFinite(a)&&a>=0)return a}return null}((0,x.q)(a.data,{})||{});Number.isFinite(b)&&e.push(b)}let f=e.reduce((a,b)=>a+b,0);return{samples:e.length,avgMs:e.length?f/e.length:null,p50Ms:aD(e,50),p95Ms:aD(e,95),p99Ms:aD(e,99)}}function aF(a,b,c={}){let d=au(a,b,c),e=[$,Y,"(COALESCE(promptTokens, 0) + COALESCE(completionTokens, 0)) > 0"];c.latencyOnly&&e.push("latencyMs IS NOT NULL AND latencyMs > 0"),c.ttftOnly&&e.push("ttftMs IS NOT NULL AND ttftMs > 0");let f=e.join(" AND ");return{clause:d.clause?`${d.clause} AND ${f}`:`WHERE ${f}`,params:d.params}}function aG(a,b){if(!a.length)return null;let c=Math.min(a.length-1,Math.max(0,Math.ceil(b/100*a.length)-1));return a[c]}async function aH(a,b){let c=[];try{c=await a.all(`SELECT latencyMs, ttftMs, promptTokens, completionTokens
|
|
105
|
-
FROM usageHistory
|
|
106
|
-
${b.clause}`,b.params)||[]}catch{return{latency:[],ttft:[],prompt:[],completion:[]}}let d=[],e=[],f=[],g=[];for(let a of c){let b=Number(a.latencyMs);Number.isFinite(b)&&b>0&&d.push(b);let c=Number(a.ttftMs);Number.isFinite(c)&&c>0&&e.push(c);let h=Number(a.promptTokens);Number.isFinite(h)&&h>0&&f.push(h);let i=Number(a.completionTokens);Number.isFinite(i)&&i>0&&g.push(i)}let h=(a,b)=>a-b;return d.sort(h),e.sort(h),f.sort(h),g.sort(h),{latency:d,ttft:e,prompt:f,completion:g}}function aI({samples:a=0,p95LatencyMs:b=0,p95TtftMs:c=0,slowRequestRate:d=0,errorRate:e=0}={}){if(!a)return{level:"none",label:"Chưa c\xf3 mẫu",tone:"slate",score:null};if(a<10)return{level:"low_sample",label:"\xcdt mẫu",tone:"amber",score:null};let f=100;return(b>0&&(b>9e4?f-=35:b>45e3?f-=20:b>15e3&&(f-=8)),c>0&&(c>45e3?f-=30:c>2e4?f-=16:c>8e3&&(f-=6)),f-=Math.min(30,Math.round(100*d)),f-=Math.min(25,Math.round(100*e)),(f=Math.max(0,Math.min(100,f)))>=85)?{level:"fast",label:"Nhanh",tone:"green",score:f}:f>=70?{level:"ok",label:"Ổn",tone:"blue",score:f}:f>=50?{level:"slow",label:"Chậm",tone:"amber",score:f}:{level:"very_slow",label:"Rất chậm",tone:"red",score:f}}async function aJ(a,b,c,d={}){let e=aF(b,c,{latencyOnly:!0}),f={};try{f=await a.get(`SELECT
|
|
107
|
-
COUNT(*) AS samples,
|
|
108
|
-
AVG(latencyMs) AS avgLatencyMs,
|
|
109
|
-
MIN(latencyMs) AS minLatencyMs,
|
|
110
|
-
MAX(latencyMs) AS maxLatencyMs,
|
|
111
|
-
AVG(CASE WHEN ttftMs > 0 THEN ttftMs END) AS avgTtftMs,
|
|
112
|
-
MAX(ttftMs) AS maxTtftMs,
|
|
113
|
-
AVG(promptTokens) AS avgPromptTokens,
|
|
114
|
-
MAX(promptTokens) AS maxPromptTokens,
|
|
115
|
-
AVG(completionTokens) AS avgCompletionTokens,
|
|
116
|
-
MAX(completionTokens) AS maxCompletionTokens,
|
|
117
|
-
SUM(promptTokens) AS totalPromptTokens,
|
|
118
|
-
SUM(completionTokens) AS totalCompletionTokens,
|
|
119
|
-
SUM(latencyMs) AS totalLatencyMs,
|
|
120
|
-
SUM(CASE WHEN ttftMs > 0 THEN ttftMs ELSE 0 END) AS totalTtftMs,
|
|
121
|
-
SUM(CASE WHEN ttftMs > 0 THEN promptTokens ELSE 0 END) AS promptTokensWithTtft,
|
|
122
|
-
SUM(CASE WHEN completionTokens > 0 THEN completionTokens ELSE 0 END) AS completionTokensWithLatency,
|
|
123
|
-
SUM(CASE WHEN completionTokens > 0 THEN latencyMs ELSE 0 END) AS latencyMsWithOutput,
|
|
124
|
-
SUM(CASE WHEN completionTokens > 0 AND latencyMs > ttftMs THEN completionTokens ELSE 0 END) AS completionTokensAfterTtft,
|
|
125
|
-
SUM(CASE WHEN completionTokens > 0 AND latencyMs > ttftMs THEN latencyMs - ttftMs ELSE 0 END) AS decodeMs,
|
|
126
|
-
SUM(CASE WHEN latencyMs >= ? THEN 1 ELSE 0 END) AS slowRequests,
|
|
127
|
-
SUM(CASE WHEN latencyMs >= ? THEN 1 ELSE 0 END) AS verySlowRequests,
|
|
128
|
-
SUM(CASE WHEN ttftMs >= ? THEN 1 ELSE 0 END) AS slowTtftRequests,
|
|
129
|
-
SUM(CASE WHEN promptTokens >= ? THEN 1 ELSE 0 END) AS longInputRequests,
|
|
130
|
-
SUM(CASE WHEN promptTokens >= ? THEN 1 ELSE 0 END) AS hugeInputRequests,
|
|
131
|
-
SUM(CASE WHEN promptTokens >= ? THEN 1 ELSE 0 END) AS extremeInputRequests
|
|
132
|
-
FROM usageHistory
|
|
133
|
-
${e.clause}`,[45e3,9e4,2e4,3e4,5e4,7e4,...e.params])||{}}catch{f={}}let g=ac(f.samples,0),h=await aH(a,e),i=h.ttft.length,j=h.prompt.length,k=h.completion.length,l=aG(h.latency,50),m=aG(h.latency,95),n=aG(h.latency,99),o=aG(h.ttft,50),p=aG(h.ttft,95),q=aG(h.ttft,99),r=aG(h.prompt,50),s=aG(h.prompt,95),t=aG(h.prompt,99),u=aG(h.completion,95),v=ac(f.slowRequests,0),w=ac(f.verySlowRequests,0),x=ac(f.slowTtftRequests,0),y=ac(f.longInputRequests,0),z=ac(f.hugeInputRequests,0),A=ac(f.extremeInputRequests,0),B=ac(f.totalPromptTokens,0),C=ac(f.totalLatencyMs,0),D=ac(f.totalTtftMs,0),E=ac(f.promptTokensWithTtft,0),F=ac(f.completionTokensWithLatency,0),G=ac(f.latencyMsWithOutput,0),H=ac(f.completionTokensAfterTtft,0),I=ac(f.decodeMs,0),J=g?v/g:0,K=g?w/g:0,L=g?y/g:0,M=g?z/g:0,N=g?A/g:0,O=aI({samples:g,p95LatencyMs:ac(m,0),p95TtftMs:ac(p,0),slowRequestRate:J,errorRate:ac(d.errorRate,0)});return{samples:g,ttftSamples:i,inputSamples:j,outputSamples:k,label:O.label,level:O.level,tone:O.tone,score:O.score,thresholds:{slowLatencyMs:45e3,verySlowLatencyMs:9e4,slowTtftMs:2e4,longInputTokens:3e4,hugeInputTokens:5e4,extremeInputTokens:7e4},avgLatencyMs:ac(f.avgLatencyMs,null),minLatencyMs:ac(f.minLatencyMs,null),maxLatencyMs:ac(f.maxLatencyMs,null),p50LatencyMs:l,p95LatencyMs:m,p99LatencyMs:n,avgTtftMs:ac(f.avgTtftMs,null),maxTtftMs:ac(f.maxTtftMs,null),p50TtftMs:o,p95TtftMs:p,p99TtftMs:q,avgPromptTokens:ac(f.avgPromptTokens,0),maxPromptTokens:ac(f.maxPromptTokens,0),p50PromptTokens:r,p95PromptTokens:s,p99PromptTokens:t,avgCompletionTokens:ac(f.avgCompletionTokens,0),maxCompletionTokens:ac(f.maxCompletionTokens,0),p95CompletionTokens:u,slowRequests:v,verySlowRequests:w,slowTtftRequests:x,longInputRequests:y,hugeInputRequests:z,extremeInputRequests:A,slowRequestRate:J,verySlowRequestRate:K,slowTtftRate:i?x/i:0,longInputRate:L,hugeInputRate:M,extremeInputRate:N,approxInputTokensPerSecond:D>0?E/(D/1e3):null,outputTokensPerSecond:G>0?F/(G/1e3):null,decodeTokensPerSecond:I>0?H/(I/1e3):null,latencyMsPer10kInputTokens:B>0?C/(B/1e4):null}}async function aK(a,b,c,d=new Map){let e=aF(b,c,{latencyOnly:!0});try{let b=await a.all(`SELECT
|
|
134
|
-
COALESCE(NULLIF(provider, ''), 'unknown') AS provider,
|
|
135
|
-
COALESCE(NULLIF(model, ''), 'unknown') AS model,
|
|
136
|
-
latencyMs,
|
|
137
|
-
ttftMs,
|
|
138
|
-
promptTokens,
|
|
139
|
-
completionTokens
|
|
140
|
-
FROM usageHistory
|
|
141
|
-
${e.clause}`,e.params)||[],c=new Map;for(let a of b){let b=`${a.provider}|${a.model}`,d=c.get(b);d||(d={provider:a.provider,model:a.model,key:b,entries:[],ttft:[],sums:{latency:0,ttft:0,ttftCount:0,prompt:0,completion:0,slow:0,slowTtft:0,longInput:0,hugeInput:0},max:{latency:0,ttft:0,prompt:0}},c.set(b,d));let e=ac(a.latencyMs,0),f=ac(a.ttftMs,0),g=ac(a.promptTokens,0),h=ac(a.completionTokens,0);d.entries.push({latency:e,prompt:g}),f>0&&(d.ttft.push(f),d.sums.ttft+=f,d.sums.ttftCount+=1),d.sums.latency+=e,d.sums.prompt+=g,d.sums.completion+=h,e>=45e3&&(d.sums.slow+=1),f>=2e4&&(d.sums.slowTtft+=1),g>=3e4&&(d.sums.longInput+=1),g>=5e4&&(d.sums.hugeInput+=1),e>d.max.latency&&(d.max.latency=e),f>d.max.ttft&&(d.max.ttft=f),g>d.max.prompt&&(d.max.prompt=g)}return[...c.values()].map(a=>{a.entries.sort((a,b)=>a.latency-b.latency),a.ttft.sort((a,b)=>a-b);let b=a.entries.length,c=c=>a.entries[Math.min(b-1,Math.max(0,Math.ceil(c/100*b)-1))]||null,d=c(50),e=c(95);return{provider:a.provider,model:a.model,key:a.key,samples:b,avgLatencyMs:b?a.sums.latency/b:null,p50LatencyMs:d?d.latency:null,p95LatencyMs:e?e.latency:null,maxLatencyMs:a.max.latency||null,avgTtftMs:a.sums.ttftCount?a.sums.ttft/a.sums.ttftCount:null,p95TtftMs:aG(a.ttft,95),maxTtftMs:a.max.ttft||null,avgPromptTokens:b?a.sums.prompt/b:0,p95PromptTokensApprox:e?e.prompt:0,maxPromptTokens:a.max.prompt,avgCompletionTokens:b?a.sums.completion/b:0,totalCompletionTokens:a.sums.completion,totalLatencyMs:a.sums.latency,slowRequests:a.sums.slow,slowTtftRequests:a.sums.slowTtft,longInputRequests:a.sums.longInput,hugeInputRequests:a.sums.hugeInput}}).sort((a,b)=>b.samples-a.samples||(b.p95LatencyMs||0)-(a.p95LatencyMs||0)).slice(0,30).map(a=>{let b=ac(a.samples,0),c=b?ac(a.slowRequests,0)/b:0,e=b?ac(a.slowTtftRequests,0)/b:0,f=b?ac(a.longInputRequests,0)/b:0,g=b?ac(a.hugeInputRequests,0)/b:0,h=aI({samples:b,p95LatencyMs:ac(a.p95LatencyMs,0),p95TtftMs:ac(a.p95TtftMs,0),slowRequestRate:c});return{key:a.key,provider:a.provider,providerLabel:ar(a.provider,d),model:a.model,label:`${a.model} (${ar(a.provider,d)})`,samples:b,level:h.level,labelQuality:h.label,tone:h.tone,score:h.score,avgLatencyMs:ac(a.avgLatencyMs,null),p50LatencyMs:ac(a.p50LatencyMs,null),p95LatencyMs:ac(a.p95LatencyMs,null),maxLatencyMs:ac(a.maxLatencyMs,null),avgTtftMs:ac(a.avgTtftMs,null),p95TtftMs:ac(a.p95TtftMs,null),maxTtftMs:ac(a.maxTtftMs,null),avgPromptTokens:ac(a.avgPromptTokens,0),p95PromptTokens:ac(a.p95PromptTokensApprox,0),maxPromptTokens:ac(a.maxPromptTokens,0),avgCompletionTokens:ac(a.avgCompletionTokens,0),slowRequests:ac(a.slowRequests,0),slowRequestRate:c,slowTtftRate:e,longInputRate:f,hugeInputRate:g,outputTokensPerSecond:ac(a.totalLatencyMs,0)>0?ac(a.totalCompletionTokens,0)/(ac(a.totalLatencyMs,0)/1e3):null}})}catch(a){return console.error("[analytics] Failed to build model experience stats:",a?.message||a),[]}}async function aL(a,b,c,d,e){try{let f=aF(b,c,{latencyOnly:!0});return(await a.all(`SELECT id, timestamp, provider, model, connectionId, apiKey, apiKeyId, apiKeyFingerprint, apiKeyName, endpoint, clientIp, clientIpNormalized, sourceTool, sourceToolLabel, sessionId, latencyMs, ttftMs, statusCode, errorCode, errorType, promptTokens, completionTokens, cachedTokens, reasoningTokens, cost, status, tokens
|
|
142
|
-
FROM usageHistory
|
|
143
|
-
${f.clause}
|
|
144
|
-
ORDER BY latencyMs DESC
|
|
145
|
-
LIMIT ?`,[...f.params,20])||[]).map(a=>aM(a,d,e))}catch{return[]}}function aM(a,b,c){let d=function(a={}){let b=(0,x.q)(a.tokens,{})||{},c=ac(a.promptTokens,0)||ac(b.prompt_tokens,0)||ac(b.input_tokens,0),d=ac(a.completionTokens,0)||ac(b.completion_tokens,0)||ac(b.output_tokens,0);return{promptTokens:c,completionTokens:d,totalTokens:c+d,cachedTokens:ac(a.cachedTokens,0)||ac(b.cached_tokens,0)||ac(b.cache_read_input_tokens,0)||ac(b.prompt_tokens_details?.cached_tokens,0),reasoningTokens:ac(a.reasoningTokens,0)||ac(b.reasoning_tokens,0)||ac(b.completion_tokens_details?.reasoning_tokens,0)||ac(b.output_tokens_details?.reasoning_tokens,0)}}(a),e=b.get(a.apiKey)||b.get(a.apiKeyFingerprint)||null,f=c.get(a.connectionId)||null;return{id:a.id,timestamp:a.timestamp,provider:a.provider||"",providerLabel:ar(a.provider,c),model:a.model||"",connectionId:a.connectionId||"",accountName:f?.name||a.connectionId||"",apiKeyName:a.apiKeyName||e?.name||(a.apiKeyFingerprint||a.apiKey?ao(a.apiKeyFingerprint||a.apiKey):"Local"),apiKeyFingerprint:a.apiKeyFingerprint||e?.fingerprint||ao(a.apiKey),apiKeyId:a.apiKeyId||e?.id||"",clientIp:a.clientIpNormalized||a.clientIp||"",sourceTool:a.sourceTool||a.sourceToolLabel||"",sessionId:a.sessionId||"",latencyMs:ac(a.latencyMs,0),ttftMs:ac(a.ttftMs,0),statusCode:a.statusCode||null,errorCode:a.errorCode||"",errorType:a.errorType||"",endpoint:a.endpoint||"",status:a.status||"ok",promptTokens:d.promptTokens,completionTokens:d.completionTokens,totalTokens:d.totalTokens,cachedTokens:d.cachedTokens,reasoningTokens:d.reasoningTokens,cost:ac(a.cost,0)}}async function aN(a,b,c,d,e){let f=au(b,c);return(await a.all(`SELECT id, timestamp, provider, model, connectionId, apiKey, apiKeyId, apiKeyFingerprint, apiKeyName, endpoint, clientIp, clientIpNormalized, sourceTool, sourceToolLabel, sessionId, latencyMs, ttftMs, statusCode, errorCode, errorType, promptTokens, completionTokens, cachedTokens, reasoningTokens, cost, status, tokens
|
|
146
|
-
FROM usageHistory
|
|
147
|
-
${f.clause}
|
|
148
|
-
ORDER BY timestamp DESC
|
|
149
|
-
LIMIT ?`,[...f.params,50])||[]).map(a=>aM(a,d,e))}async function aO(a,b,c,d,e){let f=au(b,c);return(await a.all(`SELECT id, timestamp, provider, model, connectionId, apiKey, apiKeyId, apiKeyFingerprint, apiKeyName, endpoint, clientIp, clientIpNormalized, sourceTool, sourceToolLabel, sessionId, latencyMs, ttftMs, statusCode, errorCode, errorType, promptTokens, completionTokens, cachedTokens, reasoningTokens, cost, status, tokens
|
|
150
|
-
FROM usageHistory
|
|
151
|
-
${f.clause}
|
|
152
|
-
ORDER BY (COALESCE(promptTokens, 0) + COALESCE(completionTokens, 0)) DESC, timestamp DESC
|
|
153
|
-
LIMIT ?`,[...f.params,20])||[]).map(a=>aM(a,d,e))}function aP(a,b,c=b){let d=function(a,b=a){let c=aa(a);return c?{value:c,label:aa(b)||c}:null}(b,c);return d&&(a.some(a=>a.value===d.value)||a.unshift(d)),a}function aQ(a){return{...a,provider:"",model:"",connectionId:"",status:"",endpoint:"",apiKey:""}}async function aR(a,b,c,d=500){let e=au(aQ(b),null),f=e.clause?`${e.clause} AND`:"WHERE";return(await a.all(`SELECT DISTINCT ${c} AS value
|
|
154
|
-
FROM usageHistory
|
|
155
|
-
${f} ${c} IS NOT NULL AND ${c} <> ''
|
|
156
|
-
ORDER BY ${c} ASC
|
|
157
|
-
LIMIT ?`,[...e.params,d])||[]).map(a=>aa(a.value)).filter(Boolean)}async function aS(a,b){let c=au(aQ(b),null),d=c.clause?`${c.clause} AND`:"WHERE";try{let b=await a.get(`SELECT 1 AS hasLocal
|
|
158
|
-
FROM usageHistory
|
|
159
|
-
${d} (apiKey IS NULL OR apiKey = '')
|
|
160
|
-
LIMIT 1`,c.params);return!!b?.hasLocal}catch{return!1}}async function aT(a,b){let c,d,e=(global._dashboardAnalyticsOptionsCache||(global._dashboardAnalyticsOptionsCache=new Map),global._dashboardAnalyticsOptionsCache),f=(c=a=>{let b=new Date(a||0).getTime();return Number.isFinite(b)?Math.floor(b/6e5):String(a)},d=b.ownerScope,JSON.stringify({start:c(b.startIso),end:c(b.endIso),working:(b.workingTimeRanges||[]).map(a=>`${a?.startIso}|${a?.endIso}`),ownerScope:d?.enabled?{identifiers:d.identifiers||[],owners:d.owners||[],noMatch:!!d.noMatch}:null})),g=e.get(f);if(g){if(g.promise)return g.promise;if(Date.now()-g.createdAt<6e5)return g.data}let h=(async()=>{let[c,d,e,f,g,h]=await Promise.all([aR(a,b,"provider",500),aR(a,b,"model",1e3),aR(a,b,"endpoint",500),aR(a,b,"status",200),aR(a,b,"connectionId",1e3),aS(a,b)]);return{providers:c,models:d,endpoints:e,statuses:f,connectionIds:g,hasLocal:h}})().then(a=>{if(e.set(f,{createdAt:Date.now(),data:a}),e.size>50){for(let[a,b]of e)if(b.createdAt&&Date.now()-b.createdAt>6e5&&e.delete(a),e.size<=50)break}return a}).catch(a=>{throw e.delete(f),a});return e.set(f,{promise:h}),h}async function aU(a,b,c,d){let{providers:e,models:f,endpoints:g,statuses:h,connectionIds:i,hasLocal:j}=await aT(a,b),k=i.map(a=>{let b=c.get(a),d=ar(b?.provider||a,c),e=b?.name?`${b.name}${d&&d!==b.name?` \xb7 ${d}`:""}`:d||a;return{value:a,label:e}}),l=[];for(let a of(j&&l.push({value:"local-no-key",label:"Local / kh\xf4ng d\xf9ng API key"}),(function(a={},b={}){let c=a.all||[],d=b.ownerScope;if(!d?.enabled)return c;if(d.noMatch)return[];let e=new Set((d.identifiers||[]).map(a=>aa(a)).filter(Boolean)),f=new Set((d.ids||[]).map(a=>aa(a)).filter(Boolean)),g=new Set((d.fingerprints||[]).map(a=>aa(a)).filter(Boolean)),h=new Set((d.owners||[]).map(a=>ab(a)).filter(Boolean));return c.filter(a=>!!a&&(a.key&&e.has(a.key)||a.id&&(e.has(a.id)||f.has(a.id))||a.fingerprint&&(e.has(a.fingerprint)||g.has(a.fingerprint))||a.ownerUser&&h.has(ab(a.ownerUser))))})(d,b).slice(0,500)))l.push({value:a.fingerprint,label:`${a.name||a.fingerprint}${a.ownerUser?` \xb7 ${a.ownerUser}`:""}`});aP(k,b.connectionId,b.connectionId),aP(l,b.apiKey,b.apiKey);let m=e.map(a=>({value:a,label:ar(a,c)})),n=f.map(a=>({value:a,label:a})),o=g.map(a=>({value:a,label:a})),p=h.map(a=>({value:a,label:a}));return aP(m,b.provider,b.provider),aP(n,b.model,b.model),aP(o,b.endpoint,b.endpoint),aP(p,b.status,b.status),{providers:m,models:n.map(a=>a.value),endpoints:o.map(a=>a.value),statuses:p.map(a=>a.value),connections:k,apiKeys:l,clientIps:[],sourceTools:[]}}async function aV(a,b,c,d,e,f,g=new Map){let h=await aU(a,b,g,e);return h.clientIps=(d.topClientIps||[]).map(a=>a.key).filter(Boolean),h.sourceTools=(d.topSourceTools||[]).map(a=>a.key).filter(Boolean),h}let aW="COALESCE(NULLIF(apiKeyOwner, ''), NULLIF(apiKeyName, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKeyId, ''), NULLIF(clientIpNormalized, ''), 'local-no-key')",aX="COALESCE(NULLIF(apiKeyOwner, ''), NULLIF(apiKeyName, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(clientIpNormalized, ''), 'Local / kh\xf4ng API key')";async function aY(a,b,c,d,e=new Map){if(!new Set(["model","provider","endpoint","clientIpNormalized","sourceTool"]).has(d))return new Map;let f=aF(b,c),g=`COALESCE(NULLIF(${d}, ''), 'unknown')`;try{let b=await a.all(`SELECT
|
|
161
|
-
${aW} AS clientKey,
|
|
162
|
-
${g} AS itemKey,
|
|
163
|
-
COUNT(*) AS requests,
|
|
164
|
-
COALESCE(SUM(COALESCE(promptTokens, 0) + COALESCE(completionTokens, 0)), 0) AS totalTokens,
|
|
165
|
-
MAX(timestamp) AS lastSeen
|
|
166
|
-
FROM usageHistory
|
|
167
|
-
${f.clause}
|
|
168
|
-
GROUP BY ${aW}, ${g}
|
|
169
|
-
ORDER BY clientKey ASC, requests DESC, totalTokens DESC`,f.params)||[],c=new Map;for(let a of b){let b=aa(a.itemKey)||"unknown",f="provider"===d?ar(b,e):b;!function(a,b,c,d=3){if(!b||!c?.key)return;let e=a.get(b)||[];e.push(c),e.sort((a,b)=>b.requests-a.requests||b.totalTokens-a.totalTokens||String(a.label).localeCompare(String(b.label))),a.set(b,e.slice(0,d))}(c,a.clientKey,{key:b,label:f,requests:ac(a.requests,0),totalTokens:ac(a.totalTokens,0),lastSeen:a.lastSeen||""})}return c}catch(a){return console.error("[analytics] Failed to build client top usage map:",a?.message||a),new Map}}function aZ(a={},b={}){let c=ac(a.requests,0),d=ac(a.success,c),e=ac(a.errors,0),f=ac(a.promptTokens,0),g=ac(a.completionTokens,0),h=ac(a.totalTokens,f+g),i=ac(a.p95PromptTokens,0),j=ac(a.p95LatencyMs,null),k=c?e/c:0,l=c?ac(a.longInputRequests,0)/c:0,m=c?ac(a.hugeInputRequests,0)/c:0,n=c?ac(a.extremeInputRequests,0)/c:0,o=c?ac(a.slowRequests,0)/c:0,p=function({requests:a=0,p95PromptTokens:b=0,p95LatencyMs:c=0,longInputRate:d=0,errorRate:e=0}={}){return a?b>=7e4||d>=.5||c>=9e4?{level:"critical",label:"Rất nặng",tone:"red"}:b>=5e4||d>=.3||c>=45e3||e>=.2?{level:"high",label:"Nặng",tone:"amber"}:b>=3e4||d>=.1||e>=.05?{level:"medium",label:"Cần theo d\xf5i",tone:"blue"}:{level:"normal",label:"Ổn",tone:"green"}:{level:"none",label:"Chưa c\xf3 mẫu",tone:"slate"}}({requests:c,p95PromptTokens:i,p95LatencyMs:ac(j,0),longInputRate:l,errorRate:k});return{key:aa(a.clientKey)||"unknown",label:aa(a.clientLabel||a.clientKey)||"unknown",ownerUser:aa(a.ownerUser),apiKeyName:aa(a.apiKeyName),apiKeyFingerprint:aa(a.apiKeyFingerprint),primaryClientIp:aa(a.primaryClientIp),primarySourceTool:aa(a.primarySourceTool),apiKeyCount:ac(a.apiKeyCount,0),sourceIpCount:ac(a.sourceIpCount,0),sourceToolCount:ac(a.sourceToolCount,0),sessionCount:ac(a.sessionCount,0),requests:c,success:d,errors:e,errorRate:k,promptTokens:f,completionTokens:g,totalTokens:h,cost:ac(a.cost,0),avgPromptTokens:c?f/c:0,avgCompletionTokens:c?g/c:0,avgTokens:c?h/c:0,p50PromptTokens:ac(a.p50PromptTokens,0),p95PromptTokens:i,maxPromptTokens:ac(a.maxPromptTokens,0),avgLatencyMs:ac(a.avgLatencyMs,null),p95LatencyMs:j,maxLatencyMs:ac(a.maxLatencyMs,null),avgTtftMs:ac(a.avgTtftMs,null),p95TtftMs:ac(a.p95TtftMs,null),longInputRequests:ac(a.longInputRequests,0),hugeInputRequests:ac(a.hugeInputRequests,0),extremeInputRequests:ac(a.extremeInputRequests,0),slowRequests:ac(a.slowRequests,0),slowTtftRequests:ac(a.slowTtftRequests,0),longInputRate:l,hugeInputRate:m,extremeInputRate:n,slowRequestRate:o,slowTtftRate:c?ac(a.slowTtftRequests,0)/c:0,outputTokensPerSecond:ac(a.totalLatencyMs,0)>0?g/(ac(a.totalLatencyMs,0)/1e3):null,level:p.level,pressureLabel:p.label,tone:p.tone,lastSeen:a.lastSeen||"",...b}}async function a$(a,b,c){let d=aF(b,c);try{return await a.all(`SELECT
|
|
170
|
-
COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), 'local-no-key') AS apiKeyGroupKey,
|
|
171
|
-
COALESCE(NULLIF(apiKeyName, ''), NULLIF(apiKeyOwner, ''), NULLIF(apiKeyFingerprint, ''), 'Local / kh\xf4ng API key') AS apiKeyGroupLabel,
|
|
172
|
-
COALESCE(NULLIF(clientIpNormalized, ''), NULLIF(clientIp, ''), 'unknown') AS sourceIpGroupKey,
|
|
173
|
-
${aW} AS clientKey,
|
|
174
|
-
${aX} AS clientLabel,
|
|
175
|
-
COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), '') AS apiKeyStable,
|
|
176
|
-
COALESCE(NULLIF(apiKeyName, ''), '') AS apiKeyName,
|
|
177
|
-
COALESCE(NULLIF(apiKeyOwner, ''), '') AS apiKeyOwner,
|
|
178
|
-
COALESCE(NULLIF(apiKeyFingerprint, ''), '') AS apiKeyFingerprint,
|
|
179
|
-
COALESCE(NULLIF(clientIpNormalized, ''), NULLIF(clientIp, ''), '') AS clientIpStable,
|
|
180
|
-
COALESCE(NULLIF(clientIpNormalized, ''), '') AS clientIpNorm,
|
|
181
|
-
COALESCE(NULLIF(sourceTool, ''), NULLIF(sourceToolLabel, ''), '') AS sourceToolStable,
|
|
182
|
-
COALESCE(NULLIF(provider, ''), 'unknown') AS providerStable,
|
|
183
|
-
COALESCE(NULLIF(model, ''), 'unknown') AS modelStable,
|
|
184
|
-
COALESCE(NULLIF(sessionId, ''), '') AS sessionId,
|
|
185
|
-
timestamp,
|
|
186
|
-
COALESCE(promptTokens, 0) AS promptTokens,
|
|
187
|
-
COALESCE(completionTokens, 0) AS completionTokens,
|
|
188
|
-
COALESCE(latencyMs, 0) AS latencyMs,
|
|
189
|
-
COALESCE(ttftMs, 0) AS ttftMs,
|
|
190
|
-
COALESCE(cost, 0) AS cost
|
|
191
|
-
FROM usageHistory
|
|
192
|
-
${d.clause}`,d.params)||[]}catch(a){return console.error("[analytics] Failed to load client usage rows:",a?.message||a),[]}}function a_(a,b){let c=aa(b);return c&&c>a?c:a}function a0(a,{dimension:b="apiKey",order:c="tokens",limit:d=25}={}){let e="sourceIp"===b,f=new Map;for(let b of a){let a=e?b.sourceIpGroupKey:b.apiKeyGroupKey;if(!a||"unknown"===a)continue;let c=f.get(a);c||(c={key:a,label:"",apiKeyName:"",apiKeyOwner:"",apiKeyFingerprint:"",primaryClientIp:"",primarySourceTool:"",requests:0,promptTokens:0,completionTokens:0,totalTokens:0,cost:0,promptArr:[],totalArr:[],maxPromptTokens:0,maxTotalTokens:0,longInputRequests:0,hugeInputRequests:0,extremeInputRequests:0,heavyRequests:0,apiKeySet:new Set,ipSet:new Set,toolSet:new Set,providerSet:new Set,modelSet:new Set,lastSeen:""},f.set(a,c));let d=ac(b.promptTokens,0),g=ac(b.completionTokens,0),h=d+g;c.label=a_(c.label,e?b.sourceIpGroupKey:b.apiKeyGroupLabel),c.apiKeyName=a_(c.apiKeyName,b.apiKeyName),c.apiKeyOwner=a_(c.apiKeyOwner,b.apiKeyOwner),c.apiKeyFingerprint=a_(c.apiKeyFingerprint,b.apiKeyFingerprint),c.primaryClientIp=a_(c.primaryClientIp,b.clientIpStable),c.primarySourceTool=a_(c.primarySourceTool,b.sourceToolStable),c.requests+=1,c.promptTokens+=d,c.completionTokens+=g,c.totalTokens+=h,c.cost+=ac(b.cost,0),c.promptArr.push(d),c.totalArr.push(h),d>c.maxPromptTokens&&(c.maxPromptTokens=d),h>c.maxTotalTokens&&(c.maxTotalTokens=h),d>=3e4&&(c.longInputRequests+=1),d>=5e4&&(c.hugeInputRequests+=1),d>=7e4&&(c.extremeInputRequests+=1),(d>=3e4||h>=3e4)&&(c.heavyRequests+=1),c.apiKeySet.add(aa(b.apiKeyStable)||"local-no-key"),aa(b.clientIpStable)&&c.ipSet.add(aa(b.clientIpStable)),aa(b.sourceToolStable)&&c.toolSet.add(aa(b.sourceToolStable)),aa(b.providerStable)&&c.providerSet.add(aa(b.providerStable)),aa(b.modelStable)&&c.modelSet.add(aa(b.modelStable)),c.lastSeen=a_(c.lastSeen,b.timestamp)}let g="heavy"===c?(a,b)=>b.heavyRequests-a.heavyRequests||b.maxPromptTokens-a.maxPromptTokens||b.promptTokens-a.promptTokens||b.totalTokens-a.totalTokens||b.requests-a.requests:(a,b)=>b.totalTokens-a.totalTokens||b.promptTokens-a.promptTokens||b.requests-a.requests||b.maxPromptTokens-a.maxPromptTokens;return[...f.values()].sort(g).slice(0,d).map(a=>(a.promptArr.sort((a,b)=>a-b),a.totalArr.sort((a,b)=>a-b),function(a={},b={}){let c=ac(a.requests,0),d=ac(a.promptTokens,0),e=ac(a.completionTokens,0),f=ac(a.totalTokens,d+e);return{key:aa(a.key||a.groupKey)||"unknown",label:aa(a.label||a.groupLabel||a.key||a.groupKey)||"unknown",requests:c,promptTokens:d,completionTokens:e,totalTokens:f,cost:ac(a.cost,0),avgPromptTokens:c?d/c:0,avgCompletionTokens:c?e/c:0,avgTokens:c?f/c:0,p95PromptTokens:ac(a.p95PromptTokens,0),maxPromptTokens:ac(a.maxPromptTokens,0),p95TotalTokens:ac(a.p95TotalTokens,0),maxTotalTokens:ac(a.maxTotalTokens,0),longInputRequests:ac(a.longInputRequests,0),hugeInputRequests:ac(a.hugeInputRequests,0),extremeInputRequests:ac(a.extremeInputRequests,0),heavyRequests:ac(a.heavyRequests,0),longInputRate:c?ac(a.longInputRequests,0)/c:0,hugeInputRate:c?ac(a.hugeInputRequests,0)/c:0,extremeInputRate:c?ac(a.extremeInputRequests,0)/c:0,heavyRequestRate:c?ac(a.heavyRequests,0)/c:0,apiKeyCount:ac(a.apiKeyCount,0),sourceIpCount:ac(a.sourceIpCount,0),sourceToolCount:ac(a.sourceToolCount,0),modelCount:ac(a.modelCount,0),providerCount:ac(a.providerCount,0),lastSeen:a.lastSeen||"",...b}}({key:a.key,label:a.label,requests:a.requests,success:a.requests,errors:0,promptTokens:a.promptTokens,completionTokens:a.completionTokens,totalTokens:a.totalTokens,cost:a.cost,p95PromptTokens:aG(a.promptArr,95),maxPromptTokens:a.maxPromptTokens,p95TotalTokens:aG(a.totalArr,95),maxTotalTokens:a.maxTotalTokens,longInputRequests:a.longInputRequests,hugeInputRequests:a.hugeInputRequests,extremeInputRequests:a.extremeInputRequests,heavyRequests:a.heavyRequests,apiKeyCount:a.apiKeySet.size,sourceIpCount:a.ipSet.size,sourceToolCount:a.toolSet.size,providerCount:a.providerSet.size,modelCount:a.modelSet.size,lastSeen:a.lastSeen},{apiKeyName:a.apiKeyName,apiKeyOwner:a.apiKeyOwner,apiKeyFingerprint:a.apiKeyFingerprint,primaryClientIp:a.primaryClientIp,primarySourceTool:a.primarySourceTool})))}async function a1(a,b,c){let d=au(b,c);try{return(await a.all(`SELECT
|
|
193
|
-
${aW} AS clientKey,
|
|
194
|
-
${aX} AS clientLabel,
|
|
195
|
-
COALESCE(NULLIF(apiKeyOwner, ''), '') AS ownerUser,
|
|
196
|
-
COALESCE(NULLIF(apiKeyName, ''), '') AS apiKeyName,
|
|
197
|
-
COALESCE(NULLIF(apiKeyFingerprint, ''), '') AS apiKeyFingerprint,
|
|
198
|
-
MAX(clientIpNormalized) AS primaryClientIp,
|
|
199
|
-
MAX(COALESCE(NULLIF(sourceTool, ''), NULLIF(sourceToolLabel, ''))) AS primarySourceTool,
|
|
200
|
-
SUM(CASE WHEN ${$} THEN 1 ELSE 0 END) AS requests,
|
|
201
|
-
SUM(CASE WHEN ${$} AND ${Y} THEN 1 ELSE 0 END) AS success,
|
|
202
|
-
SUM(CASE WHEN ${$} AND NOT ${Y} THEN 1 ELSE 0 END) AS errors,
|
|
203
|
-
SUM(CASE WHEN ${$} THEN COALESCE(promptTokens, 0) ELSE 0 END) AS promptTokens,
|
|
204
|
-
SUM(CASE WHEN ${$} THEN COALESCE(completionTokens, 0) ELSE 0 END) AS completionTokens,
|
|
205
|
-
SUM(CASE WHEN ${$} THEN COALESCE(promptTokens, 0) + COALESCE(completionTokens, 0) ELSE 0 END) AS totalTokens,
|
|
206
|
-
MAX(timestamp) AS lastSeen
|
|
207
|
-
FROM usageHistory
|
|
208
|
-
${d.clause}
|
|
209
|
-
GROUP BY ${aW}
|
|
210
|
-
HAVING errors > 0
|
|
211
|
-
ORDER BY errors DESC, requests DESC
|
|
212
|
-
LIMIT ?`,[...d.params,25])||[]).map(a=>aZ(a))}catch(a){return console.error("[analytics] Failed to build problem clients:",a?.message||a),[]}}let a2=[{key:"lt2k",label:"<2k",max:2e3},{key:"2k_10k",label:"2k-10k",max:1e4},{key:"10k_30k",label:"10k-30k",max:3e4},{key:"30k_50k",label:"30k-50k",max:5e4},{key:"50k_70k",label:"50k-70k",max:7e4},{key:"gte70k",label:">=70k",max:1/0}];async function a3(a,b,c){let d=au(b,c),e={clause:d.clause?`${d.clause} AND ${$}`:`WHERE ${$}`,params:d.params};try{let b=await a.get(`SELECT
|
|
213
|
-
COUNT(*) AS totalRequests,
|
|
214
|
-
SUM(CASE WHEN thinkingEnabled = 1 THEN 1 ELSE 0 END) AS thinkingOnRequests,
|
|
215
|
-
SUM(CASE WHEN thinkingEnabled = 0 THEN 1 ELSE 0 END) AS thinkingOffRequests,
|
|
216
|
-
SUM(CASE WHEN thinkingEnabled IS NULL THEN 1 ELSE 0 END) AS unknownRequests,
|
|
217
|
-
SUM(CASE WHEN thinkingAutoOff = 1 THEN 1 ELSE 0 END) AS autoOffRequests,
|
|
218
|
-
SUM(CASE WHEN forceThinkingOffAboveChars > 0 THEN 1 ELSE 0 END) AS thresholdConfiguredRequests,
|
|
219
|
-
AVG(CASE WHEN promptChars > 0 THEN promptChars END) AS avgPromptChars,
|
|
220
|
-
MAX(promptChars) AS maxPromptChars,
|
|
221
|
-
AVG(CASE WHEN thinkingAutoOff = 1 AND promptChars > 0 THEN promptChars END) AS avgAutoOffPromptChars
|
|
222
|
-
FROM usageHistory
|
|
223
|
-
${e.clause}`,e.params)||{},c=await a.all(`SELECT COALESCE(NULLIF(thinkingAutoOffReason, ''), 'unknown') AS reason,
|
|
224
|
-
COUNT(*) AS requests,
|
|
225
|
-
AVG(CASE WHEN promptChars > 0 THEN promptChars END) AS avgPromptChars,
|
|
226
|
-
MAX(promptChars) AS maxPromptChars
|
|
227
|
-
FROM usageHistory
|
|
228
|
-
${e.clause} AND thinkingAutoOff = 1
|
|
229
|
-
GROUP BY COALESCE(NULLIF(thinkingAutoOffReason, ''), 'unknown')
|
|
230
|
-
ORDER BY requests DESC
|
|
231
|
-
LIMIT 10`,e.params)||[],d=await a.all(`SELECT provider, model,
|
|
232
|
-
COUNT(*) AS requests,
|
|
233
|
-
SUM(CASE WHEN thinkingEnabled = 1 THEN 1 ELSE 0 END) AS thinkingOnRequests,
|
|
234
|
-
SUM(CASE WHEN thinkingEnabled = 0 THEN 1 ELSE 0 END) AS thinkingOffRequests,
|
|
235
|
-
SUM(CASE WHEN thinkingAutoOff = 1 THEN 1 ELSE 0 END) AS autoOffRequests,
|
|
236
|
-
AVG(CASE WHEN promptChars > 0 THEN promptChars END) AS avgPromptChars,
|
|
237
|
-
MAX(promptChars) AS maxPromptChars
|
|
238
|
-
FROM usageHistory
|
|
239
|
-
${e.clause}
|
|
240
|
-
GROUP BY provider, model
|
|
241
|
-
HAVING requests > 0
|
|
242
|
-
ORDER BY autoOffRequests DESC, requests DESC
|
|
243
|
-
LIMIT 20`,e.params)||[],f=ac(b.totalRequests,0),g=ac(b.autoOffRequests,0),h=ac(b.thinkingOnRequests,0),i=ac(b.thinkingOffRequests,0),j=ac(b.unknownRequests,0),k=ac(b.thresholdConfiguredRequests,0);return{totalRequests:f,thinkingOnRequests:h,thinkingOffRequests:i,unknownRequests:j,autoOffRequests:g,thresholdConfiguredRequests:k,thinkingOnRate:f?h/f:0,thinkingOffRate:f?i/f:0,unknownRate:f?j/f:0,autoOffRate:f?g/f:0,autoOffEligibleHitRate:k?g/k:0,avgPromptChars:ac(b.avgPromptChars,0),maxPromptChars:ac(b.maxPromptChars,0),avgAutoOffPromptChars:ac(b.avgAutoOffPromptChars,0),byReason:c.map(a=>({reason:a.reason||"unknown",requests:ac(a.requests,0),share:g?ac(a.requests,0)/g:0,avgPromptChars:ac(a.avgPromptChars,0),maxPromptChars:ac(a.maxPromptChars,0)})),byModel:d.map(a=>{let b=ac(a.requests,0),c=ac(a.autoOffRequests,0);return{provider:a.provider||"",model:a.model||"",requests:b,thinkingOnRequests:ac(a.thinkingOnRequests,0),thinkingOffRequests:ac(a.thinkingOffRequests,0),autoOffRequests:c,autoOffRate:b?c/b:0,avgPromptChars:ac(a.avgPromptChars,0),maxPromptChars:ac(a.maxPromptChars,0)}})}}catch(a){return console.error("[analytics] Failed to build thinking analytics:",a?.message||a),{totalRequests:0,thinkingOnRequests:0,thinkingOffRequests:0,unknownRequests:0,autoOffRequests:0,thresholdConfiguredRequests:0,thinkingOnRate:0,thinkingOffRate:0,unknownRate:0,autoOffRate:0,autoOffEligibleHitRate:0,byReason:[],byModel:[]}}}async function a4(a,b,c){let d=au(b,c),e={clause:d.clause?`${d.clause} AND ${$}`:`WHERE ${$}`,params:d.params},f="CASE WHEN COALESCE(promptChars, 0) > 0 THEN promptChars ELSE COALESCE(promptTokens, 0) END";try{let b=await a.get(`SELECT
|
|
244
|
-
COUNT(*) AS totalRequests,
|
|
245
|
-
SUM(CASE WHEN ${f} >= 30000 THEN 1 ELSE 0 END) AS gte30kRequests,
|
|
246
|
-
SUM(CASE WHEN ${f} >= 50000 THEN 1 ELSE 0 END) AS gte50kRequests,
|
|
247
|
-
SUM(CASE WHEN ${f} >= 100000 THEN 1 ELSE 0 END) AS gte100kRequests,
|
|
248
|
-
AVG(CASE WHEN ${f} > 0 THEN ${f} END) AS avgRequestSize,
|
|
249
|
-
MAX(${f}) AS maxRequestSize,
|
|
250
|
-
AVG(CASE WHEN ${f} >= 30000 THEN latencyMs END) AS avgLargeLatencyMs,
|
|
251
|
-
AVG(CASE WHEN ${f} >= 30000 THEN ttftMs END) AS avgLargeTtftMs,
|
|
252
|
-
SUM(CASE WHEN ${f} >= 30000 THEN promptTokens ELSE 0 END) AS largePromptTokens,
|
|
253
|
-
SUM(CASE WHEN ${f} >= 30000 THEN completionTokens ELSE 0 END) AS largeCompletionTokens
|
|
254
|
-
FROM usageHistory
|
|
255
|
-
${e.clause}`,e.params)||{},c=await a.all(`WITH base AS (
|
|
256
|
-
SELECT
|
|
257
|
-
CASE
|
|
258
|
-
WHEN ${f} < 30000 THEN '<30k'
|
|
259
|
-
WHEN ${f} < 50000 THEN '30k-50k'
|
|
260
|
-
WHEN ${f} < 100000 THEN '50k-100k'
|
|
261
|
-
ELSE '>=100k'
|
|
262
|
-
END AS label,
|
|
263
|
-
CASE
|
|
264
|
-
WHEN ${f} < 30000 THEN 1
|
|
265
|
-
WHEN ${f} < 50000 THEN 2
|
|
266
|
-
WHEN ${f} < 100000 THEN 3
|
|
267
|
-
ELSE 4
|
|
268
|
-
END AS sortOrder,
|
|
269
|
-
${f} AS requestSize,
|
|
270
|
-
promptTokens,
|
|
271
|
-
completionTokens,
|
|
272
|
-
latencyMs,
|
|
273
|
-
ttftMs,
|
|
274
|
-
thinkingAutoOff
|
|
275
|
-
FROM usageHistory
|
|
276
|
-
${e.clause}
|
|
277
|
-
)
|
|
278
|
-
SELECT label,
|
|
279
|
-
sortOrder,
|
|
280
|
-
COUNT(*) AS requests,
|
|
281
|
-
AVG(CASE WHEN requestSize > 0 THEN requestSize END) AS avgRequestSize,
|
|
282
|
-
MAX(requestSize) AS maxRequestSize,
|
|
283
|
-
AVG(latencyMs) AS avgLatencyMs,
|
|
284
|
-
AVG(CASE WHEN ttftMs > 0 THEN ttftMs END) AS avgTtftMs,
|
|
285
|
-
SUM(promptTokens) AS promptTokens,
|
|
286
|
-
SUM(completionTokens) AS completionTokens,
|
|
287
|
-
SUM(CASE WHEN thinkingAutoOff = 1 THEN 1 ELSE 0 END) AS autoOffRequests
|
|
288
|
-
FROM base
|
|
289
|
-
GROUP BY label, sortOrder
|
|
290
|
-
ORDER BY sortOrder ASC`,e.params)||[],d=ac(b.totalRequests,0),g=ac(b.gte30kRequests,0),h=ac(b.gte50kRequests,0),i=ac(b.gte100kRequests,0);return{totalRequests:d,gte30kRequests:g,gte50kRequests:h,gte100kRequests:i,gte30kRate:d?g/d:0,gte50kRate:d?h/d:0,gte100kRate:d?i/d:0,avgRequestSize:ac(b.avgRequestSize,0),maxRequestSize:ac(b.maxRequestSize,0),avgLargeLatencyMs:ac(b.avgLargeLatencyMs,null),avgLargeTtftMs:ac(b.avgLargeTtftMs,null),largePromptTokens:ac(b.largePromptTokens,0),largeCompletionTokens:ac(b.largeCompletionTokens,0),buckets:c.map(a=>{let b=ac(a.requests,0),c=ac(a.autoOffRequests,0);return{label:a.label,requests:b,share:d?b/d:0,avgRequestSize:ac(a.avgRequestSize,0),maxRequestSize:ac(a.maxRequestSize,0),avgLatencyMs:ac(a.avgLatencyMs,null),avgTtftMs:ac(a.avgTtftMs,null),promptTokens:ac(a.promptTokens,0),completionTokens:ac(a.completionTokens,0),autoOffRequests:c,autoOffRate:b?c/b:0}})}}catch(a){return console.error("[analytics] Failed to build large context analytics:",a?.message||a),{totalRequests:0,gte30kRequests:0,gte50kRequests:0,gte100kRequests:0,gte30kRate:0,gte50kRate:0,gte100kRate:0,buckets:[]}}}async function a5(a,b,c,d={},e=new Map){let[f,g,h,i,j,k,l]=await Promise.all([a$(a,b,c),a1(a,b,c),aY(a,b,c,"model",e),aY(a,b,c,"provider",e),aY(a,b,c,"endpoint",e),aY(a,b,c,"clientIpNormalized",e),aY(a,b,c,"sourceTool",e)]),m=function(a,b={}){let c=new Map;for(let b of a){let a=b.clientKey;if(!a)continue;let d=c.get(a);d||(d={clientKey:a,clientLabel:"",ownerUser:"",apiKeyName:"",apiKeyFingerprint:"",primaryClientIp:"",primarySourceTool:"",apiKeySet:new Set,ipSet:new Set,toolSet:new Set,sessionSet:new Set,requests:0,promptTokens:0,completionTokens:0,totalTokens:0,cost:0,promptArr:[],latencyArr:[],ttftArr:[],maxPromptTokens:0,maxLatencyMs:0,ttftSum:0,longInputRequests:0,hugeInputRequests:0,extremeInputRequests:0,slowRequests:0,slowTtftRequests:0,totalLatencyMs:0,lastSeen:""},c.set(a,d));let e=ac(b.promptTokens,0),f=ac(b.completionTokens,0),g=ac(b.latencyMs,0),h=ac(b.ttftMs,0);d.clientLabel=a_(d.clientLabel,b.clientLabel),d.ownerUser=a_(d.ownerUser,b.apiKeyOwner),d.apiKeyName=a_(d.apiKeyName,b.apiKeyName),d.apiKeyFingerprint=a_(d.apiKeyFingerprint,b.apiKeyFingerprint),d.primaryClientIp=a_(d.primaryClientIp,b.clientIpNorm),d.primarySourceTool=a_(d.primarySourceTool,b.sourceToolStable),aa(b.apiKeyStable)&&d.apiKeySet.add(aa(b.apiKeyStable)),aa(b.clientIpNorm)&&d.ipSet.add(aa(b.clientIpNorm)),aa(b.sourceToolStable)&&d.toolSet.add(aa(b.sourceToolStable)),aa(b.sessionId)&&d.sessionSet.add(aa(b.sessionId)),d.requests+=1,d.promptTokens+=e,d.completionTokens+=f,d.totalTokens+=e+f,d.cost+=ac(b.cost,0),d.promptArr.push(e),d.latencyArr.push(g),h>0&&(d.ttftArr.push(h),d.ttftSum+=h),e>d.maxPromptTokens&&(d.maxPromptTokens=e),g>d.maxLatencyMs&&(d.maxLatencyMs=g),e>=3e4&&(d.longInputRequests+=1),e>=5e4&&(d.hugeInputRequests+=1),e>=7e4&&(d.extremeInputRequests+=1),g>=45e3&&(d.slowRequests+=1),h>=2e4&&(d.slowTtftRequests+=1),d.totalLatencyMs+=g,d.lastSeen=a_(d.lastSeen,b.timestamp)}return[...c.values()].sort((a,b)=>b.promptTokens-a.promptTokens||b.totalTokens-a.totalTokens||b.requests-a.requests).slice(0,25).map(a=>(a.promptArr.sort((a,b)=>a-b),a.latencyArr.sort((a,b)=>a-b),a.ttftArr.sort((a,b)=>a-b),aZ({clientKey:a.clientKey,clientLabel:a.clientLabel,ownerUser:a.ownerUser,apiKeyName:a.apiKeyName,apiKeyFingerprint:a.apiKeyFingerprint,primaryClientIp:a.primaryClientIp,primarySourceTool:a.primarySourceTool,apiKeyCount:a.apiKeySet.size,sourceIpCount:a.ipSet.size,sourceToolCount:a.toolSet.size,sessionCount:a.sessionSet.size,requests:a.requests,success:a.requests,errors:0,promptTokens:a.promptTokens,completionTokens:a.completionTokens,totalTokens:a.totalTokens,cost:a.cost,avgPromptTokens:a.requests?a.promptTokens/a.requests:0,p50PromptTokens:aG(a.promptArr,50),p95PromptTokens:aG(a.promptArr,95),maxPromptTokens:a.maxPromptTokens,avgLatencyMs:a.requests?a.totalLatencyMs/a.requests:null,p95LatencyMs:aG(a.latencyArr,95),maxLatencyMs:a.maxLatencyMs||null,avgTtftMs:a.ttftArr.length?a.ttftSum/a.ttftArr.length:null,p95TtftMs:aG(a.ttftArr,95),longInputRequests:a.longInputRequests,hugeInputRequests:a.hugeInputRequests,extremeInputRequests:a.extremeInputRequests,slowRequests:a.slowRequests,slowTtftRequests:a.slowTtftRequests,totalLatencyMs:a.totalLatencyMs,lastSeen:a.lastSeen},{topModels:b.topModelsByClient?.get(a.clientKey)||[],topProviders:b.topProvidersByClient?.get(a.clientKey)||[],topEndpoints:b.topEndpointsByClient?.get(a.clientKey)||[],topIps:b.topIpsByClient?.get(a.clientKey)||[],topTools:b.topToolsByClient?.get(a.clientKey)||[]})))}(f,{topModelsByClient:h,topProvidersByClient:i,topEndpointsByClient:j,topIpsByClient:k,topToolsByClient:l}),n=a0(f,{dimension:"apiKey",order:"tokens",limit:25}),o=a0(f,{dimension:"sourceIp",order:"tokens",limit:25}),p=a0(f,{dimension:"sourceIp",order:"heavy",limit:25}),q=function(a){let b=a2.map(a=>({...a,requests:0,promptTokens:0,completionTokens:0,totalTokens:0,maxPromptTokens:0,latencyArr:[],ttftArr:[],latencySum:0,ttftSum:0}));for(let c of a){let a=ac(c.promptTokens,0),d=ac(c.completionTokens,0),e=ac(c.latencyMs,0),f=ac(c.ttftMs,0),g=b.find(b=>a<b.max)||b[b.length-1];g.requests+=1,g.promptTokens+=a,g.completionTokens+=d,g.totalTokens+=a+d,a>g.maxPromptTokens&&(g.maxPromptTokens=a),g.latencyArr.push(e),g.latencySum+=e,f>0&&(g.ttftArr.push(f),g.ttftSum+=f)}let c=a.length;return b.filter(a=>a.requests>0).map(a=>(a.latencyArr.sort((a,b)=>a-b),a.ttftArr.sort((a,b)=>a-b),{key:a.key,label:a.label,requests:a.requests,share:c?a.requests/c:0,promptTokens:a.promptTokens,completionTokens:a.completionTokens,totalTokens:a.totalTokens,avgPromptTokens:a.requests?a.promptTokens/a.requests:0,maxPromptTokens:a.maxPromptTokens,avgLatencyMs:a.requests?a.latencySum/a.requests:null,p95LatencyMs:aG(a.latencyArr,95),maxLatencyMs:a.latencyArr.length?a.latencyArr[a.latencyArr.length-1]:null,avgTtftMs:a.ttftArr.length?a.ttftSum/a.ttftArr.length:null,p95TtftMs:aG(a.ttftArr,95)}))}(f),r=m[0]||null,s=n[0]||null,t=o[0]||null,u=p[0]||null,v=m.reduce((a,b)=>a+ac(b.totalTokens,0),0),w=ac(d.totalTokens,0),x=r&&w?ac(r.totalTokens,0)/w:0,y=s&&w?ac(s.totalTokens,0)/w:0,z=t&&w?ac(t.totalTokens,0)/w:0,A=q.filter(a=>["30k-50k","50k-70k",">=70k"].includes(a.label)).reduce((a,b)=>a+ac(b.share,0),0),B=q.find(a=>">=70k"===a.label)||null;return{summary:{trackedUsers:m.length,topUserLabel:r?.label||"-",topUserTokens:r?.totalTokens||0,topUserTokenShare:x,topUsersTokenShare:w?v/w:0,topApiKeyLabel:s?.label||"-",topApiKeyTokens:s?.totalTokens||0,topApiKeyTokenShare:y,topSourceIpLabel:t?.label||"-",topSourceIpTokens:t?.totalTokens||0,topSourceIpTokenShare:z,topSourceIpHeavyLabel:u?.label||"-",topSourceIpHeavyRequests:u?.heavyRequests||0,longInputBucketShare:A,extremeInputShare:B?.share||0,problemClients:g.length},topHeavyUsers:m,topProblemClients:g,topApiKeysByTokens:n,topSourceIpsByTokens:o,topSourceIpsByHeavyRequests:p,inputBuckets:q}}function a6(a){let b=String(a??"");return/[",\n\r]/.test(b)?`"${b.replace(/"/g,'""')}"`:b}async function a7(a,b=4){let c=[a].filter(Boolean),d=Math.max(0,Math.max(1,Math.min(6,Number(b)||4))-c.length);if(d<=0)return c;for(let a of(await Promise.all(Array.from({length:d},async()=>{try{return await (0,R.d9)()}catch(a){return console.warn("[dashboardAnalytics] Extra MySQL analytics connection unavailable:",a?.message||a),null}}))))a&&c.push(a);return c}function a8(a,b=0){return Array.isArray(a)&&0!==a.length?a[Math.abs(b)%a.length]||a[0]:null}async function a9(a=[]){let b=[...new Set((a||[]).filter(Boolean))];await Promise.all(b.map(a=>a?.close?.().catch(()=>{})))}function ba(a={}){return{rows:[],generatedAt:"",nextRefreshAt:"",refreshEveryMs:9e5,period:T,periodLabel:"H\xf4m nay",status:"warming",...a}}function bb(){return global._dashboardTokenLeaderboard||(global._dashboardTokenLeaderboard={data:ba(),refreshPromise:null,timerStarted:!1,lastError:""}),global._dashboardTokenLeaderboard}async function bc(){let a=an({period:T,timeZone:U}),b=await (0,R.d9)(),c=[b];try{c=await a7(b,1);let d=a8(c,0),e=aF(a,null),f=await d.get(`SELECT
|
|
291
|
-
SUM(COALESCE(promptTokens, 0) + COALESCE(completionTokens, 0)) AS totalTokens,
|
|
292
|
-
COUNT(*) AS requests
|
|
293
|
-
FROM usageHistory
|
|
294
|
-
${e.clause}`,e.params)||{},g=ac(f.totalTokens,0),h=await d.all(`WITH base AS (
|
|
295
|
-
SELECT
|
|
296
|
-
COALESCE(NULLIF(apiKeyOwner, ''), NULLIF(apiKeyName, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKeyId, ''), 'local-no-key') AS groupKey,
|
|
297
|
-
COALESCE(NULLIF(apiKeyOwner, ''), '') AS ownerUser,
|
|
298
|
-
COALESCE(NULLIF(apiKeyName, ''), '') AS apiKeyName,
|
|
299
|
-
COALESCE(NULLIF(apiKeyFingerprint, ''), '') AS apiKeyFingerprint,
|
|
300
|
-
COALESCE(NULLIF(apiKeyId, ''), NULLIF(apiKeyFingerprint, ''), NULLIF(apiKey, ''), 'local-no-key') AS apiKeyStable,
|
|
301
|
-
COALESCE(NULLIF(clientIpNormalized, ''), NULLIF(clientIp, ''), '') AS clientIpStable,
|
|
302
|
-
COALESCE(NULLIF(provider, ''), 'unknown') AS providerStable,
|
|
303
|
-
COALESCE(NULLIF(model, ''), 'unknown') AS modelStable,
|
|
304
|
-
timestamp,
|
|
305
|
-
COALESCE(promptTokens, 0) AS promptTokens,
|
|
306
|
-
COALESCE(completionTokens, 0) AS completionTokens,
|
|
307
|
-
COALESCE(cost, 0) AS cost
|
|
308
|
-
FROM usageHistory
|
|
309
|
-
${e.clause}
|
|
310
|
-
)
|
|
311
|
-
SELECT
|
|
312
|
-
groupKey AS key,
|
|
313
|
-
MAX(ownerUser) AS ownerUser,
|
|
314
|
-
MAX(apiKeyName) AS apiKeyName,
|
|
315
|
-
MAX(apiKeyFingerprint) AS apiKeyFingerprint,
|
|
316
|
-
COUNT(*) AS requests,
|
|
317
|
-
SUM(promptTokens) AS promptTokens,
|
|
318
|
-
SUM(completionTokens) AS completionTokens,
|
|
319
|
-
SUM(promptTokens + completionTokens) AS totalTokens,
|
|
320
|
-
SUM(cost) AS cost,
|
|
321
|
-
COUNT(DISTINCT NULLIF(apiKeyStable, '')) AS apiKeyCount,
|
|
322
|
-
COUNT(DISTINCT NULLIF(clientIpStable, '')) AS sourceIpCount,
|
|
323
|
-
COUNT(DISTINCT modelStable) AS modelCount,
|
|
324
|
-
COUNT(DISTINCT providerStable) AS providerCount,
|
|
325
|
-
MAX(timestamp) AS lastSeen
|
|
326
|
-
FROM base
|
|
327
|
-
GROUP BY groupKey
|
|
328
|
-
ORDER BY totalTokens DESC, requests DESC
|
|
329
|
-
LIMIT ?`,[...e.params,5])||[];return{rows:function(a=[],b=0){return a.map((a,c)=>{let d=c+1,e=ac(a.promptTokens,0),f=ac(a.completionTokens,0),g=ac(a.totalTokens,e+f),h=aa(a.ownerUser),i=aa(a.apiKeyName),j=aa(a.apiKeyFingerprint);return{key:aa(a.key)||`${d}`,rank:d,title:V[c]||"Token Royalty",ownerUser:h,label:h||i||j||"Local / kh\xf4ng API key",apiKeyName:i,apiKeyFingerprint:j,requests:ac(a.requests,0),promptTokens:e,completionTokens:f,totalTokens:g,cost:ac(a.cost,0),apiKeyCount:ac(a.apiKeyCount,0),modelCount:ac(a.modelCount,0),providerCount:ac(a.providerCount,0),sourceIpCount:ac(a.sourceIpCount,0),lastSeen:a.lastSeen||"",tokenShare:b?g/b:0}})}(h,g),generatedAt:new Date().toISOString(),nextRefreshAt:new Date(Date.now()+9e5).toISOString(),refreshEveryMs:9e5,period:T,periodLabel:"H\xf4m nay",status:"ready",totalTokens:g,totalRequests:ac(f.requests,0)}}finally{await a9(c)}}async function bd(){let a=bb();return a.refreshPromise||(a.refreshPromise=bc().then(b=>(a.data=b,a.lastError="",b)).catch(b=>{let c=b?.message||String(b);return a.lastError=c,a.data=ba({status:a.data?.rows?.length?"stale":"error",error:c}),console.error("[analytics] Failed to refresh token leaderboard:",c),a.data}).finally(()=>{a.refreshPromise=null})),a.refreshPromise}async function be(a={}){let b=JSON.stringify(an(a)),c=(global._dashboardAnalyticsV2Cache||(global._dashboardAnalyticsV2Cache=new Map),global._dashboardAnalyticsV2Cache),d=c.get(b);if(d&&Date.now()-d.createdAt<3e4){let a=Date.now()-d.createdAt;return bf&&console.log(`[analytics-timing] cache HIT (age=${a}ms)`),{...d.data,cacheState:"hit",cacheAgeMs:a}}let e=(global._dashboardAnalyticsInflight||(global._dashboardAnalyticsInflight=new Map),global._dashboardAnalyticsInflight),f=e.get(b);if(f)return bf&&console.log("[analytics-timing] joined in-flight computation"),f.then(a=>({...a,cacheState:"joined"}));bf&&console.log(`[analytics-timing] cache MISS, computing. key=${b.slice(0,200)}`);let g=bg(a,b,c).finally(()=>{e.delete(b)});return e.set(b,g),g.then(a=>({...a,cacheState:"fresh"}))}let bf="0"!==process.env.DASHBOARD_ANALYTICS_TIMING;async function bg(a,b,c){let d,e,f,{timed:g,report:h,totalMs:i}=(d=Date.now(),e=[],{timed:(a,b)=>{let c=Date.now();return Promise.resolve(b).finally(()=>{e.push({name:a,ms:Date.now()-c})})},report:()=>{if(!bf)return;let a=e.sort((a,b)=>b.ms-a.ms).map(a=>`${a.name}=${a.ms}ms`).join(" | ");console.log(`[analytics-timing] total=${f()}ms | ${a}`)},totalMs:f=()=>Date.now()-d}),j=an(a),k=await (0,w.c)(),l=await (0,R.d9)().catch(a=>(console.error("[dashboardAnalytics] MySQL observability query adapter unavailable; SQLite fallback is disabled:",a?.message||a),null));if(!l)throw Error("MySQL observability is not configured or unavailable; SQLite analytics fallback is disabled.");let m=[l];try{m=await g("openAdapters",a7(l,6));let a=a8(m,0),[d,e]=await g("configLoad",Promise.all([ap(k),aq(k)])),f=j.userOwnedOnly?function(a=[],b={}){let c=[...new Set((a||[]).map(a=>ab(a)).filter(Boolean))];if(0===c.length)return{enabled:!0,noMatch:!0,owners:[],identifiers:[],ids:[],fingerprints:[]};let d=new Set(c),e=new Set,f=new Set,g=new Set;for(let a of b.all||[]){let b=ab(a.ownerUser);b&&d.has(b)&&(a.key&&e.add(a.key),a.id&&(e.add(a.id),f.add(a.id)),a.fingerprint&&(e.add(a.fingerprint),g.add(a.fingerprint)))}return{enabled:!0,noMatch:0===e.size,owners:c,identifiers:[...e],ids:[...f],fingerprints:[...g]}}(j.ownerCandidates,d):j.ownedAnyUserOnly?function(a={}){let b=new Set,c=new Set,d=new Set,e=new Set;for(let f of a.all||[]){let a=ab(f.ownerUser);a&&(b.add(a),f.key&&c.add(f.key),f.id&&(c.add(f.id),d.add(f.id)),f.fingerprint&&(c.add(f.fingerprint),e.add(f.fingerprint)))}return{enabled:!0,noMatch:0===c.size&&0===b.size,owners:[...b],identifiers:[...c],ids:[...d],fingerprints:[...e]}}(d):null,n=f?{...j,ownerScope:f}:j,o=function(a,b){let c=ab(a);if(!c)return null;let d=[],e=!1;for(let a of(["local","local-no-key","no-key","khong-key","kh\xf4ng-key","kh\xf4ng d\xf9ng api key"].some(a=>a.includes(c)||c.includes(a))&&(e=!0),b.all||[]))[a.key,a.id,a.name,a.ownerUser,a.createdByUser,a.machineId,a.fingerprint,a.masked].some(a=>ab(a).includes(c))&&a.key&&d.push(a.key);return a.length>=16&&!d.includes(a)&&d.push(a),{keys:[...new Set(d)],includeLocal:e,noMatch:0===d.length&&!e,filter:c}}(n.apiKey,d),p=n.userOwnedOnly||n.ownedAnyUserOnly?Promise.resolve(function(a="disabled"){return{disabled:!0,reason:a,missing:!1,total:0,sampled:0,dbInfo:{},models:[],stages:[],topClientIps:[],topSourceTools:[],topSessions:[],topStages:[],topModels:[],topAccounts:[],topStatuses:[]}}("user_owned_scope_no_api_key_columns")):P({keyword:n.keyword,model:n.model,sourceTool:n.sourceTool,clientIp:n.clientIp,sessionId:n.sessionId,dateFrom:n.startIso,dateTo:n.endIso,workingTimeRanges:n.workingTimeRanges}),q=(0,Q.Wl)({keyword:n.keyword,provider:n.provider,model:n.model,connectionId:n.connectionId,endpoint:n.endpoint,apiKey:n.apiKey,apiKeyScope:f,status:n.status,sourceTool:n.sourceTool,clientIp:n.clientIp,sessionId:n.sessionId,dateFrom:n.startIso,dateTo:n.endIso,workingTimeRanges:n.workingTimeRanges}),[r,s,t,u,v,w]=await Promise.all([g("rangeBounds",aw(a8(m,0),n,o)),g("overview",ax(a8(m,1),n,o)),g("groups",aB(m,n,d,e,o)),g("latency",aE(a8(m,3),n,o)),g("promptLogStats",p),g("requestErrorStats",q)]),x=function(a={},b=new Map){if(!a||"object"!=typeof a)return a;let c=a=>Array.isArray(a)?a.map(a=>(function(a={},b=new Map){if(!a||"object"!=typeof a)return a;let c=aa(a.provider||a.errorSource||a.providerId),d=aa(a.providerLabel)||ar(c,b),e={...a};for(let a of["sample","sampleMessage","errorMessage","errorMessageShort","message","details"])"string"==typeof e[a]&&(e[a]=function(a,b,c){let d="string"==typeof a?a:"";return d&&b&&c&&b!==c?d.split(b).join(c):a}(e[a],c,d));return{...e,provider:c,providerLabel:d,label:aa(e.label)||d||c||"unknown"}})(a,b)):[];return{...a,topErrors:c(a.topErrors),topServerErrors:c(a.topServerErrors),topClientErrors:c(a.topClientErrors),topRateLimitErrors:c(a.topRateLimitErrors),errorDistribution:c(a.errorDistribution),byFaultOwner:c(a.byFaultOwner),byProvider:c(a.byProvider)}}(w,e),y=x?.summary||{};s.rawErrorEvents=ac(x?.total,0),s.serverErrorEvents=ac(y.serverImpacting,0),s.gatewayErrorEvents=ac(y.gateway,0),s.upstreamErrorEvents=ac(y.upstream,0),s.clientErrorEvents=ac(y.client,0),s.rateLimitErrorEvents=ac(y.rateLimit,0),s.unknownErrorEvents=ac(y.unknown,0),s.serverErrorRate=s.requests?s.serverErrorEvents/s.requests:0,s.clientErrorRate=s.requests?s.clientErrorEvents/s.requests:0,s.rateLimitErrorRate=s.requests?s.rateLimitErrorEvents/s.requests:0,x?.topErrors?.length&&(t.errors=x.topErrors);let z=new Map([...d.byKey.entries(),...d.byFingerprint.entries()]),[A,B,C,D,E,F,G]=await Promise.all([g("experience",aJ(a8(m,0),n,o,s)),g("clientRequests",a5(a8(m,1),n,o,s,e)),g("thinking",a3(a8(m,2),n,o)),g("largeContext",a4(a8(m,3),n,o)),g("timeSeries",aC(a8(m,2),n,o,r)),g("recentUsage",aN(a8(m,3),n,o,z,e)),g("heavyRequests",aO(a8(m,0),n,o,z,e))]),[H,I]=await Promise.all([g("modelExperience",aK(a8(m,1),n,o,e)),g("slowRequests",aL(a8(m,2),n,o,z,e))]);A.byModel=H,A.slowestRequests=I,s.userExperienceScore=A.score,s.userExperienceLabel=A.label,s.slowRequestRate=A.slowRequestRate,s.longInputRate=A.longInputRate,s.thinkingAutoOffRate=C.autoOffRate||0,s.largeContextRate=D.gte50kRate||0,s.topHeavyUser=B.summary?.topUserLabel||"",s.topHeavyUserTokenShare=B.summary?.topUserTokenShare||0,s.extremeInputShare=B.summary?.extremeInputShare||0;let J=await g("options",aV(a,n,t,v,d,o,e)),K=function({overview:a,groups:b,promptLogStats:c,requestErrorStats:d,experience:e,clientRequests:f}){let g=[],h=d?.summary||{},i=ac(h.serverImpacting,0),j=ac(h.client,0),k=ac(h.rateLimit,0),l=ac(a.serverErrorRate,a.requests?i/a.requests:0),m=ac(a.clientErrorRate,a.requests?j/a.requests:0);a.requests>=10&&i>=3&&l>=.05?g.push({level:l>=.15?"danger":"warning",title:"Tỷ lệ lỗi server/provider cao",detail:`${i.toLocaleString("vi-VN")} lỗi server-impacting (${(100*l).toFixed(1)}% request) trong khoảng thời gian đang lọc. Ưu ti\xean kiểm tra upstream/provider, gateway, timeout v\xe0 5xx.`}):a.requests>=10&&a.errorRate>=.2&&m>=.1?g.push({level:"warning",title:"Nhiều lỗi do client/request",detail:`${j.toLocaleString("vi-VN")} lỗi được ph\xe2n loại l\xe0 client-side (${(100*m).toFixed(1)}% request): sai endpoint/model/auth/body/context. Kh\xf4ng n\xean t\xednh nh\xf3m n\xe0y như lỗi server.`}):a.requests>=10&&a.errorRate>=.2&&g.push({level:"warning",title:"Tỷ lệ lỗi tổng cao",detail:`Tổng lỗi usage l\xe0 ${(100*a.errorRate).toFixed(1)}%, nhưng lỗi server-impacting chỉ ${(100*l).toFixed(1)}%. Xem ph\xe2n loại client/server b\xean dưới trước khi kết luận provider hỏng.`}),k>=5&&a.requests>0&&k/a.requests>=.05&&g.push({level:"warning",title:"Rate limit / quota đ\xe1ng ch\xfa \xfd",detail:`${k.toLocaleString("vi-VN")} lỗi rate-limit/quota trong khoảng lọc. Kiểm tra policy API key, quota provider hoặc ph\xe2n tải model.`});let n=b.apiKeys?.[0];n&&a.totalTokens>0&&n.totalTokens/a.totalTokens>=.5&&g.push({level:"warning",title:"Một API key d\xf9ng phần lớn token",detail:`${n.name||n.fingerprint} đang d\xf9ng ${(n.totalTokens/a.totalTokens*100).toFixed(1)}% tổng token.`});let o=c?.topClientIps?.[0];o&&c.total>0&&o.requests/c.total>=.5&&o.requests>=20&&g.push({level:"warning",title:"Một IP chiếm phần lớn request prompt log",detail:`${o.label} chiếm ${(o.requests/c.total*100).toFixed(1)}% prompt logs trong to\xe0n bộ dữ liệu khớp bộ lọc.`});let p=d?.topServerErrors?.[0];return p&&p.requests>=5&&g.push({level:p.requests>=20?"danger":"warning",title:"Provider/Gateway c\xf3 lỗi cần xử l\xfd",detail:`${p.providerLabel||p.provider||p.errorSource||"unknown"}/${p.model||"unknown"} c\xf3 ${p.requests.toLocaleString("vi-VN")} lỗi ${p.errorType||p.status||"server-impacting"}.`}),e?.samples>=10&&ac(e.slowRequestRate,0)>=.2&&g.push({level:e.slowRequestRate>=.4?"danger":"warning",title:"Nhiều request phản hồi chậm",detail:`${(100*e.slowRequestRate).toFixed(1)}% request th\xe0nh c\xf4ng c\xf3 latency >= 45s. Kiểm tra request input d\xe0i, chờ slot/upstream queue v\xe0 tải model server.`}),e?.samples>=10&&ac(e.longInputRate,0)>=.3&&g.push({level:"warning",title:"Tỷ lệ request input d\xe0i cao",detail:`${(100*e.longInputRate).toFixed(1)}% request c\xf3 input >= 30k token. Với VS Code/agent, P95/P99 latency cao c\xf3 thể chủ yếu do prompt eval v\xe0 chờ slot, kh\xf4ng phải do output chậm.`}),f?.summary?.topUserTokenShare>=.35&&g.push({level:f.summary.topUserTokenShare>=.6?"danger":"warning",title:"Token usage tập trung v\xe0o một user/API key",detail:`${f.summary.topUserLabel||"Một client"} đang chiếm ${(100*f.summary.topUserTokenShare).toFixed(1)}% tổng token trong khoảng lọc. N\xean kiểm tra quota, workflow VS Code/agent v\xe0 request input d\xe0i của client n\xe0y.`}),f?.summary?.extremeInputShare>=.1&&g.push({level:f.summary.extremeInputShare>=.25?"danger":"warning",title:"Nhiều request cực d\xe0i >=70k token",detail:`${(100*f.summary.extremeInputShare).toFixed(1)}% request th\xe0nh c\xf4ng c\xf3 input >=70k token. Đ\xe2y l\xe0 nh\xf3m dễ k\xe9o TTFT/P95/P99 l\xean cao v\xe0 l\xe0m request nhỏ phải chờ slot.`}),g}({overview:s,groups:t,promptLogStats:v,requestErrorStats:x,experience:A,clientRequests:B}),L={generatedAt:new Date().toISOString(),computeMs:i(),analyticsVersion:"v3.6-token-leaderboard",filters:{period:n.period,startIso:n.startIso,endIso:n.endIso,provider:n.provider,model:n.model,connectionId:n.connectionId,status:n.status,endpoint:n.endpoint,apiKey:n.apiKey,clientIp:n.clientIp,sourceTool:n.sourceTool,sessionId:n.sessionId,keyword:n.keyword,userOwnedOnly:n.userOwnedOnly,ownedAnyUserOnly:n.ownedAnyUserOnly},overview:s,latency:u,experience:A,clientRequests:B,tokenLeaderboard:(!function(){let a=bb();if(a.timerStarted)return;a.timerStarted=!0;let b=setTimeout(()=>{bd().catch(()=>{})},1e3);b.unref?.();let c=setInterval(()=>{bd().catch(()=>{})},9e5);c.unref?.()}(),bb().data||ba()),thinkingAnalytics:C,largeContextAnalytics:D,timeSeries:E,groups:t,promptLogs:v,requestErrors:x,anomalies:K,recentUsage:F,heavyRequests:G,options:J,qualityNotes:[]};if(await a9(m),c.set(b,{createdAt:Date.now(),data:L}),c.size>100){for(let[a,b]of c)if(Date.now()-b.createdAt>3e4&&c.delete(a),c.size<=100)break}return h(),L}catch(a){throw await a9(m),h(),console.error("[dashboardAnalytics] MySQL observability query failed; SQLite fallback is disabled:",a?.message||a),a}}var bh=c(9588);let bi="force-dynamic",bj=["period","dateFrom","dateTo","provider","model","connectionId","status","endpoint","apiKey","clientIp","sourceIp","sourceTool","sessionId","keyword","maxPromptLogRows","timeZone"];async function bk(a){try{let b,{access:c,response:d}=await (0,bh.oW)();if(d)return d;let{searchParams:e}=new URL(a.url),f=function(a){let b={};for(let c of bj){let d=a.get(c);null!==d&&""!==String(d).trim()&&(b[c]=d)}return b}(e);b=c.isAdmin||c.isMonitorAdmin?f:c.isAiGatewaysMonitor?{...f,ownedAnyUserOnly:!0}:{...f,userOwnedOnly:!0,ownerCandidates:[...new Set([...c.candidates||[],c.userId].map(bh.I8).filter(Boolean))]};let g=await be(b);if("csv"===e.get("format")){let a=(function(a){let b=[];for(let[c,d]of(b.push(["section","key","label","requests","success","errors","errorRate","inputTokens","outputTokens","totalTokens","cost","lastSeen"]),[["providers",a.groups.providers],["models",a.groups.models],["providerAccounts",a.groups.providerAccounts],["apiKeys",a.groups.apiKeys],["endpoints",a.groups.endpoints],["clientIps",a.promptLogs.topClientIps],["sourceTools",a.promptLogs.topSourceTools],["requestErrors",a.requestErrors?.topErrors||a.groups.errors],["modelExperience",a.experience?.byModel||[]],["clientHeavyUsers",a.clientRequests?.topHeavyUsers||[]],["clientTopApiKeysByTokens",a.clientRequests?.topApiKeysByTokens||[]],["clientTopSourceIpsByTokens",a.clientRequests?.topSourceIpsByTokens||[]],["clientTopSourceIpsByHeavyRequests",a.clientRequests?.topSourceIpsByHeavyRequests||[]],["clientProblemClients",a.clientRequests?.topProblemClients||[]],["inputBuckets",a.clientRequests?.inputBuckets||[]]]))for(let a of d||[])b.push([c,a.key||"",a.label||a.name||"",a.requests||0,a.success||0,a.errors||0,a.errorRate||0,a.promptTokens||0,a.completionTokens||0,a.totalTokens||0,a.cost||0,a.lastSeen||""]);return b})(g).map(a=>a.map(a6).join(",")).join("\n");return new Response(a,{status:200,headers:{"Content-Type":"text/csv; charset=utf-8","Content-Disposition":`attachment; filename="bluerouter-analytics-${new Date().toISOString().slice(0,10)}.csv"`,"Cache-Control":"no-store"}})}return v.NextResponse.json(g,{headers:{"Cache-Control":"no-store"}})}catch(a){return console.error("[analytics] Failed to build dashboard analytics:",a),v.NextResponse.json({error:a?.message||"Failed to build dashboard analytics"},{status:500})}}let bl=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/dashboard/analytics/route",pathname:"/api/dashboard/analytics",filename:"route",bundlePath:"app/api/dashboard/analytics/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"D:\\bluerouter\\src\\app\\api\\dashboard\\analytics\\route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:bm,workUnitAsyncStorage:bn,serverHooks:bo}=bl;function bp(){return(0,g.patchFetch)({workAsyncStorage:bm,workUnitAsyncStorage:bn})}async function bq(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),bl.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/dashboard/analytics/route";"/index"===d&&(d="/");let e=await bl.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(I&&!z){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||bl.isDev||z||(K="/index"===(K=E)?"/":K);let L=!0===bl.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await bl.getIncrementalCache(a,x,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>bl.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>bl.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${N} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await bl.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),b}},k=await bl.handleResponse({req:a,nextConfig:x,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await bl.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},69614:(a,b,c)=>{c.d(b,{V:()=>p});var d=c(88888),e=c(91356),f=c(99129),g=c(73575),h=c(41570),i=c(19035),j=c(24762),k=c(80308),l=c(11980);async function m(a,b,c){if(!(0,i.Gv)(a))throw new f.Ye("Flattened JWS must be an object");if(void 0===a.protected&&void 0===a.header)throw new f.Ye('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==a.protected&&"string"!=typeof a.protected)throw new f.Ye("JWS Protected Header incorrect type");if(void 0===a.payload)throw new f.Ye("JWS Payload missing");if("string"!=typeof a.signature)throw new f.Ye("JWS Signature missing or incorrect type");if(void 0!==a.header&&!(0,i.Gv)(a.header))throw new f.Ye("JWS Unprotected Header incorrect type");let m={};if(a.protected)try{let b=(0,d.D)(a.protected);m=JSON.parse(g.D0.decode(b))}catch{throw new f.Ye("JWS Protected Header is invalid")}if(!(0,i.fz)(m,a.header))throw new f.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...m,...a.header},o=(0,k.n)(f.Ye,new Map([["b64",!0]]),c?.crit,m,n),p=!0;if(o.has("b64")&&"boolean"!=typeof(p=m.b64))throw new f.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:q}=n;if("string"!=typeof q||!q)throw new f.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');let r=c&&function(a,b){if(void 0!==b&&(!Array.isArray(b)||b.some(a=>"string"!=typeof a)))throw TypeError(`"${a}" option must be an array of strings`);if(b)return new Set(b)}("algorithms",c.algorithms);if(r&&!r.has(q))throw new f.Rb('"alg" (Algorithm) Header Parameter value not allowed');if(p){if("string"!=typeof a.payload)throw new f.Ye("JWS Payload must be a string")}else if("string"!=typeof a.payload&&!(a.payload instanceof Uint8Array))throw new f.Ye("JWS Payload must be a string or an Uint8Array instance");let s=!1;"function"==typeof b&&(b=await b(m,a),s=!0),(0,j.y)(q,b,"verify");let t=(0,g.xW)(void 0!==a.protected?(0,g.lF)(a.protected):new Uint8Array,(0,g.lF)("."),"string"==typeof a.payload?p?(0,g.lF)(a.payload):g.Rd.encode(a.payload):a.payload),u=(0,h.h2)(a.signature,"signature",f.Ye),v=await (0,l.l)(b,q);if(!await (0,e.MX)(q,v,u,t))throw new f.h2;let w={payload:p?(0,h.h2)(a.payload,"payload",f.Ye):"string"==typeof a.payload?g.Rd.encode(a.payload):a.payload};return(void 0!==a.protected&&(w.protectedHeader=m),void 0!==a.header&&(w.unprotectedHeader=a.header),s)?{...w,key:v}:w}async function n(a,b,c){if(a instanceof Uint8Array&&(a=g.D0.decode(a)),"string"!=typeof a)throw new f.Ye("Compact JWS must be a string or Uint8Array");let{0:d,1:e,2:h,length:i}=a.split(".");if(3!==i)throw new f.Ye("Invalid Compact JWS");let j=await m({payload:e,protected:d,signature:h},b,c),k={payload:j.payload,protectedHeader:j.protectedHeader};return"function"==typeof b?{...k,key:j.key}:k}var o=c(17347);async function p(a,b,c){let d=await n(a,b,c);if(d.protectedHeader.crit?.includes("b64")&&!1===d.protectedHeader.b64)throw new f.Dp("JWTs MUST NOT use unencoded payload");let e={payload:(0,o.k6)(d.protectedHeader,d.payload,c),protectedHeader:d.protectedHeader};return"function"==typeof b?{...e,key:d.key}:e}},73024:a=>{a.exports=require("node:fs")},74075:a=>{a.exports=require("zlib")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79748:a=>{a.exports=require("fs/promises")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},90389:(a,b,c)=>{c.d(b,{hS:()=>d});let d=Object.freeze({ADMIN:"admin",MONITOR_ADMIN:"monitor_admin",AI_GATEWAYS_MONITOR:"ai_gateways_monitor",USER:"user",GUEST:"guest"});Object.freeze([{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/api-keys",label:"API Keys",icon:"vpn_key"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/analytics",label:"Analytics",icon:"monitoring"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"},{href:"/dashboard/prompt-logs",label:"Prompt Logs",icon:"manage_search"}]),Object.freeze(["/dashboard","/dashboard/endpoint","/dashboard/api-keys","/dashboard/usage","/dashboard/analytics","/dashboard/quota","/dashboard/prompt-logs"])},91645:a=>{a.exports=require("net")},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,5592,5573,6935,402,5901,7242],()=>b(b.s=47492));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=451,a.ids=[451],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{a.exports=require("node:buffer")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19771:a=>{a.exports=require("process")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},74075:a=>{a.exports=require("zlib")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79545:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{GET:()=>A,dynamic:()=>y});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(23211),w=c(38360),x=c(9588);let y="force-dynamic",z=["period","dateFrom","dateTo","provider","model","connectionId","status","endpoint","apiKey","clientIp","sourceIp","sourceTool","sessionId","keyword","maxPromptLogRows","timeZone"];async function A(a){try{let b,{access:c,response:d}=await (0,x.oW)();if(d)return d;let{searchParams:e}=new URL(a.url),f=function(a){let b={};for(let c of z){let d=a.get(c);null!==d&&""!==String(d).trim()&&(b[c]=d)}return b}(e);b=c.isAdmin||c.isMonitorAdmin?f:c.isAiGatewaysMonitor?{...f,ownedAnyUserOnly:!0}:{...f,userOwnedOnly:!0,ownerCandidates:[...new Set([...c.candidates||[],c.userId].map(x.I8).filter(Boolean))]};let g=await (0,w.b2)(b);if("csv"===e.get("format")){let a=(0,w.kC)(g);return new Response(a,{status:200,headers:{"Content-Type":"text/csv; charset=utf-8","Content-Disposition":`attachment; filename="bluerouter-analytics-${new Date().toISOString().slice(0,10)}.csv"`,"Cache-Control":"no-store"}})}return v.NextResponse.json(g,{headers:{"Cache-Control":"no-store"}})}catch(a){return console.error("[analytics] Failed to build dashboard analytics:",a),v.NextResponse.json({error:a?.message||"Failed to build dashboard analytics"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/dashboard/analytics/route",pathname:"/api/dashboard/analytics",filename:"route",bundlePath:"app/api/dashboard/analytics/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"D:\\bluerouter\\src\\app\\api\\dashboard\\analytics\\route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),B.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/dashboard/analytics/route";"/index"===d&&(d="/");let e=await B.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||B.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===B.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await B.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>B.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>B.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await B.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},79748:a=>{a.exports=require("fs/promises")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,5592,5573,6935,402,5901,7242,5434],()=>b(b.s=79545));module.exports=c})();
|