@rabbi696/ezrouter 0.6.29 → 0.6.30
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 +8 -8
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +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.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +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.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page.js.nft.json +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.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +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.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +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.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +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.js +6 -6
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page.js.nft.json +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.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +26 -26
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +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.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js.nft.json +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.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +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/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/ha/resolve/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/ha/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/refresh/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/provider-order/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/provider-order/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/wakeup/route.js +1 -1
- package/app/.next-cli-build/server/app/api/wakeup/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +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.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +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/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +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.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +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.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +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/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +8 -8
- package/app/.next-cli-build/server/chunks/1253.js +1 -1
- package/app/.next-cli-build/server/chunks/1708.js +2 -2
- package/app/.next-cli-build/server/chunks/1847.js +1 -1
- package/app/.next-cli-build/server/chunks/1923.js +1 -1
- package/app/.next-cli-build/server/chunks/2072.js +15 -15
- package/app/.next-cli-build/server/chunks/2269.js +1 -1
- package/app/.next-cli-build/server/chunks/2364.js +1 -1
- package/app/.next-cli-build/server/chunks/2791.js +1 -1
- package/app/.next-cli-build/server/chunks/2898.js +1 -1
- package/app/.next-cli-build/server/chunks/2937.js +1 -1
- package/app/.next-cli-build/server/chunks/321.js +1 -1
- package/app/.next-cli-build/server/chunks/322.js +1 -0
- package/app/.next-cli-build/server/chunks/3378.js +1 -0
- package/app/.next-cli-build/server/chunks/3428.js +2 -2
- package/app/.next-cli-build/server/chunks/3576.js +1 -0
- package/app/.next-cli-build/server/chunks/369.js +24 -24
- package/app/.next-cli-build/server/chunks/37.js +1 -0
- package/app/.next-cli-build/server/chunks/412.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4646.js +1 -1
- package/app/.next-cli-build/server/chunks/5172.js +1 -0
- package/app/.next-cli-build/server/chunks/5461.js +1 -1
- package/app/.next-cli-build/server/chunks/5578.js +1 -0
- package/app/.next-cli-build/server/chunks/5703.js +1 -1
- package/app/.next-cli-build/server/chunks/6038.js +1 -1
- package/app/.next-cli-build/server/chunks/615.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/6401.js +1 -1
- package/app/.next-cli-build/server/chunks/6723.js +2 -2
- package/app/.next-cli-build/server/chunks/7302.js +4 -4
- package/app/.next-cli-build/server/chunks/7699.js +2 -2
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/7775.js +1 -1
- package/app/.next-cli-build/server/chunks/7811.js +1 -1
- package/app/.next-cli-build/server/chunks/8032.js +1 -0
- package/app/.next-cli-build/server/chunks/8129.js +1 -1
- package/app/.next-cli-build/server/chunks/8238.js +1 -1
- package/app/.next-cli-build/server/chunks/8243.js +2 -2
- package/app/.next-cli-build/server/chunks/8391.js +1 -1
- package/app/.next-cli-build/server/chunks/8595.js +1 -0
- package/app/.next-cli-build/server/chunks/869.js +1 -0
- package/app/.next-cli-build/server/chunks/8881.js +1 -1
- package/app/.next-cli-build/server/chunks/9278.js +1 -0
- package/app/.next-cli-build/server/chunks/9303.js +1 -1
- package/app/.next-cli-build/server/chunks/9485.js +1 -1
- package/app/.next-cli-build/server/chunks/9726.js +1 -1
- package/app/.next-cli-build/server/chunks/9761.js +2 -2
- package/app/.next-cli-build/server/chunks/9898.js +2 -2
- package/app/.next-cli-build/server/chunks/9900.js +15 -15
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +4 -4
- 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-9ec58cb59d5ecf7b.js +1 -0
- package/app/.next-cli-build/static/chunks/{5497-6d8e5deee33dd8c2.js → 5497-415a2bbd06f5cf8e.js} +1 -1
- package/app/.next-cli-build/static/chunks/8105-32d90d29662365cc.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e5303063878dbfe5.js +93 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c571f1962363d85a.js +27 -0
- package/app/CHANGELOG.md +24 -0
- package/app/package.json +1 -1
- package/app/public/CHANGELOG.md +24 -0
- package/app/public/providers/nace.png +0 -0
- package/package.json +1 -1
- package/app/.next-cli-build/server/chunks/4370.js +0 -1
- package/app/.next-cli-build/server/chunks/447.js +0 -1
- package/app/.next-cli-build/server/chunks/4757.js +0 -1
- package/app/.next-cli-build/server/chunks/5749.js +0 -1
- package/app/.next-cli-build/server/chunks/5752.js +0 -1
- package/app/.next-cli-build/server/chunks/6587.js +0 -1
- package/app/.next-cli-build/server/chunks/6644.js +0 -1
- package/app/.next-cli-build/server/chunks/9296.js +0 -1
- package/app/.next-cli-build/server/chunks/9476.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-88eef55748a0ed6d.js +0 -1
- package/app/.next-cli-build/static/chunks/8105-7223feec2e3f1a09.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-b12366cd7a47c746.js +0 -93
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-04e7788a14f993ed.js +0 -27
- /package/app/.next-cli-build/static/{yb9jsXtBeHMoPmMsOqYn_ → mFI4SG1R1XmhR9CNfZvPv}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{yb9jsXtBeHMoPmMsOqYn_ → mFI4SG1R1XmhR9CNfZvPv}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=2269,exports.ids=[2269],exports.modules={92269:(a,b,c)=>{c.d(b,{PROVIDER_PRICING:()=>g,calculateCostFromTokens:()=>l,getPricingForModel:()=>j});let d=["cline-free/"],e={input:0,output:0,cached:0,reasoning:0,cache_creation:0},f={"claude-opus-4-6":{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25},"claude-opus-4-5-20251101":{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25},"claude-sonnet-4-6":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75},"claude-sonnet-4-5-20250929":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75},"claude-haiku-4-5-20251001":{input:1,output:5,cached:.1,reasoning:5,cache_creation:1.25},"claude-sonnet-4-20250514":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4-20250514":{input:15,output:25,cached:7.5,reasoning:112.5,cache_creation:15},"claude-3-5-sonnet-20241022":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4.5":{input:.5,output:2.5,cached:.05,reasoning:3.75,cache_creation:.5},"claude-opus-4.1":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.5":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.6":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-sonnet-4":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-sonnet-4.5":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-sonnet-4.6":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-opus-4-5-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4-6-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-5-5-thinking":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-high":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-medium":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-low":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-fable-5":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.5},"claude-sonnet-5-5":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-thinking":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-high":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-medium":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-low":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"gpt-3.5-turbo":{input:.5,output:1.5,cached:.25,reasoning:2.25,cache_creation:.5},"gpt-4":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4-turbo":{input:10,output:30,cached:5,reasoning:45,cache_creation:10},"gpt-4o":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15},"gpt-4.1":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-5":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5-mini":{input:.25,output:2,cached:.125,reasoning:2,cache_creation:.25},"gpt-5-codex":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1-codex":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1-codex-mini":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"gpt-5.1-codex-mini-high":{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"gpt-5.1-codex-max":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-5.2":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.2-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.3-codex-spark":{input:3,output:12,cached:.3,reasoning:12,cache_creation:3},"gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5,long_context:{threshold:272e3,input:5,output:22.5,cached:.5,reasoning:22.5,cache_creation:5}},"gpt-5.4-mini":{input:.75,output:4.5,cached:.075,reasoning:4.5,cache_creation:.75},"gpt-5.4-nano":{input:.2,output:1.25,cached:.02,reasoning:1.25,cache_creation:.2},"gpt-5.5":{input:5,output:30,cached:.5,reasoning:30,cache_creation:5,long_context:{threshold:272e3,input:10,output:45,cached:1,reasoning:45,cache_creation:10}},"gpt-5.6":{input:4,output:20,cached:.4,reasoning:20,cache_creation:5,long_context:{threshold:272e3,input:8,output:30,cached:.8,reasoning:30,cache_creation:10}},"gpt-5.6-luna":{input:.2,output:1.2,cached:.02,reasoning:1.2,cache_creation:.25,long_context:{threshold:272e3,input:.4,output:1.8,cached:.04,reasoning:1.8,cache_creation:.5}},"gpt-5.6-terra":{input:2,output:12,cached:.2,reasoning:12,cache_creation:2.5,long_context:{threshold:272e3,input:4,output:18,cached:.4,reasoning:18,cache_creation:5}},"gpt-5.6-sol":{input:4,output:20,cached:.4,reasoning:20,cache_creation:5,long_context:{threshold:272e3,input:8,output:30,cached:.8,reasoning:30,cache_creation:10}},"gpt-6-astra":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.5,long_context:{threshold:272e3,input:20,output:75,cached:2,reasoning:75,cache_creation:25}},"gpt-6.1-sol":{input:2,output:10,cached:.1,reasoning:10,cache_creation:2.5},"gpt-6-sol":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"gpt-6-luna":{input:.1,output:.5,cached:.01,reasoning:.5,cache_creation:.125},o1:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15},"o1-mini":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"agnes-3.0-pro":{input:.45,output:.9,cached:.045},"gemini-4-argon":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.5-flash-lite":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.375},"gemini-3.5-flash-high":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-flash-preview":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-low":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-high":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-pro-agent":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-3-flash-agent":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3.5-flash-low":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3.5-flash-extra-low":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-flash":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-flash":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3},"gemini-2.5-flash-lite":{input:.15,output:1.25,cached:.015,reasoning:1.875,cache_creation:.15},"qwen3-coder-plus":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"qwen3-coder-flash":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"qwen3-coder-plus":{input:.65,output:3.25,cached:.5,reasoning:3.25,cache_creation:1},"qwen3-coder-flash":{input:.195,output:.975,cached:.25,reasoning:.975,cache_creation:.5},"qwen3-coder-next":{input:.12,output:.8,cached:.06,reasoning:.8,cache_creation:.5},"qwen3.8-max":{input:2,output:6,cached:.25,cache_creation:2.5,reasoning:6},"qwen3.8-27b":{input:.4,output:3,cached:.05,reasoning:3},"qwen3.8-2.4t-a95b":{input:2,output:6,cached:.25,reasoning:6},"qwen3.7-max":{input:1.475,output:4.425,cached:.25,reasoning:4.425},"qwen3.7-plus":{input:.32,output:1.28,cached:.08,reasoning:1.28},"qwen3.6-plus":{input:.325,output:1.95,reasoning:1.95},"qwen3.6-flash":{input:.1875,output:1.125,cached:.01875,cache_creation:.2344,reasoning:1.125},"qwen3.6-35b-a3b":{input:.098,output:.95,reasoning:.95},"qwen3.6-27b":{input:.289,output:2.4,reasoning:2.4},"qwen3.6-max-preview":{input:1.027,output:6.162,reasoning:6.162},"qwen3.5-plus":{input:.3,output:1.8,reasoning:1.8},"qwen3.5-flash":{input:.065,output:.26,reasoning:.26},"qwen3.5-27b":{input:.195,output:1.56,reasoning:1.56},"qwen3.5-35b-a3b":{input:.14,output:1,reasoning:1},"qwen3.5-122b-a10b":{input:.26,output:2.08,reasoning:2.08},"qwen3.5-397b-a17b":{input:.3025,output:1.925,reasoning:1.925},"kimi-k3":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3},k3:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3},"kimi-k3.1-pro":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2},"kimi-k2.7-code":{input:.95,output:4,cached:.19,reasoning:4,cache_creation:.95},"kimi-k2.7-code-highspeed":{input:1.9,output:8,cached:.38,reasoning:8,cache_creation:1.9},"kimi-for-coding":{input:.95,output:4,cached:.19,reasoning:4,cache_creation:.95},"kimi-for-coding-highspeed":{input:1.9,output:8,cached:.38,reasoning:8,cache_creation:1.9},"kimi-k2":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2-thinking":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"kimi-k2.5":{input:1.2,output:4.8,cached:.6,reasoning:7.2,cache_creation:1.2},"kimi-k2.5-thinking":{input:1.8,output:7.2,cached:.9,reasoning:10.8,cache_creation:1.8},"kimi-k2.6":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-latest":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"deepseek-chat":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-reasoner":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-r1":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v3.2-chat":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v3.2-reasoner":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v4-flash-latest":{input:.04,output:.1,cached:.01,reasoning:.1,cache_creation:.04},"deepseek-v4-flash":{input:.05,output:.16,cached:.013,reasoning:.16,cache_creation:.05},"deepseek-v4-pro":{input:.435,output:.87,cached:.003625,reasoning:.87,cache_creation:.435},"glm-4.6":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.6v":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-4.7":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-5":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"glm-5.1":{input:.95,output:3.15,cached:.179,reasoning:3.15,cache_creation:.95},"glm-5.3-flash":{input:.15,output:.5,cached:.03,reasoning:.5,cache_creation:.15},"glm-5.3":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M3":{input:.3,output:1.2,cached:.06,reasoning:1.8,cache_creation:.3},"MiniMax-M2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.5":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.7":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.5":{input:.6,output:2.4,cached:.3,reasoning:3.6,cache_creation:.6},"grok-code-fast-1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"grok-4.5":{input:2,output:6,cached:.3,reasoning:6,cache_creation:2,long_context:{threshold:2e5,inclusive:!0,input:4,output:12,cached:.6,reasoning:12,cache_creation:4}},"grok-4.6":{input:2,output:6,cached:.5,reasoning:6,cache_creation:2,long_context:{threshold:2e5,inclusive:!0,input:4,output:12,cached:1,reasoning:12,cache_creation:4}},"muse-spark-1.3":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.2":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.1":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.3-contributor":{input:.1,output:.2,cached:.002,reasoning:.2,cache_creation:0},"muse-spark-1.2-contributor":{input:.1,output:.2,cached:.002,reasoning:.2,cache_creation:0},auto:{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"oswe-vscode-prime":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"gpt-oss-120b-medium":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"vision-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"coder-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},g={gh:{"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},meta:{"muse-spark-1.2":{input:1.25,output:4.25,cached:.15,reasoning:4.25},"muse-spark-1.1":{input:1.25,output:4.25,cached:.15,reasoning:4.25},"muse-spark-1.2-contributor":{input:.1,output:.2,cached:.002,reasoning:.2}},tokenrouter:{"MiniMax-M3":{input:.3,output:1.2,cached:.06,reasoning:1.2},"anthropic/claude-fable-5":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-haiku-4.5":{input:1,output:5,cached:.1,cache_creation:1.25,reasoning:5},"anthropic/claude-opus-4.5":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.6":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.7":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.7-fast":{input:30,output:150,cached:3,reasoning:150},"anthropic/claude-opus-4.8":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.8-fast":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-opus-5":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-5-fast":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-sonnet-4":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-4.5":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-4.6":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-5":{input:2,output:10,cached:.2,reasoning:10},"claude-opus-4-8-m-aws":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"deepseek/deepseek-v3.2":{input:.26,output:.38,cached:.13,reasoning:.38},"deepseek/deepseek-v4-flash":{input:.14,output:.28,cached:.0028,reasoning:.28},"deepseek/deepseek-v4-flash-0731":{input:.14,output:.28,cached:.0028,reasoning:.28},"deepseek/deepseek-v4-pro":{input:.435,output:.87,cached:.003625,reasoning:.87},"ex/gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15},"google/gemini-2.5-flash-image":{input:.3,output:2.5,reasoning:2.5},"google/gemini-3-flash-preview":{input:.5,output:3,cached:.05,cache_creation:.08333,reasoning:3},"google/gemini-3-pro-image-preview":{input:2,output:12,reasoning:12},"google/gemini-3.1-flash-image-preview":{input:.5,output:3,reasoning:3},"google/gemini-3.1-flash-lite-image":{input:.25,output:1.5,reasoning:1.5},"google/gemini-3.1-pro-preview":{input:2,output:12,cached:.2,cache_creation:.375,reasoning:12},"google/gemini-3.5-flash":{input:1.5,output:9,cached:.15,cache_creation:.08333,reasoning:9},"google/gemini-3.5-flash-lite":{input:.3,output:2.5,cached:.03,cache_creation:.08333,reasoning:2.5},"google/gemini-3.6-flash":{input:1.5,output:7.5,cached:.15,cache_creation:.08333,reasoning:7.5},"google/gemini-embedding-2":{input:1,output:6,cached:.1,reasoning:6},"google/gemma-4-26b-a4b-it":{input:.06,output:.33,reasoning:.33},"kling-3.0-turbo":{input:2.1,output:2.1,reasoning:2.1},"microsoft/mai-image-2.5":{input:5,output:47,reasoning:47},"minimax/minimax-m2-her":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.1":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.1-highspeed":{input:.6,output:2.4,cached:.06,reasoning:2.4},"minimax/minimax-m2.5":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.7":{input:.3,output:1.2,cached:.06,reasoning:1.2},"minimax/minimax-m2.7-highspeed":{input:.6,output:2.4,cached:.06,reasoning:2.4},"miromind/mirothinker-1-7-deepresearch":{input:4,output:25,reasoning:25},"miromind/mirothinker-1-7-deepresearch-mini":{input:1.25,output:10,reasoning:10},"mistralai/devstral-2512":{input:.4,output:2,cached:.04,reasoning:2},"mistralai/mistral-medium-3-5":{input:1.5,output:7.5,reasoning:7.5},"mistralai/mistral-small-2603":{input:.15,output:.6,cached:.015,reasoning:.6},"mistralai/voxtral-small-24b-2507":{input:.1,output:.3,cached:.01,reasoning:.3},"moonshotai/kimi-k2.5":{input:.6,output:3,cached:.1,reasoning:3},"moonshotai/kimi-k2.6":{input:.95,output:4,cached:.16,reasoning:4},"moonshotai/kimi-k2.7-code":{input:.9286,output:3.8571,cached:.1857,reasoning:3.8571},"moonshotai/kimi-k3":{input:3,output:15,cached:.3,reasoning:15},"nvidia/nemotron-3-super-120b-a12b":{input:.3,output:.9,cached:.1,reasoning:.9},"openai/gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.6},"openai/gpt-5":{input:1.25,output:10,cached:.125,reasoning:10},"openai/gpt-5-image":{input:10,output:40,cached:2.5,reasoning:40},"openai/gpt-5-image-mini":{input:2.5,output:8,cached:.25,reasoning:8},"openai/gpt-5-mini":{input:.25,output:2,cached:.025,reasoning:2},"openai/gpt-5.2":{input:1.75,output:14,cached:.175,reasoning:14},"openai/gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14},"openai/gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15},"openai/gpt-5.4-image-2":{input:8,output:30,cached:2,reasoning:30},"openai/gpt-5.4-mini":{input:.75,output:4.5,cached:.075,reasoning:4.5},"openai/gpt-5.4-nano":{input:.2,output:1.25,cached:.02,reasoning:1.25},"openai/gpt-5.4-pro":{input:30,output:180,reasoning:180},"openai/gpt-5.5":{input:5,output:30,cached:.5,reasoning:30},"openai/gpt-5.5-pro":{input:30,output:180,reasoning:180},"openai/gpt-5.6-luna":{input:.2,output:1.2,cached:.02,cache_creation:.25,reasoning:1.2},"openai/gpt-5.6-sol":{input:5,output:30,cached:.5,cache_creation:6.25,reasoning:30},"openai/gpt-5.6-terra":{input:2,output:12,cached:.2,cache_creation:2.5,reasoning:12},"openai/gpt-audio":{input:2.5,output:10,reasoning:10},"openai/gpt-audio-mini":{input:.6,output:2.4,reasoning:2.4},"openai/gpt-oss-120b":{input:.039,output:.18,reasoning:.18},"qwen/qwen3-coder-next":{input:.12,output:.75,cached:.06,reasoning:.75},"qwen/qwen3.5-122b-a10b":{input:.26,output:2.08,reasoning:2.08},"qwen/qwen3.5-35b-a3b":{input:.1625,output:1.3,reasoning:1.3},"qwen/qwen3.5-397b-a17b":{input:.39,output:2.34,reasoning:2.34},"qwen/qwen3.5-9b":{input:.1,output:.15,reasoning:.15},"qwen/qwen3.5-flash":{input:.1048,output:.4194,reasoning:.4194},"qwen/qwen3.5-plus-02-15":{input:.26,output:1.56,reasoning:1.56},"qwen/qwen3.6-plus":{input:.54,output:3.21,reasoning:3.21},"qwen/qwen3.7-max":{input:1.25,output:3.75,cached:.25,reasoning:3.75},"qwen/qwen3.7-plus":{input:.4,output:1.6,cached:.08,reasoning:1.6},"qwen/qwen3.8-max":{input:2,output:6,cached:.25,cache_creation:2.5,reasoning:6},"qwen3.5-omni-plus":{input:1,output:5.7143,reasoning:5.7143},"qwen3.6-flash":{input:.171,output:1.029,cached:.017,cache_creation:.214,reasoning:1.029},"sakana/fugu-ultra":{input:5,output:30,cached:.5,reasoning:30},"seed-2-0-code-preview-260328":{input:1,output:6,cached:.2,cache_creation:.008333,reasoning:6},"seed-2-0-lite-260428":{input:.5,output:4,cached:.1,cache_creation:.008333,reasoning:4},"seed-2-0-mini-260428":{input:.2,output:.8,cached:.04,cache_creation:.00833,reasoning:.8},"seed-2-0-pro-260328":{input:1,output:6,cached:.2,cache_creation:.008333,reasoning:6},"stepfun/step-3.5-flash":{input:.1,output:.3,cached:.02,reasoning:.3},"stepfun/step-3.7-flash":{input:.2,output:1.15,cached:.04,reasoning:1.15},"tencent/hy3-preview":{input:.066,output:.26,cached:.029,reasoning:.26},"x-ai/grok-4.1-fast":{input:.2,output:.5,cached:.05,reasoning:.5},"x-ai/grok-4.20-beta":{input:2,output:6,cached:.2,reasoning:6},"x-ai/grok-4.3":{input:1.25,output:2.5,cached:.2,reasoning:2.5},"x-ai/grok-4.5":{input:2,output:6,cached:.5,reasoning:6},"x-ai/grok-build-0.1":{input:1,output:2,cached:.2,reasoning:2},"xiaomi/mimo-v2-flash":{input:.1,output:.3,cached:.01,reasoning:.3},"xiaomi/mimo-v2-omni":{input:.4,output:2,cached:.08,reasoning:2},"xiaomi/mimo-v2-pro":{input:1,output:3,cached:.2,reasoning:3},"xiaomi/mimo-v2.5":{input:.4,output:2,cached:.08,reasoning:2},"xiaomi/mimo-v2.5-pro":{input:1,output:3,cached:.2,reasoning:3},"z-ai/glm-4.5-air":{input:.13,output:.85,cached:.025,reasoning:.85},"z-ai/glm-4.6":{input:.6,output:2.2,cached:.11,reasoning:2.2},"z-ai/glm-4.6v":{input:.3,output:.9,reasoning:.9},"z-ai/glm-4.7":{input:.6,output:2.2,cached:.11,reasoning:2.2},"z-ai/glm-5":{input:1,output:3.2,cached:.2,reasoning:3.2},"z-ai/glm-5-turbo":{input:1.2,output:4,cached:.24,reasoning:4},"z-ai/glm-5.1":{input:1.05,output:3.5,cached:.525,reasoning:3.5},"z-ai/glm-5.2":{input:1.4,output:4.4,cached:.26,reasoning:4.4},"z-ai/glm-5.3-free":{input:0,output:0,cached:0,reasoning:0}}},h=[{pattern:"*-codex-xhigh",pricing:{input:10,output:40,cached:5,reasoning:60,cache_creation:10}},{pattern:"*-codex-high",pricing:{input:8,output:32,cached:4,reasoning:48,cache_creation:8}},{pattern:"*-codex-max",pricing:{input:8,output:32,cached:4,reasoning:48,cache_creation:8}},{pattern:"*-codex-mini-*",pricing:{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},{pattern:"*-codex-mini",pricing:{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},{pattern:"*-codex-low",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex-none",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex-spark",pricing:{input:3,output:12,cached:.3,reasoning:12,cache_creation:3}},{pattern:"codex-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"claude-opus-*",pricing:{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25}},{pattern:"claude-sonnet-*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75}},{pattern:"claude-haiku-*",pricing:{input:1,output:5,cached:.1,reasoning:5,cache_creation:1.25}},{pattern:"claude-*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75}},{pattern:"gemini-*-flash-lite",pricing:{input:.15,output:1.25,cached:.015,reasoning:1.875,cache_creation:.15}},{pattern:"gemini-*-flash",pricing:{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3}},{pattern:"gemini-*-pro",pricing:{input:2,output:12,cached:.25,reasoning:18,cache_creation:2}},{pattern:"gemini-3-*",pricing:{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5}},{pattern:"gemini-2.5-*",pricing:{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3}},{pattern:"gemini-*",pricing:{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5}},{pattern:"gpt-5.6-*",pricing:{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5}},{pattern:"gpt-5.3-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"gpt-5.2-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"gpt-5.1-*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-5-*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-5*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-4o-*",pricing:{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15}},{pattern:"gpt-4o",pricing:{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5}},{pattern:"gpt-4*",pricing:{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5}},{pattern:"o1-*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"o1",pricing:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15}},{pattern:"o3-*",pricing:{input:10,output:40,cached:5,reasoning:60,cache_creation:10}},{pattern:"o4-*",pricing:{input:2,output:8,cached:1,reasoning:12,cache_creation:2}},{pattern:"qwen3-coder-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"qwen*-coder-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"qwen*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"kimi-*-thinking",pricing:{input:1.8,output:7.2,cached:.9,reasoning:10.8,cache_creation:1.8}},{pattern:"kimi-k3*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3}},{pattern:"kimi-k2*",pricing:{input:1.2,output:4.8,cached:.6,reasoning:7.2,cache_creation:1.2}},{pattern:"kimi-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"deepseek-v4-flash*",pricing:{input:.04,output:.1,cached:.01,reasoning:.1,cache_creation:.04}},{pattern:"deepseek-v4-pro*",pricing:{input:.435,output:.87,cached:.003625,reasoning:.87,cache_creation:.435}},{pattern:"deepseek-*reasoner*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-r*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-v*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"glm-5.3-flash*",pricing:{input:.15,output:.5,cached:.075,reasoning:.5,cache_creation:.15}},{pattern:"glm-5*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"glm-4*",pricing:{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75}},{pattern:"glm-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"MiniMax-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"minimax-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"grok-code-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"grok-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"*muse-spark*contributor*",pricing:{input:.1,output:.2,cached:.002,reasoning:.3,cache_creation:.1}},{pattern:"*muse-spark*",pricing:{input:1.25,output:4.25,cached:.15,reasoning:6.375,cache_creation:1.25}},{pattern:"*muse-glimmer*",pricing:{input:.3,output:1.2,cached:.04,reasoning:1.8,cache_creation:.3}},{pattern:"*muse*",pricing:{input:1.25,output:4.25,cached:.15,reasoning:6.375,cache_creation:1.25}}];function i(a,b){let c=i._cache||(i._cache=new Map),d=c.get(a);return void 0===d&&(d=RegExp("^"+a.split("*").map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$","i"),c.set(a,d)),d.test(b)}function j(a,b){if(!b)return null;if(a&&g[a]?.[b])return g[a][b];if(function(a){if(!a)return!1;let b=String(a).toLowerCase();return d.some(a=>b.startsWith(a))}(b))return e;let c=b.includes("/")?b.split("/").pop():b;if(f[c])return f[c];if(f[b])return f[b];for(let{pattern:a,pricing:d}of h)if(i(a,c)||i(a,b))return d;return null}function k(a){if(null==a||""===a)return null;let b=Number(a);return Number.isFinite(b)&&b>=0?b:null}function l(a,b){if(!a)return 0;let c=k(a.cost_usd??a.cost_in_usd);if(null!==c)return c;let d=k(a.cost_in_usd_ticks);if(null!==d)return d/1e10;if(!b)return 0;let e=0,f=a.prompt_tokens||a.input_tokens||0,g=a.cached_tokens||a.cache_read_input_tokens||0,h=a.cache_creation_input_tokens||0;e+=Math.max(0,f-g-h)*(b.input/1e6),g>0&&(e+=g*((b.cached||b.input)/1e6)),e+=(a.completion_tokens||a.output_tokens||0)*(b.output/1e6);let i=a.reasoning_tokens||0;i>0&&(e+=i*((b.reasoning||b.output)/1e6)),h>0&&(e+=h*((b.cache_creation||b.input)/1e6));let j=Number(a.pricing_multiplier);return e*(Number.isFinite(j)&&j>0?j:1)}}};
|
|
1
|
+
"use strict";exports.id=2269,exports.ids=[2269],exports.modules={92269:(a,b,c)=>{c.d(b,{PROVIDER_PRICING:()=>g,calculateCostFromTokens:()=>l,getPricingForModel:()=>j});let d=["cline-free/"],e={input:0,output:0,cached:0,reasoning:0,cache_creation:0},f={"claude-opus-4-6":{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25},"claude-opus-4-5-20251101":{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25},"claude-sonnet-4-6":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75},"claude-sonnet-4-5-20250929":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75},"claude-haiku-4-5-20251001":{input:1,output:5,cached:.1,reasoning:5,cache_creation:1.25},"claude-sonnet-4-20250514":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4-20250514":{input:15,output:25,cached:7.5,reasoning:112.5,cache_creation:15},"claude-3-5-sonnet-20241022":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4.5":{input:.5,output:2.5,cached:.05,reasoning:3.75,cache_creation:.5},"claude-opus-4.1":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.5":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.6":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-sonnet-4":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-sonnet-4.5":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-sonnet-4.6":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-opus-4-5-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4-6-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-5-5-thinking":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-high":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-medium":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-low":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-fable-5":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.5},"claude-sonnet-5-5":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-thinking":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-high":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-medium":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-low":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"gpt-3.5-turbo":{input:.5,output:1.5,cached:.25,reasoning:2.25,cache_creation:.5},"gpt-4":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4-turbo":{input:10,output:30,cached:5,reasoning:45,cache_creation:10},"gpt-4o":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15},"gpt-4.1":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-5":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5-mini":{input:.25,output:2,cached:.125,reasoning:2,cache_creation:.25},"gpt-5-codex":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1-codex":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1-codex-mini":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"gpt-5.1-codex-mini-high":{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"gpt-5.1-codex-max":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-5.2":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.2-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.3-codex-spark":{input:3,output:12,cached:.3,reasoning:12,cache_creation:3},"gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5,long_context:{threshold:272e3,input:5,output:22.5,cached:.5,reasoning:22.5,cache_creation:5}},"gpt-5.4-mini":{input:.75,output:4.5,cached:.075,reasoning:4.5,cache_creation:.75},"gpt-5.4-nano":{input:.2,output:1.25,cached:.02,reasoning:1.25,cache_creation:.2},"gpt-5.5":{input:5,output:30,cached:.5,reasoning:30,cache_creation:5,long_context:{threshold:272e3,input:10,output:45,cached:1,reasoning:45,cache_creation:10}},"gpt-5.6":{input:4,output:20,cached:.4,reasoning:20,cache_creation:5,long_context:{threshold:272e3,input:8,output:30,cached:.8,reasoning:30,cache_creation:10}},"gpt-5.6-luna":{input:.2,output:1.2,cached:.02,reasoning:1.2,cache_creation:.25,long_context:{threshold:272e3,input:.4,output:1.8,cached:.04,reasoning:1.8,cache_creation:.5}},"gpt-5.6-terra":{input:2,output:12,cached:.2,reasoning:12,cache_creation:2.5,long_context:{threshold:272e3,input:4,output:18,cached:.4,reasoning:18,cache_creation:5}},"gpt-5.6-sol":{input:4,output:20,cached:.4,reasoning:20,cache_creation:5,long_context:{threshold:272e3,input:8,output:30,cached:.8,reasoning:30,cache_creation:10}},"gpt-6-astra":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.5,long_context:{threshold:272e3,input:20,output:75,cached:2,reasoning:75,cache_creation:25}},"gpt-6.1-sol":{input:2,output:10,cached:.1,reasoning:10,cache_creation:2.5},"gpt-6.1-terra":{input:1,output:5,cached:.05,reasoning:5,cache_creation:1.25},"gpt-6-sol":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"gpt-6-luna":{input:.1,output:.5,cached:.01,reasoning:.5,cache_creation:.125},o1:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15},"o1-mini":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"agnes-3.0-pro":{input:.45,output:.9,cached:.045},"gemini-4-argon":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.5-flash-lite":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.375},"gemini-3.5-flash-high":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-flash-preview":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-low":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-high":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-pro-agent":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-3-flash-agent":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3.5-flash-low":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3.5-flash-extra-low":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-flash":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-flash":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3},"gemini-2.5-flash-lite":{input:.15,output:1.25,cached:.015,reasoning:1.875,cache_creation:.15},"qwen3-coder-plus":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"qwen3-coder-flash":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"qwen3-coder-plus":{input:.65,output:3.25,cached:.5,reasoning:3.25,cache_creation:1},"qwen3-coder-flash":{input:.195,output:.975,cached:.25,reasoning:.975,cache_creation:.5},"qwen3-coder-next":{input:.12,output:.8,cached:.06,reasoning:.8,cache_creation:.5},"qwen3.8-max":{input:2,output:6,cached:.25,cache_creation:2.5,reasoning:6},"qwen3.8-27b":{input:.4,output:3,cached:.05,reasoning:3},"qwen3.8-2.4t-a95b":{input:2,output:6,cached:.25,reasoning:6},"qwen3.7-max":{input:1.475,output:4.425,cached:.25,reasoning:4.425},"qwen3.7-plus":{input:.32,output:1.28,cached:.08,reasoning:1.28},"qwen3.6-plus":{input:.325,output:1.95,reasoning:1.95},"qwen3.6-flash":{input:.1875,output:1.125,cached:.01875,cache_creation:.2344,reasoning:1.125},"qwen3.6-35b-a3b":{input:.098,output:.95,reasoning:.95},"qwen3.6-27b":{input:.289,output:2.4,reasoning:2.4},"qwen3.6-max-preview":{input:1.027,output:6.162,reasoning:6.162},"qwen3.5-plus":{input:.3,output:1.8,reasoning:1.8},"qwen3.5-flash":{input:.065,output:.26,reasoning:.26},"qwen3.5-27b":{input:.195,output:1.56,reasoning:1.56},"qwen3.5-35b-a3b":{input:.14,output:1,reasoning:1},"qwen3.5-122b-a10b":{input:.26,output:2.08,reasoning:2.08},"qwen3.5-397b-a17b":{input:.3025,output:1.925,reasoning:1.925},"kimi-k3":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3},k3:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3},"kimi-k3.1-pro":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2},"kimi-k2.7-code":{input:.95,output:4,cached:.19,reasoning:4,cache_creation:.95},"kimi-k2.7-code-highspeed":{input:1.9,output:8,cached:.38,reasoning:8,cache_creation:1.9},"kimi-for-coding":{input:.95,output:4,cached:.19,reasoning:4,cache_creation:.95},"kimi-for-coding-highspeed":{input:1.9,output:8,cached:.38,reasoning:8,cache_creation:1.9},"kimi-k2":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2-thinking":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"kimi-k2.5":{input:1.2,output:4.8,cached:.6,reasoning:7.2,cache_creation:1.2},"kimi-k2.5-thinking":{input:1.8,output:7.2,cached:.9,reasoning:10.8,cache_creation:1.8},"kimi-k2.6":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-latest":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"deepseek-chat":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-reasoner":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-r1":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v3.2-chat":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v3.2-reasoner":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v4-flash-latest":{input:.04,output:.1,cached:.01,reasoning:.1,cache_creation:.04},"deepseek-v4-flash":{input:.05,output:.16,cached:.013,reasoning:.16,cache_creation:.05},"deepseek-v4-pro":{input:.435,output:.87,cached:.003625,reasoning:.87,cache_creation:.435},"glm-4.6":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.6v":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-4.7":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-5":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"glm-5.1":{input:.95,output:3.15,cached:.179,reasoning:3.15,cache_creation:.95},"glm-5.3-flash":{input:.15,output:.5,cached:.03,reasoning:.5,cache_creation:.15},"glm-5.3":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M3":{input:.3,output:1.2,cached:.06,reasoning:1.8,cache_creation:.3},"MiniMax-M2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.5":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.7":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.5":{input:.6,output:2.4,cached:.3,reasoning:3.6,cache_creation:.6},"grok-code-fast-1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"grok-4.5":{input:2,output:6,cached:.3,reasoning:6,cache_creation:2,long_context:{threshold:2e5,inclusive:!0,input:4,output:12,cached:.6,reasoning:12,cache_creation:4}},"grok-4.6":{input:2,output:6,cached:.5,reasoning:6,cache_creation:2,long_context:{threshold:2e5,inclusive:!0,input:4,output:12,cached:1,reasoning:12,cache_creation:4}},"muse-spark-1.3":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.2":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.1":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.3-contributor":{input:.1,output:.2,cached:.002,reasoning:.2,cache_creation:0},"muse-spark-1.2-contributor":{input:.1,output:.2,cached:.002,reasoning:.2,cache_creation:0},auto:{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"oswe-vscode-prime":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"gpt-oss-120b-medium":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"vision-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"coder-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},g={gh:{"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},meta:{"muse-spark-1.2":{input:1.25,output:4.25,cached:.15,reasoning:4.25},"muse-spark-1.1":{input:1.25,output:4.25,cached:.15,reasoning:4.25},"muse-spark-1.2-contributor":{input:.1,output:.2,cached:.002,reasoning:.2}},tokenrouter:{"MiniMax-M3":{input:.3,output:1.2,cached:.06,reasoning:1.2},"anthropic/claude-fable-5":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-haiku-4.5":{input:1,output:5,cached:.1,cache_creation:1.25,reasoning:5},"anthropic/claude-opus-4.5":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.6":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.7":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.7-fast":{input:30,output:150,cached:3,reasoning:150},"anthropic/claude-opus-4.8":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.8-fast":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-opus-5":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-5-fast":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-sonnet-4":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-4.5":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-4.6":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-5":{input:2,output:10,cached:.2,reasoning:10},"claude-opus-4-8-m-aws":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"deepseek/deepseek-v3.2":{input:.26,output:.38,cached:.13,reasoning:.38},"deepseek/deepseek-v4-flash":{input:.14,output:.28,cached:.0028,reasoning:.28},"deepseek/deepseek-v4-flash-0731":{input:.14,output:.28,cached:.0028,reasoning:.28},"deepseek/deepseek-v4-pro":{input:.435,output:.87,cached:.003625,reasoning:.87},"ex/gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15},"google/gemini-2.5-flash-image":{input:.3,output:2.5,reasoning:2.5},"google/gemini-3-flash-preview":{input:.5,output:3,cached:.05,cache_creation:.08333,reasoning:3},"google/gemini-3-pro-image-preview":{input:2,output:12,reasoning:12},"google/gemini-3.1-flash-image-preview":{input:.5,output:3,reasoning:3},"google/gemini-3.1-flash-lite-image":{input:.25,output:1.5,reasoning:1.5},"google/gemini-3.1-pro-preview":{input:2,output:12,cached:.2,cache_creation:.375,reasoning:12},"google/gemini-3.5-flash":{input:1.5,output:9,cached:.15,cache_creation:.08333,reasoning:9},"google/gemini-3.5-flash-lite":{input:.3,output:2.5,cached:.03,cache_creation:.08333,reasoning:2.5},"google/gemini-3.6-flash":{input:1.5,output:7.5,cached:.15,cache_creation:.08333,reasoning:7.5},"google/gemini-embedding-2":{input:1,output:6,cached:.1,reasoning:6},"google/gemma-4-26b-a4b-it":{input:.06,output:.33,reasoning:.33},"kling-3.0-turbo":{input:2.1,output:2.1,reasoning:2.1},"microsoft/mai-image-2.5":{input:5,output:47,reasoning:47},"minimax/minimax-m2-her":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.1":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.1-highspeed":{input:.6,output:2.4,cached:.06,reasoning:2.4},"minimax/minimax-m2.5":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.7":{input:.3,output:1.2,cached:.06,reasoning:1.2},"minimax/minimax-m2.7-highspeed":{input:.6,output:2.4,cached:.06,reasoning:2.4},"miromind/mirothinker-1-7-deepresearch":{input:4,output:25,reasoning:25},"miromind/mirothinker-1-7-deepresearch-mini":{input:1.25,output:10,reasoning:10},"mistralai/devstral-2512":{input:.4,output:2,cached:.04,reasoning:2},"mistralai/mistral-medium-3-5":{input:1.5,output:7.5,reasoning:7.5},"mistralai/mistral-small-2603":{input:.15,output:.6,cached:.015,reasoning:.6},"mistralai/voxtral-small-24b-2507":{input:.1,output:.3,cached:.01,reasoning:.3},"moonshotai/kimi-k2.5":{input:.6,output:3,cached:.1,reasoning:3},"moonshotai/kimi-k2.6":{input:.95,output:4,cached:.16,reasoning:4},"moonshotai/kimi-k2.7-code":{input:.9286,output:3.8571,cached:.1857,reasoning:3.8571},"moonshotai/kimi-k3":{input:3,output:15,cached:.3,reasoning:15},"nvidia/nemotron-3-super-120b-a12b":{input:.3,output:.9,cached:.1,reasoning:.9},"openai/gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.6},"openai/gpt-5":{input:1.25,output:10,cached:.125,reasoning:10},"openai/gpt-5-image":{input:10,output:40,cached:2.5,reasoning:40},"openai/gpt-5-image-mini":{input:2.5,output:8,cached:.25,reasoning:8},"openai/gpt-5-mini":{input:.25,output:2,cached:.025,reasoning:2},"openai/gpt-5.2":{input:1.75,output:14,cached:.175,reasoning:14},"openai/gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14},"openai/gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15},"openai/gpt-5.4-image-2":{input:8,output:30,cached:2,reasoning:30},"openai/gpt-5.4-mini":{input:.75,output:4.5,cached:.075,reasoning:4.5},"openai/gpt-5.4-nano":{input:.2,output:1.25,cached:.02,reasoning:1.25},"openai/gpt-5.4-pro":{input:30,output:180,reasoning:180},"openai/gpt-5.5":{input:5,output:30,cached:.5,reasoning:30},"openai/gpt-5.5-pro":{input:30,output:180,reasoning:180},"openai/gpt-5.6-luna":{input:.2,output:1.2,cached:.02,cache_creation:.25,reasoning:1.2},"openai/gpt-5.6-sol":{input:5,output:30,cached:.5,cache_creation:6.25,reasoning:30},"openai/gpt-5.6-terra":{input:2,output:12,cached:.2,cache_creation:2.5,reasoning:12},"openai/gpt-audio":{input:2.5,output:10,reasoning:10},"openai/gpt-audio-mini":{input:.6,output:2.4,reasoning:2.4},"openai/gpt-oss-120b":{input:.039,output:.18,reasoning:.18},"qwen/qwen3-coder-next":{input:.12,output:.75,cached:.06,reasoning:.75},"qwen/qwen3.5-122b-a10b":{input:.26,output:2.08,reasoning:2.08},"qwen/qwen3.5-35b-a3b":{input:.1625,output:1.3,reasoning:1.3},"qwen/qwen3.5-397b-a17b":{input:.39,output:2.34,reasoning:2.34},"qwen/qwen3.5-9b":{input:.1,output:.15,reasoning:.15},"qwen/qwen3.5-flash":{input:.1048,output:.4194,reasoning:.4194},"qwen/qwen3.5-plus-02-15":{input:.26,output:1.56,reasoning:1.56},"qwen/qwen3.6-plus":{input:.54,output:3.21,reasoning:3.21},"qwen/qwen3.7-max":{input:1.25,output:3.75,cached:.25,reasoning:3.75},"qwen/qwen3.7-plus":{input:.4,output:1.6,cached:.08,reasoning:1.6},"qwen/qwen3.8-max":{input:2,output:6,cached:.25,cache_creation:2.5,reasoning:6},"qwen3.5-omni-plus":{input:1,output:5.7143,reasoning:5.7143},"qwen3.6-flash":{input:.171,output:1.029,cached:.017,cache_creation:.214,reasoning:1.029},"sakana/fugu-ultra":{input:5,output:30,cached:.5,reasoning:30},"seed-2-0-code-preview-260328":{input:1,output:6,cached:.2,cache_creation:.008333,reasoning:6},"seed-2-0-lite-260428":{input:.5,output:4,cached:.1,cache_creation:.008333,reasoning:4},"seed-2-0-mini-260428":{input:.2,output:.8,cached:.04,cache_creation:.00833,reasoning:.8},"seed-2-0-pro-260328":{input:1,output:6,cached:.2,cache_creation:.008333,reasoning:6},"stepfun/step-3.5-flash":{input:.1,output:.3,cached:.02,reasoning:.3},"stepfun/step-3.7-flash":{input:.2,output:1.15,cached:.04,reasoning:1.15},"tencent/hy3-preview":{input:.066,output:.26,cached:.029,reasoning:.26},"x-ai/grok-4.1-fast":{input:.2,output:.5,cached:.05,reasoning:.5},"x-ai/grok-4.20-beta":{input:2,output:6,cached:.2,reasoning:6},"x-ai/grok-4.3":{input:1.25,output:2.5,cached:.2,reasoning:2.5},"x-ai/grok-4.5":{input:2,output:6,cached:.5,reasoning:6},"x-ai/grok-build-0.1":{input:1,output:2,cached:.2,reasoning:2},"xiaomi/mimo-v2-flash":{input:.1,output:.3,cached:.01,reasoning:.3},"xiaomi/mimo-v2-omni":{input:.4,output:2,cached:.08,reasoning:2},"xiaomi/mimo-v2-pro":{input:1,output:3,cached:.2,reasoning:3},"xiaomi/mimo-v2.5":{input:.4,output:2,cached:.08,reasoning:2},"xiaomi/mimo-v2.5-pro":{input:1,output:3,cached:.2,reasoning:3},"z-ai/glm-4.5-air":{input:.13,output:.85,cached:.025,reasoning:.85},"z-ai/glm-4.6":{input:.6,output:2.2,cached:.11,reasoning:2.2},"z-ai/glm-4.6v":{input:.3,output:.9,reasoning:.9},"z-ai/glm-4.7":{input:.6,output:2.2,cached:.11,reasoning:2.2},"z-ai/glm-5":{input:1,output:3.2,cached:.2,reasoning:3.2},"z-ai/glm-5-turbo":{input:1.2,output:4,cached:.24,reasoning:4},"z-ai/glm-5.1":{input:1.05,output:3.5,cached:.525,reasoning:3.5},"z-ai/glm-5.2":{input:1.4,output:4.4,cached:.26,reasoning:4.4},"z-ai/glm-5.3-free":{input:0,output:0,cached:0,reasoning:0}}},h=[{pattern:"*-codex-xhigh",pricing:{input:10,output:40,cached:5,reasoning:60,cache_creation:10}},{pattern:"*-codex-high",pricing:{input:8,output:32,cached:4,reasoning:48,cache_creation:8}},{pattern:"*-codex-max",pricing:{input:8,output:32,cached:4,reasoning:48,cache_creation:8}},{pattern:"*-codex-mini-*",pricing:{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},{pattern:"*-codex-mini",pricing:{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},{pattern:"*-codex-low",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex-none",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex-spark",pricing:{input:3,output:12,cached:.3,reasoning:12,cache_creation:3}},{pattern:"codex-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"claude-opus-*",pricing:{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25}},{pattern:"claude-sonnet-*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75}},{pattern:"claude-haiku-*",pricing:{input:1,output:5,cached:.1,reasoning:5,cache_creation:1.25}},{pattern:"claude-*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75}},{pattern:"gemini-*-flash-lite",pricing:{input:.15,output:1.25,cached:.015,reasoning:1.875,cache_creation:.15}},{pattern:"gemini-*-flash",pricing:{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3}},{pattern:"gemini-*-pro",pricing:{input:2,output:12,cached:.25,reasoning:18,cache_creation:2}},{pattern:"gemini-3-*",pricing:{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5}},{pattern:"gemini-2.5-*",pricing:{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3}},{pattern:"gemini-*",pricing:{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5}},{pattern:"gpt-5.6-*",pricing:{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5}},{pattern:"gpt-5.3-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"gpt-5.2-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"gpt-5.1-*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-5-*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-5*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-4o-*",pricing:{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15}},{pattern:"gpt-4o",pricing:{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5}},{pattern:"gpt-4*",pricing:{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5}},{pattern:"o1-*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"o1",pricing:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15}},{pattern:"o3-*",pricing:{input:10,output:40,cached:5,reasoning:60,cache_creation:10}},{pattern:"o4-*",pricing:{input:2,output:8,cached:1,reasoning:12,cache_creation:2}},{pattern:"qwen3-coder-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"qwen*-coder-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"qwen*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"kimi-*-thinking",pricing:{input:1.8,output:7.2,cached:.9,reasoning:10.8,cache_creation:1.8}},{pattern:"kimi-k3*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3}},{pattern:"kimi-k2*",pricing:{input:1.2,output:4.8,cached:.6,reasoning:7.2,cache_creation:1.2}},{pattern:"kimi-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"deepseek-v4-flash*",pricing:{input:.04,output:.1,cached:.01,reasoning:.1,cache_creation:.04}},{pattern:"deepseek-v4-pro*",pricing:{input:.435,output:.87,cached:.003625,reasoning:.87,cache_creation:.435}},{pattern:"deepseek-*reasoner*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-r*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-v*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"glm-5.3-flash*",pricing:{input:.15,output:.5,cached:.075,reasoning:.5,cache_creation:.15}},{pattern:"glm-5*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"glm-4*",pricing:{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75}},{pattern:"glm-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"MiniMax-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"minimax-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"grok-code-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"grok-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"*muse-spark*contributor*",pricing:{input:.1,output:.2,cached:.002,reasoning:.3,cache_creation:.1}},{pattern:"*muse-spark*",pricing:{input:1.25,output:4.25,cached:.15,reasoning:6.375,cache_creation:1.25}},{pattern:"*muse-glimmer*",pricing:{input:.3,output:1.2,cached:.04,reasoning:1.8,cache_creation:.3}},{pattern:"*muse*",pricing:{input:1.25,output:4.25,cached:.15,reasoning:6.375,cache_creation:1.25}}];function i(a,b){let c=i._cache||(i._cache=new Map),d=c.get(a);return void 0===d&&(d=RegExp("^"+a.split("*").map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$","i"),c.set(a,d)),d.test(b)}function j(a,b){if(!b)return null;if(a&&g[a]?.[b])return g[a][b];if(function(a){if(!a)return!1;let b=String(a).toLowerCase();return d.some(a=>b.startsWith(a))}(b))return e;let c=b.includes("/")?b.split("/").pop():b;if(f[c])return f[c];if(f[b])return f[b];for(let{pattern:a,pricing:d}of h)if(i(a,c)||i(a,b))return d;return null}function k(a){if(null==a||""===a)return null;let b=Number(a);return Number.isFinite(b)&&b>=0?b:null}function l(a,b){if(!a)return 0;let c=k(a.cost_usd??a.cost_in_usd);if(null!==c)return c;let d=k(a.cost_in_usd_ticks);if(null!==d)return d/1e10;if(!b)return 0;let e=0,f=a.prompt_tokens||a.input_tokens||0,g=a.cached_tokens||a.cache_read_input_tokens||0,h=a.cache_creation_input_tokens||0;e+=Math.max(0,f-g-h)*(b.input/1e6),g>0&&(e+=g*((b.cached||b.input)/1e6)),e+=(a.completion_tokens||a.output_tokens||0)*(b.output/1e6);let i=a.reasoning_tokens||0;i>0&&(e+=i*((b.reasoning||b.output)/1e6)),h>0&&(e+=h*((b.cache_creation||b.input)/1e6));let j=Number(a.pricing_multiplier);return e*(Number.isFinite(j)&&j>0?j:1)}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=2364,exports.ids=[2364],exports.modules={2364:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>Z,OPTIONS:()=>Y,buildModelsList:()=>V,comboSeatLimits:()=>R,fetchCompatibleModelIds:()=>O,getCachedModelsList:()=>X,getModelListPolicy:()=>_});var d=c(81329),e=c(63825),f=c(40615),g=c(89718),h=c(23433),i=c(99471);c(38775);var j=c(16655),k=c(74452),l=c(50287),m=c(72162),n=c(27811),o=c(58569),p=c(86925),q=c(9155),r=c(89843),s=c(28730),t=c(85640),u=c(11847);let v=new Map;async function w(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),1e4);try{let d=await (0,r.proxyAwareFetch)("https://api.githubcopilot.com/models",{method:"GET",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json","Copilot-Integration-Id":"vscode-chat","editor-version":`vscode/${s.x0.VSCODE_VERSION}`,"editor-plugin-version":`copilot-chat/${s.x0.COPILOT_CHAT_VERSION}`,"user-agent":s.x0.USER_AGENT,"x-github-api-version":s.x0.API_VERSION},cache:"no-store",signal:b||c.signal});if(!d.ok){let a=Error(`Copilot /models returned ${d.status}`);throw a.status=d.status,a}let e=await d.json();return Array.isArray(e?.data)?e.data:[]}finally{clearTimeout(d)}}async function x(a,b={}){let c,d=a?.providerSpecificData?.copilotToken||a?.accessToken;if(!d)return b.log?.debug?.("COPILOT_MODELS","No copilotToken/accessToken; skipping live fetch"),null;let e=a?.providerSpecificData?.copilotToken||a?.accessToken||"copilot-anonymous",f=Date.now();if(!b.forceRefresh){let a=v.get(e);if(a&&a.expiresAt>f)return{models:a.models}}try{c=await w(d,b.signal)}catch(d){if(!d||401!==d.status&&403!==d.status||!a.accessToken)return b.log?.warn?.("COPILOT_MODELS",`Live model fetch failed: ${d?.message||d}`),null;{b.log?.info?.("COPILOT_MODELS",`Got ${d.status}; refreshing Copilot token`);let e=await (0,t.jR)(a.accessToken);if(!e?.token)return b.log?.warn?.("COPILOT_MODELS","Token refresh did not return a token"),null;if("function"==typeof b.onCredentialsRefreshed)try{await b.onCredentialsRefreshed({copilotToken:e.token,copilotTokenExpiresAt:e.expiresAt})}catch(a){b.log?.warn?.("COPILOT_MODELS",`onCredentialsRefreshed failed: ${a?.message||a}`)}try{c=await w(e.token,b.signal)}catch(a){return b.log?.warn?.("COPILOT_MODELS",`Retry after refresh failed: ${a?.message||a}`),null}}}let g=function(a){let b=new Set(["auto"]),c=[{id:"auto",name:"Auto"}];for(let d of a){if(!d||"object"!=typeof d||d.capabilities?.type!=="chat"||d.policy&&"enabled"!==d.policy.state)continue;let a=d.id;if(!a||b.has(a))continue;b.add(a);let e=d.capabilities||{},f=e.limits||{},g=e.supports||{},h={...(0,u.getCapabilitiesForModel)("github",a),...Number.isFinite(f.max_context_window_tokens)?{contextWindow:f.max_context_window_tokens}:{},...Number.isFinite(f.max_prompt_tokens)?{maxPrompt:f.max_prompt_tokens}:{},...Number.isFinite(f.max_output_tokens)?{maxOutput:f.max_output_tokens}:{},..."boolean"==typeof g.vision?{vision:g.vision}:{},..."boolean"==typeof g.tool_calls?{tools:g.tool_calls}:{},...!0===g.adaptive_thinking||Array.isArray(g.reasoning_effort)?{reasoning:!0}:{}};c.push({id:a,name:d.name||a,capabilities:h})}return c}(c);return g.length?(v.set(e,{expiresAt:f+3e5,models:g}),{models:g}):null}var y=c(40694),z=c(63123),A=c(26588);c(49934);var B=c(49476),C=c(67828),D=c(39326),E=c(68001),F=c(54402);async function G(a,b){let c=await (0,q.EV)({provider:b,accessToken:a.accessToken,apiKey:a.apiKey,refreshToken:a.refreshToken,email:a.email,displayName:a.displayName,providerSpecificData:a.providerSpecificData||{}}),d=(0,q.So)(c);return d.length?{models:d.map(a=>({id:a.id,name:a.name}))}:null}let H={...Object.fromEntries(Object.entries(d.Xg).map(([a,b])=>[b,a])),...f.js};function I(a){let b=a.indexOf("/");if(b<=0)return null;let c=a.slice(0,b);return(0,u.getCapabilitiesForModel)(H[c]||c,a.slice(b+1))}let J={kiro:async a=>{let b=await (0,o.cW)({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},qoder:async a=>G(a,"qoder"),"qoder-cn":async a=>G(a,"qoder-cn"),kimchi:async a=>{let b=await (0,p.av)({accessToken:a.accessToken,apiKey:a.apiKey,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},github:async a=>{let b=await x({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console,onCredentialsRefreshed:async b=>{await (0,C.vN)(a.id,{copilotToken:b.copilotToken,copilotTokenExpiresAt:b.copilotTokenExpiresAt,existingProviderSpecificData:a.providerSpecificData||{}})}});return b?.models?.length?{models:b.models}:null},clinepass:async a=>{let b=await (0,y.P)({accessToken:a.accessToken,apiKey:a.apiKey});return b?.models?.length?{models:b.models}:null},cline:async a=>{let b=await (0,y.M)({accessToken:a.accessToken,apiKey:a.apiKey});return b?.models?.length?{models:b.models}:null},"grok-cli":async a=>{let b=await (0,D.B)(a.providerSpecificData||{}),c=await (0,z.M)({...a,connectionId:a.id},{log:console,proxyOptions:{connectionProxyEnabled:!0===b.connectionProxyEnabled,connectionProxyUrl:b.connectionProxyUrl||"",connectionNoProxy:b.connectionNoProxy||"",vercelRelayUrl:b.vercelRelayUrl||"",strictProxy:!0===b.strictProxy},onCredentialsRefreshed:async b=>{await (0,C.vN)(a.id,{...b,existingProviderSpecificData:a.providerSpecificData||{}})}});return c?.models?.length?{models:c.models}:null},cursor:async a=>{let b=await (0,A.FD)({accessToken:a.accessToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null}},K="x-9r-internal-models-fetch",L={image:"image",tts:"tts",embedding:"embedding",stt:"stt",imageToText:"imageToText",video:"video"};function M(a){let b=a?.kind||a?.type;return b&&L[b]||"llm"}function N(a){let b=String(a).toLowerCase();return/embed/.test(b)?"embedding":/tts|speech|audio|voice/.test(b)?"tts":/image|imagen|dall-?e|flux|sdxl|sd-|stable-diffusion/.test(b)?"image":"llm"}async function O(a){if(!a?.apiKey)return[];let b="string"==typeof a?.providerSpecificData?.baseUrl?a.providerSpecificData.baseUrl.trim().replace(/\/$/,""):"";if(!b)return[];let c=`${b}/models`,d={"Content-Type":"application/json"};if((0,f.mq)(a.provider))d.Authorization=`Bearer ${a.apiKey}`;else{if(!(0,f.gb)(a.provider))return[];c.endsWith("/messages/models")?c=c.slice(0,-9):c.endsWith("/messages")&&(c=`${c.slice(0,-9)}/models`),d["x-api-key"]=a.apiKey,d["anthropic-version"]="2023-06-01",d.Authorization=`Bearer ${a.apiKey}`}try{var e;let a=new AbortController,b=setTimeout(()=>a.abort(),5e3),f=await fetch(c,{method:"GET",headers:{...d,[K]:"1"},cache:"no-store",signal:a.signal});if(clearTimeout(b),!f.ok)return[];let g=(e=await f.json(),Array.isArray(e)?e:e?.data||e?.models||e?.results||[]);return Array.from(new Set(g.map(a=>a?.id||a?.name||a?.model).filter(a=>"string"==typeof a&&""!==a.trim())))}catch{return[]}}function P(a,b){let c=f.AI_PROVIDERS[a],d=Array.isArray(c?.serviceKinds)&&c.serviceKinds.length>0?c.serviceKinds:["llm"];return b.some(a=>d.includes(a))}function Q(a,b){let c=a?.kind||"llm";return b.includes(c)}function R(a,b,c=null,d={},e=new Set){let f="string"==typeof a?.name?a.name:null;if(f){if(e.has(f))return{contextWindow:void 0,maxOutput:void 0};e.add(f)}let g=Array.isArray(a?.models)?a.models:[],h=c&&c.size>0,i=h?g.filter(a=>{if(!h||"string"!=typeof a)return!0;let b=a.indexOf("/");if(b<=0)return!0;let d=a.slice(0,b),e=H[d]||d;return c.has(e)}):g,j=i.length>0?i:g,k=[],l=1/0;try{for(let a of j){if("string"!=typeof a)continue;if(0>=a.indexOf("/")){let f=b?.get(a);if(f){let a=R(f,b,c,d,e);Number.isFinite(a.contextWindow)&&k.push(a.contextWindow),Number.isFinite(a.maxOutput)&&(l=Math.min(l,a.maxOutput));continue}}let f=I(a)||(0,u.getCapabilitiesForModel)(null,a);Number.isFinite(f?.contextWindow)&&k.push(f.contextWindow),Number.isFinite(f?.maxOutput)&&(l=Math.min(l,f.maxOutput))}}finally{f&&e.delete(f)}let{mode:m,custom:n}=(0,u.comboWindowSetting)(d?.[f]);return{contextWindow:(0,u.comboContextWindow)(k,m,n),seatMinWindow:k.length?Math.min(...k):void 0,seatMaxWindow:k.length?Math.max(...k):void 0,maxOutput:Number.isFinite(l)?l:void 0}}function S(a,b,c,d=null,f={}){let g={id:a.name,object:"model",owned_by:"combo",name:(0,e.X)(a.name)};if("webSearch"===a.kind||"webFetch"===a.kind)g.kind=a.kind;else{let e=(0,u.aggregateComboCapabilities)(a.models,b,I);e&&(g.capabilities=e);let{contextWindow:h,maxOutput:i}=R(a,c,d,f);Number.isFinite(h)&&(g.context_length=h,g.capabilities&&(g.capabilities.contextWindow=h)),Number.isFinite(i)&&(g.max_completion_tokens=i)}return g}let T=new Map;async function U(a){if(!a?.url||!a?.type)return[];let b=T.get(a.url);if(b&&Date.now()<b.expiresAt)return b.ids;try{let b=new AbortController,c=setTimeout(()=>b.abort(),5e3),d=await fetch(a.url,{cache:"no-store",signal:b.signal});if(clearTimeout(c),!d.ok)return[];let e=await d.json(),f=e.data??e.models??e,g=E.S[a.type];if(!g)return[];let h=(g(Array.isArray(f)?f:[])||[]).map(a=>a?.id).filter(a=>"string"==typeof a&&""!==a.trim());return T.set(a.url,{ids:h,expiresAt:Date.now()+6e5}),h}catch{return[]}}async function V(a,b={}){let c=!0===b.skipDynamicFetch,h=[],k=!1;try{h=(h=await (0,g.getProviderConnections)()).filter(a=>!1!==a.isActive)}catch(a){k=!0,console.log("Could not fetch providers, returning all models")}let l=[];try{l=await (0,g.Uv)()}catch(a){console.log("Could not fetch combos")}let n=Object.fromEntries(l.map(a=>[a.name,a.models])),o=new Map(l.filter(a=>"string"==typeof a?.name).map(a=>[a.name,a])),p={};try{p=await (0,g.mt)()}catch(a){console.log("Could not fetch settings, using defaults")}let q=p?.comboStrategies||{};if(p.exposeComboOnly){let b=new Set,c=[];for(let d of l){if(!Q(d,a))continue;let e=S(d,n,o,null,q);b.has(e.id)||(b.add(e.id),c.push(e))}return c}let r=[];try{r=await (0,g.uv)()}catch(a){console.log("Could not fetch custom models")}let s={};try{s=await (0,g.OM)()}catch(a){console.log("Could not fetch model aliases")}let t={};try{t=await (0,j.vF)()}catch(a){console.log("Could not fetch disabled models")}let v=(a,b)=>Array.isArray(t[a])&&t[a].includes(b),w={};try{w=await (0,m.Kz)()}catch(a){console.log("Could not fetch enabled models")}let x=(a,b)=>{let c=d.Xg[a]||a;for(let d of[w[(b?.providerSpecificData?.prefix||(0,f.wG)(a)||c).trim()],w[c],w[a],b?.providerSpecificData?.enabledModels]){if(!Array.isArray(d))continue;let a=Array.from(new Set(d.filter(a=>"string"==typeof a&&""!==a.trim())));if(a.length>0)return a}return[]},y=new Map;for(let a of h)a.isActive&&!y.has(a.provider)&&y.set(a.provider,a);for(let[a,b]of Object.entries(f.IS||{}))b?.noAuth&&!y.has(a)&&y.set(a,{id:"noauth",provider:a,isActive:!0});let z=[];for(let b of l){if(!Q(b,a))continue;let c=S(b,n,o,y,q);z.push(c)}if(0===h.length){let b=new Set;if(!k)for(let a of B.default)(!0===a.noAuth||a.transport?.noAuth===!0)&&b.add(a.id);for(let[c,f]of Object.entries(d.vq)){let d=H[c]||c;if(!P(d,a)||!k&&!b.has(d))continue;let g=x(d,null);for(let b of f)a.includes(M(b))&&(!(g.length>0)||g.includes(b.id))&&(v(c,b.id)||v(d,b.id)||z.push({id:`${c}/${b.id}`,object:"model",owned_by:c,name:(0,e.X)(b.id,b.name),capabilities:{...(0,u.getCapabilitiesForModel)(d,b.id),...(0,F.F)(r,[c,d],b.id)}}))}for(let b of r){if(!b?.id||b.type&&"llm"!==b.type||!a.includes("llm"))continue;let c=b.providerAlias;if(!c)continue;let d=String(b.id).trim();d&&z.push({id:`${c}/${d}`,object:"model",owned_by:c,name:(0,e.X)(d,b.name)})}}else for(let[b,g]of y.entries()){if(!P(b,a))continue;let h=d.Xg[b]||b,i=(g?.providerSpecificData?.prefix||(0,f.wG)(b)||h).trim(),j=d.vq[h]||[],k=x(b,g),l=k.length>0,m=(0,f.mq)(b)||(0,f.gb)(b),n=new Map(j.map(a=>[a.id,M(a)])),o=new Map(j.filter(a=>a?.id).map(a=>[a.id,a.name])),p=new Map,q=new Map,t=new Map,w=l?k:j.map(a=>a.id),y=new Map,A=new Map,B=new Map,C=r.filter(c=>{if(!c?.id)return!1;let e=(0,d.CP)(c)||"llm";if(!a.includes(e)&&!("imageToText"===e&&a.includes("llm")))return!1;let f=c.providerAlias;return f===h||f===i||f===b}).map(a=>{let b=String(a.id).trim();return b&&(y.set(b,(0,d.CP)(a)||"llm"),"string"==typeof a.name&&A.set(b,a.name),a.caps&&"object"==typeof a.caps&&B.set(b,a.caps)),b}).filter(a=>""!==a);m&&0===w.length&&0===C.length&&!c&&(w=await O(g));let D=J[b];if(D&&!l&&0===j.length&&0===C.length)try{let a=await D(g);a?.models?.length&&(w=a.models.map(a=>a.id),p=new Map(a.models.filter(a=>a?.id).map(a=>[a.id,M(a)])),q=new Map(a.models.filter(a=>a?.id&&"string"==typeof a.name).map(a=>[a.id,a.name])),t=new Map(a.models.filter(a=>a?.id&&a.capabilities).map(a=>[a.id,a.capabilities])))}catch(a){console.log(`Live model fetch failed for ${b}: ${a?.message||a}`)}for(let c of Array.from(new Set([...w.map(a=>a.startsWith(`${i}/`)?a.slice(i.length+1):a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim()),...C,...Object.values(s||{}).filter(a=>"string"==typeof a&&!!a.includes("/")&&(a.startsWith(`${i}/`)||a.startsWith(`${h}/`)||a.startsWith(`${b}/`))).map(a=>a.startsWith(`${i}/`)?a.slice(i.length+1):a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim())]))){let d=y.get(c),f=p.get(c),g=d||f||n.get(c)||N(c),j="imageToText"===g&&a.includes("llm");if(!a.includes(g)&&!j||v(i,c)||v(h,c)||v(b,c))continue;let k={id:`${i}/${c}`,object:"model",owned_by:i,name:(0,e.X)(c,A.get(c)||q.get(c)||o.get(c))},l=t.get(c)||(0,u.capabilitiesFromServiceKind)(d||f)||("llm"===g?(0,u.getCapabilitiesForModel)(b,c):null),m=(0,u.withDeclaredCapabilities)(l,B.get(c));if(m&&(k.capabilities=m),"llm"===g||j){let a=m?.contextWindow,d=m?.maxOutput;if(!Number.isFinite(a)||!Number.isFinite(d)){let e=(0,u.getCapabilitiesForModel)(b,c);Number.isFinite(a)||(a=e.contextWindow),Number.isFinite(d)||(d=e.maxOutput)}Number.isFinite(a)&&(k.context_length=a),Number.isFinite(d)&&(k.max_completion_tokens=d)}z.push(k)}let E=f.AI_PROVIDERS[b];a.includes("webSearch")&&E?.searchConfig&&z.push({id:`${i}/search`,object:"model",kind:"webSearch",owned_by:i}),a.includes("webFetch")&&E?.fetchConfig&&z.push({id:`${i}/fetch`,object:"model",kind:"webFetch",owned_by:i})}for(let[b,e]of Object.entries(f.AI_PROVIDERS)){if(e?.noAuth!==!0||e?.hidden===!0||y.has(b)||!P(b,a))continue;let g=d.Xg[b]||b,h=((0,f.wG)(b)||g).trim(),i=d.vq[g]||[],j=i.map(a=>a.id);e.modelsFetcher&&(!0===e.passthroughModels||0===j.length)&&!c&&(j=Array.from(new Set([...j,...await U(e.modelsFetcher)])));let k=new Map(i.map(a=>[a.id,M(a)]));for(let b of j){let c=k.get(b)||N(b);if(!a.includes(c)||v(h,b)||v(g,b))continue;let d={id:`${h}/${b}`,object:"model",owned_by:h};if("llm"===c){let a=(0,u.getCapabilitiesForModel)(g,b);a&&(d.capabilities=a),Number.isFinite(a?.contextWindow)&&(d.context_length=a.contextWindow),Number.isFinite(a?.maxOutput)&&(d.max_completion_tokens=a.maxOutput)}z.push(d)}}let A={};try{A=await (0,g.Br)()}catch{console.log("Could not fetch capability overrides")}let C=new Map,D=new Map;for(let[a,b]of y){let c=(b.providerSpecificData?.prefix||(0,f.wG)(a)||a).trim();C.set(c,a),D.set(a,c)}for(let a of z){let b=a.id.indexOf("/");if(b<0)continue;let c=a.id.slice(0,b),d=a.id.slice(b+1),e=C.get(c)||H[c]||c,g=(0,f.wG)(e)||e,h=A[`${c}|${d}`]||A[`${g}|${d}`]||A[`${e}|${d}`];h&&(a.capabilities={...a.capabilities||{},...h},Number.isFinite(h.contextWindow)&&(a.context_length=h.contextWindow),Number.isFinite(h.maxOutput)&&(a.max_completion_tokens=h.maxOutput))}let E=new Map(z.map(a=>[a.id,a]));for(let[a,b]of Object.entries(s||{})){if(!a||"string"!=typeof b)continue;let c=b.indexOf("/"),d=c<0?null:b.slice(0,c),e=H[d]||d,g=c<0?b:`${D.get(e)||(0,f.wG)(e)||e}/${b.slice(c+1)}`,h=E.get(g);h&&z.push({...h,id:a,owned_by:"alias"})}let G=[],I=new Set;for(let a of z)!a?.id||I.has(a.id)||(I.add(a.id),G.push(a));if(a.includes("llm")){let b=new Set;for(let a of h){let c=a.provider,e=d.Xg[c]||c,g=(a?.providerSpecificData?.prefix||(0,f.wG)(c)||e).trim();b.add(g),b.add(e),b.add(c)}for(let c of r){if(!c?.id)continue;let e=(0,d.CP)(c)||"llm",f="imageToText"===e;if(!a.includes(e)&&!f)continue;let g=c.providerAlias;if(!g||b.has(g))continue;let h=String(c.id).trim();if(!h||v(g,h))continue;let i=`${g}/${h}`;if(I.has(i))continue;I.add(i);let j={id:i,object:"model",owned_by:g},k=(0,u.getCapabilitiesForModel)(g,h);k&&(j.capabilities=k),Number.isFinite(k?.contextWindow)&&(j.context_length=k.contextWindow),Number.isFinite(k?.maxOutput)&&(j.max_completion_tokens=k.maxOutput),G.push(j)}if(!c&&h.some(a=>"opencode"===a.provider))for(let a of(await (0,i.Y)())){if(!a?.id)continue;let b=String(a.id).trim();if(!b||v("oc",b))continue;let c=`oc/${b}`;if(I.has(c))continue;I.add(c);let d={id:c,object:"model",owned_by:"oc"},e=(0,u.getCapabilitiesForModel)("oc",b);e&&(d.capabilities=e),Number.isFinite(e?.contextWindow)&&(d.context_length=e.contextWindow),Number.isFinite(e?.maxOutput)&&(d.max_completion_tokens=e.maxOutput),G.push(d)}}let K=b.apiKey,L=K?.allowedModels;return Array.isArray(L)&&0!==L.length?G.filter(a=>L.includes(a.id)):G}let W=new Map;async function X(a,b={}){var c,d;let e=(c=!0===b.skipDynamicFetch,d=b.apiKey?.id,`${c?"internal":"full"}::${d||"public"}::${a.join("|")}`),f=W.get(e);if(!0===b.forceFresh){let c=await V(a,b);return W.set(e,{data:c,builtAt:Date.now()}),c}if(f?.building)return f.data??f.building;if(f&&Date.now()-f.builtAt<3e4)return f.data;let g=V(a,b).then(a=>{let b=W.get(e),c=Array.isArray(b?.data)&&b.data.length>0;return 0===a.length&&c?b.data:(W.set(e,{data:a,builtAt:Date.now()}),a)}).catch(a=>{let b=W.get(e);throw b?.data?W.set(e,{data:b.data,builtAt:b.builtAt}):W.delete(e),a});return(W.set(e,f?{...f,building:g}:{data:null,builtAt:0,building:g}),f)?(g.catch(()=>{}),f.data):g}async function Y(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function Z(a){try{let b=a?.headers?.get(K)==="1",c=await _(a);if(c.error)return Response.json({error:{message:"Invalid API key",type:"authentication_error"}},{status:401,headers:{"Access-Control-Allow-Origin":"*"}});let d=await X(["llm"],{skipDynamicFetch:b,apiKey:c.key}),e=(0,h.Tr)(a),f=e?await (0,k.getApiKeyScopeByKey)(e):null,g=(0,l.C)(d,f),i=await (0,n.j)(await (0,n.TM)(a),g),j=[],m=new Set,o=(a,b)=>{if(!a||m.has(a))return;m.add(a);let c=b.context_length||b.capabilities?.contextWindow||272e3,d=Math.floor(.75*c);j.push({slug:a,id:a,display_name:a,description:b.description||"",context_window:c,max_context_window:c,auto_compact_token_limit:d,visibility:"list",supported_in_api:!0,priority:1,shell_type:"unified_exec",support_verbosity:!0,default_verbosity:"low",apply_patch_tool_type:"freeform",web_search_tool_type:"text_and_image",input_modalities:["text","image"],supports_image_detail_original:!0,truncation_policy:{mode:"tokens",limit:1e4},supports_parallel_tool_calls:!0,tool_mode:"code_mode_only",multi_agent_version:"v1",multi_agent_reasoning_effort:"xhigh",use_responses_lite:!0,supports_reasoning_effort_updates:!0,supports_reasoning_summary_parameter:!0,supports_reasoning_summaries:!0,supports_search_tool:!0,prefer_websockets:!1,default_reasoning_summary:"none",default_reasoning_level:"low",supported_reasoning_levels:[{effort:"low",description:"Fast responses with lighter reasoning"},{effort:"medium",description:"Balances speed and reasoning depth for everyday tasks"},{effort:"high",description:"Greater reasoning depth for complex problems"},{effort:"xhigh",description:"Extra high reasoning depth for complex problems"},{effort:"max",description:"Maximum reasoning depth for the hardest problems"}],experimental_supported_tools:["multi_agent_v1","send_user_message_async","clock"],base_instructions:"You are Codex, a coding agent.",model_messages:{instructions_template:"You are Codex, a coding agent."}})};for(let a of i)o(a.id,a),"string"==typeof a.id&&a.id.includes("/")&&o(a.id.slice(a.id.indexOf("/")+1),a);return Response.json({object:"list",data:i,models:j},{headers:{"Access-Control-Allow-Origin":"*"}})}catch(a){return console.log("Error fetching models:",a),Response.json({error:{message:a.message,type:"server_error"}},{status:500})}}async function $(a){let b=(0,h.Tr)(a);if(!b)return{present:!1,key:null};let c=await (0,g.y7)(b),d=c?.expiresAt&&new Date(c.expiresAt).getTime()<=Date.now();return{present:!0,key:c?.isActive&&!d?c:null}}async function _(a){let b=await (0,g.mt)(),c=await $(a);return b.requireApiKey&&!c.key||c.present&&!c.key?{error:!0}:{key:c.key}}},16655:(a,b,c)=>{c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(11708)},50287:(a,b,c)=>{c.d(b,{C:()=>e});var d=c(29686);function e(a,b){return b&&Array.isArray(a)?a.filter(a=>(0,d.MH)(b,a?.id)):a}},54402:(a,b,c)=>{c.d(b,{F:()=>e,G:()=>f});var d=c(11708);function e(a,b,c){let d=a.find(a=>b.includes(a.providerAlias)&&a.id===c&&(!a.type||"llm"===a.type));return d?.caps&&"object"==typeof d.caps?d.caps:null}async function f(a,b){try{return e(await (0,d.uv)(),a,b)}catch{return null}}},63825:(a,b,c)=>{c.d(b,{X:()=>j});let d={ai:"AI",claude:"Claude",deepseek:"DeepSeek",gemma:"Gemma",gemini:"Gemini",glm:"GLM",gpt:"GPT",grok:"Grok",hf:"HF",kimi:"Kimi",llama:"Llama",mimo:"MiMo",mistral:"Mistral",mixtral:"Mixtral",moonshot:"Moonshot",nova:"Nova",oss:"OSS",phi:"Phi",qwen:"Qwen",stt:"STT",tts:"TTS",vl:"VL"},e=new Set(["gpt"]),f=/^(19|20)\d{6}$/,g=/^v\d+([.\d]*)$/i,h=/^([A-Za-z]+)(\d[.\d]*)$/,i=a=>a.charAt(0).toUpperCase()+a.slice(1);function j(a,b){let c="string"==typeof a?a.trim():"",j="string"==typeof b?b.trim():"";return c&&j&&j!==c?j:function(a){let b,c,j=-1===(c=(b="string"==typeof a?a.trim():"").lastIndexOf("/"))?b:b.slice(c+1);if(!j)return"";let k=j.split(/[-_\s]+/).filter(Boolean),l=[];for(let a=0;a<k.length;a+=1){let b=k[a];if(f.test(b))continue;let c=b;for(;/^\d+$/.test(c)&&/^\d+$/.test(k[a+1]||"")&&!f.test(k[a+1]);)a+=1,c=`${c}.${k[a]}`;l.push(c)}if(0===l.length)return j;let m="",n=!1;for(let a of l){let b,c=a.toLowerCase(),f=d[c];if(!f){let b=a.match(h),c=b?d[b[1].toLowerCase()]:null;if(c){m=(m?`${m} ${c}`:c)+(e.has(b[1].toLowerCase())?`-${b[2]}`:` ${b[2]}`),n=!1;continue}}b=f||(g.test(a)?i(a):/^\d/.test(a)?a.toUpperCase():i(a));let j=/^\d/.test(a)||g.test(a);m?m+=n&&j?`-${b}`:` ${b}`:m=b,n=!!f&&e.has(c)}return m||j}(c||j)}},72162:(a,b,c)=>{c.d(b,{Kz:()=>d.Kz,gy:()=>d.gy});var d=c(11708)},81329:(a,b,c)=>{c.d(b,{CP:()=>f,Xg:()=>d.Xg,bs:()=>g,eh:()=>e,vq:()=>d.PROVIDER_MODELS,zc:()=>i});var d=c(29485);Object.entries(c(40615).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.PROVIDER_MODELS).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),f=(a,b=null)=>a?.kind||a?.type||b,g={vision:{icon:"visibility",label:"Vision",desc:"Supports image input",color:"text-blue-500"},reasoning:{icon:"neurology",label:"Reasoning",desc:"Supports reasoning / thinking",color:"text-amber-500"}},h={"gemini-live":{label:"Gemini Live (realtime WebSocket)",desc:"Streams audio over bidiGenerateContent and returns incremental transcription segments"}};function i(a){return"string"==typeof a&&Object.prototype.hasOwnProperty.call(h,a.trim())}Object.freeze(Object.keys(h))}};
|
|
1
|
+
"use strict";exports.id=2364,exports.ids=[2364],exports.modules={2364:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>$,OPTIONS:()=>Z,buildModelsList:()=>W,comboSeatLimits:()=>S,fetchCompatibleModelIds:()=>P,getCachedModelsList:()=>Y,getModelListPolicy:()=>aa});var d=c(81329),e=c(63825),f=c(40615),g=c(89718),h=c(23433),i=c(99471);c(38775);var j=c(16655),k=c(74452),l=c(50287),m=c(72162),n=c(27811),o=c(58569),p=c(86925),q=c(9155),r=c(89843),s=c(28730),t=c(85640),u=c(11847);let v=new Map;async function w(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),1e4);try{let d=await (0,r.proxyAwareFetch)("https://api.githubcopilot.com/models",{method:"GET",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json","Copilot-Integration-Id":"vscode-chat","editor-version":`vscode/${s.x0.VSCODE_VERSION}`,"editor-plugin-version":`copilot-chat/${s.x0.COPILOT_CHAT_VERSION}`,"user-agent":s.x0.USER_AGENT,"x-github-api-version":s.x0.API_VERSION},cache:"no-store",signal:b||c.signal});if(!d.ok){let a=Error(`Copilot /models returned ${d.status}`);throw a.status=d.status,a}let e=await d.json();return Array.isArray(e?.data)?e.data:[]}finally{clearTimeout(d)}}async function x(a,b={}){let c,d=a?.providerSpecificData?.copilotToken||a?.accessToken;if(!d)return b.log?.debug?.("COPILOT_MODELS","No copilotToken/accessToken; skipping live fetch"),null;let e=a?.providerSpecificData?.copilotToken||a?.accessToken||"copilot-anonymous",f=Date.now();if(!b.forceRefresh){let a=v.get(e);if(a&&a.expiresAt>f)return{models:a.models}}try{c=await w(d,b.signal)}catch(d){if(!d||401!==d.status&&403!==d.status||!a.accessToken)return b.log?.warn?.("COPILOT_MODELS",`Live model fetch failed: ${d?.message||d}`),null;{b.log?.info?.("COPILOT_MODELS",`Got ${d.status}; refreshing Copilot token`);let e=await (0,t.jR)(a.accessToken);if(!e?.token)return b.log?.warn?.("COPILOT_MODELS","Token refresh did not return a token"),null;if("function"==typeof b.onCredentialsRefreshed)try{await b.onCredentialsRefreshed({copilotToken:e.token,copilotTokenExpiresAt:e.expiresAt})}catch(a){b.log?.warn?.("COPILOT_MODELS",`onCredentialsRefreshed failed: ${a?.message||a}`)}try{c=await w(e.token,b.signal)}catch(a){return b.log?.warn?.("COPILOT_MODELS",`Retry after refresh failed: ${a?.message||a}`),null}}}let g=function(a){let b=new Set(["auto"]),c=[{id:"auto",name:"Auto"}];for(let d of a){if(!d||"object"!=typeof d||d.capabilities?.type!=="chat"||d.policy&&"enabled"!==d.policy.state)continue;let a=d.id;if(!a||b.has(a))continue;b.add(a);let e=d.capabilities||{},f=e.limits||{},g=e.supports||{},h={...(0,u.getCapabilitiesForModel)("github",a),...Number.isFinite(f.max_context_window_tokens)?{contextWindow:f.max_context_window_tokens}:{},...Number.isFinite(f.max_prompt_tokens)?{maxPrompt:f.max_prompt_tokens}:{},...Number.isFinite(f.max_output_tokens)?{maxOutput:f.max_output_tokens}:{},..."boolean"==typeof g.vision?{vision:g.vision}:{},..."boolean"==typeof g.tool_calls?{tools:g.tool_calls}:{},...!0===g.adaptive_thinking||Array.isArray(g.reasoning_effort)?{reasoning:!0}:{}};c.push({id:a,name:d.name||a,capabilities:h})}return c}(c);return g.length?(v.set(e,{expiresAt:f+3e5,models:g}),{models:g}):null}var y=c(40694),z=c(63123),A=c(26588);c(49934);var B=c(95578),C=c(67828),D=c(39326),E=c(68001),F=c(54402);async function G(a,b){let c=await (0,q.EV)({provider:b,accessToken:a.accessToken,apiKey:a.apiKey,refreshToken:a.refreshToken,email:a.email,displayName:a.displayName,providerSpecificData:a.providerSpecificData||{}}),d=(0,q.So)(c);return d.length?{models:d.map(a=>({id:a.id,name:a.name}))}:null}let H={...Object.fromEntries(Object.entries(d.Xg).map(([a,b])=>[b,a])),...f.js};function I(a){let b=new Map;if(!a)return b;for(let[c,e]of a instanceof Map?a.entries():Array.isArray(a)?a:Object.entries(a)){let a=(e?.providerSpecificData?.prefix||(0,f.wG)(c)||d.Xg[c]||c).trim();a&&!b.has(a)&&b.set(a,c)}return b}function J(a,b=null){let c=a.indexOf("/");if(c<=0)return null;let d=a.slice(0,c),e=b?.get(d)||H[d]||d;return(0,u.getCapabilitiesForModel)(e,a.slice(c+1))}let K={kiro:async a=>{let b=await (0,o.cW)({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},qoder:async a=>G(a,"qoder"),"qoder-cn":async a=>G(a,"qoder-cn"),kimchi:async a=>{let b=await (0,p.av)({accessToken:a.accessToken,apiKey:a.apiKey,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},github:async a=>{let b=await x({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console,onCredentialsRefreshed:async b=>{await (0,C.vN)(a.id,{copilotToken:b.copilotToken,copilotTokenExpiresAt:b.copilotTokenExpiresAt,existingProviderSpecificData:a.providerSpecificData||{}})}});return b?.models?.length?{models:b.models}:null},clinepass:async a=>{let b=await (0,y.P)({accessToken:a.accessToken,apiKey:a.apiKey});return b?.models?.length?{models:b.models}:null},cline:async a=>{let b=await (0,y.M)({accessToken:a.accessToken,apiKey:a.apiKey});return b?.models?.length?{models:b.models}:null},"grok-cli":async a=>{let b=await (0,D.B)(a.providerSpecificData||{}),c=await (0,z.M)({...a,connectionId:a.id},{log:console,proxyOptions:{connectionProxyEnabled:!0===b.connectionProxyEnabled,connectionProxyUrl:b.connectionProxyUrl||"",connectionNoProxy:b.connectionNoProxy||"",vercelRelayUrl:b.vercelRelayUrl||"",strictProxy:!0===b.strictProxy},onCredentialsRefreshed:async b=>{await (0,C.vN)(a.id,{...b,existingProviderSpecificData:a.providerSpecificData||{}})}});return c?.models?.length?{models:c.models}:null},cursor:async a=>{let b=await (0,A.FD)({accessToken:a.accessToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null}},L="x-9r-internal-models-fetch",M={image:"image",tts:"tts",embedding:"embedding",stt:"stt",imageToText:"imageToText",video:"video"};function N(a){let b=a?.kind||a?.type;return b&&M[b]||"llm"}function O(a){let b=String(a).toLowerCase();return/embed/.test(b)?"embedding":/tts|speech|audio|voice/.test(b)?"tts":/image|imagen|dall-?e|flux|sdxl|sd-|stable-diffusion/.test(b)?"image":"llm"}async function P(a){if(!a?.apiKey)return[];let b="string"==typeof a?.providerSpecificData?.baseUrl?a.providerSpecificData.baseUrl.trim().replace(/\/$/,""):"";if(!b)return[];let c=`${b}/models`,d={"Content-Type":"application/json"};if((0,f.mq)(a.provider))d.Authorization=`Bearer ${a.apiKey}`;else{if(!(0,f.gb)(a.provider))return[];c.endsWith("/messages/models")?c=c.slice(0,-9):c.endsWith("/messages")&&(c=`${c.slice(0,-9)}/models`),d["x-api-key"]=a.apiKey,d["anthropic-version"]="2023-06-01",d.Authorization=`Bearer ${a.apiKey}`}try{var e;let a=new AbortController,b=setTimeout(()=>a.abort(),5e3),f=await fetch(c,{method:"GET",headers:{...d,[L]:"1"},cache:"no-store",signal:a.signal});if(clearTimeout(b),!f.ok)return[];let g=(e=await f.json(),Array.isArray(e)?e:e?.data||e?.models||e?.results||[]);return Array.from(new Set(g.map(a=>a?.id||a?.name||a?.model).filter(a=>"string"==typeof a&&""!==a.trim())))}catch{return[]}}function Q(a,b){let c=f.AI_PROVIDERS[a],d=Array.isArray(c?.serviceKinds)&&c.serviceKinds.length>0?c.serviceKinds:["llm"];return b.some(a=>d.includes(a))}function R(a,b){let c=a?.kind||"llm";return b.includes(c)}function S(a,b,c=null,d={},e=new Set,g=null){let h="string"==typeof a?.name?a.name:null;if(h){if(e.has(h))return{contextWindow:void 0,maxOutput:void 0};e.add(h)}let i=g||I(c),j=Array.isArray(a?.models)?a.models:[],k=c&&(c instanceof Map?c.size>0:Object.keys(c).length>0),l=k?j.filter(a=>{if(!k||"string"!=typeof a)return!0;let b=a.indexOf("/");if(b<=0)return!0;let d=a.slice(0,b),e=i?.get(d)||H[d]||d;return!H[d]&&!f.AI_PROVIDERS[e]||(c instanceof Map?c.has(e):!!c[e])}):j,m=l.length>0?l:j,n=[],o=1/0,p=!1,q=!1;try{for(let a of m){if("string"!=typeof a)continue;if(0>=a.indexOf("/")){let f=b?.get(a);if(f){let a=S(f,b,c,d,e,i);Number.isFinite(a.contextWindow)?n.push(a.contextWindow):p=!0,Number.isFinite(a.maxOutput)?o=Math.min(o,a.maxOutput):q=!0;continue}}let f=J(a,i)||(0,u.getCapabilitiesForModel)(null,a);Number.isFinite(f?.contextWindow)?n.push(f.contextWindow):p=!0,Number.isFinite(f?.maxOutput)?o=Math.min(o,f.maxOutput):q=!0}}finally{h&&e.delete(h)}let{mode:r,custom:s}=(0,u.comboWindowSetting)(d?.[h]),t=(0,u.comboContextWindow)(n,r,s);return{contextWindow:p||!Number.isFinite(t)?void 0:t,seatMinWindow:n.length?Math.min(...n):void 0,seatMaxWindow:n.length?Math.max(...n):void 0,maxOutput:q||!Number.isFinite(o)?void 0:o}}function T(a,b,c,d=null,f={}){let g={id:a.name,object:"model",owned_by:"combo",name:(0,e.X)(a.name)};if("webSearch"===a.kind||"webFetch"===a.kind)g.kind=a.kind;else{let e=I(d),h=(0,u.aggregateComboCapabilities)(a.models,b,a=>J(a,e));h&&(g.capabilities=h);let{contextWindow:i,maxOutput:j}=S(a,c,d,f,new Set,e);Number.isFinite(i)&&(g.context_length=i,g.capabilities&&(g.capabilities.contextWindow=i)),Number.isFinite(j)&&(g.max_completion_tokens=j)}return g}let U=new Map;async function V(a){if(!a?.url||!a?.type)return[];let b=U.get(a.url);if(b&&Date.now()<b.expiresAt)return b.ids;try{let b=new AbortController,c=setTimeout(()=>b.abort(),5e3),d=await fetch(a.url,{cache:"no-store",signal:b.signal});if(clearTimeout(c),!d.ok)return[];let e=await d.json(),f=e.data??e.models??e,g=E.S[a.type];if(!g)return[];let h=(g(Array.isArray(f)?f:[])||[]).map(a=>a?.id).filter(a=>"string"==typeof a&&""!==a.trim());return U.set(a.url,{ids:h,expiresAt:Date.now()+6e5}),h}catch{return[]}}async function W(a,b={}){let c=!0===b.skipDynamicFetch,h=[],k=!1;try{h=(h=await (0,g.getProviderConnections)()).filter(a=>!1!==a.isActive)}catch(a){k=!0,console.log("Could not fetch providers, returning all models")}let l=[];try{l=await (0,g.Uv)()}catch(a){console.log("Could not fetch combos")}let n=Object.fromEntries(l.map(a=>[a.name,a.models])),o=new Map(l.filter(a=>"string"==typeof a?.name).map(a=>[a.name,a])),p={};try{p=await (0,g.mt)()}catch(a){console.log("Could not fetch settings, using defaults")}let q=p?.comboStrategies||{};if(p.exposeComboOnly){let b=new Set,c=[];for(let d of l){if(!R(d,a))continue;let e=T(d,n,o,null,q);b.has(e.id)||(b.add(e.id),c.push(e))}return c}let r=[];try{r=await (0,g.uv)()}catch(a){console.log("Could not fetch custom models")}let s={};try{s=await (0,g.OM)()}catch(a){console.log("Could not fetch model aliases")}let t={};try{t=await (0,j.vF)()}catch(a){console.log("Could not fetch disabled models")}let v=(a,b)=>Array.isArray(t[a])&&t[a].includes(b),w={};try{w=await (0,m.Kz)()}catch(a){console.log("Could not fetch enabled models")}let x=(a,b)=>{let c=d.Xg[a]||a;for(let d of[w[(b?.providerSpecificData?.prefix||(0,f.wG)(a)||c).trim()],w[c],w[a],b?.providerSpecificData?.enabledModels]){if(!Array.isArray(d))continue;let a=Array.from(new Set(d.filter(a=>"string"==typeof a&&""!==a.trim())));if(a.length>0)return a}return[]},y=new Map;for(let a of h)a.isActive&&!y.has(a.provider)&&y.set(a.provider,a);for(let[a,b]of Object.entries(f.IS||{}))b?.noAuth&&!y.has(a)&&y.set(a,{id:"noauth",provider:a,isActive:!0});let z=[];for(let b of l){if(!R(b,a))continue;let c=T(b,n,o,y,q);z.push(c)}if(0===h.length){let b=new Set;if(!k)for(let a of B.default)(!0===a.noAuth||a.transport?.noAuth===!0)&&b.add(a.id);for(let[c,f]of Object.entries(d.vq)){let d=H[c]||c;if(!Q(d,a)||!k&&!b.has(d))continue;let g=x(d,null);for(let b of f)a.includes(N(b))&&(!(g.length>0)||g.includes(b.id))&&(v(c,b.id)||v(d,b.id)||z.push({id:`${c}/${b.id}`,object:"model",owned_by:c,name:(0,e.X)(b.id,b.name),capabilities:{...(0,u.getCapabilitiesForModel)(d,b.id),...(0,F.F)(r,[c,d],b.id)}}))}for(let b of r){if(!b?.id||b.type&&"llm"!==b.type||!a.includes("llm"))continue;let c=b.providerAlias;if(!c)continue;let d=String(b.id).trim();d&&z.push({id:`${c}/${d}`,object:"model",owned_by:c,name:(0,e.X)(d,b.name)})}}else for(let[b,g]of y.entries()){if(!Q(b,a))continue;let h=d.Xg[b]||b,i=(g?.providerSpecificData?.prefix||(0,f.wG)(b)||h).trim(),j=d.vq[h]||[],k=x(b,g),l=k.length>0,m=(0,f.mq)(b)||(0,f.gb)(b),n=new Map(j.map(a=>[a.id,N(a)])),o=new Map(j.filter(a=>a?.id).map(a=>[a.id,a.name])),p=new Map,q=new Map,t=new Map,w=l?k:j.map(a=>a.id),y=new Map,A=new Map,B=new Map,C=r.filter(c=>{if(!c?.id)return!1;let e=(0,d.CP)(c)||"llm";if(!a.includes(e)&&!("imageToText"===e&&a.includes("llm")))return!1;let f=c.providerAlias;return f===h||f===i||f===b}).map(a=>{let b=String(a.id).trim();return b&&(y.set(b,(0,d.CP)(a)||"llm"),"string"==typeof a.name&&A.set(b,a.name),a.caps&&"object"==typeof a.caps&&B.set(b,a.caps)),b}).filter(a=>""!==a);m&&0===w.length&&0===C.length&&!c&&(w=await P(g));let D=K[b];if(D&&!l&&0===j.length&&0===C.length)try{let a=await D(g);a?.models?.length&&(w=a.models.map(a=>a.id),p=new Map(a.models.filter(a=>a?.id).map(a=>[a.id,N(a)])),q=new Map(a.models.filter(a=>a?.id&&"string"==typeof a.name).map(a=>[a.id,a.name])),t=new Map(a.models.filter(a=>a?.id&&a.capabilities).map(a=>[a.id,a.capabilities])))}catch(a){console.log(`Live model fetch failed for ${b}: ${a?.message||a}`)}for(let c of Array.from(new Set([...w.map(a=>a.startsWith(`${i}/`)?a.slice(i.length+1):a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim()),...C,...Object.values(s||{}).filter(a=>"string"==typeof a&&!!a.includes("/")&&(a.startsWith(`${i}/`)||a.startsWith(`${h}/`)||a.startsWith(`${b}/`))).map(a=>a.startsWith(`${i}/`)?a.slice(i.length+1):a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim())]))){let d=y.get(c),f=p.get(c),g=d||f||n.get(c)||O(c),j="imageToText"===g&&a.includes("llm");if(!a.includes(g)&&!j||v(i,c)||v(h,c)||v(b,c))continue;let k={id:`${i}/${c}`,object:"model",owned_by:i,name:(0,e.X)(c,A.get(c)||q.get(c)||o.get(c))},l=t.get(c)||(0,u.capabilitiesFromServiceKind)(d||f)||("llm"===g?(0,u.getCapabilitiesForModel)(b,c):null),m=(0,u.withDeclaredCapabilities)(l,B.get(c));if(m&&(k.capabilities=m),"llm"===g||j){let a=m?.contextWindow,d=m?.maxOutput;if(!Number.isFinite(a)||!Number.isFinite(d)){let e=(0,u.getCapabilitiesForModel)(b,c);Number.isFinite(a)||(a=e.contextWindow),Number.isFinite(d)||(d=e.maxOutput)}Number.isFinite(a)&&(k.context_length=a),Number.isFinite(d)&&(k.max_completion_tokens=d)}z.push(k)}let E=f.AI_PROVIDERS[b];a.includes("webSearch")&&E?.searchConfig&&z.push({id:`${i}/search`,object:"model",kind:"webSearch",owned_by:i}),a.includes("webFetch")&&E?.fetchConfig&&z.push({id:`${i}/fetch`,object:"model",kind:"webFetch",owned_by:i})}for(let[b,e]of Object.entries(f.AI_PROVIDERS)){if(e?.noAuth!==!0||e?.hidden===!0||y.has(b)||!Q(b,a))continue;let g=d.Xg[b]||b,h=((0,f.wG)(b)||g).trim(),i=d.vq[g]||[],j=i.map(a=>a.id);e.modelsFetcher&&(!0===e.passthroughModels||0===j.length)&&!c&&(j=Array.from(new Set([...j,...await V(e.modelsFetcher)])));let k=new Map(i.map(a=>[a.id,N(a)]));for(let b of j){let c=k.get(b)||O(b);if(!a.includes(c)||v(h,b)||v(g,b))continue;let d={id:`${h}/${b}`,object:"model",owned_by:h};if("llm"===c){let a=(0,u.getCapabilitiesForModel)(g,b);a&&(d.capabilities=a),Number.isFinite(a?.contextWindow)&&(d.context_length=a.contextWindow),Number.isFinite(a?.maxOutput)&&(d.max_completion_tokens=a.maxOutput)}z.push(d)}}let A={};try{A=await (0,g.Br)()}catch{console.log("Could not fetch capability overrides")}let C=new Map,D=new Map;for(let[a,b]of y){let c=(b.providerSpecificData?.prefix||(0,f.wG)(a)||a).trim();C.set(c,a),D.set(a,c)}for(let a of z){let b=a.id.indexOf("/");if(b<0)continue;let c=a.id.slice(0,b),d=a.id.slice(b+1),e=C.get(c)||H[c]||c,g=(0,f.wG)(e)||e,h=A[`${c}|${d}`]||A[`${g}|${d}`]||A[`${e}|${d}`];h&&(a.capabilities={...a.capabilities||{},...h},Number.isFinite(h.contextWindow)&&(a.context_length=h.contextWindow),Number.isFinite(h.maxOutput)&&(a.max_completion_tokens=h.maxOutput))}let E=new Map(z.map(a=>[a.id,a]));for(let[a,b]of Object.entries(s||{})){if(!a||"string"!=typeof b)continue;let c=b.indexOf("/"),d=c<0?null:b.slice(0,c),e=H[d]||d,g=c<0?b:`${D.get(e)||(0,f.wG)(e)||e}/${b.slice(c+1)}`,h=E.get(g);h&&z.push({...h,id:a,owned_by:"alias"})}let G=[],I=new Set;for(let a of z)!a?.id||I.has(a.id)||(I.add(a.id),G.push(a));if(a.includes("llm")){let b=new Set;for(let a of h){let c=a.provider,e=d.Xg[c]||c,g=(a?.providerSpecificData?.prefix||(0,f.wG)(c)||e).trim();b.add(g),b.add(e),b.add(c)}for(let c of r){if(!c?.id)continue;let e=(0,d.CP)(c)||"llm",f="imageToText"===e;if(!a.includes(e)&&!f)continue;let g=c.providerAlias;if(!g||b.has(g))continue;let h=String(c.id).trim();if(!h||v(g,h))continue;let i=`${g}/${h}`;if(I.has(i))continue;I.add(i);let j={id:i,object:"model",owned_by:g},k=(0,u.getCapabilitiesForModel)(g,h);k&&(j.capabilities=k),Number.isFinite(k?.contextWindow)&&(j.context_length=k.contextWindow),Number.isFinite(k?.maxOutput)&&(j.max_completion_tokens=k.maxOutput),G.push(j)}if(!c&&h.some(a=>"opencode"===a.provider))for(let a of(await (0,i.Y)())){if(!a?.id)continue;let b=String(a.id).trim();if(!b||v("oc",b))continue;let c=`oc/${b}`;if(I.has(c))continue;I.add(c);let d={id:c,object:"model",owned_by:"oc"},e=(0,u.getCapabilitiesForModel)("oc",b);e&&(d.capabilities=e),Number.isFinite(e?.contextWindow)&&(d.context_length=e.contextWindow),Number.isFinite(e?.maxOutput)&&(d.max_completion_tokens=e.maxOutput),G.push(d)}}let J=b.apiKey,L=J?.allowedModels;return Array.isArray(L)&&0!==L.length?G.filter(a=>L.includes(a.id)):G}let X=new Map;async function Y(a,b={}){var c,d;let e=(c=!0===b.skipDynamicFetch,d=b.apiKey?.id,`${c?"internal":"full"}::${d||"public"}::${a.join("|")}`),f=X.get(e);if(!0===b.forceFresh){let c=await W(a,b);return X.set(e,{data:c,builtAt:Date.now()}),c}if(f?.building)return f.data??f.building;if(f&&Date.now()-f.builtAt<3e4)return f.data;let g=W(a,b).then(a=>{let b=X.get(e),c=Array.isArray(b?.data)&&b.data.length>0;return 0===a.length&&c?b.data:(X.set(e,{data:a,builtAt:Date.now()}),a)}).catch(a=>{let b=X.get(e);throw b?.data?X.set(e,{data:b.data,builtAt:b.builtAt}):X.delete(e),a});return(X.set(e,f?{...f,building:g}:{data:null,builtAt:0,building:g}),f)?(g.catch(()=>{}),f.data):g}async function Z(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function $(a){try{let b=a?.headers?.get(L)==="1",c=await aa(a);if(c.error)return Response.json({error:{message:"Invalid API key",type:"authentication_error"}},{status:401,headers:{"Access-Control-Allow-Origin":"*"}});let d=await Y(["llm"],{skipDynamicFetch:b,apiKey:c.key}),e=(0,h.Tr)(a),f=e?await (0,k.getApiKeyScopeByKey)(e):null,g=(0,l.C)(d,f),i=await (0,n.j)(await (0,n.TM)(a),g),j=[],m=new Set,o=(a,b)=>{if(!a||m.has(a))return;m.add(a);let c=b.context_length||b.capabilities?.contextWindow||272e3,d=Math.floor(.75*c);j.push({slug:a,id:a,display_name:a,description:b.description||"",context_window:c,max_context_window:c,auto_compact_token_limit:d,visibility:"list",supported_in_api:!0,priority:1,shell_type:"unified_exec",support_verbosity:!0,default_verbosity:"low",apply_patch_tool_type:"freeform",web_search_tool_type:"text_and_image",input_modalities:["text","image"],supports_image_detail_original:!0,truncation_policy:{mode:"tokens",limit:1e4},supports_parallel_tool_calls:!0,tool_mode:"code_mode_only",multi_agent_version:"v1",multi_agent_reasoning_effort:"xhigh",use_responses_lite:!0,supports_reasoning_effort_updates:!0,supports_reasoning_summary_parameter:!0,supports_reasoning_summaries:!0,supports_search_tool:!0,prefer_websockets:!1,default_reasoning_summary:"none",default_reasoning_level:"low",supported_reasoning_levels:[{effort:"low",description:"Fast responses with lighter reasoning"},{effort:"medium",description:"Balances speed and reasoning depth for everyday tasks"},{effort:"high",description:"Greater reasoning depth for complex problems"},{effort:"xhigh",description:"Extra high reasoning depth for complex problems"},{effort:"max",description:"Maximum reasoning depth for the hardest problems"}],experimental_supported_tools:["multi_agent_v1","send_user_message_async","clock"],base_instructions:"You are Codex, a coding agent.",model_messages:{instructions_template:"You are Codex, a coding agent."}})};for(let a of i)o(a.id,a),"string"==typeof a.id&&a.id.includes("/")&&o(a.id.slice(a.id.indexOf("/")+1),a);return Response.json({object:"list",data:i,models:j},{headers:{"Access-Control-Allow-Origin":"*"}})}catch(a){return console.log("Error fetching models:",a),Response.json({error:{message:a.message,type:"server_error"}},{status:500})}}async function _(a){let b=(0,h.Tr)(a);if(!b)return{present:!1,key:null};let c=await (0,g.y7)(b),d=c?.expiresAt&&new Date(c.expiresAt).getTime()<=Date.now();return{present:!0,key:c?.isActive&&!d?c:null}}async function aa(a){let b=await (0,g.mt)(),c=await _(a);return b.requireApiKey&&!c.key||c.present&&!c.key?{error:!0}:{key:c.key}}},16655:(a,b,c)=>{c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(11708)},50287:(a,b,c)=>{c.d(b,{C:()=>e});var d=c(29686);function e(a,b){return b&&Array.isArray(a)?a.filter(a=>(0,d.MH)(b,a?.id)):a}},54402:(a,b,c)=>{c.d(b,{F:()=>e,G:()=>f});var d=c(11708);function e(a,b,c){let d=a.find(a=>b.includes(a.providerAlias)&&a.id===c&&(!a.type||"llm"===a.type));return d?.caps&&"object"==typeof d.caps?d.caps:null}async function f(a,b){try{return e(await (0,d.uv)(),a,b)}catch{return null}}},63825:(a,b,c)=>{c.d(b,{X:()=>j});let d={ai:"AI",claude:"Claude",deepseek:"DeepSeek",gemma:"Gemma",gemini:"Gemini",glm:"GLM",gpt:"GPT",grok:"Grok",hf:"HF",kimi:"Kimi",llama:"Llama",mimo:"MiMo",mistral:"Mistral",mixtral:"Mixtral",moonshot:"Moonshot",nova:"Nova",oss:"OSS",phi:"Phi",qwen:"Qwen",stt:"STT",tts:"TTS",vl:"VL"},e=new Set(["gpt"]),f=/^(19|20)\d{6}$/,g=/^v\d+([.\d]*)$/i,h=/^([A-Za-z]+)(\d[.\d]*)$/,i=a=>a.charAt(0).toUpperCase()+a.slice(1);function j(a,b){let c="string"==typeof a?a.trim():"",j="string"==typeof b?b.trim():"";return c&&j&&j!==c?j:function(a){let b,c,j=-1===(c=(b="string"==typeof a?a.trim():"").lastIndexOf("/"))?b:b.slice(c+1);if(!j)return"";let k=j.split(/[-_\s]+/).filter(Boolean),l=[];for(let a=0;a<k.length;a+=1){let b=k[a];if(f.test(b))continue;let c=b;for(;/^\d+$/.test(c)&&/^\d+$/.test(k[a+1]||"")&&!f.test(k[a+1]);)a+=1,c=`${c}.${k[a]}`;l.push(c)}if(0===l.length)return j;let m="",n=!1;for(let a of l){let b,c=a.toLowerCase(),f=d[c];if(!f){let b=a.match(h),c=b?d[b[1].toLowerCase()]:null;if(c){m=(m?`${m} ${c}`:c)+(e.has(b[1].toLowerCase())?`-${b[2]}`:` ${b[2]}`),n=!1;continue}}b=f||(g.test(a)?i(a):/^\d/.test(a)?a.toUpperCase():i(a));let j=/^\d/.test(a)||g.test(a);m?m+=n&&j?`-${b}`:` ${b}`:m=b,n=!!f&&e.has(c)}return m||j}(c||j)}},72162:(a,b,c)=>{c.d(b,{Kz:()=>d.Kz,gy:()=>d.gy});var d=c(11708)},81329:(a,b,c)=>{c.d(b,{CP:()=>f,Xg:()=>d.Xg,bs:()=>g,eh:()=>e,vq:()=>d.PROVIDER_MODELS,zc:()=>i});var d=c(29485);Object.entries(c(40615).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.PROVIDER_MODELS).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),f=(a,b=null)=>a?.kind||a?.type||b,g={vision:{icon:"visibility",label:"Vision",desc:"Supports image input",color:"text-blue-500"},reasoning:{icon:"neurology",label:"Reasoning",desc:"Supports reasoning / thinking",color:"text-amber-500"}},h={"gemini-live":{label:"Gemini Live (realtime WebSocket)",desc:"Streams audio over bidiGenerateContent and returns incremental transcription segments"}};function i(a){return"string"==typeof a&&Object.prototype.hasOwnProperty.call(h,a.trim())}Object.freeze(Object.keys(h))}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=2791,exports.ids=[2791],exports.modules={47370:(a,b,c)=>{c.d(b,{BY:()=>d.BY,E5:()=>d.E5,QB:()=>d.QB,SL:()=>d.SL,Zx:()=>d.Zx,_V:()=>d._V,j$:()=>d.j$,ox:()=>d.ox,rg:()=>d.rg,sZ:()=>d.sZ,uw:()=>d.uw,wV:()=>d.wV});var d=c(11708)},62320:(a,b,c)=>{c.d(b,{BW:()=>h,ET:()=>i,Ho:()=>k,ck:()=>d,kF:()=>l,rc:()=>j});let d={STREAM:"stream",JSON:"json"},e=new Map,f=(a,b,c)=>`${c}:${a}/${b}`,g=a=>!!a&&Date.now()-a<=6e5;function h(a,b){if(a?.stream===!0)return d.STREAM;if(a?.stream===!1)return d.JSON;let c=b?.accept||"";return c.includes("application/json")&&!c.includes("text/event-stream")?d.JSON:d.STREAM}function i(a,b,c,g,h){if(!a||!b||!h?.total||!(g>=20))return;let i=c===d.STREAM?h.total-h.ttft:h.total;if(!(i>=300))return;let k=g/(i/1e3),l=f(a,b,c),m=j(a,b,c);e.set(l,{...e.get(l),tps:null===m?k:m+.3*(k-m),updatedAt:Date.now()})}function j(a,b,c){let d=e.get(f(a,b,c));return g(d?.updatedAt)?d.tps:null}function k(a,b,c){let d=f(a,b,c);e.set(d,{...e.get(d),probedAt:Date.now()})}function l(a,b,c){return g(e.get(f(a,b,c))?.probedAt)}}};
|
|
1
|
+
"use strict";exports.id=2791,exports.ids=[2791],exports.modules={4598:(a,b,c)=>{function d(a){let b=a?.headers;if(!b?.get)return[];let c=[],d=a=>{"string"==typeof a&&a&&!c.includes(a)&&c.push(a)},e=b.get("Authorization");return e?.startsWith("Bearer ")&&d(e.slice(7)),d(b.get("x-api-key")),d(b.get("x-goog-api-key")),d(function(a){let b=a.nextUrl?.searchParams;if(b?.get)return b.get("key");try{return new URL(a.url).searchParams.get("key")}catch{return null}}(a)),c}c.d(b,{T:()=>d})},4905:(a,b,c)=>{c.d(b,{$U:()=>d,RK:()=>g,pb:()=>e,uB:()=>f});let d="data: [DONE]\n\n",e={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"},f={"Content-Type":"text/event-stream","Cache-Control":"no-cache","X-Accel-Buffering":"no"},g={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive","Access-Control-Allow-Origin":"*"}},19225:(a,b,c)=>{a.exports=c(44870)},23433:(a,b,c)=>{c.d(b,{Pt:()=>E,Tr:()=>F,c1:()=>C,kI:()=>H,vk:()=>D,$A:()=>G});var d=c(89718),e=c(39326),f=c(49263),g=c(87252),h=c(49190),i=c(58336),j=c(40615),k=c(79963),l=c(30260),m=c(6165);let n=new Map;function o(a,b){if(!a||!b)return null;let c="number"==typeof b?b:new Date(b).getTime();return!Number.isFinite(c)||Date.now()-c>=12e4?null:a}async function p(a){let b=await (0,e.B)(a.providerSpecificData||{}).then(a=>({connectionProxyEnabled:!0===a.connectionProxyEnabled,connectionProxyUrl:a.connectionProxyUrl||"",connectionNoProxy:a.connectionNoProxy||"",vercelRelayUrl:a.vercelRelayUrl||"",strictProxy:!1})),c=(0,l.my)(a,b,{}),d=new Promise((a,b)=>setTimeout(()=>b(Error("quota fetch timeout")),3e3)),f=await Promise.race([c,d]),g=(0,m.wi)(a.provider,f);return g||null}async function q(a){var b,c;if(!Object.values((0,m.fo)(a)).some(a=>Number(a)>0&&100>=Number(a)))return{paused:!1,reason:"disabled",snapshot:null};if(!(0,m.Kr)(a))return{paused:!1,reason:"ineligible",snapshot:null};let e=function(a){let b=n.get(a.id);if(b){let a=o(b.snapshot,b.fetchedAt);if(a)return a}let c=a.lastQuotaSnapshot;if(c){let a=o(c,c.fetchedAt);if(a)return a}return null}(a);if(!e){try{e=await p(a)}catch{e=null}e&&(b=a.id,c=e,n.set(b,{snapshot:c,fetchedAt:Date.now()}),(0,d.updateProviderConnection)(b,{lastQuotaSnapshot:c}).catch(()=>{}))}let f=(0,m.RU)({...a,lastQuotaSnapshot:e});return{paused:f,reason:f?"below-threshold":e?"ok":"no-data",snapshot:e}}var r=c(45974),s=c(71600),t=c(40960),u=c(7803),v=c(4598);let w=Promise.resolve(),x=new Set([...Object.keys(j.IS),...Object.keys(j.nJ)]);function y(a,b){let c=a?.rateLimitState?.[b];if(!c||"object"!=typeof c)return null;let d=new Date(c.cooldownUntil||0).getTime();return Number.isFinite(d)?{...c,cooldownUntilMs:d}:null}function z(a,b){let c=y(a,b);return!!(c&&c.cooldownUntilMs>Date.now())}function A(a,b){let c=function(a,b){let c=1/0;for(let d of a||[]){let a=y(d,b);a&&a.cooldownUntilMs>Date.now()&&a.cooldownUntilMs<c&&(c=a.cooldownUntilMs)}return Number.isFinite(c)?new Date(c).toISOString():null}(a,b),d=c||new Date(Date.now()+1e3).toISOString();return{allRateLimited:!0,retryAfter:d,retryAfterHuman:c?(0,f.Qo)(d):"retry after 1s",lastError:(a||[]).map(a=>y(a,b)?.lastError).find(Boolean)||"All proxy pools are unavailable",lastErrorCode:429}}async function B(a,b){if(!a||!b)return;let c=(0,j.rs)(b),e=await (0,d.hr)(a);if(!e?.rateLimitState?.[c])return;let f={...e.rateLimitState};delete f[c],await (0,d.xN)(a,{rateLimitState:f}),u.info("PROXY",`${c} pool ${a.slice(0,8)} cooldown cleared after success`)}async function C(a,b=null,c=null,g={}){var l;let m,n=b instanceof Set?b:b?new Set([b]):new Set,o=(l=g?.excludeProxyPoolIds)instanceof Set?l:Array.isArray(l)?new Set(l):l?new Set([l]):new Set,p=g?.preferredConnectionId||null,v=g?.cacheKey||null,x=g?.requestedModel||c,y=w;w=new Promise(a=>{m=a});try{let b;await y;let l=(0,j.rs)(a);if(j.IS[l]?.noAuth){let b=((await (0,d.mt)()).providerStrategies||{})[l]||{},c=b.rotateStrategy||"none",f=b.proxyPoolId||null,g=f;if("none"!==c||f){let b=(await (0,d.ui)({isActive:!0})).filter(a=>String(a.proxyUrl||"").trim());if("none"!==c){let d=b.filter(a=>!o.has(a.id)&&!n.has(`proxy:${a.id}`)&&!n.has(a.id)&&!z(a,l));if(b.length>0&&0===d.length)return u.warn("AUTH",`${a} | all proxy pools exhausted (${n.size} excluded)`),A(b,l);g=(0,e.p)(d.map(a=>a.id),c,l)}else if(f){let c=b.find(a=>a.id===f),d=o.has(f)||n.has(`proxy:${f}`)||n.has(f);if(c&&(d||z(c,l)))return u.warn("AUTH",`${a} | configured proxy pool ${f} excluded`),A([c],l);g=c?f:null}}let h=await (0,e.B)({proxyPoolId:g||""}),i=g?`proxy:${g}`:"noauth",j=g?h.proxyPool?.name||`Proxy (${g.slice(0,8)})`:"Public";return{id:i,connectionId:i,connectionName:j,isActive:!0,accessToken:"public",providerSpecificData:{connectionProxyEnabled:h.connectionProxyEnabled,connectionProxyUrl:h.connectionProxyUrl,connectionNoProxy:h.connectionNoProxy,strictProxy:!0===h.strictProxy,connectionProxyPoolId:h.proxyPoolId||null,vercelRelayUrl:h.vercelRelayUrl||"",strictProxy:!0===h.strictProxy}}}let m=await (0,d.getProviderConnections)({provider:l,isActive:!0}),w=g?.strictConnectionId?m.filter(a=>a.id===g.strictConnectionId):m;if(u.debug("AUTH",`${a} | total connections: ${w.length}, excludeIds: ${n.size>0?[...n].join(","):"none"}, model: ${c||"any"}`),0===w.length)return u.warn("AUTH",`No credentials for ${a}`),null;let B=await (0,d.mt)(),C=(0,j.p5)(B,l),D="antigravity"===l,E=D&&c?(0,r.d0)():null,F=w.filter(a=>{if(n.has(a.id)||(0,f.Bl)(a,c)||(0,k.kM)(a.id,C))return!1;let b=a.providerSpecificData?.enabledModels;if("codex"===l&&Array.isArray(b)&&b.length&&x&&!b.includes(x)||D&&!(0,r.vj)(a,c))return!1;if(D&&c&&E){let b=E.get(a.id),d=(0,r.CY)(b,c)||b?.[c];if(d&&d.remainingPercentage<=0&&d.resetAt&&new Date(d.resetAt).getTime()>Date.now()){let b=a.id?.slice(0,8)||"unknown";return u.info("AG_QUOTA",`${b} | CACHE_BLOCK ${c} — skip upstream until ${d.resetAt}`),!1}}return!0}),G=(await Promise.all(F.map(async b=>(await q(b)).paused?(u.info("AUTH",`${a} | ${b.id?.slice(0,8)} skipped: quota paused (window below per-window threshold)`),null):b))).filter(Boolean);if(u.debug("AUTH",`${a} | available: ${G.length}/${w.length}`),w.forEach(a=>{let b=n.has(a.id),d=(0,f.Bl)(a,c);if(b||d){let e=(0,f.kJ)(a);u.debug("AUTH",` → ${a.id?.slice(0,8)} | ${b?"excluded":""} ${d?`modelLocked(${c}) until ${e}`:""}`)}}),0===G.length){let b=w.filter(a=>(0,f.Bl)(a,c)),d=b.map(a=>(0,f.kJ)(a)).filter(Boolean);D&&c&&E&&w.forEach(a=>{let b=E.get(a.id),e=(0,r.CY)(b,c)||b?.[c],f=e?.resetAt;f&&new Date(f).getTime()>Date.now()&&d.push(f)});let e=d.sort()[0]||null;if(e){let d=b.find(a=>(0,f.kJ)(a)===e)||b[0],g=!d?.lastErrorModel||d.lastErrorModel===(c||null),h=g&&d?.lastError||null,i=g&&d?.errorCode||null;return u.warn("AUTH",`${a} | all ${w.length} accounts locked for ${c||"all"} (${(0,f.Qo)(e)}) | lastError=${g?d?.lastError?.slice(0,50):`<withheld: belongs to ${d?.lastErrorModel||"unknown"}>`}`),{allRateLimited:!0,retryAfter:e,retryAfterHuman:(0,f.Qo)(e),lastError:h,lastErrorCode:i}}let g=w.map(a=>(0,k.Vs)(a.id,C)).filter(a=>null!=a);if(g.length===w.length&&g.length>0){let b=Math.min(...g),c=new Date(Date.now()+b).toISOString();return u.warn("AUTH",`${a} | all ${w.length} accounts at the ${C} RPM cap (${Math.ceil(b/1e3)}s)`),{allRateLimited:!0,retryAfter:c,retryAfterHuman:(0,f.Qo)(c),lastError:`Local ${C} RPM cap reached for every ${a} account`,lastErrorCode:null}}return u.warn("AUTH",`${a} | all ${w.length} accounts unavailable`),null}let H=new Map;for(let a of G){let b=(0,t.in)(a);b&&H.set(a.id,b)}let I=G.filter(a=>!H.has(a.id)),J=I.length?I:G;for(let[b,c]of H)u.debug("AUTH",`${a} | ${b.slice(0,8)} at quota reserve (${c.window} ${Math.round(c.remaining)}% left, keeps ${c.reserve}%)${I.length?"":" — every account is at its reserve, using reserve"}`);let K=(B.providerStrategies||{})[l]||{},L=K.fallbackStrategy||B.fallbackStrategy||"fill-first",M=a=>{let b=global._pendingRequests?.byAccount?.[a],c=b?Object.values(b).reduce((a,b)=>a+(b||0),0):0,d=global._pendingSelections?.get(a),e=d&&Date.now()-d<1500;return c+(e&&0===c?1:0)};if(p&&(b=J.find(a=>a.id===p))&&u.info("AUTH",`${a} | pinned to ${b.id?.slice(0,8)} (${b.name||b.email||"unnamed"})`),b);else{let e=J.filter(a=>0===M(a.id)),f=e.length>0?e:J;if(L===h.cL){let{connection:e,reason:g}=(0,i.Sn)(f,{model:c,config:B.latencyAwareConfig});b=e||f[0],u.debug("AUTH",`${a} | latency-aware → ${b.id?.slice(0,8)} (${g})`),await (0,d.updateProviderConnection)(b.id,{lastUsedAt:new Date().toISOString(),consecutiveUseCount:1})}else if("round-robin"===L){let a=K.stickyRoundRobinLimit||B.stickyRoundRobinLimit||3,c=[...f].sort((a,b)=>a.lastUsedAt||b.lastUsedAt?a.lastUsedAt?b.lastUsedAt?new Date(b.lastUsedAt)-new Date(a.lastUsedAt):-1:1:(a.priority||999)-(b.priority||999))[0],e=c?.consecutiveUseCount||0;c&&c.lastUsedAt&&e<a&&0===M(c.id)?(b=c,await (0,d.updateProviderConnection)(b.id,{lastUsedAt:new Date().toISOString(),consecutiveUseCount:(b.consecutiveUseCount||0)+1})):(b=[...f].sort((a,b)=>a.lastUsedAt||b.lastUsedAt?a.lastUsedAt?b.lastUsedAt?new Date(a.lastUsedAt)-new Date(b.lastUsedAt):1:-1:(a.priority||999)-(b.priority||999))[0],await (0,d.updateProviderConnection)(b.id,{lastUsedAt:new Date().toISOString(),consecutiveUseCount:1}))}else"cache-affinity"===L&&v?(b=(0,s.N)(v,f),await (0,d.updateProviderConnection)(b.id,{lastUsedAt:new Date().toISOString()})):b=f[0]}C>0&&(0,k.Vi)(b.id),global._pendingSelections||(global._pendingSelections=new Map),global._pendingSelections.set(b.id,Date.now());let N=await (0,e.B)(b.providerSpecificData||{});return{authType:b.authType,apiKey:b.apiKey,accessToken:b.accessToken,refreshToken:b.refreshToken,idToken:b.idToken,expiresAt:b.expiresAt,expiresIn:b.expiresIn,lastRefreshAt:b.lastRefreshAt,projectId:b.projectId,connectionName:b.displayName||b.name||b.email||b.id,copilotToken:b.providerSpecificData?.copilotToken,providerSpecificData:{...b.providerSpecificData||{},connectionProxyEnabled:N.connectionProxyEnabled,connectionProxyUrl:N.connectionProxyUrl,connectionNoProxy:N.connectionNoProxy,strictProxy:!0===N.strictProxy,connectionProxyPoolId:N.proxyPoolId||null,vercelRelayUrl:N.vercelRelayUrl||"",strictProxy:!0===N.strictProxy},connectionId:b.id,testStatus:b.testStatus,lastError:b.lastError,_connection:b}}finally{m&&m()}}async function D(a,b,c,e=null,h=null,i=null,k=null){let l,m,n;if("noauth"===a){let a,h,l;if(!k||!e||!(0,f.kt)(b,c))return{shouldFallback:!1,cooldownMs:0};let m=(0,j.rs)(e),n=await (0,d.hr)(k);if(!n||!0!==n.isActive)return{shouldFallback:!1,cooldownMs:0};let o=y(n,m),p=Number(o?.backoffLevel)||0;if(i&&i>Date.now()?(a=!0,h=Math.min(i-Date.now(),g.fh),l=0):{shouldFallback:a,cooldownMs:h,newBackoffLevel:l}=(0,f.hk)(b,c,p),!a)return{shouldFallback:!1,cooldownMs:0};let q="string"==typeof c?c.slice(0,100):"Provider rate limit",r={...n.rateLimitState||{}};return r[m]={cooldownUntil:new Date(Date.now()+h).toISOString(),backoffLevel:l??p,lastError:q,errorCode:b,lastErrorAt:new Date().toISOString()},await (0,d.xN)(k,{rateLimitState:r}),u.warn("PROXY",`${m} pool ${k.slice(0,8)} unavailable for ${Math.round(h/1e3)}s [${b}]`),console.error(`❌ ${e} proxy pool [${b}]: ${q}`),{shouldFallback:!0,cooldownMs:h}}if(!a)return{shouldFallback:!1,cooldownMs:0};if(a.startsWith("proxy:")){let{shouldFallback:a,cooldownMs:d}=(0,f.hk)(b,c,0,e);return{shouldFallback:a,cooldownMs:d}}let o=(await (0,d.getProviderConnections)({provider:e})).find(b=>b.id===a),p=o?.backoffLevel||0,q=(0,j.rs)(e),r=null;try{let a=await (0,d.mt)(),b=a?.retryDelayByProvider?.[q];if(null!=b&&"auto"!==b){let a=Number(b);Number.isFinite(a)&&a>0&&(r=Math.min(1e3*a,g.fh))}}catch{}let s=(0,f.hk)(b,c,p,(0,j.rs)(e));if(s.shouldFallback&&i&&i>Date.now()?(l=!0,m=i-Date.now(),n=0):({shouldFallback:l,cooldownMs:m,newBackoffLevel:n}=s,l&&null==(0,f.Ib)(c)&&(null!=r?(m=r,n=0):m>6e4&&x.has(q)&&(m=6e4))),!l)return{shouldFallback:!1,cooldownMs:0};let t=function(a){let b=a=>String(a).replace(/\s+/g," ").trim().slice(0,200);if("string"==typeof a)return a.slice(0,200);if(!a||"object"!=typeof a)return"Provider error";let c="string"==typeof a.code?a.code:"string"==typeof a.cause?.code?a.cause.code:null;if(a instanceof Error){let d=a.message?b(a.message):a.name||"Provider error";return c&&!d.includes(c)?b(`${d} (${c})`):d}for(let d of[a.error?.message,a.message,"string"==typeof a.error?a.error:null,a.detail,a.reason])if("string"==typeof d&&d.trim())return b(c&&!d.includes(c)?`${d} (${c})`:d);return c?b(`Provider error (${c})`):"Provider error"}(c),v=!!h&&(404===b||400===b&&String(c).includes("not found")),w=v?864e5:m,z=(0,f.S5)(h,w),A={...z,lastErrorModel:h||null,lastErrorAt:new Date().toISOString(),backoffLevel:n??p};v?o?.testStatus&&"active"!==o.testStatus||(A.testStatus="active"):(A.testStatus="unavailable",A.lastError=t,A.errorCode=b),await (0,d.updateProviderConnection)(a,A);let B=Object.keys(z)[0],C=o?.displayName||o?.name||o?.email||a.slice(0,8);return u.warn("AUTH",`${C} locked ${B} for ${Math.round(m/1e3)}s [${b}]`),e&&b&&t&&console.error(`❌ ${e} [${b}]: ${t}`),{shouldFallback:!0,cooldownMs:m}}async function E(a,b,c=null,e=null){if("noauth"===a)return void await B(b?.providerSpecificData?.connectionProxyPoolId,e);if(!a)return;let f=b?._connection||b,g=Date.now(),h=Object.keys(f).filter(a=>a.startsWith("modelLock_"));if(!f.testStatus&&!f.lastError&&!f.errorCode&&0===h.length)return;let i=h.filter(a=>{if(c&&a===`modelLock_${c}`||c&&"modelLock___all"===a)return!0;let b=f[a];return b&&new Date(b).getTime()<=g});if(0===i.length&&"unavailable"!==f.testStatus&&!f.lastError&&!f.errorCode)return;let j=h.filter(a=>{if(i.includes(a))return!1;let b=f[a];return b&&new Date(b).getTime()>g}),k=Object.fromEntries(i.map(a=>[a,null]));0===j.length&&Object.assign(k,{testStatus:"active",lastError:null,errorCode:null,lastErrorModel:null,lastErrorAt:null,backoffLevel:0}),await (0,d.updateProviderConnection)(a,k)}function F(a){return(0,v.T)(a)[0]||null}async function G(a){let b=(0,v.T)(a);for(let a of b)if(await (0,d.ek)(a))return{apiKey:a,valid:!0};return{apiKey:b[0]||null,valid:!1}}async function H(a){return!!a&&await (0,d.ek)(a)}},39006:a=>{a.exports={rE:"0.6.30"}},45974:(a,b,c)=>{c.d(b,{CY:()=>o,XJ:()=>t,d0:()=>q,vO:()=>p,vj:()=>m});var d=c(39326),e=c(71040),f=c(7803);let g=new Map,h=new Map,i=new Map,j=["RATE_LIMIT_EXCEEDED","QUOTA_EXHAUSTED","Individual quota reached"],k=new Map,l=new Map;function m(a,b){if(!a||!b)return!0;let c=a.lastQuotaSnapshot?.windows||a.providerSpecificData?.lastQuotaSnapshot?.windows;if(!Array.isArray(c)||0===c.length)return!0;let d=(b.includes("/")?b.slice(b.indexOf("/")+1):b).replace(/\([^()]+\)\s*$/,"").trim().toLowerCase();return d.includes("argon")?c.some(a=>a.key&&(a.key.toLowerCase().includes("argon")||a.displayName?.toLowerCase().includes("argon"))):d.includes("sonnet-5-5")||d.includes("sonnet-5.5")?c.some(a=>a.key&&(a.key.toLowerCase().includes("sonnet-5-5")||a.key.toLowerCase().includes("sonnet-5.5")||a.displayName?.toLowerCase().includes("sonnet-5-5"))):d.includes("opus-5-5")||d.includes("opus-5.5")?c.some(a=>a.key&&(a.key.toLowerCase().includes("opus-5-5")||a.key.toLowerCase().includes("opus-5.5")||a.displayName?.toLowerCase().includes("opus-5-5"))):!(d.startsWith("claude-")&&!d.includes("4-6")||/^gemini-[4-9]/.test(d))||c.some(a=>{if(!a.key)return!1;let b=a.key.toLowerCase();return b.includes(d)||d.includes(b)})}function n(a){if(!a||"string"!=typeof a)return null;let b=(a.includes("/")?a.slice(a.indexOf("/")+1):a).toLowerCase();return b.includes("argon")?"argon":b.startsWith("claude-")||b.startsWith("gpt-")||"claude"===b?"claude_gpt":b.startsWith("gemini-")&&!b.includes("image")||"gemini"===b?"gemini":null}function o(a,b){if(!a||"object"!=typeof a||!b)return null;let c="string"==typeof b?(b.includes("/")?b.slice(b.indexOf("/")+1):b).replace(/\([^()]+\)\s*$/,"").trim():"",d=n(c),e=[];if(a[c]&&e.push(a[c]),"gemini-4-argon"===c&&a["gemini-4-argon-high"]&&e.push(a["gemini-4-argon-high"]),"gemini-4-argon"===c&&a["gemini-4-argon-medium"]&&e.push(a["gemini-4-argon-medium"]),"gemini-4-argon"===c&&a["gemini-4-argon-low"]&&e.push(a["gemini-4-argon-low"]),"claude-sonnet-5-5"===c&&a["claude-sonnet-5-5-high"]&&e.push(a["claude-sonnet-5-5-high"]),"claude-sonnet-5-5"===c&&a["claude-sonnet-5-5-medium"]&&e.push(a["claude-sonnet-5-5-medium"]),"claude-sonnet-5-5"===c&&a["claude-sonnet-5-5-low"]&&e.push(a["claude-sonnet-5-5-low"]),"claude-opus-5-5"===c&&a["claude-opus-5-5-high"]&&e.push(a["claude-opus-5-5-high"]),"claude-opus-5-5"===c&&a["claude-opus-5-5-medium"]&&e.push(a["claude-opus-5-5-medium"]),"claude-opus-5-5"===c&&a["claude-opus-5-5-low"]&&e.push(a["claude-opus-5-5-low"]),"gemini-3.8-flash"===c&&a["gemini-3.8-flash-medium"]&&e.push(a["gemini-3.8-flash-medium"]),"gemini-3.7-flash"===c&&a["gemini-3.7-flash-medium"]&&e.push(a["gemini-3.7-flash-medium"]),"gemini-3.6-flash"===c&&a["gemini-3.6-flash-medium"]&&e.push(a["gemini-3.6-flash-medium"]),"argon"===d?(a.argon_session&&e.push(a.argon_session),a.argon_weekly&&e.push(a.argon_weekly)):"claude_gpt"===d?(a.claude_gpt_session&&e.push(a.claude_gpt_session),a.claude_gpt_weekly&&e.push(a.claude_gpt_weekly)):"gemini"===d&&(a.gemini_session&&e.push(a.gemini_session),a.gemini_weekly&&e.push(a.gemini_weekly)),0===e.length)return null;let f=Date.now(),g=[];for(let a of e)if(a&&"object"==typeof a&&"number"==typeof a.remainingPercentage&&a.remainingPercentage<=0)if(a.resetAt){let b=new Date(a.resetAt).getTime();b>f&&g.push({...a,resetMs:b})}else g.push({...a,resetMs:0});if(g.length>0){g.sort((a,b)=>b.resetMs-a.resetMs);let a=g[0];return{used:a.used??1e3,total:a.total??1e3,remainingPercentage:0,resetAt:a.resetAt,displayName:a.displayName||c}}let h=e.filter(a=>a&&"number"==typeof a.remainingPercentage);return 0===h.length?null:(h.sort((a,b)=>a.remainingPercentage-b.remainingPercentage),h[0])}function p(a,b){let c=`${a}|${b}`;k.delete(c);let d=l.get(c);if(void 0===d)return;l.delete(c);let e=g.get(a),f=new Date(d).toISOString();e?.[b]?.resetAt===f&&delete e[b];let h=n(b);"claude_gpt"===h&&e?.claude_gpt_session?.resetAt===f?delete e.claude_gpt_session:"gemini"===h&&e?.gemini_session?.resetAt===f&&delete e.gemini_session,g.set(a,e)}function q(){return g}async function r(a,b,c){let d=Date.now(),e=i.get(a);if(e)return e;let j=h.get(a)||0;if(d-j<3e4)return f.debug("AG_QUOTA",`${a.slice(0,8)} | skip refresh (${Math.round((d-j)/1e3)}s ago)`),g.get(a)||null;h.set(a,d);let k=s(a,b,c,d);i.set(a,k);try{return await k}finally{i.delete(a)}}async function s(a,b,c,h){try{let f=await (0,d.B)(c||{}),h={connectionProxyEnabled:!0===f.connectionProxyEnabled,connectionProxyUrl:f.connectionProxyUrl||"",connectionNoProxy:f.connectionNoProxy||"",vercelRelayUrl:f.vercelRelayUrl||"",strictProxy:!0===f.strictProxy},i=await (0,e.c)(b,c,h);if(!i?.quotas||i.message)return null;return g.set(a,function(a,b){let c=Date.now();for(let[d,e]of l)if(d.startsWith(`${a}|`)){if(e<=c){l.delete(d);continue}b[d.slice(a.length+1)]={remainingPercentage:0,resetAt:new Date(e).toISOString()}}return b}(a,i.quotas)),i.quotas}catch(b){return f.warn("AG_QUOTA",`${a.slice(0,8)} | refresh failed: ${b.message}`),null}}async function t(a,b,c,d,e,h=""){f.info("AG_QUOTA",`${a.slice(0,8)} | ${b} on ${c} — refreshing quota`);let i=o(await r(a,d,e),c),m=j.some(a=>h.includes(a));if(429===b&&!m&&(!i||i.remainingPercentage>0))return null;if((!i||i.remainingPercentage>0)&&m){let d=`${a}|${c}`,e=Date.now(),h=k.get(d),j=h&&e-h.windowStart<=6e4?h.windowStart:e,m=h&&j===h.windowStart?h.count+1:1;if(k.set(d,{count:m,windowStart:j}),m>=3){k.delete(d);let h=e+9e5,j=i?`${Math.round(i.remainingPercentage)}%`:"unknown";f.warn("AG_QUOTA",`${a.slice(0,8)} | STRIKE_${b} ${c} — ${m}x 429 (quota ${j}); CACHE_BLOCK 15m`);let n=g.get(a)||{};return n[c]={remainingPercentage:0,resetAt:new Date(h).toISOString()},g.set(a,n),l.set(d,h),h}return null}if(k.delete(`${a}|${c}`),!i.resetAt)return null;let n=new Date(i.resetAt).getTime();if(n<=Date.now())return null;let p=g.get(a)||{};return p[c]={remainingPercentage:0,resetAt:i.resetAt},g.set(a,p),f.warn("AG_QUOTA",`${a.slice(0,8)} | UPSTREAM_${b} ${c} — quota exhausted; CACHE_BLOCK until ${i.resetAt}`),n}},49263:(a,b,c)=>{c.d(b,{Bl:()=>o,Ib:()=>f,Qo:()=>k,S5:()=>q,c8:()=>i,hk:()=>h,kJ:()=>p,kt:()=>j});var d=c(87252);function e(a){return a?("string"==typeof a?a:JSON.stringify(a)).toLowerCase():""}function f(a,b=Date.now()){let c;if(!a)return null;let d="string"==typeof a?a:JSON.stringify(a);if(c=d.match(/"?retry[_-]?delay"?\s*[:=]\s*"?\s*([0-9]+(?:\.[0-9]+)?)\s*s/i))return Math.round(1e3*parseFloat(c[1]));if(c=d.match(/"?(?:resets?_at|x-?ratelimit-?reset|ratelimit-?reset)"?\s*[:=]\s*"?\s*([0-9]{9,})/i)){let a=parseInt(c[1],10);a<1e12&&(a*=1e3);let d=a-b;return d>0?d:null}return(c=d.match(/"?retry[_-]?after"?\s*[:=]\s*"?\s*([0-9]+)\b/i))?1e3*parseInt(c[1],10):null}function g(a,b){let c=function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),e=f(b);return null!=e&&e>0?Math.min(Math.max(e,c),d.fh):c}function h(a,b,c=0,f=null){let i=e(b),j=i.includes("invalid_encrypted_content")||i.includes("encrypted content")&&(i.includes("could not be verified")||i.includes("could not be decrypted or parsed"));if(400===a&&j)return{shouldFallback:!1,cooldownMs:0};if(d.t2.find(b=>b.status===a&&!1===b.fallback))return{shouldFallback:!1,cooldownMs:0,newBackoffLevel:c};for(let e of d.t2)if(!e.provider||e.provider===f){if(e.pattern&&i&&e.pattern.test(i)){if(e.permanent||!1===e.fallback)return{shouldFallback:!1,cooldownMs:0};if(e.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:g(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:e.cooldownMs}}if(e.text&&i&&i.includes(e.text)){if(e.permanent||!1===e.fallback||e.noFallback)return{shouldFallback:!1,cooldownMs:0};if(e.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:g(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:e.cooldownMs}}if(e.status&&e.status===a){if(e.permanent||!1===e.fallback)return{shouldFallback:!1,cooldownMs:0};if(e.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:g(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:e.cooldownMs}}}return d.w6.has(a)?{shouldFallback:!1,cooldownMs:0,advanceChain:!0,requestScoped:!0}:{shouldFallback:!0,cooldownMs:d.wf}}function i(a,b,c=null){let f=e(b);for(let b of d.t2)if(b.modelLevel&&(!b.provider||b.provider===c)&&(b.text&&f.includes(b.text)||b.status&&b.status===a))return d.GZ;return null}function j(a,b){if(429===Number(a))return!0;let c=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"";return d.t2.some(a=>a.backoff&&a.text&&c.includes(a.text))}function k(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let l="modelLock_",m=`${l}__all`;function n(a){return a?`${l}${a}`:m}function o(a,b){let c=Date.now(),d=a=>{if(!a)return!1;let b=new Date(a).getTime();return Number.isFinite(b)&&b>c};return d(a[n(b)])||d(a[m])}function p(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(l)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function q(a,b){return{[n(a)]:new Date(Date.now()+b).toISOString()}}},71600:(a,b,c)=>{c.d(b,{G:()=>f,N:()=>g});var d=c(77598);function e(a){if("string"==typeof a)return a;try{return JSON.stringify(a??"")}catch{return""}}function f(a){if(!a||"object"!=typeof a)return null;let b="string"==typeof a.prompt_cache_key?a.prompt_cache_key.trim():"";if(b)return b;let c="string"==typeof a.metadata?.user_id?a.metadata.user_id.trim():"";if(c)return c;let f=Array.isArray(a.messages)?a.messages:[],g=[];void 0!==a.system&&null!==a.system&&g.push(e(a.system));let h=null;for(let a of f)if(a&&"object"==typeof a){if("system"===a.role||"developer"===a.role){g.push(e(a.content));continue}h=a;break}let i=g.join("\n");if(!i&&!h)return null;let j=`${i}\0${h?`${h.role}:${e(h.content)}`:""}`;return(0,d.createHash)("sha256").update(j).digest("hex")}function g(a,b){let c=null,e="";for(let f of b){let b=(0,d.createHash)("sha256").update(`${a}\0${f.id}`).digest("hex");(!c||b>e||b===e&&String(f.id)<String(c.id))&&(c=f,e=b)}return c}},79963:(a,b,c)=>{c.d(b,{CI:()=>f,Vi:()=>h,Vs:()=>i,kM:()=>g});let d=new Map;function e(a,b){let c=d.get(a);if(!c)return[];let e=b-6e4,f=0;for(;f<c.length&&c[f].t<=e;)f+=1;let g=0===f?c:c.slice(f);return g.length?d.set(a,g):d.delete(a),g}function f(a,b=Date.now()){return e(a,b).reduce((a,b)=>a+b.n,0)}function g(a,b,c=Date.now()){return!!b&&!(b<=0)&&f(a,c)>=b}function h(a,b=1,c){if(!a)return;let f=1,g=Date.now();if(void 0!==c?(f=b,g=c):"number"==typeof b&&(b>=1e6?(f=1,g=b):(f=b,g=Date.now())),!(f>0))return;let i=e(a,g);i.push({t:g,n:f}),d.set(a,i)}function i(a,b,c=Date.now()){if(!g(a,b,c))return null;let e=(d.get(a)||[])[0];return e?Math.max(0,e.t+6e4-c):null}},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<style>body{font-family:system-ui;display:flex;justify-content:center;align-items:center;height:100vh;margin:0;background:#f5f5f5}.c{text-align:center;padding:2rem;background:#fff;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.1)}.i{color:${a?"#22c55e":"#ef4444"};font-size:3rem}h1{margin:1rem 0}p{color:#666}</style>
|
|
41
41
|
</head><body><div class="c"><div class="i">${a?"✓":"✗"}</div><h1>${c}</h1><p>${d}</p><p>Closing in <span id="cd">3</span>s...</p>
|
|
42
42
|
<script>let n=3;const c=document.getElementById("cd");const t=setInterval(()=>{n--;c.textContent=n;if(n<=0){clearInterval(t);window.close();}},1000);</script>
|
|
43
|
-
</div></body></html>`}function s(a){return new Promise(b=>{if(k)return void b({success:!0});let d=e().createServer(async(b,d)=>{let e=new f.URL(b.url,"http://localhost");if("/callback"!==e.pathname&&"/auth/callback"!==e.pathname){d.writeHead(404),d.end("Not found");return}let g=e.searchParams.get("code"),h=e.searchParams.get("state"),i=e.searchParams.get("error"),j=h?n.get(h):null;if(j){try{if(i)throw Error(e.searchParams.get("error_description")||i);if(!g)throw Error("No authorization code received");let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(5749),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(447),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:b}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),f=await a("codex",g,j.redirectUri,j.codeVerifier,h),k=await b({provider:"codex",authType:"oauth",...f,expiresAt:f.expiresIn?new Date(Date.now()+1e3*f.expiresIn).toISOString():null,testStatus:"active"});j.status="done",j.connectionId=k.id,j.email=k.email,d.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),d.end(r(!0,"You can close this window."))}catch(a){j.status="error",j.error=a.message,d.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),d.end(r(!1,a.message))}finally{t()}return}let k=`http://localhost:${a}/callback${e.search}`;d.writeHead(302,{Location:k}),d.end(),t()});d.listen(m,"127.0.0.1",()=>{k=d,l=setTimeout(()=>t(),3e5),b({success:!0})}),d.on("error",a=>{"EADDRINUSE"===a.code?b({success:!1,reason:"port_busy"}):b({success:!1,reason:a.message})})})}function t(){l&&(clearTimeout(l),l=null),k&&(k.close(),k=null)}let u=null,v=null,w=new Map;function x({state:a,codeVerifier:b,redirectUri:c}){return!!a&&!!b&&!!c&&(w.set(a,{codeVerifier:b,redirectUri:c,status:"pending",createdAt:Date.now()}),!0)}function y(a){return w.get(a)||null}function z(a){w.delete(a)}function A(a){return new Promise(b=>{if(u)return void b({success:!0});let d=e().createServer(async(b,d)=>{let e=new f.URL(b.url,"http://localhost");if("/callback"!==e.pathname&&"/auth/callback"!==e.pathname){d.writeHead(404),d.end("Not found");return}let g=e.searchParams.get("code"),h=e.searchParams.get("state"),i=e.searchParams.get("error"),j=h?w.get(h):null;if(j){try{if(i)throw Error(e.searchParams.get("error_description")||i);if(!g)throw Error("No authorization code received");let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(5749),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(447),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:b}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),f=await a("xai",g,j.redirectUri,j.codeVerifier,h),k=await b({provider:"xai",authType:"oauth",...f,expiresAt:f.expiresIn?new Date(Date.now()+1e3*f.expiresIn).toISOString():null,testStatus:"active"});j.status="done",j.connectionId=k.id,j.email=k.email,d.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),d.end(r(!0,"You can close this window."))}catch(a){j.status="error",j.error=a.message,d.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),d.end(r(!1,a.message))}finally{B()}return}let k=`http://localhost:${a}/callback${e.search}`;d.writeHead(302,{Location:k}),d.end(),B()});d.listen(56121,"127.0.0.1",()=>{u=d,v=setTimeout(()=>B(),3e5),b({success:!0})}),d.on("error",a=>{"EADDRINUSE"===a.code?b({success:!1,reason:"port_busy"}):b({success:!1,reason:a.message})})})}function B(){v&&(clearTimeout(v),v=null),u&&(u.close(),u=null)}let C=null,D=null,E=null,F=null;function G({state:a}){return!!a&&(F={state:a,status:"pending",createdAt:Date.now()},!0)}function H(a){return!F||a&&F.state!==a?null:F}function I(a){(!a||F&&F.state===a)&&(F=null)}function J(){return new Promise(a=>{if(C)return void a({success:!0,port:E,callbackUrl:`http://127.0.0.1:${E}${g.SK.callbackPath}`});let b=e().createServer(async(a,b)=>{let d=new f.URL(a.url,"http://localhost");if(d.pathname!==g.SK.callbackPath&&"/auth/callback"!==d.pathname){b.writeHead(404),b.end("Not found");return}let e=F;if(!e){b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"No active Trae login session"));return}if(!h(a.headers.origin)){b.writeHead(403,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"Cross-origin callback rejected"));return}let i=d.searchParams.get("state");if(i&&e.state&&i!==e.state){e.status="error",e.error="Trae callback state mismatch",b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,e.error)),K();return}let j=`${d.pathname}?${d.searchParams.toString()}`;try{let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(5749),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(447),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:d}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),f=await a("trae",j),g=await d({provider:"trae",authType:"oauth",...f,expiresAt:f.expiresIn?new Date(Date.now()+1e3*f.expiresIn).toISOString():null,testStatus:"active"});e.status="done",e.connectionId=g.id,e.email=g.email,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!0,"You can close this window."))}catch(a){e.status="error",e.error=a.message,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,a.message))}finally{K()}});b.listen(0,"127.0.0.1",()=>{C=b,E=b.address().port,D=setTimeout(()=>K(),g.SK.oauthTimeoutMs),a({success:!0,port:E,callbackUrl:`http://127.0.0.1:${E}${g.SK.callbackPath}`})}),b.on("error",b=>a({success:!1,reason:b.message}))})}function K(){D&&(clearTimeout(D),D=null),C&&(C.close(),C=null),E=null}let L=null,M=null,N=null,O=null;function P({state:a}){return!!a&&(O={state:a,status:"pending",createdAt:Date.now()},!0)}function Q(a){return!O||a&&O.state!==a?null:O}function R(a){(!a||O&&O.state===a)&&(O=null)}function S(){return new Promise(a=>{if(L)return void a({success:!0,port:N,callbackUrl:`http://127.0.0.1:${N}${g.eD.callbackPath}`});let b=e().createServer(async(a,b)=>{let d=new f.URL(a.url,"http://localhost");if(d.pathname!==g.eD.callbackPath){b.writeHead(404),b.end("Not found");return}let e=O;if(!e){b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"No active Windsurf login session"));return}if(!h(a.headers.origin)){b.writeHead(403,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"Cross-origin callback rejected"));return}let i=d.searchParams.get("state");if(!i||!e.state||i!==e.state){e.status="error",e.error="Windsurf callback state mismatch",b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,e.error)),T();return}let j=`${d.pathname}?${d.searchParams.toString()}`;try{let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(5749),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(447),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:d}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),f=await a("windsurf",j,null,null,e.state),g=await d({provider:"windsurf",authType:"api_key",...f,testStatus:"active"});e.status="done",e.connectionId=g.id,e.email=g.email,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!0,"You can close this window."))}catch(a){e.status="error",e.error=a.message,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,a.message))}finally{T()}});b.listen(0,"127.0.0.1",()=>{L=b,N=b.address().port,M=setTimeout(()=>T(),g.eD.oauthTimeoutMs),a({success:!0,port:N,callbackUrl:`http://127.0.0.1:${N}${g.eD.callbackPath}`})}),b.on("error",b=>a({success:!1,reason:b.message}))})}function T(){M&&(clearTimeout(M),M=null),L&&(L.close(),L=null),N=null}let U=null,V=null,W=null,X=null;function Y({state:a,codeVerifier:b,systemId:c}){return!!a&&!!b&&(X={state:a,codeVerifier:b,systemId:c||null,status:"pending",createdAt:Date.now()},!0)}function Z(a){return!X||a&&X.state!==a?null:X}function $(a){(!a||X&&X.state===a)&&(X=null)}function _(a=0){return new Promise(b=>{if(U){V&&clearTimeout(V),V=setTimeout(()=>{console.log("[Zed proxy] timeout, stopping"),aa()},g.RY.oauthTimeoutMs),b({success:!0,port:W,callbackUrl:`http://127.0.0.1:${W}/`});return}let d=e().createServer(async(a,b)=>{let d=new f.URL(a.url,"http://localhost"),e=Object.fromEntries(d.searchParams);for(let a of["access_token","user_id","code_verifier","state"])e[a]&&(e[a]="<redacted>");if(console.log("[Zed proxy]",a.method,d.pathname,JSON.stringify(e)),"/"!==d.pathname&&"/callback"!==d.pathname){b.writeHead(404),b.end("Not found");return}let g=X;if(!g){b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"No active Zed login session"));return}if(!h(a.headers.origin)){b.writeHead(403,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"Cross-origin callback rejected"));return}let i=d.searchParams;if(!(i.has("user_id")||i.has("userId")||i.has("access_token")||i.has("accessToken")||i.has("token"))){console.log(`[Zed proxy] ignoring non-callback ${a.method} ${d.pathname} (session kept, server kept)`),b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"Waiting for Zed sign-in — this request carried no login data."));return}let j=d.search?`${d.pathname}?${d.searchParams.toString()}`:d.pathname;try{let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(5749),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(447),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:d}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),e=await a("zed",j,null,g.codeVerifier,g.state,g.systemId?{systemId:g.systemId}:void 0),f=await d({provider:"zed",authType:"oauth",...e,testStatus:"active"});g.status="done",g.connectionId=f.id,g.email=f.email,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!0,"You can close this window.")),aa()}catch(a){g.status="error",g.error=a.message,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,a.message))}}),i=Number(a)||0;d.on("error",a=>{"EADDRINUSE"===a.code&&0!==i?(console.log(`[Zed proxy] port ${i} busy, falling back to random`),d.listen(0,"127.0.0.1",()=>{U=d,W=d.address().port,V=setTimeout(()=>aa(),g.RY.oauthTimeoutMs),console.log(`[Zed proxy] listening on random port ${W}`),b({success:!0,port:W,callbackUrl:`http://127.0.0.1:${W}/`})})):(console.log(`[Zed proxy] listen error: ${a.message}`),b({success:!1,reason:a.message}))}),d.listen(i,"127.0.0.1",()=>{U=d,W=d.address().port,V=setTimeout(()=>{console.log("[Zed proxy] timeout, stopping"),aa()},g.RY.oauthTimeoutMs),console.log(`[Zed proxy] listening on port ${W}`),b({success:!0,port:W,callbackUrl:`http://127.0.0.1:${W}/`})})})}function aa(){console.log(`[Zed proxy] stopping (port ${W||"-"})`),V&&(clearTimeout(V),V=null),U&&(U.close(),U=null),W=null}let ab=new Map;function ac({provider:a,state:b,codeVerifier:c,redirectUri:d,meta:e}){if(!b)return!1;let f=Date.now()-6e5;for(let[a,b]of ab)b.createdAt<f&&ab.delete(a);return ab.set(b,{provider:a,codeVerifier:c,redirectUri:d,meta:e,status:"pending",createdAt:Date.now()}),!0}function ad(a){return a&&ab.get(a)||null}function ae(a,b){if(!a)return;let c=ab.get(a);c&&ab.set(a,{...c,...b})}function af(a){if(!a)return;let b=ab.get(a);b&&"done"===b.status?setTimeout(()=>{ab.delete(a)},6e4):ab.delete(a)}let ag=new Map;async function ah(a,b,d,e,f,g){let h=f||b,i=f?ab.get(f):null;if(i&&"done"===i.status&&i.connectionId)return{success:!0,alreadyDone:!0,connection:{id:i.connectionId,provider:i.provider||a,email:i.email,displayName:i.displayName}};if(h&&ag.has(h))return await ag.get(h);let j=(async()=>{try{i&&(i.status="processing");let{exchangeTokens:h}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(5749),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(447),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:j}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),k=d||i?.redirectUri,l=e||i?.codeVerifier,m=g||i?.meta,n=await h(a,b,k,l,f,m),o=await j({provider:a,authType:"oauth",...n,expiresAt:n.expiresIn?new Date(Date.now()+1e3*n.expiresIn).toISOString():null,testStatus:"active"});return i?(i.status="done",i.connectionId=o.id,i.email=o.email,i.displayName=o.displayName):f&&ab.set(f,{provider:a,status:"done",connectionId:o.id,email:o.email,displayName:o.displayName,createdAt:Date.now()}),{success:!0,connection:{id:o.id,provider:o.provider,email:o.email,displayName:o.displayName}}}catch(a){throw i&&(i.status="error",i.error=a.message),a}finally{h&&ag.delete(h)}})();return h&&ag.set(h,j),await j}let ai=new Map;function aj(a,b){return`${a}::${b}`}function ak({instanceId:a,state:b,codeVerifier:c,redirectUri:d,resource:e,clientId:f}){return!!a&&!!b&&!!c&&!!d&&!!f&&(ai.set(aj(a,b),{codeVerifier:c,clientId:f,redirectUri:d,resource:e,scope:void 0,status:"pending",error:void 0,tokens:void 0,createdAt:Date.now()}),!0)}function al(a,b){return ai.get(aj(a,b))||null}function am(a,b,c){let d=aj(a,b),e=ai.get(d);return!!e&&(void 0!==c.status&&(e.status=c.status),void 0!==c.error&&(e.error=c.error),void 0!==c.tokens&&(e.tokens=c.tokens),!0)}function an(a,b){ai.delete(aj(a,b))}let ao=null,ap=null,aq=null,ar=new Map;function as({state:a,privateKeyDer:b}){return!!a&&!!b&&(ar.set(a,{privateKeyDer:b,status:"pending",createdAt:Date.now()}),!0)}function at(a){let b=ar.get(a);return b?{status:b.status,result:b.result||null,error:b.error||null}:null}function au(a){ar.delete(a)}function av(a,b){let c=a?"Authentication Successful":"Authentication Failed";return`<!DOCTYPE html>
|
|
43
|
+
</div></body></html>`}function s(a){return new Promise(b=>{if(k)return void b({success:!0});let d=e().createServer(async(b,d)=>{let e=new f.URL(b.url,"http://localhost");if("/callback"!==e.pathname&&"/auth/callback"!==e.pathname){d.writeHead(404),d.end("Not found");return}let g=e.searchParams.get("code"),h=e.searchParams.get("state"),i=e.searchParams.get("error"),j=h?n.get(h):null;if(j){try{if(i)throw Error(e.searchParams.get("error_description")||i);if(!g)throw Error("No authorization code received");let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(3378),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(8032),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:b}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),f=await a("codex",g,j.redirectUri,j.codeVerifier,h),k=await b({provider:"codex",authType:"oauth",...f,expiresAt:f.expiresIn?new Date(Date.now()+1e3*f.expiresIn).toISOString():null,testStatus:"active"});j.status="done",j.connectionId=k.id,j.email=k.email,d.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),d.end(r(!0,"You can close this window."))}catch(a){j.status="error",j.error=a.message,d.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),d.end(r(!1,a.message))}finally{t()}return}let k=`http://localhost:${a}/callback${e.search}`;d.writeHead(302,{Location:k}),d.end(),t()});d.listen(m,"127.0.0.1",()=>{k=d,l=setTimeout(()=>t(),3e5),b({success:!0})}),d.on("error",a=>{"EADDRINUSE"===a.code?b({success:!1,reason:"port_busy"}):b({success:!1,reason:a.message})})})}function t(){l&&(clearTimeout(l),l=null),k&&(k.close(),k=null)}let u=null,v=null,w=new Map;function x({state:a,codeVerifier:b,redirectUri:c}){return!!a&&!!b&&!!c&&(w.set(a,{codeVerifier:b,redirectUri:c,status:"pending",createdAt:Date.now()}),!0)}function y(a){return w.get(a)||null}function z(a){w.delete(a)}function A(a){return new Promise(b=>{if(u)return void b({success:!0});let d=e().createServer(async(b,d)=>{let e=new f.URL(b.url,"http://localhost");if("/callback"!==e.pathname&&"/auth/callback"!==e.pathname){d.writeHead(404),d.end("Not found");return}let g=e.searchParams.get("code"),h=e.searchParams.get("state"),i=e.searchParams.get("error"),j=h?w.get(h):null;if(j){try{if(i)throw Error(e.searchParams.get("error_description")||i);if(!g)throw Error("No authorization code received");let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(3378),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(8032),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:b}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),f=await a("xai",g,j.redirectUri,j.codeVerifier,h),k=await b({provider:"xai",authType:"oauth",...f,expiresAt:f.expiresIn?new Date(Date.now()+1e3*f.expiresIn).toISOString():null,testStatus:"active"});j.status="done",j.connectionId=k.id,j.email=k.email,d.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),d.end(r(!0,"You can close this window."))}catch(a){j.status="error",j.error=a.message,d.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),d.end(r(!1,a.message))}finally{B()}return}let k=`http://localhost:${a}/callback${e.search}`;d.writeHead(302,{Location:k}),d.end(),B()});d.listen(56121,"127.0.0.1",()=>{u=d,v=setTimeout(()=>B(),3e5),b({success:!0})}),d.on("error",a=>{"EADDRINUSE"===a.code?b({success:!1,reason:"port_busy"}):b({success:!1,reason:a.message})})})}function B(){v&&(clearTimeout(v),v=null),u&&(u.close(),u=null)}let C=null,D=null,E=null,F=null;function G({state:a}){return!!a&&(F={state:a,status:"pending",createdAt:Date.now()},!0)}function H(a){return!F||a&&F.state!==a?null:F}function I(a){(!a||F&&F.state===a)&&(F=null)}function J(){return new Promise(a=>{if(C)return void a({success:!0,port:E,callbackUrl:`http://127.0.0.1:${E}${g.SK.callbackPath}`});let b=e().createServer(async(a,b)=>{let d=new f.URL(a.url,"http://localhost");if(d.pathname!==g.SK.callbackPath&&"/auth/callback"!==d.pathname){b.writeHead(404),b.end("Not found");return}let e=F;if(!e){b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"No active Trae login session"));return}if(!h(a.headers.origin)){b.writeHead(403,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"Cross-origin callback rejected"));return}let i=d.searchParams.get("state");if(i&&e.state&&i!==e.state){e.status="error",e.error="Trae callback state mismatch",b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,e.error)),K();return}let j=`${d.pathname}?${d.searchParams.toString()}`;try{let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(3378),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(8032),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:d}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),f=await a("trae",j),g=await d({provider:"trae",authType:"oauth",...f,expiresAt:f.expiresIn?new Date(Date.now()+1e3*f.expiresIn).toISOString():null,testStatus:"active"});e.status="done",e.connectionId=g.id,e.email=g.email,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!0,"You can close this window."))}catch(a){e.status="error",e.error=a.message,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,a.message))}finally{K()}});b.listen(0,"127.0.0.1",()=>{C=b,E=b.address().port,D=setTimeout(()=>K(),g.SK.oauthTimeoutMs),a({success:!0,port:E,callbackUrl:`http://127.0.0.1:${E}${g.SK.callbackPath}`})}),b.on("error",b=>a({success:!1,reason:b.message}))})}function K(){D&&(clearTimeout(D),D=null),C&&(C.close(),C=null),E=null}let L=null,M=null,N=null,O=null;function P({state:a}){return!!a&&(O={state:a,status:"pending",createdAt:Date.now()},!0)}function Q(a){return!O||a&&O.state!==a?null:O}function R(a){(!a||O&&O.state===a)&&(O=null)}function S(){return new Promise(a=>{if(L)return void a({success:!0,port:N,callbackUrl:`http://127.0.0.1:${N}${g.eD.callbackPath}`});let b=e().createServer(async(a,b)=>{let d=new f.URL(a.url,"http://localhost");if(d.pathname!==g.eD.callbackPath){b.writeHead(404),b.end("Not found");return}let e=O;if(!e){b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"No active Windsurf login session"));return}if(!h(a.headers.origin)){b.writeHead(403,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"Cross-origin callback rejected"));return}let i=d.searchParams.get("state");if(!i||!e.state||i!==e.state){e.status="error",e.error="Windsurf callback state mismatch",b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,e.error)),T();return}let j=`${d.pathname}?${d.searchParams.toString()}`;try{let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(3378),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(8032),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:d}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),f=await a("windsurf",j,null,null,e.state),g=await d({provider:"windsurf",authType:"api_key",...f,testStatus:"active"});e.status="done",e.connectionId=g.id,e.email=g.email,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!0,"You can close this window."))}catch(a){e.status="error",e.error=a.message,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,a.message))}finally{T()}});b.listen(0,"127.0.0.1",()=>{L=b,N=b.address().port,M=setTimeout(()=>T(),g.eD.oauthTimeoutMs),a({success:!0,port:N,callbackUrl:`http://127.0.0.1:${N}${g.eD.callbackPath}`})}),b.on("error",b=>a({success:!1,reason:b.message}))})}function T(){M&&(clearTimeout(M),M=null),L&&(L.close(),L=null),N=null}let U=null,V=null,W=null,X=null;function Y({state:a,codeVerifier:b,systemId:c}){return!!a&&!!b&&(X={state:a,codeVerifier:b,systemId:c||null,status:"pending",createdAt:Date.now()},!0)}function Z(a){return!X||a&&X.state!==a?null:X}function $(a){(!a||X&&X.state===a)&&(X=null)}function _(a=0){return new Promise(b=>{if(U){V&&clearTimeout(V),V=setTimeout(()=>{console.log("[Zed proxy] timeout, stopping"),aa()},g.RY.oauthTimeoutMs),b({success:!0,port:W,callbackUrl:`http://127.0.0.1:${W}/`});return}let d=e().createServer(async(a,b)=>{let d=new f.URL(a.url,"http://localhost"),e=Object.fromEntries(d.searchParams);for(let a of["access_token","user_id","code_verifier","state"])e[a]&&(e[a]="<redacted>");if(console.log("[Zed proxy]",a.method,d.pathname,JSON.stringify(e)),"/"!==d.pathname&&"/callback"!==d.pathname){b.writeHead(404),b.end("Not found");return}let g=X;if(!g){b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"No active Zed login session"));return}if(!h(a.headers.origin)){b.writeHead(403,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"Cross-origin callback rejected"));return}let i=d.searchParams;if(!(i.has("user_id")||i.has("userId")||i.has("access_token")||i.has("accessToken")||i.has("token"))){console.log(`[Zed proxy] ignoring non-callback ${a.method} ${d.pathname} (session kept, server kept)`),b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,"Waiting for Zed sign-in — this request carried no login data."));return}let j=d.search?`${d.pathname}?${d.searchParams.toString()}`:d.pathname;try{let{exchangeTokens:a}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(3378),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(8032),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:d}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),e=await a("zed",j,null,g.codeVerifier,g.state,g.systemId?{systemId:g.systemId}:void 0),f=await d({provider:"zed",authType:"oauth",...e,testStatus:"active"});g.status="done",g.connectionId=f.id,g.email=f.email,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!0,"You can close this window.")),aa()}catch(a){g.status="error",g.error=a.message,b.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),b.end(r(!1,a.message))}}),i=Number(a)||0;d.on("error",a=>{"EADDRINUSE"===a.code&&0!==i?(console.log(`[Zed proxy] port ${i} busy, falling back to random`),d.listen(0,"127.0.0.1",()=>{U=d,W=d.address().port,V=setTimeout(()=>aa(),g.RY.oauthTimeoutMs),console.log(`[Zed proxy] listening on random port ${W}`),b({success:!0,port:W,callbackUrl:`http://127.0.0.1:${W}/`})})):(console.log(`[Zed proxy] listen error: ${a.message}`),b({success:!1,reason:a.message}))}),d.listen(i,"127.0.0.1",()=>{U=d,W=d.address().port,V=setTimeout(()=>{console.log("[Zed proxy] timeout, stopping"),aa()},g.RY.oauthTimeoutMs),console.log(`[Zed proxy] listening on port ${W}`),b({success:!0,port:W,callbackUrl:`http://127.0.0.1:${W}/`})})})}function aa(){console.log(`[Zed proxy] stopping (port ${W||"-"})`),V&&(clearTimeout(V),V=null),U&&(U.close(),U=null),W=null}let ab=new Map;function ac({provider:a,state:b,codeVerifier:c,redirectUri:d,meta:e}){if(!b)return!1;let f=Date.now()-6e5;for(let[a,b]of ab)b.createdAt<f&&ab.delete(a);return ab.set(b,{provider:a,codeVerifier:c,redirectUri:d,meta:e,status:"pending",createdAt:Date.now()}),!0}function ad(a){return a&&ab.get(a)||null}function ae(a,b){if(!a)return;let c=ab.get(a);c&&ab.set(a,{...c,...b})}function af(a){if(!a)return;let b=ab.get(a);b&&"done"===b.status?setTimeout(()=>{ab.delete(a)},6e4):ab.delete(a)}let ag=new Map;async function ah(a,b,d,e,f,g){let h=f||b,i=f?ab.get(f):null;if(i&&"done"===i.status&&i.connectionId)return{success:!0,alreadyDone:!0,connection:{id:i.connectionId,provider:i.provider||a,email:i.email,displayName:i.displayName}};if(h&&ag.has(h))return await ag.get(h);let j=(async()=>{try{i&&(i.status="processing");let{exchangeTokens:h}=await Promise.all([c.e(7774),c.e(1708),c.e(4646),c.e(1847),c.e(9843),c.e(9761),c.e(4767),c.e(8129),c.e(3378),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(8032),c.e(9340)]).then(c.bind(c,9001)),{createProviderConnection:j}=await Promise.all([c.e(1708),c.e(4574)]).then(c.bind(c,71998)),k=d||i?.redirectUri,l=e||i?.codeVerifier,m=g||i?.meta,n=await h(a,b,k,l,f,m),o=await j({provider:a,authType:"oauth",...n,expiresAt:n.expiresIn?new Date(Date.now()+1e3*n.expiresIn).toISOString():null,testStatus:"active"});return i?(i.status="done",i.connectionId=o.id,i.email=o.email,i.displayName=o.displayName):f&&ab.set(f,{provider:a,status:"done",connectionId:o.id,email:o.email,displayName:o.displayName,createdAt:Date.now()}),{success:!0,connection:{id:o.id,provider:o.provider,email:o.email,displayName:o.displayName}}}catch(a){throw i&&(i.status="error",i.error=a.message),a}finally{h&&ag.delete(h)}})();return h&&ag.set(h,j),await j}let ai=new Map;function aj(a,b){return`${a}::${b}`}function ak({instanceId:a,state:b,codeVerifier:c,redirectUri:d,resource:e,clientId:f}){return!!a&&!!b&&!!c&&!!d&&!!f&&(ai.set(aj(a,b),{codeVerifier:c,clientId:f,redirectUri:d,resource:e,scope:void 0,status:"pending",error:void 0,tokens:void 0,createdAt:Date.now()}),!0)}function al(a,b){return ai.get(aj(a,b))||null}function am(a,b,c){let d=aj(a,b),e=ai.get(d);return!!e&&(void 0!==c.status&&(e.status=c.status),void 0!==c.error&&(e.error=c.error),void 0!==c.tokens&&(e.tokens=c.tokens),!0)}function an(a,b){ai.delete(aj(a,b))}let ao=null,ap=null,aq=null,ar=new Map;function as({state:a,privateKeyDer:b}){return!!a&&!!b&&(ar.set(a,{privateKeyDer:b,status:"pending",createdAt:Date.now()}),!0)}function at(a){let b=ar.get(a);return b?{status:b.status,result:b.result||null,error:b.error||null}:null}function au(a){ar.delete(a)}function av(a,b){let c=a?"Authentication Successful":"Authentication Failed";return`<!DOCTYPE html>
|
|
44
44
|
<html>
|
|
45
45
|
<head><meta charset="utf-8"><title>${c}</title>
|
|
46
46
|
<style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=2937,exports.ids=[2937],exports.modules={30869:(a,b,c)=>{c.d(b,{UY:()=>h,eh:()=>f.eh,fg:()=>e.fg,h0:()=>g,oc:()=>i});var d=c(39006),e=c(40615),f=c(81329);d.rE;let g={npmPackageName:"@rabbi696/ezrouter",installCmd:"npm i -g @rabbi696/ezrouter",installCmdLatest:"npm i -g @rabbi696/ezrouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20126},h={maxLines:200,pollIntervalMs:1e3,streamTimeoutMs:5e3},i={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,catchUpWindowMs:18e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingInactiveSession:!0,inactiveMinPingIntervalMs:18e6,pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.6-terra",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},32937:(a,b,c)=>{c.r(b),c.d(b,{configureQuotaAutoPing:()=>N,hasAnyAutoPingEnabled:()=>M,pingAccountNow:()=>G,runQuotaAutoPingTick:()=>J,startQuotaAutoPing:()=>K,stopQuotaAutoPing:()=>L}),c(30369);var d=c(89718),e=c(98594),f=c(49485),g=c(32072),h=c(92675),i=c(89843),j=c(39326),k=c(83352),l=c(30869);let m={anchor:"09:30",timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}(),windowHours:5,slotsPerDay:3};function n(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function o(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function p(a){if(!a||!0!==a.enabled)return null;let b=n(a.anchor)||n(m.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,d=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?m.timezone:a.timezone,e=o(a.windowHours,m.windowHours,.5,24),f=Math.round(o(a.slotsPerDay,m.slotsPerDay,1,Math.max(1,Math.floor(24/e))));return{enabled:!0,anchor:c,timezone:d,windowHours:e,slotsPerDay:f}}function q(a,b){let c=new Intl.DateTimeFormat("en-US",{timeZone:b,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(a)),d={};for(let a of c)"literal"!==a.type&&(d[a.type]=Number(a.value));return d}function r(a,b){let c=q(a,b);return Date.UTC(c.year,c.month-1,c.day,c.hour,c.minute,c.second)-a}function s(a,b){let{hour:c,minute:d}=n(a.anchor),e=q(b,a.timezone),f=function({year:a,month:b,day:c,hour:d,minute:e},f){let g=Date.UTC(a,b-1,c,d,e),h=r(g,f),i=g-h,j=r(i,f);return j===h?i:g-j}({year:e.year,month:e.month,day:e.day,hour:c,minute:d},a.timezone);return Array.from({length:a.slotsPerDay},(c,d)=>{var e;let g,h;return{key:(e=a.timezone,g=q(b,e),h=`${g.year}-${String(g.month).padStart(2,"0")}-${String(g.day).padStart(2,"0")}`,`${h}#${d}`),index:d,at:f+d*a.windowHours*36e5}})}let t=l.oc,u={claude:{getUsage:(a,b,c)=>(0,e.gl)(a,c),sendPing:C},codex:{getUsage:f.Tl,getModels:f.oH,sendPing:E}},v=global.__quotaAutoPing??={interval:null,running:!1,resetCache:{},failureCache:{},pingCache:{},pingedResetCache:{}};function w(a){let b=new Date(a).getTime();return Number.isFinite(b)?new Date(6e4*Math.floor(b/6e4)).toISOString():a}function x(a,b=null){if("number"==typeof a&&Number.isFinite(a))return a;if("string"==typeof a&&a.trim()){let b=Number(a);if(Number.isFinite(b))return b}return b}function y(a){if(!a||!0===a.unlimited)return!1;let b=x(a.remaining);if(null!==b)return b<=0;let c=x(a.used),d=x(a.total);return null!==d&&d>0&&null!==c&&c>=d}function z(a,b,c=Date.now(),d=null){if(!b)return!1;let e=new Date(a.lastPingAt).getTime(),f=x(d,-1/0),g=Math.max(Number.isFinite(e)?e:-1/0,f);return Number.isFinite(g)&&c-g<b}function A(a,b){return Object.entries(a||{}).some(([a,c])=>a!==b&&!String(a).toLowerCase().includes("session")&&y(c))}function B(a){return{connectionProxyEnabled:!0===a.connectionProxyEnabled,connectionProxyUrl:a.connectionProxyUrl||"",connectionNoProxy:a.connectionNoProxy||"",vercelRelayUrl:a.vercelRelayUrl||"",strictProxy:!1}}async function C(a,b,c,d){let e=await d.proxyAwareFetch("https://api.anthropic.com/v1/messages?beta=true",{method:"POST",signal:b.signal,headers:{...h.$B,Authorization:`Bearer ${a.accessToken}`,"content-type":"application/json"},body:JSON.stringify({model:b.pingModel,max_tokens:b.pingMaxTokens,messages:[{role:"user",content:b.pingText}]})},c);if(!e.ok){try{await e.body?.cancel?.()}catch{}return!1}if(b.verifyCompletion){let a=await e.json();return"message"===a.type&&!a.error}return await D(e),!0}async function D(a){if("function"==typeof a?.text)return await a.text();let b=a?.body?.getReader?.();if(!b)return"";let c=new TextDecoder,d="";try{for(;;){let{done:a,value:e}=await b.read();if(a)return d+c.decode();d+=c.decode(e,{stream:!0})}}finally{b.releaseLock?.()}}async function E(a,b,c,d){let e=b.pingModel,f=d.getExecutor("codex"),{response:g}=await f.execute({model:e,stream:!0,signal:b.signal,credentials:{accessToken:a.accessToken,connectionId:a.id,idToken:a.idToken,providerSpecificData:a.providerSpecificData},proxyOptions:c,log:console,body:{model:e,input:[{type:"message",role:"user",content:[{type:"input_text",text:b.pingText}]}],instructions:b.pingInstructions,reasoning:b.pingReasoningEffort?{effort:b.pingReasoningEffort,summary:"auto"}:void 0,store:!1,stream:!0}});if(!g.ok){try{await g.body?.cancel?.()}catch{}return!1}let h=await D(g);if(b.verifyCompletion){let a=h.split(/\r?\n/).filter(a=>a.startsWith("data: ")).flatMap(a=>{try{return[JSON.parse(a.slice(6))]}catch{return[]}});return!a.some(a=>["error","response.failed","response.incomplete"].includes(a.type))&&a.some(a=>"response.completed"===a.type&&a.response?.status==="completed")}return!0}async function F(a,b,c,d){let e,f;if(c.inFlight??=new Set,c.inFlight.has(a))return{status:"skipped",message:"Account already has a ping running."};c.inFlight.add(a);let g=AbortSignal.timeout(6e4);try{if(b.acquirePingLease&&!(e=await b.acquirePingLease(a)))return{status:"skipped",message:"Account already has a ping running."};return await Promise.race([d(g),new Promise(a=>{f=()=>a({status:"failed",message:"Ping timed out; delivery may have occurred. Check quota before retrying."}),g.addEventListener("abort",f,{once:!0})})])}finally{f&&g.removeEventListener("abort",f),c.inFlight.delete(a),e&&await b.releasePingLease(a,e)}}async function G(a,b={},c=I(),d=v){let e=(await c.getProviderConnections({isActive:!0})).find(b=>b.id===a&&!1!==b.isActive&&"oauth"===b.authType),f=e&&t.providers[e.provider];return f?F(a,c,d,async d=>{let g=async()=>{let g=B(await c.resolveConnectionProxyConfig(e.providerSpecificData)),h=await c.refreshAndUpdateCredentials(e,!1,g);if(!h.connection.accessToken)return{status:"skipped",message:"Account has no access token. Reconnect before pinging."};let i=u[e.provider],j=await i.getUsage(h.connection.accessToken,g,{force:!0}),k=j?.quotas||{},l=k[f.quotaKey];if(!l)return{status:"skipped",message:"Quota unavailable; no request sent."};if(y(l)||A(k,f.quotaKey))return{status:"skipped",message:"Quota exhausted; no request sent."};d.throwIfAborted();let m={...f,pingModel:b.model||f.pingModel,pingText:b.prompt||f.pingText,pingReasoningEffort:b.reasoning||f.pingReasoningEffort,signal:d,verifyCompletion:!0},n=await i.sendPing(h.connection,m,g,c);return(d.throwIfAborted(),n)?(await c.updateProviderConnection(a,{lastPingAt:new Date().toISOString(),...l.resetAt?{lastPingedResetAt:l.resetAt,lastPingedResetKey:w(l.resetAt)}:{}}),{status:"succeeded",message:"Ping completed."}):{status:"failed",message:"Provider did not complete the ping."}};try{return await g()}catch{return{status:"failed",message:"Ping failed. Check account authentication and provider availability."}}}):{status:"skipped",message:"Active Claude or Codex OAuth account required."}}async function H(a,b,c,d,e,f=v,g=null,h=!0){var i;let j=(i=a.id,`${b}:${i}`),k=f.resetCache[j];if(!g&&!c.pingWhenResetAtSlides&&k&&Date.now()<new Date(k).getTime()-t.refreshAheadMs||function(a,b,c=Date.now()){let d=a.failureCache[b];return d&&c-d<t.failureCooldownMs}(f,j))return;let l=await e.resolveConnectionProxyConfig(a.providerSpecificData),m=B(l),n=a;try{n=(await e.refreshAndUpdateCredentials(n,!1,m)).connection}catch(c){f.failureCache[j]=Date.now(),console.warn(`[AutoPing] ${b}:${a.id}: refresh failed: ${c.message}`);return}let o=await d.getUsage(n.accessToken,n.providerSpecificData,m,n.idToken);c.signal?.throwIfAborted();let q=o?.quotas||{},r=q?.[c.quotaKey],u=r?.resetAt;if(c.skipWhenBlockingQuotaExhausted&&A(q,c.quotaKey)||y(r))return;let x=Date.now(),C=function(a,b,c,d,e,f,g){let h,i;return!0===b.pingInactiveSession&&d&&!d.resetAt&&!y(d)&&(h=Object.entries(c||{}).filter(([a])=>String(a).toLowerCase().startsWith("weekly"))).length>0&&h.every(([,a])=>!y(a))&&!A(c,b.quotaKey)&&(!(i=String(a.providerSpecificData?.proxyPoolId??"").trim())||"__none__"===i||e?.proxyUnavailable!==!0&&e?.source!=="unavailable"&&String(e?.proxyPoolId??"").trim()===i&&!!e?.proxyPool)&&!z(a,b.inactiveMinPingIntervalMs,f,g)}(n,c,q,r,l,x,f.pingCache?.[j]),D=null,E=null,F=g?function(a,b=Date.now(),c=18e5){let d=(function(a,b=Date.now()){let c=p(a);return c?[...s(c,b-864e5),...s(c,b),...s(c,b+864e5)].sort((a,b)=>a.at-b.at):[]})(a,b).filter(a=>a.at<=b&&b-a.at<=c);return d.length?d[d.length-1]:null}(g,x):null,G=!!F&&n.lastPingedSlotKey!==F.key;if(G){if(z(n,c.minPingIntervalMs,x))return}else if(u){if((E=function(a,b,c,d){if(a.pingWhenResetAtSlides){let d,e;return b&&(d=new Date(b).getTime(),e=new Date(c).getTime(),(Number.isFinite(d)&&Number.isFinite(e)?e-d:0)>=(a.resetAtDriftMs||0))?c:null}let e=new Date(c).getTime();if(!Number.isFinite(e))return null;if(d>=e-t.pingLeadMs)return c;let f=b?new Date(b).getTime():NaN;return Number.isFinite(f)&&f-t.pingLeadMs<=d&&d-f<t.catchUpWindowMs&&e-f>t.refreshAheadMs?b:null}(c,k,u,x))&&E!==u||(f.resetCache[j]=u),!h||!E)return;D=w(E);let a=n.lastPingedResetKey||w(n.lastPingedResetAt);if(z(n,c.minPingIntervalMs,x)||a===D||f.pingedResetCache?.[j]===D){f.resetCache[j]=u;return}}else if(!h||!C)return;let I="codex"===b?(await d.getModels(n.accessToken,m,n.providerSpecificData))[0]?.slug:c.pingModel;if(!I){f.failureCache[j]=Date.now(),console.warn(`[AutoPing] ${b}:${n.id}: no supported model available`);return}let J=await d.sendPing(n,{...c,pingModel:I},m,e);if(c.signal?.throwIfAborted(),!J){f.failureCache[j]=Date.now(),console.warn(`[AutoPing] ${b}:${n.id}: ping failed (${G?`slot ${F.key}`:E?`reset ${E}`:"inactive session"})`);return}u&&(f.resetCache[j]=u,(f.pingedResetCache??={})[j]=D),C&&((f.pingCache??={})[j]=Date.now()),delete f.failureCache[j];let K=new Date().toISOString();await e.updateProviderConnection(n.id,{...E?{lastPingedResetAt:E,lastPingedResetKey:D}:{},...G?{lastPingedSlotKey:F.key}:{},lastPingAt:K,updatedAt:K}),C&&delete f.pingCache[j],console.log(`[AutoPing] ${b}:${n.id}: ping sent (${G?`slot ${F.key}`:E?`reset ${E}`:"inactive session"})`)}function I(){return{getSettings:d.mt,getProviderConnections:d.getProviderConnections,updateProviderConnection:d.updateProviderConnection,resolveConnectionProxyConfig:j.B,refreshAndUpdateCredentials:k.refreshAndUpdateCredentials,proxyAwareFetch:i.proxyAwareFetch,getExecutor:g.SB,acquirePingLease:async a=>(await c.e(6623).then(c.bind(c,6623))).acquirePingLease(a),releasePingLease:async(a,b)=>(await c.e(6623).then(c.bind(c,6623))).releasePingLease(a,b)}}async function J(a=I(),b=v){if(!b.running){b.running=!0;try{let e=await a.getSettings();for(let[f,g]of Object.entries(t.providers)){var c,d;let h=u[f];if(!h)continue;let i=e?.[g.settingsKey]?.connections||{},j=e?.[g.settingsKey]?.schedules||{};if(0!==Object.keys(i).length||0!==Object.keys(j).length)for(let k of(await a.getProviderConnections({provider:f,isActive:!0})).filter(a=>"oauth"===a.authType&&(!0===i[a.id]||null!==p(j[a.id]))))try{let d=(c=k.id,p((e?.[g.settingsKey]?.schedules||{})[c])),j=!0===i[k.id];await F(k.id,a,b,c=>H(k,f,{...g,signal:c},h,a,b,d,j))}catch(a){b.failureCache[d=k.id,`${f}:${d}`]=Date.now(),console.warn(`[AutoPing] ${f}:${k.id}: ${a.message}`)}}}catch(a){console.warn("[AutoPing] tick error:",a.message)}finally{b.running=!1}}}function K(){!v.interval&&(console.log("[AutoPing] scheduler started"),J().catch(()=>{}),v.interval=setInterval(()=>{J().catch(()=>{})},t.tickIntervalMs),v.interval.unref&&v.interval.unref())}function L(){v.interval&&(clearInterval(v.interval),v.interval=null,console.log("[AutoPing] scheduler stopped"))}function M(a){return Object.values(t.providers).some(b=>{let c=a?.[b.settingsKey];return Object.values(c?.connections||{}).some(Boolean)||Object.values(c?.schedules||{}).some(a=>null!==p(a))})}function N(a){M(a)?K():L()}},81329:(a,b,c)=>{c.d(b,{CP:()=>f,Xg:()=>d.Xg,bs:()=>g,eh:()=>e,vq:()=>d.PROVIDER_MODELS,zc:()=>i});var d=c(29485);Object.entries(c(40615).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.PROVIDER_MODELS).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),f=(a,b=null)=>a?.kind||a?.type||b,g={vision:{icon:"visibility",label:"Vision",desc:"Supports image input",color:"text-blue-500"},reasoning:{icon:"neurology",label:"Reasoning",desc:"Supports reasoning / thinking",color:"text-amber-500"}},h={"gemini-live":{label:"Gemini Live (realtime WebSocket)",desc:"Streams audio over bidiGenerateContent and returns incremental transcription segments"}};function i(a){return"string"==typeof a&&Object.prototype.hasOwnProperty.call(h,a.trim())}Object.freeze(Object.keys(h))}};
|
|
1
|
+
"use strict";exports.id=2937,exports.ids=[2937],exports.modules={32937:(a,b,c)=>{c.r(b),c.d(b,{configureQuotaAutoPing:()=>N,hasAnyAutoPingEnabled:()=>M,pingAccountNow:()=>G,runQuotaAutoPingTick:()=>J,startQuotaAutoPing:()=>K,stopQuotaAutoPing:()=>L}),c(30369);var d=c(89718),e=c(98594),f=c(49485),g=c(32072),h=c(92675),i=c(89843),j=c(39326),k=c(83352),l=c(30869);let m={anchor:"09:30",timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}(),windowHours:5,slotsPerDay:3};function n(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function o(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function p(a){if(!a||!0!==a.enabled)return null;let b=n(a.anchor)||n(m.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,d=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?m.timezone:a.timezone,e=o(a.windowHours,m.windowHours,.5,24),f=Math.round(o(a.slotsPerDay,m.slotsPerDay,1,Math.max(1,Math.floor(24/e))));return{enabled:!0,anchor:c,timezone:d,windowHours:e,slotsPerDay:f}}function q(a,b){let c=new Intl.DateTimeFormat("en-US",{timeZone:b,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(a)),d={};for(let a of c)"literal"!==a.type&&(d[a.type]=Number(a.value));return d}function r(a,b){let c=q(a,b);return Date.UTC(c.year,c.month-1,c.day,c.hour,c.minute,c.second)-a}function s(a,b){let{hour:c,minute:d}=n(a.anchor),e=q(b,a.timezone),f=function({year:a,month:b,day:c,hour:d,minute:e},f){let g=Date.UTC(a,b-1,c,d,e),h=r(g,f),i=g-h,j=r(i,f);return j===h?i:g-j}({year:e.year,month:e.month,day:e.day,hour:c,minute:d},a.timezone);return Array.from({length:a.slotsPerDay},(c,d)=>{var e;let g,h;return{key:(e=a.timezone,g=q(b,e),h=`${g.year}-${String(g.month).padStart(2,"0")}-${String(g.day).padStart(2,"0")}`,`${h}#${d}`),index:d,at:f+d*a.windowHours*36e5}})}let t=l.oc,u={claude:{getUsage:(a,b,c)=>(0,e.gl)(a,c),sendPing:C},codex:{getUsage:f.Tl,getModels:f.oH,sendPing:E}},v=global.__quotaAutoPing??={interval:null,running:!1,resetCache:{},failureCache:{},pingCache:{},pingedResetCache:{}};function w(a){let b=new Date(a).getTime();return Number.isFinite(b)?new Date(6e4*Math.floor(b/6e4)).toISOString():a}function x(a,b=null){if("number"==typeof a&&Number.isFinite(a))return a;if("string"==typeof a&&a.trim()){let b=Number(a);if(Number.isFinite(b))return b}return b}function y(a){if(!a||!0===a.unlimited)return!1;let b=x(a.remaining);if(null!==b)return b<=0;let c=x(a.used),d=x(a.total);return null!==d&&d>0&&null!==c&&c>=d}function z(a,b,c=Date.now(),d=null){if(!b)return!1;let e=new Date(a.lastPingAt).getTime(),f=x(d,-1/0),g=Math.max(Number.isFinite(e)?e:-1/0,f);return Number.isFinite(g)&&c-g<b}function A(a,b){return Object.entries(a||{}).some(([a,c])=>a!==b&&!String(a).toLowerCase().includes("session")&&y(c))}function B(a){return{connectionProxyEnabled:!0===a.connectionProxyEnabled,connectionProxyUrl:a.connectionProxyUrl||"",connectionNoProxy:a.connectionNoProxy||"",vercelRelayUrl:a.vercelRelayUrl||"",strictProxy:!1}}async function C(a,b,c,d){let e=await d.proxyAwareFetch("https://api.anthropic.com/v1/messages?beta=true",{method:"POST",signal:b.signal,headers:{...h.$B,Authorization:`Bearer ${a.accessToken}`,"content-type":"application/json"},body:JSON.stringify({model:b.pingModel,max_tokens:b.pingMaxTokens,messages:[{role:"user",content:b.pingText}]})},c);if(!e.ok){try{await e.body?.cancel?.()}catch{}return!1}if(b.verifyCompletion){let a=await e.json();return"message"===a.type&&!a.error}return await D(e),!0}async function D(a){if("function"==typeof a?.text)return await a.text();let b=a?.body?.getReader?.();if(!b)return"";let c=new TextDecoder,d="";try{for(;;){let{done:a,value:e}=await b.read();if(a)return d+c.decode();d+=c.decode(e,{stream:!0})}}finally{b.releaseLock?.()}}async function E(a,b,c,d){let e=b.pingModel,f=d.getExecutor("codex"),{response:g}=await f.execute({model:e,stream:!0,signal:b.signal,credentials:{accessToken:a.accessToken,connectionId:a.id,idToken:a.idToken,providerSpecificData:a.providerSpecificData},proxyOptions:c,log:console,body:{model:e,input:[{type:"message",role:"user",content:[{type:"input_text",text:b.pingText}]}],instructions:b.pingInstructions,reasoning:b.pingReasoningEffort?{effort:b.pingReasoningEffort,summary:"auto"}:void 0,store:!1,stream:!0}});if(!g.ok){try{await g.body?.cancel?.()}catch{}return!1}let h=await D(g);if(b.verifyCompletion){let a=h.split(/\r?\n/).filter(a=>a.startsWith("data: ")).flatMap(a=>{try{return[JSON.parse(a.slice(6))]}catch{return[]}});return!a.some(a=>["error","response.failed","response.incomplete"].includes(a.type))&&a.some(a=>"response.completed"===a.type&&a.response?.status==="completed")}return!0}async function F(a,b,c,d){let e,f;if(c.inFlight??=new Set,c.inFlight.has(a))return{status:"skipped",message:"Account already has a ping running."};c.inFlight.add(a);let g=AbortSignal.timeout(6e4);try{if(b.acquirePingLease&&!(e=await b.acquirePingLease(a)))return{status:"skipped",message:"Account already has a ping running."};return await Promise.race([d(g),new Promise(a=>{f=()=>a({status:"failed",message:"Ping timed out; delivery may have occurred. Check quota before retrying."}),g.addEventListener("abort",f,{once:!0})})])}finally{f&&g.removeEventListener("abort",f),c.inFlight.delete(a),e&&await b.releasePingLease(a,e)}}async function G(a,b={},c=I(),d=v){let e=(await c.getProviderConnections({isActive:!0})).find(b=>b.id===a&&!1!==b.isActive&&"oauth"===b.authType),f=e&&t.providers[e.provider];return f?F(a,c,d,async d=>{let g=async()=>{let g=B(await c.resolveConnectionProxyConfig(e.providerSpecificData)),h=await c.refreshAndUpdateCredentials(e,!1,g);if(!h.connection.accessToken)return{status:"skipped",message:"Account has no access token. Reconnect before pinging."};let i=u[e.provider],j=await i.getUsage(h.connection.accessToken,g,{force:!0}),k=j?.quotas||{},l=k[f.quotaKey];if(!l)return{status:"skipped",message:"Quota unavailable; no request sent."};if(y(l)||A(k,f.quotaKey))return{status:"skipped",message:"Quota exhausted; no request sent."};d.throwIfAborted();let m={...f,pingModel:b.model||f.pingModel,pingText:b.prompt||f.pingText,pingReasoningEffort:b.reasoning||f.pingReasoningEffort,signal:d,verifyCompletion:!0},n=await i.sendPing(h.connection,m,g,c);return(d.throwIfAborted(),n)?(await c.updateProviderConnection(a,{lastPingAt:new Date().toISOString(),...l.resetAt?{lastPingedResetAt:l.resetAt,lastPingedResetKey:w(l.resetAt)}:{}}),{status:"succeeded",message:"Ping completed."}):{status:"failed",message:"Provider did not complete the ping."}};try{return await g()}catch{return{status:"failed",message:"Ping failed. Check account authentication and provider availability."}}}):{status:"skipped",message:"Active Claude or Codex OAuth account required."}}async function H(a,b,c,d,e,f=v,g=null,h=!0){var i;let j=(i=a.id,`${b}:${i}`),k=f.resetCache[j];if(!g&&!c.pingWhenResetAtSlides&&k&&Date.now()<new Date(k).getTime()-t.refreshAheadMs||function(a,b,c=Date.now()){let d=a.failureCache[b];return d&&c-d<t.failureCooldownMs}(f,j))return;let l=await e.resolveConnectionProxyConfig(a.providerSpecificData),m=B(l),n=a;try{n=(await e.refreshAndUpdateCredentials(n,!1,m)).connection}catch(c){f.failureCache[j]=Date.now(),console.warn(`[AutoPing] ${b}:${a.id}: refresh failed: ${c.message}`);return}let o=await d.getUsage(n.accessToken,n.providerSpecificData,m,n.idToken);c.signal?.throwIfAborted();let q=o?.quotas||{},r=q?.[c.quotaKey],u=r?.resetAt;if(c.skipWhenBlockingQuotaExhausted&&A(q,c.quotaKey)||y(r))return;let x=Date.now(),C=function(a,b,c,d,e,f,g){let h,i;return!0===b.pingInactiveSession&&d&&!d.resetAt&&!y(d)&&(h=Object.entries(c||{}).filter(([a])=>String(a).toLowerCase().startsWith("weekly"))).length>0&&h.every(([,a])=>!y(a))&&!A(c,b.quotaKey)&&(!(i=String(a.providerSpecificData?.proxyPoolId??"").trim())||"__none__"===i||e?.proxyUnavailable!==!0&&e?.source!=="unavailable"&&String(e?.proxyPoolId??"").trim()===i&&!!e?.proxyPool)&&!z(a,b.inactiveMinPingIntervalMs,f,g)}(n,c,q,r,l,x,f.pingCache?.[j]),D=null,E=null,F=g?function(a,b=Date.now(),c=18e5){let d=(function(a,b=Date.now()){let c=p(a);return c?[...s(c,b-864e5),...s(c,b),...s(c,b+864e5)].sort((a,b)=>a.at-b.at):[]})(a,b).filter(a=>a.at<=b&&b-a.at<=c);return d.length?d[d.length-1]:null}(g,x):null,G=!!F&&n.lastPingedSlotKey!==F.key;if(G){if(z(n,c.minPingIntervalMs,x))return}else if(u){if((E=function(a,b,c,d){if(a.pingWhenResetAtSlides){let d,e;return b&&(d=new Date(b).getTime(),e=new Date(c).getTime(),(Number.isFinite(d)&&Number.isFinite(e)?e-d:0)>=(a.resetAtDriftMs||0))?c:null}let e=new Date(c).getTime();if(!Number.isFinite(e))return null;if(d>=e-t.pingLeadMs)return c;let f=b?new Date(b).getTime():NaN;return Number.isFinite(f)&&f-t.pingLeadMs<=d&&d-f<t.catchUpWindowMs&&e-f>t.refreshAheadMs?b:null}(c,k,u,x))&&E!==u||(f.resetCache[j]=u),!h||!E)return;D=w(E);let a=n.lastPingedResetKey||w(n.lastPingedResetAt);if(z(n,c.minPingIntervalMs,x)||a===D||f.pingedResetCache?.[j]===D){f.resetCache[j]=u;return}}else if(!h||!C)return;let I="codex"===b?(await d.getModels(n.accessToken,m,n.providerSpecificData))[0]?.slug:c.pingModel;if(!I){f.failureCache[j]=Date.now(),console.warn(`[AutoPing] ${b}:${n.id}: no supported model available`);return}let J=await d.sendPing(n,{...c,pingModel:I},m,e);if(c.signal?.throwIfAborted(),!J){f.failureCache[j]=Date.now(),console.warn(`[AutoPing] ${b}:${n.id}: ping failed (${G?`slot ${F.key}`:E?`reset ${E}`:"inactive session"})`);return}u&&(f.resetCache[j]=u,(f.pingedResetCache??={})[j]=D),C&&((f.pingCache??={})[j]=Date.now()),delete f.failureCache[j];let K=new Date().toISOString();await e.updateProviderConnection(n.id,{...E?{lastPingedResetAt:E,lastPingedResetKey:D}:{},...G?{lastPingedSlotKey:F.key}:{},lastPingAt:K,updatedAt:K}),C&&delete f.pingCache[j],console.log(`[AutoPing] ${b}:${n.id}: ping sent (${G?`slot ${F.key}`:E?`reset ${E}`:"inactive session"})`)}function I(){return{getSettings:d.mt,getProviderConnections:d.getProviderConnections,updateProviderConnection:d.updateProviderConnection,resolveConnectionProxyConfig:j.B,refreshAndUpdateCredentials:k.refreshAndUpdateCredentials,proxyAwareFetch:i.proxyAwareFetch,getExecutor:g.SB,acquirePingLease:async a=>(await c.e(6623).then(c.bind(c,6623))).acquirePingLease(a),releasePingLease:async(a,b)=>(await c.e(6623).then(c.bind(c,6623))).releasePingLease(a,b)}}async function J(a=I(),b=v){if(!b.running){b.running=!0;try{let e=await a.getSettings();for(let[f,g]of Object.entries(t.providers)){var c,d;let h=u[f];if(!h)continue;let i=e?.[g.settingsKey]?.connections||{},j=e?.[g.settingsKey]?.schedules||{};if(0!==Object.keys(i).length||0!==Object.keys(j).length)for(let k of(await a.getProviderConnections({provider:f,isActive:!0})).filter(a=>"oauth"===a.authType&&(!0===i[a.id]||null!==p(j[a.id]))))try{let d=(c=k.id,p((e?.[g.settingsKey]?.schedules||{})[c])),j=!0===i[k.id];await F(k.id,a,b,c=>H(k,f,{...g,signal:c},h,a,b,d,j))}catch(a){b.failureCache[d=k.id,`${f}:${d}`]=Date.now(),console.warn(`[AutoPing] ${f}:${k.id}: ${a.message}`)}}}catch(a){console.warn("[AutoPing] tick error:",a.message)}finally{b.running=!1}}}function K(){!v.interval&&(console.log("[AutoPing] scheduler started"),J().catch(()=>{}),v.interval=setInterval(()=>{J().catch(()=>{})},t.tickIntervalMs),v.interval.unref&&v.interval.unref())}function L(){v.interval&&(clearInterval(v.interval),v.interval=null,console.log("[AutoPing] scheduler stopped"))}function M(a){return Object.values(t.providers).some(b=>{let c=a?.[b.settingsKey];return Object.values(c?.connections||{}).some(Boolean)||Object.values(c?.schedules||{}).some(a=>null!==p(a))})}function N(a){M(a)?K():L()}}};
|