@jheavenknows/bluerouter 5.3.47 → 5.3.49
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 +7 -4
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +59 -31
- package/app/.next-cli-build/routes-manifest.json +18 -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 +5 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page_client-reference-manifest.js +1 -0
- 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/local-ai-report/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/local-ai-report/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_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 +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +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/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 +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +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/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +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/routing-topology/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-topology/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 +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_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 +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/audit-proxy/ca/route.js +18 -0
- package/app/.next-cli-build/server/app/api/audit-proxy/ca/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/audit-proxy/ca/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/audit-proxy/route.js +38 -0
- package/app/.next-cli-build/server/app/api/audit-proxy/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/audit-proxy/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/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/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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js +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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-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 +2 -2
- 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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/qwen-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/config/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/config/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/heartbeat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/heartbeat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/command/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/command/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/snapshot/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cluster/snapshot/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +2 -2
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/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/local-ai-report/route.js +2 -2
- package/app/.next-cli-build/server/app/api/dashboard/local-ai-report/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/routing-topology/config/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/routing-topology/config/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/routing-topology/live/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/routing-topology/live/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/routing-topology/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/routing-topology/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 +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/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 +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/[id]/route.js +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 +2 -2
- 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/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/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/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 +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/!KGRhc2hib2FyZCk/dashboard/ai-power-index/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/api-keys.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/api-keys.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys/__PAGE__.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_full.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/audit-proxy.html +1 -0
- package/app/.next-cli-build/server/app/dashboard/audit-proxy.meta +36 -0
- package/app/.next-cli-build/server/app/dashboard/audit-proxy.rsc +25 -0
- package/app/.next-cli-build/server/app/dashboard/audit-proxy.segments/!KGRhc2hib2FyZCk/dashboard/audit-proxy/__PAGE__.segment.rsc +32 -0
- package/app/.next-cli-build/server/app/dashboard/audit-proxy.segments/_full.segment.rsc +25 -0
- package/app/.next-cli-build/server/app/dashboard/audit-proxy.segments/_tree.segment.rsc +4 -0
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- 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 +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/model-profiles/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cluster.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cluster.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk/dashboard/cluster/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.segments/!KGRhc2hib2FyZCk/dashboard/local-ai-report/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.segments/_tree.segment.rsc +2 -2
- 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 +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/provider-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/provider-health.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard/resource-monitor/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-topology.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-topology.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/routing-topology.segments/!KGRhc2hib2FyZCk/dashboard/routing-topology/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/routing-topology.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/routing-topology.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- 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 +6 -6
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- 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 +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
- 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 +7 -7
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
- 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 +7 -4
- package/app/.next-cli-build/server/chunks/2566.js +2 -2
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/5210.js +3 -3
- package/app/.next-cli-build/server/chunks/6108.js +1 -1
- package/app/.next-cli-build/server/chunks/6328.js +1 -1
- package/app/.next-cli-build/server/chunks/6811.js +1 -1
- package/app/.next-cli-build/server/chunks/6992.js +1 -1
- package/app/.next-cli-build/server/chunks/7639.js +1 -1
- package/app/.next-cli-build/server/chunks/8352.js +2 -2
- package/app/.next-cli-build/server/chunks/8946.js +2 -2
- package/app/.next-cli-build/server/functions-config-manifest.json +2 -0
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.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/prefetch-hints.json +24 -0
- package/app/.next-cli-build/static/L_h01kCNsdvHq-NfbF9cq/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/{5263-7e4da67adf06eccf.js → 5263-4d0783ef24c50911.js} +1 -1
- package/app/.next-cli-build/static/chunks/7050-a706e6827db952b3.js +1 -0
- package/app/.next-cli-build/static/chunks/8500-01a63dafd809e317.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/api-keys/{page-653c30e1cfc826ad.js → page-a979b53a0e095564.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/audit-proxy/page-3f3d666087630a55.js +5 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-756885e39ef00c20.js → page-65c05edc9521c8fc.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-1b504e40c85200fe.js → page-0193441bced46de6.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/model-profiles/{page-08c194e770f52b58.js → page-7844bf2031454b1c.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-5ee83aae55928333.js → page-fd337e41209f4b90.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-4639baaf9071ffff.js → page-7f613428dc68ec6e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-c06fac9001a0ff2b.js → page-cc31ec395c8b0116.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/{page-7e360930d0ecbe91.js → page-fb3cdf0c2e7742b6.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-5016b3d6e5295239.js → page-12700e16781ed896.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-82071dc65929d1a2.js → page-f1b6603d564d76e3.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-db01b84cc209b4f9.js → page-50c464dc6ec10d2f.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-700b671f2e833c31.js → page-82923ad2695bf65f.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-054e65328f040baf.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/{page-7e360930d0ecbe91.js → page-fb3cdf0c2e7742b6.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/personalcloudprovider/{layout-83fbe505bfd1d46f.js → layout-b6944f78d9c0e80c.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/personalcloudprovider/{page-2e31214e45dd5dd7.js → page-89759854090658c5.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/personalcloudprovidermonitor/{page-8e723a2203914aed.js → page-ae4159241f66d5fa.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-007560f58f9ba8fd.js → page-6c370ee99bad6882.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-8619c99c9e76cc49.js → page-951afd9955093a68.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-c4bf38103d1317a3.js → page-b264785b8e695d7a.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-97e8bd5381f6b48c.js → page-983bcf0c76f9029e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-44cf1f0d3d57fab2.js → page-fafe439299f350bf.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-23ecefa1f8d06ab3.js → page-a05ac739ed8f8677.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-a96f92cdf7ccaa92.js → page-59d8a02c13292a77.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-dc2a0d576213c24f.js → page-9eaf4a3d688f4243.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-e814d95a2e7f4fe2.js → page-b4ab0d22383a8303.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-bb6fdba0137a6272.js → layout-43b9cc22f69b564c.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/ca/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/view-mode/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/cloud-models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/config/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/heartbeat/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/command/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/snapshot/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/sync/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/test/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/ai-power-index/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/ai-models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/analyze/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/local-ai-report/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/routing-topology/config/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/routing-topology/live/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/routing-topology/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/caveman-test/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/device-code/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/poll/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/move/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/monitor/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/shares/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/visibility/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/catalog/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-health/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/openai-compatible/manage/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/[id]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/ai-models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/analyze/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/history/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/restart/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-f5efd20f46cedab1.js +1 -0
- package/app/.next-cli-build/static/css/150584b47405f066.css +1 -0
- package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.3.40-to-5.3.41-5.3.41-20260821-072821 → upgrade-5.3.46-to-5.3.47-5.3.47-20260822-172255}/data.sqlite +0 -0
- package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite +0 -0
- package/app/package.json +1 -1
- package/package.json +1 -1
- package/app/.next-cli-build/static/WzpaETe2CHJPwZBBssQBx/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/1997-ec155690a9441b82.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-df910327664404cc.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/view-mode/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/cloud-models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/config/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/heartbeat/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/command/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/snapshot/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/sync/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/test/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/ai-power-index/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/ai-models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/analyze/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/local-ai-report/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/routing-topology/config/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/routing-topology/live/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/routing-topology/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/caveman-test/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/device-code/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/poll/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/move/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/monitor/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/shares/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/visibility/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/catalog/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-health/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/openai-compatible/manage/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/[id]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/ai-models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/analyze/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/history/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/restart/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-1ae9897b4a00731e.js +0 -1
- package/app/.next-cli-build/static/css/b5abfe9c2085ba8e.css +0 -1
- package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/upgrade-5.3.41-to-5.3.43-5.3.43-20260822-131146/data.sqlite +0 -0
- /package/app/.next-cli-build/static/{WzpaETe2CHJPwZBBssQBx → L_h01kCNsdvHq-NfbF9cq}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var a={};a.id=7593,a.ids=[7593],a.modules={1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3374:(a,b,c)=>{Promise.resolve().then(c.bind(c,68070)),Promise.resolve().then(c.bind(c,13071)),Promise.resolve().then(c.bind(c,61632))},4573:a=>{"use strict";a.exports=require("node:buffer")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13071:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\bluerouter\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\api-keys\\\\ApplyDefaultModelsToExistingKeys.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\bluerouter\\src\\app\\(dashboard)\\dashboard\\api-keys\\ApplyDefaultModelsToExistingKeys.js","default")},17845:()=>{},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{"use strict";a.exports=require("process")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34631:a=>{"use strict";a.exports=require("tls")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41204:a=>{"use strict";a.exports=require("string_decoder")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},53443:(a,b,c)=>{"use strict";c.d(b,{Ek:()=>o,FY:()=>s,H1:()=>p,O0:()=>h,Zn:()=>t,cL:()=>q,j5:()=>n,pA:()=>d,u1:()=>r});let d=["coder","fast","thinking"],e=["claude","codex"],f={claude:"claude/",codex:"codex/"},g={coder:{model:"",contextWindow:0},fast:{model:"",contextWindow:0},thinking:{model:"",contextWindow:0}},h={version:2,local:{enabled:!0,providerName:"Local AI",autoCompactPct:75,models:{coder:{model:"programmer",contextWindow:12e4},fast:{model:"programmer-fast",contextWindow:12e4},thinking:{model:"programmer",contextWindow:12e4}}},cloud:{claude:{enabled:!1,providerName:"Claude Code Cloud",models:g},codex:{enabled:!1,providerName:"Codex Cloud",models:g}}};function i(a,b=300){return String(a??"").trim().slice(0,b)}function j(a,b){let c=Number(a);return!Number.isFinite(c)||c<=0?b:Math.floor(c)}function k(a,b=75){let c=Number(a);return Number.isFinite(c)?Math.min(100,Math.max(1,Math.floor(c))):b}function l(a,b,{local:c}){let e=a&&"object"==typeof a&&!Array.isArray(a)?a:{},f=e.models&&"object"==typeof e.models&&!Array.isArray(e.models)?e.models:{},g={};for(let a of d)g[a]=function(a,b,{local:c}){let d=a&&"object"==typeof a&&!Array.isArray(a)?a:{};return{model:i(Object.prototype.hasOwnProperty.call(d,"model")?d.model:b.model),contextWindow:c?j(d.contextWindow,b.contextWindow||12e4):0}}(f[a],b.models[a],{local:c});let h={enabled:Object.prototype.hasOwnProperty.call(e,"enabled")?!0===e.enabled:b.enabled,providerName:i(Object.prototype.hasOwnProperty.call(e,"providerName")?e.providerName:b.providerName,80)||b.providerName,models:g};return c&&(h.autoCompactPct=k(e.autoCompactPct,b.autoCompactPct)),h}function m(a,b){if(!a||"object"!=typeof a||Array.isArray(a)||a.claude||a.codex)return null;let c=a.models&&"object"==typeof a.models&&!Array.isArray(a.models)?a.models:{},e=d.map(a=>i(c?.[a]?.model)).filter(Boolean),g=f[b];return g&&0!==e.length&&e.every(a=>a.startsWith(g))?a:null}function n(a={}){let b=a&&"object"==typeof a&&!Array.isArray(a)?a:{},c=b.cloud&&"object"==typeof b.cloud&&!Array.isArray(b.cloud)?b.cloud:{};return{version:2,local:l(b.local,h.local,{local:!0}),cloud:{claude:l(c.claude||m(c,"claude"),h.cloud.claude,{local:!1}),codex:l(c.codex||m(c,"codex"),h.cloud.codex,{local:!1})}}}function o(a,b){return e.includes(b)&&a?.cloud?.[b]||null}function p(a){return f[a]||""}function q(a,b,c=""){return i(a?.models?.[b]?.model)||c}function r(a,b,c=12e4){return j(a?.models?.[b]?.contextWindow,c)}function s(a){return[...new Set(d.map(b=>q(a,b)).filter(Boolean))]}function t(a){return Math.max(1,Math.floor(r(a,"coder")*k(a?.autoCompactPct)/100))}},55511:a=>{"use strict";a.exports=require("crypto")},61345:(a,b,c)=>{"use strict";c.d(b,{default:()=>h});var d=c(48249),e=c(67484),f=c(50412),g=c(20151);function h(){let[a,b]=(0,e.useState)(!1),[c,h]=(0,e.useState)(!1),[i,j]=(0,e.useState)(""),[k,l]=(0,e.useState)(""),{isAdmin:m}=(0,g.s)();if(!m)return null;let n=async()=>{b(!1),h(!0),j(""),l("");try{let a=await fetch("/api/keys",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({applyDefaultModelsToExistingKeys:!0})}),b=await a.json().catch(()=>({}));if(!a.ok)throw Error(b.error||"Kh\xf4ng th\xeam được default models v\xe0o API key hiện c\xf3");let c=b.apiKeyDefaultModelsApplied||{},d=Number(c.updated||0),e=Number(c.unchanged||0),f=Number(c.legacyFullAccessSkipped||0),g=`Đ\xe3 bổ sung default models cho ${d} API key. ${e} key đ\xe3 c\xf3 đủ model; ${f} key Legacy full access được giữ nguy\xean.`;window.sessionStorage.setItem("api-keys-bulk-default-models-result",g),window.location.reload()}catch(a){l(a?.message||"Kh\xf4ng th\xeam được default models v\xe0o API key hiện c\xf3")}finally{h(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 rounded-2xl border border-border bg-surface/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0 text-sm",children:[(0,d.jsx)("div",{className:"font-medium text-text-main",children:"\xc1p Default models cho API key hiện c\xf3"}),(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Chỉ th\xeam model c\xf2n thiếu; kh\xf4ng x\xf3a model đ\xe3 g\xe1n v\xe0 kh\xf4ng thu hẹp quyền của key Legacy full access."}),i?(0,d.jsx)("div",{className:"mt-1 text-xs text-emerald-700 dark:text-emerald-300",children:i}):null,k?(0,d.jsx)("div",{className:"mt-1 text-xs text-red-600",children:k}):null]}),(0,d.jsx)(f.$n,{size:"sm",variant:"outline",onClick:()=>b(!0),disabled:c,children:c?"Đang th\xeam...":"Th\xeam Default models v\xe0o tất cả API key"})]}),(0,d.jsx)(f.uo,{isOpen:a,onClose:()=>!c&&b(!1),onConfirm:n,title:"Th\xeam Default models v\xe0o tất cả API key?",message:"Hệ thống sẽ th\xeam c\xe1c Default models đ\xe3 lưu v\xe0o mọi API key c\xf3 danh s\xe1ch model giới hạn. Model đ\xe3 g\xe1n sẵn vẫn được giữ nguy\xean. API key Legacy full access sẽ kh\xf4ng bị thay đổi để tr\xe1nh v\xf4 t\xecnh thu hẹp quyền truy cập.",confirmText:"Th\xeam v\xe0o tất cả",cancelText:"Hủy"})]})}},61632:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\bluerouter\\\\src\\\\shared\\\\cli-guides\\\\CliGuideModalProvider.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\bluerouter\\src\\shared\\cli-guides\\CliGuideModalProvider.js","default")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{"use strict";a.exports=import("pg")},66136:a=>{"use strict";a.exports=require("timers")},66422:(a,b,c)=>{Promise.resolve().then(c.bind(c,86396)),Promise.resolve().then(c.bind(c,61345)),Promise.resolve().then(c.bind(c,79866))},68070:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\bluerouter\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\api-keys\\\\ApiKeysPageClient.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\bluerouter\\src\\app\\(dashboard)\\dashboard\\api-keys\\ApiKeysPageClient.js","default")},73024:a=>{"use strict";a.exports=require("node:fs")},74075:a=>{"use strict";a.exports=require("zlib")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},77619:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h});var d=c(5735),e=c(68070),f=c(13071),g=c(61632);function h(){return(0,d.jsx)(g.default,{children:(0,d.jsxs)("div",{className:"api-keys-page",children:[(0,d.jsx)(f.default,{}),(0,d.jsx)(e.default,{})]})})}c(17845)},78516:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>w,handler:()=>y,routeModule:()=>x});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,32059))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u={children:["",{children:["(dashboard)",{children:["dashboard",{children:["api-keys",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,77619))),"D:\\bluerouter\\src\\app\\(dashboard)\\dashboard\\api-keys\\page.js"]}]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"D:\\bluerouter\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"D:\\bluerouter\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,v=(0,e.H)({tree:u,page:"/(dashboard)/dashboard/api-keys/page",pathname:"/dashboard/api-keys",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),w=v.__next_app__,x=v.routeModule,y=v.handler},79428:a=>{"use strict";a.exports=require("buffer")},79748:a=>{"use strict";a.exports=require("fs/promises")},79866:(a,b,c)=>{"use strict";c.d(b,{default:()=>D});var d=c(48249),e=c(67484),f=c(7806),g=c(2116),h=c.n(g),i=c(50412),j=c(20151),k=c(50377),l=c(53443);let m="https://models-gateway.example.com";function n(a,b=""){return String(a??"").trim()||b}function o(a){let b=String(a??"").trim().replace(/\/+$/,"");return b?/\/v1$/.test(b)?b:`${b}/v1`:b}function p(a){return String(a??"").trim().replace(/\/+$/,"").replace(/\/v1$/,"")}function q(a){return String(a??"").replace(/`/g,"``").replace(/"/g,'`"')}function r(a){let b=new Map;for(let c of l.pA){let d=(0,l.cL)(a,c);if(!d)continue;let e=b.get(d);e?(e.roles.push(c),e.contextWindow=Math.max(e.contextWindow,(0,l.u1)(a,c))):b.set(d,{model:d,roles:[c],contextWindow:(0,l.u1)(a,c)})}return[...b.values()]}let s={claude:"Claude Code",opencode:"OpenCode",codex:"Codex",qwen:"Qwen Code"},t=new Set(["claude","codex"]);function u(a){let b=String(a||"");return b?b.length<=12?`${b.slice(0,4)}••••`:`${b.slice(0,8)}••••••••${b.slice(-4)}`:""}function v(a,b){return b?String(a||"").split(b).join(u(b)):a}function w({label:a,model:b,detail:c}){return(0,d.jsxs)("div",{className:"min-w-0 rounded-xl border border-border bg-background px-3 py-2.5",children:[(0,d.jsx)("div",{className:"text-[11px] font-medium uppercase tracking-wide text-text-muted",children:a}),(0,d.jsx)("div",{className:"mt-1 truncate font-mono text-xs font-medium text-text-main",title:b||"—",children:b||"—"}),(0,d.jsx)("div",{className:"mt-1 truncate text-[11px] text-text-muted",title:c,children:c})]})}function x({enabled:a,coder:b,apiKey:c,missingModels:e}){return a?b?c?e.length>0?(0,d.jsxs)("div",{className:"min-h-[44px] rounded-xl border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:["API key chưa được cấp quyền cho ",(0,d.jsx)("span",{className:"font-mono",children:e.join(", ")}),". Guide kh\xf4ng tự fallback model kh\xe1c."]}):(0,d.jsxs)("div",{className:"flex min-h-[44px] items-center gap-2 rounded-xl border border-emerald-500/20 bg-emerald-500/5 px-3 py-2 text-xs text-text-muted",children:[(0,d.jsx)("span",{className:"size-1.5 shrink-0 rounded-full bg-emerald-500"}),"Config sẵn s\xe0ng để copy v\xe0 \xe1p dụng."]}):(0,d.jsx)("div",{className:"flex min-h-[44px] items-center rounded-xl border border-red-500/30 bg-red-500/10 px-3 py-2 text-xs text-red-600",children:"Kh\xf4ng đọc được API key từ modal hiện tại."}):(0,d.jsx)("div",{className:"flex min-h-[44px] items-center rounded-xl border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:"Chưa cấu h\xecnh Coder model cho profile n\xe0y."}):(0,d.jsx)("div",{className:"flex min-h-[44px] items-center rounded-xl border border-dashed border-border px-3 py-2 text-xs text-text-muted",children:"Profile đang tắt. Admin c\xf3 thể bật trong CLI Model Settings."})}function y({tool:a,profile:b}){if("claude"!==a&&"codex"!==a)return null;let c=(0,l.u1)(b,"coder"),e=(0,l.u1)(b,"fast"),f=(0,l.u1)(b,"thinking"),g=Number(b?.autoCompactPct||75),h=(0,l.Zn)(b),i=new Set([c,e,f]).size>1;return(0,d.jsx)("div",{className:"mt-3 overflow-hidden rounded-xl border-2 border-amber-400/60 bg-amber-500/10 shadow-sm dark:border-amber-400/40",children:(0,d.jsxs)("div",{className:"flex gap-3 p-3 sm:p-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-[22px] text-amber-600 dark:text-amber-300",children:"warning"}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("div",{className:"text-sm font-semibold text-amber-800 dark:text-amber-200",children:"Quan trọng khi đổi model Local"}),"claude"===a?(0,d.jsxs)("p",{className:"mt-1.5 text-xs leading-5 text-amber-900/90 dark:text-amber-100/90",children:["Config b\xean dưới đang đặt ",(0,d.jsxs)("code",{className:"rounded bg-amber-500/10 px-1 font-mono font-semibold",children:["CLAUDE_CODE_AUTO_COMPACT_WINDOW=",c]})," theo ",(0,d.jsx)("strong",{children:"Coder"}),". Nếu bạn đổi model Local đang sử dụng sang Fast, Thinking hoặc model kh\xe1c c\xf3 Max Context kh\xe1c, ",(0,d.jsx)("strong",{children:"kh\xf4ng chỉ đổi t\xean model"})," — h\xe3y sửa ",(0,d.jsx)("code",{className:"rounded bg-amber-500/10 px-1 font-mono",children:"CLAUDE_CODE_AUTO_COMPACT_WINDOW"})," theo đ\xfang Max Context của model đ\xf3 trước khi chạy. ",(0,d.jsx)("code",{className:"rounded bg-amber-500/10 px-1 font-mono",children:"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE"})," hiện l\xe0 ",(0,d.jsxs)("strong",{children:[g,"%"]}),"."]}):(0,d.jsxs)("p",{className:"mt-1.5 text-xs leading-5 text-amber-900/90 dark:text-amber-100/90",children:["Config b\xean dưới đang t\xednh theo ",(0,d.jsx)("strong",{children:"Coder"}),": ",(0,d.jsxs)("code",{className:"rounded bg-amber-500/10 px-1 font-mono font-semibold",children:["model_context_window=",c]})," v\xe0 ",(0,d.jsxs)("code",{className:"rounded bg-amber-500/10 px-1 font-mono font-semibold",children:["model_auto_compact_token_limit=",h]}),". Nếu bạn đổi model Local đang sử dụng, ",(0,d.jsx)("strong",{children:"kh\xf4ng chỉ đổi t\xean model"})," — h\xe3y cập nhật ",(0,d.jsx)("code",{className:"rounded bg-amber-500/10 px-1 font-mono",children:"model_context_window"})," theo Max Context mới v\xe0 t\xednh lại ",(0,d.jsx)("code",{className:"rounded bg-amber-500/10 px-1 font-mono",children:"model_auto_compact_token_limit"})," theo mức ",(0,d.jsxs)("strong",{children:[g,"%"]}),"."]}),i?(0,d.jsxs)("div",{className:"mt-2 flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-amber-400/30 bg-background/70 px-2.5 py-2 font-mono text-[11px] text-amber-900 dark:text-amber-100",children:[(0,d.jsxs)("span",{children:["Coder: ",c.toLocaleString()]}),(0,d.jsxs)("span",{children:["Fast: ",e.toLocaleString()]}),(0,d.jsxs)("span",{children:["Thinking: ",f.toLocaleString()]})]}):null]})]})})}function z({activeView:a,setActiveView:b,configMeta:c,config:e,applyCommands:f}){let g="config"===a;return(0,d.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border bg-background",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border bg-surface/60 px-3 py-2.5 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"inline-flex w-fit rounded-lg border border-border bg-background p-1",children:[(0,d.jsx)("button",{type:"button",onClick:()=>b("config"),className:`rounded-md px-3 py-1.5 text-xs font-medium transition ${g?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text-main"}`,children:c.label}),(0,d.jsx)("button",{type:"button",onClick:()=>b("powershell"),className:`rounded-md px-3 py-1.5 text-xs font-medium transition ${!g?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text-main"}`,children:"PowerShell"})]}),(0,d.jsx)("span",{className:"truncate font-mono text-[11px] text-text-muted",children:g?c.path:"Apply config on Windows"})]}),(0,d.jsx)("pre",{className:"h-[340px] overflow-auto p-4 text-[11px] leading-5 text-text-main custom-scrollbar",children:g?e:f})]})}function A({scope:a,profile:b,tool:c,baseUrl:f,apiKey:g,selectedKey:h,copied:j,copy:k}){let[t,u]=(0,e.useState)("config"),B="local"===a,C=b?.enabled===!0,D=(0,l.cL)(b,"coder"),E=(0,l.cL)(b,"fast",D),F=(0,l.cL)(b,"thinking",D),G=function(a){switch(a){case"claude":return{label:"settings.json",path:"%USERPROFILE%\\.claude\\settings.json",command:"claude"};case"opencode":return{label:"opencode.json",path:"%APPDATA%\\opencode\\opencode.json",command:"opencode"};case"codex":return{label:"config.toml",path:"%USERPROFILE%\\.codex\\config.toml",command:"codex"};case"qwen":return{label:"settings.json",path:"%USERPROFILE%\\.qwen\\settings.json",command:"qwen"};default:return{label:"config",path:"",command:""}}}(c),H=C&&!!D&&!!g,I=H?function({tool:a,baseUrl:b,apiKey:c,profile:d,scope:e}){switch(a){case"claude":return function({baseUrl:a,apiKey:b,profile:c,scope:d}){let e=(0,l.cL)(c,"coder","programmer"),f=(0,l.cL)(c,"fast",e),g=(0,l.cL)(c,"thinking",e),h={ANTHROPIC_BASE_URL:p(n(a,m)),ANTHROPIC_AUTH_TOKEN:n(b,"sk-xxxxx"),ANTHROPIC_MODEL:e,ANTHROPIC_SMALL_FAST_MODEL:f,ANTHROPIC_DEFAULT_OPUS_MODEL:g,ANTHROPIC_DEFAULT_SONNET_MODEL:e,ANTHROPIC_DEFAULT_HAIKU_MODEL:f};return"local"===d&&(h.CLAUDE_CODE_AUTO_COMPACT_WINDOW=String((0,l.u1)(c,"coder")),h.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=String(c.autoCompactPct||75)),JSON.stringify({env:h,theme:"dark",hasCompletedOnboarding:!0},null,2)}({baseUrl:b,apiKey:c,profile:d,scope:e});case"opencode":return function({baseUrl:a,apiKey:b,profile:c,scope:d}){let e=(0,l.cL)(c,"coder","programmer"),f=(0,l.cL)(c,"fast",e),g=(0,l.cL)(c,"thinking",e),h={};for(let a of r(c)){let b={name:a.model};"local"===d&&(b.limit={context:a.contextWindow,output:Math.min(3e4,Math.max(4096,Math.floor(a.contextWindow/4)))}),h[a.model]=b}let i={explorer:{description:"Fast explorer subagent for codebase exploration",mode:"subagent",model:`bluerouter/${f}`}};g&&g!==e&&(i.thinking={description:"Thinking/reasoning subagent",mode:"subagent",model:`bluerouter/${g}`});let j={$schema:"https://opencode.ai/config.json",provider:{bluerouter:{npm:"@ai-sdk/openai-compatible",name:"BlueRouter",options:{baseURL:o(n(a,m)),apiKey:n(b,"sk-xxxxx")},models:h}},model:`bluerouter/${e}`,small_model:`bluerouter/${f}`,agent:i};return"local"===d&&(j.compaction={auto:!0,prune:!0,reserved:Math.max(4096,(0,l.u1)(c,"coder")-(0,l.Zn)(c))}),JSON.stringify(j,null,2)}({baseUrl:b,apiKey:c,profile:d,scope:e});case"codex":return function({baseUrl:a,profile:b,scope:c}){let d=(0,l.cL)(b,"coder","programmer"),e=(0,l.cL)(b,"fast",d),f=(0,l.cL)(b,"thinking",d),g=[`model = "${d}"`,'model_provider = "bluerouter"'];return"local"===c&&g.push(`model_context_window = ${(0,l.u1)(b,"coder")}`,`model_auto_compact_token_limit = ${(0,l.Zn)(b)}`,'model_auto_compact_token_limit_scope = "total"'),g.push("","[model_providers.bluerouter]",'name = "BlueRouter"',`base_url = "${p(n(a,m))}"`,'env_key = "OPENAI_API_KEY"','wire_api = "responses"'),e&&g.push("","[profiles.fast]",`model = "${e}"`,'model_provider = "bluerouter"'),f&&f!==e&&g.push("","[profiles.thinking]",`model = "${f}"`,'model_provider = "bluerouter"'),g.join("\n")}({baseUrl:b,profile:d,scope:e});case"qwen":return function({baseUrl:a,apiKey:b,profile:c,scope:d}){let e=(0,l.cL)(c,"coder","programmer"),f=r(c).map(b=>{let c=new Set(b.roles),e=c.has("fast")&&!c.has("coder")&&!c.has("thinking"),f={timeout:e?6e4:12e4,maxRetries:2,samplingParams:{temperature:.2,...e?{max_tokens:4096}:{}}};return e&&(f.reasoning=!1),"local"===d&&(f.contextWindowSize=b.contextWindow),{id:b.model,name:b.model,envKey:"OPENAI_API_KEY",baseUrl:o(n(a,m)),generationConfig:f}});return JSON.stringify({env:{OPENAI_API_KEY:n(b,"sk-xxxxx")},security:{auth:{selectedType:"openai"}},model:{name:e},modelProviders:{openai:f}},null,2)}({baseUrl:b,apiKey:c,profile:d,scope:e});default:return""}}({tool:c,baseUrl:f,apiKey:g,profile:b,scope:a}):"",J=H?function({tool:a,config:b,apiKey:c,baseUrl:d,profile:e}){let f=(0,l.cL)(e,"coder","programmer"),g=q(c),h=q(o(n(d,m))),i=q(f),j="$utf8NoBom = New-Object System.Text.UTF8Encoding $false";switch(a){case"claude":return["mkdir $env:USERPROFILE\\.claude -Force",j,'[System.IO.File]::WriteAllText("$env:USERPROFILE\\.claude\\settings.json", @\'',b,"'@, $utf8NoBom)\ncd D:\\path\\to\\your-project\nclaude"].join("\n");case"opencode":return["mkdir $env:APPDATA\\opencode -Force",j,'[System.IO.File]::WriteAllText("$env:APPDATA\\opencode\\opencode.json", @\'',b,"'@, $utf8NoBom)\ncd D:\\path\\to\\your-project\nopencode"].join("\n");case"codex":return["mkdir $env:USERPROFILE\\.codex -Force",j,'[System.IO.File]::WriteAllText("$env:USERPROFILE\\.codex\\config.toml", @\'',b,"'@, $utf8NoBom)",`$env:OPENAI_API_KEY = "${g}"`,`setx OPENAI_API_KEY "${g}"`,"cd D:\\path\\to\\your-project\ncodex"].join("\n");case"qwen":return["mkdir $env:USERPROFILE\\.qwen -Force",j,'[System.IO.File]::WriteAllText("$env:USERPROFILE\\.qwen\\settings.json", @\'',b,"'@, $utf8NoBom)",`$env:OPENAI_API_KEY = "${g}"`,`$env:OPENAI_BASE_URL = "${h}"`,`$env:OPENAI_MODEL = "${i}"`,`setx OPENAI_API_KEY "${g}"`,`setx OPENAI_BASE_URL "${h}"`,`setx OPENAI_MODEL "${i}"`,"cd D:\\path\\to\\your-project\nqwen"].join("\n");default:return""}}({tool:c,config:I,apiKey:g,baseUrl:f,profile:b}):"",K=Array.isArray(h?.allowedModels)?h.allowedModels:[],L=K.length>0?(0,l.FY)(b).filter(a=>!K.includes(a)):[],M=`${c}-${a}`,N=B?`${b?.autoCompactPct||75}% \xb7 ${(0,l.Zn)(b).toLocaleString()} tokens`:"Managed by cloud provider";return(0,d.jsxs)("section",{className:"flex min-w-0 flex-col rounded-2xl border border-border bg-surface/40 p-4 shadow-sm sm:p-5",children:[(0,d.jsxs)("div",{className:"flex min-h-[72px] items-start justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"rounded-full border border-border bg-background px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.12em] text-text-muted",children:B?"Local":"Cloud"}),(0,d.jsx)("h3",{className:"truncate text-base font-semibold text-text-main",children:b?.providerName||(B?"Local AI":"Cloud AI")})]}),(0,d.jsx)("p",{className:"mt-1.5 text-xs leading-5 text-text-muted",children:B?"Local model, context v\xe0 auto-compact do admin quản l\xfd.":`Cloud mapping ri\xeang cho ${s[c]}; kh\xf4ng d\xf9ng chung model với CLI kh\xe1c.`})]}),(0,d.jsx)("span",{className:`shrink-0 rounded-full px-2.5 py-1 text-[11px] font-medium ${C?"bg-emerald-500/10 text-emerald-600 dark:text-emerald-300":"bg-background text-text-muted"}`,children:C?"Enabled":"Disabled"})]}),(0,d.jsxs)("div",{className:"mt-4 grid gap-2 sm:grid-cols-3",children:[(0,d.jsx)(w,{label:"Coder",model:D,detail:B&&D?`${(0,l.u1)(b,"coder").toLocaleString()} tokens`:"Primary model"}),(0,d.jsx)(w,{label:"Fast",model:E,detail:B&&E?`${(0,l.u1)(b,"fast").toLocaleString()} tokens`:"Fast profile"}),(0,d.jsx)(w,{label:"Thinking",model:F,detail:B&&F?`${(0,l.u1)(b,"thinking").toLocaleString()} tokens`:"Reasoning profile"})]}),(0,d.jsxs)("div",{className:"mt-2 flex min-h-[40px] items-center justify-between gap-3 rounded-xl border border-border bg-background px-3 py-2 text-xs",children:[(0,d.jsx)("span",{className:"text-text-muted",children:B?"Auto compact":"Context policy"}),(0,d.jsx)("span",{className:"truncate text-right font-medium text-text-main",children:N})]}),(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)(x,{enabled:C,coder:D,apiKey:g,missingModels:L})}),B&&H?(0,d.jsx)(y,{tool:c,profile:b}):null,H?(0,d.jsxs)("div",{className:"mt-4",children:[(0,d.jsx)(z,{activeView:t,setActiveView:u,configMeta:G,config:v(I,g),applyCommands:v(J,g)}),(0,d.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-end gap-2",children:[(0,d.jsx)(i.$n,{variant:"outline",size:"sm",onClick:()=>k(J,`${M}-apply`),children:j===`${M}-apply`?"Đ\xe3 copy PowerShell":"Copy PowerShell"}),(0,d.jsx)(i.$n,{size:"sm",onClick:()=>k(I,`${M}-config`),children:j===`${M}-config`?"Đ\xe3 copy config":`Copy ${G.label}`})]})]}):null]})}function B({tool:a,seed:b}){let[c,f]=(0,e.useState)(()=>(0,l.j5)(l.O0)),[g,m]=(0,e.useState)(null),[n,o]=(0,e.useState)(!0),[p,q]=(0,e.useState)(""),{copied:r,copy:v}=(0,k.C)(),{isAdmin:w,isMonitorAdmin:x,canManageApiKeys:y}=(0,j.s)(),z=String(b?.apiKey||""),C=String(b?.baseUrl||"");String(b?.keyName||"");let D=s[a]||"CLI",E=(0,e.useMemo)(()=>(function(a){switch(a){case"claude":return"# C\xe1ch 1: PowerShell installer\nirm https://claude.ai/install.ps1 | iex\n\n# C\xe1ch 2: CMD installer\ncurl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd\n\n# C\xe1ch 3: npm (cần c\xe0i Node.js trước)\nnpm install -g @anthropic-ai/claude-code\nclaude --version";case"opencode":return"npm install -g opencode-ai\nopencode --version";case"codex":return"npm install -g @openai/codex\ncodex --version";case"qwen":return"npm install -g @qwen-code/qwen-code\nqwen --version";default:return""}})(a),[a]),F=t.has(a),G=(0,l.Ek)(c,a);return(0,d.jsxs)("div",{className:"space-y-4 pb-1",children:[(0,d.jsx)("div",{className:"rounded-2xl border border-border bg-surface/35 p-4 sm:p-5",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"rounded-full border border-primary/20 bg-primary/5 px-2.5 py-1 text-[11px] font-semibold text-primary",children:D}),(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Configuration guide"})]}),(0,d.jsx)("p",{className:"mt-2 max-w-4xl text-sm leading-6 text-text-muted",children:F?`Chọn Local hoặc ${D} Cloud. Hai profile độc lập nhưng d\xf9ng chung API key v\xe0 gateway.`:`${D} chỉ sử dụng Local Model profile; Cloud Provider kh\xf4ng \xe1p dụng cho tool n\xe0y.`}),(0,d.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2 text-xs text-text-muted",children:[(0,d.jsxs)("span",{className:"rounded-lg border border-border bg-background px-2.5 py-1.5",children:["API key ",(0,d.jsx)("span",{className:"ml-1 font-mono text-text-main",children:u(z)||"kh\xf4ng x\xe1c định"})]}),(0,d.jsxs)("span",{className:"max-w-full rounded-lg border border-border bg-background px-2.5 py-1.5",children:["Base URL ",(0,d.jsx)("span",{className:"ml-1 break-all font-mono text-text-main",children:C||"/v1"})]})]})]}),w||x||y?(0,d.jsxs)(h(),{href:"/dashboard/cli-tools/model-profiles",className:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-xl border border-border bg-background px-3 py-2 text-sm font-medium text-text-main transition hover:border-primary/50 hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tune"}),"CLI Model Settings"]}):null]})}),n?(0,d.jsx)("div",{className:"rounded-xl border border-dashed border-border p-4 text-center text-sm text-text-muted",children:"Đang tải CLI model settings..."}):null,p?(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:p}):null,F?(0,d.jsxs)("div",{className:"grid items-stretch gap-4 xl:grid-cols-2",children:[(0,d.jsx)(A,{scope:"local",profile:c.local,tool:a,baseUrl:C,apiKey:z,selectedKey:g,copied:r,copy:v}),(0,d.jsx)(A,{scope:"cloud",profile:G,tool:a,baseUrl:C,apiKey:z,selectedKey:g,copied:r,copy:v})]}):(0,d.jsx)("div",{className:"mx-auto max-w-4xl",children:(0,d.jsx)(A,{scope:"local",profile:c.local,tool:a,baseUrl:C,apiKey:z,selectedKey:g,copied:r,copy:v})}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-surface/35 p-4 sm:p-5",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"text-sm font-semibold text-text-main",children:["C\xe0i ",D," tr\xean Windows"]}),(0,d.jsx)("p",{className:"mt-1 text-xs leading-5 text-text-muted",children:F?"Lệnh c\xe0i d\xf9ng chung cho Local v\xe0 Cloud. Sau khi c\xe0i, chọn tab PowerShell trong profile muốn \xe1p dụng.":"Sau khi c\xe0i, chọn tab PowerShell trong Local profile ph\xeda tr\xean."})]}),(0,d.jsx)(i.$n,{variant:"outline",size:"sm",onClick:()=>v(E,`${a}-install`),children:r===`${a}-install`?"Đ\xe3 copy lệnh c\xe0i":"Copy lệnh c\xe0i"})]}),(0,d.jsx)("pre",{className:"mt-3 max-h-[150px] overflow-auto rounded-xl border border-border bg-background p-3 text-[11px] leading-5 text-text-main custom-scrollbar",children:E})]}),(0,d.jsx)("div",{className:"rounded-xl border border-blue-500/20 bg-blue-500/5 px-3 py-2.5 text-xs leading-5 text-text-muted",children:"CLI Model Settings chỉ ảnh hưởng config/hướng dẫn sinh trong Dashboard. Kh\xf4ng chỉnh request pipeline, provider routing, combo, load balancing hoặc model routing runtime."})]})}let C={"Claude Code Settings":"claude","OpenCode Settings":"opencode","Codex Settings":"codex","Qwen Code Settings":"qwen"};function D({children:a}){let b=(0,e.useCallback)(({title:a,children:b})=>{let c=C[String(a||"")];if(!c)return null;let f=function(a){let b=[];!function a(b,c){if(null!=b&&"boolean"!=typeof b){if("string"==typeof b||"number"==typeof b)return void c.push(String(b));if(Array.isArray(b)){for(let d of b)a(d,c);return}(0,e.isValidElement)(b)&&a(b.props?.children,c)}}(a,b);let c=b.join("\n"),d=c.match(/\bsk-[A-Za-z0-9._~-]{8,}\b/)?.[0]||"",f="";for(let a=0;a<b.length-1;a+=1){if("API Key"!==String(b[a]).trim())continue;let c=String(b[a+1]||"").trim();if(c&&!c.startsWith("sk-")){f=c;break}}let g=(c.match(/https?:\/\/[^\s\"'<>]+/g)||[]).map(a=>a.replace(/[),.;]+$/,""));return{apiKey:d,baseUrl:g.find(a=>/\/v1\/?$/i.test(a))||g.find(a=>/\/v1(?:\/|$)/i.test(a))||"",keyName:f}}(b);return{size:"full",className:"!max-w-6xl",footer:null,children:(0,d.jsx)(B,{tool:c,seed:f},`${c}:${f.apiKey}`)}},[]);return(0,d.jsx)(f.j,{resolver:b,children:a})}},80099:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86396:(a,b,c)=>{"use strict";c.d(b,{default:()=>M});var d=c(48249),e=c(67484),f=c(50412),g=c(20151),h=c(50377);let i=Object.freeze({enabled:!0,requestsPerMinute:20,promptCharsMax:12e4,maxOutputTokens:0,forceThinkingOff:!0,allowedIpCidrs:[],expiresAt:""});function j(a){return String(a||"").trim().toLowerCase()}function k(a){return Array.isArray(a)?[...new Set(a.map(a=>String(a||"").trim()).filter(Boolean))]:[]}function l(a,b){let c=k(a?.allowedModels),d=c[0]||String(b||"programmer").trim()||"programmer",e=c.find(a=>/fast|small|haiku/i.test(a))||c.find(a=>a!==d)||d;return{codingModel:d,fastModel:e}}function m({icon:a,materialIcon:b,image:c,children:e,className:f=""}){return(0,d.jsxs)("span",{className:`inline-flex items-center gap-1.5 ${f}`,children:[c?(0,d.jsx)("img",{src:c,alt:"","aria-hidden":"true",className:"size-4 rounded-sm object-contain"}):b?(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[17px] leading-none",children:b}):a?(0,d.jsx)("span",{"aria-hidden":"true",className:"text-base leading-none",children:a}):null,(0,d.jsx)("span",{children:e})]})}function n(a,b=0){let c=Number(a);return Number.isFinite(c)?Math.max(0,Math.floor(c)):b}function o(a,b=!0){return null==a||""===a?b:!0===a||"true"===a||1===a||"1"===a}function p(a){return Array.isArray(a)?[...new Set(a.map(a=>String(a||"").trim()).filter(Boolean))]:[]}function q(a){return a&&"object"==typeof a&&!Array.isArray(a)&&Object.keys(a).length>0}function r(a={},b={}){let c={...b},d=a&&"object"==typeof a&&!Array.isArray(a)?a:{};return{enabled:o(d.enabled??c.enabled,!0),requestsPerMinute:n(d.requestsPerMinute??c.requestsPerMinute,0),promptCharsMax:n(d.promptCharsMax??c.promptCharsMax,0),maxOutputTokens:n(d.maxOutputTokens??d.outputTokensMax??d.maxTokens??d.max_tokens??d.max_completion_tokens??c.maxOutputTokens,0),forceThinkingOff:o(d.forceThinkingOff??c.forceThinkingOff,!0),allowedIpCidrs:p(d.allowedIpCidrs??c.allowedIpCidrs),expiresAt:String(d.expiresAt??c.expiresAt??"").trim()}}function s({models:a,emptyLabel:b="Chưa g\xe1n model"}){let c=k(a);return 0===c.length?(0,d.jsx)("span",{className:"text-xs text-text-muted",children:b}):(0,d.jsxs)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:[c.slice(0,8).map(a=>(0,d.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 font-mono text-xs",children:a},a)),c.length>8?(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 text-xs",children:["+",c.length-8," model kh\xe1c"]}):null]})}function t({limits:a,showThinking:b=!1,showOutputLimit:c=!1}){if(!q(a))return(0,d.jsx)("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-text-muted",children:(0,d.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"policy: chưa set, kh\xf4ng giới hạn"})});let e=r(a);return(0,d.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-text-muted",children:[(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:["policy: ",e.enabled?"bật":"tắt"]}),(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[e.requestsPerMinute||"∞"," req/ph\xfat"]}),(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[e.promptCharsMax||"∞"," chars prompt"]}),c?(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[e.maxOutputTokens||"∞"," output tokens"]}):null,b?(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:["thinking: ",e.forceThinkingOff?"force off":"client tự quyết"]}):null,e.allowedIpCidrs.length>0?(0,d.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"IP locked"}):null]})}function u({label:a,value:b,onChange:c,hint:e}){return(0,d.jsxs)("label",{className:"block",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:a}),(0,d.jsx)("input",{type:"number",min:"0",value:b,onChange:a=>c(n(a.target.value,0)),className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary"}),e?(0,d.jsx)("span",{className:"mt-1 block text-xs text-text-muted",children:e}):null]})}function v({isOpen:a,keyName:b,policy:c,setPolicy:e,onClose:g,onSave:h,onClear:j,saving:k,clearLabel:l="X\xf3a policy / kh\xf4ng limit"}){let m=r(c,i),n=(a,b)=>e(c=>r({...c,[a]:b},i));return(0,d.jsx)(f.aF,{isOpen:a,onClose:g,title:`Policy API key: ${b||"API Key"}`,size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface/60 p-3 text-sm text-text-muted",children:["Key mới tự c\xf3 ",(0,d.jsx)("b",{children:"default policy"}),". Chỉ admin được sửa policy. Request/ph\xfat = 0 nghĩa l\xe0 kh\xf4ng giới hạn tần suất. Max output tokens = 0 nghĩa l\xe0 kh\xf4ng \xe9p giới hạn output."]}),(0,d.jsxs)("label",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-3 text-sm",children:[(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{children:"Bật policy"}),(0,d.jsx)("br",{}),(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Tắt mục n\xe0y th\xec policy được lưu nhưng kh\xf4ng \xe1p limit."})]}),(0,d.jsx)("input",{type:"checkbox",checked:m.enabled,onChange:a=>n("enabled",a.target.checked)})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsx)(u,{label:"Request / ph\xfat",value:m.requestsPerMinute,onChange:a=>n("requestsPerMinute",a),hint:"0 = kh\xf4ng giới hạn tần suất. Khuyến nghị user thường: 10–20 req/ph\xfat."}),(0,d.jsx)(u,{label:"Max output tokens",value:m.maxOutputTokens,onChange:a=>n("maxOutputTokens",a),hint:"0 = kh\xf4ng giới hạn. VS Code khuyến nghị 2048–3072; chat d\xe0i 4096–8192."})]}),(0,d.jsx)(u,{label:"Prompt chars tối đa",value:m.promptCharsMax,onChange:a=>n("promptCharsMax",a),hint:"0 = kh\xf4ng giới hạn input/prompt."}),(0,d.jsxs)("label",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-3 text-sm",children:[(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{children:"Force Thinking Off"}),(0,d.jsx)("br",{}),(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Khi bật, gateway \xe9p request c\xf3 chat_template_kwargs.enable_thinking=false theo chuẩn llama.cpp."})]}),(0,d.jsx)("input",{type:"checkbox",checked:m.forceThinkingOff,onChange:a=>n("forceThinkingOff",a.target.checked)})]}),(0,d.jsxs)("label",{className:"block",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"IP/CIDR được ph\xe9p"}),(0,d.jsx)("textarea",{value:p(m.allowedIpCidrs).join("\n"),onChange:a=>n("allowedIpCidrs",[...new Set(String(a.target.value||"").split(/[\n,]+/).map(a=>a.trim()).filter(Boolean))]),rows:3,className:"w-full rounded-xl border border-border bg-background px-3 py-2 font-mono text-sm text-text-main outline-none focus:border-primary",placeholder:"10.0.0.0/8\n192.168.0.0/16"}),(0,d.jsx)("span",{className:"mt-1 block text-xs text-text-muted",children:"Để trống = mọi IP. Hỗ trợ IPv4 exact hoặc CIDR."})]}),(0,d.jsxs)("label",{className:"block",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Hết hạn l\xfac"}),(0,d.jsx)("input",{value:m.expiresAt,onChange:a=>n("expiresAt",a.target.value),className:"w-full rounded-xl border border-border bg-background px-3 py-2 font-mono text-sm text-text-main outline-none focus:border-primary",placeholder:"2026-12-31T23:59:59+07:00 hoặc để trống"})]}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:g,children:"Hủy"}),j?(0,d.jsx)(f.$n,{variant:"outline",onClick:j,disabled:k,children:l}):null,(0,d.jsx)(f.$n,{onClick:()=>h(m),disabled:k,children:k?"Đang lưu...":"Lưu policy"})]})]})})}function w({open:a,keyName:b,models:c,setModels:g,activeProviders:h,modelAliases:i,onClose:j,onSave:l,saving:m,personalOnly:n,extraModels:o}){let[p,q]=(0,e.useState)(!1),r=k(c),s=a=>{let b=a?.value||a?.name||a;g(a=>k(a).filter(a=>a!==b))};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.aF,{isOpen:a,onClose:j,title:`Model access: ${b||"API Key"}`,size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Chọn một hoặc nhiều model m\xe0 API key n\xe0y được ph\xe9p sử dụng. Trang n\xe0y kh\xf4ng cho lưu danh s\xe1ch model rỗng."}),(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsx)("span",{className:"text-sm font-medium",children:"Model được ph\xe9p d\xf9ng"}),(0,d.jsx)(f.$n,{size:"sm",variant:"outline",onClick:()=>q(!0),children:"Th\xeam model"})]}),0===r.length?(0,d.jsx)("div",{className:"rounded-xl border border-dashed border-border p-4 text-sm text-text-muted",children:"Chưa chọn model n\xe0o. H\xe3y th\xeam \xedt nhất một model trước khi lưu."}):(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>s(a),className:"rounded-full border border-primary/30 bg-primary/10 px-2 py-1 font-mono text-xs text-primary transition hover:bg-red-500/10 hover:text-red-600",title:"Bấm để gỡ model n\xe0y",children:[a," \xd7"]},a))}),(0,d.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:j,children:"Hủy"}),(0,d.jsx)(f.$n,{onClick:l,disabled:m||0===r.length,children:m?"Đang lưu...":"Lưu danh s\xe1ch model"})]})]})}),(0,d.jsx)(f.rq,{isOpen:p,onClose:()=>q(!1),onSelect:a=>{let b=a?.value||a?.name||a;b&&g(a=>k([...a,b]))},onDeselect:s,activeProviders:h,modelAliases:i,title:"Chọn model được ph\xe9p d\xf9ng",addedModelValues:r,closeOnSelect:!1,personalOnly:n,extraModels:o})]})}function x({label:a,value:b,hint:c}){return(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-surface/70 p-4",children:[(0,d.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:a}),(0,d.jsx)("div",{className:"mt-2 text-2xl font-semibold text-text-main",children:b}),c?(0,d.jsx)("div",{className:"mt-1 text-xs text-text-muted",children:c}):null]})}function y({pagination:a,pageSize:b,onPageChange:c,onPageSizeChange:e,loading:g}){let h=Number(a?.page||1),i=Number(a?.totalPages||1),j=Number(a?.total||0),k=0===j?0:(h-1)*b+1,l=Math.min(j,h*b);return(0,d.jsxs)("div",{className:"flex flex-col gap-3 border-t border-border px-4 py-3 md:flex-row md:items-center md:justify-between",children:[(0,d.jsxs)("div",{className:"text-sm text-text-muted",children:["Hiển thị ",(0,d.jsx)("b",{children:k}),"–",(0,d.jsx)("b",{children:l})," / ",(0,d.jsx)("b",{children:j})," API keys"]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsxs)("select",{value:b,onChange:a=>e(Number(a.target.value)),className:"rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",disabled:g,children:[(0,d.jsx)("option",{value:25,children:"25 / trang"}),(0,d.jsx)("option",{value:50,children:"50 / trang"}),(0,d.jsx)("option",{value:100,children:"100 / trang"})]}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>c(1),disabled:g||h<=1,children:"Đầu"}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>c(Math.max(1,h-1)),disabled:g||h<=1,children:"Trước"}),(0,d.jsxs)("span",{className:"rounded-xl border border-border bg-surface px-3 py-2 text-sm",children:["Trang ",h,"/",i]}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>c(Math.min(i,h+1)),disabled:g||h>=i,children:"Sau"}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>c(i),disabled:g||h>=i,children:"Cuối"})]})]})}function z({image:a,label:b,onClick:c}){return(0,d.jsx)("button",{type:"button",onClick:c,title:b,"aria-label":b,className:"flex h-9 w-9 items-center justify-center rounded-xl border border-border bg-background transition hover:border-primary/50 hover:bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20",children:(0,d.jsx)("img",{src:a,alt:"","aria-hidden":"true",className:"size-5 rounded-sm object-contain"})})}function A({apiKey:a,onClaudeSettings:b,onOpenCodeSettings:c,onCodexSettings:e,onQwenSettings:f}){return(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(z,{image:"/providers/claude.png",label:"Claude Code Settings",onClick:()=>b(a)}),(0,d.jsx)(z,{image:"/providers/opencode.png",label:"OpenCode Settings",onClick:()=>c(a)}),(0,d.jsx)(z,{image:"/providers/codex.png",label:"Codex Settings",onClick:()=>e(a)}),(0,d.jsx)(z,{image:"/providers/qwen.png",label:"Qwen Code Settings",onClick:()=>f(a)})]})}function B({apiKey:a,globalEnabled:b,globalLevel:c,onClose:g,onSave:h,saving:i,infoOnly:j=!1}){let[k,l]=(0,e.useState)(a?.cavemanMode||"inherit"),[m,n]=(0,e.useState)(a?.cavemanLevel||"lite"),[o,p]=(0,e.useState)(j?"info":"edit"),[q,r]=(0,e.useState)("");if(!a)return null;let s="on"===k||"off"!==k&&b,t="on"===k?m:c,u=String(c||"full").toUpperCase(),v="info"===o,w=()=>{if(!i){if(v&&!j)return void p("edit");g()}},x=async()=>{if(!i){r("");try{let a=await h({cavemanMode:k,cavemanLevel:m});!1===a&&r("Kh\xf4ng lưu được cấu h\xecnh Caveman. Vui l\xf2ng kiểm tra lại v\xe0 thử lần nữa.")}catch(a){r(a?.message||"Kh\xf4ng lưu được cấu h\xecnh Caveman.")}}};return(0,d.jsx)(f.aF,{isOpen:!!a,onClose:w,title:v?"Caveman output compression l\xe0 g\xec?":`Caveman: ${a.name||"API Key"}`,size:v?"xl":"lg",footer:v?(0,d.jsx)(f.$n,{onClick:w,disabled:i,children:j?"Đ\xe3 hiểu":"Quay lại cấu h\xecnh"}):void 0,children:v?(0,d.jsxs)("div",{className:"space-y-5 text-sm text-text-main",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-xl border border-border bg-surface px-3 py-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Global Caveman hiện đang:"}),(0,d.jsx)(f.Ex,{variant:b?"success":"default",size:"sm",children:b?"ON":"OFF"}),b?(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:u}):null,(0,d.jsx)("span",{className:"text-xs text-text-muted",children:'— \xe1p dụng cho API key chọn "Kế thừa Global"'})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:["Caveman ch\xe8n một instruction về phong c\xe1ch trả lời v\xe0o ",(0,d.jsx)("span",{className:"font-semibold text-text-main",children:"provider request"})," ngay trước khi gửi tới model, nhằm giảm lời dẫn, lặp \xfd v\xe0 diễn giải kh\xf4ng cần thiết để output ngắn gọn hơn. T\xednh năng n\xe0y d\xf9ng được cho mọi request qua API key, kh\xf4ng chỉ CLI tool."]}),(0,d.jsxs)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-amber-800 dark:text-amber-200",children:["Caveman kh\xf4ng n\xe9n input hoặc tool output như RTK. Hiệu quả phụ thuộc model v\xe0 nội dung request. D\xf9ng n\xfat ",(0,d.jsx)("b",{children:"Test"})," ngay cuối block Caveman của API key để gọi c\xf9ng prompt khi Caveman OFF v\xe0 ON, sau đ\xf3 so s\xe1nh output token thực tế."]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-text-main",children:"Caveman được \xe1p dụng ở đ\xe2u?"}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface/60 p-3 font-mono text-xs text-text-muted",children:["Client request → x\xe1c thực / quota → routing → translate provider → RTK → ",(0,d.jsx)("span",{className:"font-semibold text-text-main",children:"Caveman"})," → gửi provider"]}),(0,d.jsxs)("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-text-muted",children:[(0,d.jsx)("li",{children:"Kh\xf4ng thay đổi model, provider, account, combo routing, fallback hoặc retry."}),(0,d.jsx)("li",{children:"Client Request v\xe0 Source Request vẫn giữ nội dung gốc."}),(0,d.jsx)("li",{children:"Provider Request JSON trong log sẽ chứa instruction Caveman v\xec đ\xf3 l\xe0 body thực tế gửi upstream."})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-text-main",children:"C\xe1c mức độ"}),(0,d.jsx)("div",{className:"overflow-x-auto rounded-xl border border-border",children:(0,d.jsxs)("table",{className:"min-w-full text-xs",children:[(0,d.jsx)("thead",{className:"bg-surface/80 text-left uppercase tracking-wide text-text-muted",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Mức"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"T\xe1c dụng"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Khuyến nghị"})]})}),(0,d.jsxs)("tbody",{className:"divide-y divide-border text-text-muted",children:[(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"Lite"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Bỏ lời dẫn v\xe0 lặp \xfd, vẫn ưu ti\xean giữ giải th\xedch cần thiết."}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Coding CLI, chat kỹ thuật, agent th\xf4ng thường."})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"Full"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"\xc9p c\xe2u trả lời s\xfac t\xedch hơn, ưu ti\xean lệnh, code v\xe0 kết luận."}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Automation, t\xe1c vụ lặp lại, người d\xf9ng đ\xe3 quen ngữ cảnh."})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"Ultra"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Output cực ngắn, giảm mạnh phần giải th\xedch."}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Chỉ d\xf9ng cho workflow kiểm so\xe1t chặt v\xe0 đ\xe3 kiểm thử."})]})]})]})})]}),(0,d.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-green-500/30 bg-green-500/10 p-4",children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-green-800 dark:text-green-200",children:"N\xean bật"}),(0,d.jsxs)("ul",{className:"list-disc space-y-1 pl-5 text-green-800/90 dark:text-green-200/90",children:[(0,d.jsx)("li",{children:"Claude Code, Codex CLI, OpenCode v\xe0 coding agent."}),(0,d.jsx)("li",{children:"Chat hỗ trợ kỹ thuật cần c\xe2u trả lời đi thẳng v\xe0o thao t\xe1c."}),(0,d.jsx)("li",{children:"Automation hoặc agent gọi model nhiều lần với ngữ cảnh r\xf5 r\xe0ng."}),(0,d.jsx)("li",{children:"API key chuy\xean d\xf9ng cho output ngắn: lệnh, checklist, kết luận, đoạn code."})]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-4",children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-red-800 dark:text-red-200",children:"Kh\xf4ng n\xean bật"}),(0,d.jsxs)("ul",{className:"list-disc space-y-1 pl-5 text-red-800/90 dark:text-red-200/90",children:[(0,d.jsx)("li",{children:"Dịch thuật, viết t\xe0i liệu, b\xe1o c\xe1o, proposal hoặc tạo presentation."}),(0,d.jsx)("li",{children:"Nội dung ph\xe1p l\xfd, hợp đồng, bi\xean bản, incident report cần đầy đủ chi tiết."}),(0,d.jsx)("li",{children:"Hướng dẫn đ\xe0o tạo, giải th\xedch chuy\xean s\xe2u, brainstorming hoặc s\xe1ng tạo nội dung."}),(0,d.jsx)("li",{children:"Workflow y\xeau cầu đ\xfang cấu tr\xfac, đủ trường hoặc wording ch\xednh x\xe1c tuyệt đối."})]})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-text-main",children:"Caveman kh\xe1c RTK thế n\xe0o?"}),(0,d.jsx)("div",{className:"overflow-x-auto rounded-xl border border-border",children:(0,d.jsxs)("table",{className:"min-w-full text-xs",children:[(0,d.jsx)("thead",{className:"bg-surface/80 text-left uppercase tracking-wide text-text-muted",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"T\xednh năng"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"T\xe1c động"})]})}),(0,d.jsxs)("tbody",{className:"divide-y divide-border text-text-muted",children:[(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"RTK"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"R\xfat gọn tool output trước khi gửi model."})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"Caveman"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Điều khiển model trả lời ngắn hơn."})]})]})]})})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-text-main",children:"Global vs từng API key"}),(0,d.jsxs)("p",{className:"text-text-muted",children:[(0,d.jsx)("span",{className:"font-semibold text-text-main",children:"Kế thừa Global"})," d\xf9ng đ\xfang trạng th\xe1i v\xe0 level tại ",(0,d.jsx)("span",{className:"font-mono text-text-main",children:"/dashboard/endpoint"}),";",(0,d.jsx)("span",{className:"font-semibold text-text-main",children:" Force ON"})," bật ri\xeang cho key v\xe0 d\xf9ng level đ\xe3 chọn;",(0,d.jsx)("span",{className:"font-semibold text-text-main",children:" Force OFF"})," lu\xf4n tắt cho key. Override của API key lu\xf4n thắng Global theo cả hai chiều."]})]})]}):(0,d.jsxs)("div",{className:"space-y-5",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-xl border border-border bg-surface p-3 text-sm",children:[(0,d.jsx)("span",{className:"text-text-muted",children:"Global Caveman hiện đang:"}),(0,d.jsx)(f.Ex,{variant:b?"success":"default",size:"sm",children:b?"ON":"OFF"}),b?(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:u}):null,(0,d.jsx)("span",{className:"text-xs text-text-muted",children:'— \xe1p dụng cho API key chọn "Kế thừa Global"'}),(0,d.jsx)("button",{type:"button",onClick:()=>p("info"),disabled:i,title:"Caveman l\xe0 g\xec? Bấm để xem giải th\xedch","aria-label":"Xem giải th\xedch về Caveman",className:"inline-flex size-5 shrink-0 items-center justify-center rounded-full border border-border text-[11px] font-bold text-text-muted transition-colors hover:border-brand-500 hover:text-brand-600 disabled:cursor-not-allowed disabled:opacity-50",children:"?"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("label",{className:"block text-sm font-medium",children:"Chế độ override"}),(0,d.jsxs)("select",{value:k,onChange:a=>{l(a.target.value),r("")},disabled:i,className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm disabled:cursor-not-allowed disabled:opacity-60",children:[(0,d.jsxs)("option",{value:"inherit",children:["Kế thừa Global (",b?`ON \xb7 ${u}`:"OFF",")"]}),(0,d.jsx)("option",{value:"on",children:"Force ON"}),(0,d.jsx)("option",{value:"off",children:"Force OFF"})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("label",{className:"block text-sm font-medium",children:"Mức n\xe9n"}),"on"===k?(0,d.jsxs)("select",{value:m,onChange:a=>{n(a.target.value),r("")},disabled:i,className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm disabled:cursor-not-allowed disabled:opacity-60",children:[(0,d.jsx)("option",{value:"lite",children:"Lite — an to\xe0n cho coding CLI"}),(0,d.jsx)("option",{value:"full",children:"Full — s\xfac t\xedch hơn"}),(0,d.jsx)("option",{value:"ultra",children:"Ultra — cực ngắn"})]}):(0,d.jsx)("div",{className:"rounded-xl border border-border bg-surface/60 px-3 py-2.5 text-sm text-text-muted",children:"inherit"===k?b?(0,d.jsxs)(d.Fragment,{children:["Đang d\xf9ng mức Global: ",(0,d.jsx)("b",{className:"text-text-main",children:u})]}):(0,d.jsxs)(d.Fragment,{children:["Global đang ",(0,d.jsx)("b",{className:"text-text-main",children:"OFF"}),", n\xean kh\xf4ng c\xf3 mức n\xe9n hiệu lực."]}):(0,d.jsx)(d.Fragment,{children:"Force OFF — mức n\xe9n kh\xf4ng được \xe1p dụng."})})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border p-3 text-sm text-text-muted",children:["Hiệu lực: ",(0,d.jsx)("b",{className:"text-text-main",children:s?`ON \xb7 ${String(t||"lite").toUpperCase()}`:"OFF"})]}),q?(0,d.jsxs)("div",{className:"flex items-start gap-2 rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-700 dark:text-red-300",children:[(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[19px]",children:"error"}),(0,d.jsx)("span",{children:q})]}):null,(0,d.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"outline",onClick:w,disabled:i,children:"Hủy"}),(0,d.jsx)(f.$n,{onClick:x,disabled:i,children:i?"Đang lưu...":"Lưu"})]})]})})}let C=Object.freeze([{value:"lite",label:"Lite",description:"Giữ giải th\xedch cần thiết"},{value:"full",label:"Full",description:"Ưu ti\xean code v\xe0 kết luận"},{value:"ultra",label:"Ultra",description:"Output cực ngắn"}]),D=`Ph\xe2n t\xedch đoạn code sau, chỉ ra lỗi, nguy\xean nh\xe2n v\xe0 đưa bản sửa ho\xe0n chỉnh. Giữ đầy đủ lệnh v\xe0 code cần thiết:
|
|
1
|
+
(()=>{var a={};a.id=7593,a.ids=[7593],a.modules={1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3374:(a,b,c)=>{Promise.resolve().then(c.bind(c,68070)),Promise.resolve().then(c.bind(c,13071)),Promise.resolve().then(c.bind(c,61632))},4573:a=>{"use strict";a.exports=require("node:buffer")},7547:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>w,handler:()=>y,routeModule:()=>x});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,32059))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u={children:["",{children:["(dashboard)",{children:["dashboard",{children:["api-keys",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,77619))),"D:\\bluerouter\\src\\app\\(dashboard)\\dashboard\\api-keys\\page.js"]}]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"D:\\bluerouter\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"D:\\bluerouter\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,v=(0,e.H)({tree:u,page:"/(dashboard)/dashboard/api-keys/page",pathname:"/dashboard/api-keys",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),w=v.__next_app__,x=v.routeModule,y=v.handler},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13071:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\bluerouter\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\api-keys\\\\ApplyDefaultModelsToExistingKeys.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\bluerouter\\src\\app\\(dashboard)\\dashboard\\api-keys\\ApplyDefaultModelsToExistingKeys.js","default")},17845:()=>{},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{"use strict";a.exports=require("process")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34631:a=>{"use strict";a.exports=require("tls")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41204:a=>{"use strict";a.exports=require("string_decoder")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},53443:(a,b,c)=>{"use strict";c.d(b,{Ek:()=>o,FY:()=>s,H1:()=>p,O0:()=>h,Zn:()=>t,cL:()=>q,j5:()=>n,pA:()=>d,u1:()=>r});let d=["coder","fast","thinking"],e=["claude","codex"],f={claude:"claude/",codex:"codex/"},g={coder:{model:"",contextWindow:0},fast:{model:"",contextWindow:0},thinking:{model:"",contextWindow:0}},h={version:2,local:{enabled:!0,providerName:"Local AI",autoCompactPct:75,models:{coder:{model:"programmer",contextWindow:12e4},fast:{model:"programmer-fast",contextWindow:12e4},thinking:{model:"programmer",contextWindow:12e4}}},cloud:{claude:{enabled:!1,providerName:"Claude Code Cloud",models:g},codex:{enabled:!1,providerName:"Codex Cloud",models:g}}};function i(a,b=300){return String(a??"").trim().slice(0,b)}function j(a,b){let c=Number(a);return!Number.isFinite(c)||c<=0?b:Math.floor(c)}function k(a,b=75){let c=Number(a);return Number.isFinite(c)?Math.min(100,Math.max(1,Math.floor(c))):b}function l(a,b,{local:c}){let e=a&&"object"==typeof a&&!Array.isArray(a)?a:{},f=e.models&&"object"==typeof e.models&&!Array.isArray(e.models)?e.models:{},g={};for(let a of d)g[a]=function(a,b,{local:c}){let d=a&&"object"==typeof a&&!Array.isArray(a)?a:{};return{model:i(Object.prototype.hasOwnProperty.call(d,"model")?d.model:b.model),contextWindow:c?j(d.contextWindow,b.contextWindow||12e4):0}}(f[a],b.models[a],{local:c});let h={enabled:Object.prototype.hasOwnProperty.call(e,"enabled")?!0===e.enabled:b.enabled,providerName:i(Object.prototype.hasOwnProperty.call(e,"providerName")?e.providerName:b.providerName,80)||b.providerName,models:g};return c&&(h.autoCompactPct=k(e.autoCompactPct,b.autoCompactPct)),h}function m(a,b){if(!a||"object"!=typeof a||Array.isArray(a)||a.claude||a.codex)return null;let c=a.models&&"object"==typeof a.models&&!Array.isArray(a.models)?a.models:{},e=d.map(a=>i(c?.[a]?.model)).filter(Boolean),g=f[b];return g&&0!==e.length&&e.every(a=>a.startsWith(g))?a:null}function n(a={}){let b=a&&"object"==typeof a&&!Array.isArray(a)?a:{},c=b.cloud&&"object"==typeof b.cloud&&!Array.isArray(b.cloud)?b.cloud:{};return{version:2,local:l(b.local,h.local,{local:!0}),cloud:{claude:l(c.claude||m(c,"claude"),h.cloud.claude,{local:!1}),codex:l(c.codex||m(c,"codex"),h.cloud.codex,{local:!1})}}}function o(a,b){return e.includes(b)&&a?.cloud?.[b]||null}function p(a){return f[a]||""}function q(a,b,c=""){return i(a?.models?.[b]?.model)||c}function r(a,b,c=12e4){return j(a?.models?.[b]?.contextWindow,c)}function s(a){return[...new Set(d.map(b=>q(a,b)).filter(Boolean))]}function t(a){return Math.max(1,Math.floor(r(a,"coder")*k(a?.autoCompactPct)/100))}},55511:a=>{"use strict";a.exports=require("crypto")},61345:(a,b,c)=>{"use strict";c.d(b,{default:()=>h});var d=c(48249),e=c(67484),f=c(50412),g=c(20151);function h(){let[a,b]=(0,e.useState)(!1),[c,h]=(0,e.useState)(!1),[i,j]=(0,e.useState)(""),[k,l]=(0,e.useState)(""),{isAdmin:m}=(0,g.s)();if(!m)return null;let n=async()=>{b(!1),h(!0),j(""),l("");try{let a=await fetch("/api/keys",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({applyDefaultModelsToExistingKeys:!0})}),b=await a.json().catch(()=>({}));if(!a.ok)throw Error(b.error||"Kh\xf4ng th\xeam được default models v\xe0o API key hiện c\xf3");let c=b.apiKeyDefaultModelsApplied||{},d=Number(c.updated||0),e=Number(c.unchanged||0),f=Number(c.legacyFullAccessSkipped||0),g=`Đ\xe3 bổ sung default models cho ${d} API key. ${e} key đ\xe3 c\xf3 đủ model; ${f} key Legacy full access được giữ nguy\xean.`;window.sessionStorage.setItem("api-keys-bulk-default-models-result",g),window.location.reload()}catch(a){l(a?.message||"Kh\xf4ng th\xeam được default models v\xe0o API key hiện c\xf3")}finally{h(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 rounded-2xl border border-border bg-surface/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0 text-sm",children:[(0,d.jsx)("div",{className:"font-medium text-text-main",children:"\xc1p Default models cho API key hiện c\xf3"}),(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Chỉ th\xeam model c\xf2n thiếu; kh\xf4ng x\xf3a model đ\xe3 g\xe1n v\xe0 kh\xf4ng thu hẹp quyền của key Legacy full access."}),i?(0,d.jsx)("div",{className:"mt-1 text-xs text-emerald-700 dark:text-emerald-300",children:i}):null,k?(0,d.jsx)("div",{className:"mt-1 text-xs text-red-600",children:k}):null]}),(0,d.jsx)(f.$n,{size:"sm",variant:"outline",onClick:()=>b(!0),disabled:c,children:c?"Đang th\xeam...":"Th\xeam Default models v\xe0o tất cả API key"})]}),(0,d.jsx)(f.uo,{isOpen:a,onClose:()=>!c&&b(!1),onConfirm:n,title:"Th\xeam Default models v\xe0o tất cả API key?",message:"Hệ thống sẽ th\xeam c\xe1c Default models đ\xe3 lưu v\xe0o mọi API key c\xf3 danh s\xe1ch model giới hạn. Model đ\xe3 g\xe1n sẵn vẫn được giữ nguy\xean. API key Legacy full access sẽ kh\xf4ng bị thay đổi để tr\xe1nh v\xf4 t\xecnh thu hẹp quyền truy cập.",confirmText:"Th\xeam v\xe0o tất cả",cancelText:"Hủy"})]})}},61632:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\bluerouter\\\\src\\\\shared\\\\cli-guides\\\\CliGuideModalProvider.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\bluerouter\\src\\shared\\cli-guides\\CliGuideModalProvider.js","default")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{"use strict";a.exports=import("pg")},66136:a=>{"use strict";a.exports=require("timers")},66422:(a,b,c)=>{Promise.resolve().then(c.bind(c,86396)),Promise.resolve().then(c.bind(c,61345)),Promise.resolve().then(c.bind(c,79866))},68070:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"D:\\\\bluerouter\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\api-keys\\\\ApiKeysPageClient.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"D:\\bluerouter\\src\\app\\(dashboard)\\dashboard\\api-keys\\ApiKeysPageClient.js","default")},73024:a=>{"use strict";a.exports=require("node:fs")},74075:a=>{"use strict";a.exports=require("zlib")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},77619:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h});var d=c(5735),e=c(68070),f=c(13071),g=c(61632);function h(){return(0,d.jsx)(g.default,{children:(0,d.jsxs)("div",{className:"api-keys-page",children:[(0,d.jsx)(f.default,{}),(0,d.jsx)(e.default,{})]})})}c(17845)},79428:a=>{"use strict";a.exports=require("buffer")},79748:a=>{"use strict";a.exports=require("fs/promises")},79866:(a,b,c)=>{"use strict";c.d(b,{default:()=>D});var d=c(48249),e=c(67484),f=c(7806),g=c(2116),h=c.n(g),i=c(50412),j=c(20151),k=c(50377),l=c(53443);let m="https://models-gateway.example.com";function n(a,b=""){return String(a??"").trim()||b}function o(a){let b=String(a??"").trim().replace(/\/+$/,"");return b?/\/v1$/.test(b)?b:`${b}/v1`:b}function p(a){return String(a??"").trim().replace(/\/+$/,"").replace(/\/v1$/,"")}function q(a){return String(a??"").replace(/`/g,"``").replace(/"/g,'`"')}function r(a){let b=new Map;for(let c of l.pA){let d=(0,l.cL)(a,c);if(!d)continue;let e=b.get(d);e?(e.roles.push(c),e.contextWindow=Math.max(e.contextWindow,(0,l.u1)(a,c))):b.set(d,{model:d,roles:[c],contextWindow:(0,l.u1)(a,c)})}return[...b.values()]}let s={claude:"Claude Code",opencode:"OpenCode",codex:"Codex",qwen:"Qwen Code"},t=new Set(["claude","codex"]);function u(a){let b=String(a||"");return b?b.length<=12?`${b.slice(0,4)}••••`:`${b.slice(0,8)}••••••••${b.slice(-4)}`:""}function v(a,b){return b?String(a||"").split(b).join(u(b)):a}function w({label:a,model:b,detail:c}){return(0,d.jsxs)("div",{className:"min-w-0 rounded-xl border border-border bg-background px-3 py-2.5",children:[(0,d.jsx)("div",{className:"text-[11px] font-medium uppercase tracking-wide text-text-muted",children:a}),(0,d.jsx)("div",{className:"mt-1 truncate font-mono text-xs font-medium text-text-main",title:b||"—",children:b||"—"}),(0,d.jsx)("div",{className:"mt-1 truncate text-[11px] text-text-muted",title:c,children:c})]})}function x({enabled:a,coder:b,apiKey:c,missingModels:e}){return a?b?c?e.length>0?(0,d.jsxs)("div",{className:"min-h-[44px] rounded-xl border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:["API key chưa được cấp quyền cho ",(0,d.jsx)("span",{className:"font-mono",children:e.join(", ")}),". Guide kh\xf4ng tự fallback model kh\xe1c."]}):(0,d.jsxs)("div",{className:"flex min-h-[44px] items-center gap-2 rounded-xl border border-emerald-500/20 bg-emerald-500/5 px-3 py-2 text-xs text-text-muted",children:[(0,d.jsx)("span",{className:"size-1.5 shrink-0 rounded-full bg-emerald-500"}),"Config sẵn s\xe0ng để copy v\xe0 \xe1p dụng."]}):(0,d.jsx)("div",{className:"flex min-h-[44px] items-center rounded-xl border border-red-500/30 bg-red-500/10 px-3 py-2 text-xs text-red-600",children:"Kh\xf4ng đọc được API key từ modal hiện tại."}):(0,d.jsx)("div",{className:"flex min-h-[44px] items-center rounded-xl border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:"Chưa cấu h\xecnh Coder model cho profile n\xe0y."}):(0,d.jsx)("div",{className:"flex min-h-[44px] items-center rounded-xl border border-dashed border-border px-3 py-2 text-xs text-text-muted",children:"Profile đang tắt. Admin c\xf3 thể bật trong CLI Model Settings."})}function y({tool:a,profile:b}){if("claude"!==a&&"codex"!==a)return null;let c=(0,l.u1)(b,"coder"),e=(0,l.u1)(b,"fast"),f=(0,l.u1)(b,"thinking"),g=Number(b?.autoCompactPct||75),h=(0,l.Zn)(b),i=new Set([c,e,f]).size>1;return(0,d.jsx)("div",{className:"mt-3 overflow-hidden rounded-xl border-2 border-amber-400/60 bg-amber-500/10 shadow-sm dark:border-amber-400/40",children:(0,d.jsxs)("div",{className:"flex gap-3 p-3 sm:p-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-[22px] text-amber-600 dark:text-amber-300",children:"warning"}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("div",{className:"text-sm font-semibold text-amber-800 dark:text-amber-200",children:"Quan trọng khi đổi model Local"}),"claude"===a?(0,d.jsxs)("p",{className:"mt-1.5 text-xs leading-5 text-amber-900/90 dark:text-amber-100/90",children:["Config b\xean dưới đang đặt ",(0,d.jsxs)("code",{className:"rounded bg-amber-500/10 px-1 font-mono font-semibold",children:["CLAUDE_CODE_AUTO_COMPACT_WINDOW=",c]})," theo ",(0,d.jsx)("strong",{children:"Coder"}),". Nếu bạn đổi model Local đang sử dụng sang Fast, Thinking hoặc model kh\xe1c c\xf3 Max Context kh\xe1c, ",(0,d.jsx)("strong",{children:"kh\xf4ng chỉ đổi t\xean model"})," — h\xe3y sửa ",(0,d.jsx)("code",{className:"rounded bg-amber-500/10 px-1 font-mono",children:"CLAUDE_CODE_AUTO_COMPACT_WINDOW"})," theo đ\xfang Max Context của model đ\xf3 trước khi chạy. ",(0,d.jsx)("code",{className:"rounded bg-amber-500/10 px-1 font-mono",children:"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE"})," hiện l\xe0 ",(0,d.jsxs)("strong",{children:[g,"%"]}),"."]}):(0,d.jsxs)("p",{className:"mt-1.5 text-xs leading-5 text-amber-900/90 dark:text-amber-100/90",children:["Config b\xean dưới đang t\xednh theo ",(0,d.jsx)("strong",{children:"Coder"}),": ",(0,d.jsxs)("code",{className:"rounded bg-amber-500/10 px-1 font-mono font-semibold",children:["model_context_window=",c]})," v\xe0 ",(0,d.jsxs)("code",{className:"rounded bg-amber-500/10 px-1 font-mono font-semibold",children:["model_auto_compact_token_limit=",h]}),". Nếu bạn đổi model Local đang sử dụng, ",(0,d.jsx)("strong",{children:"kh\xf4ng chỉ đổi t\xean model"})," — h\xe3y cập nhật ",(0,d.jsx)("code",{className:"rounded bg-amber-500/10 px-1 font-mono",children:"model_context_window"})," theo Max Context mới v\xe0 t\xednh lại ",(0,d.jsx)("code",{className:"rounded bg-amber-500/10 px-1 font-mono",children:"model_auto_compact_token_limit"})," theo mức ",(0,d.jsxs)("strong",{children:[g,"%"]}),"."]}),i?(0,d.jsxs)("div",{className:"mt-2 flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-amber-400/30 bg-background/70 px-2.5 py-2 font-mono text-[11px] text-amber-900 dark:text-amber-100",children:[(0,d.jsxs)("span",{children:["Coder: ",c.toLocaleString()]}),(0,d.jsxs)("span",{children:["Fast: ",e.toLocaleString()]}),(0,d.jsxs)("span",{children:["Thinking: ",f.toLocaleString()]})]}):null]})]})})}function z({activeView:a,setActiveView:b,configMeta:c,config:e,applyCommands:f}){let g="config"===a;return(0,d.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border bg-background",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border bg-surface/60 px-3 py-2.5 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"inline-flex w-fit rounded-lg border border-border bg-background p-1",children:[(0,d.jsx)("button",{type:"button",onClick:()=>b("config"),className:`rounded-md px-3 py-1.5 text-xs font-medium transition ${g?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text-main"}`,children:c.label}),(0,d.jsx)("button",{type:"button",onClick:()=>b("powershell"),className:`rounded-md px-3 py-1.5 text-xs font-medium transition ${!g?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text-main"}`,children:"PowerShell"})]}),(0,d.jsx)("span",{className:"truncate font-mono text-[11px] text-text-muted",children:g?c.path:"Apply config on Windows"})]}),(0,d.jsx)("pre",{className:"h-[340px] overflow-auto p-4 text-[11px] leading-5 text-text-main custom-scrollbar",children:g?e:f})]})}function A({scope:a,profile:b,tool:c,baseUrl:f,apiKey:g,selectedKey:h,copied:j,copy:k}){let[t,u]=(0,e.useState)("config"),B="local"===a,C=b?.enabled===!0,D=(0,l.cL)(b,"coder"),E=(0,l.cL)(b,"fast",D),F=(0,l.cL)(b,"thinking",D),G=function(a){switch(a){case"claude":return{label:"settings.json",path:"%USERPROFILE%\\.claude\\settings.json",command:"claude"};case"opencode":return{label:"opencode.json",path:"%APPDATA%\\opencode\\opencode.json",command:"opencode"};case"codex":return{label:"config.toml",path:"%USERPROFILE%\\.codex\\config.toml",command:"codex"};case"qwen":return{label:"settings.json",path:"%USERPROFILE%\\.qwen\\settings.json",command:"qwen"};default:return{label:"config",path:"",command:""}}}(c),H=C&&!!D&&!!g,I=H?function({tool:a,baseUrl:b,apiKey:c,profile:d,scope:e}){switch(a){case"claude":return function({baseUrl:a,apiKey:b,profile:c,scope:d}){let e=(0,l.cL)(c,"coder","programmer"),f=(0,l.cL)(c,"fast",e),g=(0,l.cL)(c,"thinking",e),h={ANTHROPIC_BASE_URL:p(n(a,m)),ANTHROPIC_AUTH_TOKEN:n(b,"sk-xxxxx"),ANTHROPIC_MODEL:e,ANTHROPIC_SMALL_FAST_MODEL:f,ANTHROPIC_DEFAULT_OPUS_MODEL:g,ANTHROPIC_DEFAULT_SONNET_MODEL:e,ANTHROPIC_DEFAULT_HAIKU_MODEL:f};return"local"===d&&(h.CLAUDE_CODE_AUTO_COMPACT_WINDOW=String((0,l.u1)(c,"coder")),h.CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=String(c.autoCompactPct||75)),JSON.stringify({env:h,theme:"dark",hasCompletedOnboarding:!0},null,2)}({baseUrl:b,apiKey:c,profile:d,scope:e});case"opencode":return function({baseUrl:a,apiKey:b,profile:c,scope:d}){let e=(0,l.cL)(c,"coder","programmer"),f=(0,l.cL)(c,"fast",e),g=(0,l.cL)(c,"thinking",e),h={};for(let a of r(c)){let b={name:a.model};"local"===d&&(b.limit={context:a.contextWindow,output:Math.min(3e4,Math.max(4096,Math.floor(a.contextWindow/4)))}),h[a.model]=b}let i={explorer:{description:"Fast explorer subagent for codebase exploration",mode:"subagent",model:`bluerouter/${f}`}};g&&g!==e&&(i.thinking={description:"Thinking/reasoning subagent",mode:"subagent",model:`bluerouter/${g}`});let j={$schema:"https://opencode.ai/config.json",provider:{bluerouter:{npm:"@ai-sdk/openai-compatible",name:"BlueRouter",options:{baseURL:o(n(a,m)),apiKey:n(b,"sk-xxxxx")},models:h}},model:`bluerouter/${e}`,small_model:`bluerouter/${f}`,agent:i};return"local"===d&&(j.compaction={auto:!0,prune:!0,reserved:Math.max(4096,(0,l.u1)(c,"coder")-(0,l.Zn)(c))}),JSON.stringify(j,null,2)}({baseUrl:b,apiKey:c,profile:d,scope:e});case"codex":return function({baseUrl:a,profile:b,scope:c}){let d=(0,l.cL)(b,"coder","programmer"),e=(0,l.cL)(b,"fast",d),f=(0,l.cL)(b,"thinking",d),g=[`model = "${d}"`,'model_provider = "bluerouter"'];return"local"===c&&g.push(`model_context_window = ${(0,l.u1)(b,"coder")}`,`model_auto_compact_token_limit = ${(0,l.Zn)(b)}`,'model_auto_compact_token_limit_scope = "total"'),g.push("","[model_providers.bluerouter]",'name = "BlueRouter"',`base_url = "${p(n(a,m))}"`,'env_key = "OPENAI_API_KEY"','wire_api = "responses"'),e&&g.push("","[profiles.fast]",`model = "${e}"`,'model_provider = "bluerouter"'),f&&f!==e&&g.push("","[profiles.thinking]",`model = "${f}"`,'model_provider = "bluerouter"'),g.join("\n")}({baseUrl:b,profile:d,scope:e});case"qwen":return function({baseUrl:a,apiKey:b,profile:c,scope:d}){let e=(0,l.cL)(c,"coder","programmer"),f=r(c).map(b=>{let c=new Set(b.roles),e=c.has("fast")&&!c.has("coder")&&!c.has("thinking"),f={timeout:e?6e4:12e4,maxRetries:2,samplingParams:{temperature:.2,...e?{max_tokens:4096}:{}}};return e&&(f.reasoning=!1),"local"===d&&(f.contextWindowSize=b.contextWindow),{id:b.model,name:b.model,envKey:"OPENAI_API_KEY",baseUrl:o(n(a,m)),generationConfig:f}});return JSON.stringify({env:{OPENAI_API_KEY:n(b,"sk-xxxxx")},security:{auth:{selectedType:"openai"}},model:{name:e},modelProviders:{openai:f}},null,2)}({baseUrl:b,apiKey:c,profile:d,scope:e});default:return""}}({tool:c,baseUrl:f,apiKey:g,profile:b,scope:a}):"",J=H?function({tool:a,config:b,apiKey:c,baseUrl:d,profile:e}){let f=(0,l.cL)(e,"coder","programmer"),g=q(c),h=q(o(n(d,m))),i=q(f),j="$utf8NoBom = New-Object System.Text.UTF8Encoding $false";switch(a){case"claude":return["mkdir $env:USERPROFILE\\.claude -Force",j,'[System.IO.File]::WriteAllText("$env:USERPROFILE\\.claude\\settings.json", @\'',b,"'@, $utf8NoBom)\ncd D:\\path\\to\\your-project\nclaude"].join("\n");case"opencode":return["mkdir $env:APPDATA\\opencode -Force",j,'[System.IO.File]::WriteAllText("$env:APPDATA\\opencode\\opencode.json", @\'',b,"'@, $utf8NoBom)\ncd D:\\path\\to\\your-project\nopencode"].join("\n");case"codex":return["mkdir $env:USERPROFILE\\.codex -Force",j,'[System.IO.File]::WriteAllText("$env:USERPROFILE\\.codex\\config.toml", @\'',b,"'@, $utf8NoBom)",`$env:OPENAI_API_KEY = "${g}"`,`setx OPENAI_API_KEY "${g}"`,"cd D:\\path\\to\\your-project\ncodex"].join("\n");case"qwen":return["mkdir $env:USERPROFILE\\.qwen -Force",j,'[System.IO.File]::WriteAllText("$env:USERPROFILE\\.qwen\\settings.json", @\'',b,"'@, $utf8NoBom)",`$env:OPENAI_API_KEY = "${g}"`,`$env:OPENAI_BASE_URL = "${h}"`,`$env:OPENAI_MODEL = "${i}"`,`setx OPENAI_API_KEY "${g}"`,`setx OPENAI_BASE_URL "${h}"`,`setx OPENAI_MODEL "${i}"`,"cd D:\\path\\to\\your-project\nqwen"].join("\n");default:return""}}({tool:c,config:I,apiKey:g,baseUrl:f,profile:b}):"",K=Array.isArray(h?.allowedModels)?h.allowedModels:[],L=K.length>0?(0,l.FY)(b).filter(a=>!K.includes(a)):[],M=`${c}-${a}`,N=B?`${b?.autoCompactPct||75}% \xb7 ${(0,l.Zn)(b).toLocaleString()} tokens`:"Managed by cloud provider";return(0,d.jsxs)("section",{className:"flex min-w-0 flex-col rounded-2xl border border-border bg-surface/40 p-4 shadow-sm sm:p-5",children:[(0,d.jsxs)("div",{className:"flex min-h-[72px] items-start justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"rounded-full border border-border bg-background px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.12em] text-text-muted",children:B?"Local":"Cloud"}),(0,d.jsx)("h3",{className:"truncate text-base font-semibold text-text-main",children:b?.providerName||(B?"Local AI":"Cloud AI")})]}),(0,d.jsx)("p",{className:"mt-1.5 text-xs leading-5 text-text-muted",children:B?"Local model, context v\xe0 auto-compact do admin quản l\xfd.":`Cloud mapping ri\xeang cho ${s[c]}; kh\xf4ng d\xf9ng chung model với CLI kh\xe1c.`})]}),(0,d.jsx)("span",{className:`shrink-0 rounded-full px-2.5 py-1 text-[11px] font-medium ${C?"bg-emerald-500/10 text-emerald-600 dark:text-emerald-300":"bg-background text-text-muted"}`,children:C?"Enabled":"Disabled"})]}),(0,d.jsxs)("div",{className:"mt-4 grid gap-2 sm:grid-cols-3",children:[(0,d.jsx)(w,{label:"Coder",model:D,detail:B&&D?`${(0,l.u1)(b,"coder").toLocaleString()} tokens`:"Primary model"}),(0,d.jsx)(w,{label:"Fast",model:E,detail:B&&E?`${(0,l.u1)(b,"fast").toLocaleString()} tokens`:"Fast profile"}),(0,d.jsx)(w,{label:"Thinking",model:F,detail:B&&F?`${(0,l.u1)(b,"thinking").toLocaleString()} tokens`:"Reasoning profile"})]}),(0,d.jsxs)("div",{className:"mt-2 flex min-h-[40px] items-center justify-between gap-3 rounded-xl border border-border bg-background px-3 py-2 text-xs",children:[(0,d.jsx)("span",{className:"text-text-muted",children:B?"Auto compact":"Context policy"}),(0,d.jsx)("span",{className:"truncate text-right font-medium text-text-main",children:N})]}),(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)(x,{enabled:C,coder:D,apiKey:g,missingModels:L})}),B&&H?(0,d.jsx)(y,{tool:c,profile:b}):null,H?(0,d.jsxs)("div",{className:"mt-4",children:[(0,d.jsx)(z,{activeView:t,setActiveView:u,configMeta:G,config:v(I,g),applyCommands:v(J,g)}),(0,d.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-end gap-2",children:[(0,d.jsx)(i.$n,{variant:"outline",size:"sm",onClick:()=>k(J,`${M}-apply`),children:j===`${M}-apply`?"Đ\xe3 copy PowerShell":"Copy PowerShell"}),(0,d.jsx)(i.$n,{size:"sm",onClick:()=>k(I,`${M}-config`),children:j===`${M}-config`?"Đ\xe3 copy config":`Copy ${G.label}`})]})]}):null]})}function B({tool:a,seed:b}){let[c,f]=(0,e.useState)(()=>(0,l.j5)(l.O0)),[g,m]=(0,e.useState)(null),[n,o]=(0,e.useState)(!0),[p,q]=(0,e.useState)(""),{copied:r,copy:v}=(0,k.C)(),{isAdmin:w,isMonitorAdmin:x,canManageApiKeys:y}=(0,j.s)(),z=String(b?.apiKey||""),C=String(b?.baseUrl||"");String(b?.keyName||"");let D=s[a]||"CLI",E=(0,e.useMemo)(()=>(function(a){switch(a){case"claude":return"# C\xe1ch 1: PowerShell installer\nirm https://claude.ai/install.ps1 | iex\n\n# C\xe1ch 2: CMD installer\ncurl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd\n\n# C\xe1ch 3: npm (cần c\xe0i Node.js trước)\nnpm install -g @anthropic-ai/claude-code\nclaude --version";case"opencode":return"npm install -g opencode-ai\nopencode --version";case"codex":return"npm install -g @openai/codex\ncodex --version";case"qwen":return"npm install -g @qwen-code/qwen-code\nqwen --version";default:return""}})(a),[a]),F=t.has(a),G=(0,l.Ek)(c,a);return(0,d.jsxs)("div",{className:"space-y-4 pb-1",children:[(0,d.jsx)("div",{className:"rounded-2xl border border-border bg-surface/35 p-4 sm:p-5",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"rounded-full border border-primary/20 bg-primary/5 px-2.5 py-1 text-[11px] font-semibold text-primary",children:D}),(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Configuration guide"})]}),(0,d.jsx)("p",{className:"mt-2 max-w-4xl text-sm leading-6 text-text-muted",children:F?`Chọn Local hoặc ${D} Cloud. Hai profile độc lập nhưng d\xf9ng chung API key v\xe0 gateway.`:`${D} chỉ sử dụng Local Model profile; Cloud Provider kh\xf4ng \xe1p dụng cho tool n\xe0y.`}),(0,d.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2 text-xs text-text-muted",children:[(0,d.jsxs)("span",{className:"rounded-lg border border-border bg-background px-2.5 py-1.5",children:["API key ",(0,d.jsx)("span",{className:"ml-1 font-mono text-text-main",children:u(z)||"kh\xf4ng x\xe1c định"})]}),(0,d.jsxs)("span",{className:"max-w-full rounded-lg border border-border bg-background px-2.5 py-1.5",children:["Base URL ",(0,d.jsx)("span",{className:"ml-1 break-all font-mono text-text-main",children:C||"/v1"})]})]})]}),w||x||y?(0,d.jsxs)(h(),{href:"/dashboard/cli-tools/model-profiles",className:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-xl border border-border bg-background px-3 py-2 text-sm font-medium text-text-main transition hover:border-primary/50 hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tune"}),"CLI Model Settings"]}):null]})}),n?(0,d.jsx)("div",{className:"rounded-xl border border-dashed border-border p-4 text-center text-sm text-text-muted",children:"Đang tải CLI model settings..."}):null,p?(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:p}):null,F?(0,d.jsxs)("div",{className:"grid items-stretch gap-4 xl:grid-cols-2",children:[(0,d.jsx)(A,{scope:"local",profile:c.local,tool:a,baseUrl:C,apiKey:z,selectedKey:g,copied:r,copy:v}),(0,d.jsx)(A,{scope:"cloud",profile:G,tool:a,baseUrl:C,apiKey:z,selectedKey:g,copied:r,copy:v})]}):(0,d.jsx)("div",{className:"mx-auto max-w-4xl",children:(0,d.jsx)(A,{scope:"local",profile:c.local,tool:a,baseUrl:C,apiKey:z,selectedKey:g,copied:r,copy:v})}),(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-surface/35 p-4 sm:p-5",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"text-sm font-semibold text-text-main",children:["C\xe0i ",D," tr\xean Windows"]}),(0,d.jsx)("p",{className:"mt-1 text-xs leading-5 text-text-muted",children:F?"Lệnh c\xe0i d\xf9ng chung cho Local v\xe0 Cloud. Sau khi c\xe0i, chọn tab PowerShell trong profile muốn \xe1p dụng.":"Sau khi c\xe0i, chọn tab PowerShell trong Local profile ph\xeda tr\xean."})]}),(0,d.jsx)(i.$n,{variant:"outline",size:"sm",onClick:()=>v(E,`${a}-install`),children:r===`${a}-install`?"Đ\xe3 copy lệnh c\xe0i":"Copy lệnh c\xe0i"})]}),(0,d.jsx)("pre",{className:"mt-3 max-h-[150px] overflow-auto rounded-xl border border-border bg-background p-3 text-[11px] leading-5 text-text-main custom-scrollbar",children:E})]}),(0,d.jsx)("div",{className:"rounded-xl border border-blue-500/20 bg-blue-500/5 px-3 py-2.5 text-xs leading-5 text-text-muted",children:"CLI Model Settings chỉ ảnh hưởng config/hướng dẫn sinh trong Dashboard. Kh\xf4ng chỉnh request pipeline, provider routing, combo, load balancing hoặc model routing runtime."})]})}let C={"Claude Code Settings":"claude","OpenCode Settings":"opencode","Codex Settings":"codex","Qwen Code Settings":"qwen"};function D({children:a}){let b=(0,e.useCallback)(({title:a,children:b})=>{let c=C[String(a||"")];if(!c)return null;let f=function(a){let b=[];!function a(b,c){if(null!=b&&"boolean"!=typeof b){if("string"==typeof b||"number"==typeof b)return void c.push(String(b));if(Array.isArray(b)){for(let d of b)a(d,c);return}(0,e.isValidElement)(b)&&a(b.props?.children,c)}}(a,b);let c=b.join("\n"),d=c.match(/\bsk-[A-Za-z0-9._~-]{8,}\b/)?.[0]||"",f="";for(let a=0;a<b.length-1;a+=1){if("API Key"!==String(b[a]).trim())continue;let c=String(b[a+1]||"").trim();if(c&&!c.startsWith("sk-")){f=c;break}}let g=(c.match(/https?:\/\/[^\s\"'<>]+/g)||[]).map(a=>a.replace(/[),.;]+$/,""));return{apiKey:d,baseUrl:g.find(a=>/\/v1\/?$/i.test(a))||g.find(a=>/\/v1(?:\/|$)/i.test(a))||"",keyName:f}}(b);return{size:"full",className:"!max-w-6xl",footer:null,children:(0,d.jsx)(B,{tool:c,seed:f},`${c}:${f.apiKey}`)}},[]);return(0,d.jsx)(f.j,{resolver:b,children:a})}},80099:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86396:(a,b,c)=>{"use strict";c.d(b,{default:()=>M});var d=c(48249),e=c(67484),f=c(50412),g=c(20151),h=c(50377);let i=Object.freeze({enabled:!0,requestsPerMinute:20,promptCharsMax:12e4,maxOutputTokens:0,forceThinkingOff:!0,allowedIpCidrs:[],expiresAt:""});function j(a){return String(a||"").trim().toLowerCase()}function k(a){return Array.isArray(a)?[...new Set(a.map(a=>String(a||"").trim()).filter(Boolean))]:[]}function l(a,b){let c=k(a?.allowedModels),d=c[0]||String(b||"programmer").trim()||"programmer",e=c.find(a=>/fast|small|haiku/i.test(a))||c.find(a=>a!==d)||d;return{codingModel:d,fastModel:e}}function m({icon:a,materialIcon:b,image:c,children:e,className:f=""}){return(0,d.jsxs)("span",{className:`inline-flex items-center gap-1.5 ${f}`,children:[c?(0,d.jsx)("img",{src:c,alt:"","aria-hidden":"true",className:"size-4 rounded-sm object-contain"}):b?(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[17px] leading-none",children:b}):a?(0,d.jsx)("span",{"aria-hidden":"true",className:"text-base leading-none",children:a}):null,(0,d.jsx)("span",{children:e})]})}function n(a,b=0){let c=Number(a);return Number.isFinite(c)?Math.max(0,Math.floor(c)):b}function o(a,b=!0){return null==a||""===a?b:!0===a||"true"===a||1===a||"1"===a}function p(a){return Array.isArray(a)?[...new Set(a.map(a=>String(a||"").trim()).filter(Boolean))]:[]}function q(a){return a&&"object"==typeof a&&!Array.isArray(a)&&Object.keys(a).length>0}function r(a={},b={}){let c={...b},d=a&&"object"==typeof a&&!Array.isArray(a)?a:{};return{enabled:o(d.enabled??c.enabled,!0),requestsPerMinute:n(d.requestsPerMinute??c.requestsPerMinute,0),promptCharsMax:n(d.promptCharsMax??c.promptCharsMax,0),maxOutputTokens:n(d.maxOutputTokens??d.outputTokensMax??d.maxTokens??d.max_tokens??d.max_completion_tokens??c.maxOutputTokens,0),forceThinkingOff:o(d.forceThinkingOff??c.forceThinkingOff,!0),allowedIpCidrs:p(d.allowedIpCidrs??c.allowedIpCidrs),expiresAt:String(d.expiresAt??c.expiresAt??"").trim()}}function s({models:a,emptyLabel:b="Chưa g\xe1n model"}){let c=k(a);return 0===c.length?(0,d.jsx)("span",{className:"text-xs text-text-muted",children:b}):(0,d.jsxs)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:[c.slice(0,8).map(a=>(0,d.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 font-mono text-xs",children:a},a)),c.length>8?(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 text-xs",children:["+",c.length-8," model kh\xe1c"]}):null]})}function t({limits:a,showThinking:b=!1,showOutputLimit:c=!1}){if(!q(a))return(0,d.jsx)("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-text-muted",children:(0,d.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"policy: chưa set, kh\xf4ng giới hạn"})});let e=r(a);return(0,d.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-text-muted",children:[(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:["policy: ",e.enabled?"bật":"tắt"]}),(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[e.requestsPerMinute||"∞"," req/ph\xfat"]}),(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[e.promptCharsMax||"∞"," chars prompt"]}),c?(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[e.maxOutputTokens||"∞"," output tokens"]}):null,b?(0,d.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:["thinking: ",e.forceThinkingOff?"force off":"client tự quyết"]}):null,e.allowedIpCidrs.length>0?(0,d.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"IP locked"}):null]})}function u({label:a,value:b,onChange:c,hint:e}){return(0,d.jsxs)("label",{className:"block",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:a}),(0,d.jsx)("input",{type:"number",min:"0",value:b,onChange:a=>c(n(a.target.value,0)),className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary"}),e?(0,d.jsx)("span",{className:"mt-1 block text-xs text-text-muted",children:e}):null]})}function v({isOpen:a,keyName:b,policy:c,setPolicy:e,onClose:g,onSave:h,onClear:j,saving:k,clearLabel:l="X\xf3a policy / kh\xf4ng limit"}){let m=r(c,i),n=(a,b)=>e(c=>r({...c,[a]:b},i));return(0,d.jsx)(f.aF,{isOpen:a,onClose:g,title:`Policy API key: ${b||"API Key"}`,size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface/60 p-3 text-sm text-text-muted",children:["Key mới tự c\xf3 ",(0,d.jsx)("b",{children:"default policy"}),". Chỉ admin được sửa policy. Request/ph\xfat = 0 nghĩa l\xe0 kh\xf4ng giới hạn tần suất. Max output tokens = 0 nghĩa l\xe0 kh\xf4ng \xe9p giới hạn output."]}),(0,d.jsxs)("label",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-3 text-sm",children:[(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{children:"Bật policy"}),(0,d.jsx)("br",{}),(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Tắt mục n\xe0y th\xec policy được lưu nhưng kh\xf4ng \xe1p limit."})]}),(0,d.jsx)("input",{type:"checkbox",checked:m.enabled,onChange:a=>n("enabled",a.target.checked)})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsx)(u,{label:"Request / ph\xfat",value:m.requestsPerMinute,onChange:a=>n("requestsPerMinute",a),hint:"0 = kh\xf4ng giới hạn tần suất. Khuyến nghị user thường: 10–20 req/ph\xfat."}),(0,d.jsx)(u,{label:"Max output tokens",value:m.maxOutputTokens,onChange:a=>n("maxOutputTokens",a),hint:"0 = kh\xf4ng giới hạn. VS Code khuyến nghị 2048–3072; chat d\xe0i 4096–8192."})]}),(0,d.jsx)(u,{label:"Prompt chars tối đa",value:m.promptCharsMax,onChange:a=>n("promptCharsMax",a),hint:"0 = kh\xf4ng giới hạn input/prompt."}),(0,d.jsxs)("label",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-3 text-sm",children:[(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{children:"Force Thinking Off"}),(0,d.jsx)("br",{}),(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Khi bật, gateway \xe9p request c\xf3 chat_template_kwargs.enable_thinking=false theo chuẩn llama.cpp."})]}),(0,d.jsx)("input",{type:"checkbox",checked:m.forceThinkingOff,onChange:a=>n("forceThinkingOff",a.target.checked)})]}),(0,d.jsxs)("label",{className:"block",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"IP/CIDR được ph\xe9p"}),(0,d.jsx)("textarea",{value:p(m.allowedIpCidrs).join("\n"),onChange:a=>n("allowedIpCidrs",[...new Set(String(a.target.value||"").split(/[\n,]+/).map(a=>a.trim()).filter(Boolean))]),rows:3,className:"w-full rounded-xl border border-border bg-background px-3 py-2 font-mono text-sm text-text-main outline-none focus:border-primary",placeholder:"10.0.0.0/8\n192.168.0.0/16"}),(0,d.jsx)("span",{className:"mt-1 block text-xs text-text-muted",children:"Để trống = mọi IP. Hỗ trợ IPv4 exact hoặc CIDR."})]}),(0,d.jsxs)("label",{className:"block",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Hết hạn l\xfac"}),(0,d.jsx)("input",{value:m.expiresAt,onChange:a=>n("expiresAt",a.target.value),className:"w-full rounded-xl border border-border bg-background px-3 py-2 font-mono text-sm text-text-main outline-none focus:border-primary",placeholder:"2026-12-31T23:59:59+07:00 hoặc để trống"})]}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:g,children:"Hủy"}),j?(0,d.jsx)(f.$n,{variant:"outline",onClick:j,disabled:k,children:l}):null,(0,d.jsx)(f.$n,{onClick:()=>h(m),disabled:k,children:k?"Đang lưu...":"Lưu policy"})]})]})})}function w({open:a,keyName:b,models:c,setModels:g,activeProviders:h,modelAliases:i,onClose:j,onSave:l,saving:m,personalOnly:n,extraModels:o}){let[p,q]=(0,e.useState)(!1),r=k(c),s=a=>{let b=a?.value||a?.name||a;g(a=>k(a).filter(a=>a!==b))};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.aF,{isOpen:a,onClose:j,title:`Model access: ${b||"API Key"}`,size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Chọn một hoặc nhiều model m\xe0 API key n\xe0y được ph\xe9p sử dụng. Trang n\xe0y kh\xf4ng cho lưu danh s\xe1ch model rỗng."}),(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsx)("span",{className:"text-sm font-medium",children:"Model được ph\xe9p d\xf9ng"}),(0,d.jsx)(f.$n,{size:"sm",variant:"outline",onClick:()=>q(!0),children:"Th\xeam model"})]}),0===r.length?(0,d.jsx)("div",{className:"rounded-xl border border-dashed border-border p-4 text-sm text-text-muted",children:"Chưa chọn model n\xe0o. H\xe3y th\xeam \xedt nhất một model trước khi lưu."}):(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>s(a),className:"rounded-full border border-primary/30 bg-primary/10 px-2 py-1 font-mono text-xs text-primary transition hover:bg-red-500/10 hover:text-red-600",title:"Bấm để gỡ model n\xe0y",children:[a," \xd7"]},a))}),(0,d.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:j,children:"Hủy"}),(0,d.jsx)(f.$n,{onClick:l,disabled:m||0===r.length,children:m?"Đang lưu...":"Lưu danh s\xe1ch model"})]})]})}),(0,d.jsx)(f.rq,{isOpen:p,onClose:()=>q(!1),onSelect:a=>{let b=a?.value||a?.name||a;b&&g(a=>k([...a,b]))},onDeselect:s,activeProviders:h,modelAliases:i,title:"Chọn model được ph\xe9p d\xf9ng",addedModelValues:r,closeOnSelect:!1,personalOnly:n,extraModels:o})]})}function x({label:a,value:b,hint:c}){return(0,d.jsxs)("div",{className:"rounded-2xl border border-border bg-surface/70 p-4",children:[(0,d.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:a}),(0,d.jsx)("div",{className:"mt-2 text-2xl font-semibold text-text-main",children:b}),c?(0,d.jsx)("div",{className:"mt-1 text-xs text-text-muted",children:c}):null]})}function y({pagination:a,pageSize:b,onPageChange:c,onPageSizeChange:e,loading:g}){let h=Number(a?.page||1),i=Number(a?.totalPages||1),j=Number(a?.total||0),k=0===j?0:(h-1)*b+1,l=Math.min(j,h*b);return(0,d.jsxs)("div",{className:"flex flex-col gap-3 border-t border-border px-4 py-3 md:flex-row md:items-center md:justify-between",children:[(0,d.jsxs)("div",{className:"text-sm text-text-muted",children:["Hiển thị ",(0,d.jsx)("b",{children:k}),"–",(0,d.jsx)("b",{children:l})," / ",(0,d.jsx)("b",{children:j})," API keys"]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsxs)("select",{value:b,onChange:a=>e(Number(a.target.value)),className:"rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",disabled:g,children:[(0,d.jsx)("option",{value:25,children:"25 / trang"}),(0,d.jsx)("option",{value:50,children:"50 / trang"}),(0,d.jsx)("option",{value:100,children:"100 / trang"})]}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>c(1),disabled:g||h<=1,children:"Đầu"}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>c(Math.max(1,h-1)),disabled:g||h<=1,children:"Trước"}),(0,d.jsxs)("span",{className:"rounded-xl border border-border bg-surface px-3 py-2 text-sm",children:["Trang ",h,"/",i]}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>c(Math.min(i,h+1)),disabled:g||h>=i,children:"Sau"}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>c(i),disabled:g||h>=i,children:"Cuối"})]})]})}function z({image:a,label:b,onClick:c}){return(0,d.jsx)("button",{type:"button",onClick:c,title:b,"aria-label":b,className:"flex h-9 w-9 items-center justify-center rounded-xl border border-border bg-background transition hover:border-primary/50 hover:bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20",children:(0,d.jsx)("img",{src:a,alt:"","aria-hidden":"true",className:"size-5 rounded-sm object-contain"})})}function A({apiKey:a,onClaudeSettings:b,onOpenCodeSettings:c,onCodexSettings:e,onQwenSettings:f}){return(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(z,{image:"/providers/claude.png",label:"Claude Code Settings",onClick:()=>b(a)}),(0,d.jsx)(z,{image:"/providers/opencode.png",label:"OpenCode Settings",onClick:()=>c(a)}),(0,d.jsx)(z,{image:"/providers/codex.png",label:"Codex Settings",onClick:()=>e(a)}),(0,d.jsx)(z,{image:"/providers/qwen.png",label:"Qwen Code Settings",onClick:()=>f(a)})]})}function B({apiKey:a,globalEnabled:b,globalLevel:c,onClose:g,onSave:h,saving:i,infoOnly:j=!1}){let[k,l]=(0,e.useState)(a?.cavemanMode||"inherit"),[m,n]=(0,e.useState)(a?.cavemanLevel||"lite"),[o,p]=(0,e.useState)(j?"info":"edit"),[q,r]=(0,e.useState)("");if(!a)return null;let s="on"===k||"off"!==k&&b,t="on"===k?m:c,u=String(c||"full").toUpperCase(),v="info"===o,w=()=>{if(!i){if(v&&!j)return void p("edit");g()}},x=async()=>{if(!i){r("");try{let a=await h({cavemanMode:k,cavemanLevel:m});!1===a&&r("Kh\xf4ng lưu được cấu h\xecnh Caveman. Vui l\xf2ng kiểm tra lại v\xe0 thử lần nữa.")}catch(a){r(a?.message||"Kh\xf4ng lưu được cấu h\xecnh Caveman.")}}};return(0,d.jsx)(f.aF,{isOpen:!!a,onClose:w,title:v?"Caveman output compression l\xe0 g\xec?":`Caveman: ${a.name||"API Key"}`,size:v?"xl":"lg",footer:v?(0,d.jsx)(f.$n,{onClick:w,disabled:i,children:j?"Đ\xe3 hiểu":"Quay lại cấu h\xecnh"}):void 0,children:v?(0,d.jsxs)("div",{className:"space-y-5 text-sm text-text-main",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-xl border border-border bg-surface px-3 py-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Global Caveman hiện đang:"}),(0,d.jsx)(f.Ex,{variant:b?"success":"default",size:"sm",children:b?"ON":"OFF"}),b?(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:u}):null,(0,d.jsx)("span",{className:"text-xs text-text-muted",children:'— \xe1p dụng cho API key chọn "Kế thừa Global"'})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:["Caveman ch\xe8n một instruction về phong c\xe1ch trả lời v\xe0o ",(0,d.jsx)("span",{className:"font-semibold text-text-main",children:"provider request"})," ngay trước khi gửi tới model, nhằm giảm lời dẫn, lặp \xfd v\xe0 diễn giải kh\xf4ng cần thiết để output ngắn gọn hơn. T\xednh năng n\xe0y d\xf9ng được cho mọi request qua API key, kh\xf4ng chỉ CLI tool."]}),(0,d.jsxs)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-amber-800 dark:text-amber-200",children:["Caveman kh\xf4ng n\xe9n input hoặc tool output như RTK. Hiệu quả phụ thuộc model v\xe0 nội dung request. D\xf9ng n\xfat ",(0,d.jsx)("b",{children:"Test"})," ngay cuối block Caveman của API key để gọi c\xf9ng prompt khi Caveman OFF v\xe0 ON, sau đ\xf3 so s\xe1nh output token thực tế."]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-text-main",children:"Caveman được \xe1p dụng ở đ\xe2u?"}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface/60 p-3 font-mono text-xs text-text-muted",children:["Client request → x\xe1c thực / quota → routing → translate provider → RTK → ",(0,d.jsx)("span",{className:"font-semibold text-text-main",children:"Caveman"})," → gửi provider"]}),(0,d.jsxs)("ul",{className:"mt-2 list-disc space-y-1 pl-5 text-text-muted",children:[(0,d.jsx)("li",{children:"Kh\xf4ng thay đổi model, provider, account, combo routing, fallback hoặc retry."}),(0,d.jsx)("li",{children:"Client Request v\xe0 Source Request vẫn giữ nội dung gốc."}),(0,d.jsx)("li",{children:"Provider Request JSON trong log sẽ chứa instruction Caveman v\xec đ\xf3 l\xe0 body thực tế gửi upstream."})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-text-main",children:"C\xe1c mức độ"}),(0,d.jsx)("div",{className:"overflow-x-auto rounded-xl border border-border",children:(0,d.jsxs)("table",{className:"min-w-full text-xs",children:[(0,d.jsx)("thead",{className:"bg-surface/80 text-left uppercase tracking-wide text-text-muted",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Mức"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"T\xe1c dụng"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Khuyến nghị"})]})}),(0,d.jsxs)("tbody",{className:"divide-y divide-border text-text-muted",children:[(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"Lite"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Bỏ lời dẫn v\xe0 lặp \xfd, vẫn ưu ti\xean giữ giải th\xedch cần thiết."}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Coding CLI, chat kỹ thuật, agent th\xf4ng thường."})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"Full"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"\xc9p c\xe2u trả lời s\xfac t\xedch hơn, ưu ti\xean lệnh, code v\xe0 kết luận."}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Automation, t\xe1c vụ lặp lại, người d\xf9ng đ\xe3 quen ngữ cảnh."})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"Ultra"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Output cực ngắn, giảm mạnh phần giải th\xedch."}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Chỉ d\xf9ng cho workflow kiểm so\xe1t chặt v\xe0 đ\xe3 kiểm thử."})]})]})]})})]}),(0,d.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-green-500/30 bg-green-500/10 p-4",children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-green-800 dark:text-green-200",children:"N\xean bật"}),(0,d.jsxs)("ul",{className:"list-disc space-y-1 pl-5 text-green-800/90 dark:text-green-200/90",children:[(0,d.jsx)("li",{children:"Claude Code, Codex CLI, OpenCode v\xe0 coding agent."}),(0,d.jsx)("li",{children:"Chat hỗ trợ kỹ thuật cần c\xe2u trả lời đi thẳng v\xe0o thao t\xe1c."}),(0,d.jsx)("li",{children:"Automation hoặc agent gọi model nhiều lần với ngữ cảnh r\xf5 r\xe0ng."}),(0,d.jsx)("li",{children:"API key chuy\xean d\xf9ng cho output ngắn: lệnh, checklist, kết luận, đoạn code."})]})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-4",children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-red-800 dark:text-red-200",children:"Kh\xf4ng n\xean bật"}),(0,d.jsxs)("ul",{className:"list-disc space-y-1 pl-5 text-red-800/90 dark:text-red-200/90",children:[(0,d.jsx)("li",{children:"Dịch thuật, viết t\xe0i liệu, b\xe1o c\xe1o, proposal hoặc tạo presentation."}),(0,d.jsx)("li",{children:"Nội dung ph\xe1p l\xfd, hợp đồng, bi\xean bản, incident report cần đầy đủ chi tiết."}),(0,d.jsx)("li",{children:"Hướng dẫn đ\xe0o tạo, giải th\xedch chuy\xean s\xe2u, brainstorming hoặc s\xe1ng tạo nội dung."}),(0,d.jsx)("li",{children:"Workflow y\xeau cầu đ\xfang cấu tr\xfac, đủ trường hoặc wording ch\xednh x\xe1c tuyệt đối."})]})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-text-main",children:"Caveman kh\xe1c RTK thế n\xe0o?"}),(0,d.jsx)("div",{className:"overflow-x-auto rounded-xl border border-border",children:(0,d.jsxs)("table",{className:"min-w-full text-xs",children:[(0,d.jsx)("thead",{className:"bg-surface/80 text-left uppercase tracking-wide text-text-muted",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"T\xednh năng"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"T\xe1c động"})]})}),(0,d.jsxs)("tbody",{className:"divide-y divide-border text-text-muted",children:[(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"RTK"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"R\xfat gọn tool output trước khi gửi model."})]}),(0,d.jsxs)("tr",{children:[(0,d.jsx)("td",{className:"px-3 py-2 font-semibold text-text-main",children:"Caveman"}),(0,d.jsx)("td",{className:"px-3 py-2",children:"Điều khiển model trả lời ngắn hơn."})]})]})]})})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"mb-2 font-semibold text-text-main",children:"Global vs từng API key"}),(0,d.jsxs)("p",{className:"text-text-muted",children:[(0,d.jsx)("span",{className:"font-semibold text-text-main",children:"Kế thừa Global"})," d\xf9ng đ\xfang trạng th\xe1i v\xe0 level tại ",(0,d.jsx)("span",{className:"font-mono text-text-main",children:"/dashboard/endpoint"}),";",(0,d.jsx)("span",{className:"font-semibold text-text-main",children:" Force ON"})," bật ri\xeang cho key v\xe0 d\xf9ng level đ\xe3 chọn;",(0,d.jsx)("span",{className:"font-semibold text-text-main",children:" Force OFF"})," lu\xf4n tắt cho key. Override của API key lu\xf4n thắng Global theo cả hai chiều."]})]})]}):(0,d.jsxs)("div",{className:"space-y-5",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-xl border border-border bg-surface p-3 text-sm",children:[(0,d.jsx)("span",{className:"text-text-muted",children:"Global Caveman hiện đang:"}),(0,d.jsx)(f.Ex,{variant:b?"success":"default",size:"sm",children:b?"ON":"OFF"}),b?(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:u}):null,(0,d.jsx)("span",{className:"text-xs text-text-muted",children:'— \xe1p dụng cho API key chọn "Kế thừa Global"'}),(0,d.jsx)("button",{type:"button",onClick:()=>p("info"),disabled:i,title:"Caveman l\xe0 g\xec? Bấm để xem giải th\xedch","aria-label":"Xem giải th\xedch về Caveman",className:"inline-flex size-5 shrink-0 items-center justify-center rounded-full border border-border text-[11px] font-bold text-text-muted transition-colors hover:border-brand-500 hover:text-brand-600 disabled:cursor-not-allowed disabled:opacity-50",children:"?"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("label",{className:"block text-sm font-medium",children:"Chế độ override"}),(0,d.jsxs)("select",{value:k,onChange:a=>{l(a.target.value),r("")},disabled:i,className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm disabled:cursor-not-allowed disabled:opacity-60",children:[(0,d.jsxs)("option",{value:"inherit",children:["Kế thừa Global (",b?`ON \xb7 ${u}`:"OFF",")"]}),(0,d.jsx)("option",{value:"on",children:"Force ON"}),(0,d.jsx)("option",{value:"off",children:"Force OFF"})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("label",{className:"block text-sm font-medium",children:"Mức n\xe9n"}),"on"===k?(0,d.jsxs)("select",{value:m,onChange:a=>{n(a.target.value),r("")},disabled:i,className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm disabled:cursor-not-allowed disabled:opacity-60",children:[(0,d.jsx)("option",{value:"lite",children:"Lite — an to\xe0n cho coding CLI"}),(0,d.jsx)("option",{value:"full",children:"Full — s\xfac t\xedch hơn"}),(0,d.jsx)("option",{value:"ultra",children:"Ultra — cực ngắn"})]}):(0,d.jsx)("div",{className:"rounded-xl border border-border bg-surface/60 px-3 py-2.5 text-sm text-text-muted",children:"inherit"===k?b?(0,d.jsxs)(d.Fragment,{children:["Đang d\xf9ng mức Global: ",(0,d.jsx)("b",{className:"text-text-main",children:u})]}):(0,d.jsxs)(d.Fragment,{children:["Global đang ",(0,d.jsx)("b",{className:"text-text-main",children:"OFF"}),", n\xean kh\xf4ng c\xf3 mức n\xe9n hiệu lực."]}):(0,d.jsx)(d.Fragment,{children:"Force OFF — mức n\xe9n kh\xf4ng được \xe1p dụng."})})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border p-3 text-sm text-text-muted",children:["Hiệu lực: ",(0,d.jsx)("b",{className:"text-text-main",children:s?`ON \xb7 ${String(t||"lite").toUpperCase()}`:"OFF"})]}),q?(0,d.jsxs)("div",{className:"flex items-start gap-2 rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-700 dark:text-red-300",children:[(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[19px]",children:"error"}),(0,d.jsx)("span",{children:q})]}):null,(0,d.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"outline",onClick:w,disabled:i,children:"Hủy"}),(0,d.jsx)(f.$n,{onClick:x,disabled:i,children:i?"Đang lưu...":"Lưu"})]})]})})}let C=Object.freeze([{value:"lite",label:"Lite",description:"Giữ giải th\xedch cần thiết"},{value:"full",label:"Full",description:"Ưu ti\xean code v\xe0 kết luận"},{value:"ultra",label:"Ultra",description:"Output cực ngắn"}]),D=`Ph\xe2n t\xedch đoạn code sau, chỉ ra lỗi, nguy\xean nh\xe2n v\xe0 đưa bản sửa ho\xe0n chỉnh. Giữ đầy đủ lệnh v\xe0 code cần thiết:
|
|
2
2
|
|
|
3
3
|
function getUserName(user) {
|
|
4
4
|
return user.profile.name.trim();
|
|
@@ -36,4 +36,4 @@ wire_api = "responses"
|
|
|
36
36
|
[profiles.fast]
|
|
37
37
|
model = "${c||d||"programmer-fast"}"
|
|
38
38
|
model_provider = "bluerouter"`}({baseUrl:bM,codingModel:bZ.codingModel,fastModel:bZ.fastModel}):"",b_=bj?['npm install -g @openai/codex\ncodex --version\nmkdir $env:USERPROFILE\\.codex -Force\n$utf8NoBom = New-Object System.Text.UTF8Encoding $false\n[System.IO.File]::WriteAllText("$env:USERPROFILE\\.codex\\config.toml", @\'',b$,"'@, $utf8NoBom)",`$env:OPENAI_API_KEY = "${bj.key}"`,`setx OPENAI_API_KEY "${bj.key}"`,"cd D:\\path\\to\\your-project\ncodex"].join("\n"):"",b0=bl?l(bl,bO):{codingModel:bO||"YOUR_MODEL",fastModel:bO||"YOUR_MODEL"},b1=bl?function({baseUrl:a,apiKey:b,codingModel:c,fastModel:d}){let e=c||"programmer",f=d||e||"programmer-fast",g=a||"https://models-gateway.example.com/v1";return JSON.stringify({env:{OPENAI_API_KEY:b||"sk-xxxxx"},security:{auth:{selectedType:"openai"}},model:{name:e},modelProviders:{openai:[{id:e,name:e,envKey:"OPENAI_API_KEY",baseUrl:g,generationConfig:{timeout:12e4,maxRetries:2,contextWindowSize:12e4,samplingParams:{temperature:.2}}},{id:f,name:f,envKey:"OPENAI_API_KEY",baseUrl:g,generationConfig:{timeout:6e4,maxRetries:2,reasoning:!1,contextWindowSize:12e4,samplingParams:{temperature:.2,max_tokens:4096}}}]}},null,2)}({baseUrl:bL,apiKey:bl.key,codingModel:b0.codingModel,fastModel:b0.fastModel}):"",b2=bl?['npm install -g @qwen-code/qwen-code\nqwen --version\nmkdir $env:USERPROFILE\\.qwen -Force\n$utf8NoBom = New-Object System.Text.UTF8Encoding $false\n[System.IO.File]::WriteAllText("$env:USERPROFILE\\.qwen\\settings.json", @\'',b1,"'@, $utf8NoBom)",`$env:OPENAI_API_KEY = "${bl.key}"`,`$env:OPENAI_BASE_URL = "${bL}"`,`$env:OPENAI_MODEL = "${b0.codingModel}"`,`setx OPENAI_API_KEY "${bl.key}"`,`setx OPENAI_BASE_URL "${bL}"`,`setx OPENAI_MODEL "${b0.codingModel}"`,"cd D:\\path\\to\\your-project\nqwen"].join("\n"):"",b3=(0,e.useMemo)(()=>{let a=new Map;for(let b of R){let c=j(b.username||b.email||b.userPrincipalName||b.sAMAccountName);c&&a.set(c,{id:c,label:`${b.displayName||b.username||c}${b.email?` \xb7 ${b.email}`:""}`})}for(let b of o){let c=j(b.ownerUser||b.createdByUser);c&&!a.has(c)&&a.set(c,{id:c,label:c})}return bE&&!a.has(bE)&&a.set(bE,{id:bE,label:`${bE} (t\xf4i)`}),[...a.values()].sort((a,b)=>a.label.localeCompare(b.label))},[R,o,bE]),b4=(c=k(_),m=k(Z),!(c.length===m.length&&c.every((a,b)=>a===m[b]))),b5=X||!F.trim()||0===Z.length||bK,b6=!!bp||"all"!==br,b7=async()=>{z(!0),C("");try{let a=new URLSearchParams;a.set("page",String(bt)),a.set("pageSize",String(bv)),bp&&a.set("q",bp),"all"!==br&&a.set("status",br);let b=await fetch(`/api/keys?${a.toString()}`,{cache:"no-store"}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||"Kh\xf4ng tải được danh s\xe1ch API keys");let d=c.keys||[],e=c.pagination||{page:bt,pageSize:bv,total:d.length,totalAll:d.length,totalPages:1,search:bp,status:br};if(0===d.length&&Number(e.total||0)>0&&bt>1)return void bu(Math.max(1,Number(e.totalPages||1)));let f=k(c.apiKeyDefaultModels||(c.apiKeyDefaultModel?[c.apiKeyDefaultModel]:[]));p(d),by(e),aY(c.apiKeyTotal??e.totalAll??e.total??d.length);let g=r(c.apiKeyDefaultPolicy||i,i);$(f),aa(f),ae(g),ag(g),aU(c.apiKeyLimit??5),aW(c.apiKeyCount??e.totalAll??d.length),"number"==typeof c.globalApiKeyLimit&&c.globalApiKeyLimit>0&&(a$(c.globalApiKeyLimit),a0(String(c.globalApiKeyLimit))),c.apiKeyLimitOverrides&&"object"==typeof c.apiKeyLimitOverrides&&a4(c.apiKeyLimitOverrides),aQ(!0===c.globalCavemanEnabled),aS(c.globalCavemanLevel||"full")}catch(a){C(a.message||"Kh\xf4ng tải được danh s\xe1ch API keys")}finally{z(!1)}},b8=async()=>{if(!ar&&!at){au(!0);try{let[a,b,c]=await Promise.allSettled([bF?fetch("/api/providers",{cache:"no-store"}):Promise.resolve(null),fetch("/api/personal-cloud-providers",{cache:"no-store"}),fetch("/api/models/alias",{cache:"no-store"})]),d=[],e=[];if("fulfilled"===a.status&&a.value?.ok){let b=await a.value.json().catch(()=>({}));d.push(...b.connections||[])}if("fulfilled"===b.status&&b.value.ok){let a=await b.value.json().catch(()=>({}));e.push(...a.connections||[])}if(ao(bF?[...d,...e]:e),"fulfilled"===c.status&&c.value.ok){let a=await c.value.json().catch(()=>({}));aq(a.aliases||{})}as(!0)}catch{}finally{au(!1)}}},b9=async(a=T)=>{if(bF){W(!0);try{let b=await fetch(`/api/auth/ldap/users?q=${encodeURIComponent(a||"")}`,{cache:"no-store"}),c=await b.json().catch(()=>({}));b.ok&&S(c.users||[])}catch{}finally{W(!1)}}},ca=async()=>{if(bF&&0!==_.length){ac(!0),C("");try{let a=await fetch("/api/keys",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKeyDefaultModels:_})}),b=await a.json().catch(()=>({}));if(!a.ok)throw Error(b.error||"Kh\xf4ng lưu được default models");let c=k(b.apiKeyDefaultModels||(b.apiKeyDefaultModel?[b.apiKeyDefaultModel]:[])),d=r(b.apiKeyDefaultPolicy||i,i);$(c),aa(c),ae(d),ag(d)}catch(a){C(a.message||"Kh\xf4ng lưu được default models")}finally{ac(!1)}}},cb=a=>{"number"==typeof a?.globalApiKeyLimit&&a.globalApiKeyLimit>0&&(a$(a.globalApiKeyLimit),a0(String(a.globalApiKeyLimit))),a?.apiKeyLimitOverrides&&"object"==typeof a.apiKeyLimitOverrides&&a4(a.apiKeyLimitOverrides)},cc=async()=>{if(!bF)return;let a=Number.parseInt(a_,10);if(!Number.isFinite(a)||a<=0)return void C("Giới hạn global phải l\xe0 số nguy\xean dương.");a2(!0),C("");try{let b=await fetch("/api/keys",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({userApiKeyLimit:a})}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||"Kh\xf4ng lưu được global API key limit");cb(c)}catch(a){C(a.message||"Kh\xf4ng lưu được global API key limit")}finally{a2(!1)}},cd=async a=>{if(!bF)return!1;ba(!0),C("");try{let b=await fetch("/api/keys",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({userApiKeyLimitOverrides:a})}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||"Kh\xf4ng lưu được per-user override");return cb(c),!0}catch(a){return C(a.message||"Kh\xf4ng lưu được per-user override"),!1}finally{ba(!1)}},ce=async()=>{let a=j(a5),b=Number.parseInt(a7,10);if(!a)return void C("Nhập username/email cần override.");if(!Number.isFinite(b)||b<=0)return void C("Giới hạn per-user phải l\xe0 số nguy\xean dương.");let c={...a3,[a]:b};await cd(c)&&(a6(""),a8(""))},cf=async a=>{let b={...a3};delete b[a],await cd(b)},cg=async a=>{if(!bF)return;let b=r(a,i);ai(!0),C("");try{let a=await fetch("/api/keys",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKeyDefaultPolicy:b})}),c=await a.json().catch(()=>({}));if(!a.ok)throw Error(c.error||"Kh\xf4ng lưu được default policy");let d=r(c.apiKeyDefaultPolicy||b,i);ae(d),ag(d),ak(!1)}catch(a){C(a.message||"Kh\xf4ng lưu được default policy")}finally{ai(!1)}},ch=async()=>{if(F.trim()){if(0===Z.length)return void C("Admin cần cấu h\xecnh default models trước khi tạo API key.");if(bK)return void C(`Mỗi user chỉ được tạo tối đa ${bG} API keys.
|
|
39
|
-
C\xf3 thể d\xf9ng n\xfat Đổi key để xoay sang key mới m\xe0 kh\xf4ng cần x\xf3a/tạo lại.`);Y(!0),C("");try{let a=bF?j(K||H||bE):void 0,b=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:F.trim(),ownerUser:a})}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||"Kh\xf4ng tạo được API key");O(c.key),G(""),M(""),E(!1),bu(1),await b7()}catch(a){C(a.message||"Kh\xf4ng tạo được API key")}finally{Y(!1)}}},ci=async(a,b)=>{let c=await fetch(`/api/keys/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),d=await c.json().catch(()=>({}));return c.ok?(await b7(),!0):(C(d.error||"Kh\xf4ng cập nhật được API key"),!1)},cj=async()=>{if(!av)return;let a=k(ax);if(0===a.length)return void C("H\xe3y chọn \xedt nhất một model trước khi lưu quyền truy cập API key.");aA(!0),C("");try{await ci(av.id,{allowedModels:a})&&(aw(null),ay([]))}finally{aA(!1)}},ck=async a=>{if(aB){aG(!0),C("");try{await ci(aB.id,{limits:r(a)})&&(aC(null),aE(i))}finally{aG(!1)}}},cl=async()=>{if(aB){aG(!0),C("");try{await ci(aB.id,{limits:{}})&&(aC(null),aE(i))}finally{aG(!1)}}},cm=async a=>{if(!aH)return!1;aO(!0),C("");try{let b=await fetch(`/api/keys/${aH.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||"Kh\xf4ng lưu được cấu h\xecnh Caveman");return await b7(),aI(null),!0}catch(b){let a=b?.message||"Kh\xf4ng lưu được cấu h\xecnh Caveman";throw C(a),Error(a)}finally{aO(!1)}};return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold text-text-main",children:"Quản l\xfd API Keys"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:bF?"Bảng quản trị API key c\xf3 t\xecm kiếm, lọc trạng th\xe1i v\xe0 ph\xe2n trang để kh\xf4ng render qu\xe1 nhiều key c\xf9ng l\xfac.":`Bạn c\xf3 thể quản l\xfd API key của t\xe0i khoản m\xecnh. Mỗi user thường sở hữu tối đa ${bG} API keys. D\xf9ng n\xfat Đổi key để xoay sang key mới m\xe0 kh\xf4ng cần x\xf3a/tạo lại.`})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(f.$n,{variant:"outline",onClick:b7,disabled:u,children:u?"Đang tải...":"Refresh"}),(0,d.jsx)(f.$n,{onClick:()=>{E(!0),!H&&bE&&J(bE)},disabled:bK,children:"Tạo API Key"})]})]}),A?(0,d.jsx)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600 whitespace-pre-line",children:A}):null,(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsx)(x,{label:"Tổng API keys",value:bI,hint:bF?"To\xe0n hệ thống":`${bH}/${bG} key của bạn`}),(0,d.jsx)(x,{label:"Đang hiển thị",value:bJ,hint:b6?"Theo bộ lọc hiện tại":"Kh\xf4ng filter"}),(0,d.jsx)(x,{label:"Page size",value:bv,hint:"Chỉ tải số d\xf2ng của trang hiện tại"})]}),bF?null:(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Giới hạn API key theo user"}),(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["T\xe0i khoản của bạn đang c\xf3 ",bH,"/",bG," API keys. Key bị disabled vẫn được t\xednh v\xe0o giới hạn."]})]}),(0,d.jsx)("span",{className:"rounded-full border border-border bg-surface px-3 py-1 text-sm",children:bK?"Đ\xe3 đạt giới hạn":"C\xf2n c\xf3 thể tạo th\xeam"})]})}),(0,d.jsxs)("div",{className:"grid gap-4 xl:grid-cols-2",children:[(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Default models cho API key mới"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"API key mới sẽ mặc định được d\xf9ng c\xe1c model n\xe0y. Cần cấu h\xecnh \xedt nhất một default model trước khi tạo API key."})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[Z.length>0?(0,d.jsx)(s,{models:Z,emptyLabel:"Chưa cấu h\xecnh default models"}):(0,d.jsx)("span",{className:"text-sm text-red-600",children:"Chưa cấu h\xecnh default models"}),bF?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>{am(!0),b8()},children:_.length>0?`Đ\xe3 chọn ${_.length} model`:"Chọn default models..."}),(0,d.jsx)(f.$n,{size:"sm",onClick:ca,disabled:!b4||ab||0===_.length,children:ab?"Đang lưu...":"Lưu"})]}):null]}),bF?(0,d.jsx)("p",{className:"text-xs text-text-muted",children:at?"Đang tải danh s\xe1ch model...":"Danh s\xe1ch model chỉ tải khi mở bộ chọn để trang load nhanh hơn."}):null]})}),(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Default policy cho API key mới"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Policy n\xe0y được tự động g\xe1n cho key mới. Policy ri\xeang từng key vẫn c\xf3 thể override sau khi tạo."})]}),bF?(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>{ag(r(ad||i,i)),ak(!0)},children:"Chỉnh default policy"}):null]}),(0,d.jsx)(t,{limits:ad,showThinking:bF,showOutputLimit:bF})]})})]}),bF?(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Giới hạn số API key cho mỗi user"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Global default \xe1p dụng cho mọi user thường. Per-user override sẽ ghi đ\xe8 global cho user cụ thể (nhập 0 hoặc bấm X\xf3a để bỏ override v\xe0 quay lại global)."})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end",children:[(0,d.jsxs)("label",{className:"flex-1",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Global default (\xe1p dụng cho user kh\xf4ng c\xf3 override)"}),(0,d.jsx)("input",{type:"number",min:"1",value:a_,onChange:a=>a0(a.target.value),className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"})]}),(0,d.jsx)(f.$n,{onClick:cc,disabled:a1||Number.parseInt(a_,10)===aZ,children:a1?"Đang lưu...":"Lưu global"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border p-3",children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Per-user override"}),(0,d.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Ghi đ\xe8 global cho user cụ thể. Override sẽ \xe1p dụng lu\xf4n cả cho key hiện c\xf3 (chặn tạo key mới nếu vượt)."}),(0,d.jsxs)("div",{className:"mt-3 flex flex-col gap-2 sm:flex-row",children:[(0,d.jsx)("input",{value:a5,onChange:a=>a6(a.target.value),placeholder:"username hoặc email",className:"min-w-0 flex-1 rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"}),(0,d.jsx)("input",{type:"number",min:"1",value:a7,onChange:a=>a8(a.target.value),placeholder:"Giới hạn key",className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary sm:w-40"}),(0,d.jsx)(f.$n,{onClick:ce,disabled:a9,children:a9?"Đang lưu...":"Th\xeam / Cập nhật"})]}),0===Object.keys(a3).length?(0,d.jsxs)("div",{className:"mt-3 rounded-xl border border-dashed border-border bg-surface p-3 text-xs text-text-muted",children:["Chưa c\xf3 user n\xe0o được override. Global = ",aZ," key."]}):(0,d.jsx)("div",{className:"mt-3 overflow-hidden rounded-xl border border-border",children:(0,d.jsxs)("table",{className:"min-w-full text-sm",children:[(0,d.jsx)("thead",{className:"bg-surface text-xs text-text-muted",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:"User"}),(0,d.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:"Giới hạn"}),(0,d.jsx)("th",{className:"px-3 py-2 text-right font-medium",children:"H\xe0nh động"})]})}),(0,d.jsx)("tbody",{children:Object.entries(a3).sort(([a],[b])=>a.localeCompare(b)).map(([a,b])=>(0,d.jsxs)("tr",{className:"border-t border-border",children:[(0,d.jsx)("td",{className:"px-3 py-2 font-mono text-xs",children:a}),(0,d.jsx)("td",{className:"px-3 py-2",children:b}),(0,d.jsx)("td",{className:"px-3 py-2 text-right",children:(0,d.jsx)(f.$n,{size:"sm",variant:"ghost",disabled:a9,onClick:()=>cf(a),children:"X\xf3a"})})]},a))})]})})]})]})}):null,(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Th\xf4ng tin API endpoint"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"D\xf9ng API key b\xean dưới để gọi gateway theo chuẩn OpenAI-compatible. Endpoint lấy theo domain hiện tại của dashboard."})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Chat Completions"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bN})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>bA(bL,"api-base-url"),children:"api-base-url"===bz?"Đ\xe3 copy Base URL":"Copy Base URL"}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>bA(bN,"api-chat-endpoint"),children:"api-chat-endpoint"===bz?"Đ\xe3 copy Endpoint":"Copy Endpoint"})]})]})}),N?(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsx)("h3",{className:"font-medium",children:"Đ\xe3 tạo API key"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-sm",children:N}),(0,d.jsxs)("div",{className:"text-sm text-text-muted",children:["H\xe3y copy ngay. Key mới mặc định được d\xf9ng default models v\xe0 default policy đang cấu h\xecnh trong Dashboard, trừ khi admin chỉnh quyền model/policy.",(0,d.jsx)(s,{models:Z,emptyLabel:"default models"})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.$n,{size:"sm",onClick:()=>bA(N,"created"),children:"created"===bz?"Đ\xe3 copy":"Copy"}),(0,d.jsx)(f.$n,{size:"sm",variant:"ghost",onClick:()=>O(""),children:"Đ\xf3ng"})]})]})}):null,(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 xl:flex-row xl:items-end xl:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"text-lg font-semibold text-text-main",children:"Danh s\xe1ch API keys"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"T\xecm theo t\xean key, owner, model, id hoặc một phần API key. Backend chỉ trả về page hiện tại."})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[(0,d.jsx)("input",{value:bn,onChange:a=>bo(a.target.value),placeholder:"T\xecm API key, owner, model...",className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary sm:w-80"}),(0,d.jsxs)("select",{value:br,onChange:a=>{bs(a.target.value),bu(1)},className:"rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"all",children:"Tất cả trạng th\xe1i"}),(0,d.jsx)("option",{value:"active",children:"Chỉ key đang bật"}),(0,d.jsx)("option",{value:"inactive",children:"Chỉ key đ\xe3 tắt"})]}),b6?(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>{bo(""),bq(""),bs("all"),bu(1)},children:"X\xf3a lọc"}):null]})]}),u?(0,d.jsx)("div",{className:"rounded-2xl border border-dashed border-border p-8 text-center text-sm text-text-muted",children:"Đang tải API keys..."}):0===o.length?(0,d.jsx)("div",{className:"rounded-2xl border border-dashed border-border p-8 text-center text-sm text-text-muted",children:b6?"Kh\xf4ng t\xecm thấy API key ph\xf9 hợp bộ lọc.":"Chưa c\xf3 API key n\xe0o."}):(0,d.jsx)(L,{keys:o,copied:bz,copy:bA,isAdmin:bF,globalCavemanEnabled:aP,globalCavemanLevel:aR,onToggleActive:(a,b)=>ci(a,{isActive:b}),onApiTest:be,onClaudeSettings:bg,onOpenCodeSettings:bi,onCodexSettings:bk,onQwenSettings:bm,onRename:(a,b)=>{let c=prompt("T\xean API key mới",b||"");c?.trim()&&ci(a,{name:c.trim()})},onRotate:a=>{a?.id&&Q({title:"Đổi API key",message:"Hệ thống sẽ tạo chuỗi API key mới cho record n\xe0y v\xe0 giữ nguy\xean t\xean, owner, model, policy. Key cũ sẽ hết hiệu lực ngay sau khi đổi.",onConfirm:async()=>{Q(null),C("");let b=await fetch(`/api/keys/${a.id}/rotate`,{method:"POST"}),c=await b.json().catch(()=>({}));if(!b.ok)return void C(c.error||"Kh\xf4ng đổi được API key");let d=c.rotatedKey||c.key?.key||"";d&&O(d),await b7()}})},onEditModels:a=>{aw(a),ay(k(a.allowedModels)),b8()},onEditPolicy:a=>{bF&&(aC(a),aE(q(a.limits)?r(a.limits):i))},onEditCaveman:aI,onShowCavemanInfo:aK,onCavemanTest:aM,onAssignOwner:(a,b)=>{if(!bF)return;let c=prompt("G\xe1n owner username/email",b||bE||"");null!==c&&ci(a,{ownerUser:j(c)})},onDelete:a=>{Q({title:"X\xf3a API Key",message:"Bạn chắc chắn muốn x\xf3a API key n\xe0y? Thao t\xe1c n\xe0y kh\xf4ng thể ho\xe0n t\xe1c.",onConfirm:async()=>{Q(null),(await fetch(`/api/keys/${a}`,{method:"DELETE"})).ok&&await b7()}})}}),(0,d.jsx)(y,{pagination:bx,pageSize:bv,onPageChange:bu,onPageSizeChange:a=>{bw(a),bu(1)},loading:u})]})}),(0,d.jsx)(f.aF,{isOpen:D,onClose:()=>E(!1),title:"Tạo API Key",size:"lg",children:(0,d.jsxs)("div",{className:"space-y-4",children:[0===Z.length?(0,d.jsx)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:"Admin cần cấu h\xecnh default models trước khi tạo API key."}):bK?(0,d.jsxs)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:["Bạn đ\xe3 đạt giới hạn ",bG," API keys. H\xe3y x\xf3a bớt key cũ trước khi tạo key mới."]}):(0,d.jsxs)("div",{className:"text-sm text-text-muted",children:["Key n\xe0y sẽ được tạo với quyền d\xf9ng default models v\xe0 default policy đang cấu h\xecnh trong Dashboard.",(0,d.jsx)(s,{models:Z})]}),(0,d.jsxs)("label",{className:"block",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"T\xean API key"}),(0,d.jsx)("input",{value:F,onChange:a=>G(a.target.value),placeholder:"VD: VSCode, LibreChat, team-user",className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"})]}),bF?(0,d.jsxs)("div",{className:"space-y-3 rounded-xl border border-border p-3",children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Owner user"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("input",{value:T,onChange:a=>U(a.target.value),placeholder:"Nhập từ kh\xf3a rồi bấm Tải",className:"min-w-0 flex-1 rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>b9(T),disabled:V,children:V?"Đang tải":"Tải LDAP"})]}),(0,d.jsxs)("select",{value:H,onChange:a=>J(a.target.value),className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",children:[(0,d.jsxs)("option",{value:bE||"",children:["G\xe1n cho t\xf4i (",bE||"local",")"]}),b3.map(a=>(0,d.jsx)("option",{value:a.id,children:a.label},a.id))]}),(0,d.jsx)("input",{value:K,onChange:a=>M(a.target.value),placeholder:"username hoặc email, kh\xf4ng bắt buộc",className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"LDAP kh\xf4ng tự tải khi mở trang để giảm thời gian load. C\xf3 thể nhập owner thủ c\xf4ng hoặc nhập từ kh\xf3a rồi bấm Tải LDAP."})]}):(0,d.jsxs)("p",{className:"rounded-xl border border-border bg-surface p-3 text-sm text-text-muted",children:["Owner: ",bE||"user hiện tại"]}),(0,d.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>E(!1),children:"Hủy"}),(0,d.jsx)(f.$n,{onClick:ch,disabled:b5,children:X?"Đang tạo...":"Tạo"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bd,onClose:()=>be(null),title:"API Test bằng curl Windows",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Lệnh dưới đ\xe2y gọi thử endpoint Chat Completions bằng API key đang chọn v\xe0 đ\xe3 nh\xfang sẵn Bearer token."}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bd?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Endpoint"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bN})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model test"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bP})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"Lệnh curl cho Windows CMD"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bS})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"D\xe1n lệnh v\xe0o CMD hoặc Windows Terminal để test nhanh. Nếu domain dashboard chạy sau reverse proxy, endpoint sẽ d\xf9ng đ\xfang domain đang mở tr\xean tr\xecnh duyệt."}),(0,d.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>be(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{onClick:()=>bA(bS,`api-test-curl-${bd?.id||"current"}`),children:bz===`api-test-curl-${bd?.id||"current"}`?"Đ\xe3 copy":"Copy lệnh curl"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bf,onClose:()=>bg(null),title:"Claude Code Settings",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Copy nội dung JSON dưới đ\xe2y v\xe0o file ",(0,d.jsx)("span",{className:"font-mono",children:"%USERPROFILE%\\.claude\\settings.json"})," để Claude Code gọi qua gateway n\xe0y. Model coding d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bT.codingModel}),"; model fast d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bT.fastModel}),"."]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bf?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bT.codingModel})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"settings.json"}),(0,d.jsx)("pre",{className:"max-h-[420px] overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bU})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"C\xe0i v\xe0 chạy Claude Code CLI tr\xean Windows"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bV})]}),(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:"Lưu \xfd: 2 d\xf2ng auto-compact/context window đ\xe3 được comment sẵn; chỉ uncomment khi d\xf9ng local model. Nếu c\xe0i bằng npm th\xec m\xe1y cần c\xe0i Node.js trước. Chạy Claude Code trong thư mục project, kh\xf4ng chạy trong C:\\WINDOWS\\system32. Nếu d\xf9ng model fast ri\xeang như programmer-fast th\xec API key n\xe0y cũng phải được ph\xe9p d\xf9ng model đ\xf3 trong cột Model."}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>bg(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>bA(bV,`claude-code-help-${bf?.id||"current"}`),children:bz===`claude-code-help-${bf?.id||"current"}`?"Đ\xe3 copy hướng dẫn":"Copy hướng dẫn"}),(0,d.jsx)(f.$n,{onClick:()=>bA(bU,`claude-code-settings-${bf?.id||"current"}`),children:bz===`claude-code-settings-${bf?.id||"current"}`?"Đ\xe3 copy settings":"Copy settings.json"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bh,onClose:()=>bi(null),title:"OpenCode Settings",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Copy JSON dưới đ\xe2y v\xe0o file ",(0,d.jsx)("span",{className:"font-mono",children:"%APPDATA%\\opencode\\opencode.json"})," hoặc ",(0,d.jsx)("span",{className:"font-mono",children:"opencode.json"})," trong project. Model ch\xednh d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bW.codingModel}),"; explorer/fast d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bW.fastModel}),"."]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-4",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bh?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model ch\xednh"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bW.codingModel})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model fast"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bW.fastModel})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"opencode.json"}),(0,d.jsx)("pre",{className:"max-h-[420px] overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bX})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"C\xe0i v\xe0 chạy OpenCode tr\xean Windows PowerShell"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bY})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:["Lưu \xfd: API key n\xe0y cần được ph\xe9p gọi cả ",bW.codingModel," v\xe0 ",bW.fastModel,". Nếu OpenCode đang d\xf9ng đường dẫn config kh\xe1c, c\xf3 thể đặt file opencode.json ngay trong thư mục project."]}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>bi(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>bA(bY,`opencode-help-${bh?.id||"current"}`),children:bz===`opencode-help-${bh?.id||"current"}`?"Đ\xe3 copy hướng dẫn":"Copy hướng dẫn"}),(0,d.jsx)(f.$n,{onClick:()=>bA(bX,`opencode-settings-${bh?.id||"current"}`),children:bz===`opencode-settings-${bh?.id||"current"}`?"Đ\xe3 copy settings":"Copy opencode.json"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bj,onClose:()=>bk(null),title:"Codex Settings",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Copy TOML dưới đ\xe2y v\xe0o file ",(0,d.jsx)("span",{className:"font-mono",children:"%USERPROFILE%\\.codex\\config.toml"}),". API key được set bằng biến m\xf4i trường ",(0,d.jsx)("span",{className:"font-mono",children:"OPENAI_API_KEY"}),". Model ch\xednh d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bZ.codingModel}),"; profile fast d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bZ.fastModel}),"."]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bj?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bZ.codingModel})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"config.toml"}),(0,d.jsx)("pre",{className:"max-h-[420px] overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:b$})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"C\xe0i v\xe0 chạy Codex tr\xean Windows PowerShell"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:b_})]}),(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:"Lưu \xfd: c\xe1c d\xf2ng context window v\xe0 auto-compact đ\xe3 được comment sẵn; chỉ uncomment khi d\xf9ng local model. Nếu c\xe0i bằng npm th\xec m\xe1y cần c\xe0i Node.js trước. Hướng dẫn đ\xe3 tự tạo config.toml v\xe0 set biến m\xf4i trường cho phi\xean PowerShell hiện tại; setx chỉ lưu lại cho terminal mở sau. Codex d\xf9ng OpenAI-compatible endpoint của BlueRouter."}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>bk(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>bA(b_,`codex-help-${bj?.id||"current"}`),children:bz===`codex-help-${bj?.id||"current"}`?"Đ\xe3 copy hướng dẫn":"Copy hướng dẫn"}),(0,d.jsx)(f.$n,{onClick:()=>bA(b$,`codex-settings-${bj?.id||"current"}`),children:bz===`codex-settings-${bj?.id||"current"}`?"Đ\xe3 copy settings":"Copy config.toml"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bl,onClose:()=>bm(null),title:"Qwen Code Settings",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Copy JSON dưới đ\xe2y v\xe0o file ",(0,d.jsx)("span",{className:"font-mono",children:"%USERPROFILE%\\.qwen\\settings.json"})," để Qwen Code gọi qua OpenAI-compatible endpoint của BlueRouter. Model ch\xednh d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:b0.codingModel}),"; model fast d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:b0.fastModel}),"."]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bl?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:b0.codingModel})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"settings.json"}),(0,d.jsx)("pre",{className:"max-h-[420px] overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:b1})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"C\xe0i v\xe0 chạy Qwen Code tr\xean Windows PowerShell"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:b2})]}),(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:"Lưu \xfd: hướng dẫn đ\xe3 tự tạo settings.json hợp lệ v\xe0 set biến m\xf4i trường cho phi\xean PowerShell hiện tại. setx chỉ lưu lại cho terminal mở sau. Qwen Code hỗ trợ OpenAI-compatible provider n\xean d\xf9ng tốt với BlueRouter."}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>bm(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>bA(b2,`qwen-code-help-${bl?.id||"current"}`),children:bz===`qwen-code-help-${bl?.id||"current"}`?"Đ\xe3 copy hướng dẫn":"Copy hướng dẫn"}),(0,d.jsx)(f.$n,{onClick:()=>bA(b1,`qwen-code-settings-${bl?.id||"current"}`),children:bz===`qwen-code-settings-${bl?.id||"current"}`?"Đ\xe3 copy settings":"Copy settings.json"})]})]})}),(0,d.jsx)(I,{apiKey:aL,fallbackModels:Z,onClose:()=>aM(null)}),(0,d.jsx)(B,{apiKey:aH,globalEnabled:aP,globalLevel:aR,onClose:()=>aI(null),onSave:cm,saving:aN}),(0,d.jsx)(B,{apiKey:aJ,globalEnabled:aP,globalLevel:aR,onClose:()=>aK(null),onSave:()=>{},saving:!1,infoOnly:!0}),(0,d.jsx)(w,{open:!!av,keyName:av?.name,models:ax,setModels:ay,activeProviders:an,modelAliases:ap,onClose:()=>{aw(null),ay([])},onSave:cj,saving:az,personalOnly:!bF,extraModels:Z}),(0,d.jsx)(v,{isOpen:aj,keyName:"Default cho API key mới",policy:af,setPolicy:ag,onClose:()=>{ak(!1),ag(ad||i)},onSave:cg,saving:ah}),(0,d.jsx)(v,{isOpen:!!aB,keyName:aB?.name,policy:aD,setPolicy:aE,onClose:()=>{aC(null),aE(i)},onSave:ck,onClear:cl,saving:aF}),(0,d.jsx)(f.rq,{isOpen:al,onClose:()=>am(!1),onSelect:a=>{let b=String(a?.value||a?.name||a||"").trim();b&&aa(a=>k([...a,b]))},onDeselect:a=>{let b=String(a?.value||a?.name||a||"").trim();b&&aa(a=>k(a).filter(a=>a!==b))},activeProviders:an,modelAliases:ap,title:"Chọn default models cho API key",addedModelValues:_,closeOnSelect:!1}),P?(0,d.jsx)(f.uo,{isOpen:!!P,onClose:()=>Q(null),onConfirm:P.onConfirm,title:P.title,message:P.message,confirmText:"X\xf3a",cancelText:"Hủy",variant:"danger"}):null]})}},87550:a=>{"use strict";a.exports=require("better-sqlite3")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2430,8316,8946,402,5681,4404,6064,6328,8640],()=>b(b.s=78516));module.exports=c})();
|
|
39
|
+
C\xf3 thể d\xf9ng n\xfat Đổi key để xoay sang key mới m\xe0 kh\xf4ng cần x\xf3a/tạo lại.`);Y(!0),C("");try{let a=bF?j(K||H||bE):void 0,b=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:F.trim(),ownerUser:a})}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||"Kh\xf4ng tạo được API key");O(c.key),G(""),M(""),E(!1),bu(1),await b7()}catch(a){C(a.message||"Kh\xf4ng tạo được API key")}finally{Y(!1)}}},ci=async(a,b)=>{let c=await fetch(`/api/keys/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),d=await c.json().catch(()=>({}));return c.ok?(await b7(),!0):(C(d.error||"Kh\xf4ng cập nhật được API key"),!1)},cj=async()=>{if(!av)return;let a=k(ax);if(0===a.length)return void C("H\xe3y chọn \xedt nhất một model trước khi lưu quyền truy cập API key.");aA(!0),C("");try{await ci(av.id,{allowedModels:a})&&(aw(null),ay([]))}finally{aA(!1)}},ck=async a=>{if(aB){aG(!0),C("");try{await ci(aB.id,{limits:r(a)})&&(aC(null),aE(i))}finally{aG(!1)}}},cl=async()=>{if(aB){aG(!0),C("");try{await ci(aB.id,{limits:{}})&&(aC(null),aE(i))}finally{aG(!1)}}},cm=async a=>{if(!aH)return!1;aO(!0),C("");try{let b=await fetch(`/api/keys/${aH.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||"Kh\xf4ng lưu được cấu h\xecnh Caveman");return await b7(),aI(null),!0}catch(b){let a=b?.message||"Kh\xf4ng lưu được cấu h\xecnh Caveman";throw C(a),Error(a)}finally{aO(!1)}};return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-2xl font-semibold text-text-main",children:"Quản l\xfd API Keys"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:bF?"Bảng quản trị API key c\xf3 t\xecm kiếm, lọc trạng th\xe1i v\xe0 ph\xe2n trang để kh\xf4ng render qu\xe1 nhiều key c\xf9ng l\xfac.":`Bạn c\xf3 thể quản l\xfd API key của t\xe0i khoản m\xecnh. Mỗi user thường sở hữu tối đa ${bG} API keys. D\xf9ng n\xfat Đổi key để xoay sang key mới m\xe0 kh\xf4ng cần x\xf3a/tạo lại.`})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(f.$n,{variant:"outline",onClick:b7,disabled:u,children:u?"Đang tải...":"Refresh"}),(0,d.jsx)(f.$n,{onClick:()=>{E(!0),!H&&bE&&J(bE)},disabled:bK,children:"Tạo API Key"})]})]}),A?(0,d.jsx)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600 whitespace-pre-line",children:A}):null,(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsx)(x,{label:"Tổng API keys",value:bI,hint:bF?"To\xe0n hệ thống":`${bH}/${bG} key của bạn`}),(0,d.jsx)(x,{label:"Đang hiển thị",value:bJ,hint:b6?"Theo bộ lọc hiện tại":"Kh\xf4ng filter"}),(0,d.jsx)(x,{label:"Page size",value:bv,hint:"Chỉ tải số d\xf2ng của trang hiện tại"})]}),bF?null:(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Giới hạn API key theo user"}),(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["T\xe0i khoản của bạn đang c\xf3 ",bH,"/",bG," API keys. Key bị disabled vẫn được t\xednh v\xe0o giới hạn."]})]}),(0,d.jsx)("span",{className:"rounded-full border border-border bg-surface px-3 py-1 text-sm",children:bK?"Đ\xe3 đạt giới hạn":"C\xf2n c\xf3 thể tạo th\xeam"})]})}),(0,d.jsxs)("div",{className:"grid gap-4 xl:grid-cols-2",children:[(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Default models cho API key mới"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"API key mới sẽ mặc định được d\xf9ng c\xe1c model n\xe0y. Cần cấu h\xecnh \xedt nhất một default model trước khi tạo API key."})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[Z.length>0?(0,d.jsx)(s,{models:Z,emptyLabel:"Chưa cấu h\xecnh default models"}):(0,d.jsx)("span",{className:"text-sm text-red-600",children:"Chưa cấu h\xecnh default models"}),bF?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>{am(!0),b8()},children:_.length>0?`Đ\xe3 chọn ${_.length} model`:"Chọn default models..."}),(0,d.jsx)(f.$n,{size:"sm",onClick:ca,disabled:!b4||ab||0===_.length,children:ab?"Đang lưu...":"Lưu"})]}):null]}),bF?(0,d.jsx)("p",{className:"text-xs text-text-muted",children:at?"Đang tải danh s\xe1ch model...":"Danh s\xe1ch model chỉ tải khi mở bộ chọn để trang load nhanh hơn."}):null]})}),(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Default policy cho API key mới"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Policy n\xe0y được tự động g\xe1n cho key mới. Policy ri\xeang từng key vẫn c\xf3 thể override sau khi tạo."})]}),bF?(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>{ag(r(ad||i,i)),ak(!0)},children:"Chỉnh default policy"}):null]}),(0,d.jsx)(t,{limits:ad,showThinking:bF,showOutputLimit:bF})]})})]}),bF?(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Giới hạn số API key cho mỗi user"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Global default \xe1p dụng cho mọi user thường. Per-user override sẽ ghi đ\xe8 global cho user cụ thể (nhập 0 hoặc bấm X\xf3a để bỏ override v\xe0 quay lại global)."})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end",children:[(0,d.jsxs)("label",{className:"flex-1",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Global default (\xe1p dụng cho user kh\xf4ng c\xf3 override)"}),(0,d.jsx)("input",{type:"number",min:"1",value:a_,onChange:a=>a0(a.target.value),className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"})]}),(0,d.jsx)(f.$n,{onClick:cc,disabled:a1||Number.parseInt(a_,10)===aZ,children:a1?"Đang lưu...":"Lưu global"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border p-3",children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Per-user override"}),(0,d.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Ghi đ\xe8 global cho user cụ thể. Override sẽ \xe1p dụng lu\xf4n cả cho key hiện c\xf3 (chặn tạo key mới nếu vượt)."}),(0,d.jsxs)("div",{className:"mt-3 flex flex-col gap-2 sm:flex-row",children:[(0,d.jsx)("input",{value:a5,onChange:a=>a6(a.target.value),placeholder:"username hoặc email",className:"min-w-0 flex-1 rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"}),(0,d.jsx)("input",{type:"number",min:"1",value:a7,onChange:a=>a8(a.target.value),placeholder:"Giới hạn key",className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary sm:w-40"}),(0,d.jsx)(f.$n,{onClick:ce,disabled:a9,children:a9?"Đang lưu...":"Th\xeam / Cập nhật"})]}),0===Object.keys(a3).length?(0,d.jsxs)("div",{className:"mt-3 rounded-xl border border-dashed border-border bg-surface p-3 text-xs text-text-muted",children:["Chưa c\xf3 user n\xe0o được override. Global = ",aZ," key."]}):(0,d.jsx)("div",{className:"mt-3 overflow-hidden rounded-xl border border-border",children:(0,d.jsxs)("table",{className:"min-w-full text-sm",children:[(0,d.jsx)("thead",{className:"bg-surface text-xs text-text-muted",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:"User"}),(0,d.jsx)("th",{className:"px-3 py-2 text-left font-medium",children:"Giới hạn"}),(0,d.jsx)("th",{className:"px-3 py-2 text-right font-medium",children:"H\xe0nh động"})]})}),(0,d.jsx)("tbody",{children:Object.entries(a3).sort(([a],[b])=>a.localeCompare(b)).map(([a,b])=>(0,d.jsxs)("tr",{className:"border-t border-border",children:[(0,d.jsx)("td",{className:"px-3 py-2 font-mono text-xs",children:a}),(0,d.jsx)("td",{className:"px-3 py-2",children:b}),(0,d.jsx)("td",{className:"px-3 py-2 text-right",children:(0,d.jsx)(f.$n,{size:"sm",variant:"ghost",disabled:a9,onClick:()=>cf(a),children:"X\xf3a"})})]},a))})]})})]})]})}):null,(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"font-medium",children:"Th\xf4ng tin API endpoint"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"D\xf9ng API key b\xean dưới để gọi gateway theo chuẩn OpenAI-compatible. Endpoint lấy theo domain hiện tại của dashboard."})]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Chat Completions"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bN})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>bA(bL,"api-base-url"),children:"api-base-url"===bz?"Đ\xe3 copy Base URL":"Copy Base URL"}),(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>bA(bN,"api-chat-endpoint"),children:"api-chat-endpoint"===bz?"Đ\xe3 copy Endpoint":"Copy Endpoint"})]})]})}),N?(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsx)("h3",{className:"font-medium",children:"Đ\xe3 tạo API key"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-sm",children:N}),(0,d.jsxs)("div",{className:"text-sm text-text-muted",children:["H\xe3y copy ngay. Key mới mặc định được d\xf9ng default models v\xe0 default policy đang cấu h\xecnh trong Dashboard, trừ khi admin chỉnh quyền model/policy.",(0,d.jsx)(s,{models:Z,emptyLabel:"default models"})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.$n,{size:"sm",onClick:()=>bA(N,"created"),children:"created"===bz?"Đ\xe3 copy":"Copy"}),(0,d.jsx)(f.$n,{size:"sm",variant:"ghost",onClick:()=>O(""),children:"Đ\xf3ng"})]})]})}):null,(0,d.jsx)(f.Zp,{children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 xl:flex-row xl:items-end xl:justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"text-lg font-semibold text-text-main",children:"Danh s\xe1ch API keys"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"T\xecm theo t\xean key, owner, model, id hoặc một phần API key. Backend chỉ trả về page hiện tại."})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[(0,d.jsx)("input",{value:bn,onChange:a=>bo(a.target.value),placeholder:"T\xecm API key, owner, model...",className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary sm:w-80"}),(0,d.jsxs)("select",{value:br,onChange:a=>{bs(a.target.value),bu(1)},className:"rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"all",children:"Tất cả trạng th\xe1i"}),(0,d.jsx)("option",{value:"active",children:"Chỉ key đang bật"}),(0,d.jsx)("option",{value:"inactive",children:"Chỉ key đ\xe3 tắt"})]}),b6?(0,d.jsx)(f.$n,{variant:"outline",size:"sm",onClick:()=>{bo(""),bq(""),bs("all"),bu(1)},children:"X\xf3a lọc"}):null]})]}),u?(0,d.jsx)("div",{className:"rounded-2xl border border-dashed border-border p-8 text-center text-sm text-text-muted",children:"Đang tải API keys..."}):0===o.length?(0,d.jsx)("div",{className:"rounded-2xl border border-dashed border-border p-8 text-center text-sm text-text-muted",children:b6?"Kh\xf4ng t\xecm thấy API key ph\xf9 hợp bộ lọc.":"Chưa c\xf3 API key n\xe0o."}):(0,d.jsx)(L,{keys:o,copied:bz,copy:bA,isAdmin:bF,globalCavemanEnabled:aP,globalCavemanLevel:aR,onToggleActive:(a,b)=>ci(a,{isActive:b}),onApiTest:be,onClaudeSettings:bg,onOpenCodeSettings:bi,onCodexSettings:bk,onQwenSettings:bm,onRename:(a,b)=>{let c=prompt("T\xean API key mới",b||"");c?.trim()&&ci(a,{name:c.trim()})},onRotate:a=>{a?.id&&Q({title:"Đổi API key",message:"Hệ thống sẽ tạo chuỗi API key mới cho record n\xe0y v\xe0 giữ nguy\xean t\xean, owner, model, policy. Key cũ sẽ hết hiệu lực ngay sau khi đổi.",onConfirm:async()=>{Q(null),C("");let b=await fetch(`/api/keys/${a.id}/rotate`,{method:"POST"}),c=await b.json().catch(()=>({}));if(!b.ok)return void C(c.error||"Kh\xf4ng đổi được API key");let d=c.rotatedKey||c.key?.key||"";d&&O(d),await b7()}})},onEditModels:a=>{aw(a),ay(k(a.allowedModels)),b8()},onEditPolicy:a=>{bF&&(aC(a),aE(q(a.limits)?r(a.limits):i))},onEditCaveman:aI,onShowCavemanInfo:aK,onCavemanTest:aM,onAssignOwner:(a,b)=>{if(!bF)return;let c=prompt("G\xe1n owner username/email",b||bE||"");null!==c&&ci(a,{ownerUser:j(c)})},onDelete:a=>{Q({title:"X\xf3a API Key",message:"Bạn chắc chắn muốn x\xf3a API key n\xe0y? Thao t\xe1c n\xe0y kh\xf4ng thể ho\xe0n t\xe1c.",onConfirm:async()=>{Q(null),(await fetch(`/api/keys/${a}`,{method:"DELETE"})).ok&&await b7()}})}}),(0,d.jsx)(y,{pagination:bx,pageSize:bv,onPageChange:bu,onPageSizeChange:a=>{bw(a),bu(1)},loading:u})]})}),(0,d.jsx)(f.aF,{isOpen:D,onClose:()=>E(!1),title:"Tạo API Key",size:"lg",children:(0,d.jsxs)("div",{className:"space-y-4",children:[0===Z.length?(0,d.jsx)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:"Admin cần cấu h\xecnh default models trước khi tạo API key."}):bK?(0,d.jsxs)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:["Bạn đ\xe3 đạt giới hạn ",bG," API keys. H\xe3y x\xf3a bớt key cũ trước khi tạo key mới."]}):(0,d.jsxs)("div",{className:"text-sm text-text-muted",children:["Key n\xe0y sẽ được tạo với quyền d\xf9ng default models v\xe0 default policy đang cấu h\xecnh trong Dashboard.",(0,d.jsx)(s,{models:Z})]}),(0,d.jsxs)("label",{className:"block",children:[(0,d.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"T\xean API key"}),(0,d.jsx)("input",{value:F,onChange:a=>G(a.target.value),placeholder:"VD: VSCode, LibreChat, team-user",className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"})]}),bF?(0,d.jsxs)("div",{className:"space-y-3 rounded-xl border border-border p-3",children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Owner user"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("input",{value:T,onChange:a=>U(a.target.value),placeholder:"Nhập từ kh\xf3a rồi bấm Tải",className:"min-w-0 flex-1 rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>b9(T),disabled:V,children:V?"Đang tải":"Tải LDAP"})]}),(0,d.jsxs)("select",{value:H,onChange:a=>J(a.target.value),className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",children:[(0,d.jsxs)("option",{value:bE||"",children:["G\xe1n cho t\xf4i (",bE||"local",")"]}),b3.map(a=>(0,d.jsx)("option",{value:a.id,children:a.label},a.id))]}),(0,d.jsx)("input",{value:K,onChange:a=>M(a.target.value),placeholder:"username hoặc email, kh\xf4ng bắt buộc",className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"LDAP kh\xf4ng tự tải khi mở trang để giảm thời gian load. C\xf3 thể nhập owner thủ c\xf4ng hoặc nhập từ kh\xf3a rồi bấm Tải LDAP."})]}):(0,d.jsxs)("p",{className:"rounded-xl border border-border bg-surface p-3 text-sm text-text-muted",children:["Owner: ",bE||"user hiện tại"]}),(0,d.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>E(!1),children:"Hủy"}),(0,d.jsx)(f.$n,{onClick:ch,disabled:b5,children:X?"Đang tạo...":"Tạo"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bd,onClose:()=>be(null),title:"API Test bằng curl Windows",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Lệnh dưới đ\xe2y gọi thử endpoint Chat Completions bằng API key đang chọn v\xe0 đ\xe3 nh\xfang sẵn Bearer token."}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bd?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Endpoint"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bN})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model test"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bP})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"Lệnh curl cho Windows CMD"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bS})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"D\xe1n lệnh v\xe0o CMD hoặc Windows Terminal để test nhanh. Nếu domain dashboard chạy sau reverse proxy, endpoint sẽ d\xf9ng đ\xfang domain đang mở tr\xean tr\xecnh duyệt."}),(0,d.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>be(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{onClick:()=>bA(bS,`api-test-curl-${bd?.id||"current"}`),children:bz===`api-test-curl-${bd?.id||"current"}`?"Đ\xe3 copy":"Copy lệnh curl"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bf,onClose:()=>bg(null),title:"Claude Code Settings",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Copy nội dung JSON dưới đ\xe2y v\xe0o file ",(0,d.jsx)("span",{className:"font-mono",children:"%USERPROFILE%\\.claude\\settings.json"})," để Claude Code gọi qua gateway n\xe0y. Model coding d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bT.codingModel}),"; model fast d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bT.fastModel}),"."]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bf?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bT.codingModel})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"settings.json"}),(0,d.jsx)("pre",{className:"max-h-[420px] overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bU})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"C\xe0i v\xe0 chạy Claude Code CLI tr\xean Windows"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bV})]}),(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:"Lưu \xfd: 2 d\xf2ng auto-compact/context window đ\xe3 được comment sẵn; chỉ uncomment khi d\xf9ng local model. Nếu c\xe0i bằng npm th\xec m\xe1y cần c\xe0i Node.js trước. Chạy Claude Code trong thư mục project, kh\xf4ng chạy trong C:\\WINDOWS\\system32. Nếu d\xf9ng model fast ri\xeang như programmer-fast th\xec API key n\xe0y cũng phải được ph\xe9p d\xf9ng model đ\xf3 trong cột Model."}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>bg(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>bA(bV,`claude-code-help-${bf?.id||"current"}`),children:bz===`claude-code-help-${bf?.id||"current"}`?"Đ\xe3 copy hướng dẫn":"Copy hướng dẫn"}),(0,d.jsx)(f.$n,{onClick:()=>bA(bU,`claude-code-settings-${bf?.id||"current"}`),children:bz===`claude-code-settings-${bf?.id||"current"}`?"Đ\xe3 copy settings":"Copy settings.json"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bh,onClose:()=>bi(null),title:"OpenCode Settings",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Copy JSON dưới đ\xe2y v\xe0o file ",(0,d.jsx)("span",{className:"font-mono",children:"%APPDATA%\\opencode\\opencode.json"})," hoặc ",(0,d.jsx)("span",{className:"font-mono",children:"opencode.json"})," trong project. Model ch\xednh d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bW.codingModel}),"; explorer/fast d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bW.fastModel}),"."]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-4",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bh?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model ch\xednh"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bW.codingModel})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model fast"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bW.fastModel})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"opencode.json"}),(0,d.jsx)("pre",{className:"max-h-[420px] overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bX})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"C\xe0i v\xe0 chạy OpenCode tr\xean Windows PowerShell"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:bY})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:["Lưu \xfd: API key n\xe0y cần được ph\xe9p gọi cả ",bW.codingModel," v\xe0 ",bW.fastModel,". Nếu OpenCode đang d\xf9ng đường dẫn config kh\xe1c, c\xf3 thể đặt file opencode.json ngay trong thư mục project."]}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>bi(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>bA(bY,`opencode-help-${bh?.id||"current"}`),children:bz===`opencode-help-${bh?.id||"current"}`?"Đ\xe3 copy hướng dẫn":"Copy hướng dẫn"}),(0,d.jsx)(f.$n,{onClick:()=>bA(bX,`opencode-settings-${bh?.id||"current"}`),children:bz===`opencode-settings-${bh?.id||"current"}`?"Đ\xe3 copy settings":"Copy opencode.json"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bj,onClose:()=>bk(null),title:"Codex Settings",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Copy TOML dưới đ\xe2y v\xe0o file ",(0,d.jsx)("span",{className:"font-mono",children:"%USERPROFILE%\\.codex\\config.toml"}),". API key được set bằng biến m\xf4i trường ",(0,d.jsx)("span",{className:"font-mono",children:"OPENAI_API_KEY"}),". Model ch\xednh d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bZ.codingModel}),"; profile fast d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:bZ.fastModel}),"."]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bj?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bZ.codingModel})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"config.toml"}),(0,d.jsx)("pre",{className:"max-h-[420px] overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:b$})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"C\xe0i v\xe0 chạy Codex tr\xean Windows PowerShell"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:b_})]}),(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:"Lưu \xfd: c\xe1c d\xf2ng context window v\xe0 auto-compact đ\xe3 được comment sẵn; chỉ uncomment khi d\xf9ng local model. Nếu c\xe0i bằng npm th\xec m\xe1y cần c\xe0i Node.js trước. Hướng dẫn đ\xe3 tự tạo config.toml v\xe0 set biến m\xf4i trường cho phi\xean PowerShell hiện tại; setx chỉ lưu lại cho terminal mở sau. Codex d\xf9ng OpenAI-compatible endpoint của BlueRouter."}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>bk(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>bA(b_,`codex-help-${bj?.id||"current"}`),children:bz===`codex-help-${bj?.id||"current"}`?"Đ\xe3 copy hướng dẫn":"Copy hướng dẫn"}),(0,d.jsx)(f.$n,{onClick:()=>bA(b$,`codex-settings-${bj?.id||"current"}`),children:bz===`codex-settings-${bj?.id||"current"}`?"Đ\xe3 copy settings":"Copy config.toml"})]})]})}),(0,d.jsx)(f.aF,{isOpen:!!bl,onClose:()=>bm(null),title:"Qwen Code Settings",size:"xl",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Copy JSON dưới đ\xe2y v\xe0o file ",(0,d.jsx)("span",{className:"font-mono",children:"%USERPROFILE%\\.qwen\\settings.json"})," để Qwen Code gọi qua OpenAI-compatible endpoint của BlueRouter. Model ch\xednh d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:b0.codingModel}),"; model fast d\xf9ng ",(0,d.jsx)("span",{className:"font-mono",children:b0.fastModel}),"."]}),(0,d.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"API Key"}),(0,d.jsx)("div",{className:"mt-1 text-sm",children:bl?.name||"API Key"})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Base URL"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:bL})]}),(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-3",children:[(0,d.jsx)("div",{className:"text-xs text-text-muted",children:"Model"}),(0,d.jsx)("div",{className:"mt-1 break-all font-mono text-sm",children:b0.codingModel})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"settings.json"}),(0,d.jsx)("pre",{className:"max-h-[420px] overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:b1})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"mb-1 text-xs font-medium text-text-muted",children:"C\xe0i v\xe0 chạy Qwen Code tr\xean Windows PowerShell"}),(0,d.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-surface p-3 text-xs",children:b2})]}),(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 p-3 text-xs text-amber-700 dark:text-amber-300",children:"Lưu \xfd: hướng dẫn đ\xe3 tự tạo settings.json hợp lệ v\xe0 set biến m\xf4i trường cho phi\xean PowerShell hiện tại. setx chỉ lưu lại cho terminal mở sau. Qwen Code hỗ trợ OpenAI-compatible provider n\xean d\xf9ng tốt với BlueRouter."}),(0,d.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>bm(null),children:"Đ\xf3ng"}),(0,d.jsx)(f.$n,{variant:"outline",onClick:()=>bA(b2,`qwen-code-help-${bl?.id||"current"}`),children:bz===`qwen-code-help-${bl?.id||"current"}`?"Đ\xe3 copy hướng dẫn":"Copy hướng dẫn"}),(0,d.jsx)(f.$n,{onClick:()=>bA(b1,`qwen-code-settings-${bl?.id||"current"}`),children:bz===`qwen-code-settings-${bl?.id||"current"}`?"Đ\xe3 copy settings":"Copy settings.json"})]})]})}),(0,d.jsx)(I,{apiKey:aL,fallbackModels:Z,onClose:()=>aM(null)}),(0,d.jsx)(B,{apiKey:aH,globalEnabled:aP,globalLevel:aR,onClose:()=>aI(null),onSave:cm,saving:aN}),(0,d.jsx)(B,{apiKey:aJ,globalEnabled:aP,globalLevel:aR,onClose:()=>aK(null),onSave:()=>{},saving:!1,infoOnly:!0}),(0,d.jsx)(w,{open:!!av,keyName:av?.name,models:ax,setModels:ay,activeProviders:an,modelAliases:ap,onClose:()=>{aw(null),ay([])},onSave:cj,saving:az,personalOnly:!bF,extraModels:Z}),(0,d.jsx)(v,{isOpen:aj,keyName:"Default cho API key mới",policy:af,setPolicy:ag,onClose:()=>{ak(!1),ag(ad||i)},onSave:cg,saving:ah}),(0,d.jsx)(v,{isOpen:!!aB,keyName:aB?.name,policy:aD,setPolicy:aE,onClose:()=>{aC(null),aE(i)},onSave:ck,onClear:cl,saving:aF}),(0,d.jsx)(f.rq,{isOpen:al,onClose:()=>am(!1),onSelect:a=>{let b=String(a?.value||a?.name||a||"").trim();b&&aa(a=>k([...a,b]))},onDeselect:a=>{let b=String(a?.value||a?.name||a||"").trim();b&&aa(a=>k(a).filter(a=>a!==b))},activeProviders:an,modelAliases:ap,title:"Chọn default models cho API key",addedModelValues:_,closeOnSelect:!1}),P?(0,d.jsx)(f.uo,{isOpen:!!P,onClose:()=>Q(null),onConfirm:P.onConfirm,title:P.title,message:P.message,confirmText:"X\xf3a",cancelText:"Hủy",variant:"danger"}):null]})}},87550:a=>{"use strict";a.exports=require("better-sqlite3")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2430,8316,8946,402,5681,4404,6064,6328,8640],()=>b(b.s=7547));module.exports=c})();
|