@rabbi696/ezrouter 0.6.27 → 0.6.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +3 -3
- package/app/.next-cli-build/build-manifest.json +2 -2
- 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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +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/error-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_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 +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard/ha/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard/ha.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/ha.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/ha.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/ha.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard/models/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard/models.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/models.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/models.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/models.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +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 +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +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 +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page_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 +4 -4
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +3 -3
- package/app/.next-cli-build/server/chunks/5461.js +1 -1
- package/app/.next-cli-build/server/chunks/5749.js +1 -1
- package/app/.next-cli-build/server/chunks/6038.js +1 -1
- package/app/.next-cli-build/server/chunks/6283.js +1 -1
- package/app/.next-cli-build/server/chunks/6328.js +1 -1
- package/app/.next-cli-build/server/chunks/6644.js +1 -1
- package/app/.next-cli-build/server/chunks/7775.js +1 -1
- package/app/.next-cli-build/server/chunks/8238.js +1 -1
- package/app/.next-cli-build/server/chunks/9900.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/{1321-e213e7e1bf3a7765.js → 1321-4b31ce80e6ca3c02.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-d08c7e6e5aac5fe2.js → page-f894f779f1b97e44.js} +1 -1
- package/app/CHANGELOG.md +11 -2
- package/app/package.json +1 -1
- package/app/public/CHANGELOG.md +11 -2
- package/package.json +1 -1
- /package/app/.next-cli-build/static/{QraJFuTUjRVVcGfufFpWk → BBHPCyd1tb1Fl4SRcejMy}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{QraJFuTUjRVVcGfufFpWk → BBHPCyd1tb1Fl4SRcejMy}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{9339:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={callServer:function(){return r.callServer},createServerReference:function(){return n.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var i in a)Object.defineProperty(t,i,{enumerable:!0,get:a[i]});let r=s(77304),l=s(4060),n=s(77197)},14558:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var a=s(95155),i=s(12115),r=s(97677);function l({connectionId:e,disabled:t=!1,onComplete:s}){let[n,o]=(0,i.useState)(!1),[d,c]=(0,i.useState)(null);async function m(){if(!n){if(d)return void c(null);o(!0);try{let t=await fetch("/api/wakeup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"ping",connectionId:e})}),a=await t.json();if(!t.ok)throw Error(a.error||"Ping failed.");c(a),s&&Promise.resolve(s()).catch(()=>{})}catch(e){c({status:"failed",message:e.message})}finally{o(!1)}}}let u=n?"Pinging…":d?`${d.message} Click to reset.`:"Ping now — sends a small request. Consumes quota; does not change Auto-Ping.",p=d?"succeeded"===d.status?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400":"text-text-muted hover:text-primary";return(0,a.jsx)(r.default,{text:u,children:(0,a.jsx)("button",{type:"button",onClick:m,disabled:n||t&&!d,"aria-label":u,"aria-busy":n,className:`flex h-8 w-8 items-center justify-center rounded-lg ${p} hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-50`,children:(0,a.jsx)("span",{"aria-hidden":"true",style:{fontSize:n?20:32},className:`material-symbols-outlined ${n?"animate-spin":""}`,children:n?"progress_activity":"play_arrow"})})})}},25871:(e,t,s)=>{"use strict";s.d(t,{G:()=>n,e:()=>d});var a=s(12115);let i=null,r=null,l="pricingChanged";function n(){i=null,window.dispatchEvent(new CustomEvent(l))}function o(){return i?Promise.resolve(i):r||(r=fetch("/api/pricing").then(async e=>{if(!e.ok)throw Error(`pricing ${e.status}`);return e.json()}).then(e=>i=e||{}).catch(()=>({})).finally(()=>{r=null}))}function d(){let[e,t]=(0,a.useState)(()=>i||{});return(0,a.useEffect)(()=>{let e=!0;o().then(s=>{e&&t(s)});let s=()=>{o().then(s=>{e&&t(s)})};return window.addEventListener(l,s),()=>{e=!1,window.removeEventListener(l,s)}},[]),{getPricing:(0,a.useCallback)((t,s)=>t&&s&&e[t]?.[s]||null,[e])}}},64827:(e,t,s)=>{"use strict";function a(e){if(!e)return null;let t=null,s=Date.now();for(let[a,i]of Object.entries(e)){if(!a.startsWith("modelLock_")||!i)continue;let e=new Date(i).getTime();e<=s||(!t||e<t)&&(t=e)}return t?new Date(t).toISOString():null}s.d(t,{kJ:()=>a}),s(10904)},85295:(e,t,s)=>{Promise.resolve().then(s.bind(s,86822))},86822:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>eC});var a=s(95155),i=s(12115),r=s(73321),l=s(98500),n=s.n(l),o=s(5772),d=s(8247),c=s(35497),m=s(88105),u=s(28777),p=s(57151),x=s(47224),h=s(40228),f=s(89523);let g=["none","low","medium","high"],y=["none","thinking"],b=["none","low","medium","high","max"],v=["none","low","medium","high","xhigh","max"],j={qoder:v,openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":v,"claude-budget":v,"gemini-level":["minimal","low","medium","high"],"gemini-budget":g,zai:y,qwen:g,kimi:b,opencode:b,deepseek:["none","high","max"],minimax:y,hunyuan:g,step:g,nous:g,meta:["minimal","low","medium","high","xhigh"],ollama:b},w=["none","minimal","low","medium","high","xhigh","max"],k=["none","low","medium","high","max"],N=[{pattern:"*gemini-4*",levels:["low","medium","high"]},{pattern:"*claude*4.6*",levels:k},{pattern:"*claude*4-6*",levels:k},{provider:"codex",pattern:"*gpt-6*",levels:w},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...w,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...w,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:w},{providers:["openai","codex"],pattern:"*gpt-5.6*",levels:["none","minimal","low","medium","high","xhigh","max","ultra"]},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{provider:"opencode",pattern:"*mimo*v2.6*",levels:["none","minimal","low","medium","high","xhigh","max"]},{pattern:"*mimo*v2.6*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"ollama",pattern:"*gpt-oss*",levels:["none","low","medium","high"]},{provider:"ollama-local",pattern:"*gpt-oss*",levels:["none","low","medium","high"]},{provider:"qoder",pattern:"*",levels:v},{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.1-flash-free*",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"]},{pattern:"*glm-5.3",levels:["low","high","max"]}];function C(e,t){if("kiro"===e&&null===function(e){if("string"!=typeof e)return null;let t=e.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(t))return"reasoning";if(!t.includes("claude"))return null;let s=function(e){if("string"!=typeof e)return null;let t=e.toLowerCase().replace(/-/g,".").match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);return t?{major:Number(t[1]),minor:void 0===t[2]?null:Number(t[2])}:null}(e);if(!s)return null;let{major:a,minor:i}=s;return a<4||4===a&&(null===i||i<=5||null!==i&&i>=1e3)?null:"output_config"}(t))return null;let s=(0,p.nl)(e,t);if(!s.reasoning)return null;let a=String(t||"").replace(/\([^()]+\)\s*$/,""),i="codex"===e?(0,f.SM)("cx").find(e=>e.id===a)?.thinkingLevels:null,r=N.find(s=>(!s.providers||!e||s.providers.includes(e))&&(!s.provider||s.provider===e)&&(0,x.gH)(s.pattern,t)),l=(e?h.xq[e]?.thinkingFormat:null)||s.thinkingFormat,n=i||s.thinkingLevels||r?.levels||j[l]||g;return!1===s.thinkingCanDisable&&(n=n.filter(e=>"none"!==e)),n}var S=s(11059),A=s(929),T=s(73006);let $=new Map;async function O(e,t){if(e?.type==="static")return e.models||[];if(!e?.url||!e?.type)return[];let s="nous"===t||e.url?.includes("nousresearch")?"nous":e.type,a=`${e.url}#${s}`,i=$.get(a);if(i&&Date.now()<i.expiresAt)return i.data;try{let t=new URLSearchParams({url:e.url,type:s}),i=await fetch(`/api/providers/suggested-models?${t}`);if(!i.ok)return[];let r=(await i.json()).data??[];return $.set(a,{data:r,expiresAt:Date.now()+6e5}),r}catch{return[]}}function P({customModels:e=[],modelAliases:t={},providerAlias:s,builtInModels:a=[],type:i="llm",includeLegacyAliases:r=!0}){let l=new Set(a.map(e=>e.id)),n=new Set,o=[];for(let t of e){if(!t?.id||t.providerAlias!==s)continue;let e=t?.kind||t?.type||"llm";if(i&&e!==i||l.has(t.id))continue;let a=`${s}/${t.id}`;n.has(a)||(n.add(a),o.push({id:t.id,name:t.name||t.id,fullModel:a,source:"custom",type:e}))}if(!r)return o;let d=`${s}/`;for(let[e,s]of Object.entries(t||{})){if("string"!=typeof s||!s.startsWith(d))continue;let t=s.slice(d.length);!t||l.has(t)||n.has(s)||(n.add(s),o.push({id:t,alias:e,fullModel:s,source:"legacyAlias",type:i||"llm"}))}return o}var I=s(14051),E=s.n(I),R=s(25871),M=s(93725);function D({model:e,fullModel:t,alias:s,copied:i,onCopy:r,testStatus:l,isCustom:n,isFree:o,onDeleteAlias:d,onTest:m,isTesting:u,onDisable:p,caps:x,thinkingSuffix:h}){let{getPricing:f}=(0,R.e)(),g=h?`${t}(${h})`:t,y=t.includes("/")?t.slice(0,t.indexOf("/")):null,b=(0,M.M4)(x,f(y,e.id)),v="ok"===l?"#22c55e":"error"===l?"#ef4444":"slow"===l||"rate_limited"===l?"#f59e0b":void 0;return(0,a.jsx)("div",{className:`group w-full sm:w-auto min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===l?"border-green-500/40":"error"===l?"border-red-500/40":"slow"===l||"rate_limited"===l?"border-amber-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base mt-0.5 sm:mt-0",style:v?{color:v}:void 0,children:"ok"===l?"check_circle":"error"===l?"cancel":"slow"===l||"rate_limited"===l?"warning":"smart_toy"}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,a.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:g}),(0,a.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[e.name&&(0,a.jsx)("span",{className:"break-all sm:truncate text-[9px] italic text-text-muted/70",children:e.name}),(0,a.jsx)(c.nh,{caps:x,colorOverride:"text-text-muted/70",size:12}),b&&(0,a.jsx)("span",{className:"truncate text-[9px] text-text-muted/70",children:b})]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:[m&&(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:m,disabled:u,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${u?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:u?{animation:"spin 1s linear infinite"}:void 0,children:u?"progress_activity":"science"})}),(0,a.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:u?"Testing...":"Test"})]}),(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:()=>r(g,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:i===`model-${e.id}`?"check":"content_copy"})}),(0,a.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:i===`model-${e.id}`?"Copied!":"Copy"})]}),n?(0,a.jsx)("button",{onClick:d,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,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):p?(0,a.jsx)("button",{onClick:p,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,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})]})})}function q({isOpen:e,onClose:t,connectionId:s,providerStorageAlias:r,existingIds:l,transformId:n,onImported:o}){let[d,m]=(0,i.useState)(!1),[u,p]=(0,i.useState)(""),[x,h]=(0,i.useState)(""),[f,g]=(0,i.useState)([]),[y,b]=(0,i.useState)(()=>new Set),[v,j]=(0,i.useState)(""),[w,k]=(0,i.useState)(!1),[N,C]=(0,i.useState)(null);(0,i.useEffect)(()=>{if(!e||!s)return;let t=!1;return m(!0),p(""),h(""),g([]),b(new Set),j(""),C(null),fetch(`/api/providers/${s}/models`,{cache:"no-store"}).then(async e=>({ok:e.ok,data:await e.json()})).then(({ok:e,data:s})=>{if(t)return;if(!e)return void p(s.error||"Failed to fetch models");let a=new Set,i=[];for(let e of s.models||[]){if(e?.kind&&!["llm","imageToText"].includes(e.kind))continue;let t=e?.id||e?.name||e?.model;"string"==typeof t&&t.trim()&&(n&&(t=n(t)),!t||a.has(t)||(a.add(t),i.push({id:t,name:e?.name&&e.name!==e.id&&e.name!==t?e.name:null})))}g(i),s.warning&&h(s.warning),0!==i.length||s.warning||h("Provider returned 0 models")}).catch(e=>{t||p(e.message||"Network error")}).finally(()=>{t||m(!1)}),()=>{t=!0}},[e,s,n]);let S=(0,i.useMemo)(()=>f.map(e=>({...e,added:l?.has(e.id)===!0})),[f,l]),A=(0,i.useMemo)(()=>{let e=v.trim().toLowerCase();return e?S.filter(t=>t.id.toLowerCase().includes(e)||(t.name||"").toLowerCase().includes(e)):S},[S,v]),T=A.filter(e=>!e.added),$=T.length>0&&T.every(e=>y.has(e.id)),O=async()=>{if(!w&&0!==y.size){k(!0),p("");try{let e=await fetch("/api/models/custom/bulk",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:r,type:"llm",ids:[...y]})}),t=await e.json();if(!e.ok)return void p(t.error||"Import failed");C(t),window.dispatchEvent(new CustomEvent("customModelChanged")),o?.()}catch(e){p(e.message||"Network error")}finally{k(!1)}}};return(0,a.jsx)(c.aF,{isOpen:e,title:"Import Models from Provider",onClose:t,children:(0,a.jsx)("div",{className:"flex flex-col gap-3",children:N?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-sm text-text-main",children:["Imported ",N.added," model",1===N.added?"":"s",N.skipped>0?`, ${N.skipped} already existed`:"","."]}),(0,a.jsx)(c.$n,{onClick:t,fullWidth:!0,children:"Done"})]}):(0,a.jsxs)(a.Fragment,{children:[u&&(0,a.jsx)("p",{className:"text-xs text-red-500 break-words",children:u}),x&&!u&&(0,a.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-400 break-words",children:x}),d?(0,a.jsxs)("p",{className:"text-sm text-text-muted py-6 text-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm align-middle mr-1",style:{animation:"spin 1s linear infinite"},children:"progress_activity"}),"Fetching models from provider..."]}):f.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"text",value:v,onChange:e=>j(e.target.value),placeholder:"Search models...",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,a.jsx)("input",{type:"checkbox",checked:$,onChange:()=>{b(e=>{let t=new Set(e);if($)for(let e of T)t.delete(e.id);else for(let e of T)t.add(e.id);return t})},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All (",T.length," available",A.length!==S.length?`, ${A.length} shown`:"",")"]}),(0,a.jsxs)("div",{className:"flex max-h-72 flex-col gap-1 overflow-y-auto custom-scrollbar pr-1",children:[A.map(e=>(0,a.jsxs)("label",{className:`flex items-center gap-2 rounded-lg border px-2.5 py-1.5 text-xs ${e.added?"border-border opacity-50":"border-border hover:border-primary/40 cursor-pointer"}`,children:[(0,a.jsx)("input",{type:"checkbox",checked:e.added||y.has(e.id),disabled:e.added,onChange:()=>{var t;return t=e.id,void b(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),(0,a.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono",children:e.id}),e.name&&(0,a.jsx)("span",{className:"truncate text-text-muted/70 italic",children:e.name}),e.added&&(0,a.jsx)("span",{className:"shrink-0 text-[10px] text-text-muted",children:"added"})]},e.id)),0===A.length&&(0,a.jsx)("p",{className:"py-4 text-center text-xs text-text-muted",children:"No models match the search"})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(c.$n,{onClick:O,fullWidth:!0,disabled:0===y.size||w,children:w?"Importing...":`Import Selected (${y.size})`}),(0,a.jsx)(c.$n,{onClick:t,variant:"ghost",fullWidth:!0,disabled:w,children:"Cancel"})]})]}),!d&&0===f.length&&!u&&(0,a.jsx)(c.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Close"})]})})})}function _({modelId:e,fullModel:t,copied:s,onCopy:i,onDeleteAlias:r,onTest:l,testStatus:n,isTesting:o}){let d="ok"===n?"#22c55e":"error"===n?"#ef4444":void 0;return(0,a.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===n?"border-green-500/50":"error"===n?"border-red-500/50":"border-border"} hover:bg-sidebar/50`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:d?{color:d}:void 0,children:"ok"===n?"check_circle":"error"===n?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,a.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:()=>i(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:s===`model-${e}`?"check":"content_copy"})}),(0,a.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:s===`model-${e}`?"Copied!":"Copy"})]}),l&&(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:l,disabled:o,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:o?{animation:"spin 1s linear infinite"}:void 0,children:o?"progress_activity":"science"})}),(0,a.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:o?"Testing...":"Test"})]})]})]}),(0,a.jsx)("button",{onClick:r,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function z({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:s,customModels:r,copied:l,onCopy:n,onDeleteAlias:o,onAddCustomModel:d,onDeleteCustomModel:m,connections:u,isAnthropic:p,onModelsChanged:x,importSupported:h=!1}){let[f,g]=(0,i.useState)(""),[y,b]=(0,i.useState)(!1),[v,j]=(0,i.useState)(!1),[w,k]=(0,i.useState)(null),[N,C]=(0,i.useState)({}),S=async t=>{if(!w){k(t);try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),a=await s.json();C(e=>({...e,[t]:a.ok?"ok":"error"}))}catch{C(e=>({...e,[t]:"error"}))}finally{k(null)}}},A=P({customModels:r,modelAliases:s,providerAlias:e,type:"llm"}),T=async()=>{if(!f.trim()||y)return;let e=f.trim();if(A.some(t=>t.id===e))return void alert("Model already exists for this provider.");b(!0);try{await d(e),g("")}catch(e){console.log("Error adding model:",e)}finally{b(!1)}},$=u.find(e=>!1!==e.isActive)?.id||null,O=!!$&&!0===h,I=new Set(A.map(e=>e.id));return(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",p?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,a.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,a.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,a.jsx)("input",{id:"new-compatible-model-input",type:"text",value:f,onChange:e=>g(e.target.value),onKeyDown:e=>"Enter"===e.key&&T(),placeholder:p?"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,a.jsx)(c.$n,{size:"sm",icon:"add",onClick:T,disabled:!f.trim()||y,children:y?"Adding...":"Add"}),(0,a.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"download",onClick:()=>j(!0),disabled:!O,children:"Import from /models"})]}),!O&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:$?"Set a Base URL on the active connection to enable importing models.":"Add a connection to enable importing models."}),A.length>0&&(0,a.jsx)("div",{className:"flex flex-col gap-3",children:A.map(({id:s,alias:i,source:r})=>(0,a.jsx)(_,{modelId:s,fullModel:`${t}/${s}`,copied:l,onCopy:n,onDeleteAlias:()=>"custom"===r?m(s):o(i),onTest:u.length>0?()=>S(s):void 0,testStatus:N[s],isTesting:w===s},`${r}-${e}/${s}`))}),(0,a.jsx)(q,{isOpen:v,onClose:()=>j(!1),connectionId:$,providerStorageAlias:e,existingIds:I,onImported:x})]})}function U({isOpen:e,onClose:t,providerId:s,providerAlias:r,connections:l,customModels:n,disabledModelIds:o,onSaved:d}){let[m,p]=(0,i.useState)([]),[x,h]=(0,i.useState)(()=>new Set),[f,g]=(0,i.useState)(""),[y,b]=(0,i.useState)(!0),[v,j]=(0,i.useState)(!1),[w,k]=(0,i.useState)(""),N=(0,i.useMemo)(()=>(l||[]).filter(e=>!1!==e.isActive&&e.id).map(e=>e.id),[l]);(0,i.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{let e=[];try{let t=await fetch(`/api/models/enabled?providerAlias=${encodeURIComponent(r)}`,{cache:"no-store"});t.ok&&(e=(await t.json()).ids||[])}catch{}let a=await Promise.all(N.map(async e=>{try{let t=await fetch(`/api/providers/${e}/models`,{cache:"no-store"});if(!t.ok)return[];let s=await t.json();return Array.isArray(s?.models)?s.models:[]}catch{return[]}}));if(t)return;let i=new Set,l=[],n=(e,t,s={})=>{let a=String(e??"").trim();!a||i.has(a)||(i.add(a),l.push({id:a,name:t||a,...s}))};for(let e of a)for(let t of e)n("string"==typeof t?t:t?.id,"string"==typeof t?t:t?.name||t?.id,{live:!0});for(let e of(0,u.KC)(s)||[]){let t=(0,u.CP)(e,"llm");t&&"llm"!==t||n(e.id,e.name)}for(let t of e)n(t,t,{stale:!0});let d=new Set(o||[]),c=e.length>0?e:l.filter(e=>!e.isCustom&&!d.has(e.id)).map(e=>e.id);p(l),h(new Set(c)),b(!1)})(),()=>{t=!0}},[e,s,r,N,o]);let C=(0,i.useMemo)(()=>(n||[]).filter(e=>e.providerAlias===r&&"llm"===(e.kind||e.type||"llm")).map(e=>({id:String(e.id).trim(),name:e.name||e.id})).filter(e=>e.id),[n,r]),S=(0,i.useMemo)(()=>{let e=f.trim().toLowerCase();return e?m.filter(t=>t.id.toLowerCase().includes(e)||t.name.toLowerCase().includes(e)):m},[m,f]),A=async()=>{j(!0),k("");try{let e=Array.from(x),s=await fetch("/api/models/enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:r,ids:e})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(e.error||`Failed to save (${s.status})`)}d?.(e),t()}catch(e){k(e?.message||"Failed to save visible models")}finally{j(!1)}};return(0,a.jsx)(c.aF,{isOpen:e,onClose:t,title:"Visible models",size:"lg",footer:null,children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 p-4",children:[(0,a.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border border-primary/20 bg-primary/8 px-2.5 py-2 text-xs text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-primary",style:{fontSize:"14px"},children:"info"}),(0,a.jsxs)("span",{children:["Only the checked models are exposed on ",(0,a.jsx)("code",{className:"font-mono",children:"/v1/models"}),". Leave everything unchecked to expose all of them. Custom models are always exposed."]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("div",{className:"relative flex-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-text-muted text-[16px]",children:"search"}),(0,a.jsx)("input",{type:"text",placeholder:"Search...",value:f,onChange:e=>g(e.target.value),className:"w-full rounded border border-border bg-surface py-1.5 pl-8 pr-3 text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"})]}),(0,a.jsx)(c.$n,{variant:"ghost",size:"sm",onClick:()=>h(new Set(m.map(e=>e.id))),disabled:y||v,children:"Select all"}),(0,a.jsx)(c.$n,{variant:"ghost",size:"sm",onClick:()=>h(new Set),disabled:y||v,children:"Clear"})]}),w&&(0,a.jsx)("p",{className:"text-xs text-red-500 break-words",children:w}),y?(0,a.jsx)("p",{className:"py-6 text-center text-xs text-text-muted",children:"Loading models…"}):(0,a.jsxs)("div",{className:"max-h-[360px] overflow-y-auto rounded-lg border border-border",children:[S.map(e=>(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 border-b border-border/50 px-3 py-2 last:border-b-0 hover:bg-sidebar/50",children:[(0,a.jsx)("input",{type:"checkbox",checked:x.has(e.id),onChange:()=>{var t;return t=e.id,void h(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"size-3.5 accent-primary cursor-pointer"}),(0,a.jsx)("span",{className:"truncate text-xs text-text-main",children:e.name}),(0,a.jsx)("code",{className:"truncate font-mono text-[11px] text-text-muted",children:e.id}),e.live&&!e.stale&&(0,a.jsx)("span",{className:"ml-auto shrink-0 rounded bg-primary/10 px-1.5 py-0.5 text-[10px] text-primary",children:"live"}),e.stale&&(0,a.jsx)("span",{className:"ml-auto shrink-0 rounded bg-amber-500/10 px-1.5 py-0.5 text-[10px] text-amber-600 dark:text-amber-400",children:"not in catalog"})]},e.id)),0===S.length&&(0,a.jsx)("p",{className:"py-6 text-center text-xs text-text-muted",children:"No models found"})]}),C.length>0&&(0,a.jsxs)("div",{className:"rounded-lg border border-border px-3 py-2",children:[(0,a.jsx)("p",{className:"mb-1 text-[11px] text-text-muted",children:"Always exposed (custom models)"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:C.map(e=>(0,a.jsx)("span",{className:"rounded bg-sidebar px-1.5 py-0.5 font-mono text-[11px] text-text-muted",children:e.id},e.id))})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"text-[11px] text-text-muted",children:0===x.size?"Nothing selected — all models stay visible.":`${x.size} of ${m.length} selected`}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(c.$n,{variant:"ghost",size:"sm",onClick:t,disabled:v,children:"Cancel"}),(0,a.jsx)(c.$n,{variant:"primary",size:"sm",onClick:A,loading:v,disabled:y,children:"Save"})]})]})]})})}D.propTypes={model:E().shape({id:E().string.isRequired}).isRequired,fullModel:E().string.isRequired,alias:E().string,copied:E().string,onCopy:E().func.isRequired,testStatus:E().oneOf(["ok","error","slow","rate_limited","not_tested"]),isCustom:E().bool,isFree:E().bool,onDeleteAlias:E().func,onTest:E().func,isTesting:E().bool,onDisable:E().func,caps:E().object,thinkingSuffix:E().string},E().string.isRequired,E().string.isRequired,E().string,E().func.isRequired,E().func.isRequired,E().func,E().oneOf(["ok","error"]),E().bool,E().string.isRequired,E().object.isRequired,E().arrayOf(E().object),E().string,E().func.isRequired,E().func.isRequired,E().func.isRequired,E().func.isRequired,q.propTypes={isOpen:E().bool.isRequired,onClose:E().func.isRequired,connectionId:E().string,providerStorageAlias:E().string.isRequired,existingIds:E().instanceOf(Set),transformId:E().func,onImported:E().func},_.propTypes={modelId:E().string.isRequired,fullModel:E().string.isRequired,copied:E().string,onCopy:E().func.isRequired,onDeleteAlias:E().func.isRequired,onTest:E().func,testStatus:E().string,isTesting:E().bool},z.propTypes={providerStorageAlias:E().string.isRequired,providerDisplayAlias:E().string.isRequired,modelAliases:E().object.isRequired,customModels:E().arrayOf(E().object),copied:E().string,onCopy:E().func.isRequired,onDeleteAlias:E().func.isRequired,onAddCustomModel:E().func.isRequired,onDeleteCustomModel:E().func.isRequired,connections:E().arrayOf(E().shape({id:E().string,isActive:E().bool})).isRequired,isAnthropic:E().bool,onModelsChanged:E().func,importSupported:E().bool},U.propTypes={isOpen:E().bool.isRequired,onClose:E().func.isRequired,providerId:E().string.isRequired,providerAlias:E().string.isRequired,connections:E().arrayOf(E().object),customModels:E().arrayOf(E().object),disabledModelIds:E().arrayOf(E().string),onSaved:E().func};var F=s(47650),L=s(70217);function J({until:e}){let[t,s]=(0,i.useState)("");return((0,i.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void s("");let a=Math.floor(t/1e3);if(a<60)s(`${a}s`);else if(a<3600)s(`${Math.floor(a/60)}m ${a%60}s`);else{let e=Math.floor(a/3600),t=Math.floor(a%3600/60);s(`${e}h ${t}m`)}};t();let a=setInterval(t,1e3);return()=>clearInterval(a)},[e]),t)?(0,a.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}J.propTypes={until:E().string.isRequired};var K=s(64827),H=s(14558),W=s(7462);let B=["invalid_grant","refresh_token_expired","reauth_required","unrecoverable_refresh_error","refresh_token_reused","refresh_token_invalidated"];function G(e){if(!e||"string"!=typeof e)return!1;let t=e.toLowerCase();return B.some(e=>t.includes(e))}function Q({connection:e,plan:t=null,proxyPools:s,isOAuth:r,isFirst:l,isLast:n,onMoveUp:o,onMoveDown:d,onToggleActive:m,onUpdateProxy:u,onEdit:p,onDelete:x,onReconnect:h=null,oneByOneStatus:f=null,autoPing:g=null,fastMode:y=null}){let[b,v]=(0,i.useState)(!1),j=(0,W.gr)(e.providerSpecificData?.quotaReserve),w=W.vP.filter(e=>j[e.id]).map(e=>`${e.label} ${j[e.id]}%`).join(" \xb7 "),[k,N]=(0,i.useState)(!1),[C,A]=(0,i.useState)(!1),T=(0,i.useRef)(null),$=(0,i.useRef)(null),[O,P]=(0,i.useState)(null),{copied:I,copy:E}=(0,S.C)(),R=`conn-id-${e.id}`,M=async()=>{if(y?.onToggle&&!C){A(!0);try{await y.onToggle(!y.on)}catch(e){console.error("Failed to toggle fast mode:",e)}finally{A(!1)}}},D=new Map((s||[]).map(e=>[e.id,e])),q=e.providerSpecificData?.proxyPoolId||null,_=q?D.get(q):null,z=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,U=!!q||z,B=_?`Pool: ${_.name}`:q?`Pool: ${q} (inactive/missing)`:z?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",V=(()=>{if(!g)return"";let e=[];return(g.reactiveOn&&e.push("On reset"),g.scheduleOn&&e.push(`Scheduled (${g.scheduleSummary||"active"})`),e.length>0)?`Auto-ping active: ${e.join(" + ")}. Click to configure.`:"codex"===g.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."})(),Z="";if(_?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=_?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);Z=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{Z=t}}let X=_?.noProxy||e.providerSpecificData?.connectionNoProxy||"",Y="default";_?.isActive===!0?Y="success":(q||z)&&(Y="error"),(0,i.useEffect)(()=>{if(!b)return;let e=e=>{T.current?.contains(e.target)||$.current?.contains(e.target)||v(!1)},t=()=>v(!1);return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("scroll",t,!0),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("scroll",t,!0)}},[b]);let ee=async e=>{N(!0);try{await u("__none__"===e?null:e)}finally{N(!1),v(!1)}},et=e.authType||(r?"oauth":"apikey"),es="oauth"===et,ea="cookie"===et,ei=e.name?.trim()||e.email?.trim()||e.displayName?.trim()||(es?"OAuth Account":ea?"Cookie Account":"API Key"),er=e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null,el=t?.trim(),en=e.providerSpecificData?.chatgptPlanType?.trim(),eo="codex"===e.provider?el&&"unknown"!==el.toLowerCase()?el:en:null,[ed,ec]=(0,i.useState)(!1),em=(0,K.kJ)(e);(0,i.useEffect)(()=>{let t=()=>{ec(!!(0,K.kJ)(e))};t();let s=em?setInterval(t,1e3):null;return()=>{s&&clearInterval(s)}},[em]);let eu="unavailable"!==e.testStatus||ed?e.testStatus:"active",ep=(es||ea)&&"unavailable"===e.testStatus&&function(e,t){if(401===e||403===e)return!0;if(!t||"string"!=typeof t)return!1;let s=t.toLowerCase();return s.includes("unauthorized")||s.includes("token")||s.includes("invalid api key")||s.includes("revoked")||s.includes("auth")||G(t)}(e.errorCode,e.lastError),ex=G(e.lastError)?"Auth expired — reconnect required":e.lastError,eh=()=>f?"queued"===f.state?"queued":"testing"===f.state?"testing":"success"===f.state?"success":"failed"===f.state?f.error?`failed: ${f.error}`:"failed":null:null;return(0,a.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===e.isActive?"opacity-60":""}`,children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,a.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,a.jsx)("button",{onClick:o,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,a.jsx)("button",{onClick:d,disabled:n,className:`p-0.5 rounded ${n?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:ea?"cookie":es?"lock":"key"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:ei}),er&&(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:er}),(0,a.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,a.jsx)(c.Ex,{variant:(0,L.g)(e.isActive,eu),size:"sm",dot:!0,children:!1===e.isActive?"disabled":eu||"Unknown"}),(0,a.jsx)(c.Ex,{variant:"default",size:"sm",children:es?"OAuth":ea?"Cookie":"API Key"}),eo&&"unknown"!==eo.toLowerCase()&&(0,a.jsx)(c.Ex,{variant:"primary",size:"sm",children:eo}),U&&(0,a.jsx)(c.Ex,{variant:Y,size:"sm",children:"Proxy"}),ed&&!1!==e.isActive&&(0,a.jsx)(J,{until:em}),e.lastError&&!1!==e.isActive&&(0,a.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:e.lastError,children:ex}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),(0,a.jsxs)("button",{type:"button",onClick:()=>E(e.id||"",R),title:"Copy connection ID — send it as the x-connection-id request header to pin requests to this account (falls back to other accounts when it is unavailable)",className:"flex items-center gap-0.5 rounded font-mono text-[11px] text-text-muted transition-colors hover:text-primary",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-xs",children:I===R?"check":"content_copy"}),I===R?"copied":`${(e.id||"").slice(0,8)}…`]}),w&&(0,a.jsx)(c.m_,{text:"Quota kept in reserve: requests move to the next account at this share",children:(0,a.jsx)(c.Ex,{variant:"default",size:"sm",icon:"savings",children:w})}),e.globalPriority&&(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]}),eh()&&(0,a.jsx)(c.Ex,{variant:f?"success"===f.state?"success":"failed"===f.state?"error":"testing"===f.state?"primary":"default":"default",size:"sm",children:eh()})]}),U&&(0,a.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:B,children:B}),Z&&(0,a.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:Z}),X&&(0,a.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:X,children:["no_proxy: ",X]})]})]})]}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,a.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(s||[]).length>0&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{ref:$,onClick:()=>{if(b)return void v(!1);let e=$.current?.getBoundingClientRect();if(!e)return void v(!0);let t=((s?.length||0)+1)*34+8,a=window.innerHeight-e.bottom,i=a<t&&e.top>a;P({position:"fixed",right:window.innerWidth-e.right,...i?{bottom:window.innerHeight-e.top+4,maxHeight:Math.max(e.top-8,120)}:{top:e.bottom+4,maxHeight:Math.max(a-8,120)}}),v(!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 ${U?"text-primary":"text-text-muted hover:text-primary"}`,disabled:k,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:k?"progress_activity":"lan"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),b&&(0,F.createPortal)((0,a.jsxs)("div",{ref:T,style:O,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,a.jsx)("button",{onClick:()=>ee("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!q?"text-primary font-medium":"text-text-main"}`,children:"None"}),(s||[]).map(e=>(0,a.jsx)("button",{onClick:()=>ee(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${q===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]}),document.body)]}),y&&(0,a.jsx)(c.m_,{text:"codex"===e.provider?y.on?"Fast mode ON — Codex requests on this account use the priority tier. Click to disable.":"Force fast mode — Codex requests on this account use the priority tier.":"Uses the provider's faster processing mode for this account at a higher token cost. Off by default.",children:(0,a.jsxs)("button",{type:"button",role:"switch","aria-label":"Fast mode","aria-checked":y.on,disabled:C,onClick:M,className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 disabled:opacity-50 ${y.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:C?"progress_activity":"speed"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Fast"})]})}),g&&(0,a.jsx)(c.m_,{text:V,children:(0,a.jsxs)("button",{onClick:g.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 ${g.isActive?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),ep&&h&&(0,a.jsxs)("button",{onClick:()=>h(e),className:"flex flex-col items-center rounded px-2 py-1 text-amber-600 hover:bg-amber-500/10 dark:text-amber-400 dark:hover:bg-amber-500/20 transition-colors",title:"Reconnect account",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"lock_reset"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight font-semibold",children:"Reconnect"})]}),g&&(0,a.jsx)(H.A,{connectionId:e.id,disabled:!1===e.isActive}),(0,a.jsxs)("button",{onClick:p,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,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,a.jsxs)("button",{onClick:x,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,a.jsx)(c.lM,{size:"sm",checked:e.isActive??!0,onChange:m,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}Q.propTypes={connection:E().shape({id:E().string,name:E().string,email:E().string,displayName:E().string,modelLockUntil:E().string,testStatus:E().string,isActive:E().bool,lastError:E().string,priority:E().number,globalPriority:E().number}).isRequired,plan:E().string,proxyPools:E().arrayOf(E().shape({id:E().string,name:E().string,proxyUrl:E().string,noProxy:E().string,isActive:E().bool})),isOAuth:E().bool.isRequired,isFirst:E().bool.isRequired,isLast:E().bool.isRequired,onMoveUp:E().func.isRequired,onMoveDown:E().func.isRequired,onToggleActive:E().func.isRequired,onUpdateProxy:E().func,onEdit:E().func.isRequired,onDelete:E().func.isRequired,onReconnect:E().func,oneByOneStatus:E().shape({state:E().string,error:E().string}),autoPing:E().shape({isActive:E().bool,provider:E().string,reactiveOn:E().bool,scheduleOn:E().bool,scheduleSummary:E().string,onConfigure:E().func}),fastMode:E().shape({on:E().bool,onToggle:E().func})};var V=s(9339);let Z=(0,V.createServerReference)("405b7b833b5fbb4a342041e03e42294fe2a97a6aca",V.callServer,void 0,V.findSourceMapURL,"exportProviderKeys");function X({isOpen:e,providerId:t,providerName:s,onClose:r}){let[l,n]=(0,i.useState)([]),[o,d]=(0,i.useState)(!1),[m,u]=(0,i.useState)(null);(0,i.useEffect)(()=>{if(!e)return;let s=!1;return(async()=>{d(!0),u(null);try{let e=await Z(t);s||n(e.connections||[])}catch{s||n([])}finally{s||d(!1)}})(),()=>{s=!0}},[e,t]);let p=async e=>{try{await navigator.clipboard.writeText(e.key),u(e.id),setTimeout(()=>u(t=>t===e.id?null:t),1500)}catch{}},x=async()=>{let e=l.filter(e=>e.key).map(e=>`${e.name}: ${e.key}`).join("\n");try{await navigator.clipboard.writeText(e),u("__all__"),setTimeout(()=>u(e=>"__all__"===e?null:e),1500)}catch{}},h=l.filter(e=>e.key);return(0,a.jsx)(c.aF,{isOpen:e,title:`Export Keys — ${s||t}`,onClose:r,children:(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[o&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Loading…"}),!o&&0===h.length&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"No keys stored for this provider."}),!o&&h.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-border-subtle bg-sidebar px-3 py-2",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"truncate text-xs text-text-muted",children:e.name}),(0,a.jsx)("p",{className:"break-all text-sm font-mono text-text-main",children:e.key})]}),(0,a.jsx)("button",{onClick:()=>p(e),title:"Copy key",className:`shrink-0 rounded p-1.5 hover:bg-black/5 dark:hover:bg-white/5 ${m===e.id?"text-green-500":"text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:m===e.id?"check":"content_copy"})})]},e.id)),!o&&h.length>0&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(c.$n,{size:"sm",icon:"__all__"===m?"check":"content_copy",onClick:x,children:"__all__"===m?"Copied":"Copy All"}),(0,a.jsx)(c.$n,{size:"sm",variant:"ghost",onClick:r,children:"Close"})]})]})})}let Y=`name1|sk-key1
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{9339:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={callServer:function(){return r.callServer},createServerReference:function(){return n.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var i in a)Object.defineProperty(t,i,{enumerable:!0,get:a[i]});let r=s(77304),l=s(4060),n=s(77197)},14558:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var a=s(95155),i=s(12115),r=s(97677);function l({connectionId:e,disabled:t=!1,onComplete:s}){let[n,o]=(0,i.useState)(!1),[d,c]=(0,i.useState)(null);async function m(){if(!n){if(d)return void c(null);o(!0);try{let t=await fetch("/api/wakeup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"ping",connectionId:e})}),a=await t.json();if(!t.ok)throw Error(a.error||"Ping failed.");c(a),s&&Promise.resolve(s()).catch(()=>{})}catch(e){c({status:"failed",message:e.message})}finally{o(!1)}}}let u=n?"Pinging…":d?`${d.message} Click to reset.`:"Ping now — sends a small request. Consumes quota; does not change Auto-Ping.",p=d?"succeeded"===d.status?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400":"text-text-muted hover:text-primary";return(0,a.jsx)(r.default,{text:u,children:(0,a.jsx)("button",{type:"button",onClick:m,disabled:n||t&&!d,"aria-label":u,"aria-busy":n,className:`flex h-8 w-8 items-center justify-center rounded-lg ${p} hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-50`,children:(0,a.jsx)("span",{"aria-hidden":"true",style:{fontSize:n?20:32},className:`material-symbols-outlined ${n?"animate-spin":""}`,children:n?"progress_activity":"play_arrow"})})})}},25871:(e,t,s)=>{"use strict";s.d(t,{G:()=>n,e:()=>d});var a=s(12115);let i=null,r=null,l="pricingChanged";function n(){i=null,window.dispatchEvent(new CustomEvent(l))}function o(){return i?Promise.resolve(i):r||(r=fetch("/api/pricing").then(async e=>{if(!e.ok)throw Error(`pricing ${e.status}`);return e.json()}).then(e=>i=e||{}).catch(()=>({})).finally(()=>{r=null}))}function d(){let[e,t]=(0,a.useState)(()=>i||{});return(0,a.useEffect)(()=>{let e=!0;o().then(s=>{e&&t(s)});let s=()=>{o().then(s=>{e&&t(s)})};return window.addEventListener(l,s),()=>{e=!1,window.removeEventListener(l,s)}},[]),{getPricing:(0,a.useCallback)((t,s)=>t&&s&&e[t]?.[s]||null,[e])}}},64827:(e,t,s)=>{"use strict";function a(e){if(!e)return null;let t=null,s=Date.now();for(let[a,i]of Object.entries(e)){if(!a.startsWith("modelLock_")||!i)continue;let e=new Date(i).getTime();e<=s||(!t||e<t)&&(t=e)}return t?new Date(t).toISOString():null}s.d(t,{kJ:()=>a}),s(10904)},85295:(e,t,s)=>{Promise.resolve().then(s.bind(s,86822))},86822:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>eC});var a=s(95155),i=s(12115),r=s(73321),l=s(98500),n=s.n(l),o=s(5772),d=s(8247),c=s(35497),m=s(88105),u=s(28777),p=s(57151),x=s(47224),h=s(40228),f=s(89523);let g=["none","low","medium","high"],y=["none","thinking"],b=["none","low","medium","high","max"],v=["none","low","medium","high","xhigh","max"],j={qoder:v,openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":v,"claude-budget":v,"gemini-level":["minimal","low","medium","high"],"gemini-budget":g,zai:y,qwen:g,kimi:b,opencode:b,deepseek:["none","high","max"],minimax:y,hunyuan:g,step:g,nous:g,meta:["minimal","low","medium","high","xhigh"],ollama:b},w=["none","minimal","low","medium","high","xhigh","max"],k=["none","low","medium","high","max"],N=[{pattern:"*gemini-4*",levels:["low","medium","high"]},{pattern:"*claude*4.6*",levels:k},{pattern:"*claude*4-6*",levels:k},{provider:"codex",pattern:"*gpt-6*",levels:w},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...w,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...w,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:w},{providers:["openai","codex"],pattern:"*gpt-5.6*",levels:["none","minimal","low","medium","high","xhigh","max","ultra"]},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{provider:"opencode",pattern:"*mimo*v2.6*",levels:["none","minimal","low","medium","high","xhigh","max"]},{pattern:"*mimo*v2.6*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"ollama",pattern:"*gpt-oss*",levels:["none","low","medium","high"]},{provider:"ollama-local",pattern:"*gpt-oss*",levels:["none","low","medium","high"]},{provider:"qoder",pattern:"*",levels:v},{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.1-flash-free*",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"]},{pattern:"*glm-5.3",levels:["low","high","max"]}];function C(e,t){if("kiro"===e&&null===function(e){if("string"!=typeof e)return null;let t=e.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(t))return"reasoning";if(!t.includes("claude"))return null;let s=function(e){if("string"!=typeof e)return null;let t=e.toLowerCase().replace(/-/g,".").match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);return t?{major:Number(t[1]),minor:void 0===t[2]?null:Number(t[2])}:null}(e);if(!s)return null;let{major:a,minor:i}=s;return a<4||4===a&&(null===i||i<=5||null!==i&&i>=1e3)?null:"output_config"}(t))return null;let s=(0,p.nl)(e,t);if(!s.reasoning)return null;let a=String(t||"").replace(/\([^()]+\)\s*$/,""),i="codex"===e?(0,f.SM)("cx").find(e=>e.id===a)?.thinkingLevels:null,r=N.find(s=>(!s.providers||!e||s.providers.includes(e))&&(!s.provider||s.provider===e)&&(0,x.gH)(s.pattern,t)),l=(e?h.xq[e]?.thinkingFormat:null)||s.thinkingFormat,n=i||s.thinkingLevels||r?.levels||j[l]||g;return!1===s.thinkingCanDisable&&(n=n.filter(e=>"none"!==e)),n}var S=s(11059),A=s(929),T=s(73006);let $=new Map;async function O(e,t){if(e?.type==="static")return e.models||[];if(!e?.url||!e?.type)return[];let s="nous"===t||e.url?.includes("nousresearch")?"nous":e.type,a=`${e.url}#${s}`,i=$.get(a);if(i&&Date.now()<i.expiresAt)return i.data;try{let t=new URLSearchParams({url:e.url,type:s}),i=await fetch(`/api/providers/suggested-models?${t}`);if(!i.ok)return[];let r=(await i.json()).data??[];return $.set(a,{data:r,expiresAt:Date.now()+6e5}),r}catch{return[]}}function P({customModels:e=[],modelAliases:t={},providerAlias:s,builtInModels:a=[],type:i="llm",includeLegacyAliases:r=!0}){let l=new Set(a.map(e=>e.id)),n=new Set,o=[];for(let t of e){if(!t?.id||t.providerAlias!==s)continue;let e=t?.kind||t?.type||"llm";if(i&&e!==i||l.has(t.id))continue;let a=`${s}/${t.id}`;n.has(a)||(n.add(a),o.push({id:t.id,name:t.name||t.id,fullModel:a,source:"custom",type:e}))}if(!r)return o;let d=`${s}/`;for(let[e,s]of Object.entries(t||{})){if("string"!=typeof s||!s.startsWith(d))continue;let t=s.slice(d.length);!t||l.has(t)||n.has(s)||(n.add(s),o.push({id:t,alias:e,fullModel:s,source:"legacyAlias",type:i||"llm"}))}return o}var I=s(14051),E=s.n(I),R=s(25871),M=s(93725);function D({model:e,fullModel:t,alias:s,copied:i,onCopy:r,testStatus:l,isCustom:n,isFree:o,onDeleteAlias:d,onTest:m,isTesting:u,onDisable:p,caps:x,thinkingSuffix:h}){let{getPricing:f}=(0,R.e)(),g=h?`${t}(${h})`:t,y=t.includes("/")?t.slice(0,t.indexOf("/")):null,b=(0,M.M4)(x,f(y,e.id)),v="ok"===l?"#22c55e":"error"===l?"#ef4444":"slow"===l||"rate_limited"===l?"#f59e0b":void 0;return(0,a.jsx)("div",{className:`group w-full sm:w-auto min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===l?"border-green-500/40":"error"===l?"border-red-500/40":"slow"===l||"rate_limited"===l?"border-amber-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base mt-0.5 sm:mt-0",style:v?{color:v}:void 0,children:"ok"===l?"check_circle":"error"===l?"cancel":"slow"===l||"rate_limited"===l?"warning":"smart_toy"}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,a.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:g}),(0,a.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[e.name&&(0,a.jsx)("span",{className:"break-all sm:truncate text-[9px] italic text-text-muted/70",children:e.name}),(0,a.jsx)(c.nh,{caps:x,colorOverride:"text-text-muted/70",size:12}),b&&(0,a.jsx)("span",{className:"truncate text-[9px] text-text-muted/70",children:b})]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:[m&&(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:m,disabled:u,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${u?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:u?{animation:"spin 1s linear infinite"}:void 0,children:u?"progress_activity":"science"})}),(0,a.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:u?"Testing...":"Test"})]}),(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:()=>r(g,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:i===`model-${e.id}`?"check":"content_copy"})}),(0,a.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:i===`model-${e.id}`?"Copied!":"Copy"})]}),n?(0,a.jsx)("button",{onClick:d,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,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):p?(0,a.jsx)("button",{onClick:p,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,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})]})})}function q({isOpen:e,onClose:t,connectionId:s,providerStorageAlias:r,existingIds:l,transformId:n,onImported:o}){let[d,m]=(0,i.useState)(!1),[u,p]=(0,i.useState)(""),[x,h]=(0,i.useState)(""),[f,g]=(0,i.useState)([]),[y,b]=(0,i.useState)(()=>new Set),[v,j]=(0,i.useState)(""),[w,k]=(0,i.useState)(!1),[N,C]=(0,i.useState)(null);(0,i.useEffect)(()=>{if(!e||!s)return;let t=!1;return m(!0),p(""),h(""),g([]),b(new Set),j(""),C(null),fetch(`/api/providers/${s}/models`,{cache:"no-store"}).then(async e=>({ok:e.ok,data:await e.json()})).then(({ok:e,data:s})=>{if(t)return;if(!e)return void p(s.error||"Failed to fetch models");let a=new Set,i=[];for(let e of s.models||[]){if(e?.kind&&!["llm","imageToText"].includes(e.kind))continue;let t=e?.id||e?.name||e?.model;"string"==typeof t&&t.trim()&&(n&&(t=n(t)),!t||a.has(t)||(a.add(t),i.push({id:t,name:e?.name&&e.name!==e.id&&e.name!==t?e.name:null})))}g(i),s.warning&&h(s.warning),0!==i.length||s.warning||h("Provider returned 0 models")}).catch(e=>{t||p(e.message||"Network error")}).finally(()=>{t||m(!1)}),()=>{t=!0}},[e,s,n]);let S=(0,i.useMemo)(()=>f.map(e=>({...e,added:l?.has(e.id)===!0})),[f,l]),A=(0,i.useMemo)(()=>{let e=v.trim().toLowerCase();return e?S.filter(t=>t.id.toLowerCase().includes(e)||(t.name||"").toLowerCase().includes(e)):S},[S,v]),T=A.filter(e=>!e.added),$=T.length>0&&T.every(e=>y.has(e.id)),O=async()=>{if(!w&&0!==y.size){k(!0),p("");try{let e=await fetch("/api/models/custom/bulk",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:r,type:"llm",ids:[...y]})}),t=await e.json();if(!e.ok)return void p(t.error||"Import failed");C(t),window.dispatchEvent(new CustomEvent("customModelChanged")),o?.()}catch(e){p(e.message||"Network error")}finally{k(!1)}}};return(0,a.jsx)(c.aF,{isOpen:e,title:"Import Models from Provider",onClose:t,children:(0,a.jsx)("div",{className:"flex flex-col gap-3",children:N?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-sm text-text-main",children:["Imported ",N.added," model",1===N.added?"":"s",N.skipped>0?`, ${N.skipped} already existed`:"","."]}),(0,a.jsx)(c.$n,{onClick:t,fullWidth:!0,children:"Done"})]}):(0,a.jsxs)(a.Fragment,{children:[u&&(0,a.jsx)("p",{className:"text-xs text-red-500 break-words",children:u}),x&&!u&&(0,a.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-400 break-words",children:x}),d?(0,a.jsxs)("p",{className:"text-sm text-text-muted py-6 text-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm align-middle mr-1",style:{animation:"spin 1s linear infinite"},children:"progress_activity"}),"Fetching models from provider..."]}):f.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"text",value:v,onChange:e=>j(e.target.value),placeholder:"Search models...",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,a.jsx)("input",{type:"checkbox",checked:$,onChange:()=>{b(e=>{let t=new Set(e);if($)for(let e of T)t.delete(e.id);else for(let e of T)t.add(e.id);return t})},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All (",T.length," available",A.length!==S.length?`, ${A.length} shown`:"",")"]}),(0,a.jsxs)("div",{className:"flex max-h-72 flex-col gap-1 overflow-y-auto custom-scrollbar pr-1",children:[A.map(e=>(0,a.jsxs)("label",{className:`flex items-center gap-2 rounded-lg border px-2.5 py-1.5 text-xs ${e.added?"border-border opacity-50":"border-border hover:border-primary/40 cursor-pointer"}`,children:[(0,a.jsx)("input",{type:"checkbox",checked:e.added||y.has(e.id),disabled:e.added,onChange:()=>{var t;return t=e.id,void b(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),(0,a.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono",children:e.id}),e.name&&(0,a.jsx)("span",{className:"truncate text-text-muted/70 italic",children:e.name}),e.added&&(0,a.jsx)("span",{className:"shrink-0 text-[10px] text-text-muted",children:"added"})]},e.id)),0===A.length&&(0,a.jsx)("p",{className:"py-4 text-center text-xs text-text-muted",children:"No models match the search"})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(c.$n,{onClick:O,fullWidth:!0,disabled:0===y.size||w,children:w?"Importing...":`Import Selected (${y.size})`}),(0,a.jsx)(c.$n,{onClick:t,variant:"ghost",fullWidth:!0,disabled:w,children:"Cancel"})]})]}),!d&&0===f.length&&!u&&(0,a.jsx)(c.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Close"})]})})})}function _({modelId:e,fullModel:t,copied:s,onCopy:i,onDeleteAlias:r,onTest:l,testStatus:n,isTesting:o}){let d="ok"===n?"#22c55e":"error"===n?"#ef4444":void 0;return(0,a.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===n?"border-green-500/50":"error"===n?"border-red-500/50":"border-border"} hover:bg-sidebar/50`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:d?{color:d}:void 0,children:"ok"===n?"check_circle":"error"===n?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,a.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:()=>i(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:s===`model-${e}`?"check":"content_copy"})}),(0,a.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:s===`model-${e}`?"Copied!":"Copy"})]}),l&&(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:l,disabled:o,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:o?{animation:"spin 1s linear infinite"}:void 0,children:o?"progress_activity":"science"})}),(0,a.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:o?"Testing...":"Test"})]})]})]}),(0,a.jsx)("button",{onClick:r,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function z({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:s,customModels:r,copied:l,onCopy:n,onDeleteAlias:o,onAddCustomModel:d,onDeleteCustomModel:m,connections:u,isAnthropic:p,onModelsChanged:x,importSupported:h=!1}){let[f,g]=(0,i.useState)(""),[y,b]=(0,i.useState)(!1),[v,j]=(0,i.useState)(!1),[w,k]=(0,i.useState)(null),[N,C]=(0,i.useState)({}),S=async t=>{if(!w){k(t);try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),a=await s.json();C(e=>({...e,[t]:a.ok?"ok":"error"}))}catch{C(e=>({...e,[t]:"error"}))}finally{k(null)}}},A=P({customModels:r,modelAliases:s,providerAlias:e,type:"llm"}),T=async()=>{if(!f.trim()||y)return;let e=f.trim();if(A.some(t=>t.id===e))return void alert("Model already exists for this provider.");b(!0);try{await d(e),g("")}catch(e){console.log("Error adding model:",e)}finally{b(!1)}},$=u.find(e=>!1!==e.isActive)?.id||null,O=!!$&&!0===h,I=new Set(A.map(e=>e.id));return(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",p?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,a.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,a.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,a.jsx)("input",{id:"new-compatible-model-input",type:"text",value:f,onChange:e=>g(e.target.value),onKeyDown:e=>"Enter"===e.key&&T(),placeholder:p?"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,a.jsx)(c.$n,{size:"sm",icon:"add",onClick:T,disabled:!f.trim()||y,children:y?"Adding...":"Add"}),(0,a.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"download",onClick:()=>j(!0),disabled:!O,children:"Import from /models"})]}),!O&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:$?"Set a Base URL on the active connection to enable importing models.":"Add a connection to enable importing models."}),A.length>0&&(0,a.jsx)("div",{className:"flex flex-col gap-3",children:A.map(({id:s,alias:i,source:r})=>(0,a.jsx)(_,{modelId:s,fullModel:`${t}/${s}`,copied:l,onCopy:n,onDeleteAlias:()=>"custom"===r?m(s):o(i),onTest:u.length>0?()=>S(s):void 0,testStatus:N[s],isTesting:w===s},`${r}-${e}/${s}`))}),(0,a.jsx)(q,{isOpen:v,onClose:()=>j(!1),connectionId:$,providerStorageAlias:e,existingIds:I,onImported:x})]})}function U({isOpen:e,onClose:t,providerId:s,providerAlias:r,connections:l,customModels:n,disabledModelIds:o,onSaved:d}){let[m,p]=(0,i.useState)([]),[x,h]=(0,i.useState)(()=>new Set),[f,g]=(0,i.useState)(""),[y,b]=(0,i.useState)(!0),[v,j]=(0,i.useState)(!1),[w,k]=(0,i.useState)(""),N=(0,i.useMemo)(()=>(l||[]).filter(e=>!1!==e.isActive&&e.id).map(e=>e.id),[l]);(0,i.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{let e=[];try{let t=await fetch(`/api/models/enabled?providerAlias=${encodeURIComponent(r)}`,{cache:"no-store"});t.ok&&(e=(await t.json()).ids||[])}catch{}let a=await Promise.all(N.map(async e=>{try{let t=await fetch(`/api/providers/${e}/models`,{cache:"no-store"});if(!t.ok)return[];let s=await t.json();return Array.isArray(s?.models)?s.models:[]}catch{return[]}}));if(t)return;let i=new Set,l=[],n=(e,t,s={})=>{let a=String(e??"").trim();!a||i.has(a)||(i.add(a),l.push({id:a,name:t||a,...s}))};for(let e of a)for(let t of e)n("string"==typeof t?t:t?.id,"string"==typeof t?t:t?.name||t?.id,{live:!0});for(let e of(0,u.KC)(s)||[]){let t=(0,u.CP)(e,"llm");t&&"llm"!==t||n(e.id,e.name)}for(let t of e)n(t,t,{stale:!0});let d=new Set(o||[]),c=e.length>0?e:l.filter(e=>!e.isCustom&&!d.has(e.id)).map(e=>e.id);p(l),h(new Set(c)),b(!1)})(),()=>{t=!0}},[e,s,r,N,o]);let C=(0,i.useMemo)(()=>(n||[]).filter(e=>e.providerAlias===r&&"llm"===(e.kind||e.type||"llm")).map(e=>({id:String(e.id).trim(),name:e.name||e.id})).filter(e=>e.id),[n,r]),S=(0,i.useMemo)(()=>{let e=f.trim().toLowerCase();return e?m.filter(t=>t.id.toLowerCase().includes(e)||t.name.toLowerCase().includes(e)):m},[m,f]),A=async()=>{j(!0),k("");try{let e=Array.from(x),s=await fetch("/api/models/enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:r,ids:e})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(e.error||`Failed to save (${s.status})`)}d?.(e),t()}catch(e){k(e?.message||"Failed to save visible models")}finally{j(!1)}};return(0,a.jsx)(c.aF,{isOpen:e,onClose:t,title:"Visible models",size:"lg",footer:null,children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 p-4",children:[(0,a.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border border-primary/20 bg-primary/8 px-2.5 py-2 text-xs text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-primary",style:{fontSize:"14px"},children:"info"}),(0,a.jsxs)("span",{children:["Only the checked models are exposed on ",(0,a.jsx)("code",{className:"font-mono",children:"/v1/models"}),". Leave everything unchecked to expose all of them. Custom models are always exposed."]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("div",{className:"relative flex-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-text-muted text-[16px]",children:"search"}),(0,a.jsx)("input",{type:"text",placeholder:"Search...",value:f,onChange:e=>g(e.target.value),className:"w-full rounded border border-border bg-surface py-1.5 pl-8 pr-3 text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"})]}),(0,a.jsx)(c.$n,{variant:"ghost",size:"sm",onClick:()=>h(new Set(m.map(e=>e.id))),disabled:y||v,children:"Select all"}),(0,a.jsx)(c.$n,{variant:"ghost",size:"sm",onClick:()=>h(new Set),disabled:y||v,children:"Clear"})]}),w&&(0,a.jsx)("p",{className:"text-xs text-red-500 break-words",children:w}),y?(0,a.jsx)("p",{className:"py-6 text-center text-xs text-text-muted",children:"Loading models…"}):(0,a.jsxs)("div",{className:"max-h-[360px] overflow-y-auto rounded-lg border border-border",children:[S.map(e=>(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 border-b border-border/50 px-3 py-2 last:border-b-0 hover:bg-sidebar/50",children:[(0,a.jsx)("input",{type:"checkbox",checked:x.has(e.id),onChange:()=>{var t;return t=e.id,void h(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"size-3.5 accent-primary cursor-pointer"}),(0,a.jsx)("span",{className:"truncate text-xs text-text-main",children:e.name}),(0,a.jsx)("code",{className:"truncate font-mono text-[11px] text-text-muted",children:e.id}),e.live&&!e.stale&&(0,a.jsx)("span",{className:"ml-auto shrink-0 rounded bg-primary/10 px-1.5 py-0.5 text-[10px] text-primary",children:"live"}),e.stale&&(0,a.jsx)("span",{className:"ml-auto shrink-0 rounded bg-amber-500/10 px-1.5 py-0.5 text-[10px] text-amber-600 dark:text-amber-400",children:"not in catalog"})]},e.id)),0===S.length&&(0,a.jsx)("p",{className:"py-6 text-center text-xs text-text-muted",children:"No models found"})]}),C.length>0&&(0,a.jsxs)("div",{className:"rounded-lg border border-border px-3 py-2",children:[(0,a.jsx)("p",{className:"mb-1 text-[11px] text-text-muted",children:"Always exposed (custom models)"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:C.map(e=>(0,a.jsx)("span",{className:"rounded bg-sidebar px-1.5 py-0.5 font-mono text-[11px] text-text-muted",children:e.id},e.id))})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"text-[11px] text-text-muted",children:0===x.size?"Nothing selected — all models stay visible.":`${x.size} of ${m.length} selected`}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(c.$n,{variant:"ghost",size:"sm",onClick:t,disabled:v,children:"Cancel"}),(0,a.jsx)(c.$n,{variant:"primary",size:"sm",onClick:A,loading:v,disabled:y,children:"Save"})]})]})]})})}D.propTypes={model:E().shape({id:E().string.isRequired}).isRequired,fullModel:E().string.isRequired,alias:E().string,copied:E().string,onCopy:E().func.isRequired,testStatus:E().oneOf(["ok","error","slow","rate_limited","not_tested"]),isCustom:E().bool,isFree:E().bool,onDeleteAlias:E().func,onTest:E().func,isTesting:E().bool,onDisable:E().func,caps:E().object,thinkingSuffix:E().string},E().string.isRequired,E().string.isRequired,E().string,E().func.isRequired,E().func.isRequired,E().func,E().oneOf(["ok","error"]),E().bool,E().string.isRequired,E().object.isRequired,E().arrayOf(E().object),E().string,E().func.isRequired,E().func.isRequired,E().func.isRequired,E().func.isRequired,q.propTypes={isOpen:E().bool.isRequired,onClose:E().func.isRequired,connectionId:E().string,providerStorageAlias:E().string.isRequired,existingIds:E().instanceOf(Set),transformId:E().func,onImported:E().func},_.propTypes={modelId:E().string.isRequired,fullModel:E().string.isRequired,copied:E().string,onCopy:E().func.isRequired,onDeleteAlias:E().func.isRequired,onTest:E().func,testStatus:E().string,isTesting:E().bool},z.propTypes={providerStorageAlias:E().string.isRequired,providerDisplayAlias:E().string.isRequired,modelAliases:E().object.isRequired,customModels:E().arrayOf(E().object),copied:E().string,onCopy:E().func.isRequired,onDeleteAlias:E().func.isRequired,onAddCustomModel:E().func.isRequired,onDeleteCustomModel:E().func.isRequired,connections:E().arrayOf(E().shape({id:E().string,isActive:E().bool})).isRequired,isAnthropic:E().bool,onModelsChanged:E().func,importSupported:E().bool},U.propTypes={isOpen:E().bool.isRequired,onClose:E().func.isRequired,providerId:E().string.isRequired,providerAlias:E().string.isRequired,connections:E().arrayOf(E().object),customModels:E().arrayOf(E().object),disabledModelIds:E().arrayOf(E().string),onSaved:E().func};var F=s(47650),L=s(70217);function J({until:e}){let[t,s]=(0,i.useState)("");return((0,i.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void s("");let a=Math.floor(t/1e3);if(a<60)s(`${a}s`);else if(a<3600)s(`${Math.floor(a/60)}m ${a%60}s`);else{let e=Math.floor(a/3600),t=Math.floor(a%3600/60);s(`${e}h ${t}m`)}};t();let a=setInterval(t,1e3);return()=>clearInterval(a)},[e]),t)?(0,a.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}J.propTypes={until:E().string.isRequired};var K=s(64827),H=s(14558),W=s(7462);let B=["invalid_grant","refresh_token_expired","reauth_required","unrecoverable_refresh_error","refresh_token_reused","refresh_token_invalidated"];function G(e){if(!e||"string"!=typeof e)return!1;let t=e.toLowerCase();return B.some(e=>t.includes(e))}function Q({connection:e,plan:t=null,proxyPools:s,isOAuth:r,isFirst:l,isLast:n,onMoveUp:o,onMoveDown:d,onToggleActive:m,onUpdateProxy:u,onEdit:p,onDelete:x,onReconnect:h=null,oneByOneStatus:f=null,autoPing:g=null,fastMode:y=null}){let[b,v]=(0,i.useState)(!1),j=(0,W.gr)(e.providerSpecificData?.quotaReserve),w=W.vP.filter(e=>j[e.id]).map(e=>`${e.label} ${j[e.id]}%`).join(" \xb7 "),[k,N]=(0,i.useState)(!1),[C,A]=(0,i.useState)(!1),T=(0,i.useRef)(null),$=(0,i.useRef)(null),[O,P]=(0,i.useState)(null),{copied:I,copy:E}=(0,S.C)(),R=`conn-id-${e.id}`,M=async()=>{if(y?.onToggle&&!C){A(!0);try{await y.onToggle(!y.on)}catch(e){console.error("Failed to toggle fast mode:",e)}finally{A(!1)}}},D=new Map((s||[]).map(e=>[e.id,e])),q=e.providerSpecificData?.proxyPoolId||null,_=q?D.get(q):null,z=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,U=!!q||z,B=_?`Pool: ${_.name}`:q?`Pool: ${q} (inactive/missing)`:z?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",V=(()=>{if(!g)return"";let e=[];return(g.reactiveOn&&e.push("On reset"),g.scheduleOn&&e.push(`Scheduled (${g.scheduleSummary||"active"})`),e.length>0)?`Auto-ping active: ${e.join(" + ")}. Click to configure.`:"codex"===g.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."})(),Z="";if(_?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=_?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);Z=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{Z=t}}let X=_?.noProxy||e.providerSpecificData?.connectionNoProxy||"",Y="default";_?.isActive===!0?Y="success":(q||z)&&(Y="error"),(0,i.useEffect)(()=>{if(!b)return;let e=e=>{T.current?.contains(e.target)||$.current?.contains(e.target)||v(!1)},t=()=>v(!1);return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("scroll",t,!0),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("scroll",t,!0)}},[b]);let ee=async e=>{N(!0);try{await u("__none__"===e?null:e)}finally{N(!1),v(!1)}},et=e.authType||(r?"oauth":"apikey"),es="oauth"===et,ea="cookie"===et,ei=e.name?.trim()||e.email?.trim()||e.displayName?.trim()||(es?"OAuth Account":ea?"Cookie Account":"API Key"),er=e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null,el=t?.trim(),en=e.providerSpecificData?.chatgptPlanType?.trim(),eo="codex"===e.provider?el&&"unknown"!==el.toLowerCase()?el:en:null,[ed,ec]=(0,i.useState)(!1),em=(0,K.kJ)(e);(0,i.useEffect)(()=>{let t=()=>{ec(!!(0,K.kJ)(e))};t();let s=em?setInterval(t,1e3):null;return()=>{s&&clearInterval(s)}},[em]);let eu="unavailable"!==e.testStatus||ed?e.testStatus:"active",ep=(es||ea)&&"unavailable"===e.testStatus&&function(e,t){if(401===e||403===e)return!0;if(!t||"string"!=typeof t)return!1;let s=t.toLowerCase();return s.includes("unauthorized")||s.includes("token")||s.includes("invalid api key")||s.includes("revoked")||s.includes("auth")||G(t)}(e.errorCode,e.lastError),ex=G(e.lastError)?"Auth expired — reconnect required":e.lastError,eh=()=>f?"queued"===f.state?"queued":"testing"===f.state?"testing":"success"===f.state?"success":"failed"===f.state?f.error?`failed: ${f.error}`:"failed":null:null;return(0,a.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===e.isActive?"opacity-60":""}`,children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,a.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,a.jsx)("button",{onClick:o,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,a.jsx)("button",{onClick:d,disabled:n,className:`p-0.5 rounded ${n?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:ea?"cookie":es?"lock":"key"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:ei}),er&&(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:er}),(0,a.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,a.jsx)(c.Ex,{variant:(0,L.g)(e.isActive,eu),size:"sm",dot:!0,children:!1===e.isActive?"disabled":eu||"Unknown"}),(0,a.jsx)(c.Ex,{variant:"default",size:"sm",children:es?"OAuth":ea?"Cookie":"API Key"}),eo&&"unknown"!==eo.toLowerCase()&&(0,a.jsx)(c.Ex,{variant:"primary",size:"sm",children:eo}),U&&(0,a.jsx)(c.Ex,{variant:Y,size:"sm",children:"Proxy"}),ed&&!1!==e.isActive&&(0,a.jsx)(J,{until:em}),e.lastError&&!1!==e.isActive&&(!e.lastErrorModel||ed||"active"!==eu)&&(0,a.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:e.lastError,children:e.lastErrorModel?`[${e.lastErrorModel}] ${ex}`:ex}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),(0,a.jsxs)("button",{type:"button",onClick:()=>E(e.id||"",R),title:"Copy connection ID — send it as the x-connection-id request header to pin requests to this account (falls back to other accounts when it is unavailable)",className:"flex items-center gap-0.5 rounded font-mono text-[11px] text-text-muted transition-colors hover:text-primary",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-xs",children:I===R?"check":"content_copy"}),I===R?"copied":`${(e.id||"").slice(0,8)}…`]}),w&&(0,a.jsx)(c.m_,{text:"Quota kept in reserve: requests move to the next account at this share",children:(0,a.jsx)(c.Ex,{variant:"default",size:"sm",icon:"savings",children:w})}),e.globalPriority&&(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]}),eh()&&(0,a.jsx)(c.Ex,{variant:f?"success"===f.state?"success":"failed"===f.state?"error":"testing"===f.state?"primary":"default":"default",size:"sm",children:eh()})]}),U&&(0,a.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:B,children:B}),Z&&(0,a.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:Z}),X&&(0,a.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:X,children:["no_proxy: ",X]})]})]})]}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,a.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(s||[]).length>0&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{ref:$,onClick:()=>{if(b)return void v(!1);let e=$.current?.getBoundingClientRect();if(!e)return void v(!0);let t=((s?.length||0)+1)*34+8,a=window.innerHeight-e.bottom,i=a<t&&e.top>a;P({position:"fixed",right:window.innerWidth-e.right,...i?{bottom:window.innerHeight-e.top+4,maxHeight:Math.max(e.top-8,120)}:{top:e.bottom+4,maxHeight:Math.max(a-8,120)}}),v(!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 ${U?"text-primary":"text-text-muted hover:text-primary"}`,disabled:k,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:k?"progress_activity":"lan"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),b&&(0,F.createPortal)((0,a.jsxs)("div",{ref:T,style:O,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,a.jsx)("button",{onClick:()=>ee("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!q?"text-primary font-medium":"text-text-main"}`,children:"None"}),(s||[]).map(e=>(0,a.jsx)("button",{onClick:()=>ee(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${q===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]}),document.body)]}),y&&(0,a.jsx)(c.m_,{text:"codex"===e.provider?y.on?"Fast mode ON — Codex requests on this account use the priority tier. Click to disable.":"Force fast mode — Codex requests on this account use the priority tier.":"Uses the provider's faster processing mode for this account at a higher token cost. Off by default.",children:(0,a.jsxs)("button",{type:"button",role:"switch","aria-label":"Fast mode","aria-checked":y.on,disabled:C,onClick:M,className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 disabled:opacity-50 ${y.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:C?"progress_activity":"speed"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Fast"})]})}),g&&(0,a.jsx)(c.m_,{text:V,children:(0,a.jsxs)("button",{onClick:g.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 ${g.isActive?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),ep&&h&&(0,a.jsxs)("button",{onClick:()=>h(e),className:"flex flex-col items-center rounded px-2 py-1 text-amber-600 hover:bg-amber-500/10 dark:text-amber-400 dark:hover:bg-amber-500/20 transition-colors",title:"Reconnect account",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"lock_reset"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight font-semibold",children:"Reconnect"})]}),g&&(0,a.jsx)(H.A,{connectionId:e.id,disabled:!1===e.isActive}),(0,a.jsxs)("button",{onClick:p,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,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,a.jsxs)("button",{onClick:x,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,a.jsx)(c.lM,{size:"sm",checked:e.isActive??!0,onChange:m,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}Q.propTypes={connection:E().shape({id:E().string,name:E().string,email:E().string,displayName:E().string,modelLockUntil:E().string,testStatus:E().string,isActive:E().bool,lastError:E().string,priority:E().number,globalPriority:E().number}).isRequired,plan:E().string,proxyPools:E().arrayOf(E().shape({id:E().string,name:E().string,proxyUrl:E().string,noProxy:E().string,isActive:E().bool})),isOAuth:E().bool.isRequired,isFirst:E().bool.isRequired,isLast:E().bool.isRequired,onMoveUp:E().func.isRequired,onMoveDown:E().func.isRequired,onToggleActive:E().func.isRequired,onUpdateProxy:E().func,onEdit:E().func.isRequired,onDelete:E().func.isRequired,onReconnect:E().func,oneByOneStatus:E().shape({state:E().string,error:E().string}),autoPing:E().shape({isActive:E().bool,provider:E().string,reactiveOn:E().bool,scheduleOn:E().bool,scheduleSummary:E().string,onConfigure:E().func}),fastMode:E().shape({on:E().bool,onToggle:E().func})};var V=s(9339);let Z=(0,V.createServerReference)("405b7b833b5fbb4a342041e03e42294fe2a97a6aca",V.callServer,void 0,V.findSourceMapURL,"exportProviderKeys");function X({isOpen:e,providerId:t,providerName:s,onClose:r}){let[l,n]=(0,i.useState)([]),[o,d]=(0,i.useState)(!1),[m,u]=(0,i.useState)(null);(0,i.useEffect)(()=>{if(!e)return;let s=!1;return(async()=>{d(!0),u(null);try{let e=await Z(t);s||n(e.connections||[])}catch{s||n([])}finally{s||d(!1)}})(),()=>{s=!0}},[e,t]);let p=async e=>{try{await navigator.clipboard.writeText(e.key),u(e.id),setTimeout(()=>u(t=>t===e.id?null:t),1500)}catch{}},x=async()=>{let e=l.filter(e=>e.key).map(e=>`${e.name}: ${e.key}`).join("\n");try{await navigator.clipboard.writeText(e),u("__all__"),setTimeout(()=>u(e=>"__all__"===e?null:e),1500)}catch{}},h=l.filter(e=>e.key);return(0,a.jsx)(c.aF,{isOpen:e,title:`Export Keys — ${s||t}`,onClose:r,children:(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[o&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Loading…"}),!o&&0===h.length&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"No keys stored for this provider."}),!o&&h.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-border-subtle bg-sidebar px-3 py-2",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"truncate text-xs text-text-muted",children:e.name}),(0,a.jsx)("p",{className:"break-all text-sm font-mono text-text-main",children:e.key})]}),(0,a.jsx)("button",{onClick:()=>p(e),title:"Copy key",className:`shrink-0 rounded p-1.5 hover:bg-black/5 dark:hover:bg-white/5 ${m===e.id?"text-green-500":"text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:m===e.id?"check":"content_copy"})})]},e.id)),!o&&h.length>0&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(c.$n,{size:"sm",icon:"__all__"===m?"check":"content_copy",onClick:x,children:"__all__"===m?"Copied":"Copy All"}),(0,a.jsx)(c.$n,{size:"sm",variant:"ghost",onClick:r,children:"Close"})]})]})})}let Y=`name1|sk-key1
|
|
2
2
|
name2|sk-key2
|
|
3
3
|
sk-key-only-auto-named`,ee="__none__",et=()=>({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:ee,baseUrl:"",ollamaHostUrl:""}),es=()=>({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""});function ea({isOpen:e,provider:t,providerName:s,isCompatible:r,isAnthropic:l,providerNode:n,authType:o,authHint:d,website:u,proxyPools:p,error:x,existingNames:h,onSave:f,onBulkDone:g,onClose:y}){let b="ollama-local"===t,v="cookie"===o,j="xai"===t&&!v,w=v?"Cookie Value":"qoder"===t||"qoder-cn"===t?"Personal Access Token (PAT)":"API Key",k=m.Q2?.[t]?.baseUrlField||null,N="azure"===t,C="cloudflare-ai"===t,S="vertex"===t||"vertex-partner"===t,A="bedrock"===t,T=m.Q2?.[t]?.apiKeyOptionalWith||null,$=m.Q2?.[t]?.regions||null,O=m.Q2?.[t]?.defaultRegion||$?.[0]?.id||"",[P,I]=(0,i.useState)(et),[E,R]=(0,i.useState)(es),[M,D]=(0,i.useState)({accountId:""}),[q,_]=(0,i.useState)({location:"global",reasoningEffort:"high"}),[z,U]=(0,i.useState)({profile:"",region:"",accessKeyId:"",sessionToken:""}),[F,L]=(0,i.useState)(O),[J,K]=(0,i.useState)(!1),[H,W]=(0,i.useState)(null),[B,G]=(0,i.useState)(!1),Q=C?`name1|sk-key1|acc123456
|
|
4
4
|
name2|sk-key2|def789012
|
package/app/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# v0.6.28 (2026-10-25)
|
|
2
|
+
|
|
3
|
+
## Antigravity Multi-Account Argon Routing & 404 Spillover Isolation
|
|
4
|
+
- **Multi-Account Model Lock & Fallback Isolation**:
|
|
5
|
+
- **Argon Quota Pre-Filter**: Isolated Argon model routing by pre-filtering connections using their live quota snapshot; accounts without Argon entitlement are excluded upfront, preventing 404 spillover and error pollution on non-Argon accounts.
|
|
6
|
+
- **Model-Level 404 Isolation & 24h Lock**: Model-scoped 404 errors now lock only the targeted model for 24 hours while keeping the overall connection `testStatus: "active"`, preventing healthy accounts from turning red on the dashboard.
|
|
7
|
+
- **Concurrency Window Tuning**: Reduced `isRecentlySelected` debounce from 5000ms to 1500ms to prevent premature spillover to non-Argon accounts during rapid agent turns.
|
|
8
|
+
- **Dashboard Error Scoping**: Suppressed stale model-scoped errors in `ConnectionRow` when the connection is active and not cooling down.
|
|
9
|
+
- **Security & Stability Invariant Enforcement**:
|
|
10
|
+
- Strictly maintained default port `20126` and EzRouter branding (`@rabbi696/ezrouter`, `ezrouter-app`, `sk_ezrouter`, `~/.ezrouter`, `https://ezrouter.local`, `x-ez-real-ip`).
|
|
11
|
+
|
|
1
12
|
# v0.6.27 (2026-10-25)
|
|
2
13
|
|
|
3
14
|
## Antigravity Quota Usage & Multi-Account Routing Precision
|
|
@@ -5,8 +16,6 @@
|
|
|
5
16
|
- Added Gemini 4 Argon tiered models (`gemini-4-argon`, `gemini-4-argon-high`, `gemini-4-argon-medium`, `gemini-4-argon-low`) to `importantModels` in `getAntigravityUsage`, enabling live quota usage parsing directly from `fetchAvailableModels` in addition to weekly quota summaries.
|
|
6
17
|
- Enhanced session quota reconciliation in `open-sse/services/usage/google.js`: isolated Argon models (`argonModels`) from standard Gemini models to prevent quota misattribution on `gemini_session`, and dynamically synchronized `argon_session` (5h window) when all Argon model tiers are exhausted.
|
|
7
18
|
- Added tier alias quota resolution for `gemini-4-argon-low` in `src/sse/services/antigravityQuota.js`.
|
|
8
|
-
- **Multi-Account Model Lock & Fallback Invariant**:
|
|
9
|
-
- Verified and ensured smooth per-model fallback (`buildModelLockUpdate`) across multi-account pools: if an individual Antigravity account lacks Argon access, EzRouter isolates and temporarily locks only the Argon model on that specific account while other models remain active, seamlessly routing traffic to the next account in the pool without surfacing errors to clients.
|
|
10
19
|
- **Security & Stability Invariant Enforcement**:
|
|
11
20
|
- Strictly maintained default port `20126` and EzRouter branding (`@rabbi696/ezrouter`, `ezrouter-app`, `sk_ezrouter`, `~/.ezrouter`, `https://ezrouter.local`, `x-ez-real-ip`).
|
|
12
21
|
|
package/app/package.json
CHANGED
package/app/public/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# v0.6.28 (2026-10-25)
|
|
2
|
+
|
|
3
|
+
## Antigravity Multi-Account Argon Routing & 404 Spillover Isolation
|
|
4
|
+
- **Multi-Account Model Lock & Fallback Isolation**:
|
|
5
|
+
- **Argon Quota Pre-Filter**: Isolated Argon model routing by pre-filtering connections using their live quota snapshot; accounts without Argon entitlement are excluded upfront, preventing 404 spillover and error pollution on non-Argon accounts.
|
|
6
|
+
- **Model-Level 404 Isolation & 24h Lock**: Model-scoped 404 errors now lock only the targeted model for 24 hours while keeping the overall connection `testStatus: "active"`, preventing healthy accounts from turning red on the dashboard.
|
|
7
|
+
- **Concurrency Window Tuning**: Reduced `isRecentlySelected` debounce from 5000ms to 1500ms to prevent premature spillover to non-Argon accounts during rapid agent turns.
|
|
8
|
+
- **Dashboard Error Scoping**: Suppressed stale model-scoped errors in `ConnectionRow` when the connection is active and not cooling down.
|
|
9
|
+
- **Security & Stability Invariant Enforcement**:
|
|
10
|
+
- Strictly maintained default port `20126` and EzRouter branding (`@rabbi696/ezrouter`, `ezrouter-app`, `sk_ezrouter`, `~/.ezrouter`, `https://ezrouter.local`, `x-ez-real-ip`).
|
|
11
|
+
|
|
1
12
|
# v0.6.27 (2026-10-25)
|
|
2
13
|
|
|
3
14
|
## Antigravity Quota Usage & Multi-Account Routing Precision
|
|
@@ -5,8 +16,6 @@
|
|
|
5
16
|
- Added Gemini 4 Argon tiered models (`gemini-4-argon`, `gemini-4-argon-high`, `gemini-4-argon-medium`, `gemini-4-argon-low`) to `importantModels` in `getAntigravityUsage`, enabling live quota usage parsing directly from `fetchAvailableModels` in addition to weekly quota summaries.
|
|
6
17
|
- Enhanced session quota reconciliation in `open-sse/services/usage/google.js`: isolated Argon models (`argonModels`) from standard Gemini models to prevent quota misattribution on `gemini_session`, and dynamically synchronized `argon_session` (5h window) when all Argon model tiers are exhausted.
|
|
7
18
|
- Added tier alias quota resolution for `gemini-4-argon-low` in `src/sse/services/antigravityQuota.js`.
|
|
8
|
-
- **Multi-Account Model Lock & Fallback Invariant**:
|
|
9
|
-
- Verified and ensured smooth per-model fallback (`buildModelLockUpdate`) across multi-account pools: if an individual Antigravity account lacks Argon access, EzRouter isolates and temporarily locks only the Argon model on that specific account while other models remain active, seamlessly routing traffic to the next account in the pool without surfacing errors to clients.
|
|
10
19
|
- **Security & Stability Invariant Enforcement**:
|
|
11
20
|
- Strictly maintained default port `20126` and EzRouter branding (`@rabbi696/ezrouter`, `ezrouter-app`, `sk_ezrouter`, `~/.ezrouter`, `https://ezrouter.local`, `x-ez-real-ip`).
|
|
12
21
|
|
package/package.json
CHANGED
|
File without changes
|
/package/app/.next-cli-build/static/{QraJFuTUjRVVcGfufFpWk → BBHPCyd1tb1Fl4SRcejMy}/_ssgManifest.js
RENAMED
|
File without changes
|