9router-imagefix 0.5.145 → 0.5.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +143 -215
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +10 -12
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/prerender-manifest.json +21 -21
- package/app/.next-cli-build/required-server-files.json +4 -5
- package/app/.next-cli-build/routes-manifest.json +0 -12
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +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/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +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/media-providers/[kind]/[id]/page.js +8 -12
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +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/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +5 -5
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/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.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_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.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +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/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route_client-reference-manifest.js +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/logout/route_client-reference-manifest.js +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/callback/route_client-reference-manifest.js +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/start/route_client-reference-manifest.js +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/oidc/test/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route_client-reference-manifest.js +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/status/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/connections/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/connections/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/connections/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/device/poll/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/device/poll/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/device/poll/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/device/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/device/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/device/start/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/export/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/gate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/gate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/gate/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/generate-txt/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/generate-txt/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/generate-txt/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/import-lines/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/import-lines/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/import-lines/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/jobs/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/jobs/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/jobs/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/jobs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/jobs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/jobs/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/overview/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/overview/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/overview/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/providers/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/run/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/run/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/run/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/test-prompt/route.js +1 -1
- package/app/.next-cli-build/server/app/api/automation/test-prompt/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/automation/test-prompt/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +29 -5
- 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/all-statuses/route_client-reference-manifest.js +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/alias/route_client-reference-manifest.js +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/antigravity-mitm/route_client-reference-manifest.js +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/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route_client-reference-manifest.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/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route_client-reference-manifest.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/cowork-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route_client-reference-manifest.js +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/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +26 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route_client-reference-manifest.js +1 -1
- 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/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route_client-reference-manifest.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/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route_client-reference-manifest.js +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/combos/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route_client-reference-manifest.js +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/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route_client-reference-manifest.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]/message/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route_client-reference-manifest.js +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/deepgram/voices/route_client-reference-manifest.js +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/elevenlabs/voices/route_client-reference-manifest.js +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/inworld/voices/route_client-reference-manifest.js +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/minimax/voices/route_client-reference-manifest.js +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/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route_client-reference-manifest.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/alias/route_client-reference-manifest.js +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/availability/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route_client-reference-manifest.js +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/custom/route_client-reference-manifest.js +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/disabled/route_client-reference-manifest.js +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/route_client-reference-manifest.js +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/models/test/route_client-reference-manifest.js +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/[provider]/[action]/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route_client-reference-manifest.js +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/codex/import-token/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +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/cursor/import/route_client-reference-manifest.js +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/gitlab/pat/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route_client-reference-manifest.js +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/iflow/cookie/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.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/import/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.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/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route_client-reference-manifest.js +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/pricing/route_client-reference-manifest.js +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/[id]/route_client-reference-manifest.js +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/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route_client-reference-manifest.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]/models/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route_client-reference-manifest.js +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]/route_client-reference-manifest.js +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/route_client-reference-manifest.js +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/[id]/test-models/route_client-reference-manifest.js +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/client/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route_client-reference-manifest.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/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route_client-reference-manifest.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/test-batch/route_client-reference-manifest.js +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/providers/validate/route_client-reference-manifest.js +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]/route_client-reference-manifest.js +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/[id]/test/route_client-reference-manifest.js +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/cloudflare-deploy/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
- 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/deno-deploy/route_client-reference-manifest.js +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/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route_client-reference-manifest.js +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/database/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route_client-reference-manifest.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/require-login/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route_client-reference-manifest.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/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route_client-reference-manifest.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/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route_client-reference-manifest.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/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route_client-reference-manifest.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/send/route_client-reference-manifest.js +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/translator/translate/route_client-reference-manifest.js +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/disable/route_client-reference-manifest.js +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/enable/route_client-reference-manifest.js +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/status/route_client-reference-manifest.js +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-check/route_client-reference-manifest.js +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-disable/route_client-reference-manifest.js +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-enable/route_client-reference-manifest.js +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-install/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route_client-reference-manifest.js +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/[connectionId]/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/backup/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/backup/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/backup/route_client-reference-manifest.js +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/chart/route_client-reference-manifest.js +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/history/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route_client-reference-manifest.js +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/providers/route_client-reference-manifest.js +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-details/route_client-reference-manifest.js +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/request-logs/route_client-reference-manifest.js +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/stats/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route_client-reference-manifest.js +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/api/chat/route_client-reference-manifest.js +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/speech/route_client-reference-manifest.js +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/transcriptions/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route_client-reference-manifest.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/chat/completions/route_client-reference-manifest.js +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/embeddings/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
- 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/images/generations/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.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/messages/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route_client-reference-manifest.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/models/route_client-reference-manifest.js +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/compact/route_client-reference-manifest.js +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/responses/route_client-reference-manifest.js +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/route_client-reference-manifest.js +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/search/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route_client-reference-manifest.js +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/v1/web/fetch/route_client-reference-manifest.js +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/[...path]/route_client-reference-manifest.js +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/v1beta/models/route_client-reference-manifest.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/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route_client-reference-manifest.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/shutdown/route_client-reference-manifest.js +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/api/version/update/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +7 -7
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/automation.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +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/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/endpoint.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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +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/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +9 -9
- 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/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +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.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +7 -7
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +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/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +10 -12
- package/app/.next-cli-build/server/chunks/1173.js +1 -0
- package/app/.next-cli-build/server/chunks/1375.js +1 -0
- package/app/.next-cli-build/server/chunks/1731.js +1 -0
- package/app/.next-cli-build/server/chunks/1944.js +1 -0
- package/app/.next-cli-build/server/chunks/1998.js +1 -1
- package/app/.next-cli-build/server/chunks/2132.js +1 -1
- package/app/.next-cli-build/server/chunks/2147.js +1 -0
- package/app/.next-cli-build/server/chunks/{2578.js → 2329.js} +1 -1
- package/app/.next-cli-build/server/chunks/24.js +1 -1
- package/app/.next-cli-build/server/chunks/2430.js +4 -4
- package/app/.next-cli-build/server/chunks/2881.js +1 -0
- package/app/.next-cli-build/server/chunks/2906.js +1 -0
- package/app/.next-cli-build/server/chunks/3221.js +1 -0
- package/app/.next-cli-build/server/chunks/3535.js +1 -1
- package/app/.next-cli-build/server/chunks/3593.js +2 -2
- package/app/.next-cli-build/server/chunks/3603.js +1 -0
- package/app/.next-cli-build/server/chunks/3683.js +1 -0
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/3964.js +1 -0
- package/app/.next-cli-build/server/chunks/3966.js +2 -2
- package/app/.next-cli-build/server/chunks/4044.js +1 -0
- package/app/.next-cli-build/server/chunks/4055.js +2 -2
- package/app/.next-cli-build/server/chunks/412.js +5 -5
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4613.js +1 -1
- package/app/.next-cli-build/server/chunks/4730.js +3 -3
- package/app/.next-cli-build/server/chunks/4739.js +2 -2
- package/app/.next-cli-build/server/chunks/4780.js +2 -2
- package/app/.next-cli-build/server/chunks/4884.js +27 -0
- package/app/.next-cli-build/server/chunks/5007.js +1 -0
- package/app/.next-cli-build/server/chunks/507.js +2 -2
- package/app/.next-cli-build/server/chunks/5217.js +2 -2
- package/app/.next-cli-build/server/chunks/5258.js +2 -2
- package/app/.next-cli-build/server/chunks/5299.js +20 -28
- package/app/.next-cli-build/server/chunks/5308.js +2 -0
- package/app/.next-cli-build/server/chunks/5330.js +9 -9
- package/app/.next-cli-build/server/chunks/5615.js +2 -2
- package/app/.next-cli-build/server/chunks/582.js +1 -0
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6249.js +2 -2
- package/app/.next-cli-build/server/chunks/6261.js +1 -0
- package/app/.next-cli-build/server/chunks/6763.js +1 -1
- package/app/.next-cli-build/server/chunks/6877.js +1 -1
- package/app/.next-cli-build/server/chunks/698.js +2 -2
- package/app/.next-cli-build/server/chunks/700.js +1 -0
- package/app/.next-cli-build/server/chunks/7150.js +1 -1
- package/app/.next-cli-build/server/chunks/7211.js +1 -1
- package/app/.next-cli-build/server/chunks/7220.js +1 -0
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7388.js +1 -0
- package/app/.next-cli-build/server/chunks/7525.js +1 -1
- package/app/.next-cli-build/server/chunks/7557.js +1 -1
- package/app/.next-cli-build/server/chunks/7616.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -9
- package/app/.next-cli-build/server/chunks/7828.js +1 -1
- package/app/.next-cli-build/server/chunks/7922.js +1 -0
- package/app/.next-cli-build/server/chunks/7965.js +2 -2
- package/app/.next-cli-build/server/chunks/8005.js +1 -1
- package/app/.next-cli-build/server/chunks/8402.js +1 -1
- package/app/.next-cli-build/server/chunks/8416.js +1 -1
- package/app/.next-cli-build/server/chunks/8499.js +69 -0
- package/app/.next-cli-build/server/chunks/8520.js +2 -2
- package/app/.next-cli-build/server/chunks/8532.js +3 -0
- package/app/.next-cli-build/server/chunks/8623.js +9 -0
- package/app/.next-cli-build/server/chunks/8635.js +1 -2
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +6 -6
- package/app/.next-cli-build/server/chunks/8920.js +1 -1
- package/app/.next-cli-build/server/chunks/8967.js +1 -0
- package/app/.next-cli-build/server/chunks/9128.js +1 -0
- package/app/.next-cli-build/server/chunks/915.js +2 -2
- package/app/.next-cli-build/server/chunks/9229.js +4 -4
- package/app/.next-cli-build/server/chunks/9609.js +1 -1
- package/app/.next-cli-build/server/chunks/9718.js +1 -1
- package/app/.next-cli-build/server/chunks/9927.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +12 -12
- package/app/.next-cli-build/server/middleware.js.nft.json +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/preview-props.json +3 -3
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/WANKsjP7wLMRlSD2ukzcT/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/1321-f1efe3aa9d956624.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-d7f72e154832bdf0.js +7 -0
- package/app/.next-cli-build/static/chunks/6192-e619092a4b4322ee.js +3 -0
- package/app/.next-cli-build/static/chunks/{761-c9086970fe03f4a1.js → 761-e9b6cac333988ecf.js} +18 -26
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/automation/page-a62ee92496ec9b50.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-e6459a62eaccc98a.js → page-e2d54f7276df5cc6.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-b6155aa6236f017d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-1becf050fbd060b7.js → page-83dd1a0cd9727650.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-ca65ed1d064100f8.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-50ac4d6838787e6f.js → page-cd6c0582b5669bc0.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-389565a5031d8567.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-c566eb267d9f7f9b.js → page-03da39b881470c70.js} +11 -15
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-9ad5df38ff8c0f31.js → page-82cefe332f93798b.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-d1028eedd004d698.js → page-8285f95db903e99a.js} +2 -2
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-c7bd46a65d222b83.js → page-c5d691a0e93c8d33.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-5b4ff58f676e7a57.js → page-3a00d92bdb15b682.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-d0f0779baa1fce23.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-03836fce18889089.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-976fe28aafc1f48b.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-10a096b2d28d6adc.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-407132614e8bc7da.js → page-59290aa99bc89a35.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-c194199b158e7630.js +4 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/page-a093f983a75198fa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-e2f03d354562d0c3.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-3f686bcf6cfd259c.js → page-5d409830ead0e1a7.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-ff5bfef3a1bf2707.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-cfbd343f049abf36.js → page-7959b3bf0fbb988a.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-212b397072db4c7d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-92a8397b9cbc49d1.js → layout-c6f71557fbd79106.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_not-found/page-8a7ca5d7e601b968.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/connections/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/device/poll/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/device/start/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/export/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/gate/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/generate-txt/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/import-lines/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/jobs/[id]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/jobs/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/overview/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/providers/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/run/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/automation/test-prompt/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/backup/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/callback/page-02af401f9d2b8b84.js +1 -0
- package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-fa7edddf50ac0e74.js +1 -0
- package/app/.next-cli-build/static/chunks/app/landing/page-e693f695308b9715.js +1 -0
- package/app/.next-cli-build/static/chunks/app/{layout-3d49e40fc8d8cacd.js → layout-2fac2cdc1fedc23c.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/login/{page-fd7a99bb9330b562.js → page-fec0d16f4876d5d8.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/{main-app-351d7626fb9f72a6.js → main-app-d46170adc33b3938.js} +1 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-b10cedea4d9636e6.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-0ac4b40b0e422dd4.js +1 -0
- package/app/.next-cli-build/static/css/7467f33ff02b82a7.css +1 -0
- package/app/custom-server.js +0 -17
- package/app/package.json +68 -71
- package/app/server.js +1 -1
- package/app/src/mitm/server.js +3 -3
- package/app/src/shared/services/quotaAutoPing.js +25 -57
- package/cli.js +1053 -1117
- package/package.json +48 -51
- package/src/cli/api/client.js +4 -17
- package/src/cli/commands/connect.js +269 -409
- package/src/cli/commands/connectTools.js +338 -558
- package/src/cli/menus/cliTools.js +17 -116
- package/src/cli/menus/combos.js +2 -9
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +0 -45
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +0 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route_client-reference-manifest.js +0 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +0 -68
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +0 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route_client-reference-manifest.js +0 -1
- package/app/.next-cli-build/server/chunks/1281.js +0 -1
- package/app/.next-cli-build/server/chunks/1757.js +0 -45
- package/app/.next-cli-build/server/chunks/2365.js +0 -1
- package/app/.next-cli-build/server/chunks/238.js +0 -1
- package/app/.next-cli-build/server/chunks/2533.js +0 -1
- package/app/.next-cli-build/server/chunks/2809.js +0 -1
- package/app/.next-cli-build/server/chunks/3558.js +0 -1
- package/app/.next-cli-build/server/chunks/3618.js +0 -5
- package/app/.next-cli-build/server/chunks/3641.js +0 -73
- package/app/.next-cli-build/server/chunks/3662.js +0 -1
- package/app/.next-cli-build/server/chunks/410.js +0 -1
- package/app/.next-cli-build/server/chunks/4957.js +0 -1
- package/app/.next-cli-build/server/chunks/5260.js +0 -1
- package/app/.next-cli-build/server/chunks/5335.js +0 -1
- package/app/.next-cli-build/server/chunks/5546.js +0 -1
- package/app/.next-cli-build/server/chunks/6155.js +0 -1
- package/app/.next-cli-build/server/chunks/6724.js +0 -1
- package/app/.next-cli-build/server/chunks/6795.js +0 -1
- package/app/.next-cli-build/server/chunks/6818.js +0 -1
- package/app/.next-cli-build/server/chunks/6922.js +0 -1
- package/app/.next-cli-build/server/chunks/6969.js +0 -1
- package/app/.next-cli-build/server/chunks/7066.js +0 -1
- package/app/.next-cli-build/server/chunks/8251.js +0 -1
- package/app/.next-cli-build/server/chunks/8276.js +0 -1
- package/app/.next-cli-build/server/chunks/8910.js +0 -2
- package/app/.next-cli-build/server/chunks/9100.js +0 -27
- package/app/.next-cli-build/server/chunks/936.js +0 -1
- package/app/.next-cli-build/server/chunks/9659.js +0 -1
- package/app/.next-cli-build/server/chunks/9696.js +0 -7
- package/app/.next-cli-build/static/F2JSNhxAwcJaQ-JsUWtES/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-39132f1331fa609f.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-e31d3044590886be.js +0 -7
- package/app/.next-cli-build/static/chunks/8783-3428d5d70efdc129.js +0 -5
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/automation/page-3abd55282648197d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-690bc2d9b442bd39.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-f35f73e7d7c4fc5b.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-e9b97134420d788f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-e681eb4fae8a6109.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-1fe8a388ed68c3b8.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-e44deb80a6388751.js +0 -27
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-06fbb7eea0e460ec.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-4703b14c963fe906.js +0 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/page-df7b8b3a90e2d439.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-56bda37b918d9415.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-707bc4a40e7e6e1f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-57e3f535340e0bf1.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_not-found/page-ce24efa248b68919.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/connections/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/device/poll/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/device/start/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/export/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/gate/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/generate-txt/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/import-lines/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/jobs/[id]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/jobs/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/overview/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/providers/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/run/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/automation/test-prompt/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/backup/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/callback/page-3b1cb2b5e376c88d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-da1f3d2fb1b50dd9.js +0 -1
- package/app/.next-cli-build/static/chunks/app/landing/page-7f3d45d15c4ae83d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-97ea42b332c01c15.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-799d367b1ee270b5.js +0 -1
- package/app/.next-cli-build/static/css/bf34d1b2f3f362c1.css +0 -1
- package/app/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +0 -131
- package/app/node_modules/@aws/lambda-invoke-store/package.json +0 -55
- package/app/node_modules/@aws-sdk/core/client.js +0 -5
- package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +0 -984
- package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +0 -358
- package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +0 -2949
- package/app/node_modules/@aws-sdk/core/httpAuthSchemes.js +0 -5
- package/app/node_modules/@aws-sdk/core/package.json +0 -146
- package/app/node_modules/@aws-sdk/core/protocols.js +0 -5
- package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js +0 -202
- package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/loadCognitoIdentity-v413cIIq.js +0 -4
- package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +0 -59
- package/app/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +0 -39
- package/app/node_modules/@aws-sdk/credential-provider-env/package.json +0 -63
- package/app/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +0 -179
- package/app/node_modules/@aws-sdk/credential-provider-http/package.json +0 -75
- package/app/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +0 -229
- package/app/node_modules/@aws-sdk/credential-provider-ini/package.json +0 -73
- package/app/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +0 -290
- package/app/node_modules/@aws-sdk/credential-provider-login/package.json +0 -66
- package/app/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +0 -166
- package/app/node_modules/@aws-sdk/credential-provider-node/package.json +0 -71
- package/app/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +0 -76
- package/app/node_modules/@aws-sdk/credential-provider-process/package.json +0 -63
- package/app/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +0 -192
- package/app/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +0 -3
- package/app/node_modules/@aws-sdk/credential-provider-sso/package.json +0 -67
- package/app/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +0 -58
- package/app/node_modules/@aws-sdk/credential-provider-web-identity/package.json +0 -71
- package/app/node_modules/@aws-sdk/credential-providers/dist-cjs/index.js +0 -284
- package/app/node_modules/@aws-sdk/credential-providers/dist-cjs/loadSts-C4jOcYxJ.js +0 -3
- package/app/node_modules/@aws-sdk/credential-providers/package.json +0 -85
- package/app/node_modules/@aws-sdk/nested-clients/cognito-identity.js +0 -5
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +0 -626
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +0 -595
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +0 -473
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +0 -686
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +0 -889
- package/app/node_modules/@aws-sdk/nested-clients/package.json +0 -121
- package/app/node_modules/@aws-sdk/nested-clients/signin.js +0 -5
- package/app/node_modules/@aws-sdk/nested-clients/sso-oidc.js +0 -5
- package/app/node_modules/@aws-sdk/nested-clients/sso.js +0 -5
- package/app/node_modules/@aws-sdk/nested-clients/sts.js +0 -5
- package/app/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +0 -155
- package/app/node_modules/@aws-sdk/signature-v4-multi-region/package.json +0 -60
- package/app/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +0 -158
- package/app/node_modules/@aws-sdk/token-providers/package.json +0 -69
- package/app/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +0 -372
- package/app/node_modules/@aws-sdk/xml-builder/package.json +0 -63
- package/app/node_modules/@smithy/core/cbor.js +0 -5
- package/app/node_modules/@smithy/core/checksum.js +0 -5
- package/app/node_modules/@smithy/core/client.js +0 -5
- package/app/node_modules/@smithy/core/config.js +0 -5
- package/app/node_modules/@smithy/core/dist-cjs/index.js +0 -344
- package/app/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +0 -2550
- package/app/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +0 -577
- package/app/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +0 -1200
- package/app/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +0 -779
- package/app/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +0 -879
- package/app/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +0 -924
- package/app/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +0 -2791
- package/app/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +0 -848
- package/app/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +0 -709
- package/app/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +0 -1765
- package/app/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +0 -189
- package/app/node_modules/@smithy/core/endpoints.js +0 -5
- package/app/node_modules/@smithy/core/event-streams.js +0 -5
- package/app/node_modules/@smithy/core/package.json +0 -259
- package/app/node_modules/@smithy/core/protocols.js +0 -5
- package/app/node_modules/@smithy/core/retry.js +0 -5
- package/app/node_modules/@smithy/core/schema.js +0 -5
- package/app/node_modules/@smithy/core/serde.js +0 -5
- package/app/node_modules/@smithy/core/transport.js +0 -5
- package/app/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +0 -370
- package/app/node_modules/@smithy/credential-provider-imds/package.json +0 -57
- package/app/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -859
- package/app/node_modules/@smithy/node-http-handler/package.json +0 -56
- package/app/node_modules/@smithy/signature-v4/dist-cjs/index.js +0 -585
- package/app/node_modules/@smithy/signature-v4/package.json +0 -53
- package/app/node_modules/@smithy/types/dist-cjs/index.js +0 -96
- package/app/node_modules/@smithy/types/package.json +0 -50
- package/app/node_modules/bowser/es5.js +0 -1
- package/app/node_modules/bowser/package.json +0 -93
- package/app/public/providers/bedrock-xai.png +0 -0
- package/app/public/providers/bedrock.png +0 -0
- package/app/public/providers/nous.png +0 -0
- package/src/cli/commands/show.js +0 -101
- package/src/cli/utils/comboModelId.js +0 -10
- /package/app/.next-cli-build/static/{F2JSNhxAwcJaQ-JsUWtES → WANKsjP7wLMRlSD2ukzcT}/_ssgManifest.js +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(()=>{var a={};a.id=2134,a.ids=[2134],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},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")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},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")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38071:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>ac});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(81220),j=c(29225),k=c(50412),l=c(92592),m=c(91431),n=c(70552),o=c(18982);c(87592);var p=c(60757);let q=["none","low","medium","high"],r=["none","thinking"],s=["none","low","medium","high","xhigh","max"],t={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":s,"claude-budget":s,"gemini-level":["minimal","low","medium","high"],"gemini-budget":q,zai:r,qwen:q,kimi:["none","low","medium","high","max"],deepseek:["none","high","max"],commandcode:["none","low","medium","high","xhigh","max"],minimax:r,hunyuan:q,step:q,nous:q},u=["none","minimal","low","medium","high","xhigh","max"],v=["none","low","medium","high","max"],w=[{provider:"cerebras",pattern:"*",levels:["none","low","medium","high"]},{pattern:"*gemini-4*",levels:["low","medium","high"]},{pattern:"*claude*4.6*",levels:v},{pattern:"*claude*4-6*",levels:v},{provider:"codex",pattern:"*gpt-6*",levels:u},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...u,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...u,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:u},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*mimo*v2.6*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4-pro",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4.1-flash",levels:["low","high","max"]},{pattern:"*deepseek-v4.*",levels:["none","low","medium","high","xhigh","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3-flash",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"kimi-k2.8-preview",levels:["low","medium","high"]},{provider:"codebuddy-cn",pattern:"hy3",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4-preview",levels:["high"]},{provider:"codebuddy-intl",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"minimax-code",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code",pattern:"MiniMax-M3",levels:["none","high"]},{provider:"minimax-code-global",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code-global",pattern:"MiniMax-M3",levels:["none","high"]},{provider:"codebuddy-cn",pattern:"glm-5.3*",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"hy3*",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4*",levels:["high"]}];function x(a,b){if("kiro"===a&&null===function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(b))return"reasoning";if(!b.includes("claude"))return null;let c=function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".").match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);return b?{major:Number(b[1]),minor:void 0===b[2]?null:Number(b[2])}:null}(a);if(!c)return null;let{major:d,minor:e}=c;return d<4||4===d&&(null===e||e<=5||null!==e&&e>=1e3)?null:"output_config"}(b))return null;let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=String(b||"").replace(/\([^()]+\)\s*$/,""),e="codex"===a?(0,p.SM)("cx").find(a=>a.id===d)?.thinkingLevels:null,f=w.find(c=>(!c.provider||c.provider===a)&&(0,o.gH)(c.pattern,b)),g=e||f?.levels||t[c.thinkingFormat]||q;return!1===c.thinkingCanDisable&&(g=g.filter(a=>"none"!==a)),g}var y=c(50377),z=c(29476),A=c(99258);function B({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:d=[],type:e="llm",includeLegacyAliases:f=!0}){let g=new Set(d.map(a=>a.id)),h=new Set,i=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(e&&a!==e||g.has(b.id))continue;let d=`${c}/${b.id}`;h.has(d)||(h.add(d),i.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a}))}if(!f)return i;let j=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(j))continue;let b=c.slice(j.length);!b||g.has(b)||h.has(c)||(h.add(c),i.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:e||"llm"}))}return i}var C=c(49885),D=c.n(C);function E({model:a,fullModel:b,alias:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:j,onTest:l,isTesting:m,onDisable:n,caps:o,thinkingSuffix:p}){let q=p?`${b}(${p})`:b,r="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group w-full sm:w-auto min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===g?"border-green-500/40":"error"===g?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base mt-0.5 sm:mt-0",style:r?{color:r}:void 0,children:"ok"===g?"check_circle":"error"===g?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,d.jsx)("code",{className:"w-fit max-w-full break-all rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px] sm:truncate",children:q}),(0,d.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[a.name&&(0,d.jsx)("span",{className:"break-all sm:truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,d.jsx)(k.nh,{caps:o,colorOverride:"text-text-muted/70",size:12})]})]}),(0,d.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:[l&&(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:l,disabled:m,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${m?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:m?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:()=>f(q,`model-${a.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:e===`model-${a.id}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:e===`model-${a.id}`?"Copied!":"Copy"})]}),h?(0,d.jsx)("button",{onClick:j,className:"rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})]})})}function F({modelId:a,fullModel:b,copied:c,onCopy:e,onDeleteAlias:f,onTest:g,testStatus:h,isTesting:i}){let j="ok"===h?"#22c55e":"error"===h?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===h?"border-green-500/40":"error"===h?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:j?{color:j}:void 0,children:"ok"===h?"check_circle":"error"===h?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),g&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:g,disabled:i,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:i?{animation:"spin 1s linear infinite"}:void 0,children:i?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function G({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:f,copied:g,onCopy:h,onDeleteAlias:i,onAddCustomModel:j,onDeleteCustomModel:l,connections:m,isAnthropic:n}){let[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)({}),y=async b=>{if(!u){v(b);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${a}/${b}`})}),d=await c.json();x(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{x(a=>({...a,[b]:"error"}))}finally{v(null)}}},z=B({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),A=async()=>{if(!o.trim()||q)return;let a=o.trim();if(z.some(b=>b.id===a))return void alert("Model already exists for this provider.");r(!0);try{await j(a),p("")}catch(a){console.log("Error adding model:",a)}finally{r(!1)}},C=async()=>{if(s)return;let a=m.find(a=>!1!==a.isActive);if(a){t(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||"Failed to import models");let d=c.models||[];if(0===d.length)return void alert("No models returned from /models.");let e=0;for(let a of d){let b=a.id||a.name||a.model;b&&(z.some(a=>a.id===b)||(await j(b),e+=1))}0===e&&alert("No new models were added.")}catch(a){console.log("Error importing models:",a)}finally{t(!1)}}},D=m.some(a=>!1!==a.isActive);return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",n?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,d.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,d.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{id:"new-compatible-model-input",type:"text",value:o,onChange:a=>p(a.target.value),onKeyDown:a=>"Enter"===a.key&&A(),placeholder:n?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:A,disabled:!o.trim()||q,children:q?"Adding...":"Add"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:C,disabled:!D||s,children:s?"Importing...":"Import from /models"})]}),!D&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),z.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:z.map(({id:c,alias:e,source:f})=>(0,d.jsx)(F,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:m.length>0?()=>y(c):void 0,testStatus:w[c],isTesting:u===c},`${f}-${a}/${c}`))})]})}E.propTypes={model:D().shape({id:D().string.isRequired}).isRequired,fullModel:D().string.isRequired,alias:D().string,copied:D().string,onCopy:D().func.isRequired,testStatus:D().oneOf(["ok","error"]),isCustom:D().bool,isFree:D().bool,onDeleteAlias:D().func,onTest:D().func,isTesting:D().bool,onDisable:D().func,caps:D().object,thinkingSuffix:D().string},D().string.isRequired,D().string.isRequired,D().string,D().func.isRequired,D().func.isRequired,D().func,D().oneOf(["ok","error"]),D().bool,D().string.isRequired,D().object.isRequired,D().arrayOf(D().object),D().string,D().func.isRequired,D().func.isRequired,D().func.isRequired,D().func.isRequired,G.propTypes={providerStorageAlias:D().string.isRequired,providerDisplayAlias:D().string.isRequired,modelAliases:D().object.isRequired,customModels:D().arrayOf(D().object),copied:D().string,onCopy:D().func.isRequired,onDeleteAlias:D().func.isRequired,onAddCustomModel:D().func.isRequired,onDeleteCustomModel:D().func.isRequired,connections:D().arrayOf(D().shape({id:D().string,isActive:D().bool})).isRequired,isAnthropic:D().bool};var H=c(74429),I=c(74875);function J({until:a}){let[b,c]=(0,e.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function K({connection:a,proxyPools:b,isOAuth:c,isFirst:f,isLast:g,onMoveUp:h,onMoveDown:i,onToggleActive:j,onUpdateProxy:l,onEdit:m,onDelete:n,oneByOneStatus:o=null,autoPing:p=null}){let[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1),u=(0,e.useRef)(null),v=(0,e.useRef)(null),[w,x]=(0,e.useState)(null),y=new Map((b||[]).map(a=>[a.id,a])),z=a.providerSpecificData?.proxyPoolId||null,A=z?y.get(z):null,B=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,C=!!z||B,D=A?`Pool: ${A.name}`:z?`Pool: ${z} (inactive/missing)`:B?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",E=(()=>{if(!p)return"";let a=[];return(p.reactiveOn&&a.push("On reset"),p.scheduleOn&&a.push(`Scheduled (${p.scheduleSummary||"active"})`),a.length>0)?`Auto-ping active: ${a.join(" + ")}. Click to configure.`:"codex"===p.provider?"Auto-starts the next 5h Codex window after reset or on schedule. Click to configure.":"Auto-starts a new window on quota reset or fixed schedule. Click to configure."})(),F="";if(A?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=A?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);F=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{F=b}}let G=A?.noProxy||a.providerSpecificData?.connectionNoProxy||"",L="default";A?.isActive===!0?L="success":(z||B)&&(L="error");let M=async a=>{t(!0);try{await l("__none__"===a?null:a)}finally{t(!1),r(!1)}},N=a.authType||(c?"oauth":"apikey"),O="oauth"===N,P="cookie"===N,Q=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(O?"OAuth Account":P?"Cookie Account":"API Key"),R=a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null,[S,T]=(0,e.useState)(!1),U=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,V="unavailable"!==a.testStatus||S?a.testStatus:"active",W=()=>o?"queued"===o.state?"queued":"testing"===o.state?"testing":"success"===o.state?"success":"failed"===o.state?o.error?`failed: ${o.error}`:"failed":null:null;return(0,d.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,d.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,d.jsx)("button",{onClick:h,disabled:f,className:`p-0.5 rounded ${f?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:i,disabled:g,className:`p-0.5 rounded ${g?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:P?"cookie":O?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:Q}),R&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:R}),(0,d.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,d.jsx)(k.Ex,{variant:(0,I.g)(a.isActive,V),size:"sm",dot:!0,children:!1===a.isActive?"disabled":V||"Unknown"}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:O?"OAuth":P?"Cookie":"API Key"}),C&&(0,d.jsx)(k.Ex,{variant:L,size:"sm",children:"Proxy"}),S&&!1!==a.isActive&&(0,d.jsx)(J,{until:U}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]}),a.globalPriority&&(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",a.globalPriority]}),W()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:W()})]}),C&&(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:D,children:D}),F&&(0,d.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:F}),G&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:G,children:["no_proxy: ",G]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(b||[]).length>0&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("button",{ref:v,onClick:()=>{if(q)return void r(!1);let a=v.current?.getBoundingClientRect();if(!a)return void r(!0);let c=((b?.length||0)+1)*34+8,d=window.innerHeight-a.bottom,e=d<c&&a.top>d;x({position:"fixed",right:window.innerWidth-a.right,...e?{bottom:window.innerHeight-a.top+4,maxHeight:Math.max(a.top-8,120)}:{top:a.bottom+4,maxHeight:Math.max(d-8,120)}}),r(!0)},className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${C?"text-primary":"text-text-muted hover:text-primary"}`,disabled:s,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:s?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),q&&(0,H.createPortal)((0,d.jsxs)("div",{ref:u,style:w,className:"z-50 max-w-[78vw] min-w-[160px] overflow-y-auto rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,d.jsx)("button",{onClick:()=>M("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!z?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>M(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${z===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]}),document.body)]}),p&&(0,d.jsx)(k.m_,{text:E,children:(0,d.jsxs)("button",{onClick:p.onConfigure,className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${p.isActive?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:n,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(k.lM,{size:"sm",checked:a.isActive??!0,onChange:j,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]})}J.propTypes={until:D().string.isRequired},K.propTypes={connection:D().shape({id:D().string,name:D().string,email:D().string,displayName:D().string,modelLockUntil:D().string,testStatus:D().string,isActive:D().bool,lastError:D().string,priority:D().number,globalPriority:D().number}).isRequired,proxyPools:D().arrayOf(D().shape({id:D().string,name:D().string,proxyUrl:D().string,noProxy:D().string,isActive:D().bool})),isOAuth:D().bool.isRequired,isFirst:D().bool.isRequired,isLast:D().bool.isRequired,onMoveUp:D().func.isRequired,onMoveDown:D().func.isRequired,onToggleActive:D().func.isRequired,onUpdateProxy:D().func,onEdit:D().func.isRequired,onDelete:D().func.isRequired,oneByOneStatus:D().shape({state:D().string,error:D().string}),autoPing:D().shape({isActive:D().bool,provider:D().string,reactiveOn:D().bool,scheduleOn:D().bool,scheduleSummary:D().string,onConfigure:D().func})};let L=[{value:"daily-only",label:"Daily only",hint:"Host resmi IDE saja. Paling sedikit risiko 403, tapi tidak ada cadangan saat daily kehabisan kapasitas.",urls:["daily-cloudcode-pa.googleapis.com"]},{value:"daily-autopush",label:"Daily + Autopush",hint:"Daily dulu, satu pool sandbox sebagai cadangan kapasitas.",urls:["daily-cloudcode-pa.googleapis.com","autopush-cloudcode-pa.sandbox.googleapis.com"]},{value:"all-hosts",label:"Semua host (default)",hint:"Daily dulu, lalu dua pool sandbox. Kapasitas maksimum.",urls:["daily-cloudcode-pa.googleapis.com","autopush-cloudcode-pa.sandbox.googleapis.com","staging-cloudcode-pa.sandbox.googleapis.com"]}];function M(){let[a,b]=(0,e.useState)("all-hosts"),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)(""),[i,j]=(0,e.useState)(!1),l=async c=>{f(!0),h(""),b(c);try{let a=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({antigravityHostMode:c})});if(!a.ok)throw Error(`HTTP ${a.status}`);h("Tersimpan — berlaku pada request berikutnya.")}catch(c){b(a),h(`Gagal menyimpan: ${c.message}`)}finally{f(!1)}},m=L.find(b=>b.value===a)||L[0];return(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Host Antigravity"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Host mana yang dicoba, berurut. Berlaku pada request berikutnya — tanpa restart."})]}),(0,d.jsxs)(k.Ex,{variant:"daily-only"===a?"success":"info",children:[m.urls.length," host"]})]}),(0,d.jsx)(k.l6,{label:"Mode host",value:a,disabled:c||!i,onChange:a=>l(a.target.value),options:L.map(a=>({value:a.value,label:a.label}))}),(0,d.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:m.hint}),(0,d.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:m.urls.map((a,b)=>(0,d.jsxs)("span",{className:"rounded border border-border-subtle bg-bg-subtle px-2 py-1 font-mono text-xs text-text-muted",children:[b+1,". ",a.replace(".googleapis.com","")]},a))}),"daily-only"!==a&&(0,d.jsxs)("p",{className:"mt-3 rounded border border-yellow-500/30 bg-yellow-500/10 px-3 py-2 text-xs text-text-muted",children:["Host sandbox memberlakukan gerbang tambahan: request dengan project yang tidak dikenali ditolak ",(0,d.jsx)("span",{className:"font-mono",children:"403 SUBSCRIPTION_REQUIRED (#3501)"}),". Kalau muncul error itu, kembali ke ",(0,d.jsx)("strong",{children:"Daily only"}),"."]}),g&&(0,d.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:g})]})}let N=`name1|sk-key1
|
|
1
|
+
(()=>{var a={};a.id=2134,a.ids=[2134],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},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")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},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")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},21835:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38071:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>_});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(81220),j=c(29225),k=c(50412),l=c(92592),m=c(91431),n=c(70552),o=c(18982);c(87592);var p=c(42889);let q=["none","low","medium","high"],r=["none","thinking"],s=["none","low","medium","high","xhigh","max"],t={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":s,"claude-budget":s,"gemini-level":["minimal","low","medium","high"],"gemini-budget":q,zai:r,qwen:q,kimi:["none","low","medium","high","max"],deepseek:["none","high","max"],commandcode:["none","low","medium","high","xhigh","max"],minimax:r,hunyuan:q,step:q},u=["none","minimal","low","medium","high","xhigh","max"],v=["none","low","medium","high","max"],w=[{provider:"cerebras",pattern:"*",levels:["none","low","medium","high"]},{pattern:"*claude*4.6*",levels:v},{pattern:"*claude*4-6*",levels:v},{provider:"codex",pattern:"*gpt-6*",levels:u},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...u,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...u,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:u},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*mimo*v2.6*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{pattern:"*deepseek-v4.*",levels:["none","low","medium","high","xhigh","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3*",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"hy3*",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4*",levels:["high"]},{provider:"codebuddy-intl",pattern:"deepseek-v4*",levels:["low","high","xhigh"]}];function x(a,b){if("kiro"===a&&null===function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(b))return"reasoning";if(!b.includes("claude"))return null;let c=function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".").match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);return b?{major:Number(b[1]),minor:void 0===b[2]?null:Number(b[2])}:null}(a);if(!c)return null;let{major:d,minor:e}=c;return d<4||4===d&&(null===e||e<=5||null!==e&&e>=1e3)?null:"output_config"}(b))return null;let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=String(b||"").replace(/\([^()]+\)\s*$/,""),e="codex"===a?(0,p.SM)("cx").find(a=>a.id===d)?.thinkingLevels:null,f=w.find(c=>(!c.provider||c.provider===a)&&(0,o.gH)(c.pattern,b)),g=e||f?.levels||t[c.thinkingFormat]||q;return!1===c.thinkingCanDisable&&(g=g.filter(a=>"none"!==a)),g}var y=c(50377),z=c(29476),A=c(99258);function B({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:d=[],type:e="llm",includeLegacyAliases:f=!0}){let g=new Set(d.map(a=>a.id)),h=new Set,i=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(e&&a!==e||g.has(b.id))continue;let d=`${c}/${b.id}`;h.has(d)||(h.add(d),i.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a}))}if(!f)return i;let j=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(j))continue;let b=c.slice(j.length);!b||g.has(b)||h.has(c)||(h.add(c),i.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:e||"llm"}))}return i}var C=c(49885),D=c.n(C);function E({model:a,fullModel:b,alias:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:j,onTest:l,isTesting:m,onDisable:n,caps:o,thinkingSuffix:p}){let q=p?`${b}(${p})`:b,r="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===g?"border-green-500/40":"error"===g?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:r?{color:r}:void 0,children:"ok"===g?"check_circle":"error"===g?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,d.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:q}),(0,d.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[a.name&&(0,d.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,d.jsx)(k.nh,{caps:o,colorOverride:"text-text-muted/70",size:12})]})]}),l&&(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:l,disabled:m,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${m?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:m?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:()=>f(q,`model-${a.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:e===`model-${a.id}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:e===`model-${a.id}`?"Copied!":"Copy"})]}),h?(0,d.jsx)("button",{onClick:j,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function F({modelId:a,fullModel:b,copied:c,onCopy:e,onDeleteAlias:f,onTest:g,testStatus:h,isTesting:i}){let j="ok"===h?"#22c55e":"error"===h?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===h?"border-green-500/40":"error"===h?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:j?{color:j}:void 0,children:"ok"===h?"check_circle":"error"===h?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),g&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:g,disabled:i,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:i?{animation:"spin 1s linear infinite"}:void 0,children:i?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function G({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:f,copied:g,onCopy:h,onDeleteAlias:i,onAddCustomModel:j,onDeleteCustomModel:l,connections:m,isAnthropic:n}){let[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)({}),y=async b=>{if(!u){v(b);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${a}/${b}`})}),d=await c.json();x(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{x(a=>({...a,[b]:"error"}))}finally{v(null)}}},z=B({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),A=async()=>{if(!o.trim()||q)return;let a=o.trim();if(z.some(b=>b.id===a))return void alert("Model already exists for this provider.");r(!0);try{await j(a),p("")}catch(a){console.log("Error adding model:",a)}finally{r(!1)}},C=async()=>{if(s)return;let a=m.find(a=>!1!==a.isActive);if(a){t(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||"Failed to import models");let d=c.models||[];if(0===d.length)return void alert("No models returned from /models.");let e=0;for(let a of d){let b=a.id||a.name||a.model;b&&(z.some(a=>a.id===b)||(await j(b),e+=1))}0===e&&alert("No new models were added.")}catch(a){console.log("Error importing models:",a)}finally{t(!1)}}},D=m.some(a=>!1!==a.isActive);return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",n?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,d.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,d.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{id:"new-compatible-model-input",type:"text",value:o,onChange:a=>p(a.target.value),onKeyDown:a=>"Enter"===a.key&&A(),placeholder:n?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:A,disabled:!o.trim()||q,children:q?"Adding...":"Add"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:C,disabled:!D||s,children:s?"Importing...":"Import from /models"})]}),!D&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),z.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:z.map(({id:c,alias:e,source:f})=>(0,d.jsx)(F,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:m.length>0?()=>y(c):void 0,testStatus:w[c],isTesting:u===c},`${f}-${a}/${c}`))})]})}E.propTypes={model:D().shape({id:D().string.isRequired}).isRequired,fullModel:D().string.isRequired,alias:D().string,copied:D().string,onCopy:D().func.isRequired,testStatus:D().oneOf(["ok","error"]),isCustom:D().bool,isFree:D().bool,onDeleteAlias:D().func,onTest:D().func,isTesting:D().bool,onDisable:D().func,caps:D().object,thinkingSuffix:D().string},D().string.isRequired,D().string.isRequired,D().string,D().func.isRequired,D().func.isRequired,D().func,D().oneOf(["ok","error"]),D().bool,D().string.isRequired,D().object.isRequired,D().arrayOf(D().object),D().string,D().func.isRequired,D().func.isRequired,D().func.isRequired,D().func.isRequired,G.propTypes={providerStorageAlias:D().string.isRequired,providerDisplayAlias:D().string.isRequired,modelAliases:D().object.isRequired,customModels:D().arrayOf(D().object),copied:D().string,onCopy:D().func.isRequired,onDeleteAlias:D().func.isRequired,onAddCustomModel:D().func.isRequired,onDeleteCustomModel:D().func.isRequired,connections:D().arrayOf(D().shape({id:D().string,isActive:D().bool})).isRequired,isAnthropic:D().bool};var H=c(74875);function I({until:a}){let[b,c]=(0,e.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function J({connection:a,proxyPools:b,isOAuth:c,isFirst:f,isLast:g,onMoveUp:h,onMoveDown:i,onToggleActive:j,onUpdateProxy:l,onEdit:m,onDelete:n,oneByOneStatus:o=null,autoPing:p=null}){let[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1),u=(0,e.useRef)(null),v=new Map((b||[]).map(a=>[a.id,a])),w=a.providerSpecificData?.proxyPoolId||null,x=w?v.get(w):null,y=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,z=!!w||y,A=x?`Pool: ${x.name}`:w?`Pool: ${w} (inactive/missing)`:y?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",B=p?.provider==="codex"?"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota.":"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",C="";if(x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);C=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{C=b}}let D=x?.noProxy||a.providerSpecificData?.connectionNoProxy||"",E="default";x?.isActive===!0?E="success":(w||y)&&(E="error");let F=async a=>{t(!0);try{await l("__none__"===a?null:a)}finally{t(!1),r(!1)}},G=a.authType||(c?"oauth":"apikey"),K="oauth"===G,L="cookie"===G,M=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(K?"OAuth Account":L?"Cookie Account":"API Key"),N=a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null,[O,P]=(0,e.useState)(!1),Q=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,R="unavailable"!==a.testStatus||O?a.testStatus:"active",S=()=>o?"queued"===o.state?"queued":"testing"===o.state?"testing":"success"===o.state?"success":"failed"===o.state?o.error?`failed: ${o.error}`:"failed":null:null;return(0,d.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,d.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,d.jsx)("button",{onClick:h,disabled:f,className:`p-0.5 rounded ${f?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:i,disabled:g,className:`p-0.5 rounded ${g?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:L?"cookie":K?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:M}),N&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:N}),(0,d.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,d.jsx)(k.Ex,{variant:(0,H.g)(a.isActive,R),size:"sm",dot:!0,children:!1===a.isActive?"disabled":R||"Unknown"}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:K?"OAuth":L?"Cookie":"API Key"}),z&&(0,d.jsx)(k.Ex,{variant:E,size:"sm",children:"Proxy"}),O&&!1!==a.isActive&&(0,d.jsx)(I,{until:Q}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]}),a.globalPriority&&(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",a.globalPriority]}),S()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:S()})]}),z&&(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:A,children:A}),C&&(0,d.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:C}),D&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:D,children:["no_proxy: ",D]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(b||[]).length>0&&(0,d.jsxs)("div",{className:"relative",ref:u,children:[(0,d.jsxs)("button",{onClick:()=>r(a=>!a),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${z?"text-primary":"text-text-muted hover:text-primary"}`,disabled:s,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:s?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),q&&(0,d.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,d.jsx)("button",{onClick:()=>F("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!w?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>F(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${w===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),p&&(0,d.jsx)(k.m_,{text:B,children:(0,d.jsxs)("button",{onClick:()=>p.onToggle(!p.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${p.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:n,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(k.lM,{size:"sm",checked:a.isActive??!0,onChange:j,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]})}I.propTypes={until:D().string.isRequired},J.propTypes={connection:D().shape({id:D().string,name:D().string,email:D().string,displayName:D().string,modelLockUntil:D().string,testStatus:D().string,isActive:D().bool,lastError:D().string,priority:D().number,globalPriority:D().number}).isRequired,proxyPools:D().arrayOf(D().shape({id:D().string,name:D().string,proxyUrl:D().string,noProxy:D().string,isActive:D().bool})),isOAuth:D().bool.isRequired,isFirst:D().bool.isRequired,isLast:D().bool.isRequired,onMoveUp:D().func.isRequired,onMoveDown:D().func.isRequired,onToggleActive:D().func.isRequired,onUpdateProxy:D().func,onEdit:D().func.isRequired,onDelete:D().func.isRequired,oneByOneStatus:D().shape({state:D().string,error:D().string}),autoPing:D().shape({on:D().bool,onToggle:D().func,provider:D().string})};let K=[{value:"daily-only",label:"Daily only",hint:"Host resmi IDE saja. Paling sedikit risiko 403, tapi tidak ada cadangan saat daily kehabisan kapasitas.",urls:["daily-cloudcode-pa.googleapis.com"]},{value:"daily-autopush",label:"Daily + Autopush",hint:"Daily dulu, satu pool sandbox sebagai cadangan kapasitas.",urls:["daily-cloudcode-pa.googleapis.com","autopush-cloudcode-pa.sandbox.googleapis.com"]},{value:"all-hosts",label:"Semua host (default)",hint:"Daily dulu, lalu dua pool sandbox. Kapasitas maksimum.",urls:["daily-cloudcode-pa.googleapis.com","autopush-cloudcode-pa.sandbox.googleapis.com","staging-cloudcode-pa.sandbox.googleapis.com"]}];function L(){let[a,b]=(0,e.useState)("all-hosts"),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)(""),[i,j]=(0,e.useState)(!1),l=async c=>{f(!0),h(""),b(c);try{let a=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({antigravityHostMode:c})});if(!a.ok)throw Error(`HTTP ${a.status}`);h("Tersimpan — berlaku pada request berikutnya.")}catch(c){b(a),h(`Gagal menyimpan: ${c.message}`)}finally{f(!1)}},m=K.find(b=>b.value===a)||K[0];return(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Host Antigravity"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Host mana yang dicoba, berurut. Berlaku pada request berikutnya — tanpa restart."})]}),(0,d.jsxs)(k.Ex,{variant:"daily-only"===a?"success":"info",children:[m.urls.length," host"]})]}),(0,d.jsx)(k.l6,{label:"Mode host",value:a,disabled:c||!i,onChange:a=>l(a.target.value),options:K.map(a=>({value:a.value,label:a.label}))}),(0,d.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:m.hint}),(0,d.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:m.urls.map((a,b)=>(0,d.jsxs)("span",{className:"rounded border border-border-subtle bg-bg-subtle px-2 py-1 font-mono text-xs text-text-muted",children:[b+1,". ",a.replace(".googleapis.com","")]},a))}),"daily-only"!==a&&(0,d.jsxs)("p",{className:"mt-3 rounded border border-yellow-500/30 bg-yellow-500/10 px-3 py-2 text-xs text-text-muted",children:["Host sandbox memberlakukan gerbang tambahan: request dengan project yang tidak dikenali ditolak ",(0,d.jsx)("span",{className:"font-mono",children:"403 SUBSCRIPTION_REQUIRED (#3501)"}),". Kalau muncul error itu, kembali ke ",(0,d.jsx)("strong",{children:"Daily only"}),"."]}),g&&(0,d.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:g})]})}let M=`name1|sk-key1
|
|
2
2
|
name2|sk-key2
|
|
3
|
-
sk-key-only-auto-named`;function
|
|
3
|
+
sk-key-only-auto-named`;function N({isOpen:a,provider:b,providerName:c,isCompatible:f,isAnthropic:g,authType:h,authHint:i,website:j,proxyPools:m,error:n,existingNames:o,onSave:p,onBulkDone:q,onClose:r}){let s="__none__",t="ollama-local"===b,u="cookie"===h,v="xai"===b&&!u,w=u?"Cookie Value":"qoder"===b||"qoder-cn"===b?"Personal Access Token (PAT)":"API Key",x="azure"===b,y="cloudflare-ai"===b,z=l.Q2?.[b]?.regions||null,A=l.Q2?.[b]?.defaultRegion||z?.[0]?.id||"",[B,C]=(0,e.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:s,ollamaHostUrl:""}),[D,E]=(0,e.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[F,G]=(0,e.useState)({accountId:""}),[H,I]=(0,e.useState)(A),[J,K]=(0,e.useState)(!1),[L,O]=(0,e.useState)(null),[P,Q]=(0,e.useState)(!1),R=y?`name1|sk-key1|acc123456
|
|
4
4
|
name2|sk-key2|def789012
|
|
5
5
|
sk-key-only-auto-named`:"qoder"===b||"qoder-cn"===b?`name1|pt-xxxxx
|
|
6
6
|
name2|pt-yyyyy
|
|
7
|
-
pt-only-auto-named`:N,[W,X]=(0,e.useState)("single"),[Y,Z]=(0,e.useState)(""),[$,_]=(0,e.useState)(null),aa=()=>{if(t&&D.ollamaHostUrl.trim())return{baseUrl:D.ollamaHostUrl.trim()};if(x)return{azureEndpoint:F.azureEndpoint,apiVersion:F.apiVersion,deployment:F.deployment,organization:F.organization};if(y)return{accountId:H.accountId};if(z){let a={};return J.profile.trim()&&(a.profile=J.profile.trim()),J.region.trim()&&(a.region=J.region.trim()),J.accessKeyId.trim()&&(a.accessKeyId=J.accessKeyId.trim()),J.sessionToken.trim()&&(a.sessionToken=J.sessionToken.trim()),Object.keys(a).length?a:void 0}if(B&&L)return{region:L}},ab=()=>{let a=aa();return!!(A&&a?.[A])||(z?!!D.apiKey&&!!a?.accessKeyId:!!D.apiKey)},ac=async()=>{Q(!0);try{let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:D.apiKey,providerSpecificData:aa()})}),c=await a.json();S(c.valid?"success":"failed")}catch{S("failed")}finally{Q(!1)}},ad=async()=>{if(b&&(t||ab())&&(t||D.name)&&(!f||D.defaultModel.trim())){U(!0);try{let a=!1;try{Q(!0),S(null);let c=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:D.apiKey,providerSpecificData:aa()})});a=!!(await c.json()).valid,S(a?"success":"failed")}catch{S("failed")}finally{Q(!1)}await p({name:D.name||(t?"Ollama Local":""),apiKey:D.apiKey,defaultModel:f?D.defaultModel.trim():void 0,priority:D.priority,proxyPoolId:D.proxyPoolId===s?null:D.proxyPoolId,testStatus:a?"active":"unknown",providerSpecificData:aa()})}finally{U(!1)}}},ae=async()=>{let a=Y.split("\n");if(!a.length)return;let c=function(a,b,c={}){let{isCloudflareAi:d=!1}=c,e=new Set((Array.isArray(b)?b:[]).map(a=>"string"==typeof a?a.toLowerCase():"")),f=[];for(let b of a){let a,c="string"==typeof b?b.trim():"";if(!c)continue;let g=function(a,b={}){let{isCloudflareAi:c=!1}=b,d=a.split("|");if(c&&d.length>=3){let a=d[0].trim();return{baseName:a||"Key",apiKey:d.slice(1,-1).join("|").trim(),providerSpecificData:{accountId:d[d.length-1].trim()}}}return d.length>=2?{baseName:d[0].trim()||"Key",apiKey:d.slice(1).join("|").trim()}:{baseName:"Key",apiKey:d[0].trim()}}(c,{isCloudflareAi:d});if(!g||!g.apiKey)continue;let h=g.baseName,i=1;for(;a=`${h} ${i}`,e.has(a.toLowerCase());)i+=1;e.add(a.toLowerCase());let j={name:a,apiKey:g.apiKey,skipped:!1};g.providerSpecificData&&(j.providerSpecificData=g.providerSpecificData),f.push(j)}return f}(a,o,{isCloudflareAi:y});if(!c.length)return;U(!0),_(null);let d=0,e=0;for(let a of c)try{let c=!1;try{let d=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:a.apiKey})});c=!!(await d.json().catch(()=>({}))).valid}catch{c=!1}(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:a.apiKey,name:a.name,priority:1,testStatus:c?"active":"unknown",...a.providerSpecificData?{providerSpecificData:a.providerSpecificData}:{}})})).ok?d++:e++}catch{e++}U(!1),_({success:d,failed:e}),d>0&&q&&q()};return b?(0,d.jsx)(k.aF,{isOpen:a,title:`Add ${c||b} ${w}`,onClose:r,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[!z&&(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{size:"sm",variant:"single"===W?"primary":"ghost",onClick:()=>{X("single"),_(null)},children:"Single"}),(0,d.jsx)(k.$n,{size:"sm",variant:"bulk"===W?"primary":"ghost",onClick:()=>{X("bulk"),_(null)},children:"Bulk Add"})]}),"bulk"===W&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:y?(0,d.jsxs)(d.Fragment,{children:["One key per line. Format: ",(0,d.jsx)("code",{children:"name|apiKey|accountId"})," or just ",(0,d.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}):"qoder"===b||"qoder-cn"===b?(0,d.jsxs)(d.Fragment,{children:["One PAT per line. Format: ",(0,d.jsx)("code",{children:"name|pt-..."})," or just ",(0,d.jsx)("code",{children:"pt-..."})," (auto-named by index)."]}):(0,d.jsxs)(d.Fragment,{children:["One key per line. Format: ",(0,d.jsx)("code",{children:"name|apiKey"})," or just ",(0,d.jsx)("code",{children:"apiKey"})," (auto-named by index)."]})}),(0,d.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:V,value:Y,onChange:a=>Z(a.target.value)}),$&&(0,d.jsxs)("div",{className:`text-sm font-medium ${$.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",$.success," added",$.failed>0?`, ✗ ${$.failed} failed`:""]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:ae,fullWidth:!0,disabled:T||!Y.trim(),children:T?"Adding...":"Add All Keys"}),(0,d.jsx)(k.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===W&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.pd,{label:"Name",value:D.name,onChange:a=>E({...D,name:a.target.value}),placeholder:t?"Ollama Local":"Production Key"}),t&&(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.pd,{label:"Ollama Host URL",value:D.ollamaHostUrl,onChange:a=>E({...D,ollamaHostUrl:a.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(k.$n,{onClick:ac,disabled:P||T,variant:"secondary",children:P?"Checking...":"Check"})})]}),!t&&(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.pd,{label:w,type:u?"text":"password",value:D.apiKey,onChange:a=>E({...D,apiKey:a.target.value}),placeholder:u?"grok-web"===b?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":v?"xai-...":"qoder"===b||"qoder-cn"===b?"pt-...":"",className:"flex-1"}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(k.$n,{onClick:ac,disabled:!ab()||P||T,variant:"secondary",children:P?"Checking...":"Check"})})]}),v&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),u&&i&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:[i,j&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsxs)("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",j.replace(/^https?:\/\//,"")]})]})]}),B&&(0,d.jsx)(k.l6,{label:"Region",value:L,onChange:a=>M(a.target.value),options:B.map(a=>({value:a.id,label:a.label}))}),f&&(0,d.jsx)(k.pd,{label:"Default Model",value:D.defaultModel,onChange:a=>E({...D,defaultModel:a.target.value}),placeholder:g?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),t&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,d.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,d.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),R&&(0,d.jsx)(k.Ex,{variant:"success"===R?"success":"error",children:"success"===R?"Valid":"Invalid"}),n&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:n}),f&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),y&&(0,d.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,d.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,d.jsx)(k.pd,{label:"Account ID",value:H.accountId,onChange:a=>I({...H,accountId:a.target.value}),placeholder:"abc123def456..."}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,d.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),z&&(0,d.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,d.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"AWS Bedrock Credentials"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)(k.pd,{label:"AWS Profile (SSO — recommended)",value:J.profile,onChange:a=>K({...J,profile:a.target.value}),placeholder:"my-sso-profile"}),(0,d.jsx)(k.pd,{label:"Region",value:J.region,onChange:a=>K({...J,region:a.target.value}),placeholder:"us-east-1"})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Set a profile from ",(0,d.jsx)("code",{children:"~/.aws/config"})," and leave the API key empty, then run"," ",(0,d.jsxs)("code",{children:["aws sso login --profile ",J.profile||"my-sso-profile"]}),". Credentials refresh automatically."]}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 mt-4",children:[(0,d.jsx)(k.pd,{label:"Access Key ID (only for static keys)",value:J.accessKeyId,onChange:a=>K({...J,accessKeyId:a.target.value}),placeholder:"AKIA..."}),(0,d.jsx)(k.pd,{label:"Session Token (only for temporary ASIA… keys)",type:"password",value:J.sessionToken,onChange:a=>K({...J,sessionToken:a.target.value}),placeholder:"FwoGZXIvYXdz..."})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["For static keys instead: put the AWS ",(0,d.jsx)("strong",{children:"secret"})," access key in the API Key field above and the access key id here. A profile, if set, takes precedence."]})]}),x&&(0,d.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,d.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)(k.pd,{label:"Azure Endpoint",value:F.azureEndpoint,onChange:a=>G({...F,azureEndpoint:a.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,d.jsx)(k.pd,{label:"Deployment Name",value:F.deployment,onChange:a=>G({...F,deployment:a.target.value}),placeholder:"gpt-4"}),(0,d.jsx)(k.pd,{label:"API Version",value:F.apiVersion,onChange:a=>G({...F,apiVersion:a.target.value}),placeholder:"2024-10-01-preview"}),(0,d.jsx)(k.pd,{label:"Organization",value:F.organization,onChange:a=>G({...F,organization:a.target.value}),placeholder:"Organization ID"})]})]}),(0,d.jsx)(k.pd,{label:"Priority",type:"number",value:D.priority,onChange:a=>E({...D,priority:Number.parseInt(a.target.value)||1})}),(0,d.jsx)(k.l6,{label:"Proxy Pool",value:D.proxyPoolId,onChange:a=>E({...D,proxyPoolId:a.target.value}),options:[{value:s,label:"None"},...(m||[]).map(a=>({value:a.id,label:a.name}))],placeholder:"None"}),0===(m||[]).length&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:ad,fullWidth:!0,disabled:T||!t&&(!D.name||!ab())||f&&!D.defaultModel.trim()||x&&(!F.azureEndpoint||!F.deployment||!F.organization)||y&&!H.accountId,children:T?"Saving...":"Save"}),(0,d.jsx)(k.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}function P({isOpen:a,node:b,onSave:c,onClose:f,isAnthropic:g}){let[h,i]=(0,e.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[j,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(null),u=async()=>{if(h.name.trim()&&h.prefix.trim()&&h.baseUrl.trim()){l(!0);try{let a={name:h.name,prefix:h.prefix,baseUrl:h.baseUrl};g||(a.apiType=h.apiType),await c(a)}finally{l(!1)}}},v=async()=>{r(!0);try{let a=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:h.baseUrl,apiKey:m,type:g?"anthropic-compatible":"openai-compatible",modelId:o.trim()||void 0})}),b=await a.json();t(b.valid?"success":"failed")}catch{t("failed")}finally{r(!1)}};return b?(0,d.jsx)(k.aF,{isOpen:a,title:`Edit ${g?"Anthropic":"OpenAI"} Compatible`,onClose:f,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(k.pd,{label:"Name",value:h.name,onChange:a=>i({...h,name:a.target.value}),placeholder:`${g?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,d.jsx)(k.pd,{label:"Prefix",value:h.prefix,onChange:a=>i({...h,prefix:a.target.value}),placeholder:g?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!g&&(0,d.jsx)(k.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:h.apiType,onChange:a=>i({...h,apiType:a.target.value})}),(0,d.jsx)(k.pd,{label:"Base URL",value:h.baseUrl,onChange:a=>i({...h,baseUrl:a.target.value}),placeholder:g?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${g?"Anthropic":"OpenAI"}-compatible API.`}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.pd,{label:"API Key (for Check)",type:"password",value:m,onChange:a=>n(a.target.value),className:"flex-1"}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(k.$n,{onClick:v,disabled:!m||q||!h.baseUrl.trim(),variant:"secondary",children:q?"Checking...":"Check"})})]}),(0,d.jsx)(k.pd,{label:"Model ID (optional)",value:o,onChange:a=>p(a.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),s&&(0,d.jsx)(k.Ex,{variant:"success"===s?"success":"error",children:"success"===s?"Valid":"Invalid"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:u,fullWidth:!0,disabled:!h.name.trim()||!h.prefix.trim()||!h.baseUrl.trim()||j,children:j?"Saving...":"Save"}),(0,d.jsx)(k.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}O.propTypes={isOpen:D().bool.isRequired,provider:D().string,providerName:D().string,isCompatible:D().bool,isAnthropic:D().bool,authType:D().string,authHint:D().string,website:D().string,proxyPools:D().arrayOf(D().shape({id:D().string,name:D().string})),error:D().string,existingNames:D().arrayOf(D().string),onSave:D().func.isRequired,onBulkDone:D().func,onClose:D().func.isRequired},P.propTypes={isOpen:D().bool.isRequired,node:D().shape({id:D().string,name:D().string,prefix:D().string,apiType:D().string,baseUrl:D().string}),onSave:D().func.isRequired,onClose:D().func.isRequired,isAnthropic:D().bool};let Q=()=>Object.fromEntries(Object.keys(m.bs).map(a=>[a,!1]));function R({isOpen:a,providerAlias:b,providerDisplayAlias:c,onSave:f,onClose:g}){let[h,i]=(0,e.useState)(""),[j,l]=(0,e.useState)(Q),[n,o]=(0,e.useState)(null),[p,q]=(0,e.useState)(""),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(""),v=a=>{let c=`${b}/`;return a.startsWith(c)?a.slice(c.length):a},w=async()=>{let a=v(h.trim());if(a){o("testing"),q("");try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${b}/${a}`})}),d=await c.json();o(d.ok?"ok":"error"),q(d.error||"")}catch(a){o("error"),q(a.message)}}},x=async()=>{let a=v(h.trim());if(a&&!r){s(!0);try{await f(a,j,j.stt?t:null)}finally{s(!1)}}};return(0,d.jsx)(k.aF,{isOpen:a,onClose:g,title:"Add Custom Model",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("input",{type:"text",value:h,onChange:a=>{i(a.target.value),o(null),q("")},onKeyDown:a=>{"Enter"===a.key&&w()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",autoFocus:!0}),(0,d.jsx)(k.$n,{variant:"secondary",icon:"science",loading:"testing"===n,onClick:w,disabled:!h.trim()||"testing"===n,children:"testing"===n?"Testing...":"Test"})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,d.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:v(h.trim())||"model-id"})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Capabilities"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-4",children:Object.entries(m.bs).map(([a,b])=>(0,d.jsx)(k.lM,{checked:!!j[a],onChange:b=>l(c=>({...c,[a]:b})),label:b.label,description:b.desc,size:"sm"},a))})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(k.lM,{checked:!!j.stt,onChange:a=>{l(b=>({...b,stt:a})),a||u("")},label:"Speech to text",description:"Transcribes audio via /v1/audio/transcriptions",size:"sm"}),j.stt&&(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)(k.l6,{label:"Transport",value:t,onChange:a=>u(a.target.value),placeholder:"Provider default (REST)",options:m.vp.map(a=>({value:a,label:m.qw[a].label})),hint:"Realtime transport marker for the STT dispatcher. Empty keeps the provider's REST format."})})]}),"ok"===n&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===n&&(0,d.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,d.jsx)("span",{children:p||"Model not reachable"})]}),(0,d.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,d.jsx)(k.$n,{onClick:g,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,d.jsx)(k.$n,{onClick:x,fullWidth:!0,size:"sm",disabled:!h.trim()||r,children:r?"Adding...":"Add Model"})]})]})})}R.propTypes={isOpen:D().bool.isRequired,providerAlias:D().string.isRequired,providerDisplayAlias:D().string.isRequired,onSave:D().func.isRequired,onClose:D().func.isRequired};let S=`[
|
|
7
|
+
pt-only-auto-named`:M,[S,T]=(0,e.useState)("single"),[U,V]=(0,e.useState)(""),[W,X]=(0,e.useState)(null),Y=()=>t&&B.ollamaHostUrl.trim()?{baseUrl:B.ollamaHostUrl.trim()}:x?{azureEndpoint:D.azureEndpoint,apiVersion:D.apiVersion,deployment:D.deployment,organization:D.organization}:y?{accountId:F.accountId}:z&&H?{region:H}:void 0,Z=async()=>{K(!0);try{let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:B.apiKey,providerSpecificData:Y()})}),c=await a.json();O(c.valid?"success":"failed")}catch{O("failed")}finally{K(!1)}},$=async()=>{if(b&&(t||B.apiKey)&&(t||B.name)&&(!f||B.defaultModel.trim())){Q(!0);try{let a=!1;try{K(!0),O(null);let c=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:B.apiKey,providerSpecificData:Y()})});a=!!(await c.json()).valid,O(a?"success":"failed")}catch{O("failed")}finally{K(!1)}await p({name:B.name||(t?"Ollama Local":""),apiKey:B.apiKey,defaultModel:f?B.defaultModel.trim():void 0,priority:B.priority,proxyPoolId:B.proxyPoolId===s?null:B.proxyPoolId,testStatus:a?"active":"unknown",providerSpecificData:Y()})}finally{Q(!1)}}},_=async()=>{let a=U.split("\n");if(!a.length)return;let c=function(a,b,c={}){let{isCloudflareAi:d=!1}=c,e=new Set((Array.isArray(b)?b:[]).map(a=>"string"==typeof a?a.toLowerCase():"")),f=[];for(let b of a){let a,c="string"==typeof b?b.trim():"";if(!c)continue;let g=function(a,b={}){let{isCloudflareAi:c=!1}=b,d=a.split("|");if(c&&d.length>=3){let a=d[0].trim();return{baseName:a||"Key",apiKey:d.slice(1,-1).join("|").trim(),providerSpecificData:{accountId:d[d.length-1].trim()}}}return d.length>=2?{baseName:d[0].trim()||"Key",apiKey:d.slice(1).join("|").trim()}:{baseName:"Key",apiKey:d[0].trim()}}(c,{isCloudflareAi:d});if(!g||!g.apiKey)continue;let h=g.baseName,i=1;for(;a=`${h} ${i}`,e.has(a.toLowerCase());)i+=1;e.add(a.toLowerCase());let j={name:a,apiKey:g.apiKey,skipped:!1};g.providerSpecificData&&(j.providerSpecificData=g.providerSpecificData),f.push(j)}return f}(a,o,{isCloudflareAi:y});if(!c.length)return;Q(!0),X(null);let d=0,e=0;for(let a of c)try{let c=!1;try{let d=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:a.apiKey})});c=!!(await d.json().catch(()=>({}))).valid}catch{c=!1}(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:a.apiKey,name:a.name,priority:1,testStatus:c?"active":"unknown",...a.providerSpecificData?{providerSpecificData:a.providerSpecificData}:{}})})).ok?d++:e++}catch{e++}Q(!1),X({success:d,failed:e}),d>0&&q&&q()};return b?(0,d.jsx)(k.aF,{isOpen:a,title:`Add ${c||b} ${w}`,onClose:r,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{size:"sm",variant:"single"===S?"primary":"ghost",onClick:()=>{T("single"),X(null)},children:"Single"}),(0,d.jsx)(k.$n,{size:"sm",variant:"bulk"===S?"primary":"ghost",onClick:()=>{T("bulk"),X(null)},children:"Bulk Add"})]}),"bulk"===S&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:y?(0,d.jsxs)(d.Fragment,{children:["One key per line. Format: ",(0,d.jsx)("code",{children:"name|apiKey|accountId"})," or just ",(0,d.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}):"qoder"===b||"qoder-cn"===b?(0,d.jsxs)(d.Fragment,{children:["One PAT per line. Format: ",(0,d.jsx)("code",{children:"name|pt-..."})," or just ",(0,d.jsx)("code",{children:"pt-..."})," (auto-named by index)."]}):(0,d.jsxs)(d.Fragment,{children:["One key per line. Format: ",(0,d.jsx)("code",{children:"name|apiKey"})," or just ",(0,d.jsx)("code",{children:"apiKey"})," (auto-named by index)."]})}),(0,d.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:R,value:U,onChange:a=>V(a.target.value)}),W&&(0,d.jsxs)("div",{className:`text-sm font-medium ${W.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",W.success," added",W.failed>0?`, ✗ ${W.failed} failed`:""]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:_,fullWidth:!0,disabled:P||!U.trim(),children:P?"Adding...":"Add All Keys"}),(0,d.jsx)(k.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===S&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.pd,{label:"Name",value:B.name,onChange:a=>C({...B,name:a.target.value}),placeholder:t?"Ollama Local":"Production Key"}),t&&(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.pd,{label:"Ollama Host URL",value:B.ollamaHostUrl,onChange:a=>C({...B,ollamaHostUrl:a.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(k.$n,{onClick:Z,disabled:J||P,variant:"secondary",children:J?"Checking...":"Check"})})]}),!t&&(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.pd,{label:w,type:u?"text":"password",value:B.apiKey,onChange:a=>C({...B,apiKey:a.target.value}),placeholder:u?"grok-web"===b?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":v?"xai-...":"qoder"===b||"qoder-cn"===b?"pt-...":"",className:"flex-1"}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(k.$n,{onClick:Z,disabled:!B.apiKey||J||P,variant:"secondary",children:J?"Checking...":"Check"})})]}),v&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),u&&i&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:[i,j&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsxs)("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",j.replace(/^https?:\/\//,"")]})]})]}),z&&(0,d.jsx)(k.l6,{label:"Region",value:H,onChange:a=>I(a.target.value),options:z.map(a=>({value:a.id,label:a.label}))}),f&&(0,d.jsx)(k.pd,{label:"Default Model",value:B.defaultModel,onChange:a=>C({...B,defaultModel:a.target.value}),placeholder:g?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),t&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,d.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,d.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),L&&(0,d.jsx)(k.Ex,{variant:"success"===L?"success":"error",children:"success"===L?"Valid":"Invalid"}),n&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:n}),f&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),y&&(0,d.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,d.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,d.jsx)(k.pd,{label:"Account ID",value:F.accountId,onChange:a=>G({...F,accountId:a.target.value}),placeholder:"abc123def456..."}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,d.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),x&&(0,d.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,d.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)(k.pd,{label:"Azure Endpoint",value:D.azureEndpoint,onChange:a=>E({...D,azureEndpoint:a.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,d.jsx)(k.pd,{label:"Deployment Name",value:D.deployment,onChange:a=>E({...D,deployment:a.target.value}),placeholder:"gpt-4"}),(0,d.jsx)(k.pd,{label:"API Version",value:D.apiVersion,onChange:a=>E({...D,apiVersion:a.target.value}),placeholder:"2024-10-01-preview"}),(0,d.jsx)(k.pd,{label:"Organization",value:D.organization,onChange:a=>E({...D,organization:a.target.value}),placeholder:"Organization ID"})]})]}),(0,d.jsx)(k.pd,{label:"Priority",type:"number",value:B.priority,onChange:a=>C({...B,priority:Number.parseInt(a.target.value)||1})}),(0,d.jsx)(k.l6,{label:"Proxy Pool",value:B.proxyPoolId,onChange:a=>C({...B,proxyPoolId:a.target.value}),options:[{value:s,label:"None"},...(m||[]).map(a=>({value:a.id,label:a.name}))],placeholder:"None"}),0===(m||[]).length&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:$,fullWidth:!0,disabled:P||!t&&(!B.name||!B.apiKey)||f&&!B.defaultModel.trim()||x&&(!D.azureEndpoint||!D.deployment||!D.organization)||y&&!F.accountId,children:P?"Saving...":"Save"}),(0,d.jsx)(k.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}function O({isOpen:a,node:b,onSave:c,onClose:f,isAnthropic:g}){let[h,i]=(0,e.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[j,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(null),u=async()=>{if(h.name.trim()&&h.prefix.trim()&&h.baseUrl.trim()){l(!0);try{let a={name:h.name,prefix:h.prefix,baseUrl:h.baseUrl};g||(a.apiType=h.apiType),await c(a)}finally{l(!1)}}},v=async()=>{r(!0);try{let a=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:h.baseUrl,apiKey:m,type:g?"anthropic-compatible":"openai-compatible",modelId:o.trim()||void 0})}),b=await a.json();t(b.valid?"success":"failed")}catch{t("failed")}finally{r(!1)}};return b?(0,d.jsx)(k.aF,{isOpen:a,title:`Edit ${g?"Anthropic":"OpenAI"} Compatible`,onClose:f,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(k.pd,{label:"Name",value:h.name,onChange:a=>i({...h,name:a.target.value}),placeholder:`${g?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,d.jsx)(k.pd,{label:"Prefix",value:h.prefix,onChange:a=>i({...h,prefix:a.target.value}),placeholder:g?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!g&&(0,d.jsx)(k.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:h.apiType,onChange:a=>i({...h,apiType:a.target.value})}),(0,d.jsx)(k.pd,{label:"Base URL",value:h.baseUrl,onChange:a=>i({...h,baseUrl:a.target.value}),placeholder:g?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${g?"Anthropic":"OpenAI"}-compatible API.`}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.pd,{label:"API Key (for Check)",type:"password",value:m,onChange:a=>n(a.target.value),className:"flex-1"}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(k.$n,{onClick:v,disabled:!m||q||!h.baseUrl.trim(),variant:"secondary",children:q?"Checking...":"Check"})})]}),(0,d.jsx)(k.pd,{label:"Model ID (optional)",value:o,onChange:a=>p(a.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),s&&(0,d.jsx)(k.Ex,{variant:"success"===s?"success":"error",children:"success"===s?"Valid":"Invalid"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:u,fullWidth:!0,disabled:!h.name.trim()||!h.prefix.trim()||!h.baseUrl.trim()||j,children:j?"Saving...":"Save"}),(0,d.jsx)(k.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}N.propTypes={isOpen:D().bool.isRequired,provider:D().string,providerName:D().string,isCompatible:D().bool,isAnthropic:D().bool,authType:D().string,authHint:D().string,website:D().string,proxyPools:D().arrayOf(D().shape({id:D().string,name:D().string})),error:D().string,existingNames:D().arrayOf(D().string),onSave:D().func.isRequired,onBulkDone:D().func,onClose:D().func.isRequired},O.propTypes={isOpen:D().bool.isRequired,node:D().shape({id:D().string,name:D().string,prefix:D().string,apiType:D().string,baseUrl:D().string}),onSave:D().func.isRequired,onClose:D().func.isRequired,isAnthropic:D().bool};let P=()=>Object.fromEntries(Object.keys(m.bs).map(a=>[a,!1]));function Q({isOpen:a,providerAlias:b,providerDisplayAlias:c,onSave:f,onClose:g}){let[h,i]=(0,e.useState)(""),[j,l]=(0,e.useState)(P),[n,o]=(0,e.useState)(null),[p,q]=(0,e.useState)(""),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(""),v=a=>{let c=`${b}/`;return a.startsWith(c)?a.slice(c.length):a},w=async()=>{let a=v(h.trim());if(a){o("testing"),q("");try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${b}/${a}`})}),d=await c.json();o(d.ok?"ok":"error"),q(d.error||"")}catch(a){o("error"),q(a.message)}}},x=async()=>{let a=v(h.trim());if(a&&!r){s(!0);try{await f(a,j,j.stt?t:null)}finally{s(!1)}}};return(0,d.jsx)(k.aF,{isOpen:a,onClose:g,title:"Add Custom Model",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("input",{type:"text",value:h,onChange:a=>{i(a.target.value),o(null),q("")},onKeyDown:a=>{"Enter"===a.key&&w()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",autoFocus:!0}),(0,d.jsx)(k.$n,{variant:"secondary",icon:"science",loading:"testing"===n,onClick:w,disabled:!h.trim()||"testing"===n,children:"testing"===n?"Testing...":"Test"})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,d.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:v(h.trim())||"model-id"})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Capabilities"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-4",children:Object.entries(m.bs).map(([a,b])=>(0,d.jsx)(k.lM,{checked:!!j[a],onChange:b=>l(c=>({...c,[a]:b})),label:b.label,description:b.desc,size:"sm"},a))})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(k.lM,{checked:!!j.stt,onChange:a=>{l(b=>({...b,stt:a})),a||u("")},label:"Speech to text",description:"Transcribes audio via /v1/audio/transcriptions",size:"sm"}),j.stt&&(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)(k.l6,{label:"Transport",value:t,onChange:a=>u(a.target.value),placeholder:"Provider default (REST)",options:m.vp.map(a=>({value:a,label:m.qw[a].label})),hint:"Realtime transport marker for the STT dispatcher. Empty keeps the provider's REST format."})})]}),"ok"===n&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===n&&(0,d.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,d.jsx)("span",{children:p||"Model not reachable"})]}),(0,d.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,d.jsx)(k.$n,{onClick:g,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,d.jsx)(k.$n,{onClick:x,fullWidth:!0,size:"sm",disabled:!h.trim()||r,children:r?"Adding...":"Add Model"})]})]})})}Q.propTypes={isOpen:D().bool.isRequired,providerAlias:D().string.isRequired,providerDisplayAlias:D().string.isRequired,onSave:D().func.isRequired,onClose:D().func.isRequired};let R=`[
|
|
8
8
|
{
|
|
9
9
|
"accessToken": "eyJhbGc...",
|
|
10
10
|
"refreshToken": "rt_...",
|
|
11
11
|
"idToken": "eyJhbGc...",
|
|
12
12
|
"email": "user@example.com"
|
|
13
13
|
}
|
|
14
|
-
]`;function
|
|
14
|
+
]`;function S({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[j,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(null),o=()=>{h||(g(""),l(""),n(null),b())},p=async()=>{var a;let b;l(""),n(null);let d=f.trim();if(!d)return;try{b=JSON.parse(d)}catch(a){l(`${(0,A.Tl)("Invalid JSON")}: ${a.message}`);return}let e=Array.isArray(a=b)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!e||0===e.length)return void l((0,A.Tl)("No accounts found in input"));i(!0);try{let a=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e})}),b=await a.json();if(!a.ok)return void l(b?.error||`Request failed: ${a.status}`);n(b),b.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,A.Tl)("Request failed"))}finally{i(!1)}},q=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,A.Tl)("Bulk Add Codex Accounts"),onClose:o,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,A.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,d.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:R,value:f,onChange:a=>g(a.target.value),disabled:h}),j&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:j}),m&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:`text-sm font-medium ${m.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",m.success," ",(0,A.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,A.Tl)("failed")}`:""]}),q.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:q.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:p,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,A.Tl)("Importing..."):(0,A.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:o,variant:"ghost",fullWidth:!0,disabled:h,children:(0,A.Tl)("Close")})]})]})})}S.propTypes={isOpen:D().bool.isRequired,onClose:D().func.isRequired,onSuccess:D().func};let T=`[
|
|
15
15
|
{
|
|
16
16
|
"access_token": "eyJ0eXAiOiJhdCtqd3Qi...",
|
|
17
17
|
"refresh_token": "LZhriF9bf88pPykpXCuZ9...",
|
|
@@ -24,4 +24,4 @@ pt-only-auto-named`:N,[W,X]=(0,e.useState)("single"),[Y,Z]=(0,e.useState)(""),[$
|
|
|
24
24
|
"id_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
|
|
25
25
|
"email": "account2@example.com"
|
|
26
26
|
}
|
|
27
|
-
]`;function V(a){let b,c=a.trim();if(!c)return[];try{b=JSON.parse(c)}catch(a){try{let a=c;a.startsWith("[")||((a=a.replace(/\}\s*,\s*\{/g,"},{").replace(/\}\s*\{/g,"},{")).endsWith(",")&&(a=a.slice(0,-1)),a=`[${a}]`),b=JSON.parse(a)}catch{throw a}}if(Array.isArray(b))return b;if(b&&"object"==typeof b)return Array.isArray(b.accounts)?b.accounts:[b];throw Error("Input must be a JSON object or array of objects")}function W({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[j,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),[q,r]=(0,e.useState)(null),s=(0,e.useRef)(null),t=()=>{h||(g(""),l(""),n(null),r(null),p(!1),b())},u=async a=>{if(!a||0===a.length)return;l("");let b=Array.from(a).filter(a=>a.name.endsWith(".json")||"application/json"===a.type||""===a.type);if(0===b.length)return void l((0,A.Tl)("Please select valid .json files"));try{let a=[];for(let c of b){let b=await c.text(),d=V(b);Array.isArray(d)?a.push(...d):d&&a.push(d)}if(0===a.length)return void l((0,A.Tl)("No accounts found in selected files"));g(JSON.stringify(a,null,2)),r({filesCount:b.length,accountsCount:a.length})}catch(a){l(`${(0,A.Tl)("Error reading files")}: ${a.message}`)}},v=async()=>{let a;l(""),n(null);try{a=V(f)}catch(a){l(`${(0,A.Tl)("Invalid JSON")}: ${a.message}`);return}if(!a||0===a.length)return void l((0,A.Tl)("No accounts found in input"));i(!0);try{let b=await fetch("/api/oauth/grok-cli/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:a})}),d=await b.json();if(!b.ok)return void l(d?.error||`Request failed: ${b.status}`);n(d),d.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,A.Tl)("Request failed"))}finally{i(!1)}},w=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,A.Tl)("Bulk Add Grok CLI Accounts"),onClose:t,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,A.Tl)("Upload multiple .json files or paste JSON array / object.")}),(0,d.jsx)("input",{ref:s,type:"file",accept:".json,application/json",multiple:!0,className:"hidden",onChange:a=>{u(a.target.files),a.target&&(a.target.value="")}}),(0,d.jsx)(k.$n,{type:"button",size:"sm",variant:"secondary",icon:"upload_file",onClick:()=>s.current?.click(),disabled:h,children:(0,A.Tl)("Upload JSON Files")})]}),(0,d.jsxs)("div",{onDragOver:a=>{a.preventDefault(),p(!0)},onDragLeave:a=>{a.preventDefault(),p(!1)},onDrop:a=>{a.preventDefault(),p(!1),a.dataTransfer?.files?.length>0&&u(a.dataTransfer.files)},className:`relative rounded border transition-colors ${o?"border-primary bg-primary/10 ring-2 ring-primary/30":"border-accent/30 bg-sidebar"}`,children:[(0,d.jsx)("textarea",{className:"w-full rounded bg-transparent p-2.5 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:U,value:f,onChange:a=>{g(a.target.value),r(null)},disabled:h}),o&&(0,d.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-sidebar/90 rounded pointer-events-none backdrop-blur-xs",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary mb-1",children:"upload_file"}),(0,d.jsx)("span",{className:"text-sm font-medium text-primary",children:(0,A.Tl)("Drop .json files here")})]})]}),q&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-green-400 font-medium bg-green-500/10 border border-green-500/20 px-2.5 py-1.5 rounded",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check_circle"}),(0,d.jsxs)("span",{children:[(0,A.Tl)("Loaded")," ",q.accountsCount," ",(0,A.Tl)("account(s) from")," ",q.filesCount," ",(0,A.Tl)("file(s)")]})]}),j&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:j}),m&&m.failed>0&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"text-sm font-medium text-yellow-400",children:["✗ ",m.failed," ",(0,A.Tl)("failed")]}),w.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:w.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:v,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,A.Tl)("Importing..."):(0,A.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:t,variant:"ghost",fullWidth:!0,disabled:h,children:(0,A.Tl)("Close")})]})]})})}var X=c(41371);let Y=["host","content-length","content-type","connection","transfer-encoding","authorization","cookie"],Z=/^[A-Za-z0-9-]+$/;function $({providerId:a}){let b=(0,X.i)(),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)([{name:"",value:""}]),[i,j]=(0,e.useState)({}),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(!1),p=(a,b,c)=>{h(d=>d.map((d,e)=>e===a?{...d,[b]:c}:d))},q=(0,e.useCallback)(async()=>{let c={};for(let a of g.filter(a=>a.name.trim())){let d=a.name.trim();if(!Z.test(d))return void b.error(`Invalid header name: ${d}`);if(Y.includes(d.toLowerCase()))return void b.error(`Header ${d} cannot be overridden`);if(d in c)return void b.error(`Duplicate header name: ${d}`);a.value!==i[d]&&(c[d]=a.value)}o(!0);try{let d=await fetch(`/api/providers/${a}/overrides`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({headers:c})});if(!d.ok){let a=await d.json().catch(()=>({}));b.error(a.error||"Failed to save");return}m(Object.keys(c).length>0),b.success("Custom headers saved")}finally{o(!1)}},[g,i,a,b]);return 0!==Object.keys(i).length||l?(0,d.jsxs)(k.Zp,{padding:"xs",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>f(a=>!a),className:"flex w-full items-center justify-between text-left",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"tune"}),(0,d.jsx)("span",{className:"text-sm font-semibold",children:"Custom Headers"}),l&&(0,d.jsx)(k.Ex,{variant:"success",size:"sm",children:"Active"})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted",children:c?"expand_less":"expand_more"})]}),c&&(0,d.jsxs)("div",{className:"mt-3 border-t border-border pt-3",children:[(0,d.jsx)("div",{className:"flex flex-col gap-2",children:g.map((a,b)=>{let c=a.name.trim()in i&&a.value!==i[a.name.trim()];return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("input",{value:a.name,onChange:a=>p(b,"name",a.target.value),placeholder:"Header-Name",spellCheck:!1,className:"w-44 rounded-md border border-border bg-background px-2 py-1.5 text-sm focus:border-primary focus:outline-none"}),(0,d.jsx)("input",{value:a.value,onChange:a=>p(b,"value",a.target.value),placeholder:"Value",spellCheck:!1,title:c?"Overridden":a.name.trim()in i?"Registry default":"",className:`min-w-0 flex-1 rounded-md border bg-background px-2 py-1.5 text-sm focus:border-primary focus:outline-none ${c?"border-amber-400/60":"border-border"}`}),(0,d.jsx)("button",{type:"button",title:"Remove header",onClick:()=>h(a=>a.length>1?a.filter((a,c)=>c!==b):[{name:"",value:""}]),className:"shrink-0 text-text-muted hover:text-red-500",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]},b)})}),(0,d.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-2",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>h(a=>[...a,{name:"",value:""}]),className:"flex items-center gap-1 text-xs text-primary hover:underline",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add header"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("button",{type:"button",disabled:n,onClick:()=>{h(Object.entries(i).map(([a,b])=>({name:a,value:b})))},className:"rounded-md border border-border px-3 py-1.5 text-xs hover:bg-black/[0.03] dark:hover:bg-white/[0.03] disabled:opacity-50",children:"Reset"}),(0,d.jsx)("button",{type:"button",disabled:n,onClick:q,className:"rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-white hover:opacity-90 disabled:opacity-50",children:n?"Saving...":"Save"})]})]})]})]}):null}$.propTypes={providerId:D().string.isRequired};var _=c(56020),aa=c(54589);let ab={claude:"claudeAutoPing",codex:"codexAutoPing"};function ac(){let a,b,c,g,n,o=(0,f.useParams)(),p=(0,f.useRouter)(),q=o.id,{getCaps:r}=(0,z.y)(),[s,t]=(0,e.useState)([]),[u,v]=(0,e.useState)(!0),[w,C]=(0,e.useState)(null),[D,F]=(0,e.useState)([]),[H,I]=(0,e.useState)(!1),[J,L]=(0,e.useState)(!1),[N,Q]=(0,e.useState)(!1),[S,U]=(0,e.useState)(!1),[V,X]=(0,e.useState)(""),[Y,Z]=(0,e.useState)(!1),[ac,ad]=(0,e.useState)(!1),[ae,af]=(0,e.useState)(!1),[ag,ah]=(0,e.useState)(!1),[ai,aj]=(0,e.useState)(!1),[ak,al]=(0,e.useState)(null),[am,an]=(0,e.useState)({}),[ao,ap]=(0,e.useState)([]),[aq,ar]=(0,e.useState)(!1),[as,at]=(0,e.useState)({}),[au,av]=(0,e.useState)(""),[aw,ax]=(0,e.useState)(()=>new Set),[ay,az]=(0,e.useState)(!1),[aA,aB]=(0,e.useState)([]),[aC,aD]=(0,e.useState)("__none__"),[aE,aF]=(0,e.useState)(!1),[aG,aH]=(0,e.useState)(null),[aI,aJ]=(0,e.useState)(""),[aK,aL]=(0,e.useState)("auto"),[aM,aN]=(0,e.useState)({enabled:!1,connections:{},schedules:{}}),[aO,aP]=(0,e.useState)(null),[aQ,aR]=(0,e.useState)([]),[aS,aT]=(0,e.useState)([]),[aU,aV]=(0,e.useState)(null),[aW,aX]=(0,e.useState)([]),[aY,aZ]=(0,e.useState)([]),[a$,a_]=(0,e.useState)(null),[a0,a1]=(0,e.useState)(!1),[a2,a3]=(0,e.useState)(!1),[a4,a5]=(0,e.useState)(!1),[a6,a7]=(0,e.useState)(null),[a8,a9]=(0,e.useState)({}),[ba,bb]=(0,e.useState)(null),bc=(0,e.useRef)(!1),[bd,be]=(0,e.useState)(!1),[bf,bg]=(0,e.useState)(!1),{copied:bh,copy:bi}=(0,y.C)(),bj=()=>{I(!0)},bk=()=>{"xiaomi-mimo"===q?L(!0):bp?bj():(X(""),U(!0))},bl=()=>{X(""),U(!0)},bm=()=>{bp?bk():bl()},bn=w?{id:w.id,name:w.name||("anthropic-compatible"===w.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===w.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===w.type?"AC":"OC",apiType:w.apiType,baseUrl:w.baseUrl,type:w.type}:l.zN[q]||l.fg[q]||l.IS[q]||l.nJ[q]||l.br[q],bo=bn?.authModes||[],bp=!!l.zN[q]||!!l.IS[q]||bo.includes("oauth"),bq=!!l.fg[q]||bo.includes("apikey"),br=!!l.IS[q]?.noAuth,bs=(0,m.KC)(q),bt=("cursor"===q||"zed"===q)&&aS.length>0?aS:bs,bu=(0,l.wG)(q),bv=(0,l.mq)(q),bw=(0,l.gb)(q),bx=bv||bw,by=!bx&&bp&&bq,bz="xai"===q?"Grok Build OAuth":"grok-cli"===q?"Grok CLI Device Login":"kimi"===q?"Kimi Coding OAuth":"OAuth",bA="xai"===q?"xAI API Key":"kimi"===q?"Kimi API Key":"qoder"===q||"qoder-cn"===q?"PAT":"API Key",bB=a=>{if(!aK||"auto"===aK)return null;let b=x(q,a);return b&&b.includes(aK)?aK:null},bC=bx?q:bu,bD=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=x(q,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of bt)c(a.id);for(let a of aW)c(a.id);for(let a of ao)a.providerAlias===bC&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bE=bx?w?.prefix||q:bu,bF=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bC)}`,{cache:"no-store"}),b=await a.json();a.ok&&aZ(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bC]),bG=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bC,ids:[a]})})).ok&&await bF()}catch(a){console.log("Error disabling model:",a)}},bH=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bC)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bF()}catch(a){console.log("Error enabling model:",a)}},bI=async a=>{a.length&&a_({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{a_(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bC,ids:a})})).ok&&await bF()}catch(a){console.log("Error disabling all models:",a)}}})},bJ=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bC)}`,{method:"DELETE"})).ok&&await bF()}catch(a){console.log("Error enabling all models:",a)}},bK=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&an(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bL=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&ap(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bM=(0,e.useCallback)(async()=>{try{let[a,b,c,d]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),e=await a.json(),f=await b.json(),g=await c.json(),h=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===q);t(a)}c.ok&&F(g.proxyPools||[]);let i=(h.providerStrategies||{})[q]||{};aH(i.fallbackStrategy||null),aJ(null!=i.stickyRoundRobinLimit?String(i.stickyRoundRobinLimit):"1");let j=(h.providerThinking||{})[q]||{};aL(j.mode||"auto");let k=ab[q],l=k&&h[k]||{};if(aN({enabled:!0===l.enabled,connections:l.connections||{},schedules:l.schedules||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===q)||null;if(!a&&bx)for(let b=0;b<3;b+=1){await new Promise(a=>setTimeout(a,150));let b=await fetch("/api/provider-nodes",{cache:"no-store"});if(b.ok&&(a=((await b.json()).nodes||[]).find(a=>a.id===q)||null))break}C(a)}}catch(a){console.log("Error fetching connections:",a)}finally{v(!1)}},[q,bx]),bN=async a=>{try{let b=await fetch(`/api/provider-nodes/${q}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(C(c.node),await bM(),ah(!1))}catch(a){console.log("Error updating provider node:",a)}},bO=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[q]:f[q]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},bP=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[q]={mode:a}:delete c[q],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){console.log("Error saving thinking config:",a)}},bQ=async a=>{let b=ab[q];if(b){aN(a);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[b]:a})})}catch(a){console.log("Error saving auto-ping config:",a)}}},bR=async(a,b,c=bu)=>{let d=`${c}/${a}`;try{let a=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:d,alias:b})});if(a.ok)await bK();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bS=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bK()}catch(a){console.log("Error deleting alias:",a)}},bT=async(a,b="llm",c=bC,d,e)=>{try{let f=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b,...d?{caps:d}:{},...e?{transport:e}:{}})});if(f.ok)await bL();else{let a=await f.json();alert(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},bU=async(a,b="llm",c=bC)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bL()}catch(a){console.log("Error deleting custom model:",a)}},bV=async()=>{if(bd)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,A.Tl)("Please add an active Qoder connection first"));be(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,A.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,A.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^(qoder-cn|qoder)\//,"");ao.some(a=>a.providerAlias===bC&&a.id===c&&"llm"===(a.kind||a.type||"llm"))||Object.values(am).includes(`${bC}/${c}`)||(await bT(c,"llm",bC),e+=1)}0===e?alert((0,A.Tl)("All models already exist, no new models added")):alert((0,A.Tl)("Successfully added")+` ${e} `+(0,A.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),alert((0,A.Tl)("Error fetching models")+": "+a.message)}finally{be(!1)}},bW=async()=>{if(bf)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,A.Tl)("Please add an active Cline connection first"));bg(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,A.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,A.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;b&&(ao.some(a=>a.providerAlias===bC&&a.id===b&&"llm"===(a.kind||a.type||"llm"))||Object.values(am).includes(`${bC}/${b}`)||(await bT(b,"llm",bC),e+=1))}0===e?alert((0,A.Tl)("All models already exist, no new models added")):alert((0,A.Tl)("Successfully added")+` ${e} `+(0,A.Tl)("models"))}catch(a){console.log("Error importing Cline models:",a),alert((0,A.Tl)("Error fetching models")+": "+a.message)}finally{bg(!1)}},bX=async()=>{if(a2||0===s.length)return;let a=Object.fromEntries(s.map(a=>[a.id,{state:"queued",error:null}]));bc.current=!1,a3(!0),a5(!1),a7(null),a9(a),bb({total:s.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<s.length;a+=1){if(bc.current){bb({total:s.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=s[a];a7(d.id),a9(a=>({...a,[d.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${d.id}/test`,{method:"POST"}),e=await a.json(),f=!!e.valid;f?b+=1:c+=1,a9(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,a9(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}bb({total:s.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<s.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{a7(null),a3(!1),a5(!1),bc.current=!1}},bY=async a=>{a_({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{a_(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&t(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},bZ=()=>{bM(),I(!1)},b$=async a=>{X("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:q,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bM(),U(!1);return}X(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),X("Failed to save connection")}},b_=async a=>{try{(await fetch(`/api/providers/${ak.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bM(),af(!1))}catch(a){console.log("Error updating connection:",a)}},b0=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&t(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},b1=async(a,b)=>{let c=[...s];[c[a],c[b]]=[c[b],c[a]],t(c);try{await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch(a){console.log("Error swapping priority:",a),await bM()}},b2=s.filter(a=>aA.includes(a.id)),b3=s.length>0&&aA.length===s.length;(()=>{if(0===b2.length)return;let a=new Set(b2.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=D.find(a=>a.id===b);return c?.name}})();let b4=()=>{aE||aj(!1)},b5=async a=>{aF(!0);try{let b=0;for(let{connectionId:c,proxyPoolId:d}of a)try{(await fetch(`/api/providers/${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:d})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",c,a),b+=1}b>0&&alert(`Updated with ${b} failed request(s).`),await bM(),aj(!1)}finally{aF(!1)}},b6=a=>b5(s.map(b=>({connectionId:b.id,proxyPoolId:a}))),b7=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03] max-h-[500px] overflow-y-auto pr-1",children:s.map((a,b)=>{let c;return(0,d.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,d.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,d.jsx)("input",{type:"checkbox",checked:(c=a.id,aA.includes(c)),onChange:()=>{var b;return b=a.id,void aB(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(K,{connection:a,proxyPools:D,isOAuth:bp,isFirst:0===b,isLast:b===s.length-1,onMoveUp:()=>b1(b,b-1),onMoveDown:()=>b1(b,b+1),onToggleActive:b=>b0(a.id,b),autoPing:ab[q]&&"oauth"===a.authType?{isActive:!0===aM.connections[a.id]||aM.schedules?.[a.id]?.enabled===!0,reactiveOn:!0===aM.connections[a.id],provider:q,scheduleOn:aM.schedules?.[a.id]?.enabled===!0,scheduleSummary:(0,aa.JW)(aM.schedules?.[a.id]).join(" / "),onConfigure:()=>aP(a)}:null,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&t(c=>c.map(c=>c.id===a.id?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("Error updating proxy:",a)}},onEdit:()=>{al(a),af(!0)},onDelete:()=>bY(a.id),oneByOneStatus:a8[a.id]||null})})]},a.id)})}),b8=D.filter(a=>!0===a.isActive),b9=(0,d.jsx)(k.aF,{isOpen:ai,onClose:b4,title:`Apply Proxy (${s.length} connections)`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("button",{onClick:()=>{let a=D.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):b5(s.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:aE||0===b8.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,d.jsxs)("button",{onClick:()=>b6(null),disabled:aE,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),D.map(a=>(0,d.jsxs)("button",{onClick:()=>b6(a.id),disabled:aE||!0!==a.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,d.jsx)("span",{className:"truncate text-sm text-text-main",children:a.name}),!0!==a.isActive&&(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},a.id))]}),aE&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:b4,variant:"ghost",fullWidth:!0,disabled:aE,children:"Cancel"})]})}),ca=async a=>{if(!aw.has(a)){ax(b=>new Set(b).add(a));try{let b=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${bC}/${a}`})}),c=await b.json();at(b=>({...b,[a]:c.ok?"ok":"error"})),av(c.ok?"":c.error||"Model not reachable")}catch{at(b=>({...b,[a]:"error"})),av("Network error")}finally{ax(b=>{let c=new Set(b);return c.delete(a),c})}}};if(u)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(k.Qv,{}),(0,d.jsx)(k.Qv,{})]});if(!bn)return(0,d.jsxs)("div",{className:"text-center py-20",children:[(0,d.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,d.jsx)(h(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let cb=()=>bv&&bn.apiType?"responses"===bn.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bw?"/providers/anthropic-m.png":(0,j.HY)(bn.id);return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,d.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${bn.color}15`},children:aq||!cb()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bn.color},children:bn.textIcon||bn.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.A,{src:cb(),alt:bn.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(bn.id),ar(!0)},loading:"lazy",decoding:"async"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:bn.name}),(bn.notice?.apiKeyUrl||bn.notice?.signupUrl||bn.website)&&(0,d.jsxs)("a",{href:bn.notice?.apiKeyUrl||bn.notice?.signupUrl||bn.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),bn.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[s.length," connection",1===s.length?"":"s"]})]})]})]}),bn.deprecated&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:bn.deprecationNotice})]}),bn.notice?.text&&!bn.deprecated&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,d.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:bn.notice.text}),bn.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bn.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),bx&&w&&(0,d.jsx)(k.Zp,{children:(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:bw?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bw?"Messages API":"responses"===w.apiType?"Responses API":"Chat Completions"," \xb7 ",(w.baseUrl||"").replace(/\/$/,""),"/",bw?"messages":"responses"===w.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:()=>{X(""),U(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ah(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{a_({title:"Delete Compatible Node",message:`Delete this ${bw?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{a_(null);try{(await fetch(`/api/provider-nodes/${q}`,{method:"DELETE"})).ok&&p.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),"antigravity"===q&&(0,d.jsx)(M,{}),br?(0,d.jsx)(k.gw,{providerId:q}):(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[s.length>0&&D.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>aj(!0),children:"Apply Proxy"}),s.length>0&&(0,d.jsxs)(d.Fragment,{children:[aA.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=aA.length;0!==a&&a_({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{a_(null);let a=0,b=[...aA];for(let c of b)try{(await fetch(`/api/providers/${c}`,{method:"DELETE"})).ok||(a+=1)}catch(b){console.log("Error deleting connection:",b),a+=1}t(a=>a.filter(a=>!b.includes(a.id))),aB([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",aA.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:bX,disabled:a2,children:a2?"Testing Connection One-by-One...":"Test Connection One-by-One"}),a2&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{a2&&(bc.current=!0,a5(!0))},disabled:a4,children:a4?"Stopping...":"Stop"})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,d.jsx)(k.lM,{checked:"round-robin"===aG,onChange:a=>{let b=a?"round-robin":null,c=a?aI||"1":aI;a&&!aI&&aJ("1"),aH(b),bO(b,c)}}),"round-robin"===aG&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:aI,onChange:a=>{var b;aJ(b=a.target.value),bO("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===s.length?(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:bp?"lock":"key"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),by&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bz," or ",bA,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:by?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bk,children:bz}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bl,children:bA})]}):(0,d.jsxs)(d.Fragment,{children:[!bx&&"iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>Q(!0),children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Z(!0),children:(0,A.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ad(!0),children:(0,A.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bm,children:bx?"Add API Key":"iflow"===q?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[ba&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:["Total: ",ba.total]}),(0,d.jsxs)("span",{children:["Completed: ",ba.completed]}),(0,d.jsxs)("span",{children:["Passed: ",ba.passed]}),(0,d.jsxs)("span",{children:["Failed: ",ba.failed]}),ba.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),a2&&a6&&(0,d.jsxs)("span",{children:["Running: ",s.find(a=>a.id===a6)?.name||a6]})]})}),s.length>0&&(0,d.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,d.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,d.jsx)("input",{type:"checkbox",checked:b3,onChange:()=>{b3?aB([]):aB(s.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),b7,!bx&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>Q(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Z(!0),title:(0,A.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,A.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ad(!0),title:(0,A.Tl)("Bulk import Grok CLI accounts from JSON"),className:"w-full sm:w-auto",children:(0,A.Tl)("Bulk Add")}),by?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bk,className:"w-full sm:w-auto",children:bz}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bl,className:"w-full sm:w-auto",children:bA})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bm,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsx)($,{providerId:q}),(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),bD&&(0,d.jsx)("select",{value:aK,onChange:a=>{var b;aL(b=a.target.value),bP(b)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:bD.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!bx&&(a=[...bt,...aW.filter(a=>!bt.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!aY.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[aY.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bJ,children:"Active All"}),a.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bI(a),children:"Disable All"})]}))]}),!!au&&(0,d.jsxs)("div",{className:"mb-3",children:[(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:au}),/RegionError|hosted in China|regionNotAllowed/i.test(au)&&(c=(b="string"==typeof au?au:JSON.stringify(au)).match(/https:\/\/opencode\.ai\/workspace\/[^\s"')]+/),g=b.match(/wrk_[0-9A-Za-z]+/),n=c?c[0].endsWith("/go")?c[0]:`${c[0]}/go`:g?`https://opencode.ai/workspace/${g[0]}/go`:"https://opencode.ai",(0,d.jsx)("div",{className:"mt-1.5",children:(0,d.jsxs)("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-md bg-amber-500/10 px-2 py-0.5 text-xs font-medium text-amber-600 hover:bg-amber-500/20 dark:text-amber-400 transition-colors",children:[(0,d.jsx)("span",{children:"Allow China-hosted models"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"open_in_new"})]})}))]}),"zed"===q&&!!aU&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:aU}),(()=>{let a,b,c;if(bx)return(0,d.jsx)(G,{providerStorageAlias:bC,providerDisplayAlias:bE,modelAliases:am,customModels:ao,copied:bh,onCopy:bi,onSetAlias:bR,onDeleteAlias:bS,onAddCustomModel:a=>bT(a,"llm",bC),onDeleteCustomModel:a=>bU(a,"llm",bC),connections:s,isAnthropic:bw});let e=[...bt,...aW.filter(a=>!bt.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(aY),g=e.filter(a=>!f.has(a.id)),h=e.filter(a=>f.has(a.id)),i=B({customModels:ao,modelAliases:am,providerAlias:bC,builtInModels:bt,type:"llm"});return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i.map(a=>(0,d.jsx)(E,{model:{id:a.id,name:a.name},fullModel:`${bE}/${a.id}`,alias:a.alias,copied:bh,onCopy:bi,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?bU(a.id,"llm",bC):bS(a.alias)},testStatus:as[a.id],onTest:s.length>0||br?()=>ca(a.id):void 0,isTesting:aw.has(a.id),isCustom:!0,isFree:!1,caps:r(`${q}/${a.id}`),thinkingSuffix:bB(a.id)},`${a.source}-${a.fullModel}`)),g.map(a=>{let b=`${bC}/${a.id}`,c=`${q}/${a.id}`,e=Object.entries(am).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(E,{model:a,fullModel:`${bE}/${a.id}`,alias:e,copied:bh,onCopy:bi,onSetAlias:b=>bR(a.id,b,bC),onDeleteAlias:()=>bS(e),testStatus:as[a.id],onTest:s.length>0||br?()=>ca(a.id):void 0,isTesting:aw.has(a.id),isFree:a.isFree,onDisable:()=>bG(a.id),caps:r(`${q}/${a.id}`),thinkingSuffix:bB(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>az(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),("qoder"===q||"qoder-cn"===q)&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bV,disabled:bd,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:bd?{animation:"spin 1s linear infinite"}:void 0,children:bd?"progress_activity":"download"}),bd?(0,A.Tl)("Fetching..."):(0,A.Tl)("Fetch Qoder Models")]}),("cline"===q||"clinepass"===q)&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bW,disabled:bf,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:bf?{animation:"spin 1s linear infinite"}:void 0,children:bf?"progress_activity":"download"}),bf?(0,A.Tl)("Fetching..."):(0,A.Tl)("Import from /models")]}),aQ.length>0&&(a=new Set([...Object.values(am),...i.map(a=>a.fullModel)]),b=new Set(bt.map(a=>a.id)),0===(c=aQ.filter(c=>!a.has(`${bC}/${c.id}`)&&!b.has(c.id))).length?null:(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{await bT(a.id,"llm",bC)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id.split("/").pop()]},a.id))})]})),h.length>0&&(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",h.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:h.map(a=>(0,d.jsxs)("button",{onClick:()=>bH(a.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},a.id))})]})]})})()]}),b9,"kiro"===q?(0,d.jsx)(k.Mh,{isOpen:H,providerInfo:bn,onSuccess:bZ,onClose:()=>I(!1)}):"cursor"===q?(0,d.jsx)(k.G9,{isOpen:H,onSuccess:bZ,onClose:()=>I(!1)}):"zed"===q?(0,d.jsx)(k.TE,{isOpen:H,providerInfo:bn,onSuccess:bZ,onClose:()=>I(!1)}):"gitlab"===q?(0,d.jsx)(k.vj,{isOpen:H,providerInfo:bn,onSuccess:bZ,onClose:()=>I(!1)}):(0,d.jsx)(k.LF,{isOpen:H,provider:q,providerInfo:bn,onSuccess:bZ,onClose:()=>I(!1)}),(0,d.jsx)(k.LH,{isOpen:J,onSuccess:bZ,onClose:()=>L(!1)}),"iflow"===q&&(0,d.jsx)(k.vE,{isOpen:N,onSuccess:()=>{bM(),Q(!1)},onClose:()=>Q(!1)}),(0,d.jsx)(O,{isOpen:S,provider:q,providerName:bn.name,isCompatible:bx,isAnthropic:bw,authType:bn?.authType,authHint:bn?.authHint,website:bn?.website,proxyPools:D,error:V,existingNames:s.map(a=>a.name).filter(Boolean),onSave:b$,onBulkDone:bM,onClose:()=>{X(""),U(!1)}}),(0,d.jsx)(k.wI,{isOpen:ae,connection:ak,proxyPools:D,onSave:b_,onClose:()=>af(!1)}),bx&&(0,d.jsx)(P,{isOpen:ag,node:w,onSave:bN,onClose:()=>ah(!1),isAnthropic:bw}),!bx&&(0,d.jsx)(R,{isOpen:ay,providerAlias:bC,providerDisplayAlias:bE,onSave:async(a,b,c)=>{await bT(a,b?.stt?"stt":"llm",bC,b,c),az(!1)},onClose:()=>az(!1)}),"codex"===q&&(0,d.jsx)(T,{isOpen:Y,onClose:()=>Z(!1),onSuccess:bM}),"grok-cli"===q&&(0,d.jsx)(W,{isOpen:ac,onClose:()=>ad(!1),onSuccess:bM}),aO&&(0,d.jsx)(_.A,{isOpen:!!aO,onClose:()=>aP(null),connection:aO,reactive:!0===aM.connections[aO.id],schedule:aM.schedules?.[aO.id]||null,onSave:a=>((a,{reactive:b,schedule:c})=>{bQ({...aM,connections:{...aM.connections,[a]:b},schedules:{...aM.schedules,[a]:c}})})(aO.id,a)}),(0,d.jsx)(k.uo,{isOpen:a0,onClose:()=>a1(!1),onConfirm:()=>{(a1(!1),bp)?bj():bl()},title:"Risk Notice",message:bn?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!a$,onClose:()=>a_(null),onConfirm:a$?.onConfirm,title:a$?.title||"Confirm",message:a$?.message,variant:"danger"})]})}},38522:a=>{"use strict";a.exports=require("node:zlib")},40082:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>x,handler:()=>z,routeModule:()=>y});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,57529))),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=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"C:\\Users\\FADHLI\\9router-trial\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js"]}]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"C:\\Users\\FADHLI\\9router-trial\\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,"C:\\Users\\FADHLI\\9router-trial\\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,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},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")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54589:(a,b,c)=>{"use strict";function d(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}c.d(b,{JW:()=>i,Vm:()=>d,fB:()=>f,gy:()=>e,nz:()=>g});let e={anchor:"09:30",timezone:d(),windowHours:5,slotsPerDay:3};function f(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function g(a){return Math.max(1,Math.floor(24/a))}function h(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function i(a){let b=function(a){if(!a||!0!==a.enabled)return null;let b=f(a.anchor)||f(e.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,d=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?e.timezone:a.timezone,i=h(a.windowHours,e.windowHours,.5,24),j=Math.round(h(a.slotsPerDay,e.slotsPerDay,1,g(i)));return{enabled:!0,anchor:c,timezone:d,windowHours:i,slotsPerDay:j}}(a);if(!b)return[];let{hour:c,minute:d}=f(b.anchor),i=60*c+d;return Array.from({length:b.slotsPerDay},(a,c)=>{let d=Math.round(i+c*b.windowHours*60)%1440;return`${String(Math.floor(d/60)).padStart(2,"0")}:${String(d%60).padStart(2,"0")}`})}},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},56020:(a,b,c)=>{"use strict";c.d(b,{A:()=>l});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412),i=c(71404),j=c(54589);let k=[{value:"off",label:"Off",icon:"block"},{value:"reset",label:"On reset",icon:"bolt"},{value:"schedule",label:"Schedule",icon:"schedule"}];function l({isOpen:a,onClose:b,onSave:c,connection:f,reactive:g=!1,schedule:m=null}){let[n,o]=(0,e.useState)(()=>({mode:m?.enabled===!0?"schedule":!0===g?"reset":"off",anchor:m?.anchor||j.gy.anchor,timezone:(0,j.Vm)(),windowHours:String(m?.windowHours??j.gy.windowHours),slotsPerDay:String(m?.slotsPerDay??j.gy.slotsPerDay)})),p=Number(n.windowHours),q=Number(n.slotsPerDay),r=!!(0,j.fB)(n.anchor),s=Number.isFinite(p)&&p>=.5&&p<=24,t=s?(0,j.nz)(p):24,u=Number.isInteger(q)&&q>=1&&q<=t,v=r&&s&&u,w="schedule"!==n.mode||v,x=v?(0,j.JW)({enabled:!0,...n,windowHours:p,slotsPerDay:q}):[],y=x.length&&s?(()=>{let{hour:a,minute:b}=(0,j.fB)(n.anchor),c=Math.round(60*a+b+q*p*60)%1440;return`${String(Math.floor(c/60)).padStart(2,"0")}:${String(c%60).padStart(2,"0")}`})():"",z=a=>o(b=>({...b,...a}));return(0,d.jsx)(h.aF,{isOpen:a,onClose:b,title:"Auto-ping settings",size:"lg",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.$n,{variant:"secondary",onClick:b,children:"Cancel"}),(0,d.jsx)(h.$n,{onClick:()=>{w&&(c({reactive:"reset"===n.mode,schedule:"schedule"===n.mode?{enabled:!0,anchor:n.anchor,timezone:n.timezone,windowHours:p,slotsPerDay:q}:{enabled:!1}}),b())},disabled:!w,children:"Save"})]}),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Configure automated quota pings",f?.name?` for ${f.name}`:""," — pick one mode."]}),(0,d.jsx)("div",{className:"grid grid-cols-3 gap-1 rounded-[10px] bg-surface-2 p-1",children:k.map(a=>{let b=n.mode===a.value;return(0,d.jsxs)("button",{type:"button",onClick:()=>z({mode:a.value}),className:(0,i.cn)("flex h-9 items-center justify-center gap-1.5 rounded-[8px] px-3 text-sm font-medium transition-all",b?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] leading-none",children:a.icon}),(0,d.jsx)("span",{children:a.label})]},a.value)})}),"reset"===n.mode&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings right after the 5h quota window resets, so a new window starts immediately."}),"schedule"===n.mode&&(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings at fixed local times so the 5h windows align with your workday."}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[(0,d.jsx)(h.pd,{label:"Anchor time",type:"time",value:n.anchor,onChange:a=>z({anchor:a.target.value}),error:r?"":"Use HH:MM",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Window (hours)",type:"number",min:"0.5",max:"24",step:"0.5",value:n.windowHours,onChange:a=>z({windowHours:a.target.value}),error:s?"":"0.5 – 24",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Pings per day",type:"number",min:"1",max:String(t),step:"1",value:n.slotsPerDay,onChange:a=>z({slotsPerDay:a.target.value}),error:u?"":`1 – ${t}`,hint:u?`Max ${t}`:"",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"})]}),x.length>0&&(0,d.jsxs)("div",{className:"rounded-[10px] bg-surface-2 px-3 py-2.5",children:[(0,d.jsxs)("p",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:["Daily slots (",n.timezone,")"]}),(0,d.jsx)("p",{className:"mt-1 text-sm font-medium text-text-main",children:x.join(" → ")}),(0,d.jsxs)("p",{className:"mt-1 text-xs text-text-muted",children:["Covers ",x[0]," – ",y,", then pauses until ",x[0]," next day."]})]})]})]})})}l.propTypes={isOpen:g().bool.isRequired,onClose:g().func.isRequired,onSave:g().func.isRequired,connection:g().object,reactive:g().bool,schedule:g().object}},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},58314:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},72271:a=>{"use strict";a.exports=require("@aws-sdk/credential-providers")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},93110:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"C:\\\\Users\\\\FADHLI\\\\9router-trial\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\providers\\\\[id]\\\\page.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.")},"C:\\Users\\FADHLI\\9router-trial\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js","default")},94735:a=>{"use strict";a.exports=require("events")},98066:(a,b,c)=>{Promise.resolve().then(c.bind(c,38071))}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1260,2430,4613,6455,9555,1220,9100,6969,6070,869,915,6457,4123,5546,6777,412,8276],()=>b(b.s=40082));module.exports=c})();
|
|
27
|
+
]`;function U(a){let b,c=a.trim();if(!c)return[];try{b=JSON.parse(c)}catch(a){try{let a=c;a.startsWith("[")||((a=a.replace(/\}\s*,\s*\{/g,"},{").replace(/\}\s*\{/g,"},{")).endsWith(",")&&(a=a.slice(0,-1)),a=`[${a}]`),b=JSON.parse(a)}catch{throw a}}if(Array.isArray(b))return b;if(b&&"object"==typeof b)return Array.isArray(b.accounts)?b.accounts:[b];throw Error("Input must be a JSON object or array of objects")}function V({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[j,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),[q,r]=(0,e.useState)(null),s=(0,e.useRef)(null),t=()=>{h||(g(""),l(""),n(null),r(null),p(!1),b())},u=async a=>{if(!a||0===a.length)return;l("");let b=Array.from(a).filter(a=>a.name.endsWith(".json")||"application/json"===a.type||""===a.type);if(0===b.length)return void l((0,A.Tl)("Please select valid .json files"));try{let a=[];for(let c of b){let b=await c.text(),d=U(b);Array.isArray(d)?a.push(...d):d&&a.push(d)}if(0===a.length)return void l((0,A.Tl)("No accounts found in selected files"));g(JSON.stringify(a,null,2)),r({filesCount:b.length,accountsCount:a.length})}catch(a){l(`${(0,A.Tl)("Error reading files")}: ${a.message}`)}},v=async()=>{let a;l(""),n(null);try{a=U(f)}catch(a){l(`${(0,A.Tl)("Invalid JSON")}: ${a.message}`);return}if(!a||0===a.length)return void l((0,A.Tl)("No accounts found in input"));i(!0);try{let b=await fetch("/api/oauth/grok-cli/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:a})}),d=await b.json();if(!b.ok)return void l(d?.error||`Request failed: ${b.status}`);n(d),d.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,A.Tl)("Request failed"))}finally{i(!1)}},w=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,A.Tl)("Bulk Add Grok CLI Accounts"),onClose:t,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,A.Tl)("Upload multiple .json files or paste JSON array / object.")}),(0,d.jsx)("input",{ref:s,type:"file",accept:".json,application/json",multiple:!0,className:"hidden",onChange:a=>{u(a.target.files),a.target&&(a.target.value="")}}),(0,d.jsx)(k.$n,{type:"button",size:"sm",variant:"secondary",icon:"upload_file",onClick:()=>s.current?.click(),disabled:h,children:(0,A.Tl)("Upload JSON Files")})]}),(0,d.jsxs)("div",{onDragOver:a=>{a.preventDefault(),p(!0)},onDragLeave:a=>{a.preventDefault(),p(!1)},onDrop:a=>{a.preventDefault(),p(!1),a.dataTransfer?.files?.length>0&&u(a.dataTransfer.files)},className:`relative rounded border transition-colors ${o?"border-primary bg-primary/10 ring-2 ring-primary/30":"border-accent/30 bg-sidebar"}`,children:[(0,d.jsx)("textarea",{className:"w-full rounded bg-transparent p-2.5 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:T,value:f,onChange:a=>{g(a.target.value),r(null)},disabled:h}),o&&(0,d.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center bg-sidebar/90 rounded pointer-events-none backdrop-blur-xs",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary mb-1",children:"upload_file"}),(0,d.jsx)("span",{className:"text-sm font-medium text-primary",children:(0,A.Tl)("Drop .json files here")})]})]}),q&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-green-400 font-medium bg-green-500/10 border border-green-500/20 px-2.5 py-1.5 rounded",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check_circle"}),(0,d.jsxs)("span",{children:[(0,A.Tl)("Loaded")," ",q.accountsCount," ",(0,A.Tl)("account(s) from")," ",q.filesCount," ",(0,A.Tl)("file(s)")]})]}),j&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:j}),m&&m.failed>0&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"text-sm font-medium text-yellow-400",children:["✗ ",m.failed," ",(0,A.Tl)("failed")]}),w.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:w.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:v,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,A.Tl)("Importing..."):(0,A.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:t,variant:"ghost",fullWidth:!0,disabled:h,children:(0,A.Tl)("Close")})]})]})})}var W=c(41371);let X=["host","content-length","content-type","connection","transfer-encoding","authorization","cookie"],Y=/^[A-Za-z0-9-]+$/;function Z({providerId:a}){let b=(0,W.i)(),[c,f]=(0,e.useState)(!1),[g,h]=(0,e.useState)([{name:"",value:""}]),[i,j]=(0,e.useState)({}),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(!1),p=(a,b,c)=>{h(d=>d.map((d,e)=>e===a?{...d,[b]:c}:d))},q=(0,e.useCallback)(async()=>{let c={};for(let a of g.filter(a=>a.name.trim())){let d=a.name.trim();if(!Y.test(d))return void b.error(`Invalid header name: ${d}`);if(X.includes(d.toLowerCase()))return void b.error(`Header ${d} cannot be overridden`);if(d in c)return void b.error(`Duplicate header name: ${d}`);a.value!==i[d]&&(c[d]=a.value)}o(!0);try{let d=await fetch(`/api/providers/${a}/overrides`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({headers:c})});if(!d.ok){let a=await d.json().catch(()=>({}));b.error(a.error||"Failed to save");return}m(Object.keys(c).length>0),b.success("Custom headers saved")}finally{o(!1)}},[g,i,a,b]);return 0!==Object.keys(i).length||l?(0,d.jsxs)(k.Zp,{padding:"xs",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>f(a=>!a),className:"flex w-full items-center justify-between text-left",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"tune"}),(0,d.jsx)("span",{className:"text-sm font-semibold",children:"Custom Headers"}),l&&(0,d.jsx)(k.Ex,{variant:"success",size:"sm",children:"Active"})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted",children:c?"expand_less":"expand_more"})]}),c&&(0,d.jsxs)("div",{className:"mt-3 border-t border-border pt-3",children:[(0,d.jsx)("div",{className:"flex flex-col gap-2",children:g.map((a,b)=>{let c=a.name.trim()in i&&a.value!==i[a.name.trim()];return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("input",{value:a.name,onChange:a=>p(b,"name",a.target.value),placeholder:"Header-Name",spellCheck:!1,className:"w-44 rounded-md border border-border bg-background px-2 py-1.5 text-sm focus:border-primary focus:outline-none"}),(0,d.jsx)("input",{value:a.value,onChange:a=>p(b,"value",a.target.value),placeholder:"Value",spellCheck:!1,title:c?"Overridden":a.name.trim()in i?"Registry default":"",className:`min-w-0 flex-1 rounded-md border bg-background px-2 py-1.5 text-sm focus:border-primary focus:outline-none ${c?"border-amber-400/60":"border-border"}`}),(0,d.jsx)("button",{type:"button",title:"Remove header",onClick:()=>h(a=>a.length>1?a.filter((a,c)=>c!==b):[{name:"",value:""}]),className:"shrink-0 text-text-muted hover:text-red-500",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]},b)})}),(0,d.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-2",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>h(a=>[...a,{name:"",value:""}]),className:"flex items-center gap-1 text-xs text-primary hover:underline",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add header"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("button",{type:"button",disabled:n,onClick:()=>{h(Object.entries(i).map(([a,b])=>({name:a,value:b})))},className:"rounded-md border border-border px-3 py-1.5 text-xs hover:bg-black/[0.03] dark:hover:bg-white/[0.03] disabled:opacity-50",children:"Reset"}),(0,d.jsx)("button",{type:"button",disabled:n,onClick:q,className:"rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-white hover:opacity-90 disabled:opacity-50",children:n?"Saving...":"Save"})]})]})]})]}):null}Z.propTypes={providerId:D().string.isRequired};let $={claude:"claudeAutoPing",codex:"codexAutoPing"};function _(){let a,b,c,g,n,o=(0,f.useParams)(),p=(0,f.useRouter)(),q=o.id,{getCaps:r}=(0,z.y)(),[s,t]=(0,e.useState)([]),[u,v]=(0,e.useState)(!0),[w,C]=(0,e.useState)(null),[D,F]=(0,e.useState)([]),[H,I]=(0,e.useState)(!1),[K,M]=(0,e.useState)(!1),[P,R]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[W,X]=(0,e.useState)(""),[Y,_]=(0,e.useState)(!1),[aa,ab]=(0,e.useState)(!1),[ac,ad]=(0,e.useState)(!1),[ae,af]=(0,e.useState)(!1),[ag,ah]=(0,e.useState)(!1),[ai,aj]=(0,e.useState)(null),[ak,al]=(0,e.useState)({}),[am,an]=(0,e.useState)([]),[ao,ap]=(0,e.useState)(!1),[aq,ar]=(0,e.useState)({}),[as,at]=(0,e.useState)(""),[au,av]=(0,e.useState)(()=>new Set),[aw,ax]=(0,e.useState)(!1),[ay,az]=(0,e.useState)([]),[aA,aB]=(0,e.useState)("__none__"),[aC,aD]=(0,e.useState)(!1),[aE,aF]=(0,e.useState)(null),[aG,aH]=(0,e.useState)(""),[aI,aJ]=(0,e.useState)("auto"),[aK,aL]=(0,e.useState)({enabled:!1,connections:{}}),[aM,aN]=(0,e.useState)([]),[aO,aP]=(0,e.useState)([]),[aQ,aR]=(0,e.useState)(null),[aS,aT]=(0,e.useState)([]),[aU,aV]=(0,e.useState)([]),[aW,aX]=(0,e.useState)(null),[aY,aZ]=(0,e.useState)(!1),[a$,a_]=(0,e.useState)(!1),[a0,a1]=(0,e.useState)(!1),[a2,a3]=(0,e.useState)(null),[a4,a5]=(0,e.useState)({}),[a6,a7]=(0,e.useState)(null),a8=(0,e.useRef)(!1),[a9,ba]=(0,e.useState)(!1),[bb,bc]=(0,e.useState)(!1),{copied:bd,copy:be}=(0,y.C)(),bf=()=>{I(!0)},bg=()=>{"xiaomi-mimo"===q?M(!0):bl?bf():(X(""),U(!0))},bh=()=>{X(""),U(!0)},bi=()=>{bl?bg():bh()},bj=w?{id:w.id,name:w.name||("anthropic-compatible"===w.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===w.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===w.type?"AC":"OC",apiType:w.apiType,baseUrl:w.baseUrl,type:w.type}:l.zN[q]||l.fg[q]||l.IS[q]||l.nJ[q]||l.br[q],bk=bj?.authModes||[],bl=!!l.zN[q]||!!l.IS[q]||bk.includes("oauth"),bm=!!l.fg[q]||bk.includes("apikey"),bn=!!l.IS[q]?.noAuth,bo=(0,m.KC)(q),bp=("cursor"===q||"zed"===q)&&aO.length>0?aO:bo,bq=(0,l.wG)(q),br=(0,l.mq)(q),bs=(0,l.gb)(q),bt=br||bs,bu=!bt&&bl&&bm,bv="xai"===q?"Grok Build OAuth":"grok-cli"===q?"Grok CLI Device Login":"kimi"===q?"Kimi Coding OAuth":"OAuth",bw="xai"===q?"xAI API Key":"kimi"===q?"Kimi API Key":"qoder"===q||"qoder-cn"===q?"PAT":"API Key",bx=a=>{if(!aI||"auto"===aI)return null;let b=x(q,a);return b&&b.includes(aI)?aI:null},by=bt?q:bq,bz=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=x(q,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of bp)c(a.id);for(let a of aS)c(a.id);for(let a of am)a.providerAlias===by&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bA=bt?w?.prefix||q:bq,bB=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(by)}`,{cache:"no-store"}),b=await a.json();a.ok&&aV(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[by]),bC=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:by,ids:[a]})})).ok&&await bB()}catch(a){console.log("Error disabling model:",a)}},bD=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(by)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bB()}catch(a){console.log("Error enabling model:",a)}},bE=async a=>{a.length&&aX({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aX(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:by,ids:a})})).ok&&await bB()}catch(a){console.log("Error disabling all models:",a)}}})},bF=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(by)}`,{method:"DELETE"})).ok&&await bB()}catch(a){console.log("Error enabling all models:",a)}},bG=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&al(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bH=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&an(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bI=(0,e.useCallback)(async()=>{try{let[a,b,c,d]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),e=await a.json(),f=await b.json(),g=await c.json(),h=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===q);t(a)}c.ok&&F(g.proxyPools||[]);let i=(h.providerStrategies||{})[q]||{};aF(i.fallbackStrategy||null),aH(null!=i.stickyRoundRobinLimit?String(i.stickyRoundRobinLimit):"1");let j=(h.providerThinking||{})[q]||{};aJ(j.mode||"auto");let k=$[q],l=k&&h[k]||{};if(aL({enabled:!0===l.enabled,connections:l.connections||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===q)||null;if(!a&&bt)for(let b=0;b<3;b+=1){await new Promise(a=>setTimeout(a,150));let b=await fetch("/api/provider-nodes",{cache:"no-store"});if(b.ok&&(a=((await b.json()).nodes||[]).find(a=>a.id===q)||null))break}C(a)}}catch(a){console.log("Error fetching connections:",a)}finally{v(!1)}},[q,bt]),bJ=async a=>{try{let b=await fetch(`/api/provider-nodes/${q}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(C(c.node),await bI(),af(!1))}catch(a){console.log("Error updating provider node:",a)}},bK=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[q]:f[q]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},bL=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[q]={mode:a}:delete c[q],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){console.log("Error saving thinking config:",a)}},bM=async a=>{let b=$[q];if(b){aL(a);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[b]:a})})}catch(a){console.log("Error saving auto-ping config:",a)}}},bN=async(a,b,c=bq)=>{let d=`${c}/${a}`;try{let a=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:d,alias:b})});if(a.ok)await bG();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bO=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bG()}catch(a){console.log("Error deleting alias:",a)}},bP=async(a,b="llm",c=by,d,e)=>{try{let f=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b,...d?{caps:d}:{},...e?{transport:e}:{}})});if(f.ok)await bH();else{let a=await f.json();alert(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},bQ=async(a,b="llm",c=by)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bH()}catch(a){console.log("Error deleting custom model:",a)}},bR=async()=>{if(a9)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,A.Tl)("Please add an active Qoder connection first"));ba(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,A.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,A.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^(qoder-cn|qoder)\//,"");am.some(a=>a.providerAlias===by&&a.id===c&&"llm"===(a.kind||a.type||"llm"))||Object.values(ak).includes(`${by}/${c}`)||(await bP(c,"llm",by),e+=1)}0===e?alert((0,A.Tl)("All models already exist, no new models added")):alert((0,A.Tl)("Successfully added")+` ${e} `+(0,A.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),alert((0,A.Tl)("Error fetching models")+": "+a.message)}finally{ba(!1)}},bS=async()=>{if(bb)return;let a=s.find(a=>!1!==a.isActive);if(!a)return void alert((0,A.Tl)("Please add an active Cline connection first"));bc(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,A.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,A.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;b&&(am.some(a=>a.providerAlias===by&&a.id===b&&"llm"===(a.kind||a.type||"llm"))||Object.values(ak).includes(`${by}/${b}`)||(await bP(b,"llm",by),e+=1))}0===e?alert((0,A.Tl)("All models already exist, no new models added")):alert((0,A.Tl)("Successfully added")+` ${e} `+(0,A.Tl)("models"))}catch(a){console.log("Error importing Cline models:",a),alert((0,A.Tl)("Error fetching models")+": "+a.message)}finally{bc(!1)}},bT=async()=>{if(a$||0===s.length)return;let a=Object.fromEntries(s.map(a=>[a.id,{state:"queued",error:null}]));a8.current=!1,a_(!0),a1(!1),a3(null),a5(a),a7({total:s.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<s.length;a+=1){if(a8.current){a7({total:s.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=s[a];a3(d.id),a5(a=>({...a,[d.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${d.id}/test`,{method:"POST"}),e=await a.json(),f=!!e.valid;f?b+=1:c+=1,a5(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,a5(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}a7({total:s.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<s.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{a3(null),a_(!1),a1(!1),a8.current=!1}},bU=async a=>{aX({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{aX(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&t(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},bV=()=>{bI(),I(!1)},bW=async a=>{X("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:q,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bI(),U(!1);return}X(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),X("Failed to save connection")}},bX=async a=>{try{(await fetch(`/api/providers/${ai.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bI(),ad(!1))}catch(a){console.log("Error updating connection:",a)}},bY=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&t(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},bZ=async(a,b)=>{let c=[...s];[c[a],c[b]]=[c[b],c[a]],t(c);try{await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch(a){console.log("Error swapping priority:",a),await bI()}},b$=s.filter(a=>ay.includes(a.id)),b_=s.length>0&&ay.length===s.length;(()=>{if(0===b$.length)return;let a=new Set(b$.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=D.find(a=>a.id===b);return c?.name}})();let b0=()=>{aC||ah(!1)},b1=async a=>{aD(!0);try{let b=0;for(let{connectionId:c,proxyPoolId:d}of a)try{(await fetch(`/api/providers/${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:d})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",c,a),b+=1}b>0&&alert(`Updated with ${b} failed request(s).`),await bI(),ah(!1)}finally{aD(!1)}},b2=a=>b1(s.map(b=>({connectionId:b.id,proxyPoolId:a}))),b3=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03] max-h-[500px] overflow-y-auto pr-1",children:s.map((a,b)=>{let c;return(0,d.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,d.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,d.jsx)("input",{type:"checkbox",checked:(c=a.id,ay.includes(c)),onChange:()=>{var b;return b=a.id,void az(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(J,{connection:a,proxyPools:D,isOAuth:bl,isFirst:0===b,isLast:b===s.length-1,onMoveUp:()=>bZ(b,b-1),onMoveDown:()=>bZ(b,b+1),onToggleActive:b=>bY(a.id,b),autoPing:$[q]&&"oauth"===a.authType?{on:!0===aK.connections[a.id],onToggle:b=>{var c;return c=a.id,void bM({...aK,connections:{...aK.connections,[c]:b}})},provider:q}:null,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&t(c=>c.map(c=>c.id===a.id?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("Error updating proxy:",a)}},onEdit:()=>{aj(a),ad(!0)},onDelete:()=>bU(a.id),oneByOneStatus:a4[a.id]||null})})]},a.id)})}),b4=D.filter(a=>!0===a.isActive),b5=(0,d.jsx)(k.aF,{isOpen:ag,onClose:b0,title:`Apply Proxy (${s.length} connections)`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("button",{onClick:()=>{let a=D.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):b1(s.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:aC||0===b4.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,d.jsxs)("button",{onClick:()=>b2(null),disabled:aC,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),D.map(a=>(0,d.jsxs)("button",{onClick:()=>b2(a.id),disabled:aC||!0!==a.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,d.jsx)("span",{className:"truncate text-sm text-text-main",children:a.name}),!0!==a.isActive&&(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},a.id))]}),aC&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:b0,variant:"ghost",fullWidth:!0,disabled:aC,children:"Cancel"})]})}),b6=async a=>{if(!au.has(a)){av(b=>new Set(b).add(a));try{let b=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${by}/${a}`})}),c=await b.json();ar(b=>({...b,[a]:c.ok?"ok":"error"})),at(c.ok?"":c.error||"Model not reachable")}catch{ar(b=>({...b,[a]:"error"})),at("Network error")}finally{av(b=>{let c=new Set(b);return c.delete(a),c})}}};if(u)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(k.Qv,{}),(0,d.jsx)(k.Qv,{})]});if(!bj)return(0,d.jsxs)("div",{className:"text-center py-20",children:[(0,d.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,d.jsx)(h(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let b7=()=>br&&bj.apiType?"responses"===bj.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bs?"/providers/anthropic-m.png":(0,j.HY)(bj.id);return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,d.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${bj.color}15`},children:ao||!b7()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bj.color},children:bj.textIcon||bj.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.A,{src:b7(),alt:bj.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(bj.id),ap(!0)},loading:"lazy",decoding:"async"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:bj.name}),(bj.notice?.apiKeyUrl||bj.notice?.signupUrl||bj.website)&&(0,d.jsxs)("a",{href:bj.notice?.apiKeyUrl||bj.notice?.signupUrl||bj.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),bj.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[s.length," connection",1===s.length?"":"s"]})]})]})]}),bj.deprecated&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:bj.deprecationNotice})]}),bj.notice?.text&&!bj.deprecated&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,d.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:bj.notice.text}),bj.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bj.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),bt&&w&&(0,d.jsx)(k.Zp,{children:(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:bs?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bs?"Messages API":"responses"===w.apiType?"Responses API":"Chat Completions"," \xb7 ",(w.baseUrl||"").replace(/\/$/,""),"/",bs?"messages":"responses"===w.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:()=>{X(""),U(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>af(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aX({title:"Delete Compatible Node",message:`Delete this ${bs?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aX(null);try{(await fetch(`/api/provider-nodes/${q}`,{method:"DELETE"})).ok&&p.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),"antigravity"===q&&(0,d.jsx)(L,{}),bn?(0,d.jsx)(k.gw,{providerId:q}):(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[s.length>0&&D.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ah(!0),children:"Apply Proxy"}),s.length>0&&(0,d.jsxs)(d.Fragment,{children:[ay.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=ay.length;0!==a&&aX({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aX(null);let a=0,b=[...ay];for(let c of b)try{(await fetch(`/api/providers/${c}`,{method:"DELETE"})).ok||(a+=1)}catch(b){console.log("Error deleting connection:",b),a+=1}t(a=>a.filter(a=>!b.includes(a.id))),az([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",ay.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:bT,disabled:a$,children:a$?"Testing Connection One-by-One...":"Test Connection One-by-One"}),a$&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{a$&&(a8.current=!0,a1(!0))},disabled:a0,children:a0?"Stopping...":"Stop"})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,d.jsx)(k.lM,{checked:"round-robin"===aE,onChange:a=>{let b=a?"round-robin":null,c=a?aG||"1":aG;a&&!aG&&aH("1"),aF(b),bK(b,c)}}),"round-robin"===aE&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:aG,onChange:a=>{var b;aH(b=a.target.value),bK("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===s.length?(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:bl?"lock":"key"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),bu&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bv," or ",bw,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bu?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bg,children:bv}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bh,children:bw})]}):(0,d.jsxs)(d.Fragment,{children:[!bt&&"iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>R(!0),children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>_(!0),children:(0,A.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ab(!0),children:(0,A.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bi,children:bt?"Add API Key":"iflow"===q?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[a6&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:["Total: ",a6.total]}),(0,d.jsxs)("span",{children:["Completed: ",a6.completed]}),(0,d.jsxs)("span",{children:["Passed: ",a6.passed]}),(0,d.jsxs)("span",{children:["Failed: ",a6.failed]}),a6.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),a$&&a2&&(0,d.jsxs)("span",{children:["Running: ",s.find(a=>a.id===a2)?.name||a2]})]})}),s.length>0&&(0,d.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,d.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,d.jsx)("input",{type:"checkbox",checked:b_,onChange:()=>{b_?az([]):az(s.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),b3,!bt&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>R(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>_(!0),title:(0,A.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,A.Tl)("Bulk Add")}),"grok-cli"===q&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ab(!0),title:(0,A.Tl)("Bulk import Grok CLI accounts from JSON"),className:"w-full sm:w-auto",children:(0,A.Tl)("Bulk Add")}),bu?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bg,className:"w-full sm:w-auto",children:bv}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bh,className:"w-full sm:w-auto",children:bw})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bi,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsx)(Z,{providerId:q}),(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),bz&&(0,d.jsx)("select",{value:aI,onChange:a=>{var b;aJ(b=a.target.value),bL(b)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:bz.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!bt&&(a=[...bp,...aS.filter(a=>!bp.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!aU.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[aU.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bF,children:"Active All"}),a.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bE(a),children:"Disable All"})]}))]}),!!as&&(0,d.jsxs)("div",{className:"mb-3",children:[(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:as}),/RegionError|hosted in China|regionNotAllowed/i.test(as)&&(c=(b="string"==typeof as?as:JSON.stringify(as)).match(/https:\/\/opencode\.ai\/workspace\/[^\s"')]+/),g=b.match(/wrk_[0-9A-Za-z]+/),n=c?c[0].endsWith("/go")?c[0]:`${c[0]}/go`:g?`https://opencode.ai/workspace/${g[0]}/go`:"https://opencode.ai",(0,d.jsx)("div",{className:"mt-1.5",children:(0,d.jsxs)("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 rounded-md bg-amber-500/10 px-2 py-0.5 text-xs font-medium text-amber-600 hover:bg-amber-500/20 dark:text-amber-400 transition-colors",children:[(0,d.jsx)("span",{children:"Allow China-hosted models"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"open_in_new"})]})}))]}),"zed"===q&&!!aQ&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:aQ}),(()=>{let a,b,c;if(bt)return(0,d.jsx)(G,{providerStorageAlias:by,providerDisplayAlias:bA,modelAliases:ak,customModels:am,copied:bd,onCopy:be,onSetAlias:bN,onDeleteAlias:bO,onAddCustomModel:a=>bP(a,"llm",by),onDeleteCustomModel:a=>bQ(a,"llm",by),connections:s,isAnthropic:bs});let e=[...bp,...aS.filter(a=>!bp.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(aU),g=e.filter(a=>!f.has(a.id)),h=e.filter(a=>f.has(a.id)),i=B({customModels:am,modelAliases:ak,providerAlias:by,builtInModels:bp,type:"llm"});return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i.map(a=>(0,d.jsx)(E,{model:{id:a.id,name:a.name},fullModel:`${bA}/${a.id}`,alias:a.alias,copied:bd,onCopy:be,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?bQ(a.id,"llm",by):bO(a.alias)},testStatus:aq[a.id],onTest:s.length>0||bn?()=>b6(a.id):void 0,isTesting:au.has(a.id),isCustom:!0,isFree:!1,caps:r(`${q}/${a.id}`),thinkingSuffix:bx(a.id)},`${a.source}-${a.fullModel}`)),g.map(a=>{let b=`${by}/${a.id}`,c=`${q}/${a.id}`,e=Object.entries(ak).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(E,{model:a,fullModel:`${bA}/${a.id}`,alias:e,copied:bd,onCopy:be,onSetAlias:b=>bN(a.id,b,by),onDeleteAlias:()=>bO(e),testStatus:aq[a.id],onTest:s.length>0||bn?()=>b6(a.id):void 0,isTesting:au.has(a.id),isFree:a.isFree,onDisable:()=>bC(a.id),caps:r(`${q}/${a.id}`),thinkingSuffix:bx(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>ax(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),("qoder"===q||"qoder-cn"===q)&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bR,disabled:a9,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:a9?{animation:"spin 1s linear infinite"}:void 0,children:a9?"progress_activity":"download"}),a9?(0,A.Tl)("Fetching..."):(0,A.Tl)("Fetch Qoder Models")]}),("cline"===q||"clinepass"===q)&&s.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bS,disabled:bb,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:bb?{animation:"spin 1s linear infinite"}:void 0,children:bb?"progress_activity":"download"}),bb?(0,A.Tl)("Fetching..."):(0,A.Tl)("Import from /models")]}),aM.length>0&&(a=new Set([...Object.values(ak),...i.map(a=>a.fullModel)]),b=new Set(bp.map(a=>a.id)),0===(c=aM.filter(c=>!a.has(`${by}/${c.id}`)&&!b.has(c.id))).length?null:(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{await bP(a.id,"llm",by)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id.split("/").pop()]},a.id))})]})),h.length>0&&(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",h.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:h.map(a=>(0,d.jsxs)("button",{onClick:()=>bD(a.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},a.id))})]})]})})()]}),b5,"kiro"===q?(0,d.jsx)(k.Mh,{isOpen:H,providerInfo:bj,onSuccess:bV,onClose:()=>I(!1)}):"cursor"===q?(0,d.jsx)(k.G9,{isOpen:H,onSuccess:bV,onClose:()=>I(!1)}):"zed"===q?(0,d.jsx)(k.TE,{isOpen:H,providerInfo:bj,onSuccess:bV,onClose:()=>I(!1)}):"gitlab"===q?(0,d.jsx)(k.vj,{isOpen:H,providerInfo:bj,onSuccess:bV,onClose:()=>I(!1)}):(0,d.jsx)(k.LF,{isOpen:H,provider:q,providerInfo:bj,onSuccess:bV,onClose:()=>I(!1)}),(0,d.jsx)(k.LH,{isOpen:K,onSuccess:bV,onClose:()=>M(!1)}),"iflow"===q&&(0,d.jsx)(k.vE,{isOpen:P,onSuccess:()=>{bI(),R(!1)},onClose:()=>R(!1)}),(0,d.jsx)(N,{isOpen:T,provider:q,providerName:bj.name,isCompatible:bt,isAnthropic:bs,authType:bj?.authType,authHint:bj?.authHint,website:bj?.website,proxyPools:D,error:W,existingNames:s.map(a=>a.name).filter(Boolean),onSave:bW,onBulkDone:bI,onClose:()=>{X(""),U(!1)}}),(0,d.jsx)(k.wI,{isOpen:ac,connection:ai,proxyPools:D,onSave:bX,onClose:()=>ad(!1)}),bt&&(0,d.jsx)(O,{isOpen:ae,node:w,onSave:bJ,onClose:()=>af(!1),isAnthropic:bs}),!bt&&(0,d.jsx)(Q,{isOpen:aw,providerAlias:by,providerDisplayAlias:bA,onSave:async(a,b,c)=>{await bP(a,b?.stt?"stt":"llm",by,b,c),ax(!1)},onClose:()=>ax(!1)}),"codex"===q&&(0,d.jsx)(S,{isOpen:Y,onClose:()=>_(!1),onSuccess:bI}),"grok-cli"===q&&(0,d.jsx)(V,{isOpen:aa,onClose:()=>ab(!1),onSuccess:bI}),(0,d.jsx)(k.uo,{isOpen:aY,onClose:()=>aZ(!1),onConfirm:()=>{(aZ(!1),bl)?bf():bh()},title:"Risk Notice",message:bj?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!aW,onClose:()=>aX(null),onConfirm:aW?.onConfirm,title:aW?.title||"Confirm",message:aW?.message,variant:"danger"})]})}},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},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")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},59627:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>x,handler:()=>z,routeModule:()=>y});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,57529))),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=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"C:\\Users\\FADHLI\\9router-fix\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js"]}]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"C:\\Users\\FADHLI\\9router-fix\\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,"C:\\Users\\FADHLI\\9router-fix\\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,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},93110:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"C:\\\\Users\\\\FADHLI\\\\9router-fix\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\providers\\\\[id]\\\\page.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.")},"C:\\Users\\FADHLI\\9router-fix\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js","default")},94735:a=>{"use strict";a.exports=require("events")},97859:(a,b,c)=>{Promise.resolve().then(c.bind(c,38071))}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1260,2430,4613,6455,9555,1220,4884,8967,6070,869,915,6457,4123,2906,6777,412,4044],()=>b(b.s=59627));module.exports=c})();
|