@jheavenknows/bluerouter 5.4.13 → 5.4.15
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 +17 -16
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +2 -2
- package/app/.next-cli-build/routes-manifest.json +6 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ai-power-index/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ai-power-index/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js +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 +2 -2
- 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/audit-proxy/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +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 +2 -2
- 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/model-profiles/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/model-profiles/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- 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 +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 +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 +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 +1 -1
- 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/logs/console/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/logs/console/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/logs/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/logs/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +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 +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 +2 -2
- 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 +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 +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 +1 -1
- 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/personal/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personal/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page.js +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 +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 +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 +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 +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 +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 +2 -2
- 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 +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 +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/providers/stt/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/stt/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/tts/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/tts/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_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +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 +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/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +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 +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 +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 +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_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/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +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/_not-found/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/ca/route.js +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/ca/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/me/route.js +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/me/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/audit-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/users/route.js +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/users/route.js.nft.json +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 +1 -1
- 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/auth/view-mode/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/view-mode/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-model-profiles/cloud-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-model-profiles/cloud-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-model-profiles/model-catalog/route.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-model-profiles/model-catalog/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/cli-model-profiles/model-catalog/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-model-profiles/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-model-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +3 -3
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- 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/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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +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/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- 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/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/qwen-settings/route.js +2 -2
- 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/codex-catalog/download/route.js +1 -1
- package/app/.next-cli-build/server/app/api/codex-catalog/download/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/codex-catalog/route.js +1 -1
- package/app/.next-cli-build/server/app/api/codex-catalog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/codex-catalog/upload/route.js +1 -1
- package/app/.next-cli-build/server/app/api/codex-catalog/upload/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- 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/ai-power-index/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/ai-power-index/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js +1 -1
- 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 +1 -1
- 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/init/route.js +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/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 +1 -1
- 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 +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 +1 -1
- 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/grok-cli/device-code/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/device-code/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/poll/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/poll/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/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-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]/move/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/move/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/personal-cloud-providers/shares/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/shares/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/visibility/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/visibility/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/catalog/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pricing/catalog/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/openai-compatible/manage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/openai-compatible/manage/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/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/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/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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/export/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/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/tags/route.js +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/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/load/route.js +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/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 +1 -1
- 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/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/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 +1 -1
- 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/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/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/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/route.js +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 +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/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/!KGRhc2hib2FyZCk/dashboard/ai-power-index/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.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 +9 -9
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys/__PAGE__.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_full.segment.rsc +9 -9
- 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 +7 -7
- 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/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/model-profiles/__PAGE__.segment.rsc +30 -28
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/_full.segment.rsc +20 -19
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.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 +7 -7
- 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/_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 +6 -6
- 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/_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 +7 -7
- 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/_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 +7 -7
- 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/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/logs.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/logs.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/logs.segments/!KGRhc2hib2FyZCk/dashboard/logs/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/logs.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/logs.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 +7 -7
- 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/_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 +7 -7
- 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/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/personal.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/personal.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/personal.segments/!KGRhc2hib2FyZCk/dashboard/personal/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/personal.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/personal.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 +7 -7
- 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/_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 +6 -6
- 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/_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 +6 -6
- 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/_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 +7 -7
- 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/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/stt.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/stt.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/stt.segments/!KGRhc2hib2FyZCk/dashboard/providers/stt/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/stt.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/stt.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/tts.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/tts.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/tts.segments/!KGRhc2hib2FyZCk/dashboard/providers/tts/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/tts.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/tts.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 +7 -7
- 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/_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 +7 -7
- 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/_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 +8 -8
- 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/_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 +6 -6
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard/resource-monitor/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_full.segment.rsc +6 -6
- 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.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.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 +7 -7
- 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/_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 +6 -6
- 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/_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 +7 -7
- 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/_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 +7 -7
- 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/_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 +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
- 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/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 +5 -5
- package/app/.next-cli-build/server/app/index.segments/_full.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 +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/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login/page.js +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/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/page.js +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 +17 -16
- package/app/.next-cli-build/server/chunks/2664.js +1 -1
- package/app/.next-cli-build/server/chunks/3399.js +1 -1
- package/app/.next-cli-build/server/chunks/3433.js +3 -3
- package/app/.next-cli-build/server/chunks/3960.js +1 -1
- package/app/.next-cli-build/server/chunks/4350.js +1 -1
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/4790.js +2 -2
- package/app/.next-cli-build/server/chunks/5210.js +3 -3
- package/app/.next-cli-build/server/chunks/5296.js +1 -1
- package/app/.next-cli-build/server/chunks/6118.js +1 -1
- package/app/.next-cli-build/server/chunks/6328.js +1 -1
- package/app/.next-cli-build/server/chunks/6684.js +1 -1
- package/app/.next-cli-build/server/chunks/6811.js +1 -1
- package/app/.next-cli-build/server/chunks/689.js +3 -3
- package/app/.next-cli-build/server/chunks/6992.js +1 -1
- package/app/.next-cli-build/server/chunks/7774.js +3 -3
- package/app/.next-cli-build/server/chunks/8049.js +1 -1
- package/app/.next-cli-build/server/chunks/8352.js +2 -2
- package/app/.next-cli-build/server/chunks/9.js +2 -2
- package/app/.next-cli-build/server/chunks/9012.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- 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/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/DuSB34H6cE3cKjeFATxgo/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/{5263-bdad820566826d54.js → 5263-533ff8cecf251d8a.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/api-keys/{page-07d70ddc2fb95e53.js → page-4e908fccca3cb031.js} +4 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/model-profiles/page-398c89951ed46cd1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/page-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/ca/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/me/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/users/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/view-mode/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/cloud-models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/model-catalog/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/config/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/heartbeat/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/command/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/snapshot/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/sync/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/test/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/codex-catalog/download/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/codex-catalog/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/codex-catalog/upload/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/ai-power-index/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/ai-models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/analyze/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/caveman-test/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/device-code/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/poll/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/move/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/monitor/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/shares/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/visibility/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/catalog/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-health/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/openai-compatible/manage/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/[id]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/ai-models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/analyze/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/history/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/export/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/restart/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-866b1d0c2eb324a0.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-866b1d0c2eb324a0.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/chunks/app/(dashboard)/dashboard/cli-tools/model-profiles/page-514941d4d89828f3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/ca/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/me/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/users/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/view-mode/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/cloud-models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/config/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/heartbeat/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/command/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/snapshot/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/sync/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/test/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/codex-catalog/download/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/codex-catalog/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/codex-catalog/upload/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/ai-power-index/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/ai-models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/analyze/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/caveman-test/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/device-code/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/poll/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/move/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/monitor/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/shares/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/visibility/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/catalog/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-health/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/openai-compatible/manage/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/[id]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/ai-models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/analyze/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/history/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/export/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/restart/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-33a3e242390aab34.js +0 -1
- package/app/.next-cli-build/static/mmuU-WYdHlWiLCuG5xDtl/_buildManifest.js +0 -1
- /package/app/.next-cli-build/static/{mmuU-WYdHlWiLCuG5xDtl → DuSB34H6cE3cKjeFATxgo}/_ssgManifest.js +0 -0
- /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.4.1-to-5.4.2-5.4.2-20260823-230632 → upgrade-5.4.12-to-5.4.13-5.4.13-20260824-200839}/data.sqlite +0 -0
- /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.4.2-to-5.4.3-5.4.3-20260823-231221 → upgrade-5.4.5-to-5.4.12-5.4.12-20260824-191612}/data.sqlite +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=6684,exports.ids=[3960,6684,9841],exports.modules={
|
|
1
|
+
"use strict";exports.id=6684,exports.ids=[3960,6684,9841],exports.modules={41579:(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(82009);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)}},79841:(a,b,c)=>{let{EventEmitter:d}=c(78474),e=Symbol.for("bluerouter.realtime-usage.v1");function f(){let a="u">typeof process?process:globalThis;if(!a[e]){let b=new d;b.setMaxListeners(100),a[e]={emitter:b,ring:{items:[],initialized:!1}}}return a[e]}function g(a={}){let b=String(a.requestId||"").trim();if(b)return`request:${b}`;let c=new Date(a.timestamp||0).getTime();return`fallback:${c}|${a.model||""}|${a.provider||""}|${a.connectionId||""}`}a.exports={entryKey:g,getRealtimeUsageState:f,publishRecentUsage:function(a,{emit:b=!0,cap:c=50}={}){if(!a||"object"!=typeof a)return null;let d=f(),e=g(a),h=d.ring.items.findIndex(a=>g(a)===e),i=h>=0?function(a={},b={}){return{...a,...b,tokens:{...a.tokens&&"object"==typeof a.tokens?a.tokens:{},...b.tokens&&"object"==typeof b.tokens?b.tokens:{}}}}(d.ring.items[h],a):{...a};return h>=0?d.ring.items[h]=i:d.ring.items.push(i),d.ring.items=d.ring.items.sort((a,b)=>new Date(a.timestamp||0)-new Date(b.timestamp||0)).slice(-Math.max(1,Number(c)||50)),d.ring.initialized=!0,b&&d.emitter.emit("update",{source:"memory-ring",requestId:i.requestId||""}),i},resetForTests:function(){let a=f();a.ring.items=[],a.ring.initialized=!1,a.emitter.removeAllListeners()}}},82009:(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()}},93621:(a,b,c)=>{c.d(b,{ensureResourceMonitorCollector:()=>k});var d=c(52155),e=c(14938),f=c(69810),g=c(75870);let h="__blueRouterResourceMonitorCollector";function i(){return globalThis[h]||(globalThis[h]={timer:null,running:null,started:!1}),globalThis[h]}async function j(){let a=i();return a.running||(a.running=(async()=>{if(await (0,g.isClusterStandby)())return;let a=await (0,e.HI)({includeSecrets:!0});await Promise.allSettled(a.filter(a=>!1!==a.enabled).map(async a=>{let b=await (0,d.h)(a);await (0,f.Qg)(a.id,b)}))})().finally(()=>{a.running=null})),a.running}function k(){let a=i();if(a.started)return;a.started=!0;let b=async()=>{try{await j()}catch(a){console.warn("[resource-monitor] history collector failed:",a?.message||a)}finally{a.timer=setTimeout(b,6e4),a.timer.unref?.()}};a.timer=setTimeout(b,5e3),a.timer.unref?.()}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=6811,exports.ids=[6811],exports.modules={15626:(a,b,c)=>{c.d(b,{w$:()=>e});let d=c(39006).rE||"0.0.0";function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.startsWith("workos:")?b:`workos:${b}`:""}(a))?`Bearer ${c}`:"",g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`Bluerouter/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"bluerouter","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return f&&(g.Authorization=f),g}},30869:(a,b,c)=>{c.d(b,{UY:()=>h,X3:()=>i,eh:()=>f.eh,fg:()=>e.fg,h0:()=>g});var d=c(39006),e=c(75681),f=c(81329);d.rE;let g={npmPackageName:"@jheavenknows/bluerouter",installCmd:"npm i -g @jheavenknows/bluerouter",installCmdLatest:"npm install -g @jheavenknows/bluerouter@latest",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20128},h={maxLines:200,pollIntervalMs:1e3},i={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","alims-intl":"https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},39006:a=>{a.exports={rE:"5.4.12"}},66811:(a,b,c)=>{c.d(b,{F:()=>s});var d=c(89718),e=c(39326),f=c(74926),g=c(75681),h=c(30869),i=c(44404),j=c(35024),k=c(92990),l=c(15626);let m={claude:{checkExpiry:!0,refreshable:!0},codex:{url:"https://chatgpt.com/backend-api/codex/responses",method:"POST",authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:{"Content-Type":"application/json",originator:"codex-cli","User-Agent":"codex-cli/1.0.18 (macOS; arm64)"},body:JSON.stringify({model:"gpt-5.3-codex",input:[],stream:!1,store:!1}),acceptStatuses:[400],refreshable:!0},"gemini-cli":{url:"https://www.googleapis.com/oauth2/v1/userinfo?alt=json",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",refreshable:!0},antigravity:{url:"https://www.googleapis.com/oauth2/v1/userinfo?alt=json",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",refreshable:!0},github:{url:"https://api.github.com/user",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:{"User-Agent":"Bluerouter",Accept:"application/vnd.github+json"}},iflow:{buildUrl:a=>`https://iflow.cn/api/oauth/getUserInfo?accessToken=${encodeURIComponent(a)}`,method:"GET",noAuth:!0},qwen:{checkExpiry:!0,refreshable:!0},kiro:{checkExpiry:!0,refreshable:!0},"kimi-coding":{checkExpiry:!0,refreshable:!1},cursor:{tokenExists:!0},kilocode:{url:`${k.MZ.apiBaseUrl}/api/profile`,method:"GET",authHeader:"Authorization",authPrefix:"Bearer "},cline:{refreshable:!0},gitlab:{url:"https://gitlab.com/api/v4/user",method:"GET",authHeader:"Authorization",authPrefix:"Bearer "},codebuddy:{tokenExists:!0}};async function n(a){return await fetch("https://api.cline.bot/api/v1/users/me",{method:"GET",headers:(0,l.w$)(a,{Accept:"application/json"})})}async function o(a){let b=a.provider,c=a.refreshToken;if(!c)return null;try{if("gemini-cli"===b||"antigravity"===b){let a="gemini-cli"===b?k.LT:k.YT,d=await fetch("https://oauth2.googleapis.com/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:a.clientId,client_secret:a.clientSecret,grant_type:"refresh_token",refresh_token:c})});if(!d.ok)return null;let e=await d.json();return{accessToken:e.access_token,expiresIn:e.expires_in,refreshToken:e.refresh_token||c}}if("codex"===b){let a=await fetch(k.DI.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"refresh_token",client_id:k.DI.clientId,refresh_token:c})});if(!a.ok)return null;let b=await a.json();return{accessToken:b.access_token,expiresIn:b.expires_in,refreshToken:b.refresh_token||c}}if("claude"===b){let a=await fetch(k.OV.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"refresh_token",refresh_token:c,client_id:k.OV.clientId})});if(!a.ok)return null;let b=await a.json();return{accessToken:b.access_token,expiresIn:b.expires_in,refreshToken:b.refresh_token||c}}if("kiro"===b){let b=a.providerSpecificData||{},d=b.clientId||a.clientId,e=b.clientSecret||a.clientSecret,f=b.region||a.region;if(d&&e){let a=`https://oidc.${f||"us-east-1"}.amazonaws.com/token`,b=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:d,clientSecret:e,refreshToken:c,grantType:"refresh_token"})});if(!b.ok)return null;let g=await b.json();return{accessToken:g.accessToken,expiresIn:g.expiresIn||3600,refreshToken:g.refreshToken||c}}let g=await fetch(k.Tx.socialRefreshUrl,{method:"POST",headers:{"Content-Type":"application/json","User-Agent":"kiro-cli/1.0.0"},body:JSON.stringify({refreshToken:c})});if(!g.ok)return null;let h=await g.json();return{accessToken:h.accessToken,expiresIn:h.expiresIn||3600,refreshToken:h.refreshToken||c}}if("qwen"===b){let a=await fetch(k.Hp.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:c,client_id:k.Hp.clientId})});if(!a.ok)return null;let b=await a.json();return{accessToken:b.access_token,expiresIn:b.expires_in,refreshToken:b.refresh_token||c}}if("cline"===b){let a=await fetch(k.lB.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({refreshToken:c,grantType:"refresh_token",clientType:"extension"})});if(!a.ok)return null;let b=await a.json(),d=b?.data||b,e=d?.expiresAt?Math.max(1,Math.floor((new Date(d.expiresAt).getTime()-Date.now())/1e3)):3600;return{accessToken:d?.accessToken,expiresIn:e,refreshToken:d?.refreshToken||c}}return null}catch(a){return console.log(`Error refreshing ${b} token:`,a.message),null}}async function p(a,b=null){var c;let d=m[a.provider];if(!d)return{valid:!1,error:"Provider test not supported",refreshed:!1};if(!a.accessToken)return{valid:!1,error:"No access token",refreshed:!1};if(d.tokenExists)return{valid:!0,error:null,refreshed:!1,newTokens:null};let e=a.accessToken,f=!1,g=null,h=!!(c=a).expiresAt&&new Date(c.expiresAt).getTime()<=Date.now()+3e5;if(d.refreshable&&h&&a.refreshToken){let b=await o(a);if(!b)return{valid:!1,error:"Token expired and refresh failed",refreshed:!1};e=b.accessToken,f=!0,g=b}if(d.checkExpiry)return f?{valid:!0,error:null,refreshed:f,newTokens:g}:h?{valid:!1,error:"Token expired",refreshed:!1}:{valid:!0,error:null,refreshed:!1,newTokens:null};if("cline"===a.provider){let b=async a=>{let b=await n(a);return b.ok?{valid:!0,error:null,refreshed:f,newTokens:g}:401===b.status?{valid:!1,error:"Token invalid or revoked",refreshed:f}:403===b.status?{valid:!1,error:"Access denied",refreshed:f}:{valid:!1,error:`API returned ${b.status}`,refreshed:f}},c=await b(e);if(c.valid||"Token invalid or revoked"!==c.error||!a.refreshToken)return c;let d=await o(a);return d?.accessToken?(f=!0,g=d,e=d.accessToken,await b(e)):{valid:!1,error:"Token invalid or revoked",refreshed:!1}}try{let c=d.buildUrl?d.buildUrl(e):d.url,h=d.noAuth?{...d.extraHeaders}:{[d.authHeader]:`${d.authPrefix}${e}`,...d.extraHeaders},i={method:d.method,headers:h};d.body&&(i.body=d.body);let j=await q(c,i,b);if(j.ok||d.acceptStatuses&&d.acceptStatuses.includes(j.status))return{valid:!0,error:null,refreshed:f,newTokens:g};if(401===j.status&&d.refreshable&&!f&&a.refreshToken){let e=await o(a);if(e){let a=d.buildUrl?d.buildUrl(e.accessToken):c,f=d.noAuth?{...d.extraHeaders}:{[d.authHeader]:`${d.authPrefix}${e.accessToken}`,...d.extraHeaders},g={method:d.method,headers:f};d.body&&(g.body=d.body);let h=await q(a,g,b);if(h.ok||d.acceptStatuses&&d.acceptStatuses.includes(h.status))return{valid:!0,error:null,refreshed:!0,newTokens:e}}return{valid:!1,error:"Token invalid or revoked",refreshed:!1}}if(401===j.status)return{valid:!1,error:"Token invalid or revoked",refreshed:f};if(403===j.status)return{valid:!1,error:"Access denied",refreshed:f};return{valid:!1,error:`API returned ${j.status}`,refreshed:f}}catch(a){return{valid:!1,error:a.message,refreshed:f}}}async function q(a,b={},d=null){if(d?.vercelRelayUrl){let{proxyAwareFetch:e}=await c.e(9609).then(c.bind(c,39609));return e(a,b,{vercelRelayUrl:d.vercelRelayUrl})}if(!d?.connectionProxyEnabled||!d?.connectionProxyUrl)return fetch(a,b);let{proxyAwareFetch:e}=await c.e(9609).then(c.bind(c,39609));return e(a,b,{connectionProxyEnabled:!0,connectionProxyUrl:d.connectionProxyUrl,connectionNoProxy:d.connectionNoProxy||""})}async function r(a,b=null){if((0,g.mq)(a.provider)){let c=a.providerSpecificData?.baseUrl;if(!c)return{valid:!1,error:"Missing base URL"};try{let d=await q(`${c.replace(/\/$/,"")}/models`,{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:d.ok,error:d.ok?null:"Invalid API key or base URL"}}catch(a){return{valid:!1,error:a.message}}}if((0,g.gb)(a.provider)){let c=a.providerSpecificData?.baseUrl;if(!c)return{valid:!1,error:"Missing base URL"};try{(c=c.replace(/\/$/,"")).endsWith("/messages")&&(c=c.slice(0,-9));let d=await q(`${c}/models`,{headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01",Authorization:`Bearer ${a.apiKey}`}},b);return{valid:d.ok,error:d.ok?null:"Invalid API key or base URL"}}catch(a){return{valid:!1,error:a.message}}}try{switch(a.provider){case"cloudflare-ai":{let c=(a.providerSpecificData||{}).accountId;if(!c)return{valid:!1,error:"Missing Account ID"};let d=`https://api.cloudflare.com/client/v4/accounts/${c}/ai/v1/chat/completions`,e=await q(d,{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"Content-Type":"application/json"},body:JSON.stringify({model:(0,i.fZ)("cloudflare-ai"),messages:[{role:"user",content:"test"}],max_tokens:1})},b),f=401!==e.status&&403!==e.status&&404!==e.status;return{valid:f,error:f?null:"Invalid API token or Account ID"}}case"azure":{let c=a.providerSpecificData||{},d=(c.azureEndpoint||"").replace(/\/$/,""),e=c.deployment||"gpt-4",f=c.apiVersion||"2024-10-01-preview",g=`${d}/openai/deployments/${e}/chat/completions?api-version=${f}`,h={"api-key":a.apiKey,"Content-Type":"application/json"};c.organization&&(h["OpenAI-Organization"]=c.organization);let i=await q(g,{method:"POST",headers:h,body:JSON.stringify({messages:[{role:"user",content:"test"}],max_completion_tokens:1})},b),j=401!==i.status&&403!==i.status;return{valid:j,error:j?null:"Invalid API key or Azure configuration"}}case"openai":{let c=await q("https://api.openai.com/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"vercel-ai-gateway":{let c=await q("https://ai-gateway.vercel.sh/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"anthropic":{let c=await q("https://api.anthropic.com/v1/messages",{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-haiku-20240307",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"gemini":{let c=await q(`https://generativelanguage.googleapis.com/v1/models?key=${a.apiKey}`,{},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"openrouter":{let c=await q("https://openrouter.ai/api/v1/auth/key",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"glm":{let c=await q("https://api.z.ai/api/anthropic/v1/messages",{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"glm-4.7",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"glm-cn":{let c=await q("https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"content-type":"application/json"},body:JSON.stringify({model:"glm-4.7",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"minimax":case"minimax-cn":{let c=await q({minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages"}[a.provider],{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"minimax-m2",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"kimi":{let c=await q("https://api.kimi.com/coding/v1/messages",{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"kimi-latest",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"alicode":case"alicode-intl":case"alims-intl":{let c="alicode-intl"===a.provider?"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions":"alims-intl"===a.provider?"https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions":"https://coding.dashscope.aliyuncs.com/v1/chat/completions",d=await q(c,{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"content-type":"application/json"},body:JSON.stringify({model:(0,i.fZ)(a.provider),max_tokens:1,messages:[{role:"user",content:"test"}]})},b),e=401!==d.status&&403!==d.status;return{valid:e,error:e?null:"Invalid API key"}}case"volcengine-ark":case"byteplus":{let c=await q(h.X3[a.provider],{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"content-type":"application/json"},body:JSON.stringify({model:(0,i.fZ)(a.provider),max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"deepseek":{let c=await q("https://api.deepseek.com/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"groq":{let c=await q("https://api.groq.com/openai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"mistral":{let c=await q("https://api.mistral.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"xai":{let c=await q("https://api.x.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"nvidia":{let c=await q("https://integrate.api.nvidia.com/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"perplexity":{let c=await q("https://api.perplexity.ai/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"together":{let c=await q("https://api.together.xyz/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"fireworks":{let c=await q("https://api.fireworks.ai/inference/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"cerebras":{let c=await q("https://api.cerebras.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"cohere":{let c=await q("https://api.cohere.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"nebius":{let c=await q("https://api.studio.nebius.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"siliconflow":{let c=await q("https://api.siliconflow.cn/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"hyperbolic":{let c=await q("https://api.hyperbolic.xyz/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"ollama":{let b=await fetch("https://ollama.com/api/tags",{headers:{Authorization:`Bearer ${a.apiKey}`}});return{valid:b.ok,error:b.ok?null:"Invalid API key"}}case"ollama-local":{let b=(0,j.Ak)(a),c=await fetch(`${b}/api/tags`);return{valid:c.ok,error:c.ok?null:`Ollama not reachable at ${b}`}}case"deepgram":{let c=await q("https://api.deepgram.com/v1/projects",{headers:{Authorization:`Token ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"assemblyai":{let c=await q("https://api.assemblyai.com/v1/account",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"nanobanana":{let c=await q("https://api.nanobananaapi.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"fal-ai":{let c=await q("https://api.fal.ai/v1/models?limit=1",{headers:{Authorization:`Key ${a.apiKey}`}},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"chutes":{let c=await q("https://llm.chutes.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"grok-web":{let c=a.apiKey.startsWith("sso=")?a.apiKey.slice(4):a.apiKey,d=a=>Array.from(crypto.getRandomValues(new Uint8Array(a)),a=>a.toString(16).padStart(2,"0")).join(""),e=Buffer.from("e:TypeError: Cannot read properties of null (reading 'children')").toString("base64"),f=await q("https://grok.com/rest/app-chat/conversations/new",{method:"POST",headers:{Accept:"*/*","Content-Type":"application/json",Cookie:`sso=${c}`,Origin:"https://grok.com",Referer:"https://grok.com/","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36","x-statsig-id":e,"x-xai-request-id":crypto.randomUUID(),traceparent:`00-${d(16)}-${d(8)}-00`},body:JSON.stringify({temporary:!0,modelName:"grok-4",message:"ping",fileAttachments:[],imageAttachments:[],disableSearch:!1,enableImageGeneration:!1,sendFinalMetadata:!0})},b),g=401!==f.status&&403!==f.status;return{valid:g,error:g?null:"Invalid SSO cookie"}}case"perplexity-web":{let c=a.apiKey;c.startsWith("__Secure-next-auth.session-token=")&&(c=c.slice(33));let d=await q("https://www.perplexity.ai/api/auth/session",{method:"GET",headers:{"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",Cookie:`__Secure-next-auth.session-token=${c}`}},b);if(!d.ok)return{valid:!1,error:"Invalid session cookie"};let e=await d.json().catch(()=>null),f=!!(e&&e.user);return{valid:f,error:f?null:"Session expired — re-paste cookie"}}default:return{valid:!1,error:"Provider test not supported"}}}catch(a){return{valid:!1,error:a.message}}}async function s(a){let b,c=await (0,d.getProviderConnectionById)(a);if(!c)return{valid:!1,error:"Connection not found",latencyMs:0,testedAt:new Date().toISOString()};let g=await (0,e.B)(c.providerSpecificData||{});if(g.connectionProxyEnabled&&g.connectionProxyUrl&&!g.vercelRelayUrl){let b=await (0,f.C)({proxyUrl:g.connectionProxyUrl});if(!b.ok){let c=b.error||`Proxy test failed with status ${b.status}`;return await (0,d.updateProviderConnection)(a,{testStatus:"error",lastError:c,lastErrorAt:new Date().toISOString()}),{valid:!1,error:c,latencyMs:0,testedAt:new Date().toISOString()}}}let h=Date.now();b="apikey"===c.authType||"cookie"===c.authType?await r(c,g):await p(c,g);let i=Date.now()-h,j={testStatus:b.valid?"active":"error",lastError:b.valid?null:b.error,lastErrorAt:b.valid?null:new Date().toISOString()};return b.refreshed&&b.newTokens&&(j.accessToken=b.newTokens.accessToken,b.newTokens.refreshToken&&(j.refreshToken=b.newTokens.refreshToken),b.newTokens.expiresIn&&(j.expiresAt=new Date(Date.now()+1e3*b.newTokens.expiresIn).toISOString())),await (0,d.updateProviderConnection)(a,j),{valid:b.valid,error:b.error,latencyMs:i,testedAt:new Date().toISOString()}}},74926:(a,b,c)=>{c.d(b,{C:()=>f});var d=c(47774);function e(a){return null==a?"":String(a).trim()}async function f({proxyUrl:a,testUrl:b,timeoutMs:c}={}){let g,h=e(a);if(!h)return{ok:!1,status:400,error:"proxyUrl is required"};let i=e(b)||"https://google.com/",j=Number(c),k=Number.isFinite(j)&&j>0?Math.min(j,3e4):8e3;try{try{g=new d.ProxyAgent({uri:h})}catch(a){return{ok:!1,status:400,error:`Invalid proxy URL: ${a?.message||String(a)}`}}let a=new AbortController,b=Date.now(),c=setTimeout(()=>a.abort(),k);try{let c=await (0,d.hd)(i,{method:"HEAD",dispatcher:g,signal:a.signal,headers:{"User-Agent":"Bluerouter"}});return{ok:c.ok,status:c.status,statusText:c.statusText,url:i,elapsedMs:Date.now()-b}}catch(b){let a=b?.name==="AbortError"?"Proxy test timed out":function(a){if(!a)return"Unknown error";let b=a?.message||String(a),c=a?.cause?.code||a?.code,d=a?.cause?.message;return d&&d!==b?c?`${b}: ${d} (${c})`:`${b}: ${d}`:c&&!b.includes(c)?`${b} (${c})`:b}(b);return{ok:!1,status:500,error:a}}finally{clearTimeout(c)}}finally{try{await g?.close?.()}catch{}}}},92990:(a,b,c)=>{c.d(b,{DI:()=>g,Hp:()=>i,LT:()=>h,MZ:()=>r,Nl:()=>u,Nu:()=>n,OV:()=>f,Tx:()=>o,WN:()=>p,Ww:()=>v,YT:()=>l,ZL:()=>k,cD:()=>m,f7:()=>t,hF:()=>j,lB:()=>s,t:()=>q});var d=c(21820);function e(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let f={clientId:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",authorizeUrl:"https://claude.ai/oauth/authorize",tokenUrl:"https://api.anthropic.com/v1/oauth/token",scopes:["org:create_api_key","user:profile","user:inference"],codeChallengeMethod:"S256"},g={clientId:"app_EMoamEEZ73f0CkXaXp7hrann",authorizeUrl:"https://auth.openai.com/oauth/authorize",tokenUrl:"https://auth.openai.com/oauth/token",revocationUrl:"https://auth.openai.com/api/accounts/oauth/revoke",scope:"openid profile email offline_access",codeChallengeMethod:"S256",extraParams:{id_token_add_organizations:"true",codex_cli_simplified_flow:"true",originator:"codex_cli_rs"}},h={clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile"]},i={clientId:"f0304373b74a44d2b584a3fb70ca9e56",deviceCodeUrl:"https://chat.qwen.ai/api/v1/oauth2/device/code",tokenUrl:"https://chat.qwen.ai/api/v1/oauth2/token",scope:"openid profile email model.completion",codeChallengeMethod:"S256"},j={apiBaseUrl:"https://api2.qoder.sh",deviceTokenUrl:"https://api2.qoder.sh/api/v1/deviceToken/poll",deviceRefreshUrl:"https://api2.qoder.sh/api/v1/deviceToken/refresh",refreshUrl:"https://api2.qoder.sh/api/v3/user/refresh_token",userInfoUrl:"https://api2.qoder.sh/api/v1/userinfo",statusUrl:"https://api2.qoder.sh/api/v3/user/status",loginUrl:"https://qoder.com/login"},k={clientId:"10009311001",clientSecret:"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",authorizeUrl:"https://iflow.cn/oauth",tokenUrl:"https://iflow.cn/oauth/token",userInfoUrl:"https://iflow.cn/api/oauth/getUserInfo",extraParams:{loginMethod:"phone",type:"phone"}},l={clientId:"1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",revocationUrl:"https://oauth2.googleapis.com/revoke",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/cclog","https://www.googleapis.com/auth/experimentsandconfigs"],apiEndpoint:"https://cloudcode-pa.googleapis.com",apiVersion:"v1internal",loadCodeAssistEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUserEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser",loadCodeAssistUserAgent:"google-api-nodejs-client/9.15.1",loadCodeAssistApiClient:"google-cloud-sdk vscode_cloudshelleditor/0.1",loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:e(),pluginType:2})};function m(){return{ideType:9,platform:e(),pluginType:2}}let n={clientId:"Iv1.b507a08c87ecfe98",deviceCodeUrl:"https://github.com/login/device/code",tokenUrl:"https://github.com/login/oauth/access_token",userInfoUrl:"https://api.github.com/user",scopes:"read:user",apiVersion:"2022-11-28",copilotTokenUrl:"https://api.github.com/copilot_internal/v2/token",userAgent:"GitHubCopilotChat/0.26.7",editorVersion:"vscode/1.85.0",editorPluginVersion:"copilot-chat/0.26.7"},o={ssoOidcEndpoint:"https://oidc.us-east-1.amazonaws.com",registerClientUrl:"https://oidc.us-east-1.amazonaws.com/client/register",deviceAuthUrl:"https://oidc.us-east-1.amazonaws.com/device_authorization",tokenUrl:"https://oidc.us-east-1.amazonaws.com/token",startUrl:"https://view.awsapps.com/start",clientName:"kiro-oauth-client",clientType:"public",scopes:["codewhisperer:completions","codewhisperer:analysis","codewhisperer:conversations"],grantTypes:["urn:ietf:params:oauth:grant-type:device_code","refresh_token"],issuerUrl:"https://identitycenter.amazonaws.com/ssoins-722374e8c3c8e6c6",socialAuthEndpoint:"https://prod.us-east-1.auth.desktop.kiro.dev",socialLoginUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/login",socialTokenUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/token",socialRefreshUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",authMethods:["builder-id","idc","google","github","import"]},p={apiEndpoint:"https://api2.cursor.sh",chatEndpoint:"/aiserver.v1.ChatService/StreamUnifiedChatWithTools",modelsEndpoint:"/aiserver.v1.AiService/GetDefaultModelNudgeData",api3Endpoint:"https://api3.cursor.sh",agentEndpoint:"https://agent.api5.cursor.sh",agentNonPrivacyEndpoint:"https://agentn.api5.cursor.sh",clientVersion:"3.1.0",clientType:"ide",tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"},dbKeys:{accessToken:"cursorAuth/accessToken",machineId:"storage.serviceMachineId"}},q={clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||"17e5f671-d194-4dfb-9706-5516cb48c098",deviceCodeUrl:"https://auth.kimi.com/api/oauth/device_authorization",tokenUrl:"https://auth.kimi.com/api/oauth/token"},r={apiBaseUrl:"https://api.kilo.ai",initiateUrl:"https://api.kilo.ai/api/device-auth/codes",pollUrlBase:"https://api.kilo.ai/api/device-auth/codes"},s={appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",authorizeUrl:"https://api.cline.bot/api/v1/auth/authorize",tokenExchangeUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},t={defaultBaseUrl:"https://gitlab.com",authorizeUrlPath:"/oauth/authorize",tokenUrlPath:"/oauth/token",userInfoUrlPath:"/api/v4/user",scope:"api read_user",codeChallengeMethod:"S256"},u={baseUrl:"https://copilot.tencent.com",stateUrl:"https://copilot.tencent.com/v2/plugin/auth/state",tokenUrl:"https://copilot.tencent.com/v2/plugin/auth/token",refreshUrl:"https://copilot.tencent.com/v2/plugin/auth/token/refresh",userAgent:"CLI/2.63.2 CodeBuddy/2.63.2",platform:"CLI",pollInterval:5e3},v=3e5}};
|
|
1
|
+
"use strict";exports.id=6811,exports.ids=[6811],exports.modules={15626:(a,b,c)=>{c.d(b,{w$:()=>e});let d=c(39006).rE||"0.0.0";function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.startsWith("workos:")?b:`workos:${b}`:""}(a))?`Bearer ${c}`:"",g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`Bluerouter/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"bluerouter","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return f&&(g.Authorization=f),g}},30869:(a,b,c)=>{c.d(b,{UY:()=>h,X3:()=>i,eh:()=>f.eh,fg:()=>e.fg,h0:()=>g});var d=c(39006),e=c(75681),f=c(81329);d.rE;let g={npmPackageName:"@jheavenknows/bluerouter",installCmd:"npm i -g @jheavenknows/bluerouter",installCmdLatest:"npm install -g @jheavenknows/bluerouter@latest",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20128},h={maxLines:200,pollIntervalMs:1e3},i={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","alims-intl":"https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},39006:a=>{a.exports={rE:"5.4.14"}},66811:(a,b,c)=>{c.d(b,{F:()=>s});var d=c(89718),e=c(39326),f=c(74926),g=c(75681),h=c(30869),i=c(44404),j=c(35024),k=c(92990),l=c(15626);let m={claude:{checkExpiry:!0,refreshable:!0},codex:{url:"https://chatgpt.com/backend-api/codex/responses",method:"POST",authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:{"Content-Type":"application/json",originator:"codex-cli","User-Agent":"codex-cli/1.0.18 (macOS; arm64)"},body:JSON.stringify({model:"gpt-5.3-codex",input:[],stream:!1,store:!1}),acceptStatuses:[400],refreshable:!0},"gemini-cli":{url:"https://www.googleapis.com/oauth2/v1/userinfo?alt=json",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",refreshable:!0},antigravity:{url:"https://www.googleapis.com/oauth2/v1/userinfo?alt=json",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",refreshable:!0},github:{url:"https://api.github.com/user",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:{"User-Agent":"Bluerouter",Accept:"application/vnd.github+json"}},iflow:{buildUrl:a=>`https://iflow.cn/api/oauth/getUserInfo?accessToken=${encodeURIComponent(a)}`,method:"GET",noAuth:!0},qwen:{checkExpiry:!0,refreshable:!0},kiro:{checkExpiry:!0,refreshable:!0},"kimi-coding":{checkExpiry:!0,refreshable:!1},cursor:{tokenExists:!0},kilocode:{url:`${k.MZ.apiBaseUrl}/api/profile`,method:"GET",authHeader:"Authorization",authPrefix:"Bearer "},cline:{refreshable:!0},gitlab:{url:"https://gitlab.com/api/v4/user",method:"GET",authHeader:"Authorization",authPrefix:"Bearer "},codebuddy:{tokenExists:!0}};async function n(a){return await fetch("https://api.cline.bot/api/v1/users/me",{method:"GET",headers:(0,l.w$)(a,{Accept:"application/json"})})}async function o(a){let b=a.provider,c=a.refreshToken;if(!c)return null;try{if("gemini-cli"===b||"antigravity"===b){let a="gemini-cli"===b?k.LT:k.YT,d=await fetch("https://oauth2.googleapis.com/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:a.clientId,client_secret:a.clientSecret,grant_type:"refresh_token",refresh_token:c})});if(!d.ok)return null;let e=await d.json();return{accessToken:e.access_token,expiresIn:e.expires_in,refreshToken:e.refresh_token||c}}if("codex"===b){let a=await fetch(k.DI.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"refresh_token",client_id:k.DI.clientId,refresh_token:c})});if(!a.ok)return null;let b=await a.json();return{accessToken:b.access_token,expiresIn:b.expires_in,refreshToken:b.refresh_token||c}}if("claude"===b){let a=await fetch(k.OV.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"refresh_token",refresh_token:c,client_id:k.OV.clientId})});if(!a.ok)return null;let b=await a.json();return{accessToken:b.access_token,expiresIn:b.expires_in,refreshToken:b.refresh_token||c}}if("kiro"===b){let b=a.providerSpecificData||{},d=b.clientId||a.clientId,e=b.clientSecret||a.clientSecret,f=b.region||a.region;if(d&&e){let a=`https://oidc.${f||"us-east-1"}.amazonaws.com/token`,b=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:d,clientSecret:e,refreshToken:c,grantType:"refresh_token"})});if(!b.ok)return null;let g=await b.json();return{accessToken:g.accessToken,expiresIn:g.expiresIn||3600,refreshToken:g.refreshToken||c}}let g=await fetch(k.Tx.socialRefreshUrl,{method:"POST",headers:{"Content-Type":"application/json","User-Agent":"kiro-cli/1.0.0"},body:JSON.stringify({refreshToken:c})});if(!g.ok)return null;let h=await g.json();return{accessToken:h.accessToken,expiresIn:h.expiresIn||3600,refreshToken:h.refreshToken||c}}if("qwen"===b){let a=await fetch(k.Hp.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:c,client_id:k.Hp.clientId})});if(!a.ok)return null;let b=await a.json();return{accessToken:b.access_token,expiresIn:b.expires_in,refreshToken:b.refresh_token||c}}if("cline"===b){let a=await fetch(k.lB.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({refreshToken:c,grantType:"refresh_token",clientType:"extension"})});if(!a.ok)return null;let b=await a.json(),d=b?.data||b,e=d?.expiresAt?Math.max(1,Math.floor((new Date(d.expiresAt).getTime()-Date.now())/1e3)):3600;return{accessToken:d?.accessToken,expiresIn:e,refreshToken:d?.refreshToken||c}}return null}catch(a){return console.log(`Error refreshing ${b} token:`,a.message),null}}async function p(a,b=null){var c;let d=m[a.provider];if(!d)return{valid:!1,error:"Provider test not supported",refreshed:!1};if(!a.accessToken)return{valid:!1,error:"No access token",refreshed:!1};if(d.tokenExists)return{valid:!0,error:null,refreshed:!1,newTokens:null};let e=a.accessToken,f=!1,g=null,h=!!(c=a).expiresAt&&new Date(c.expiresAt).getTime()<=Date.now()+3e5;if(d.refreshable&&h&&a.refreshToken){let b=await o(a);if(!b)return{valid:!1,error:"Token expired and refresh failed",refreshed:!1};e=b.accessToken,f=!0,g=b}if(d.checkExpiry)return f?{valid:!0,error:null,refreshed:f,newTokens:g}:h?{valid:!1,error:"Token expired",refreshed:!1}:{valid:!0,error:null,refreshed:!1,newTokens:null};if("cline"===a.provider){let b=async a=>{let b=await n(a);return b.ok?{valid:!0,error:null,refreshed:f,newTokens:g}:401===b.status?{valid:!1,error:"Token invalid or revoked",refreshed:f}:403===b.status?{valid:!1,error:"Access denied",refreshed:f}:{valid:!1,error:`API returned ${b.status}`,refreshed:f}},c=await b(e);if(c.valid||"Token invalid or revoked"!==c.error||!a.refreshToken)return c;let d=await o(a);return d?.accessToken?(f=!0,g=d,e=d.accessToken,await b(e)):{valid:!1,error:"Token invalid or revoked",refreshed:!1}}try{let c=d.buildUrl?d.buildUrl(e):d.url,h=d.noAuth?{...d.extraHeaders}:{[d.authHeader]:`${d.authPrefix}${e}`,...d.extraHeaders},i={method:d.method,headers:h};d.body&&(i.body=d.body);let j=await q(c,i,b);if(j.ok||d.acceptStatuses&&d.acceptStatuses.includes(j.status))return{valid:!0,error:null,refreshed:f,newTokens:g};if(401===j.status&&d.refreshable&&!f&&a.refreshToken){let e=await o(a);if(e){let a=d.buildUrl?d.buildUrl(e.accessToken):c,f=d.noAuth?{...d.extraHeaders}:{[d.authHeader]:`${d.authPrefix}${e.accessToken}`,...d.extraHeaders},g={method:d.method,headers:f};d.body&&(g.body=d.body);let h=await q(a,g,b);if(h.ok||d.acceptStatuses&&d.acceptStatuses.includes(h.status))return{valid:!0,error:null,refreshed:!0,newTokens:e}}return{valid:!1,error:"Token invalid or revoked",refreshed:!1}}if(401===j.status)return{valid:!1,error:"Token invalid or revoked",refreshed:f};if(403===j.status)return{valid:!1,error:"Access denied",refreshed:f};return{valid:!1,error:`API returned ${j.status}`,refreshed:f}}catch(a){return{valid:!1,error:a.message,refreshed:f}}}async function q(a,b={},d=null){if(d?.vercelRelayUrl){let{proxyAwareFetch:e}=await c.e(9609).then(c.bind(c,39609));return e(a,b,{vercelRelayUrl:d.vercelRelayUrl})}if(!d?.connectionProxyEnabled||!d?.connectionProxyUrl)return fetch(a,b);let{proxyAwareFetch:e}=await c.e(9609).then(c.bind(c,39609));return e(a,b,{connectionProxyEnabled:!0,connectionProxyUrl:d.connectionProxyUrl,connectionNoProxy:d.connectionNoProxy||""})}async function r(a,b=null){if((0,g.mq)(a.provider)){let c=a.providerSpecificData?.baseUrl;if(!c)return{valid:!1,error:"Missing base URL"};try{let d=await q(`${c.replace(/\/$/,"")}/models`,{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:d.ok,error:d.ok?null:"Invalid API key or base URL"}}catch(a){return{valid:!1,error:a.message}}}if((0,g.gb)(a.provider)){let c=a.providerSpecificData?.baseUrl;if(!c)return{valid:!1,error:"Missing base URL"};try{(c=c.replace(/\/$/,"")).endsWith("/messages")&&(c=c.slice(0,-9));let d=await q(`${c}/models`,{headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01",Authorization:`Bearer ${a.apiKey}`}},b);return{valid:d.ok,error:d.ok?null:"Invalid API key or base URL"}}catch(a){return{valid:!1,error:a.message}}}try{switch(a.provider){case"cloudflare-ai":{let c=(a.providerSpecificData||{}).accountId;if(!c)return{valid:!1,error:"Missing Account ID"};let d=`https://api.cloudflare.com/client/v4/accounts/${c}/ai/v1/chat/completions`,e=await q(d,{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"Content-Type":"application/json"},body:JSON.stringify({model:(0,i.fZ)("cloudflare-ai"),messages:[{role:"user",content:"test"}],max_tokens:1})},b),f=401!==e.status&&403!==e.status&&404!==e.status;return{valid:f,error:f?null:"Invalid API token or Account ID"}}case"azure":{let c=a.providerSpecificData||{},d=(c.azureEndpoint||"").replace(/\/$/,""),e=c.deployment||"gpt-4",f=c.apiVersion||"2024-10-01-preview",g=`${d}/openai/deployments/${e}/chat/completions?api-version=${f}`,h={"api-key":a.apiKey,"Content-Type":"application/json"};c.organization&&(h["OpenAI-Organization"]=c.organization);let i=await q(g,{method:"POST",headers:h,body:JSON.stringify({messages:[{role:"user",content:"test"}],max_completion_tokens:1})},b),j=401!==i.status&&403!==i.status;return{valid:j,error:j?null:"Invalid API key or Azure configuration"}}case"openai":{let c=await q("https://api.openai.com/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"vercel-ai-gateway":{let c=await q("https://ai-gateway.vercel.sh/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"anthropic":{let c=await q("https://api.anthropic.com/v1/messages",{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-haiku-20240307",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"gemini":{let c=await q(`https://generativelanguage.googleapis.com/v1/models?key=${a.apiKey}`,{},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"openrouter":{let c=await q("https://openrouter.ai/api/v1/auth/key",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"glm":{let c=await q("https://api.z.ai/api/anthropic/v1/messages",{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"glm-4.7",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"glm-cn":{let c=await q("https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"content-type":"application/json"},body:JSON.stringify({model:"glm-4.7",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"minimax":case"minimax-cn":{let c=await q({minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages"}[a.provider],{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"minimax-m2",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"kimi":{let c=await q("https://api.kimi.com/coding/v1/messages",{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"kimi-latest",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"alicode":case"alicode-intl":case"alims-intl":{let c="alicode-intl"===a.provider?"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions":"alims-intl"===a.provider?"https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions":"https://coding.dashscope.aliyuncs.com/v1/chat/completions",d=await q(c,{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"content-type":"application/json"},body:JSON.stringify({model:(0,i.fZ)(a.provider),max_tokens:1,messages:[{role:"user",content:"test"}]})},b),e=401!==d.status&&403!==d.status;return{valid:e,error:e?null:"Invalid API key"}}case"volcengine-ark":case"byteplus":{let c=await q(h.X3[a.provider],{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"content-type":"application/json"},body:JSON.stringify({model:(0,i.fZ)(a.provider),max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"deepseek":{let c=await q("https://api.deepseek.com/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"groq":{let c=await q("https://api.groq.com/openai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"mistral":{let c=await q("https://api.mistral.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"xai":{let c=await q("https://api.x.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"nvidia":{let c=await q("https://integrate.api.nvidia.com/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"perplexity":{let c=await q("https://api.perplexity.ai/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"together":{let c=await q("https://api.together.xyz/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"fireworks":{let c=await q("https://api.fireworks.ai/inference/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"cerebras":{let c=await q("https://api.cerebras.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"cohere":{let c=await q("https://api.cohere.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"nebius":{let c=await q("https://api.studio.nebius.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"siliconflow":{let c=await q("https://api.siliconflow.cn/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"hyperbolic":{let c=await q("https://api.hyperbolic.xyz/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"ollama":{let b=await fetch("https://ollama.com/api/tags",{headers:{Authorization:`Bearer ${a.apiKey}`}});return{valid:b.ok,error:b.ok?null:"Invalid API key"}}case"ollama-local":{let b=(0,j.Ak)(a),c=await fetch(`${b}/api/tags`);return{valid:c.ok,error:c.ok?null:`Ollama not reachable at ${b}`}}case"deepgram":{let c=await q("https://api.deepgram.com/v1/projects",{headers:{Authorization:`Token ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"assemblyai":{let c=await q("https://api.assemblyai.com/v1/account",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"nanobanana":{let c=await q("https://api.nanobananaapi.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"fal-ai":{let c=await q("https://api.fal.ai/v1/models?limit=1",{headers:{Authorization:`Key ${a.apiKey}`}},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"chutes":{let c=await q("https://llm.chutes.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"grok-web":{let c=a.apiKey.startsWith("sso=")?a.apiKey.slice(4):a.apiKey,d=a=>Array.from(crypto.getRandomValues(new Uint8Array(a)),a=>a.toString(16).padStart(2,"0")).join(""),e=Buffer.from("e:TypeError: Cannot read properties of null (reading 'children')").toString("base64"),f=await q("https://grok.com/rest/app-chat/conversations/new",{method:"POST",headers:{Accept:"*/*","Content-Type":"application/json",Cookie:`sso=${c}`,Origin:"https://grok.com",Referer:"https://grok.com/","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36","x-statsig-id":e,"x-xai-request-id":crypto.randomUUID(),traceparent:`00-${d(16)}-${d(8)}-00`},body:JSON.stringify({temporary:!0,modelName:"grok-4",message:"ping",fileAttachments:[],imageAttachments:[],disableSearch:!1,enableImageGeneration:!1,sendFinalMetadata:!0})},b),g=401!==f.status&&403!==f.status;return{valid:g,error:g?null:"Invalid SSO cookie"}}case"perplexity-web":{let c=a.apiKey;c.startsWith("__Secure-next-auth.session-token=")&&(c=c.slice(33));let d=await q("https://www.perplexity.ai/api/auth/session",{method:"GET",headers:{"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",Cookie:`__Secure-next-auth.session-token=${c}`}},b);if(!d.ok)return{valid:!1,error:"Invalid session cookie"};let e=await d.json().catch(()=>null),f=!!(e&&e.user);return{valid:f,error:f?null:"Session expired — re-paste cookie"}}default:return{valid:!1,error:"Provider test not supported"}}}catch(a){return{valid:!1,error:a.message}}}async function s(a){let b,c=await (0,d.getProviderConnectionById)(a);if(!c)return{valid:!1,error:"Connection not found",latencyMs:0,testedAt:new Date().toISOString()};let g=await (0,e.B)(c.providerSpecificData||{});if(g.connectionProxyEnabled&&g.connectionProxyUrl&&!g.vercelRelayUrl){let b=await (0,f.C)({proxyUrl:g.connectionProxyUrl});if(!b.ok){let c=b.error||`Proxy test failed with status ${b.status}`;return await (0,d.updateProviderConnection)(a,{testStatus:"error",lastError:c,lastErrorAt:new Date().toISOString()}),{valid:!1,error:c,latencyMs:0,testedAt:new Date().toISOString()}}}let h=Date.now();b="apikey"===c.authType||"cookie"===c.authType?await r(c,g):await p(c,g);let i=Date.now()-h,j={testStatus:b.valid?"active":"error",lastError:b.valid?null:b.error,lastErrorAt:b.valid?null:new Date().toISOString()};return b.refreshed&&b.newTokens&&(j.accessToken=b.newTokens.accessToken,b.newTokens.refreshToken&&(j.refreshToken=b.newTokens.refreshToken),b.newTokens.expiresIn&&(j.expiresAt=new Date(Date.now()+1e3*b.newTokens.expiresIn).toISOString())),await (0,d.updateProviderConnection)(a,j),{valid:b.valid,error:b.error,latencyMs:i,testedAt:new Date().toISOString()}}},74926:(a,b,c)=>{c.d(b,{C:()=>f});var d=c(47774);function e(a){return null==a?"":String(a).trim()}async function f({proxyUrl:a,testUrl:b,timeoutMs:c}={}){let g,h=e(a);if(!h)return{ok:!1,status:400,error:"proxyUrl is required"};let i=e(b)||"https://google.com/",j=Number(c),k=Number.isFinite(j)&&j>0?Math.min(j,3e4):8e3;try{try{g=new d.ProxyAgent({uri:h})}catch(a){return{ok:!1,status:400,error:`Invalid proxy URL: ${a?.message||String(a)}`}}let a=new AbortController,b=Date.now(),c=setTimeout(()=>a.abort(),k);try{let c=await (0,d.hd)(i,{method:"HEAD",dispatcher:g,signal:a.signal,headers:{"User-Agent":"Bluerouter"}});return{ok:c.ok,status:c.status,statusText:c.statusText,url:i,elapsedMs:Date.now()-b}}catch(b){let a=b?.name==="AbortError"?"Proxy test timed out":function(a){if(!a)return"Unknown error";let b=a?.message||String(a),c=a?.cause?.code||a?.code,d=a?.cause?.message;return d&&d!==b?c?`${b}: ${d} (${c})`:`${b}: ${d}`:c&&!b.includes(c)?`${b} (${c})`:b}(b);return{ok:!1,status:500,error:a}}finally{clearTimeout(c)}}finally{try{await g?.close?.()}catch{}}}},92990:(a,b,c)=>{c.d(b,{DI:()=>g,Hp:()=>i,LT:()=>h,MZ:()=>r,Nl:()=>u,Nu:()=>n,OV:()=>f,Tx:()=>o,WN:()=>p,Ww:()=>v,YT:()=>l,ZL:()=>k,cD:()=>m,f7:()=>t,hF:()=>j,lB:()=>s,t:()=>q});var d=c(21820);function e(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let f={clientId:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",authorizeUrl:"https://claude.ai/oauth/authorize",tokenUrl:"https://api.anthropic.com/v1/oauth/token",scopes:["org:create_api_key","user:profile","user:inference"],codeChallengeMethod:"S256"},g={clientId:"app_EMoamEEZ73f0CkXaXp7hrann",authorizeUrl:"https://auth.openai.com/oauth/authorize",tokenUrl:"https://auth.openai.com/oauth/token",revocationUrl:"https://auth.openai.com/api/accounts/oauth/revoke",scope:"openid profile email offline_access",codeChallengeMethod:"S256",extraParams:{id_token_add_organizations:"true",codex_cli_simplified_flow:"true",originator:"codex_cli_rs"}},h={clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile"]},i={clientId:"f0304373b74a44d2b584a3fb70ca9e56",deviceCodeUrl:"https://chat.qwen.ai/api/v1/oauth2/device/code",tokenUrl:"https://chat.qwen.ai/api/v1/oauth2/token",scope:"openid profile email model.completion",codeChallengeMethod:"S256"},j={apiBaseUrl:"https://api2.qoder.sh",deviceTokenUrl:"https://api2.qoder.sh/api/v1/deviceToken/poll",deviceRefreshUrl:"https://api2.qoder.sh/api/v1/deviceToken/refresh",refreshUrl:"https://api2.qoder.sh/api/v3/user/refresh_token",userInfoUrl:"https://api2.qoder.sh/api/v1/userinfo",statusUrl:"https://api2.qoder.sh/api/v3/user/status",loginUrl:"https://qoder.com/login"},k={clientId:"10009311001",clientSecret:"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",authorizeUrl:"https://iflow.cn/oauth",tokenUrl:"https://iflow.cn/oauth/token",userInfoUrl:"https://iflow.cn/api/oauth/getUserInfo",extraParams:{loginMethod:"phone",type:"phone"}},l={clientId:"1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",revocationUrl:"https://oauth2.googleapis.com/revoke",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/cclog","https://www.googleapis.com/auth/experimentsandconfigs"],apiEndpoint:"https://cloudcode-pa.googleapis.com",apiVersion:"v1internal",loadCodeAssistEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUserEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser",loadCodeAssistUserAgent:"google-api-nodejs-client/9.15.1",loadCodeAssistApiClient:"google-cloud-sdk vscode_cloudshelleditor/0.1",loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:e(),pluginType:2})};function m(){return{ideType:9,platform:e(),pluginType:2}}let n={clientId:"Iv1.b507a08c87ecfe98",deviceCodeUrl:"https://github.com/login/device/code",tokenUrl:"https://github.com/login/oauth/access_token",userInfoUrl:"https://api.github.com/user",scopes:"read:user",apiVersion:"2022-11-28",copilotTokenUrl:"https://api.github.com/copilot_internal/v2/token",userAgent:"GitHubCopilotChat/0.26.7",editorVersion:"vscode/1.85.0",editorPluginVersion:"copilot-chat/0.26.7"},o={ssoOidcEndpoint:"https://oidc.us-east-1.amazonaws.com",registerClientUrl:"https://oidc.us-east-1.amazonaws.com/client/register",deviceAuthUrl:"https://oidc.us-east-1.amazonaws.com/device_authorization",tokenUrl:"https://oidc.us-east-1.amazonaws.com/token",startUrl:"https://view.awsapps.com/start",clientName:"kiro-oauth-client",clientType:"public",scopes:["codewhisperer:completions","codewhisperer:analysis","codewhisperer:conversations"],grantTypes:["urn:ietf:params:oauth:grant-type:device_code","refresh_token"],issuerUrl:"https://identitycenter.amazonaws.com/ssoins-722374e8c3c8e6c6",socialAuthEndpoint:"https://prod.us-east-1.auth.desktop.kiro.dev",socialLoginUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/login",socialTokenUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/token",socialRefreshUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",authMethods:["builder-id","idc","google","github","import"]},p={apiEndpoint:"https://api2.cursor.sh",chatEndpoint:"/aiserver.v1.ChatService/StreamUnifiedChatWithTools",modelsEndpoint:"/aiserver.v1.AiService/GetDefaultModelNudgeData",api3Endpoint:"https://api3.cursor.sh",agentEndpoint:"https://agent.api5.cursor.sh",agentNonPrivacyEndpoint:"https://agentn.api5.cursor.sh",clientVersion:"3.1.0",clientType:"ide",tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"},dbKeys:{accessToken:"cursorAuth/accessToken",machineId:"storage.serviceMachineId"}},q={clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||"17e5f671-d194-4dfb-9706-5516cb48c098",deviceCodeUrl:"https://auth.kimi.com/api/oauth/device_authorization",tokenUrl:"https://auth.kimi.com/api/oauth/token"},r={apiBaseUrl:"https://api.kilo.ai",initiateUrl:"https://api.kilo.ai/api/device-auth/codes",pollUrlBase:"https://api.kilo.ai/api/device-auth/codes"},s={appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",authorizeUrl:"https://api.cline.bot/api/v1/auth/authorize",tokenExchangeUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},t={defaultBaseUrl:"https://gitlab.com",authorizeUrlPath:"/oauth/authorize",tokenUrlPath:"/oauth/token",userInfoUrlPath:"/api/v4/user",scope:"api read_user",codeChallengeMethod:"S256"},u={baseUrl:"https://copilot.tencent.com",stateUrl:"https://copilot.tencent.com/v2/plugin/auth/state",tokenUrl:"https://copilot.tencent.com/v2/plugin/auth/token",refreshUrl:"https://copilot.tencent.com/v2/plugin/auth/token/refresh",userAgent:"CLI/2.63.2 CodeBuddy/2.63.2",platform:"CLI",pollInterval:5e3},v=3e5}};
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
INDEX idx_prompt_log_payloads_created_at (created_at),
|
|
452
452
|
INDEX idx_prompt_log_payloads_last_seen_at (last_seen_at)
|
|
453
453
|
) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
454
|
-
`),await y(a,b);let c=await x(a,b);return{ok:!0,type:"mysql",message:"MySQL prompt log schema is ready",usageOwnerTimeIndex:c}}finally{await a.close()}}throw Error(`Unsupported prompt log database type: ${b.type}`)}async function B(a=null){let b=n(a||await o());if(z(b),"postgres"===b.type){let a=await r(b);try{return await a.exec("SELECT 1;"),{ok:!0,type:"postgres",message:"PostgreSQL connection OK"}}finally{await a.close()}}if("mysql"===b.type){let a=await s(b,!0);try{await a.exec("SELECT 1;");let c=await x(a,b);return{ok:!0,type:"mysql",message:c.created?"MySQL connection OK; usage owner index created":"MySQL connection OK",usageOwnerTimeIndex:c}}finally{await a.close()}}throw Error(`Unsupported prompt log database type: ${b.type}`)}},42636:(a,b,c)=>{c.d(b,{P7:()=>k,t9:()=>i,tW:()=>j});let d="local",e="cloud",f="unknown",g=["openai-compatible-","anthropic-compatible-"];function h(a){return String(a??"").trim()}function i(a,b=f){let c=h(a).toLowerCase();return c===d?d:c===e?e:c===f?f:b}function j(a,b=f){let c,g=h(a);if(!g)return b;try{c=new URL(g.includes("://")?g:`http://${g}`)}catch{return b}let i=h(c.hostname).replace(/^\[|\]$/g,"").toLowerCase();return i?"localhost"===i||"::1"===i||"0.0.0.0"===i||i.endsWith(".localhost")||i.endsWith(".local")||function(a){let b=a.split(".").map(a=>Number(a));if(4!==b.length||b.some(a=>!Number.isInteger(a)||a<0||a>255))return!1;let[c,d]=b;return 10===c||127===c||169===c&&254===d||172===c&&!!(d>=16)&&!!(d<=31)||192===c&&168===d}(i)?d:e:b}function k({snapshot:a,configured:b,providerId:c,endpoint:d,baseUrl:l}={}){let m,n=i(a,"");if(n)return n;let o=i(b,"");if(o)return o;let p=j(l||d,"");return p?p:h(c)&&(m=h(c).toLowerCase(),!g.some(a=>m.startsWith(a)))?e:f}},43075:(a,b,c)=>{c.d(b,{S8:()=>V,bI:()=>h.bI,Iq:()=>E.Iq,jd:()=>J,iE:()=>h.iE,i0:()=>u,ZO:()=>B,Lh:()=>E.Lh,CG:()=>L,uL:()=>W,fv:()=>S,fK:()=>h.fK,op:()=>h.op,Pc:()=>w,Yd:()=>D,zP:()=>al,yg:()=>E.yg,mY:()=>E.getApiKeyByKey,PX:()=>E.PX,z9:()=>g.z9,L:()=>H,Dj:()=>I,Uv:()=>G,uv:()=>U,c:()=>X,OM:()=>Q,nv:()=>h.nv,r4:()=>Z.getPricing,PS:()=>Z.getPricingForModel,Mc:()=>h.Mc,P:()=>h.getProviderConnections,Qu:()=>t,Fh:()=>s,hr:()=>A,ui:()=>z,mt:()=>g.getSettings,K1:()=>am,MI:()=>E.MI,Nx:()=>g.Nx,QG:()=>h.QG,VT:()=>Z.resetAllPricing,yF:()=>Z.resetPricing,L9:()=>Y,o5:()=>R,XW:()=>E.XW,oG:()=>K,KJ:()=>Z.updatePricing,rj:()=>h.rj,ho:()=>v,Q_:()=>C,Xx:()=>g.Xx,ek:()=>E.ek});var d=c(24081),e=c(50743),f=c(14938),g=c(45874),h=c(76087),i=c(
|
|
454
|
+
`),await y(a,b);let c=await x(a,b);return{ok:!0,type:"mysql",message:"MySQL prompt log schema is ready",usageOwnerTimeIndex:c}}finally{await a.close()}}throw Error(`Unsupported prompt log database type: ${b.type}`)}async function B(a=null){let b=n(a||await o());if(z(b),"postgres"===b.type){let a=await r(b);try{return await a.exec("SELECT 1;"),{ok:!0,type:"postgres",message:"PostgreSQL connection OK"}}finally{await a.close()}}if("mysql"===b.type){let a=await s(b,!0);try{await a.exec("SELECT 1;");let c=await x(a,b);return{ok:!0,type:"mysql",message:c.created?"MySQL connection OK; usage owner index created":"MySQL connection OK",usageOwnerTimeIndex:c}}finally{await a.close()}}throw Error(`Unsupported prompt log database type: ${b.type}`)}},42636:(a,b,c)=>{c.d(b,{P7:()=>k,t9:()=>i,tW:()=>j});let d="local",e="cloud",f="unknown",g=["openai-compatible-","anthropic-compatible-"];function h(a){return String(a??"").trim()}function i(a,b=f){let c=h(a).toLowerCase();return c===d?d:c===e?e:c===f?f:b}function j(a,b=f){let c,g=h(a);if(!g)return b;try{c=new URL(g.includes("://")?g:`http://${g}`)}catch{return b}let i=h(c.hostname).replace(/^\[|\]$/g,"").toLowerCase();return i?"localhost"===i||"::1"===i||"0.0.0.0"===i||i.endsWith(".localhost")||i.endsWith(".local")||function(a){let b=a.split(".").map(a=>Number(a));if(4!==b.length||b.some(a=>!Number.isInteger(a)||a<0||a>255))return!1;let[c,d]=b;return 10===c||127===c||169===c&&254===d||172===c&&!!(d>=16)&&!!(d<=31)||192===c&&168===d}(i)?d:e:b}function k({snapshot:a,configured:b,providerId:c,endpoint:d,baseUrl:l}={}){let m,n=i(a,"");if(n)return n;let o=i(b,"");if(o)return o;let p=j(l||d,"");return p?p:h(c)&&(m=h(c).toLowerCase(),!g.some(a=>m.startsWith(a)))?e:f}},43075:(a,b,c)=>{c.d(b,{S8:()=>V,bI:()=>h.bI,Iq:()=>E.Iq,jd:()=>J,iE:()=>h.iE,i0:()=>u,ZO:()=>B,Lh:()=>E.Lh,CG:()=>L,uL:()=>W,fv:()=>S,fK:()=>h.fK,op:()=>h.op,Pc:()=>w,Yd:()=>D,zP:()=>al,yg:()=>E.yg,mY:()=>E.getApiKeyByKey,PX:()=>E.PX,z9:()=>g.z9,L:()=>H,Dj:()=>I,Uv:()=>G,uv:()=>U,c:()=>X,OM:()=>Q,nv:()=>h.nv,r4:()=>Z.getPricing,PS:()=>Z.getPricingForModel,Mc:()=>h.Mc,P:()=>h.getProviderConnections,Qu:()=>t,Fh:()=>s,hr:()=>A,ui:()=>z,mt:()=>g.getSettings,K1:()=>am,MI:()=>E.MI,Nx:()=>g.Nx,QG:()=>h.QG,VT:()=>Z.resetAllPricing,yF:()=>Z.resetPricing,L9:()=>Y,o5:()=>R,XW:()=>E.XW,oG:()=>K,KJ:()=>Z.updatePricing,rj:()=>h.rj,ho:()=>v,Q_:()=>C,Xx:()=>g.Xx,ek:()=>E.ek});var d=c(24081),e=c(50743),f=c(14938),g=c(45874),h=c(76087),i=c(41579);let j=["model","modelStr","model_name","rawModel","raw_model","value","id"],k=["label","displayName"],l=["modelTagRules","modelTags","tagRules"];function m(a){return String(a||"").trim().replace(/\/+$/,"")}function n(a,b,c){if("string"!=typeof a)return a;let d=`${b}/`;return a.startsWith(d)?`${c}/${a.slice(d.length)}`:a}var o=c(42636);let p="providerDeploymentHistory";function q(a){return a?{...(0,e.q)(a.data,{}),id:a.id,type:a.type,name:a.name,createdAt:a.createdAt,updatedAt:a.updatedAt}:null}function r(a,b){let c=function(a){let{id:b,type:c,name:d,createdAt:f,updatedAt:g,...h}=a;return{id:b,type:c??null,name:d??null,data:(0,e.s)(h),createdAt:f,updatedAt:g}}(b);a.run(`INSERT INTO providerNodes(id, type, name, data, createdAt, updatedAt)
|
|
455
455
|
VALUES(?, ?, ?, ?, ?, ?)
|
|
456
456
|
ON CONFLICT(id) DO UPDATE SET
|
|
457
457
|
type=excluded.type, name=excluded.name, data=excluded.data, updatedAt=excluded.updatedAt`,[c.id,c.type,c.name,c.data,c.createdAt,c.updatedAt])}async function s(a={}){let b=await (0,d.c)(),c=[],e=[];a.type&&(c.push("type = ?"),e.push(a.type));let f=`SELECT * FROM providerNodes${c.length?` WHERE ${c.join(" AND ")}`:""}`;return b.all(f,e).map(q)}async function t(a){return q((await (0,d.c)()).get("SELECT * FROM providerNodes WHERE id = ?",[a]))}async function u(a){let b=await (0,d.c)(),c=new Date().toISOString(),{id:e,type:f,name:g,prefix:h,apiType:j,baseUrl:k,openAICompatibleRuntime:l,...m}=a,n={...m,id:e||(0,i.A)(),type:f,name:g,prefix:h,apiType:j,baseUrl:k,openAICompatibleRuntime:l,createdAt:c,updatedAt:c};return r(b,n),b.run("DELETE FROM kv WHERE scope = ? AND key = ?",[p,n.id]),n}async function v(a,b){let c=await (0,d.c)(),f=null;return c.transaction(()=>{let d=c.get("SELECT * FROM providerNodes WHERE id = ?",[a]);if(!d)return;let g=q(d),h={...g,...b,updatedAt:new Date().toISOString()};"openai-compatible"===g.type&&"string"==typeof b.prefix&&g.prefix!==h.prefix&&function(a,b,c,d){let f=m(b),g=m(c);if(!f||!g||f===g)return;for(let b of a.all("SELECT id, models FROM combos")){let c=function(a,b,c){let d=m(b),e=m(c);if(!Array.isArray(a)||!d||!e||d===e)return{value:a,changed:!1};let f=!1,g=a.map(a=>{let b=function(a,b,c){if("string"==typeof a){let d=n(a,b,c);return{value:d,changed:d!==a}}if(!a||"object"!=typeof a||Array.isArray(a))return{value:a,changed:!1};let d=!1,e={...a};for(let f of[...j,...k]){if(!Object.prototype.hasOwnProperty.call(a,f))continue;let g=n(a[f],b,c);g!==a[f]&&(e[f]=g,d=!0)}return a.provider===b&&(e.provider=c,d=!0),{value:d?e:a,changed:d}}(a,d,e);return f||=b.changed,b.value});return{value:f?g:a,changed:f}}((0,e.q)(b.models,[]),f,g);c.changed&&a.run("UPDATE combos SET models = ?, updatedAt = ? WHERE id = ?",[(0,e.s)(c.value),d,b.id])}let h=a.get("SELECT data FROM settings WHERE id = 1");if(!h)return;let i=(0,e.q)(h.data,{}),o=function(a,b,c){let d=m(b),e=m(c);if(!a||"object"!=typeof a||Array.isArray(a)||!d||!e||d===e)return{value:a,changed:!1};let f=!1,g={};for(let[b,c]of Object.entries(a)){let a=function(a,b,c){if(!a||"object"!=typeof a||Array.isArray(a))return{value:a,changed:!1};let d=!1,e={...a};if(Array.isArray(a.disabledModels)){let f=[...new Set(a.disabledModels.map(a=>n(a,b,c)))];(f.some((b,c)=>b!==a.disabledModels[c])||f.length!==a.disabledModels.length)&&(e.disabledModels=f,d=!0)}for(let f of l){if(!Object.prototype.hasOwnProperty.call(a,f))continue;let g=function(a,b,c){if(!a||"object"!=typeof a||Array.isArray(a))return{value:a,changed:!1};let d=!1,e={};for(let[g,h]of Object.entries(a)){var f;let a=n(g,b,c);d||=a!==g,e[a]=(f=e[a],void 0===f?h:Array.isArray(f)&&Array.isArray(h)?[...new Set([...f,...h])]:f)}return{value:d?e:a,changed:d}}(a[f],b,c);g.changed&&(e[f]=g.value,d=!0)}return{value:d?e:a,changed:d}}(c,d,e);g[b]=a.value,f||=a.changed}return{value:f?g:a,changed:f}}(i.comboStrategies,f,g);o.changed&&a.run("UPDATE settings SET data = ? WHERE id = 1",[(0,e.s)({...i,comboStrategies:o.value})])}(c,g.prefix,h.prefix,h.updatedAt),r(c,h),f=h}),f}async function w(a){let b=await (0,d.c)(),c=null;return b.transaction(()=>{let d=b.get("SELECT * FROM providerNodes WHERE id = ?",[a]);d&&(!function(a,b){if(!b?.id)return;let c=(0,o.P7)({configured:b.deploymentType,providerId:b.id,baseUrl:b.baseUrl});("local"===c||"cloud"===c)&&a.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES(?, ?, ?)",[p,b.id,(0,e.s)({providerId:b.id,deploymentType:c,baseUrl:b.baseUrl||"",type:b.type||"",name:b.name||"",deletedAt:new Date().toISOString()})])}(b,c=q(d)),b.run("DELETE FROM providerNodes WHERE id = ?",[a]))}),c}function x(a){return a?{...(0,e.q)(a.data,{}),id:a.id,isActive:1===a.isActive||!0===a.isActive,testStatus:a.testStatus,createdAt:a.createdAt,updatedAt:a.updatedAt}:null}function y(a,b){let c=function(a){let{id:b,isActive:c,testStatus:d,createdAt:f,updatedAt:g,...h}=a;return{id:b,isActive:+(!1!==c),testStatus:d??null,data:(0,e.s)(h),createdAt:f,updatedAt:g}}(b);a.run(`INSERT INTO proxyPools(id, isActive, testStatus, data, createdAt, updatedAt)
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
VALUES(?, ?, ?, ?, ?, ?)`,[b.id,b.name,b.kind||null,(0,e.s)(b.models||[]),b.createdAt||new Date().toISOString(),b.updatedAt||new Date().toISOString()]);for(let[b,c]of Object.entries(a.modelAliases||{}))g.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('modelAliases', ?, ?)",[b,(0,e.s)(c)]);for(let b of a.customModels||[]){let a=`${b.providerAlias}|${b.id}|${b.type||"llm"}`;g.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('customModels', ?, ?)",[a,(0,e.s)(b)])}for(let[b,c]of Object.entries(a.mitmAlias||{}))g.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('mitmAlias', ?, ?)",[b,(0,e.s)(c||{})]);for(let[b,c]of Object.entries(a.pricing||{}))g.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('pricing', ?, ?)",[b,(0,e.s)(c||{})]);if(p)for(let a of r)g.run(`INSERT OR REPLACE INTO resourceMonitorHistory(
|
|
468
468
|
serverId, sampledAt, cpuUsage, memoryUsage, diskUsage,
|
|
469
469
|
diskUsedBytes, networkRxBps, networkTxBps, gpus
|
|
470
|
-
) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)`,[a.serverId,a.sampledAt,a.cpuUsage,a.memoryUsage,a.diskUsage,a.diskUsedBytes,a.networkRxBps,a.networkTxBps,(0,e.s)(a.gpus)])})}catch(a){throw s&&await (0,f.x8)(s).catch(a=>{console.error("[DB][import] Failed to roll back resource monitor servers:",a)}),a}let t=0;if(l)try{t=await j(a.branding)}catch(a){throw await j(n).catch(a=>{console.error("[DB][import] Failed to roll back branding assets:",a)}),a}return b?await al():{success:!0,resourceMonitorImported:p,resourceMonitorServerCount:q?.servers.length||0,resourceMonitorHistoryCount:r.length,brandingImported:l,brandingAssetCount:t}}process.off("beforeExit",ak),process.off("SIGINT",ak),process.off("SIGTERM",ak),process.off("exit",ak),process.on("beforeExit",ak),process.on("SIGINT",ak),process.on("SIGTERM",ak),process.on("exit",ak)},45874:(a,b,c)=>{c.d(b,{Nx:()=>k,Xx:()=>j,exportSettings:()=>m,getSettings:()=>i,z9:()=>l});var d=c(24081),e=c(50743);let f={cloudEnabled:!1,tunnelEnabled:!1,tunnelUrl:"",tunnelProvider:"cloudflare",tailscaleEnabled:!1,tailscaleUrl:"",stickyRoundRobinLimit:3,providerStrategies:{},providerSchedules:{},providerHealthChecks:{},comboStrategy:"fallback",comboStickyRoundRobinLimit:1,comboStrategies:{},requireApiKey:!0,requireLogin:!0,tunnelDashboardAccess:!0,authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcClientSecret:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC",ldapMonitorAdminGroupDn:"",enableObservability:!0,observabilityMaxRecords:1e3,observabilityBatchSize:20,observabilityFlushIntervalMs:5e3,observabilityMaxJsonSize:5,outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:"",mitmRouterBaseUrl:"http://localhost:20128",dnsToolEnabled:{},rtkEnabled:!0,cavemanEnabled:!1,cavemanLevel:"full",sidebarAdvancedToolsVisible:!0,personalOAuthProviderPermissions:{},userApiKeyLimit:5,userApiKeyLimitOverrides:{},personalOAuthConnectionsPerProviderLimit:3,personalOAuthConnectionsPerProviderLimitOverrides:{},siteTitle:"",siteShortName:"",siteDescription:"",brandingLogo:null,brandingFavicon:null,resourceMonitorAiModel:"",dashboardAnalyticsAiModel:"",dashboardAnalyticsVllmConfig:""};async function g(){let a=(await (0,d.c)()).get("SELECT data FROM settings WHERE id = 1");return a?(0,e.q)(a.data,{}):{}}function h(a){let b={...f,...a||{}};for(let[a,c]of Object.entries(f))void 0===b[a]&&("outboundProxyEnabled"===a&&"string"==typeof b.outboundProxyUrl&&b.outboundProxyUrl.trim()?b[a]=!0:b[a]=c);return b.requireApiKey=!0,b.requireLogin=!0,b}async function i(){return h(await g())}async function j(a){let b,c=await (0,d.c)();return c.transaction(()=>{let d=c.get("SELECT data FROM settings WHERE id = 1");b={...d?(0,e.q)(d.data,{}):{},...a,requireApiKey:!0,requireLogin:!0},c.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(b)])}),h(b)}async function k(){return!0===(await i()).cloudEnabled}async function l(){return(await i()).cloudUrl||process.env.CLOUD_URL||process.env.NEXT_PUBLIC_CLOUD_URL||""}async function m(){return await g()}},48315:(a,b,c)=>{c.d(b,{Iq:()=>t,Lh:()=>v,yg:()=>r,getApiKeyByKey:()=>s,PX:()=>q,MI:()=>x,XW:()=>u,ek:()=>w});var d=c(
|
|
470
|
+
) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)`,[a.serverId,a.sampledAt,a.cpuUsage,a.memoryUsage,a.diskUsage,a.diskUsedBytes,a.networkRxBps,a.networkTxBps,(0,e.s)(a.gpus)])})}catch(a){throw s&&await (0,f.x8)(s).catch(a=>{console.error("[DB][import] Failed to roll back resource monitor servers:",a)}),a}let t=0;if(l)try{t=await j(a.branding)}catch(a){throw await j(n).catch(a=>{console.error("[DB][import] Failed to roll back branding assets:",a)}),a}return b?await al():{success:!0,resourceMonitorImported:p,resourceMonitorServerCount:q?.servers.length||0,resourceMonitorHistoryCount:r.length,brandingImported:l,brandingAssetCount:t}}process.off("beforeExit",ak),process.off("SIGINT",ak),process.off("SIGTERM",ak),process.off("exit",ak),process.on("beforeExit",ak),process.on("SIGINT",ak),process.on("SIGTERM",ak),process.on("exit",ak)},45874:(a,b,c)=>{c.d(b,{Nx:()=>k,Xx:()=>j,exportSettings:()=>m,getSettings:()=>i,z9:()=>l});var d=c(24081),e=c(50743);let f={cloudEnabled:!1,tunnelEnabled:!1,tunnelUrl:"",tunnelProvider:"cloudflare",tailscaleEnabled:!1,tailscaleUrl:"",stickyRoundRobinLimit:3,providerStrategies:{},providerSchedules:{},providerHealthChecks:{},comboStrategy:"fallback",comboStickyRoundRobinLimit:1,comboStrategies:{},requireApiKey:!0,requireLogin:!0,tunnelDashboardAccess:!0,authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcClientSecret:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC",ldapMonitorAdminGroupDn:"",enableObservability:!0,observabilityMaxRecords:1e3,observabilityBatchSize:20,observabilityFlushIntervalMs:5e3,observabilityMaxJsonSize:5,outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:"",mitmRouterBaseUrl:"http://localhost:20128",dnsToolEnabled:{},rtkEnabled:!0,cavemanEnabled:!1,cavemanLevel:"full",sidebarAdvancedToolsVisible:!0,personalOAuthProviderPermissions:{},userApiKeyLimit:5,userApiKeyLimitOverrides:{},personalOAuthConnectionsPerProviderLimit:3,personalOAuthConnectionsPerProviderLimitOverrides:{},siteTitle:"",siteShortName:"",siteDescription:"",brandingLogo:null,brandingFavicon:null,resourceMonitorAiModel:"",dashboardAnalyticsAiModel:"",dashboardAnalyticsVllmConfig:""};async function g(){let a=(await (0,d.c)()).get("SELECT data FROM settings WHERE id = 1");return a?(0,e.q)(a.data,{}):{}}function h(a){let b={...f,...a||{}};for(let[a,c]of Object.entries(f))void 0===b[a]&&("outboundProxyEnabled"===a&&"string"==typeof b.outboundProxyUrl&&b.outboundProxyUrl.trim()?b[a]=!0:b[a]=c);return b.requireApiKey=!0,b.requireLogin=!0,b}async function i(){return h(await g())}async function j(a){let b,c=await (0,d.c)();return c.transaction(()=>{let d=c.get("SELECT data FROM settings WHERE id = 1");b={...d?(0,e.q)(d.data,{}):{},...a,requireApiKey:!0,requireLogin:!0},c.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(b)])}),h(b)}async function k(){return!0===(await i()).cloudEnabled}async function l(){return(await i()).cloudUrl||process.env.CLOUD_URL||process.env.NEXT_PUBLIC_CLOUD_URL||""}async function m(){return await g()}},48315:(a,b,c)=>{c.d(b,{Iq:()=>t,Lh:()=>v,yg:()=>r,getApiKeyByKey:()=>s,PX:()=>q,MI:()=>x,XW:()=>u,ek:()=>w});var d=c(41579),e=c(24081),f=c(50743),g=c(5957);let h=Object.freeze(["inherit","on","off"]),i=Object.freeze(["lite","full","ultra"]);function j(a){let b=String(a||"inherit").trim().toLowerCase();return h.includes(b)?b:"inherit"}function k(a,b="lite"){let c=String(a||b).trim().toLowerCase();return i.includes(c)?c:b}let l=!1;function m(a){return Array.isArray(a)?[...new Set(a.map(a=>String(a||"").trim()).filter(Boolean))]:[]}function n(a){return String(a||"").trim().toLowerCase()}async function o(a){if(!l)try{let b=a.all("PRAGMA table_info(apiKeys)"),c=new Set(b.map(a=>a.name));c.has("allowedModels")||a.run("ALTER TABLE apiKeys ADD COLUMN allowedModels TEXT DEFAULT '[]'"),c.has("limits")||a.run("ALTER TABLE apiKeys ADD COLUMN limits TEXT DEFAULT '{}'"),c.has("ownerUser")||a.run("ALTER TABLE apiKeys ADD COLUMN ownerUser TEXT DEFAULT ''"),c.has("createdByUser")||a.run("ALTER TABLE apiKeys ADD COLUMN createdByUser TEXT DEFAULT ''"),c.has("adminDisabled")||a.run("ALTER TABLE apiKeys ADD COLUMN adminDisabled INTEGER DEFAULT 0"),c.has("cavemanMode")||a.run("ALTER TABLE apiKeys ADD COLUMN cavemanMode TEXT DEFAULT 'inherit'"),c.has("cavemanLevel")||a.run("ALTER TABLE apiKeys ADD COLUMN cavemanLevel TEXT DEFAULT 'lite'");try{a.run("CREATE INDEX IF NOT EXISTS idx_ak_key ON apiKeys(key)"),a.run("CREATE INDEX IF NOT EXISTS idx_ak_owner ON apiKeys(ownerUser)"),a.run("CREATE INDEX IF NOT EXISTS idx_ak_created_by ON apiKeys(createdByUser)"),a.run("CREATE INDEX IF NOT EXISTS idx_ak_active ON apiKeys(isActive)"),a.run("CREATE INDEX IF NOT EXISTS idx_ak_admin_disabled ON apiKeys(adminDisabled)"),a.run("CREATE INDEX IF NOT EXISTS idx_ak_created_at ON apiKeys(createdAt)")}catch{}l=!0}catch(a){console.log("Could not ensure apiKeys columns:",a?.message||a)}}function p(a){return a?{id:a.id,key:a.key,name:a.name,machineId:a.machineId,isActive:1===a.isActive||!0===a.isActive,adminDisabled:1===a.adminDisabled||!0===a.adminDisabled,allowedModels:m((0,f.q)(a.allowedModels,[])),limits:(0,g.jQ)((0,f.q)(a.limits,{})),ownerUser:n(a.ownerUser),createdByUser:n(a.createdByUser),cavemanMode:j(a.cavemanMode),cavemanLevel:k(a.cavemanLevel,"lite"),createdAt:a.createdAt}:null}async function q(a={}){let b,c,d=await (0,e.c)();await o(d);let{where:f,params:g}=function(a={}){let b=[],c=[],d=n(a.ownerUser),e=String(a.search||"").trim().toLowerCase();if(d&&(b.push("(lower(coalesce(ownerUser, '')) = ? OR lower(coalesce(createdByUser, '')) = ?)"),c.push(d,d)),!0===a.isActive?b.push("isActive = 1"):!1===a.isActive&&b.push("(isActive = 0 OR isActive IS NULL)"),e){let a=`%${e}%`;b.push(`(
|
|
471
471
|
lower(coalesce(name, '')) LIKE ?
|
|
472
472
|
OR lower(coalesce(key, '')) LIKE ?
|
|
473
473
|
OR lower(coalesce(id, '')) LIKE ?
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
OR lower(coalesce(ownerUser, '')) LIKE ?
|
|
476
476
|
OR lower(coalesce(createdByUser, '')) LIKE ?
|
|
477
477
|
OR lower(coalesce(allowedModels, '')) LIKE ?
|
|
478
|
-
)`),c.push(a,a,a,a,a,a,a)}return{where:b.length?`WHERE ${b.join(" AND ")}`:"",params:c}}(a),h="desc"===String(a.order||"asc").toLowerCase()?"DESC":"ASC",i=!Number.isFinite(b=Number(a.limit))||b<=0?null:Math.min(500,Math.max(1,Math.floor(b))),j=!Number.isFinite(c=Number(a.offset))||c<=0?0:Math.max(0,Math.floor(c)),k=`SELECT * FROM apiKeys ${f} ORDER BY createdAt ${h}`,l=[...g];return i&&(k+=" LIMIT ? OFFSET ?",l.push(i,j)),(l.length?d.all(k,l):d.all(k)).map(p)}async function r(a){let b=await (0,e.c)();return await o(b),p(b.get("SELECT * FROM apiKeys WHERE id = ?",[a]))}async function s(a){if(!a)return null;let b=await (0,e.c)();return await o(b),p(b.get("SELECT * FROM apiKeys WHERE key = ?",[a]))}async function t(a,b,h={}){if(!b)throw Error("machineId is required");let i=await (0,e.c)();await o(i);let{generateApiKeyWithMachine:l}=await c.e(6103).then(c.bind(c,86103)),p=l(b),q=n(h.ownerUser||h.createdByUser),r=n(h.createdByUser||q),s={id:(0,d.A)(),name:a,key:p.key,machineId:b,isActive:!0,adminDisabled:!1,allowedModels:m(h.allowedModels),limits:(0,g.jQ)(h.limits||{}),ownerUser:q,createdByUser:r,cavemanMode:j(h.cavemanMode),cavemanLevel:k(h.cavemanLevel,"lite"),createdAt:new Date().toISOString()};return i.run("INSERT INTO apiKeys(id, key, name, machineId, isActive, adminDisabled, allowedModels, limits, ownerUser, createdByUser, cavemanMode, cavemanLevel, createdAt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[s.id,s.key,s.name,s.machineId,1,0,(0,f.s)(s.allowedModels),(0,f.s)(s.limits),s.ownerUser,s.createdByUser,s.cavemanMode,s.cavemanLevel,s.createdAt]),s}async function u(a,b={}){let c=await (0,e.c)();await o(c);let d=null;return c.transaction(()=>{let e=c.get("SELECT * FROM apiKeys WHERE id = ?",[a]);if(!e)return;let h={...p(e),...b};Object.prototype.hasOwnProperty.call(b,"allowedModels")&&(h.allowedModels=m(b.allowedModels)),Object.prototype.hasOwnProperty.call(b,"limits")&&(h.limits=(0,g.jQ)(b.limits||{})),Object.prototype.hasOwnProperty.call(b,"ownerUser")&&(h.ownerUser=n(b.ownerUser)),Object.prototype.hasOwnProperty.call(b,"createdByUser")&&(h.createdByUser=n(b.createdByUser)),Object.prototype.hasOwnProperty.call(b,"cavemanMode")&&(h.cavemanMode=j(b.cavemanMode)),Object.prototype.hasOwnProperty.call(b,"cavemanLevel")&&(h.cavemanLevel=k(b.cavemanLevel,"lite")),c.run("UPDATE apiKeys SET key = ?, name = ?, machineId = ?, isActive = ?, adminDisabled = ?, allowedModels = ?, limits = ?, ownerUser = ?, createdByUser = ?, cavemanMode = ?, cavemanLevel = ? WHERE id = ?",[h.key,h.name,h.machineId,+!!h.isActive,+!!h.adminDisabled,(0,f.s)(h.allowedModels||[]),(0,f.s)(h.limits||{}),h.ownerUser||"",h.createdByUser||"",j(h.cavemanMode),k(h.cavemanLevel,"lite"),a]),d=h}),d}async function v(a){let b=await (0,e.c)();await o(b);let c=b.run("DELETE FROM apiKeys WHERE id = ?",[a]);return(c?.changes??0)>0}async function w(a){let b=await (0,e.c)();await o(b);let c=b.get("SELECT isActive FROM apiKeys WHERE key = ?",[a]);return!!c&&(1===c.isActive||!0===c.isActive)}async function x(a,b){if(!a||!b)return!1;let c=await s(a);if(!c||!1===c.isActive)return!1;let d=Array.isArray(c.allowedModels)?c.allowedModels:[];if(0===d.length)return!0;let e=String(b||"").trim();return d.includes(e)}},50743:(a,b,c)=>{function d(a,b=null){if(null==a)return b;if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return b}}function e(a){return JSON.stringify(a??null)}c.d(b,{q:()=>d,s:()=>e})},53859:(a,b,c)=>{c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="bluerouter";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},58609:(a,b,c)=>{c.d(b,{U:()=>f});var d=c(24081),e=c(50743);function f(a){return{async get(b,c=null){let f=(await (0,d.c)()).get("SELECT value FROM kv WHERE scope = ? AND key = ?",[a,b]);return f?(0,e.q)(f.value,c):c},async getAll(){let b=(await (0,d.c)()).all("SELECT key, value FROM kv WHERE scope = ?",[a]),c={};for(let a of b)c[a.key]=(0,e.q)(a.value);return c},async set(b,c){(await (0,d.c)()).run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,b,(0,e.s)(c)])},async setMany(b){let c=await (0,d.c)();c.transaction(()=>{for(let[d,f]of Object.entries(b))c.run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,d,(0,e.s)(f)])})},async remove(b){(await (0,d.c)()).run("DELETE FROM kv WHERE scope = ? AND key = ?",[a,b])},async clear(){(await (0,d.c)()).run("DELETE FROM kv WHERE scope = ?",[a])}}}},70321:(a,b,c)=>{c.r(b),c.d(b,{addCustomModel:()=>d.S8,cleanupProviderConnections:()=>d.bI,createApiKey:()=>d.Iq,createCombo:()=>d.jd,createProviderConnection:()=>d.iE,createProviderNode:()=>d.i0,createProxyPool:()=>d.ZO,deleteApiKey:()=>d.Lh,deleteCombo:()=>d.CG,deleteCustomModel:()=>d.uL,deleteModelAlias:()=>d.fv,deleteProviderConnection:()=>d.fK,deleteProviderConnectionsByProvider:()=>d.op,deleteProviderNode:()=>d.Pc,deleteProxyPool:()=>d.Yd,exportDb:()=>d.zP,getApiKeyById:()=>d.yg,getApiKeyByKey:()=>d.mY,getApiKeys:()=>d.PX,getCloudUrl:()=>d.z9,getComboById:()=>d.L,getComboByName:()=>d.Dj,getCombos:()=>d.Uv,getCustomModels:()=>d.uv,getMitmAlias:()=>d.c,getModelAliases:()=>d.OM,getPersonalConnectionSummary:()=>d.nv,getPricing:()=>d.r4,getPricingForModel:()=>d.PS,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,getProviderNodeById:()=>d.Qu,getProviderNodes:()=>d.Fh,getProxyPoolById:()=>d.hr,getProxyPools:()=>d.ui,getSettings:()=>d.mt,importDb:()=>d.K1,isApiKeyAllowedForModel:()=>d.MI,isCloudEnabled:()=>d.Nx,reorderProviderConnections:()=>d.QG,resetAllPricing:()=>d.VT,resetPricing:()=>d.yF,setMitmAliasAll:()=>d.L9,setModelAlias:()=>d.o5,updateApiKey:()=>d.XW,updateCombo:()=>d.oG,updatePricing:()=>d.KJ,updateProviderConnection:()=>d.rj,updateProviderNode:()=>d.ho,updateProxyPool:()=>d.Q_,updateSettings:()=>d.Xx,validateApiKey:()=>d.ek});var d=c(43075)},76087:(a,b,c)=>{c.d(b,{bI:()=>R,iE:()=>M,fK:()=>O,op:()=>P,nv:()=>K,Mc:()=>J,getProviderConnections:()=>I,QG:()=>Q,rj:()=>N});var d=c(63960),e=c(24081),f=c(50743),g=c(77598),h=c.n(g),i=c(73024),j=c.n(i),k=c(76760),l=c.n(k),m=c(53859);let n="enc:v1:",o=l().join(m.n,"credential-encryption-key"),p=null;function q(a){let b=String(a||"").trim();if(!b)return null;if(/^[a-f0-9]{64}$/i.test(b))return Buffer.from(b,"hex");let c=b.replace(/-/g,"+").replace(/_/g,"/"),d=c+"=".repeat((4-c.length%4)%4),e=Buffer.from(d,"base64");return 32===e.length?e:null}function r(a){let b=String(process.env.BLUEROUTER_CREDENTIAL_ENCRYPTION_KEY_ID||"").trim();return b||h().createHash("sha256").update(a).digest("hex").slice(0,12)}function s(a=null){if(a?.key){let b=Buffer.isBuffer(a.key)?a.key:q(a.key);if(!b||32!==b.length)throw Error("Credential encryption key must be exactly 32 bytes");return{key:b,keyId:a.keyId||r(b)}}if(p)return p;let b=process.env.BLUEROUTER_CREDENTIAL_ENCRYPTION_KEY,c=b?q(b):function(){try{let a=q(j().readFileSync(o,"utf8"));if(!a)throw Error("Credential encryption key file is invalid");return a}catch(a){if(a?.code!=="ENOENT")throw a}j().mkdirSync(m.n,{recursive:!0});let a=h().randomBytes(32);try{return j().writeFileSync(o,a.toString("base64"),{flag:"wx",mode:384}),a}catch(b){if(b?.code!=="EEXIST")throw b;let a=q(j().readFileSync(o,"utf8"));if(!a)throw Error("Credential encryption key file is invalid");return a}}();if(!c||32!==c.length)throw Error("BLUEROUTER_CREDENTIAL_ENCRYPTION_KEY must be a 32-byte base64 or 64-character hex value");return p={key:c,keyId:r(c)}}function t(a){return Buffer.from(`bluerouter:credential:v1:${a}`,"utf8")}function u(a){return"string"==typeof a&&a.startsWith(n)}let v=["displayName","email","globalPriority","personalOrder","defaultModel","accessToken","refreshToken","idToken","expiresAt","tokenType","projectId","apiKey","routeApiKeyId","testStatus","lastTested","lastError","lastErrorAt","rateLimitedUntil","expiresIn","errorCode","consecutiveUseCount","schedule","healthCheck","healthStatus","healthConsecutiveFailures","healthConsecutiveSuccesses","healthLastCheckedAt","healthLastOkAt","healthLastError","healthLastLatencyMs","healthLastRecoveredAt"],w=["accessToken","refreshToken","idToken","apiKey"];function x(a){return String(a||"").trim().toLowerCase()}function y(a){return"personal"===a?"personal":"system"}function z(a,{lower:b=!0}={}){let c=String(a||"").trim();return c&&"—"!==c&&"-"!==c?b?c.toLowerCase():c:""}function A(a){return a&&"object"==typeof a&&!Array.isArray(a)?a:{}}function B(a){try{if(!a||"string"!=typeof a)return null;let b=a.split(".");if(3!==b.length)return null;let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=c+"=".repeat((4-c.length%4)%4);return JSON.parse(Buffer.from(d,"base64").toString("utf8"))}catch{return null}}function C(a={}){let b=A(a.providerSpecificData),c=B(a.accessToken),d=c?.["https://api.openai.com/auth"]||{},e=c?.email||c?.preferred_username||c?.username;for(let[f,g]of[["chatgptAccountId",b.chatgptAccountId||d.chatgpt_account_id],["claudeAccountId",b.claudeAccountId||c?.claude_account_id],["accountId",b.accountId||c?.account_id],["userId",b.userId||c?.user_id||c?.uid],["sub",b.sub||c?.sub],["email",a.email||b.email||b.preferredUsername||e]]){let a=z(g);if(a)return`${f}:${a}`}return""}function D(a={}){let b=A(a.providerSpecificData),c=new Set,d=(a,b)=>{let d=z(b);d&&c.add(`${a}:${d}`)};for(let c of(d("id",b.chatgptUserId),d("id",b.userId),d("id",b.sub),d("email",a.email),d("email",b.email),d("email",b.preferredUsername),[a.idToken,a.accessToken])){let a=B(c);if(!a)continue;let b=a["https://api.openai.com/auth"]||{},e=a["https://api.openai.com/profile"]||{};d("id",b.chatgpt_user_id),d("id",b.user_id),d("id",a.user_id),d("id",a.uid),d("id",a.sub),d("email",e.email),d("email",a.email),d("email",a.preferred_username),d("email",a.username)}return c}function E(a){return"oauth"===a||"access_token"===a}let F=new Set(["claude","codex"]);function G(a){if(!a)return null;let b=(0,f.q)(a.data,{});for(let a of w)Object.prototype.hasOwnProperty.call(b,a)&&(b[a]=function(a,b=null){if(!u(a))return a;let c=a.split(":");if(6!==c.length||"enc"!==c[0]||"v1"!==c[1])throw Error("Unsupported encrypted credential format");let d=Buffer.from(c[2],"base64url").toString("utf8"),e=Buffer.from(c[3],"base64url"),f=Buffer.from(c[4],"base64url"),g=Buffer.from(c[5],"base64url");if(12!==e.length||16!==f.length)throw Error("Encrypted credential payload is invalid");let{key:i}=s(b);try{let a=h().createDecipheriv("aes-256-gcm",i,e,{authTagLength:16});return a.setAAD(t(d)),a.setAuthTag(f),Buffer.concat([a.update(g),a.final()]).toString("utf8")}catch{throw Error(`Unable to decrypt credential with key ${d}`)}}(b[a]));let c=x(a.ownerUser||b.ownerUser),d=x(a.createdByUser||b.createdByUser),e=a.visibility||b.visibility||(c?"private":"system"),g="personal"===y(a.scope||b.scope)||c||"private"===e?"personal":"system";return{...b,id:a.id,provider:a.provider,authType:a.authType,name:a.name,email:a.email,priority:a.priority,isActive:1===a.isActive||!0===a.isActive,scope:g,ownerUser:c,createdByUser:d,visibility:e||("personal"===g?"private":"system"),createdAt:a.createdAt,updatedAt:a.updatedAt}}function H(a,b,c={}){let d=function(a,b={}){let{id:c,provider:d,authType:e,name:g,email:i,priority:j,isActive:k,scope:l,ownerUser:m,createdByUser:o,visibility:p,createdAt:q,updatedAt:r,...v}=a,z=b.storedData&&"object"==typeof b.storedData?b.storedData:null,A=b.encryptFields instanceof Set?b.encryptFields:null;for(let a of w)z&&A&&!A.has(a)&&Object.prototype.hasOwnProperty.call(z,a)?v[a]=z[a]:Object.prototype.hasOwnProperty.call(v,a)&&(v[a]=function(a,b=null){if(null==a||""===a||u(a)||"string"!=typeof a)return a;let{key:c,keyId:d}=s(b),e=Buffer.from(d,"utf8").toString("base64url"),f=h().randomBytes(12),g=h().createCipheriv("aes-256-gcm",c,f,{authTagLength:16});g.setAAD(t(d));let i=Buffer.concat([g.update(a,"utf8"),g.final()]),j=g.getAuthTag();return`${n}${e}:${f.toString("base64url")}:${j.toString("base64url")}:${i.toString("base64url")}`}(v[a]));let B=x(m),C=p||(B?"private":void 0),D="personal"===y(l)||B||"private"===C?"personal":"system";return{id:c,provider:d,authType:e,name:g??null,email:i??null,priority:j??null,isActive:+(!1!==k),scope:D,ownerUser:B,createdByUser:x(o),visibility:C||("personal"===D?"private":"system"),data:(0,f.s)(v),createdAt:q,updatedAt:r}}(b,c);a.run(`INSERT INTO providerConnections(id, provider, authType, name, email, priority, isActive, scope, ownerUser, createdByUser, visibility, data, createdAt, updatedAt)
|
|
478
|
+
)`),c.push(a,a,a,a,a,a,a)}return{where:b.length?`WHERE ${b.join(" AND ")}`:"",params:c}}(a),h="desc"===String(a.order||"asc").toLowerCase()?"DESC":"ASC",i=!Number.isFinite(b=Number(a.limit))||b<=0?null:Math.min(500,Math.max(1,Math.floor(b))),j=!Number.isFinite(c=Number(a.offset))||c<=0?0:Math.max(0,Math.floor(c)),k=`SELECT * FROM apiKeys ${f} ORDER BY createdAt ${h}`,l=[...g];return i&&(k+=" LIMIT ? OFFSET ?",l.push(i,j)),(l.length?d.all(k,l):d.all(k)).map(p)}async function r(a){let b=await (0,e.c)();return await o(b),p(b.get("SELECT * FROM apiKeys WHERE id = ?",[a]))}async function s(a){if(!a)return null;let b=await (0,e.c)();return await o(b),p(b.get("SELECT * FROM apiKeys WHERE key = ?",[a]))}async function t(a,b,h={}){if(!b)throw Error("machineId is required");let i=await (0,e.c)();await o(i);let{generateApiKeyWithMachine:l}=await c.e(6103).then(c.bind(c,86103)),p=l(b),q=n(h.ownerUser||h.createdByUser),r=n(h.createdByUser||q),s={id:(0,d.A)(),name:a,key:p.key,machineId:b,isActive:!0,adminDisabled:!1,allowedModels:m(h.allowedModels),limits:(0,g.jQ)(h.limits||{}),ownerUser:q,createdByUser:r,cavemanMode:j(h.cavemanMode),cavemanLevel:k(h.cavemanLevel,"lite"),createdAt:new Date().toISOString()};return i.run("INSERT INTO apiKeys(id, key, name, machineId, isActive, adminDisabled, allowedModels, limits, ownerUser, createdByUser, cavemanMode, cavemanLevel, createdAt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[s.id,s.key,s.name,s.machineId,1,0,(0,f.s)(s.allowedModels),(0,f.s)(s.limits),s.ownerUser,s.createdByUser,s.cavemanMode,s.cavemanLevel,s.createdAt]),s}async function u(a,b={}){let c=await (0,e.c)();await o(c);let d=null;return c.transaction(()=>{let e=c.get("SELECT * FROM apiKeys WHERE id = ?",[a]);if(!e)return;let h={...p(e),...b};Object.prototype.hasOwnProperty.call(b,"allowedModels")&&(h.allowedModels=m(b.allowedModels)),Object.prototype.hasOwnProperty.call(b,"limits")&&(h.limits=(0,g.jQ)(b.limits||{})),Object.prototype.hasOwnProperty.call(b,"ownerUser")&&(h.ownerUser=n(b.ownerUser)),Object.prototype.hasOwnProperty.call(b,"createdByUser")&&(h.createdByUser=n(b.createdByUser)),Object.prototype.hasOwnProperty.call(b,"cavemanMode")&&(h.cavemanMode=j(b.cavemanMode)),Object.prototype.hasOwnProperty.call(b,"cavemanLevel")&&(h.cavemanLevel=k(b.cavemanLevel,"lite")),c.run("UPDATE apiKeys SET key = ?, name = ?, machineId = ?, isActive = ?, adminDisabled = ?, allowedModels = ?, limits = ?, ownerUser = ?, createdByUser = ?, cavemanMode = ?, cavemanLevel = ? WHERE id = ?",[h.key,h.name,h.machineId,+!!h.isActive,+!!h.adminDisabled,(0,f.s)(h.allowedModels||[]),(0,f.s)(h.limits||{}),h.ownerUser||"",h.createdByUser||"",j(h.cavemanMode),k(h.cavemanLevel,"lite"),a]),d=h}),d}async function v(a){let b=await (0,e.c)();await o(b);let c=b.run("DELETE FROM apiKeys WHERE id = ?",[a]);return(c?.changes??0)>0}async function w(a){let b=await (0,e.c)();await o(b);let c=b.get("SELECT isActive FROM apiKeys WHERE key = ?",[a]);return!!c&&(1===c.isActive||!0===c.isActive)}async function x(a,b){if(!a||!b)return!1;let c=await s(a);if(!c||!1===c.isActive)return!1;let d=Array.isArray(c.allowedModels)?c.allowedModels:[];if(0===d.length)return!0;let e=String(b||"").trim();return d.includes(e)}},50743:(a,b,c)=>{function d(a,b=null){if(null==a)return b;if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return b}}function e(a){return JSON.stringify(a??null)}c.d(b,{q:()=>d,s:()=>e})},53859:(a,b,c)=>{c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="bluerouter";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},58609:(a,b,c)=>{c.d(b,{U:()=>f});var d=c(24081),e=c(50743);function f(a){return{async get(b,c=null){let f=(await (0,d.c)()).get("SELECT value FROM kv WHERE scope = ? AND key = ?",[a,b]);return f?(0,e.q)(f.value,c):c},async getAll(){let b=(await (0,d.c)()).all("SELECT key, value FROM kv WHERE scope = ?",[a]),c={};for(let a of b)c[a.key]=(0,e.q)(a.value);return c},async set(b,c){(await (0,d.c)()).run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,b,(0,e.s)(c)])},async setMany(b){let c=await (0,d.c)();c.transaction(()=>{for(let[d,f]of Object.entries(b))c.run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,d,(0,e.s)(f)])})},async remove(b){(await (0,d.c)()).run("DELETE FROM kv WHERE scope = ? AND key = ?",[a,b])},async clear(){(await (0,d.c)()).run("DELETE FROM kv WHERE scope = ?",[a])}}}},70321:(a,b,c)=>{c.r(b),c.d(b,{addCustomModel:()=>d.S8,cleanupProviderConnections:()=>d.bI,createApiKey:()=>d.Iq,createCombo:()=>d.jd,createProviderConnection:()=>d.iE,createProviderNode:()=>d.i0,createProxyPool:()=>d.ZO,deleteApiKey:()=>d.Lh,deleteCombo:()=>d.CG,deleteCustomModel:()=>d.uL,deleteModelAlias:()=>d.fv,deleteProviderConnection:()=>d.fK,deleteProviderConnectionsByProvider:()=>d.op,deleteProviderNode:()=>d.Pc,deleteProxyPool:()=>d.Yd,exportDb:()=>d.zP,getApiKeyById:()=>d.yg,getApiKeyByKey:()=>d.mY,getApiKeys:()=>d.PX,getCloudUrl:()=>d.z9,getComboById:()=>d.L,getComboByName:()=>d.Dj,getCombos:()=>d.Uv,getCustomModels:()=>d.uv,getMitmAlias:()=>d.c,getModelAliases:()=>d.OM,getPersonalConnectionSummary:()=>d.nv,getPricing:()=>d.r4,getPricingForModel:()=>d.PS,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,getProviderNodeById:()=>d.Qu,getProviderNodes:()=>d.Fh,getProxyPoolById:()=>d.hr,getProxyPools:()=>d.ui,getSettings:()=>d.mt,importDb:()=>d.K1,isApiKeyAllowedForModel:()=>d.MI,isCloudEnabled:()=>d.Nx,reorderProviderConnections:()=>d.QG,resetAllPricing:()=>d.VT,resetPricing:()=>d.yF,setMitmAliasAll:()=>d.L9,setModelAlias:()=>d.o5,updateApiKey:()=>d.XW,updateCombo:()=>d.oG,updatePricing:()=>d.KJ,updateProviderConnection:()=>d.rj,updateProviderNode:()=>d.ho,updateProxyPool:()=>d.Q_,updateSettings:()=>d.Xx,validateApiKey:()=>d.ek});var d=c(43075)},76087:(a,b,c)=>{c.d(b,{bI:()=>R,iE:()=>M,fK:()=>O,op:()=>P,nv:()=>K,Mc:()=>J,getProviderConnections:()=>I,QG:()=>Q,rj:()=>N});var d=c(41579),e=c(24081),f=c(50743),g=c(77598),h=c.n(g),i=c(73024),j=c.n(i),k=c(76760),l=c.n(k),m=c(53859);let n="enc:v1:",o=l().join(m.n,"credential-encryption-key"),p=null;function q(a){let b=String(a||"").trim();if(!b)return null;if(/^[a-f0-9]{64}$/i.test(b))return Buffer.from(b,"hex");let c=b.replace(/-/g,"+").replace(/_/g,"/"),d=c+"=".repeat((4-c.length%4)%4),e=Buffer.from(d,"base64");return 32===e.length?e:null}function r(a){let b=String(process.env.BLUEROUTER_CREDENTIAL_ENCRYPTION_KEY_ID||"").trim();return b||h().createHash("sha256").update(a).digest("hex").slice(0,12)}function s(a=null){if(a?.key){let b=Buffer.isBuffer(a.key)?a.key:q(a.key);if(!b||32!==b.length)throw Error("Credential encryption key must be exactly 32 bytes");return{key:b,keyId:a.keyId||r(b)}}if(p)return p;let b=process.env.BLUEROUTER_CREDENTIAL_ENCRYPTION_KEY,c=b?q(b):function(){try{let a=q(j().readFileSync(o,"utf8"));if(!a)throw Error("Credential encryption key file is invalid");return a}catch(a){if(a?.code!=="ENOENT")throw a}j().mkdirSync(m.n,{recursive:!0});let a=h().randomBytes(32);try{return j().writeFileSync(o,a.toString("base64"),{flag:"wx",mode:384}),a}catch(b){if(b?.code!=="EEXIST")throw b;let a=q(j().readFileSync(o,"utf8"));if(!a)throw Error("Credential encryption key file is invalid");return a}}();if(!c||32!==c.length)throw Error("BLUEROUTER_CREDENTIAL_ENCRYPTION_KEY must be a 32-byte base64 or 64-character hex value");return p={key:c,keyId:r(c)}}function t(a){return Buffer.from(`bluerouter:credential:v1:${a}`,"utf8")}function u(a){return"string"==typeof a&&a.startsWith(n)}let v=["displayName","email","globalPriority","personalOrder","defaultModel","accessToken","refreshToken","idToken","expiresAt","tokenType","projectId","apiKey","routeApiKeyId","testStatus","lastTested","lastError","lastErrorAt","rateLimitedUntil","expiresIn","errorCode","consecutiveUseCount","schedule","healthCheck","healthStatus","healthConsecutiveFailures","healthConsecutiveSuccesses","healthLastCheckedAt","healthLastOkAt","healthLastError","healthLastLatencyMs","healthLastRecoveredAt"],w=["accessToken","refreshToken","idToken","apiKey"];function x(a){return String(a||"").trim().toLowerCase()}function y(a){return"personal"===a?"personal":"system"}function z(a,{lower:b=!0}={}){let c=String(a||"").trim();return c&&"—"!==c&&"-"!==c?b?c.toLowerCase():c:""}function A(a){return a&&"object"==typeof a&&!Array.isArray(a)?a:{}}function B(a){try{if(!a||"string"!=typeof a)return null;let b=a.split(".");if(3!==b.length)return null;let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=c+"=".repeat((4-c.length%4)%4);return JSON.parse(Buffer.from(d,"base64").toString("utf8"))}catch{return null}}function C(a={}){let b=A(a.providerSpecificData),c=B(a.accessToken),d=c?.["https://api.openai.com/auth"]||{},e=c?.email||c?.preferred_username||c?.username;for(let[f,g]of[["chatgptAccountId",b.chatgptAccountId||d.chatgpt_account_id],["claudeAccountId",b.claudeAccountId||c?.claude_account_id],["accountId",b.accountId||c?.account_id],["userId",b.userId||c?.user_id||c?.uid],["sub",b.sub||c?.sub],["email",a.email||b.email||b.preferredUsername||e]]){let a=z(g);if(a)return`${f}:${a}`}return""}function D(a={}){let b=A(a.providerSpecificData),c=new Set,d=(a,b)=>{let d=z(b);d&&c.add(`${a}:${d}`)};for(let c of(d("id",b.chatgptUserId),d("id",b.userId),d("id",b.sub),d("email",a.email),d("email",b.email),d("email",b.preferredUsername),[a.idToken,a.accessToken])){let a=B(c);if(!a)continue;let b=a["https://api.openai.com/auth"]||{},e=a["https://api.openai.com/profile"]||{};d("id",b.chatgpt_user_id),d("id",b.user_id),d("id",a.user_id),d("id",a.uid),d("id",a.sub),d("email",e.email),d("email",a.email),d("email",a.preferred_username),d("email",a.username)}return c}function E(a){return"oauth"===a||"access_token"===a}let F=new Set(["claude","codex"]);function G(a){if(!a)return null;let b=(0,f.q)(a.data,{});for(let a of w)Object.prototype.hasOwnProperty.call(b,a)&&(b[a]=function(a,b=null){if(!u(a))return a;let c=a.split(":");if(6!==c.length||"enc"!==c[0]||"v1"!==c[1])throw Error("Unsupported encrypted credential format");let d=Buffer.from(c[2],"base64url").toString("utf8"),e=Buffer.from(c[3],"base64url"),f=Buffer.from(c[4],"base64url"),g=Buffer.from(c[5],"base64url");if(12!==e.length||16!==f.length)throw Error("Encrypted credential payload is invalid");let{key:i}=s(b);try{let a=h().createDecipheriv("aes-256-gcm",i,e,{authTagLength:16});return a.setAAD(t(d)),a.setAuthTag(f),Buffer.concat([a.update(g),a.final()]).toString("utf8")}catch{throw Error(`Unable to decrypt credential with key ${d}`)}}(b[a]));let c=x(a.ownerUser||b.ownerUser),d=x(a.createdByUser||b.createdByUser),e=a.visibility||b.visibility||(c?"private":"system"),g="personal"===y(a.scope||b.scope)||c||"private"===e?"personal":"system";return{...b,id:a.id,provider:a.provider,authType:a.authType,name:a.name,email:a.email,priority:a.priority,isActive:1===a.isActive||!0===a.isActive,scope:g,ownerUser:c,createdByUser:d,visibility:e||("personal"===g?"private":"system"),createdAt:a.createdAt,updatedAt:a.updatedAt}}function H(a,b,c={}){let d=function(a,b={}){let{id:c,provider:d,authType:e,name:g,email:i,priority:j,isActive:k,scope:l,ownerUser:m,createdByUser:o,visibility:p,createdAt:q,updatedAt:r,...v}=a,z=b.storedData&&"object"==typeof b.storedData?b.storedData:null,A=b.encryptFields instanceof Set?b.encryptFields:null;for(let a of w)z&&A&&!A.has(a)&&Object.prototype.hasOwnProperty.call(z,a)?v[a]=z[a]:Object.prototype.hasOwnProperty.call(v,a)&&(v[a]=function(a,b=null){if(null==a||""===a||u(a)||"string"!=typeof a)return a;let{key:c,keyId:d}=s(b),e=Buffer.from(d,"utf8").toString("base64url"),f=h().randomBytes(12),g=h().createCipheriv("aes-256-gcm",c,f,{authTagLength:16});g.setAAD(t(d));let i=Buffer.concat([g.update(a,"utf8"),g.final()]),j=g.getAuthTag();return`${n}${e}:${f.toString("base64url")}:${j.toString("base64url")}:${i.toString("base64url")}`}(v[a]));let B=x(m),C=p||(B?"private":void 0),D="personal"===y(l)||B||"private"===C?"personal":"system";return{id:c,provider:d,authType:e,name:g??null,email:i??null,priority:j??null,isActive:+(!1!==k),scope:D,ownerUser:B,createdByUser:x(o),visibility:C||("personal"===D?"private":"system"),data:(0,f.s)(v),createdAt:q,updatedAt:r}}(b,c);a.run(`INSERT INTO providerConnections(id, provider, authType, name, email, priority, isActive, scope, ownerUser, createdByUser, visibility, data, createdAt, updatedAt)
|
|
479
479
|
VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
480
480
|
ON CONFLICT(id) DO UPDATE SET
|
|
481
481
|
provider=excluded.provider, authType=excluded.authType, name=excluded.name,
|