@rabbi696/ezrouter 0.5.99 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +7 -5
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/routes-manifest.json +16 -4
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/media-providers/[kind]/[id]/page.js +5 -5
- 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 +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
- 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 +2 -2
- 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 +18 -5
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_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 +2 -2
- 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 +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/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 +2 -2
- 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 +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 +6 -6
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- 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/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 +2 -2
- 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-settings/route.js +3 -3
- 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 +2 -2
- 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/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +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 +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/grok-build-settings/route.js +4 -4
- 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-settings/route.js +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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +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/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/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/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/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 +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/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 +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 +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 +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 +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/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/catalog-sync/route.js +1 -0
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/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 +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route_client-reference-manifest.js +1 -0
- 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/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]/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 +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 +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 +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/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/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/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 +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 +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 +2 -2
- 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 +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 +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 +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 +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/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 +2 -2
- 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/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/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 +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 -0
- package/app/.next-cli-build/server/app/api/v1/models/{[kind] → [...model]}/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route_client-reference-manifest.js +1 -0
- 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/models/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/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/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/callback/page.js +2 -2
- 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 +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +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 +7 -7
- 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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- 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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.rsc +7 -7
- 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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
- 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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
- 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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +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 +8 -8
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +7 -7
- 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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
- 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 +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- 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 +7 -7
- 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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
- 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 +7 -7
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +5 -5
- 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 +5 -5
- 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 +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +2 -2
- 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 +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +2 -2
- 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 +6 -6
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +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 +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +2 -2
- 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 +7 -5
- package/app/.next-cli-build/server/chunks/1133.js +1 -1
- package/app/.next-cli-build/server/chunks/1253.js +1 -1
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/1522.js +1 -1
- package/app/.next-cli-build/server/chunks/1531.js +1 -1
- package/app/.next-cli-build/server/chunks/1714.js +1 -1
- package/app/.next-cli-build/server/chunks/1847.js +1 -0
- package/app/.next-cli-build/server/chunks/2177.js +1 -1
- package/app/.next-cli-build/server/chunks/2269.js +1 -1
- package/app/.next-cli-build/server/chunks/2382.js +1 -0
- package/app/.next-cli-build/server/chunks/2547.js +3 -3
- package/app/.next-cli-build/server/chunks/2892.js +1 -0
- package/app/.next-cli-build/server/chunks/2898.js +1 -1
- package/app/.next-cli-build/server/chunks/290.js +1 -0
- package/app/.next-cli-build/server/chunks/3148.js +2 -2
- package/app/.next-cli-build/server/chunks/3433.js +6 -6
- package/app/.next-cli-build/server/chunks/3547.js +1 -1
- package/app/.next-cli-build/server/chunks/3647.js +1 -0
- package/app/.next-cli-build/server/chunks/369.js +24 -24
- package/app/.next-cli-build/server/chunks/3814.js +1 -1
- package/app/.next-cli-build/server/chunks/3886.js +1 -0
- package/app/.next-cli-build/server/chunks/412.js +2 -2
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4562.js +1 -1
- package/app/.next-cli-build/server/chunks/4646.js +1 -1
- package/app/.next-cli-build/server/chunks/{9233.js → 4704.js} +2 -2
- package/app/.next-cli-build/server/chunks/476.js +1 -1
- package/app/.next-cli-build/server/chunks/4928.js +1 -9
- package/app/.next-cli-build/server/chunks/4999.js +1 -1
- package/app/.next-cli-build/server/chunks/5129.js +1 -1
- package/app/.next-cli-build/server/chunks/5849.js +1 -0
- package/app/.next-cli-build/server/chunks/6112.js +1 -0
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6405.js +1 -1
- package/app/.next-cli-build/server/chunks/{5681.js → 6436.js} +1 -1
- package/app/.next-cli-build/server/chunks/6535.js +23 -20
- package/app/.next-cli-build/server/chunks/6958.js +1 -0
- package/app/.next-cli-build/server/chunks/7054.js +1 -0
- package/app/.next-cli-build/server/chunks/7239.js +1 -1
- package/app/.next-cli-build/server/chunks/7353.js +1 -1
- package/app/.next-cli-build/server/chunks/7362.js +2 -2
- package/app/.next-cli-build/server/chunks/7413.js +2 -0
- package/app/.next-cli-build/server/chunks/{7456.js → 7438.js} +16 -16
- package/app/.next-cli-build/server/chunks/7467.js +1 -0
- package/app/.next-cli-build/server/chunks/7603.js +1 -0
- package/app/.next-cli-build/server/chunks/7716.js +1 -0
- package/app/.next-cli-build/server/chunks/7734.js +1 -1
- package/app/.next-cli-build/server/chunks/7775.js +1 -1
- package/app/.next-cli-build/server/chunks/7785.js +9 -0
- package/app/.next-cli-build/server/chunks/8129.js +1 -1
- package/app/.next-cli-build/server/chunks/8243.js +3 -3
- package/app/.next-cli-build/server/chunks/8251.js +2 -2
- package/app/.next-cli-build/server/chunks/8326.js +1 -1
- package/app/.next-cli-build/server/chunks/8421.js +1 -1
- package/app/.next-cli-build/server/chunks/8851.js +1 -1
- package/app/.next-cli-build/server/chunks/8901.js +95 -95
- package/app/.next-cli-build/server/chunks/8946.js +1 -1
- package/app/.next-cli-build/server/chunks/8976.js +1 -1
- package/app/.next-cli-build/server/chunks/9043.js +1 -1
- package/app/.next-cli-build/server/chunks/9296.js +1 -1
- package/app/.next-cli-build/server/chunks/9303.js +1 -0
- package/app/.next-cli-build/server/chunks/9485.js +1 -0
- 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 +2 -2
- 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/4mlCrBOTKFKg2N9Gnk9oD/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/{1321-41a94f7ab0a65d8c.js → 1321-811432d2e5bb2b49.js} +1 -1
- package/app/.next-cli-build/static/chunks/2595-2d703efb995163a7.js +95 -0
- package/app/.next-cli-build/static/chunks/{5497-22fe81a552f1646d.js → 5497-675887789aaf2c43.js} +3 -3
- package/app/.next-cli-build/static/chunks/801-a83c4648747b8c6a.js +1 -0
- package/app/.next-cli-build/static/chunks/8105-e46089480e63b1a9.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-c7840dae0ef76527.js → page-178f383964973bfb.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-0e4d3fb00fc6a9bf.js → page-ce0b5b8882899119.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-4c63bfc57149c7eb.js → page-257aaa1374d529b4.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-64177496760b1187.js → page-78c78a3108fbe60e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-dc6c3c72e5d6acc3.js → page-2c65df20769d31df.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/convoy/{page-5ada6cd825b67236.js → page-8c2bc69a688a000b.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-a840225ab3f601c2.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0ab40e69321978fb.js → page-90a4f789d907db25.js} +4 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-cb36efdbd929e8e1.js → page-c671ae36a313887b.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-46eaa5603462d610.js → page-3df89694c0bbdeb8.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-ed1ea0fa33a0b190.js → page-b2540d642bc46f4c.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-e316dc83a5a557a6.js → page-e44166090e05cfb3.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-18192f830d2ddb76.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-db01adc017c79525.js → page-e996175d559e9e5a.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f3d9a84f9e04119e.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-b6b4de987365ec8f.js → page-3f52ff9517c679ba.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-10cfe308dcee550e.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-491fe95c5b5277a9.js → page-a43ff8ae35edb414.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-ec79e9bb5a842351.js → page-1ac6f4d529f9b6a5.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c55b823e44230396.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/routing-health/{page-703d4a28b1852949.js → page-a14b37a404e5e6e0.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-b6026576dd4be770.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-93bca4f363f4b6f1.js → page-73fe7ee1ecd1bd52.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-34f5228777b0430d.js → page-74477be9930501e3.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-3ecea7f87104d318.js → page-d74d7a054b638e0d.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-d77f0a1a4ce2f537.js → layout-100d6d3c6c7256f1.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/landing/page-7d5b31b8481d8fdd.js +1 -0
- package/app/.next-cli-build/static/chunks/app/login/{page-27e9a95a150a0ac4.js → page-57af8e67ea3a745f.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/css/abc246bcd6eb079c.css +1 -0
- package/app/CHANGELOG.md +333 -2
- package/app/package.json +3 -3
- package/app/public/CHANGELOG.md +333 -2
- package/app/public/i18n/literals/id.json +1368 -159
- package/app/public/i18n/literals/pt-BR.json +7 -8
- package/app/public/i18n/literals/zh-CN.json +1 -0
- package/app/public/providers/alims-intl.png +0 -0
- package/app/public/providers/alitp-intl.png +0 -0
- package/app/public/providers/fish-audio.png +0 -0
- package/app/public/providers/selfhosted-embedding.png +0 -0
- package/app/public/providers/selfhosted-stt.png +0 -0
- package/app/public/providers/selfhosted-tts.png +0 -0
- package/app/public/providers/xquik.png +0 -0
- package/app/src/mitm/server.js +26 -26
- package/hooks/sqliteRuntime.js +28 -5
- package/package.json +1 -1
- package/src/cli/menus/providers.js +5 -0
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +0 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route_client-reference-manifest.js +0 -1
- package/app/.next-cli-build/server/chunks/1446.js +0 -1
- package/app/.next-cli-build/server/chunks/2031.js +0 -1
- package/app/.next-cli-build/server/chunks/3904.js +0 -1
- package/app/.next-cli-build/server/chunks/5502.js +0 -1
- package/app/.next-cli-build/server/chunks/5841.js +0 -1
- package/app/.next-cli-build/server/chunks/7281.js +0 -1
- package/app/.next-cli-build/server/chunks/7335.js +0 -1
- package/app/.next-cli-build/server/chunks/7591.js +0 -1
- package/app/.next-cli-build/server/chunks/8906.js +0 -2
- package/app/.next-cli-build/server/chunks/9212.js +0 -1
- package/app/.next-cli-build/server/chunks/9884.js +0 -1
- package/app/.next-cli-build/static/9d6V9rrAx8cIjAoaKJjvb/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/2595-1b1c30e3a4314456.js +0 -92
- package/app/.next-cli-build/static/chunks/801-9683dc19ffb81217.js +0 -1
- package/app/.next-cli-build/static/chunks/8105-39d6edfaddcbf181.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-272444fcf2114bb5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-2247901c7422157d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-04f568d5510f26f7.js +0 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-38f69db60cdfe7cd.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-973240b44eb04877.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-4b65eb84c14bf9f0.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/landing/page-e7e81318e9e5c4e4.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/css/c784a89390f4e764.css +0 -1
- /package/app/.next-cli-build/static/{9d6V9rrAx8cIjAoaKJjvb → 4mlCrBOTKFKg2N9Gnk9oD}/_ssgManifest.js +0 -0
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
data: ${d}
|
|
5
5
|
|
|
6
6
|
`)}catch{}}}),f.stderr.on("data",b=>console.log(`[mcp:${a}]`,b.toString().trim())),f.on("exit",c=>{console.log(`[mcp:${a}] exited`,c),b.delete(a)}),c}a.exports={getOrSpawn:j,registerSession:function(a,b){let c=j(a),d=e.randomUUID();return c.sessions.set(d,b),d},unregisterSession:function(a,b){let c=h().get(a);if(c&&(c.sessions.delete(b),0===c.sessions.size)){try{c.proc.kill()}catch{}h().delete(a)}},sendToChild:function(a,b){let c=h().get(a);if(!c?.proc?.stdin?.writable)throw Error(`Bridge not running: ${a}`);c.proc.stdin.write(`${JSON.stringify(b)}
|
|
7
|
-
`)},isRunning:function(a){let b=h().get(a);return!!(b?.proc&&!b.proc.killed&&null===b.proc.exitCode)},findPlugin:i,killAllBridges:function(){let a=h();for(let[b,c]of a){try{c.proc.kill()}catch{}a.delete(b)}}}},28286:a=>{a.exports={DEFAULT_PLUGINS:[{name:"exa",title:"Exa",description:"Real-time web search and code documentation",url:"https://mcp.exa.ai/mcp",transport:"http",oauth:!1,toolNames:["web_search_exa","web_fetch_exa"]},{name:"tavily",title:"Tavily",description:"Real-time web search optimized for LLM agents",url:"https://mcp.tavily.com/mcp",transport:"http",oauth:!0,toolNames:["tavily_search","tavily_extract","tavily_crawl","tavily_map"]}],LOCAL_STDIO_PLUGINS:[{name:"browsermcp",title:"Browser MCP",description:"Control your running Chrome (requires Chrome extension)",extensionUrl:"https://chromewebstore.google.com/detail/browser-mcp-automate-your/bjfgambnhccakkhmkepdoekmckoijdlc",command:"npx",args:["-y","@browsermcp/mcp@latest"],toolNames:["browser_navigate","browser_snapshot","browser_click","browser_type","browser_screenshot","browser_get_console_logs","browser_wait","browser_press_key","browser_go_back","browser_go_forward"]}],buildManagedMcpServers:function(a){let b=Array.isArray(a)?a:[],c=[],d=new Set;for(let a of b){if(!a?.name||!a?.url||d.has(a.name))continue;d.add(a.name);let b={name:a.name,url:a.url,transport:a.transport||(/\/sse(\b|\/)/i.test(a.url)?"sse":"http")};if(a.oauth&&(b.oauth=!0),Array.isArray(a.toolNames)&&a.toolNames.length>0){let c=`${a.name}-`,d=new Set;for(let b of a.toolNames){if("string"!=typeof b||!b)continue;let a=b;for(;a.startsWith(c);)a=a.slice(c.length);d.add(a)}let e={};for(let a of d)e[a]="allow",e[`${c}${a}`]="allow";b.toolPolicy=e}c.push(b)}return c}}},76476:(a,b,c)=>{c.d(b,{N:()=>n,v:()=>m});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j=process.env.DATA_DIR||("win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),"ezrouter"):g().join(i().homedir(),".ezrouter")),k=g().join(j,"mitm","aliases.json");function l(a){let b=g().dirname(k);e().mkdirSync(b,{recursive:!0});let c=`${k}.tmp`;e().writeFileSync(c,JSON.stringify(a,null,2),"utf8"),e().renameSync(c,k)}async function m(){try{let{getMitmAlias:a}=await Promise.resolve().then(c.bind(c,9460)),b=await a();l(b||{})}catch(a){console.log("[mitmAliasCache] sync failed:",a.message)}}function n(a,b){try{let c={};if(e().existsSync(k))try{c=JSON.parse(e().readFileSync(k,"utf8"))}catch{}c[a]=b||{},l(c)}catch(a){console.log("[mitmAliasCache] write failed:",a.message)}}},94123:(a,b,c)=>{c.d(b,{Ay:()=>w,Zh:()=>v});var d=c(21820),e=c.n(d),f=c(1932),g=c(33873),h=c(29021),i=c(89718),j=c(17302),k=c(96182),l=c(76476),m=c(17113),n=c(16329);if(!process.env.MITM_SERVER_PATH)try{let a=(0,f.fileURLToPath)("file:///Volumes/Files/Projects/EzRouter/EzRouter/src/shared/services/initializeApp.js"),b=(0,g.dirname)((0,g.dirname)(a)),c=(0,g.join)(b,"mitm","server.js");(0,h.existsSync)(c)&&(process.env.MITM_SERVER_PATH=c)}catch{}try{(0,k.initDbHooks)(i.mt,i.Xx)}catch{}process.setMaxListeners(20);let o=global.__appSingleton??={signalHandlersRegistered:!1,watchdogInterval:null,networkMonitorInterval:null,lastNetworkFingerprint:null,lastWatchdogTick:Date.now(),lastOnline:null,mitmStartInProgress:!1,tunnelAutoResumed:!1,tailscaleAutoResumed:!1};async function p(){var a;await (0,i.bI)();let b=await (0,i.mt)();b.tunnelEnabled&&!o.tunnelAutoResumed&&(o.tunnelAutoResumed=!0,console.log("[InitApp] Tunnel was enabled, auto-resuming..."),s("startup").catch(a=>console.log("[InitApp] Tunnel resume failed:",a.message))),b.tailscaleEnabled&&!o.tailscaleAutoResumed&&(o.tailscaleAutoResumed=!0,console.log("[InitApp] Tailscale was enabled, auto-resuming..."),t("startup").catch(a=>console.log("[InitApp] Tailscale resume failed:",a.message))),b.tunnelEnabled&&(0,j.Al)().catch(()=>{}),b.mitmEnabled&&((0,l.v)().catch(()=>{}),q(b)),v(b),a=b,[a?.claudeAutoPing,a?.codexAutoPing].some(a=>Object.values(a?.connections||{}).some(Boolean))&&Promise.all([c.e(7774),c.e(
|
|
7
|
+
`)},isRunning:function(a){let b=h().get(a);return!!(b?.proc&&!b.proc.killed&&null===b.proc.exitCode)},findPlugin:i,killAllBridges:function(){let a=h();for(let[b,c]of a){try{c.proc.kill()}catch{}a.delete(b)}}}},28286:a=>{a.exports={DEFAULT_PLUGINS:[{name:"exa",title:"Exa",description:"Real-time web search and code documentation",url:"https://mcp.exa.ai/mcp",transport:"http",oauth:!1,toolNames:["web_search_exa","web_fetch_exa"]},{name:"tavily",title:"Tavily",description:"Real-time web search optimized for LLM agents",url:"https://mcp.tavily.com/mcp",transport:"http",oauth:!0,toolNames:["tavily_search","tavily_extract","tavily_crawl","tavily_map"]}],LOCAL_STDIO_PLUGINS:[{name:"browsermcp",title:"Browser MCP",description:"Control your running Chrome (requires Chrome extension)",extensionUrl:"https://chromewebstore.google.com/detail/browser-mcp-automate-your/bjfgambnhccakkhmkepdoekmckoijdlc",command:"npx",args:["-y","@browsermcp/mcp@latest"],toolNames:["browser_navigate","browser_snapshot","browser_click","browser_type","browser_screenshot","browser_get_console_logs","browser_wait","browser_press_key","browser_go_back","browser_go_forward"]}],buildManagedMcpServers:function(a){let b=Array.isArray(a)?a:[],c=[],d=new Set;for(let a of b){if(!a?.name||!a?.url||d.has(a.name))continue;d.add(a.name);let b={name:a.name,url:a.url,transport:a.transport||(/\/sse(\b|\/)/i.test(a.url)?"sse":"http")};if(a.oauth&&(b.oauth=!0),Array.isArray(a.toolNames)&&a.toolNames.length>0){let c=`${a.name}-`,d=new Set;for(let b of a.toolNames){if("string"!=typeof b||!b)continue;let a=b;for(;a.startsWith(c);)a=a.slice(c.length);d.add(a)}let e={};for(let a of d)e[a]="allow",e[`${c}${a}`]="allow";b.toolPolicy=e}c.push(b)}return c}}},76476:(a,b,c)=>{c.d(b,{N:()=>n,v:()=>m});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j=process.env.DATA_DIR||("win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),"ezrouter"):g().join(i().homedir(),".ezrouter")),k=g().join(j,"mitm","aliases.json");function l(a){let b=g().dirname(k);e().mkdirSync(b,{recursive:!0});let c=`${k}.tmp`;e().writeFileSync(c,JSON.stringify(a,null,2),"utf8"),e().renameSync(c,k)}async function m(){try{let{getMitmAlias:a}=await Promise.resolve().then(c.bind(c,9460)),b=await a();l(b||{})}catch(a){console.log("[mitmAliasCache] sync failed:",a.message)}}function n(a,b){try{let c={};if(e().existsSync(k))try{c=JSON.parse(e().readFileSync(k,"utf8"))}catch{}c[a]=b||{},l(c)}catch(a){console.log("[mitmAliasCache] write failed:",a.message)}}},94123:(a,b,c)=>{c.d(b,{Ay:()=>w,Zh:()=>v});var d=c(21820),e=c.n(d),f=c(1932),g=c(33873),h=c(29021),i=c(89718),j=c(17302),k=c(96182),l=c(76476),m=c(17113),n=c(16329);if(!process.env.MITM_SERVER_PATH)try{let a=(0,f.fileURLToPath)("file:///Volumes/Files/Projects/EzRouter/EzRouter/src/shared/services/initializeApp.js"),b=(0,g.dirname)((0,g.dirname)(a)),c=(0,g.join)(b,"mitm","server.js");(0,h.existsSync)(c)&&(process.env.MITM_SERVER_PATH=c)}catch{}try{(0,k.initDbHooks)(i.mt,i.Xx)}catch{}process.setMaxListeners(20);let o=global.__appSingleton??={signalHandlersRegistered:!1,watchdogInterval:null,networkMonitorInterval:null,lastNetworkFingerprint:null,lastWatchdogTick:Date.now(),lastOnline:null,mitmStartInProgress:!1,tunnelAutoResumed:!1,tailscaleAutoResumed:!1};async function p(){var a;await (0,i.bI)();let b=await (0,i.mt)();b.tunnelEnabled&&!o.tunnelAutoResumed&&(o.tunnelAutoResumed=!0,console.log("[InitApp] Tunnel was enabled, auto-resuming..."),s("startup").catch(a=>console.log("[InitApp] Tunnel resume failed:",a.message))),b.tailscaleEnabled&&!o.tailscaleAutoResumed&&(o.tailscaleAutoResumed=!0,console.log("[InitApp] Tailscale was enabled, auto-resuming..."),t("startup").catch(a=>console.log("[InitApp] Tailscale resume failed:",a.message))),b.tunnelEnabled&&(0,j.Al)().catch(()=>{}),b.mitmEnabled&&((0,l.v)().catch(()=>{}),q(b)),v(b),a=b,[a?.claudeAutoPing,a?.codexAutoPing].some(a=>Object.values(a?.connections||{}).some(Boolean))&&Promise.all([c.e(7774),c.e(2892),c.e(1522),c.e(4646),c.e(1329),c.e(1847),c.e(8851),c.e(8946),c.e(8129),c.e(3148),c.e(4928),c.e(7353),c.e(9276),c.e(2547),c.e(7438),c.e(369),c.e(3547),c.e(1714)]).then(c.bind(c,1133)).then(({startQuotaAutoPing:a})=>a()).catch(a=>console.log("[AutoPing] scheduler start failed:",a.message)),Promise.all([c.e(2892),c.e(1522),c.e(8946),c.e(8129),c.e(2177)]).then(c.bind(c,3256)).then(({startBackgroundTokenRefresh:a})=>a()).catch(a=>console.log("[BackgroundTokenRefresh] scheduler start failed:",a.message))}async function q(a){if(!o.mitmStartInProgress){o.mitmStartInProgress=!0;try{if(!a.mitmEnabled||(await (0,k.getMitmStatus)()).running)return;let b=await (0,k.loadEncryptedPassword)();if(!b&&"win32"!==process.platform)return void console.log("[InitApp] MITM was enabled but no saved password found, skipping auto-start");let c=(await (0,i.PX)()).find(a=>!1!==a.isActive);console.log("[InitApp] MITM was enabled, auto-starting..."),await (0,k.startMitm)(c?.key||"sk_ezrouter",b),console.log("[InitApp] MITM auto-started");try{await (0,k.restoreToolDNS)(b),console.log("[InitApp] DNS restored from saved state")}catch(a){console.log("[InitApp] DNS restore failed:",a.message)}}catch(a){console.log("[InitApp] MITM auto-start failed:",a.message)}finally{o.mitmStartInProgress=!1}}}let r=/^(startup|netchange|sleep|sleep\+netchange|online|unexpected-exit)$/;async function s(a){let b=(0,j.Qn)();if(!(await (0,i.mt)()).tunnelEnabled||b.cancelToken.cancelled||b.spawnInProgress)return;let c=r.test(a);if(!(0,j.nN)()){if(!c&&Date.now()-b.lastRestartAt<j.Lh)return void console.log(`[Tunnel] degraded but cooldown active, skip (${a})`);if(await (0,j.u7)()){console.log(`[Tunnel] safeRestart (${a}) — tunnel unreachable${c?" [force]":""}`);try{await (0,j.cb)(),b.lastRestartAt=Date.now(),console.log("[Tunnel] restart success")}catch(a){/cloudflared killed|tunnel cancelled/.test(a.message)||console.log("[Tunnel] restart failed:",a.message)}}}}async function t(a){let b=(0,j.oN)();if(!(await (0,i.mt)()).tailscaleEnabled||b.cancelToken.cancelled||b.spawnInProgress||("startup"===a?await (0,j.hp)():(0,j.Kp)()))return;if((0,j.si)()&&b.activeLocalPort){try{await (0,j.LC)(b.activeLocalPort),b.lastRestartAt=Date.now(),console.log("[Tailscale] funnel re-established (daemon alive)")}catch(a){console.log("[Tailscale] funnel recovery failed:",a.message)}return}let c=r.test(a);if(!c&&Date.now()-b.lastRestartAt<j.Lh)return void console.log(`[Tailscale] degraded but cooldown active, skip (${a})`);if(await (0,j.u7)()){console.log(`[Tailscale] safeRestart (${a}) — daemon not running${c?" [force]":""}`);try{await (0,j.mh)(),b.lastRestartAt=Date.now(),console.log("[Tailscale] restart success")}catch(a){console.log("[Tailscale] restart failed:",a.message)}}}function u(){let a=e().networkInterfaces(),b=[];for(let[c,d]of Object.entries(a))if(d&&!j.Lx.test(c))for(let a of d)a.internal||"IPv4"!==a.family||b.push(`${c}:${a.address}`);return b.sort().join("|")}function v(a){if(a?.tunnelEnabled||a?.tailscaleEnabled){!o.watchdogInterval&&(o.watchdogInterval=setInterval(()=>{s("watchdog").catch(()=>{}),t("watchdog").catch(()=>{})},j.DA),o.watchdogInterval.unref&&o.watchdogInterval.unref()),!o.networkMonitorInterval&&(o.lastNetworkFingerprint=u(),o.lastWatchdogTick=Date.now(),o.lastOnline=null,o.networkMonitorInterval=setInterval(async()=>{try{let a=Date.now(),b=a-o.lastWatchdogTick;o.lastWatchdogTick=a;let c=u(),d=c!==o.lastNetworkFingerprint,e=b>6*j.rI;d&&(o.lastNetworkFingerprint=c);let f=await (0,j.u7)(),g=!1===o.lastOnline;if(o.lastOnline=f,!f||!d&&!e&&!g)return;await new Promise(a=>setTimeout(a,j.cw));let h=g?"online":e&&d?"sleep+netchange":e?"sleep":"netchange";s(h).catch(()=>{}),t(h).catch(()=>{})}catch(a){console.log("[NetworkMonitor] error:",a.message)}},j.rI),o.networkMonitorInterval.unref&&o.networkMonitorInterval.unref());return}o.watchdogInterval&&(clearInterval(o.watchdogInterval),o.watchdogInterval=null),o.networkMonitorInterval&&(clearInterval(o.networkMonitorInterval),o.networkMonitorInterval=null,o.lastNetworkFingerprint=null,o.lastOnline=null)}let w=async function a(){try{o.signalHandlersRegistered||((0,n.Bb)(()=>{try{(0,k.removeAllDNSEntriesSync)()}catch{}try{(0,m.killAllBridges)()}catch{}(0,j.ss)()},-100),process.on("exit",()=>{try{(0,k.removeAllDNSEntriesSync)()}catch{}}),o.signalHandlersRegistered=!0),(0,j.X$)(()=>{s("unexpected-exit").catch(()=>{})}),setTimeout(()=>{p().catch(a=>console.error("[InitApp] deferred startup failed:",a.message))},3e3)}catch(a){console.error("[InitApp] Error:",a)}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=4562,exports.ids=[615,4562],exports.modules={4630:(a,b,c)=>{c.d(b,{Ak:()=>e,Yg:()=>h,sr:()=>d.sr,xq:()=>d.xq});var d=c(39141);function e(a){return(a?.providerSpecificData?.baseUrl?.trim()||"http://localhost:11434").replace(/\/$/,"")}let f=d.xq["xiaomi-tokenplan"]?.regions||{},g=d.xq["xiaomi-tokenplan"]?.defaultRegion;function h(a){return f[a?.providerSpecificData?.region]||f[g]}},20491:(a,b,c)=>{c.d(b,{NF:()=>E,Nx:()=>C,SQ:()=>A,XC:()=>B,cl:()=>D});var d=c(77598),e=c.n(d),f=c(51455),g=c.n(f),h=c(76760),i=c.n(h),j=c(49120),k=c(89718),l=c(39326),m=c(67828),n=c(30080),o=c(89843);let p=i().join(j.n,"codex-native","catalog.json");global.__codexNativeCatalogState||(global.__codexNativeCatalogState={versions:new Map,accounts:new Map,refreshes:new Map,diskLoaded:!1});let q=global.__codexNativeCatalogState;function r(a){if(null==a||""===a)return null;let b=String(a);if(b.length>128||/[\u0000-\u001f\u007f]/.test(b))throw Error("Invalid Codex client_version");return b}function s(a){return a??"__unspecified__"}function t(a,b){return`${s(a)}\u0000${b}`}function u(a){return!!a&&"object"==typeof a&&"string"==typeof a.slug&&a.slug.length>0}async function v(a,b,c){let d=await (0,m.checkAndRefreshToken)("codex",{...a,connectionId:a.id});if(!d?.accessToken)throw Error("Codex account has no access token");let e={accept:"application/json",authorization:`Bearer ${d.accessToken}`,originator:"codex_cli_rs"},f=d?.providerSpecificData?.workspaceId||d?.providerSpecificData?.chatgptAccountId||d?.providerSpecificData?.accountId||null;f&&(e["chatgpt-account-id"]=f),c?.upstreamEtag&&(e["if-none-match"]=c.upstreamEtag);let g=await (0,l.B)(d.providerSpecificData||{}),h=new URL(`${n.DT.upstreamHttpBaseUrl}/${n.DT.paths.models}`);null!=b&&h.searchParams.set("client_version",b);let i=await (0,o.proxyAwareFetch)(h,{method:"GET",headers:e,signal:AbortSignal.timeout(8e3)},{connectionProxyEnabled:!0===g.connectionProxyEnabled,connectionProxyUrl:g.connectionProxyUrl||"",connectionNoProxy:g.connectionNoProxy||"",vercelRelayUrl:g.vercelRelayUrl||"",strictProxy:!0===g.strictProxy});if(304===i.status&&c)return{...c,fetchedAt:Date.now(),notModified:!0};if(!i.ok){let a=(await i.text()).slice(0,240);throw Error(`Codex models ${i.status}${a?`: ${a}`:""}`)}let j=await i.json(),k=(Array.isArray(j?.models)?j.models:[]).filter(u);if(0===k.length)throw Error("Codex returned an empty native model catalog");return{models:k,upstreamEtag:i.headers.get("x-models-etag")||i.headers.get("etag"),fetchedAt:Date.now()}}function w(a){return`"${e().createHash("sha256").update(JSON.stringify(a)).digest("hex").slice(0,32)}"`}async function x(){await g().mkdir(i().dirname(p),{recursive:!0});let a={};for(let[b,c]of q.versions)a[b]={clientVersion:c.clientVersion,fetchedAt:c.fetchedAt,models:c.models,eligibleConnectionIds:c.eligibleConnectionIds,cohortHashes:c.cohortHashes};let b=`${p}.${process.pid}.tmp`;await g().writeFile(b,JSON.stringify({version:2,versions:a}),{mode:384}),await g().rename(b,p)}async function y(){if(!q.diskLoaded){q.diskLoaded=!0;try{let a=JSON.parse(await g().readFile(p,"utf8"));if(a?.version!==2||!a.versions)return;for(let[b,c]of Object.entries(a.versions)){let a=Number(c?.fetchedAt);if(!Number.isFinite(a)||Date.now()-a>n.DT.catalogStaleMs)continue;let d=(c.models||[]).filter(u);0!==d.length&&q.versions.set(b,{clientVersion:c.clientVersion??null,models:d,eligibleConnectionIds:c.eligibleConnectionIds||{},cohortHashes:c.cohortHashes||{},fetchedAt:a,etag:w(d),source:"last-known-good",stale:!0,accountCount:null,successfulAccountCount:null,warnings:[]})}}catch{}}}async function z(a){let b=await (0,k.getProviderConnections)({provider:"codex",isActive:!0}),c=await Promise.all(b.map(async b=>{let c=t(a,b.id),d=q.accounts.get(c);try{let e=await v(b,a,d);return q.accounts.set(c,e),{ok:!0,connectionId:b.id,...e}}catch(a){if(d&&Date.now()-d.fetchedAt<=n.DT.catalogStaleMs)return{ok:!0,stale:!0,connectionId:b.id,...d,warning:a.message};return{ok:!1,connectionId:b.id,error:a.message}}})),d=c.filter(a=>a.ok);if(0===d.length){let b=q.versions.get(s(a));if(b&&Date.now()-b.fetchedAt<=n.DT.catalogStaleMs)return{...b,source:"last-known-good",stale:!0};let c=Error("No valid native Codex catalog is available");throw c.code="codex_catalog_unavailable",c}let f=function(a,b){let c=new Map(b.map(a=>[a.id,a.priority??999])),d=new Map;for(let b of a)if(b.ok)for(let a of b.models){let c=e().createHash("sha256").update(JSON.stringify(function a(b){return Array.isArray(b)?b.map(a):b&&"object"==typeof b?Object.fromEntries(Object.keys(b).sort().map(c=>[c,a(b[c])])):b}(a))).digest("hex");d.has(a.slug)||d.set(a.slug,new Map);let f=d.get(a.slug);f.has(c)||f.set(c,{hash:c,model:a,connectionIds:[]}),f.get(c).connectionIds.push(b.connectionId)}let f=[],g={},h={};for(let[a,b]of d){let d=[...b.values()].sort((a,b)=>{let d=b.connectionIds.length-a.connectionIds.length;if(0!==d)return d;let e=Math.min(...a.connectionIds.map(a=>c.get(a)??999)),f=Math.min(...b.connectionIds.map(a=>c.get(a)??999));return e!==f?e-f:a.hash.localeCompare(b.hash)})[0];d.connectionIds.sort((a,b)=>(c.get(a)??999)-(c.get(b)??999)||a.localeCompare(b)),f.push(d.model),g[a]=d.connectionIds,h[a]=d.hash}return f.sort((a,b)=>(a.priority??999)-(b.priority??999)||a.slug.localeCompare(b.slug)),{models:f,eligibleConnectionIds:g,cohortHashes:h}}(d,b);if(0===f.models.length){let a=Error("No native Codex model metadata cohort is available");throw a.code="codex_catalog_unavailable",a}let g=c.flatMap(a=>{let b=a.error||a.warning;return b?[{connectionId:a.connectionId,message:b}]:[]}),h={...f,clientVersion:a,fetchedAt:Date.now(),source:d.some(a=>!a.stale)?"upstream":"last-known-good",stale:d.every(a=>a.stale),accountCount:b.length,successfulAccountCount:d.length,upstreamEtags:Object.fromEntries(d.map(a=>[a.connectionId,a.upstreamEtag||null])),warnings:g};return h.etag=w(h.models),q.versions.set(s(a),h),x().catch(()=>{}),h}async function A({clientVersion:a,forceRefresh:b=!1}={}){await y();let c=r(a),d=s(c),e=q.versions.get(d);return!b&&e&&Date.now()-e.fetchedAt<n.DT.catalogTtlMs?e:(q.refreshes.has(d)||q.refreshes.set(d,z(c).finally(()=>q.refreshes.delete(d))),e&&!b&&Date.now()-e.fetchedAt<=n.DT.catalogStaleMs)?(q.refreshes.get(d).catch(()=>{}),{...e,source:"upstream"===e.source?"cache":e.source}):q.refreshes.get(d)}async function B(){return await y(),[...q.versions.values()].filter(a=>a.clientVersion).sort((a,b)=>b.fetchedAt-a.fetchedAt)[0]?.clientVersion||null}async function C(a,b,c=null){let d=r(c),e=t(d,a),f=q.accounts.get(e);if(!f||!b||f.upstreamEtag!==b){f&&(f.fetchedAt=0);let a=q.versions.get(s(d));a&&(a.fetchedAt=0),A({clientVersion:d,forceRefresh:!0}).catch(()=>{})}}function D(a,b){return a?.models?.some(a=>a.slug===b)===!0}function E(a){return a?.models?.find(a=>a?.supported_in_api!==!1&&a?.visibility!=="hide")?.slug||null}},30080:(a,b,c)=>{c.d(b,{DT:()=>d,Hp:()=>h,Js:()=>i,nB:()=>f,vr:()=>g,yp:()=>e});let d=Object.freeze({providerId:"codex",providerConfigId:"9router_codex",upstreamHttpBaseUrl:"https://chatgpt.com/backend-api/codex",upstreamWebSocketUrl:"wss://chatgpt.com/backend-api/codex/responses",catalogTtlMs:9e5,catalogStaleMs:6048e5,quotaTtlMs:6e4,affinityTtlMs:6048e5,affinityMaxEntries:5e4,leaseTtlMs:39e5,quotaThresholds:Object.freeze({drainRemainingPercent:15,criticalRemainingPercent:5,recoverRemainingPercent:20}),paths:Object.freeze({models:"models",responses:"responses",compact:"responses/compact",memories:"memories/trace_summarize",search:"alpha/search",imageGenerations:"images/generations",imageEdits:"images/edits"})}),e=Object.freeze(["authorization","chatgpt-account-id","cookie","host","connection","keep-alive","proxy-authenticate","proxy-authorization","proxy-connection","te","trailer","transfer-encoding","upgrade","forwarded","via","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-real-ip","x-9r-real-ip","x-9r-via-proxy","x-9r-cli-token","x-9r-internal-secret"]),f=Object.freeze(["accept","accept-encoding","accept-language","content-type","openai-beta","originator","session-id","thread-id","traceparent","tracestate","baggage","user-agent","x-client-request-id"]),g=Object.freeze(["x-codex-","x-openai-","x-stainless-"]),h=Object.freeze(["cache-control","content-encoding","content-type","etag","openai-model","retry-after","x-codex-turn-state","x-models-etag","x-reasoning-included","x-request-id"]),i=Object.freeze(["openai-","x-codex-","x-openai-","x-ratelimit-","x-request-","x-stainless-"])},39276:(a,b,c)=>{c.d(b,{RM:()=>R,tf:()=>W,jR:()=>S,si:()=>Z,Z5:()=>P,P7:()=>$,Sq:()=>Y,vB:()=>M,R_:()=>U,v9:()=>O,uC:()=>X,LV:()=>V,cU:()=>T});var d=c(77598),e=c.n(d),f=c(89718),g=c(39326),h=c(67828),i=c(23433),j=c(30080),k=c(49263),l=c(49485),m=c(51455),n=c.n(m),o=c(76760),p=c.n(o),q=c(49120);let r=p().join(q.n,"codex-native","affinity.json"),s=p().join(q.n,"codex-native","affinity.key");global.__codexNativeAffinityState||(global.__codexNativeAffinityState={entries:new Map,loaded:!1,persistTimer:null,secret:null});let t=global.__codexNativeAffinityState;function u(a){if("string"!=typeof a)return null;let b=a.trim();return b&&b.length<=512?b:null}function v(a,b){return u(a?.[b]??a?.[b.toLowerCase()])}async function w(){if(t.secret)return t.secret;try{t.secret=await n().readFile(s)}catch{t.secret=e().randomBytes(32),await n().mkdir(p().dirname(s),{recursive:!0});let a=`${s}.${process.pid}.tmp`;await n().writeFile(a,t.secret,{mode:384});try{await n().rename(a,s)}catch(a){if("EEXIST"!==a.code)throw a;t.secret=await n().readFile(s)}}return t.secret}function x(){let a=Date.now();for(let[b,c]of t.entries)a-c.lastUsedAt>j.DT.affinityTtlMs&&t.entries.delete(b);for(;t.entries.size>j.DT.affinityMaxEntries;)t.entries.delete(t.entries.keys().next().value)}async function y(){if(!t.loaded){t.loaded=!0;try{let a=JSON.parse(await n().readFile(r,"utf8"));for(let[b,c]of Object.entries(a?.entries||{}))c?.connectionId&&Number.isFinite(c?.lastUsedAt)&&t.entries.set(b,c);x()}catch{}}}function z(){t.persistTimer||(t.persistTimer=setTimeout(async()=>{t.persistTimer=null,x();try{await n().mkdir(p().dirname(r),{recursive:!0});let a=`${r}.${process.pid}.tmp`;await n().writeFile(a,JSON.stringify({version:1,entries:Object.fromEntries(t.entries)}),{mode:384}),await n().rename(a,r)}catch{}},100),t.persistTimer.unref?.())}async function A({headers:a,body:b}){await y();let c=v(a,"session-id")||v(a,"thread-id")||u(b?.prompt_cache_key)||null;return c?e().createHmac("sha256",await w()).update(c).digest("hex"):null}async function B(a){await y(),x();let b=a?t.entries.get(a):null;return b?(b.lastUsedAt=Date.now(),t.entries.delete(a),t.entries.set(a,b),z(),{...b}):null}async function C(a,b){a&&b&&(await y(),t.entries.delete(a),t.entries.set(a,{connectionId:b,lastUsedAt:Date.now()}),x(),z())}async function D(a,b){if(!a)return;await y();let c=t.entries.get(a);c&&(!b||c.connectionId===b)&&(t.entries.delete(a),z())}async function E(){await y(),x();let a=new Map;for(let b of t.entries.values())a.set(b.connectionId,(a.get(b.connectionId)||0)+1);return a}var F=c(20491);global.__codexNativePoolState||(global.__codexNativePoolState={quotas:new Map,quotaRefreshes:new Map,activeTurns:new Map,activeSockets:new Map,leases:new Map,failures:new Map,httpFallbackCount:0});let G=global.__codexNativePoolState;function H(a,b,c){let d=Math.max(0,(a.get(b)||0)+c);0===d?a.delete(b):a.set(b,d)}function I(a,b){let c=j.DT.quotaThresholds;return null!==a&&Number.isFinite(a)?a<=0?"exhausted":b&&"healthy"!==b&&a<c.recoverRemainingPercent?a<c.criticalRemainingPercent?"critical":"draining":a<c.criticalRemainingPercent?"critical":a<c.drainRemainingPercent?"draining":"healthy":"unknown"}function J(a){let b;if(a?.vercelRelayUrl)return{capable:!1,reason:"relay-only proxy has no WebSocket transport"};if(!a?.connectionProxyEnabled||!a?.connectionProxyUrl)return{capable:!0,reason:null};try{b=new URL(a.connectionProxyUrl.includes("://")?a.connectionProxyUrl:`http://${a.connectionProxyUrl}`).protocol}catch{return{capable:!1,reason:"invalid proxy URL"}}return["http:","https:","socks:","socks4:","socks4a:","socks5:","socks5h:"].includes(b)?{capable:!0,reason:null}:{capable:!1,reason:`unsupported WebSocket proxy scheme ${b}`}}async function K(a){let b=G.quotas.get(a.id);if(b&&Date.now()-b.fetchedAt<j.DT.quotaTtlMs)return b;if(G.quotaRefreshes.has(a.id))return G.quotaRefreshes.get(a.id);let c=(async()=>{try{let c,d,e=await (0,h.checkAndRefreshToken)("codex",{...a,connectionId:a.id}),f=await (0,g.B)(e.providerSpecificData||{}),i=await (0,l.Tl)(e.accessToken,{connectionProxyEnabled:!0===f.connectionProxyEnabled,connectionProxyUrl:f.connectionProxyUrl||"",connectionNoProxy:f.connectionNoProxy||"",vercelRelayUrl:f.vercelRelayUrl||"",strictProxy:!0===f.strictProxy}),j=(c=[i?.quotas?.session,i?.quotas?.weekly].filter(Boolean).map(a=>Number(a.remaining)).filter(Number.isFinite)).length?Math.min(...c):null,k={remaining:j,status:I(j,b?.status),resetAt:(d=[i?.quotas?.session?.resetAt,i?.quotas?.weekly?.resetAt].filter(Boolean).map(a=>new Date(a).getTime()).filter(Number.isFinite)).length?new Date(Math.min(...d)).toISOString():null,fetchedAt:Date.now(),source:"poll"};return G.quotas.set(a.id,k),k}catch(a){return{...b||{remaining:null,status:"unknown",resetAt:null,fetchedAt:Date.now(),source:"poll-error"},error:a.message}}})().finally(()=>G.quotaRefreshes.delete(a.id));return G.quotaRefreshes.set(a.id,c),c}function L(a){return G.quotas.get(a)||{remaining:null,status:"unknown",resetAt:null,fetchedAt:null,source:null}}function M(a,b,c="event"){if(!a||!b)return null;let d=null,e=null;if("function"==typeof b?.get){let a=[b.get("x-codex-primary-used-percent"),b.get("x-codex-secondary-used-percent")].map(Number).filter(Number.isFinite);a.length&&(d=Math.max(0,100-Math.max(...a)));let c=[b.get("x-codex-primary-reset-at"),b.get("x-codex-secondary-reset-at")].map(Number).filter(Number.isFinite);c.length&&(e=new Date(1e3*Math.min(...c)).toISOString())}else{let a,c;a=b?.rate_limits||b?.rate_limit||b,d=(c=[a?.primary,a?.primary_window,a?.secondary,a?.secondary_window].filter(Boolean).map(a=>Number(a.remaining??100-Number(a.used_percent??a.percent_used))).filter(Number.isFinite)).length?Math.max(0,Math.min(...c)):null}if(null===d)return null;let f=G.quotas.get(a),g={remaining:d,status:I(d,f?.status),resetAt:e||f?.resetAt||null,fetchedAt:Date.now(),source:c};return G.quotas.set(a,g),g}async function N({model:a,transport:b,excludeConnectionIds:c,clientVersion:d}){let[e,h,i]=await Promise.all([(0,f.getProviderConnections)({provider:"codex",isActive:!0}),(0,F.SQ)({clientVersion:d}),E()]),j=a?new Set(h.eligibleConnectionIds?.[a]||[]):null,l=new Map,m=[];for(let d of e){let e=null;if(c.has(d.id)?e="excluded after failure":j&&!j.has(d.id)?e="different model metadata cohort":a&&(0,k.Bl)(d,a)?e="model temporarily locked":"exhausted"===L(d.id).status&&(e="quota exhausted"),!e&&"ws"===b){let a=J(await (0,g.B)(d.providerSpecificData||{}));a.capable||(e=a.reason)}e?l.set(d.id,e):m.push(d)}return{connections:e,catalog:h,counts:i,candidates:m,skipped:l}}async function O(a={}){let b=await (0,f.getProviderConnections)({provider:"codex",isActive:!0});return await Promise.all(b.map(K)),P(a)}async function P({model:a=null,clientVersion:b}={}){let{connections:c,catalog:d,counts:e,candidates:f,skipped:g}=await N({model:a,transport:"http",excludeConnectionIds:new Set,clientVersion:b}),h=new Set(f.map(a=>a.id));return c.map(b=>{let c=L(b.id);return{connectionId:b.id,name:b.displayName||b.name||b.email||b.id.slice(0,8),priority:b.priority??999,eligible:h.has(b.id),skippedReason:g.get(b.id)||null,affinityCount:e.get(b.id)||0,activeTurns:G.activeTurns.get(b.id)||0,activeSockets:G.activeSockets.get(b.id)||0,remaining:c.remaining,status:(0,k.Bl)(b,a)?"locked":c.status,resetAt:c.resetAt,quotaFetchedAt:c.fetchedAt,quotaSource:c.source,catalogEtag:d.upstreamEtags?.[b.id]||null}})}async function Q({headers:a,body:b,model:c,transport:d="http",clientVersion:e,excludeConnectionIds:f=new Set}){let g,{counts:h,candidates:i,skipped:j,catalog:k}=await N({model:c,transport:d,excludeConnectionIds:f,clientVersion:e});for(let a of i)K(a).catch(()=>{});let l=await A({headers:a,body:b,model:c}),m=l?await B(l):null,n=m?i.find(a=>a.id===m.connectionId):null;if(n){let a=L(n.id).status;if("critical"!==a&&"exhausted"!==a)return{affinityKey:l,preferredConnectionId:n.id,eligibleConnectionIds:i.map(a=>a.id),skippedReasons:Object.fromEntries(j),catalog:k}}let o=(g={healthy:0,unknown:1,draining:2,critical:3,exhausted:4},[...i].sort((a,b)=>{let c=L(a.id),e=L(b.id),f=(g[c.status]??1)-(g[e.status]??1);if(0!==f)return f;let i=(e.remaining??-1)-(c.remaining??-1);if(0!==i)return i;let j="ws"===d?G.activeSockets:G.activeTurns,k=(j.get(a.id)||0)-(j.get(b.id)||0);if(0!==k)return k;let l=(h.get(a.id)||0)-(h.get(b.id)||0);if(0!==l)return l;let m=(a.priority??999)-(b.priority??999);return 0!==m?m:new Date(a.lastUsedAt||0)-new Date(b.lastUsedAt||0)})).find(a=>{let b=L(a.id).status;return"healthy"===b||"unknown"===b})||null;return l&&o&&await C(l,o.id),{affinityKey:l,preferredConnectionId:o?.id||null,eligibleConnectionIds:i.map(a=>a.id),skippedReasons:Object.fromEntries(j),catalog:k}}async function R({headers:a,body:b,model:c,transport:d="http",clientVersion:i,excludeConnectionIds:j=new Set}){let k=await Q({headers:a,body:b,model:c,transport:d,clientVersion:i,excludeConnectionIds:j});if(!k.preferredConnectionId)return{...k,lease:null};let l=(await (0,f.getProviderConnections)({provider:"codex",isActive:!0})).find(a=>a.id===k.preferredConnectionId);if(!l)return{...k,lease:null};let m=await (0,h.checkAndRefreshToken)("codex",{...l,connectionId:l.id}),n=await (0,g.B)(m.providerSpecificData||{});if("ws"===d&&!J(n).capable)return{...k,lease:null};let o={id:e().randomUUID(),connectionId:l.id,connection:l,credentials:m,proxy:n,affinityKey:k.affinityKey,model:c||null,transport:d,clientVersion:i??null,createdAt:Date.now(),semanticOutput:!1};return G.leases.set(o.id,o),H("ws"===d?G.activeSockets:G.activeTurns,l.id,1),{...k,lease:o}}function S(a){let b=G.leases.get(a);return b?Date.now()-b.createdAt>j.DT.leaseTtlMs?(X(a),null):b:null}async function T(a,b){let c=S(a);if(!c||!b)return!1;let d=await (0,F.SQ)({clientVersion:c.clientVersion});return!!(d.eligibleConnectionIds?.[b]||[]).includes(c.connectionId)&&(c.model=b,c.affinityKey&&await C(c.affinityKey,c.connectionId),!0)}function U(a){let b=S(a);b&&(b.semanticOutput=!0)}async function V(a,{headers:b}={}){let c=S(a);if(c){if(b){M(c.connectionId,b,"headers");let a=b.get?.("x-models-etag");a&&(0,F.Nx)(c.connectionId,a,c.clientVersion)}await (0,i.Pt)(c.connectionId,c.connection,c.model).catch(()=>{}),c.affinityKey&&await C(c.affinityKey,c.connectionId)}}async function W(a,{status:b=503,error:c="Codex Native failure"}={}){let d=S(a);d&&(G.failures.set(d.connectionId,{status:b,message:String(c).slice(0,160),at:Date.now()}),d.affinityKey&&await D(d.affinityKey,d.connectionId),([401,429].includes(Number(b))||Number(b)>=500)&&await (0,i.vk)(d.connectionId,Number(b),String(c),"codex",d.model).catch(()=>{}))}function X(a){let b=G.leases.get(a);b&&(G.leases.delete(a),H("ws"===b.transport?G.activeSockets:G.activeTurns,b.connectionId,-1))}function Y(){G.httpFallbackCount+=1}function Z(){return{activeLeases:G.leases.size,activeSockets:[...G.activeSockets.values()].reduce((a,b)=>a+b,0),activeTurns:[...G.activeTurns.values()].reduce((a,b)=>a+b,0),httpFallbackCount:G.httpFallbackCount}}async function $({model:a=null,clientVersion:b}={}){let c=await (0,f.getProviderConnections)({provider:"codex",isActive:!0}),d=await (0,F.SQ)({clientVersion:b}),e=a?new Set(d.eligibleConnectionIds?.[a]||[]):null;return Promise.all(c.map(async a=>{let b=null;e&&!e.has(a.id)?b="different model metadata cohort":"exhausted"===L(a.id).status&&(b="quota exhausted");let c=J(await (0,g.B)(a.providerSpecificData||{}));return b||c.capable||(b=c.reason),{connectionId:a.id,eligible:!b,reason:b}}))}},40615:(a,b,c)=>{c.d(b,{AI_PROVIDERS:()=>u,js:()=>A,DI:()=>n,fg:()=>k,Pd:()=>o,Vj:()=>p,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>m,jO:()=>C,wb:()=>B,br:()=>l,wG:()=>z,zt:()=>v,gb:()=>r,gC:()=>s,AR:()=>t,mq:()=>q,rs:()=>w,p5:()=>y});var d=c(45502);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.A.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.A.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.baseUrlField?{baseUrlField:a.baseUrlField}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.models?{models:a.models}:{},...a.authModes?{authModes:a.authModes}:{},...a.features?{features:{...a.features}}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m="openai-compatible-",n="anthropic-compatible-",o="custom-embedding-",p="custom-video-";function q(a){return"string"==typeof a&&a.startsWith(m)}function r(a){return"string"==typeof a&&a.startsWith(n)}function s(a){return"string"==typeof a&&a.startsWith(o)}function t(a){return"string"==typeof a&&a.startsWith(p)}let u={...h,...i,...j,...k,...l};function v(a){for(let b of Object.values(u))if(b.alias===a||b.id===a)return b;return null}function w(a){let b=v(a);return b?.id||a}let x={nvidia:40};function y(a,b){let c=(a?.rpmByProvider||{})[b];if(0===c||"0"===c)return 0;let d=Number(c);return Number.isFinite(d)&&d>0?d:x[b]||0}function z(a){let b=u[a];return b?.alias||a}let A=Object.values(u).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(u).reduce((a,b)=>(a[b.id]=b.alias,a),{});let B=d.A.filter(a=>a.features?.usage).map(a=>a.id),C=d.A.filter(a=>a.features?.usageApikey).map(a=>a.id)},92990:(a,b,c)=>{c.d(b,{DI:()=>i,Hp:()=>k,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,S6:()=>s,Td:()=>A,Tx:()=>q,V1:()=>C,WN:()=>t,Ww:()=>D,YT:()=>n,ZL:()=>m,aV:()=>u,cD:()=>o,f7:()=>y,hF:()=>l,lB:()=>w,qp:()=>B,w1:()=>x});var d=c(21820),e=c(92675),f=c(39141);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]},k={...f.sr.qwen},l={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]};({...f.sr["codebuddy-intl"]});let C={...f.sr["frontier-for-all"]},D=3e5}};
|
|
1
|
+
"use strict";exports.id=4562,exports.ids=[615,4562],exports.modules={4630:(a,b,c)=>{c.d(b,{Ak:()=>e,Yg:()=>h,sr:()=>d.sr,xq:()=>d.xq});var d=c(39141);function e(a){return(a?.providerSpecificData?.baseUrl?.trim()||"http://localhost:11434").replace(/\/$/,"")}let f=d.xq["xiaomi-tokenplan"]?.regions||{},g=d.xq["xiaomi-tokenplan"]?.defaultRegion;function h(a){return f[a?.providerSpecificData?.region]||f[g]}},20491:(a,b,c)=>{c.d(b,{NF:()=>E,Nx:()=>C,SQ:()=>A,XC:()=>B,cl:()=>D});var d=c(77598),e=c.n(d),f=c(51455),g=c.n(f),h=c(76760),i=c.n(h),j=c(49120),k=c(89718),l=c(39326),m=c(67828),n=c(30080),o=c(89843);let p=i().join(j.n,"codex-native","catalog.json");global.__codexNativeCatalogState||(global.__codexNativeCatalogState={versions:new Map,accounts:new Map,refreshes:new Map,diskLoaded:!1});let q=global.__codexNativeCatalogState;function r(a){if(null==a||""===a)return null;let b=String(a);if(b.length>128||/[\u0000-\u001f\u007f]/.test(b))throw Error("Invalid Codex client_version");return b}function s(a){return a??"__unspecified__"}function t(a,b){return`${s(a)}\u0000${b}`}function u(a){return!!a&&"object"==typeof a&&"string"==typeof a.slug&&a.slug.length>0}async function v(a,b,c){let d=await (0,m.checkAndRefreshToken)("codex",{...a,connectionId:a.id});if(!d?.accessToken)throw Error("Codex account has no access token");let e={accept:"application/json",authorization:`Bearer ${d.accessToken}`,originator:"codex_cli_rs"},f=d?.providerSpecificData?.workspaceId||d?.providerSpecificData?.chatgptAccountId||d?.providerSpecificData?.accountId||null;f&&(e["chatgpt-account-id"]=f),c?.upstreamEtag&&(e["if-none-match"]=c.upstreamEtag);let g=await (0,l.B)(d.providerSpecificData||{}),h=new URL(`${n.DT.upstreamHttpBaseUrl}/${n.DT.paths.models}`);null!=b&&h.searchParams.set("client_version",b);let i=await (0,o.proxyAwareFetch)(h,{method:"GET",headers:e,signal:AbortSignal.timeout(8e3)},{connectionProxyEnabled:!0===g.connectionProxyEnabled,connectionProxyUrl:g.connectionProxyUrl||"",connectionNoProxy:g.connectionNoProxy||"",vercelRelayUrl:g.vercelRelayUrl||"",strictProxy:!0===g.strictProxy});if(304===i.status&&c)return{...c,fetchedAt:Date.now(),notModified:!0};if(!i.ok){let a=(await i.text()).slice(0,240);throw Error(`Codex models ${i.status}${a?`: ${a}`:""}`)}let j=await i.json(),k=(Array.isArray(j?.models)?j.models:[]).filter(u);if(0===k.length)throw Error("Codex returned an empty native model catalog");return{models:k,upstreamEtag:i.headers.get("x-models-etag")||i.headers.get("etag"),fetchedAt:Date.now()}}function w(a){return`"${e().createHash("sha256").update(JSON.stringify(a)).digest("hex").slice(0,32)}"`}async function x(){await g().mkdir(i().dirname(p),{recursive:!0});let a={};for(let[b,c]of q.versions)a[b]={clientVersion:c.clientVersion,fetchedAt:c.fetchedAt,models:c.models,eligibleConnectionIds:c.eligibleConnectionIds,cohortHashes:c.cohortHashes};let b=`${p}.${process.pid}.tmp`;await g().writeFile(b,JSON.stringify({version:2,versions:a}),{mode:384}),await g().rename(b,p)}async function y(){if(!q.diskLoaded){q.diskLoaded=!0;try{let a=JSON.parse(await g().readFile(p,"utf8"));if(a?.version!==2||!a.versions)return;for(let[b,c]of Object.entries(a.versions)){let a=Number(c?.fetchedAt);if(!Number.isFinite(a)||Date.now()-a>n.DT.catalogStaleMs)continue;let d=(c.models||[]).filter(u);0!==d.length&&q.versions.set(b,{clientVersion:c.clientVersion??null,models:d,eligibleConnectionIds:c.eligibleConnectionIds||{},cohortHashes:c.cohortHashes||{},fetchedAt:a,etag:w(d),source:"last-known-good",stale:!0,accountCount:null,successfulAccountCount:null,warnings:[]})}}catch{}}}async function z(a){let b=await (0,k.getProviderConnections)({provider:"codex",isActive:!0}),c=await Promise.all(b.map(async b=>{let c=t(a,b.id),d=q.accounts.get(c);try{let e=await v(b,a,d);return q.accounts.set(c,e),{ok:!0,connectionId:b.id,...e}}catch(a){if(d&&Date.now()-d.fetchedAt<=n.DT.catalogStaleMs)return{ok:!0,stale:!0,connectionId:b.id,...d,warning:a.message};return{ok:!1,connectionId:b.id,error:a.message}}})),d=c.filter(a=>a.ok);if(0===d.length){let b=q.versions.get(s(a));if(b&&Date.now()-b.fetchedAt<=n.DT.catalogStaleMs)return{...b,source:"last-known-good",stale:!0};let c=Error("No valid native Codex catalog is available");throw c.code="codex_catalog_unavailable",c}let f=function(a,b){let c=new Map(b.map(a=>[a.id,a.priority??999])),d=new Map;for(let b of a)if(b.ok)for(let a of b.models){let c=e().createHash("sha256").update(JSON.stringify(function a(b){return Array.isArray(b)?b.map(a):b&&"object"==typeof b?Object.fromEntries(Object.keys(b).sort().map(c=>[c,a(b[c])])):b}(a))).digest("hex");d.has(a.slug)||d.set(a.slug,new Map);let f=d.get(a.slug);f.has(c)||f.set(c,{hash:c,model:a,connectionIds:[]}),f.get(c).connectionIds.push(b.connectionId)}let f=[],g={},h={};for(let[a,b]of d){let d=[...b.values()].sort((a,b)=>{let d=b.connectionIds.length-a.connectionIds.length;if(0!==d)return d;let e=Math.min(...a.connectionIds.map(a=>c.get(a)??999)),f=Math.min(...b.connectionIds.map(a=>c.get(a)??999));return e!==f?e-f:a.hash.localeCompare(b.hash)})[0];d.connectionIds.sort((a,b)=>(c.get(a)??999)-(c.get(b)??999)||a.localeCompare(b)),f.push(d.model),g[a]=d.connectionIds,h[a]=d.hash}return f.sort((a,b)=>(a.priority??999)-(b.priority??999)||a.slug.localeCompare(b.slug)),{models:f,eligibleConnectionIds:g,cohortHashes:h}}(d,b);if(0===f.models.length){let a=Error("No native Codex model metadata cohort is available");throw a.code="codex_catalog_unavailable",a}let g=c.flatMap(a=>{let b=a.error||a.warning;return b?[{connectionId:a.connectionId,message:b}]:[]}),h={...f,clientVersion:a,fetchedAt:Date.now(),source:d.some(a=>!a.stale)?"upstream":"last-known-good",stale:d.every(a=>a.stale),accountCount:b.length,successfulAccountCount:d.length,upstreamEtags:Object.fromEntries(d.map(a=>[a.connectionId,a.upstreamEtag||null])),warnings:g};return h.etag=w(h.models),q.versions.set(s(a),h),x().catch(()=>{}),h}async function A({clientVersion:a,forceRefresh:b=!1}={}){await y();let c=r(a),d=s(c),e=q.versions.get(d);return!b&&e&&Date.now()-e.fetchedAt<n.DT.catalogTtlMs?e:(q.refreshes.has(d)||q.refreshes.set(d,z(c).finally(()=>q.refreshes.delete(d))),e&&!b&&Date.now()-e.fetchedAt<=n.DT.catalogStaleMs)?(q.refreshes.get(d).catch(()=>{}),{...e,source:"upstream"===e.source?"cache":e.source}):q.refreshes.get(d)}async function B(){return await y(),[...q.versions.values()].filter(a=>a.clientVersion).sort((a,b)=>b.fetchedAt-a.fetchedAt)[0]?.clientVersion||null}async function C(a,b,c=null){let d=r(c),e=t(d,a),f=q.accounts.get(e);if(!f||!b||f.upstreamEtag!==b){f&&(f.fetchedAt=0);let a=q.versions.get(s(d));a&&(a.fetchedAt=0),A({clientVersion:d,forceRefresh:!0}).catch(()=>{})}}function D(a,b){return a?.models?.some(a=>a.slug===b)===!0}function E(a){return a?.models?.find(a=>a?.supported_in_api!==!1&&a?.visibility!=="hide")?.slug||null}},30080:(a,b,c)=>{c.d(b,{DT:()=>d,Hp:()=>h,Js:()=>i,nB:()=>f,vr:()=>g,yp:()=>e});let d=Object.freeze({providerId:"codex",providerConfigId:"9router_codex",upstreamHttpBaseUrl:"https://chatgpt.com/backend-api/codex",upstreamWebSocketUrl:"wss://chatgpt.com/backend-api/codex/responses",catalogTtlMs:9e5,catalogStaleMs:6048e5,quotaTtlMs:6e4,affinityTtlMs:6048e5,affinityMaxEntries:5e4,leaseTtlMs:39e5,quotaThresholds:Object.freeze({drainRemainingPercent:15,criticalRemainingPercent:5,recoverRemainingPercent:20}),paths:Object.freeze({models:"models",responses:"responses",compact:"responses/compact",memories:"memories/trace_summarize",search:"alpha/search",imageGenerations:"images/generations",imageEdits:"images/edits"})}),e=Object.freeze(["authorization","chatgpt-account-id","cookie","host","connection","keep-alive","proxy-authenticate","proxy-authorization","proxy-connection","te","trailer","transfer-encoding","upgrade","forwarded","via","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-real-ip","x-9r-real-ip","x-9r-via-proxy","x-9r-cli-token","x-9r-internal-secret"]),f=Object.freeze(["accept","accept-encoding","accept-language","content-type","openai-beta","originator","session-id","thread-id","traceparent","tracestate","baggage","user-agent","x-client-request-id"]),g=Object.freeze(["x-codex-","x-openai-","x-stainless-"]),h=Object.freeze(["cache-control","content-encoding","content-type","etag","openai-model","retry-after","x-codex-turn-state","x-models-etag","x-reasoning-included","x-request-id"]),i=Object.freeze(["openai-","x-codex-","x-openai-","x-ratelimit-","x-request-","x-stainless-"])},39276:(a,b,c)=>{c.d(b,{RM:()=>R,tf:()=>W,jR:()=>S,si:()=>Z,Z5:()=>P,P7:()=>$,Sq:()=>Y,vB:()=>M,R_:()=>U,v9:()=>O,uC:()=>X,LV:()=>V,cU:()=>T});var d=c(77598),e=c.n(d),f=c(89718),g=c(39326),h=c(67828),i=c(23433),j=c(30080),k=c(49263),l=c(49485),m=c(51455),n=c.n(m),o=c(76760),p=c.n(o),q=c(49120);let r=p().join(q.n,"codex-native","affinity.json"),s=p().join(q.n,"codex-native","affinity.key");global.__codexNativeAffinityState||(global.__codexNativeAffinityState={entries:new Map,loaded:!1,persistTimer:null,secret:null});let t=global.__codexNativeAffinityState;function u(a){if("string"!=typeof a)return null;let b=a.trim();return b&&b.length<=512?b:null}function v(a,b){return u(a?.[b]??a?.[b.toLowerCase()])}async function w(){if(t.secret)return t.secret;try{t.secret=await n().readFile(s)}catch{t.secret=e().randomBytes(32),await n().mkdir(p().dirname(s),{recursive:!0});let a=`${s}.${process.pid}.tmp`;await n().writeFile(a,t.secret,{mode:384});try{await n().rename(a,s)}catch(a){if("EEXIST"!==a.code)throw a;t.secret=await n().readFile(s)}}return t.secret}function x(){let a=Date.now();for(let[b,c]of t.entries)a-c.lastUsedAt>j.DT.affinityTtlMs&&t.entries.delete(b);for(;t.entries.size>j.DT.affinityMaxEntries;)t.entries.delete(t.entries.keys().next().value)}async function y(){if(!t.loaded){t.loaded=!0;try{let a=JSON.parse(await n().readFile(r,"utf8"));for(let[b,c]of Object.entries(a?.entries||{}))c?.connectionId&&Number.isFinite(c?.lastUsedAt)&&t.entries.set(b,c);x()}catch{}}}function z(){t.persistTimer||(t.persistTimer=setTimeout(async()=>{t.persistTimer=null,x();try{await n().mkdir(p().dirname(r),{recursive:!0});let a=`${r}.${process.pid}.tmp`;await n().writeFile(a,JSON.stringify({version:1,entries:Object.fromEntries(t.entries)}),{mode:384}),await n().rename(a,r)}catch{}},100),t.persistTimer.unref?.())}async function A({headers:a,body:b}){await y();let c=v(a,"session-id")||v(a,"thread-id")||u(b?.prompt_cache_key)||null;return c?e().createHmac("sha256",await w()).update(c).digest("hex"):null}async function B(a){await y(),x();let b=a?t.entries.get(a):null;return b?(b.lastUsedAt=Date.now(),t.entries.delete(a),t.entries.set(a,b),z(),{...b}):null}async function C(a,b){a&&b&&(await y(),t.entries.delete(a),t.entries.set(a,{connectionId:b,lastUsedAt:Date.now()}),x(),z())}async function D(a,b){if(!a)return;await y();let c=t.entries.get(a);c&&(!b||c.connectionId===b)&&(t.entries.delete(a),z())}async function E(){await y(),x();let a=new Map;for(let b of t.entries.values())a.set(b.connectionId,(a.get(b.connectionId)||0)+1);return a}var F=c(20491);global.__codexNativePoolState||(global.__codexNativePoolState={quotas:new Map,quotaRefreshes:new Map,activeTurns:new Map,activeSockets:new Map,leases:new Map,failures:new Map,httpFallbackCount:0});let G=global.__codexNativePoolState;function H(a,b,c){let d=Math.max(0,(a.get(b)||0)+c);0===d?a.delete(b):a.set(b,d)}function I(a,b){let c=j.DT.quotaThresholds;return null!==a&&Number.isFinite(a)?a<=0?"exhausted":b&&"healthy"!==b&&a<c.recoverRemainingPercent?a<c.criticalRemainingPercent?"critical":"draining":a<c.criticalRemainingPercent?"critical":a<c.drainRemainingPercent?"draining":"healthy":"unknown"}function J(a){let b;if(a?.vercelRelayUrl)return{capable:!1,reason:"relay-only proxy has no WebSocket transport"};if(!a?.connectionProxyEnabled||!a?.connectionProxyUrl)return{capable:!0,reason:null};try{b=new URL(a.connectionProxyUrl.includes("://")?a.connectionProxyUrl:`http://${a.connectionProxyUrl}`).protocol}catch{return{capable:!1,reason:"invalid proxy URL"}}return["http:","https:","socks:","socks4:","socks4a:","socks5:","socks5h:"].includes(b)?{capable:!0,reason:null}:{capable:!1,reason:`unsupported WebSocket proxy scheme ${b}`}}async function K(a){let b=G.quotas.get(a.id);if(b&&Date.now()-b.fetchedAt<j.DT.quotaTtlMs)return b;if(G.quotaRefreshes.has(a.id))return G.quotaRefreshes.get(a.id);let c=(async()=>{try{let c,d,e=await (0,h.checkAndRefreshToken)("codex",{...a,connectionId:a.id}),f=await (0,g.B)(e.providerSpecificData||{}),i=await (0,l.Tl)(e.accessToken,{connectionProxyEnabled:!0===f.connectionProxyEnabled,connectionProxyUrl:f.connectionProxyUrl||"",connectionNoProxy:f.connectionNoProxy||"",vercelRelayUrl:f.vercelRelayUrl||"",strictProxy:!0===f.strictProxy}),j=(c=[i?.quotas?.session,i?.quotas?.weekly].filter(Boolean).map(a=>Number(a.remaining)).filter(Number.isFinite)).length?Math.min(...c):null,k={remaining:j,status:I(j,b?.status),resetAt:(d=[i?.quotas?.session?.resetAt,i?.quotas?.weekly?.resetAt].filter(Boolean).map(a=>new Date(a).getTime()).filter(Number.isFinite)).length?new Date(Math.min(...d)).toISOString():null,fetchedAt:Date.now(),source:"poll"};return G.quotas.set(a.id,k),k}catch(a){return{...b||{remaining:null,status:"unknown",resetAt:null,fetchedAt:Date.now(),source:"poll-error"},error:a.message}}})().finally(()=>G.quotaRefreshes.delete(a.id));return G.quotaRefreshes.set(a.id,c),c}function L(a){return G.quotas.get(a)||{remaining:null,status:"unknown",resetAt:null,fetchedAt:null,source:null}}function M(a,b,c="event"){if(!a||!b)return null;let d=null,e=null;if("function"==typeof b?.get){let a=[b.get("x-codex-primary-used-percent"),b.get("x-codex-secondary-used-percent")].map(Number).filter(Number.isFinite);a.length&&(d=Math.max(0,100-Math.max(...a)));let c=[b.get("x-codex-primary-reset-at"),b.get("x-codex-secondary-reset-at")].map(Number).filter(Number.isFinite);c.length&&(e=new Date(1e3*Math.min(...c)).toISOString())}else{let a,c;a=b?.rate_limits||b?.rate_limit||b,d=(c=[a?.primary,a?.primary_window,a?.secondary,a?.secondary_window].filter(Boolean).map(a=>Number(a.remaining??100-Number(a.used_percent??a.percent_used))).filter(Number.isFinite)).length?Math.max(0,Math.min(...c)):null}if(null===d)return null;let f=G.quotas.get(a),g={remaining:d,status:I(d,f?.status),resetAt:e||f?.resetAt||null,fetchedAt:Date.now(),source:c};return G.quotas.set(a,g),g}async function N({model:a,transport:b,excludeConnectionIds:c,clientVersion:d}){let[e,h,i]=await Promise.all([(0,f.getProviderConnections)({provider:"codex",isActive:!0}),(0,F.SQ)({clientVersion:d}),E()]),j=a?new Set(h.eligibleConnectionIds?.[a]||[]):null,l=new Map,m=[];for(let d of e){let e=null;if(c.has(d.id)?e="excluded after failure":j&&!j.has(d.id)?e="different model metadata cohort":a&&(0,k.Bl)(d,a)?e="model temporarily locked":"exhausted"===L(d.id).status&&(e="quota exhausted"),!e&&"ws"===b){let a=J(await (0,g.B)(d.providerSpecificData||{}));a.capable||(e=a.reason)}e?l.set(d.id,e):m.push(d)}return{connections:e,catalog:h,counts:i,candidates:m,skipped:l}}async function O(a={}){let b=await (0,f.getProviderConnections)({provider:"codex",isActive:!0});return await Promise.all(b.map(K)),P(a)}async function P({model:a=null,clientVersion:b}={}){let{connections:c,catalog:d,counts:e,candidates:f,skipped:g}=await N({model:a,transport:"http",excludeConnectionIds:new Set,clientVersion:b}),h=new Set(f.map(a=>a.id));return c.map(b=>{let c=L(b.id);return{connectionId:b.id,name:b.displayName||b.name||b.email||b.id.slice(0,8),priority:b.priority??999,eligible:h.has(b.id),skippedReason:g.get(b.id)||null,affinityCount:e.get(b.id)||0,activeTurns:G.activeTurns.get(b.id)||0,activeSockets:G.activeSockets.get(b.id)||0,remaining:c.remaining,status:(0,k.Bl)(b,a)?"locked":c.status,resetAt:c.resetAt,quotaFetchedAt:c.fetchedAt,quotaSource:c.source,catalogEtag:d.upstreamEtags?.[b.id]||null}})}async function Q({headers:a,body:b,model:c,transport:d="http",clientVersion:e,excludeConnectionIds:f=new Set}){let g,{counts:h,candidates:i,skipped:j,catalog:k}=await N({model:c,transport:d,excludeConnectionIds:f,clientVersion:e});for(let a of i)K(a).catch(()=>{});let l=await A({headers:a,body:b,model:c}),m=l?await B(l):null,n=m?i.find(a=>a.id===m.connectionId):null;if(n){let a=L(n.id).status;if("critical"!==a&&"exhausted"!==a)return{affinityKey:l,preferredConnectionId:n.id,eligibleConnectionIds:i.map(a=>a.id),skippedReasons:Object.fromEntries(j),catalog:k}}let o=(g={healthy:0,unknown:1,draining:2,critical:3,exhausted:4},[...i].sort((a,b)=>{let c=L(a.id),e=L(b.id),f=(g[c.status]??1)-(g[e.status]??1);if(0!==f)return f;let i=(e.remaining??-1)-(c.remaining??-1);if(0!==i)return i;let j="ws"===d?G.activeSockets:G.activeTurns,k=(j.get(a.id)||0)-(j.get(b.id)||0);if(0!==k)return k;let l=(h.get(a.id)||0)-(h.get(b.id)||0);if(0!==l)return l;let m=(a.priority??999)-(b.priority??999);return 0!==m?m:new Date(a.lastUsedAt||0)-new Date(b.lastUsedAt||0)})).find(a=>{let b=L(a.id).status;return"healthy"===b||"unknown"===b})||null;return l&&o&&await C(l,o.id),{affinityKey:l,preferredConnectionId:o?.id||null,eligibleConnectionIds:i.map(a=>a.id),skippedReasons:Object.fromEntries(j),catalog:k}}async function R({headers:a,body:b,model:c,transport:d="http",clientVersion:i,excludeConnectionIds:j=new Set}){let k=await Q({headers:a,body:b,model:c,transport:d,clientVersion:i,excludeConnectionIds:j});if(!k.preferredConnectionId)return{...k,lease:null};let l=(await (0,f.getProviderConnections)({provider:"codex",isActive:!0})).find(a=>a.id===k.preferredConnectionId);if(!l)return{...k,lease:null};let m=await (0,h.checkAndRefreshToken)("codex",{...l,connectionId:l.id}),n=await (0,g.B)(m.providerSpecificData||{});if("ws"===d&&!J(n).capable)return{...k,lease:null};let o={id:e().randomUUID(),connectionId:l.id,connection:l,credentials:m,proxy:n,affinityKey:k.affinityKey,model:c||null,transport:d,clientVersion:i??null,createdAt:Date.now(),semanticOutput:!1};return G.leases.set(o.id,o),H("ws"===d?G.activeSockets:G.activeTurns,l.id,1),{...k,lease:o}}function S(a){let b=G.leases.get(a);return b?Date.now()-b.createdAt>j.DT.leaseTtlMs?(X(a),null):b:null}async function T(a,b){let c=S(a);if(!c||!b)return!1;let d=await (0,F.SQ)({clientVersion:c.clientVersion});return!!(d.eligibleConnectionIds?.[b]||[]).includes(c.connectionId)&&(c.model=b,c.affinityKey&&await C(c.affinityKey,c.connectionId),!0)}function U(a){let b=S(a);b&&(b.semanticOutput=!0)}async function V(a,{headers:b}={}){let c=S(a);if(c){if(b){M(c.connectionId,b,"headers");let a=b.get?.("x-models-etag");a&&(0,F.Nx)(c.connectionId,a,c.clientVersion)}await (0,i.Pt)(c.connectionId,c.connection,c.model).catch(()=>{}),c.affinityKey&&await C(c.affinityKey,c.connectionId)}}async function W(a,{status:b=503,error:c="Codex Native failure"}={}){let d=S(a);d&&(G.failures.set(d.connectionId,{status:b,message:String(c).slice(0,160),at:Date.now()}),d.affinityKey&&await D(d.affinityKey,d.connectionId),([401,429].includes(Number(b))||Number(b)>=500)&&await (0,i.vk)(d.connectionId,Number(b),String(c),"codex",d.model).catch(()=>{}))}function X(a){let b=G.leases.get(a);b&&(G.leases.delete(a),H("ws"===b.transport?G.activeSockets:G.activeTurns,b.connectionId,-1))}function Y(){G.httpFallbackCount+=1}function Z(){return{activeLeases:G.leases.size,activeSockets:[...G.activeSockets.values()].reduce((a,b)=>a+b,0),activeTurns:[...G.activeTurns.values()].reduce((a,b)=>a+b,0),httpFallbackCount:G.httpFallbackCount}}async function $({model:a=null,clientVersion:b}={}){let c=await (0,f.getProviderConnections)({provider:"codex",isActive:!0}),d=await (0,F.SQ)({clientVersion:b}),e=a?new Set(d.eligibleConnectionIds?.[a]||[]):null;return Promise.all(c.map(async a=>{let b=null;e&&!e.has(a.id)?b="different model metadata cohort":"exhausted"===L(a.id).status&&(b="quota exhausted");let c=J(await (0,g.B)(a.providerSpecificData||{}));return b||c.capable||(b=c.reason),{connectionId:a.id,eligible:!b,reason:b}}))}},40615:(a,b,c)=>{c.d(b,{AI_PROVIDERS:()=>u,js:()=>A,DI:()=>n,fg:()=>k,Pd:()=>o,Vj:()=>p,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>m,jO:()=>C,wb:()=>B,br:()=>l,wG:()=>z,zt:()=>v,gb:()=>r,gC:()=>s,AR:()=>t,mq:()=>q,rs:()=>w,p5:()=>y});var d=c(32892);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.default.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","credentialFallback","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.default.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.baseUrlField?{baseUrlField:a.baseUrlField}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.models?{models:a.models}:{},...a.authModes?{authModes:a.authModes}:{},...a.features?{features:{...a.features}}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m="openai-compatible-",n="anthropic-compatible-",o="custom-embedding-",p="custom-video-";function q(a){return"string"==typeof a&&a.startsWith(m)}function r(a){return"string"==typeof a&&a.startsWith(n)}function s(a){return"string"==typeof a&&a.startsWith(o)}function t(a){return"string"==typeof a&&a.startsWith(p)}let u={...h,...i,...j,...k,...l};function v(a){for(let b of Object.values(u))if(b.alias===a||b.id===a)return b;return null}function w(a){let b=v(a);return b?.id||a}let x={nvidia:40};function y(a,b){let c=(a?.rpmByProvider||{})[b];if(0===c||"0"===c)return 0;let d=Number(c);return Number.isFinite(d)&&d>0?d:x[b]||0}function z(a){let b=u[a];return b?.alias||a}let A=Object.values(u).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(u).reduce((a,b)=>(a[b.id]=b.alias,a),{});let B=d.default.filter(a=>a.features?.usage).map(a=>a.id),C=d.default.filter(a=>a.features?.usageApikey).map(a=>a.id)},92990:(a,b,c)=>{c.d(b,{DI:()=>i,Hp:()=>k,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,S6:()=>s,Td:()=>A,Tx:()=>q,V1:()=>C,WN:()=>t,Ww:()=>D,YT:()=>n,ZL:()=>m,aV:()=>u,cD:()=>o,f7:()=>y,hF:()=>l,lB:()=>w,qp:()=>B,w1:()=>x});var d=c(21820),e=c(92675),f=c(39141);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]},k={...f.sr.qwen},l={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]};({...f.sr["codebuddy-intl"]});let C={...f.sr["frontier-for-all"]},D=3e5}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=4646,exports.ids=[4646],exports.modules={84646:(a,b,c)=>{c.d(b,{PROVIDER_PRICING:()=>e,ad:()=>i,calculateCostFromTokens:()=>k,gH:()=>g,getPricingForModel:()=>h});let d={"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-fable-5":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.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.6":{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5},"gpt-5.6-luna":{input:1,output:6,cached:.1,reasoning:6,cache_creation:1},"gpt-5.6-terra":{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5},"gpt-5.6-sol":{input:5,output:30,cached:.5,reasoning:30,cache_creation:5},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},"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-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":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"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},"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},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}},e={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}}},f=[{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-*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*",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 g(a,b){return RegExp("^"+a.split("*").map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$","i").test(b)}function h(a,b){if(!b)return null;if(a&&e[a]?.[b])return e[a][b];let c=b.includes("/")?b.split("/").pop():b;if(d[c])return d[c];if(d[b])return d[b];for(let{pattern:a,pricing:d}of f)if(g(a,c)||g(a,b))return d;return null}function i(){return e}function j(a){if(null==a||""===a)return null;let b=Number(a);return Number.isFinite(b)&&b>=0?b:null}function k(a,b){if(!a)return 0;let c=j(a.cost_usd??a.cost_in_usd);if(null!==c)return c;let d=j(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;return i>0&&(e+=i*((b.reasoning||b.output)/1e6)),h>0&&(e+=h*((b.cache_creation||b.input)/1e6)),e}}};
|
|
1
|
+
"use strict";exports.id=4646,exports.ids=[4646],exports.modules={84646:(a,b,c)=>{c.d(b,{PROVIDER_PRICING:()=>e,ad:()=>i,calculateCostFromTokens:()=>k,gH:()=>g,getPricingForModel:()=>h});let d={"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-fable-5":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.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.6":{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5},"gpt-5.6-luna":{input:1,output:6,cached:.1,reasoning:6,cache_creation:1},"gpt-5.6-terra":{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5},"gpt-5.6-sol":{input:5,output:30,cached:.5,reasoning:30,cache_creation:5},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},"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-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":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"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},"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},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}},e={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}}},f=[{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-*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*",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 g(a,b){return RegExp("^"+a.split("*").map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$","i").test(b)}function h(a,b){if(!b)return null;if(a&&e[a]?.[b])return e[a][b];let c=b.includes("/")?b.split("/").pop():b;if(d[c])return d[c];if(d[b])return d[b];for(let{pattern:a,pricing:d}of f)if(g(a,c)||g(a,b))return d;return null}function i(){return e}function j(a){if(null==a||""===a)return null;let b=Number(a);return Number.isFinite(b)&&b>=0?b:null}function k(a,b){if(!a)return 0;let c=j(a.cost_usd??a.cost_in_usd);if(null!==c)return c;let d=j(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;return i>0&&(e+=i*((b.reasoning||b.output)/1e6)),h>0&&(e+=h*((b.cache_creation||b.input)/1e6)),e}}};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";exports.id=9233,exports.ids=[9233],exports.modules={3894:(a,b,c)=>{c.d(b,{F_:()=>g,Nc:()=>h,Qh:()=>t,Su:()=>q,ag:()=>o,kI:()=>p,rl:()=>u,sy:()=>s});var d=c(79646),e=c(33873),f=c.n(e);let g=["code","ml"],h={code:["tree-sitter","tree-sitter-language-pack"],ml:["torch","huggingface-hub"]},i="win32"===process.platform,j=i?"where":"which",k=i?[`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python313\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python312\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python311\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python310\\Scripts`,`${process.env.APPDATA||""}\\Python\\Python313\\Scripts`]:["/usr/local/bin","/opt/homebrew/bin","/Library/Frameworks/Python.framework/Versions/3.13/bin","/Library/Frameworks/Python.framework/Versions/3.12/bin","/Library/Frameworks/Python.framework/Versions/3.11/bin","/Library/Frameworks/Python.framework/Versions/3.10/bin",`${process.env.HOME||""}/.local/bin`,"/usr/bin","/bin"],l=[...k,process.env.PATH||""].filter(Boolean).join(f().delimiter),m=["python3.13","python3.12","python3.11","python3.10","python3","python"],n=new Set(["localhost","127.0.0.1","::1","[::1]","0.0.0.0"]),o=process.env.HEADROOM_URL||"http://localhost:8787";function p(){try{let a=(0,d.execSync)(`${j} headroom`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:l}}).toString().trim();return a?a.split(/\r?\n/)[0].trim():null}catch{return null}}function q(){let a=null;for(let b of function(){let a=[],b=p();if(b){let c=f().dirname(b);for(let b of i?["python.exe","python3.exe"]:["python3","python3.13","python"])a.push(f().join(c,b))}for(let b of k)if(b)for(let c of m)a.push(f().join(b,i?`${c}.exe`:c));return a.push(...m),a}())try{let c=(0,d.execFileSync)(b,["--version"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:l}}).toString().trim().match(/(\d+)\.(\d+)/);if(!c)continue;let[e,f]=[parseInt(c[1],10),parseInt(c[2],10)];if(!(e>3||3===e&&f>=10))continue;a||(a=b);try{return(0,d.execFileSync)(b,["-m","pip","show","headroom-ai"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:l}}),b}catch{}}catch{}return a}async function r(a){if(!a)return!1;let b=String(a).replace(/\/$/,"");try{return(await fetch(`${b}/health`,{signal:AbortSignal.timeout(1500)})).ok}catch{return!1}}function s(a){try{let b=new URL(a);return n.has(b.hostname)}catch{return!1}}async function t(a){let b=p(),c=q(),d=!!b,e=await r(a),f=s(a),g=d?u(c):{installed:!1,version:null,extras:{code:!1,ml:!1}};return{installed:d,path:b,running:e,python:c,localUrl:f,canStart:d&&f,version:g.version,extras:g.extras}}function u(a){let b=a||q();if(!b)return{installed:!1,version:null,extras:{code:!1,ml:!1}};try{let a=(0,d.execFileSync)(b,["-m","pip","list","--format=json","--disable-pip-version-check"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:l}}).toString(),c=JSON.parse(a),e=new Set(c.map(a=>String(a.name||"").toLowerCase()));if(!e.has("headroom-ai"))return{installed:!1,version:null,extras:{code:!1,ml:!1}};let f=c.find(a=>a.name?.toLowerCase()==="headroom-ai")?.version||null,i={};for(let a of g)i[a]=h[a].some(a=>e.has(a));return{installed:!0,version:f,extras:i}}catch{return{installed:!1,version:null,extras:{code:!1,ml:!1}}}}},24253:(a,b,c)=>{c.d(b,{Mo:()=>h,RG:()=>l,V:()=>i,Y8:()=>k,xl:()=>m});var d=c(1932),e=c(87155);let f=null,g=null;function h(){return f?{loaded:!0,version:f.version,loadedAt:f.loadedAt}:{loaded:!1}}async function i(){return f||g||(g=j().finally(()=>{g=null}))}async function j(){let a=(0,e.S1)();if(!a.installed){let a=Error("PXPIPE is not installed");throw a.code="NOT_INSTALLED",a}let b=`${(0,d.pathToFileURL)((0,e.CG)()).href}?v=${encodeURIComponent(a.version||"0")}`,c=await import(b);if("function"!=typeof c.transformAnthropicMessages)throw Error("installed pxpipe package does not export transformAnthropicMessages");return f={module:c,version:a.version,loadedAt:Date.now()}}function k(){let a=!!f;return f=null,a}async function l({autoLoad:a=!0}={}){try{if(!f&&!a)return null;let{module:b}=await i();return b.transformAnthropicMessages}catch{return null}}async function m(){let a=Date.now(),{module:b}=await i(),c=new TextEncoder().encode(JSON.stringify({model:"claude-fable-5",max_tokens:16,messages:[{role:"user",content:"ping"}]})),d=await b.transformAnthropicMessages({body:c,model:"claude-fable-5"});if(!d||"boolean"!=typeof d.applied||!(d.body instanceof Uint8Array))throw Error("transform returned an unexpected shape");return{ok:!0,reason:d.reason,durationMs:Date.now()-a}}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>h});var d=c(89718),e=c(66451),f=c(99471);c(45502);let g={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"};async function h(a){let b,c=(b=(0,e.Xh)(a),b?.providerAlias&&g[b.providerAlias]?{...b,provider:g[b.providerAlias]}:b);if(!c.isAlias){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===c.providerAlias);if(a)return{provider:a.id,model:c.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===c.providerAlias);if(b)return{provider:b.id,model:c.model};let e=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===c.providerAlias);if(e)return{provider:e.id,model:c.model};let f=(await (0,d.Fh)({type:"custom-video"})).find(a=>a.prefix===c.providerAlias);return f?{provider:f.id,model:c.model}:{provider:c.provider,model:c.model}}if(await (0,d.Dj)(c.model))return{provider:null,model:c.model};let f=await i(c.model);return f||(0,e.js)(a,d.OM)}async function i(a){try{let b=(await (0,d.uv)()).find(b=>b&&b.id===a&&("llm"===b.type||!b.type));if(b&&b.providerAlias)return{provider:(0,e.g2)(b.providerAlias),model:b.id}}catch{}try{let b=await (0,d.OM)(),c=(0,e.sc)(a,b);if(c)return c}catch{}let b=(0,e.PN)(a);if(b)return{provider:b,model:a};try{let b=await (0,f.w)(a);if(b)return b}catch{}return null}async function j(a){if(a.includes("/"))return null;let b=await (0,d.Dj)(a);return b&&b.models&&b.models.length>0?b.models:null}},52007:(a,b,c)=>{c.d(b,{Az:()=>l,SP:()=>o,T0:()=>k});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(87155);let i=g().join(h.XF,"events.jsonl"),j=g().join(h.XF,"events.jsonl.1");function k(a){try{e().existsSync(h.XF)||e().mkdirSync(h.XF,{recursive:!0});try{e().statSync(i).size>5242880&&e().renameSync(i,j)}catch{}e().appendFile(i,JSON.stringify({ts:Date.now(),...a})+"\n",()=>{})}catch{}}function l({sinceMs:a=null,limit:b=null}={}){let c=[];for(let b of[j,i])try{if(!e().existsSync(b))continue;for(let d of e().readFileSync(b,"utf8").split("\n"))if(d)try{let b=JSON.parse(d);if(a&&b.ts<a)continue;c.push(b)}catch{}}catch{}return c.sort((a,b)=>a.ts-b.ts),b?c.slice(-b):c}function m(){return{requests:0,compressed:0,bypassed:0,errors:0,tokensBeforeEst:0,tokensAfterEst:0,tokensSavedEst:0,savedPct:0,imagesGenerated:0,compressionTimeMs:0,avgCompressionMs:0}}function n(a,b){a.requests++,b.applied?(a.compressed++,a.tokensBeforeEst+=b.tokensBeforeEst||0,a.tokensAfterEst+=b.tokensAfterEst||0,a.tokensSavedEst+=b.tokensSavedEst||0,a.imagesGenerated+=b.imageCount||0,a.compressionTimeMs+=b.durationMs||0):"transform_error"===b.reason||"timeout"===b.reason?a.errors++:a.bypassed++}function o({timelineDays:a=30,recentLimit:b=100}={}){let c=l(),d=Date.now(),e=new Date(new Date(d).setHours(0,0,0,0)).getTime(),f={all:m(),today:m(),yesterday:m(),last7d:m(),last30d:m()},g=new Map;for(let b=a-1;b>=0;b--){let a=new Date(e-864e5*b);g.set(a.toISOString().slice(0,10),{date:a.toISOString().slice(0,10),tokensSavedEst:0,compressed:0,requests:0})}for(let a of c){n(f.all,a),a.ts>=e?n(f.today,a):a.ts>=e-864e5&&n(f.yesterday,a),a.ts>=d-6048e5&&n(f.last7d,a),a.ts>=d-2592e6&&n(f.last30d,a);let b=new Date(a.ts).toISOString().slice(0,10),c=g.get(b);c&&(c.requests++,a.applied&&(c.compressed++,c.tokensSavedEst+=a.tokensSavedEst||0))}for(let a of Object.values(f))a.savedPct=a.tokensBeforeEst>0?+(a.tokensSavedEst/a.tokensBeforeEst*100).toFixed(2):0,a.avgCompressionMs=a.compressed>0?Math.round(a.compressionTimeMs/a.compressed):0;return{windows:f,timeline:[...g.values()],recent:c.slice(-b).reverse()}}},68001:(a,b,c)=>{c.d(b,{S:()=>f});var d=c(38071);let e=["big-pickle"],f={"openrouter-free":a=>a.filter(a=>a.pricing?.prompt==="0"&&a.pricing?.completion==="0"&&a.context_length>=2e5).map(a=>({id:a.id,name:a.name,contextLength:a.context_length})).sort((a,b)=>b.contextLength-a.contextLength),"opencode-free":a=>a.filter(a=>a.id?.endsWith("-free")||e.includes(a.id)).map(a=>({id:a.id,name:a.id})),"mimo-free":a=>(Array.isArray(a)?a:[]).filter(a=>a.id?.startsWith("mimo")||a.name?.toLowerCase().includes("mimo")).map(a=>({id:a.id,name:a.name||a.id})),"nous-free":d.pD}},79489:(a,b,c)=>{c.d(b,{P:()=>u}),c(30369);var d=c(23433),e=c(14524),f=c(89718),g=c(38775),h=c(21479),i=c(3894),j=c(24253),k=c(52007),l=c(89865),m=c(57362),n=c(2735),o=c(60290),p=c(87252),q=c(19956),r=c(7803),s=c(67828),t=c(15186);async function u(a,b=null){let c;try{c=await a.json()}catch{return r.warn("CHAT","Invalid JSON body"),(0,l.yj)(o.gx.BAD_REQUEST,"Invalid JSON body")}b||(b={endpoint:new URL(a.url).pathname,body:c,headers:Object.fromEntries(a.headers.entries())}),(0,e.n)(b.headers);let h=c.model,i=a.headers.get("Authorization"),j=(0,d.Tr)(a);if(i&&j){let a=r.maskKey(j);r.debug("AUTH",`API Key: ${a}`)}else r.debug("AUTH","No API key provided (local mode)");let k=await (0,f.mt)();if(k.requireApiKey){if(!j)return r.warn("AUTH","Missing API key (requireApiKey=true)"),(0,l.yj)(o.gx.UNAUTHORIZED,"Missing API key");if(!await (0,d.kI)(j))return r.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,l.yj)(o.gx.UNAUTHORIZED,"Invalid API key")}if(!h)return r.warn("CHAT","Missing model"),(0,l.yj)(o.gx.BAD_REQUEST,"Missing model");let p=a?.headers?.get("user-agent")||"",q=(0,n.c)(c,h,p,!!k.ccFilterNaming);if(q)return q.response||q;let s=await (0,g.d_)(h);if(s){let d=k.comboStrategies||{},e=d[h]?.fallbackStrategy||k.comboStrategy||"fallback";if("fusion"===e)return r.info("CHAT",`Combo "${h}" with ${s.length} models (strategy: fusion)`),(0,m.vt)({body:c,models:s,handleSingleModel:(c,d,e)=>{let f=b;if(e&&b){let{tools:a,tool_choice:c,...d}=b.body||{};f={...b,body:d}}return v(c,d,f,a,j)},log:r,comboName:h,judgeModel:d[h]?.judgeModel,tuning:d[h]?.fusionTuning});let f=k.comboStickyRoundRobinLimit;return r.info("CHAT",`Combo "${h}" with ${s.length} models (strategy: ${e}, sticky: ${f})`),(0,m.Pr)({body:c,models:s,handleSingleModel:(c,d)=>v(c,d,b,a,j),log:r,comboName:h,comboStrategy:e,comboStickyLimit:f})}return v(c,h,b,a,j)}async function v(a,b,c=null,e=null,n=null){let u=await (0,g.mA)(b);if(!u.provider){let d=await (0,g.d_)(b);if(d){let g=await (0,f.mt)(),h=g.comboStrategies||{},i=h[b]?.fallbackStrategy||g.comboStrategy||"fallback";if("fusion"===i)return r.info("CHAT",`Combo "${b}" with ${d.length} models (strategy: fusion)`),(0,m.vt)({body:a,models:d,handleSingleModel:(a,b,d)=>{let f=c;if(d&&c){let{tools:a,tool_choice:b,...d}=c.body||{};f={...c,body:d}}return v(a,b,f,e,n)},log:r,comboName:b,judgeModel:h[b]?.judgeModel,tuning:h[b]?.fusionTuning});let j=g.comboStickyRoundRobinLimit;return r.info("CHAT",`Combo "${b}" with ${d.length} models (strategy: ${i}, sticky: ${j})`),(0,m.Pr)({body:a,models:d,handleSingleModel:(a,b)=>v(a,b,c,e,n),log:r,comboName:b,comboStrategy:i,comboStickyLimit:j})}return r.warn("CHAT","Invalid model format",{model:b}),(0,l.yj)(o.gx.BAD_REQUEST,"Invalid model format")}let{provider:w,model:x}=u,y=e?.headers?.get("user-agent")||"",z=e?.headers?.get("x-9r-connection-id")||null,A=new Set,B=null,C=null;for(;;){let b=await (0,d.c1)(w,A,x,{preferredConnectionId:z});if(!b||b.allRateLimited){if(b?.allRateLimited){let a=B||b.lastError||"Unavailable",c=C||Number(b.lastErrorCode)||o.gx.SERVICE_UNAVAILABLE;return r.warn("CHAT",`[${w}/${x}] ${a} (${b.retryAfterHuman})`),(0,l.wO)(c,`[${w}/${x}] ${a}`,b.retryAfter,b.retryAfterHuman)}if(0===A.size)return r.warn("AUTH",`No active credentials for provider: ${w}`),(0,l.yj)(o.gx.NOT_FOUND,`No active credentials for provider: ${w}`);return r.warn("CHAT","No more accounts available",{provider:w}),(0,l.yj)(C||o.gx.SERVICE_UNAVAILABLE,B||"All accounts unavailable")}let g=await (0,s.checkAndRefreshToken)(w,b);if(("antigravity"===w||"gemini-cli"===w)&&!g.projectId){let a=await (0,t.eG)(b.connectionId,g.accessToken,w);a&&(g.projectId=a,(0,s.vN)(b.connectionId,{projectId:a}).catch(()=>{}))}let m=await (0,f.mt)(),u=(m.providerThinking||{})[w]||null,v=await (0,h.wk)({body:{...structuredClone(a),model:`${w}/${x}`},modelInfo:{provider:w,model:x},credentials:g,log:r,clientRawRequest:c,connectionId:b.connectionId,userAgent:y,apiKey:n,ccFilterNaming:!!m.ccFilterNaming,rtkEnabled:!!m.rtkEnabled,headroomEnabled:!!m.headroomEnabled,headroomUrl:m.headroomUrl||i.ag,headroomCompressUserMessages:!!m.headroomCompressUserMessages,headroomTimeoutMs:m.headroomTimeoutMs,cavemanEnabled:!!m.cavemanEnabled,cavemanLevel:m.cavemanLevel||"full",ponytailEnabled:!!m.ponytailEnabled,ponytailLevel:m.ponytailLevel||"full",pxpipeEnabled:!!m.pxpipeEnabled,pxpipeMinChars:m.pxpipeMinChars,pxpipeTimeoutMs:m.pxpipeTimeoutMs,pxpipeTransform:m.pxpipeEnabled?await (0,j.RG)():null,onPxpipeEvent:k.T0,providerThinking:u,toolDisclosure:m.toolDisclosureEnabled||m.toolDisclosureFilterEnabled?{disclosureEnabled:!!m.toolDisclosureEnabled,filterEnabled:!!m.toolDisclosureFilterEnabled,maxTools:m.toolDisclosureMaxTools??20}:null,sourceFormatOverride:e?.url?(0,q.t)(new URL(e.url).pathname,a):null,onCredentialsRefreshed:async a=>{await (0,s.vN)(b.connectionId,{...a,existingProviderSpecificData:b.providerSpecificData,testStatus:"active"})},onRequestSuccess:async()=>{await (0,d.Pt)(b.connectionId,b,x)},onEmptyStream:async()=>{await (0,d.vk)(b.connectionId,o.gx.BAD_GATEWAY,`Empty streaming response from ${w}/${x}`,w,x,Date.now()+p.Dp)}});if(v instanceof Response||v&&!v.isError&&(v.ok||v.status===o.gx.OK||!v.status))return v instanceof Response?v:v.response||v;let D=v?.status||o.gx.INTERNAL_SERVER_ERROR,E=v?.error||"Upstream request failed",{shouldFallback:F}=await (0,d.vk)(b.connectionId,D,E,w,x,v?.resetsAtMs);if(F){r.warn("FALLBACK",`⇄ ACC:${b.connectionName} UNAVAILABLE (${D}) → NEXT ACCOUNT`),A.add(b.connectionId),B=E,C=D;continue}return v instanceof Response?v:v?.response||(0,l.yj)(D,E)}}},87155:(a,b,c)=>{c.d(b,{CG:()=>q,ED:()=>u,S1:()=>s,XF:()=>j,_g:()=>t,no:()=>r,sW:()=>w});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(79646),i=c(49120);let j=g().join(i.n,"pxpipe"),k="pxpipe-proxy",l=g().join(j,"install.log"),m="win32"===process.platform,n=[...m?[`${process.env.ProgramFiles||""}\\nodejs`,`${process.env.APPDATA||""}\\npm`]:["/usr/local/bin","/opt/homebrew/bin",`${process.env.HOME||""}/.local/bin`,"/usr/bin","/bin"],process.env.PATH||""].filter(Boolean).join(g().delimiter),o=null;function p(){return g().join(j,"node_modules",k)}function q(){return g().join(p(),"dist","core","library.js")}function r(){try{let a=(0,h.execSync)(`${m?"where":"which"} npm`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:n}}).toString().trim();return a?a.split(/\r?\n/)[0].trim():null}catch{return null}}function s(){try{let a=g().join(p(),"package.json");if(!e().existsSync(a)||!e().existsSync(q()))return{installed:!1,version:null,path:null};let b=JSON.parse(e().readFileSync(a,"utf8"));return{installed:!0,version:b.version||null,path:p()}}catch{return{installed:!1,version:null,path:null}}}function t(){return null!==o}function u(){return o||(o=v().finally(()=>{o=null}))}async function v(){let a=r();if(!a){let a=Error("npm not found on PATH — Node.js/npm is required to install PXPIPE");throw a.code="NPM_NOT_FOUND",a}e().existsSync(j)||e().mkdirSync(j,{recursive:!0});let b=g().join(j,"package.json");e().existsSync(b)||e().writeFileSync(b,JSON.stringify({name:"9router-pxpipe-host",private:!0},null,2));let c=e().openSync(l,"a");e().writeSync(c,`
|
|
1
|
+
"use strict";exports.id=4704,exports.ids=[4704],exports.modules={3894:(a,b,c)=>{c.d(b,{F_:()=>g,Nc:()=>h,Qh:()=>t,Su:()=>q,ag:()=>o,kI:()=>p,rl:()=>u,sy:()=>s});var d=c(79646),e=c(33873),f=c.n(e);let g=["code","ml"],h={code:["tree-sitter","tree-sitter-language-pack"],ml:["torch","huggingface-hub"]},i="win32"===process.platform,j=i?"where":"which",k=i?[`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python313\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python312\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python311\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python310\\Scripts`,`${process.env.APPDATA||""}\\Python\\Python313\\Scripts`]:["/usr/local/bin","/opt/homebrew/bin","/Library/Frameworks/Python.framework/Versions/3.13/bin","/Library/Frameworks/Python.framework/Versions/3.12/bin","/Library/Frameworks/Python.framework/Versions/3.11/bin","/Library/Frameworks/Python.framework/Versions/3.10/bin",`${process.env.HOME||""}/.local/bin`,"/usr/bin","/bin"],l=[...k,process.env.PATH||""].filter(Boolean).join(f().delimiter),m=["python3.13","python3.12","python3.11","python3.10","python3","python"],n=new Set(["localhost","127.0.0.1","::1","[::1]","0.0.0.0"]),o=process.env.HEADROOM_URL||"http://localhost:8787";function p(){try{let a=(0,d.execSync)(`${j} headroom`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:l}}).toString().trim();return a?a.split(/\r?\n/)[0].trim():null}catch{return null}}function q(){let a=null;for(let b of function(){let a=[],b=p();if(b){let c=f().dirname(b);for(let b of i?["python.exe","python3.exe"]:["python3","python3.13","python"])a.push(f().join(c,b))}for(let b of k)if(b)for(let c of m)a.push(f().join(b,i?`${c}.exe`:c));return a.push(...m),a}())try{let c=(0,d.execFileSync)(b,["--version"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:l}}).toString().trim().match(/(\d+)\.(\d+)/);if(!c)continue;let[e,f]=[parseInt(c[1],10),parseInt(c[2],10)];if(!(e>3||3===e&&f>=10))continue;a||(a=b);try{return(0,d.execFileSync)(b,["-m","pip","show","headroom-ai"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:l}}),b}catch{}}catch{}return a}async function r(a){if(!a)return!1;let b=String(a).replace(/\/$/,"");try{return(await fetch(`${b}/health`,{signal:AbortSignal.timeout(1500)})).ok}catch{return!1}}function s(a){try{let b=new URL(a);return n.has(b.hostname)}catch{return!1}}async function t(a){let b=p(),c=q(),d=!!b,e=await r(a),f=s(a),g=d?u(c):{installed:!1,version:null,extras:{code:!1,ml:!1}};return{installed:d,path:b,running:e,python:c,localUrl:f,canStart:d&&f,version:g.version,extras:g.extras}}function u(a){let b=a||q();if(!b)return{installed:!1,version:null,extras:{code:!1,ml:!1}};try{let a=(0,d.execFileSync)(b,["-m","pip","list","--format=json","--disable-pip-version-check"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:l}}).toString(),c=JSON.parse(a),e=new Set(c.map(a=>String(a.name||"").toLowerCase()));if(!e.has("headroom-ai"))return{installed:!1,version:null,extras:{code:!1,ml:!1}};let f=c.find(a=>a.name?.toLowerCase()==="headroom-ai")?.version||null,i={};for(let a of g)i[a]=h[a].some(a=>e.has(a));return{installed:!0,version:f,extras:i}}catch{return{installed:!1,version:null,extras:{code:!1,ml:!1}}}}},24253:(a,b,c)=>{c.d(b,{Mo:()=>h,RG:()=>l,V:()=>i,Y8:()=>k,xl:()=>m});var d=c(1932),e=c(87155);let f=null,g=null;function h(){return f?{loaded:!0,version:f.version,loadedAt:f.loadedAt}:{loaded:!1}}async function i(){return f||g||(g=j().finally(()=>{g=null}))}async function j(){let a=(0,e.S1)();if(!a.installed){let a=Error("PXPIPE is not installed");throw a.code="NOT_INSTALLED",a}let b=`${(0,d.pathToFileURL)((0,e.CG)()).href}?v=${encodeURIComponent(a.version||"0")}`,c=await import(b);if("function"!=typeof c.transformAnthropicMessages)throw Error("installed pxpipe package does not export transformAnthropicMessages");return f={module:c,version:a.version,loadedAt:Date.now()}}function k(){let a=!!f;return f=null,a}async function l({autoLoad:a=!0}={}){try{if(!f&&!a)return null;let{module:b}=await i();return b.transformAnthropicMessages}catch{return null}}async function m(){let a=Date.now(),{module:b}=await i(),c=new TextEncoder().encode(JSON.stringify({model:"claude-fable-5",max_tokens:16,messages:[{role:"user",content:"ping"}]})),d=await b.transformAnthropicMessages({body:c,model:"claude-fable-5"});if(!d||"boolean"!=typeof d.applied||!(d.body instanceof Uint8Array))throw Error("transform returned an unexpected shape");return{ok:!0,reason:d.reason,durationMs:Date.now()-a}}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>h});var d=c(89718),e=c(66451),f=c(99471);c(32892);let g={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"};async function h(a){let b,c=(b=(0,e.Xh)(a),b?.providerAlias&&g[b.providerAlias]?{...b,provider:g[b.providerAlias]}:b);if(!c.isAlias){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===c.providerAlias);if(a)return{provider:a.id,model:c.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===c.providerAlias);if(b)return{provider:b.id,model:c.model};let e=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===c.providerAlias);if(e)return{provider:e.id,model:c.model};let f=(await (0,d.Fh)({type:"custom-video"})).find(a=>a.prefix===c.providerAlias);return f?{provider:f.id,model:c.model}:{provider:c.provider,model:c.model}}if(await (0,d.Dj)(c.model))return{provider:null,model:c.model};let f=await i(c.model);return f||(0,e.js)(a,d.OM)}async function i(a){try{let b=(await (0,d.uv)()).find(b=>b&&b.id===a&&("llm"===b.type||!b.type));if(b&&b.providerAlias)return{provider:(0,e.g2)(b.providerAlias),model:b.id}}catch{}try{let b=await (0,d.OM)(),c=(0,e.sc)(a,b);if(c)return c}catch{}let b=(0,e.PN)(a);if(b)return{provider:b,model:a};try{let b=await (0,f.w)(a);if(b)return b}catch{}return null}async function j(a){if(a.includes("/"))return null;let b=await (0,d.Dj)(a);return b&&b.models&&b.models.length>0?b.models:null}},52007:(a,b,c)=>{c.d(b,{Az:()=>l,SP:()=>o,T0:()=>k});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(87155);let i=g().join(h.XF,"events.jsonl"),j=g().join(h.XF,"events.jsonl.1");function k(a){try{e().existsSync(h.XF)||e().mkdirSync(h.XF,{recursive:!0});try{e().statSync(i).size>5242880&&e().renameSync(i,j)}catch{}e().appendFile(i,JSON.stringify({ts:Date.now(),...a})+"\n",()=>{})}catch{}}function l({sinceMs:a=null,limit:b=null}={}){let c=[];for(let b of[j,i])try{if(!e().existsSync(b))continue;for(let d of e().readFileSync(b,"utf8").split("\n"))if(d)try{let b=JSON.parse(d);if(a&&b.ts<a)continue;c.push(b)}catch{}}catch{}return c.sort((a,b)=>a.ts-b.ts),b?c.slice(-b):c}function m(){return{requests:0,compressed:0,bypassed:0,errors:0,tokensBeforeEst:0,tokensAfterEst:0,tokensSavedEst:0,savedPct:0,imagesGenerated:0,compressionTimeMs:0,avgCompressionMs:0}}function n(a,b){a.requests++,b.applied?(a.compressed++,a.tokensBeforeEst+=b.tokensBeforeEst||0,a.tokensAfterEst+=b.tokensAfterEst||0,a.tokensSavedEst+=b.tokensSavedEst||0,a.imagesGenerated+=b.imageCount||0,a.compressionTimeMs+=b.durationMs||0):"transform_error"===b.reason||"timeout"===b.reason?a.errors++:a.bypassed++}function o({timelineDays:a=30,recentLimit:b=100}={}){let c=l(),d=Date.now(),e=new Date(new Date(d).setHours(0,0,0,0)).getTime(),f={all:m(),today:m(),yesterday:m(),last7d:m(),last30d:m()},g=new Map;for(let b=a-1;b>=0;b--){let a=new Date(e-864e5*b);g.set(a.toISOString().slice(0,10),{date:a.toISOString().slice(0,10),tokensSavedEst:0,compressed:0,requests:0})}for(let a of c){n(f.all,a),a.ts>=e?n(f.today,a):a.ts>=e-864e5&&n(f.yesterday,a),a.ts>=d-6048e5&&n(f.last7d,a),a.ts>=d-2592e6&&n(f.last30d,a);let b=new Date(a.ts).toISOString().slice(0,10),c=g.get(b);c&&(c.requests++,a.applied&&(c.compressed++,c.tokensSavedEst+=a.tokensSavedEst||0))}for(let a of Object.values(f))a.savedPct=a.tokensBeforeEst>0?+(a.tokensSavedEst/a.tokensBeforeEst*100).toFixed(2):0,a.avgCompressionMs=a.compressed>0?Math.round(a.compressionTimeMs/a.compressed):0;return{windows:f,timeline:[...g.values()],recent:c.slice(-b).reverse()}}},68001:(a,b,c)=>{c.d(b,{S:()=>g});var d=c(38071);let e=["big-pickle"],f=new Set(["deepseek-v4-flash-free"]),g={"openrouter-free":a=>a.filter(a=>a.pricing?.prompt==="0"&&a.pricing?.completion==="0"&&a.context_length>=2e5).map(a=>({id:a.id,name:a.name,contextLength:a.context_length})).sort((a,b)=>b.contextLength-a.contextLength),"opencode-free":a=>a.filter(a=>(a.id?.endsWith("-free")||e.includes(a.id))&&!f.has(a.id)).map(a=>({id:a.id,name:a.id})),"mimo-free":a=>(Array.isArray(a)?a:[]).filter(a=>a.id?.startsWith("mimo")||a.name?.toLowerCase().includes("mimo")).map(a=>({id:a.id,name:a.name||a.id})),"nous-free":d.pD}},87155:(a,b,c)=>{c.d(b,{CG:()=>q,ED:()=>u,S1:()=>s,XF:()=>j,_g:()=>t,no:()=>r,sW:()=>w});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(79646),i=c(49120);let j=g().join(i.n,"pxpipe"),k="pxpipe-proxy",l=g().join(j,"install.log"),m="win32"===process.platform,n=[...m?[`${process.env.ProgramFiles||""}\\nodejs`,`${process.env.APPDATA||""}\\npm`]:["/usr/local/bin","/opt/homebrew/bin",`${process.env.HOME||""}/.local/bin`,"/usr/bin","/bin"],process.env.PATH||""].filter(Boolean).join(g().delimiter),o=null;function p(){return g().join(j,"node_modules",k)}function q(){return g().join(p(),"dist","core","library.js")}function r(){try{let a=(0,h.execSync)(`${m?"where":"which"} npm`,{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:n}}).toString().trim();return a?a.split(/\r?\n/)[0].trim():null}catch{return null}}function s(){try{let a=g().join(p(),"package.json");if(!e().existsSync(a)||!e().existsSync(q()))return{installed:!1,version:null,path:null};let b=JSON.parse(e().readFileSync(a,"utf8"));return{installed:!0,version:b.version||null,path:p()}}catch{return{installed:!1,version:null,path:null}}}function t(){return null!==o}function u(){return o||(o=v().finally(()=>{o=null}))}async function v(){let a=r();if(!a){let a=Error("npm not found on PATH — Node.js/npm is required to install PXPIPE");throw a.code="NPM_NOT_FOUND",a}e().existsSync(j)||e().mkdirSync(j,{recursive:!0});let b=g().join(j,"package.json");e().existsSync(b)||e().writeFileSync(b,JSON.stringify({name:"9router-pxpipe-host",private:!0},null,2));let c=e().openSync(l,"a");e().writeSync(c,`
|
|
2
2
|
[${new Date().toISOString()}] npm install ${k}@latest
|
|
3
|
-
`),await new Promise((b,d)=>{let e=(0,h.spawn)(a,["install",`${k}@latest`,"--no-audit","--no-fund","--omit=dev"],{cwd:j,stdio:["ignore",c,c],windowsHide:!0,env:{...process.env,PATH:n}}),f=setTimeout(()=>{e.kill("SIGKILL"),d(Error("npm install timed out after 5 minutes — see install.log"))},3e5);e.once("error",a=>{clearTimeout(f),d(a)}),e.once("exit",a=>{clearTimeout(f),0===a?b():d(Error(`npm install exited with code ${a} — see install.log`))})}).finally(()=>e().closeSync(c));let d=s();if(!d.installed)throw Error("install finished but package is missing — see install.log");return d}function w(a=200){try{if(!e().existsSync(l))return"";return e().readFileSync(l,"utf8").split(/\r?\n/).filter(Boolean).slice(-a).join("\n")}catch{return""}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,Hp:()=>k,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,S6:()=>s,Td:()=>A,Tx:()=>q,V1:()=>C,WN:()=>t,Ww:()=>D,YT:()=>n,ZL:()=>m,aV:()=>u,cD:()=>o,f7:()=>y,hF:()=>l,lB:()=>w,qp:()=>B,w1:()=>x});var d=c(21820),e=c(92675),f=c(39141);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]},k={...f.sr.qwen},l={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]};({...f.sr["codebuddy-intl"]});let C={...f.sr["frontier-for-all"]},D=3e5},99471:(a,b,c)=>{c.d(b,{Y:()=>k,w:()=>j});var d=c(68001);let e=null,f=0,g=null;async function h(){let a=new AbortController,b=setTimeout(()=>a.abort(),5e3);try{let b=await fetch("https://opencode.ai/zen/v1/models",{signal:a.signal});if(!b.ok)return e||[];let c=await b.json(),g=c.data??c.models??c,h=d.S["opencode-free"](Array.isArray(g)?g:[]);return e=h,f=Date.now(),h}catch{return e||[]}finally{clearTimeout(b)}}async function i(){if(e&&Date.now()-f<6e5)return e;if(!g){g=h();try{return await g}finally{g=null}}return g}async function j(a){let b=(await i()).find(b=>b&&b.id===a);return b?{provider:"opencode",model:b.id}:"big-pickle"===a||String(a).endsWith("-free")?{provider:"opencode",model:a}:null}async function k(){return await i()}}};
|
|
3
|
+
`),await new Promise((b,d)=>{let e=(0,h.spawn)(a,["install",`${k}@latest`,"--no-audit","--no-fund","--omit=dev"],{cwd:j,stdio:["ignore",c,c],windowsHide:!0,env:{...process.env,PATH:n}}),f=setTimeout(()=>{e.kill("SIGKILL"),d(Error("npm install timed out after 5 minutes — see install.log"))},3e5);e.once("error",a=>{clearTimeout(f),d(a)}),e.once("exit",a=>{clearTimeout(f),0===a?b():d(Error(`npm install exited with code ${a} — see install.log`))})}).finally(()=>e().closeSync(c));let d=s();if(!d.installed)throw Error("install finished but package is missing — see install.log");return d}function w(a=200){try{if(!e().existsSync(l))return"";return e().readFileSync(l,"utf8").split(/\r?\n/).filter(Boolean).slice(-a).join("\n")}catch{return""}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,Hp:()=>k,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,S6:()=>s,Td:()=>A,Tx:()=>q,V1:()=>C,WN:()=>t,Ww:()=>D,YT:()=>n,ZL:()=>m,aV:()=>u,cD:()=>o,f7:()=>y,hF:()=>l,lB:()=>w,qp:()=>B,w1:()=>x});var d=c(21820),e=c(92675),f=c(39141);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]},k={...f.sr.qwen},l={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]};({...f.sr["codebuddy-intl"]});let C={...f.sr["frontier-for-all"]},D=3e5},99057:(a,b,c)=>{c.d(b,{P:()=>w}),c(30369);var d=c(23433),e=c(14524),f=c(45974),g=c(89718),h=c(38775),i=c(21479),j=c(3894),k=c(24253),l=c(52007),m=c(89865),n=c(57362),o=c(2735),p=c(60290),q=c(87252),r=c(19956),s=c(7803),t=c(67828),u=c(15186);let v=/\[1m\]$/i;async function w(a,b=null){let c;try{c=await a.json()}catch{return s.warn("CHAT","Invalid JSON body"),(0,m.yj)(p.gx.BAD_REQUEST,"Invalid JSON body")}b||(b={endpoint:new URL(a.url).pathname,body:c,headers:Object.fromEntries(a.headers.entries())}),(0,e.n)(b.headers);let{model:f,contextMarker:i}=function(a){if("string"!=typeof a)return{model:a,contextMarker:null};let b=a.trim(),c=b.match(v);return c?{model:b.slice(0,-c[0].length),contextMarker:c[0].slice(1,-1).toLowerCase()}:{model:a,contextMarker:null}}(c.model);i&&(c.model=f);let j=a.headers.get("Authorization"),k=(0,d.Tr)(a);if(j&&k){let a=s.maskKey(k);s.debug("AUTH",`API Key: ${a}`)}else s.debug("AUTH","No API key provided (local mode)");let l=await (0,g.mt)();if(l.requireApiKey){if(!k)return s.warn("AUTH","Missing API key (requireApiKey=true)"),(0,m.yj)(p.gx.UNAUTHORIZED,"Missing API key");if(!await (0,d.kI)(k))return s.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,m.yj)(p.gx.UNAUTHORIZED,"Invalid API key")}if(!f)return s.warn("CHAT","Missing model"),(0,m.yj)(p.gx.BAD_REQUEST,"Missing model");let q=a?.headers?.get("user-agent")||"",r=(0,o.c)(c,f,q,!!l.ccFilterNaming);if(r)return r.response||r;let t=await (0,h.d_)(f);if(t){let d=l.comboStrategies||{},e=d[f]?.fallbackStrategy||l.comboStrategy||"fallback";if("fusion"===e)return s.info("CHAT",`Combo "${f}" with ${t.length} models (strategy: fusion)`),(0,n.vt)({body:c,models:t,handleSingleModel:(c,d,e)=>{let f=b;if(e&&b){let{tools:a,tool_choice:c,...d}=b.body||{};f={...b,body:d}}return x(c,d,f,a,k)},log:s,comboName:f,judgeModel:d[f]?.judgeModel,tuning:d[f]?.fusionTuning});let g=l.comboStickyRoundRobinLimit;return s.info("CHAT",`Combo "${f}" with ${t.length} models (strategy: ${e}, sticky: ${g})`),(0,n.Pr)({body:c,models:t,handleSingleModel:(c,d)=>x(c,d,b,a,k),log:s,comboName:f,comboStrategy:e,comboStickyLimit:g})}return x(c,f,b,a,k)}async function x(a,b,c=null,e=null,o=null){let v=await (0,h.mA)(b);if(!v.provider){let d=await (0,h.d_)(b);if(d){let f=await (0,g.mt)(),h=f.comboStrategies||{},i=h[b]?.fallbackStrategy||f.comboStrategy||"fallback";if("fusion"===i)return s.info("CHAT",`Combo "${b}" with ${d.length} models (strategy: fusion)`),(0,n.vt)({body:a,models:d,handleSingleModel:(a,b,d)=>{let f=c;if(d&&c){let{tools:a,tool_choice:b,...d}=c.body||{};f={...c,body:d}}return x(a,b,f,e,o)},log:s,comboName:b,judgeModel:h[b]?.judgeModel,tuning:h[b]?.fusionTuning});let j=f.comboStickyRoundRobinLimit;return s.info("CHAT",`Combo "${b}" with ${d.length} models (strategy: ${i}, sticky: ${j})`),(0,n.Pr)({body:a,models:d,handleSingleModel:(a,b)=>x(a,b,c,e,o),log:s,comboName:b,comboStrategy:i,comboStickyLimit:j})}return s.warn("CHAT","Invalid model format",{model:b}),(0,m.yj)(p.gx.BAD_REQUEST,"Invalid model format")}let{provider:w,model:y}=v,z=e?.headers?.get("user-agent")||"",A=e?.headers?.get("x-9r-connection-id")||null,B=new Set,C=null,D=null;for(;;){let b=await (0,d.c1)(w,B,y,{preferredConnectionId:A});if(!b||b.allRateLimited){if(b?.allRateLimited){let a=C||b.lastError||"Unavailable",c=p.gx.SERVICE_UNAVAILABLE;return s.warn("CHAT",`[${w}/${y}] ${a} (${b.retryAfterHuman})`),(0,m.wO)(c,`[${w}/${y}] ${a}`,b.retryAfter,b.retryAfterHuman)}if(0===B.size)return s.warn("AUTH",`No active credentials for provider: ${w}`),(0,m.yj)(p.gx.NOT_FOUND,`No active credentials for provider: ${w}`);return s.warn("CHAT","No more accounts available",{provider:w}),(0,m.yj)(D||p.gx.SERVICE_UNAVAILABLE,C||"All accounts unavailable")}let h=await (0,t.checkAndRefreshToken)(w,b);if(("antigravity"===w||"gemini-cli"===w)&&!h.projectId){let a=await (0,u.eG)(b.connectionId,h.accessToken,w);a&&(h.projectId=a,(0,t.vN)(b.connectionId,{projectId:a}).catch(()=>{}))}let n=await (0,g.mt)(),v=(n.providerThinking||{})[w]||null,x=await (0,i.wk)({body:{...structuredClone(a),model:`${w}/${y}`},modelInfo:{provider:w,model:y},credentials:h,log:s,clientRawRequest:c,connectionId:b.connectionId,userAgent:z,apiKey:o,ccFilterNaming:!!n.ccFilterNaming,rtkEnabled:!!n.rtkEnabled,headroomEnabled:!!n.headroomEnabled,headroomUrl:n.headroomUrl||j.ag,headroomCompressUserMessages:!!n.headroomCompressUserMessages,headroomTimeoutMs:n.headroomTimeoutMs,cavemanEnabled:!!n.cavemanEnabled,cavemanLevel:n.cavemanLevel||"full",ponytailEnabled:!!n.ponytailEnabled,ponytailLevel:n.ponytailLevel||"full",pxpipeEnabled:!!n.pxpipeEnabled,pxpipeMinChars:n.pxpipeMinChars,pxpipeTimeoutMs:n.pxpipeTimeoutMs,pxpipeTransform:n.pxpipeEnabled?await (0,k.RG)():null,onPxpipeEvent:l.T0,providerThinking:v,toolDisclosure:n.toolDisclosureEnabled||n.toolDisclosureFilterEnabled?{disclosureEnabled:!!n.toolDisclosureEnabled,filterEnabled:!!n.toolDisclosureFilterEnabled,maxTools:n.toolDisclosureMaxTools??20}:null,sourceFormatOverride:e?.url?(0,r.t)(new URL(e.url).pathname,a):null,onCredentialsRefreshed:async a=>{await (0,t.vN)(b.connectionId,{...a,existingProviderSpecificData:b.providerSpecificData,testStatus:"active"})},onRequestSuccess:async()=>{await (0,d.Pt)(b.connectionId,b,y),(0,f.vO)(b.connectionId,y)},onEmptyStream:async()=>{await (0,d.vk)(b.connectionId,p.gx.BAD_GATEWAY,`Empty streaming response from ${w}/${y}`,w,y,Date.now()+q.Dp)}});if(x instanceof Response||x&&!x.isError&&(x.ok||x.status===p.gx.OK||!x.status))return x instanceof Response?x:x.response||x;let E=x?.status||p.gx.INTERNAL_SERVER_ERROR,F=x?.error||"Upstream request failed",G=null,H=x?.resetsAtMs;if("antigravity"===w&&(409===E||429===E)&&(G=await (0,f.XJ)(b.connectionId,E,y,h.accessToken,b.providerSpecificData))&&(H=G),"antigravity"===w&&G||(await (0,d.vk)(b.connectionId,E,F,w,y,H)).shouldFallback){s.warn("FALLBACK",`⇄ ACC:${b.connectionName} UNAVAILABLE (${E}) → NEXT ACCOUNT`),B.add(b.connectionId),C=F,D=E;continue}return x instanceof Response?x:x?.response||(0,m.yj)(E,F)}}},99471:(a,b,c)=>{c.d(b,{Y:()=>k,w:()=>j});var d=c(68001);let e=null,f=0,g=null;async function h(){let a=new AbortController,b=setTimeout(()=>a.abort(),5e3);try{let b=await fetch("https://opencode.ai/zen/v1/models",{signal:a.signal});if(!b.ok)return e||[];let c=await b.json(),g=c.data??c.models??c,h=d.S["opencode-free"](Array.isArray(g)?g:[]);return e=h,f=Date.now(),h}catch{return e||[]}finally{clearTimeout(b)}}async function i(){if(e&&Date.now()-f<6e5)return e;if(!g){g=h();try{return await g}finally{g=null}}return g}async function j(a){let b=(await i()).find(b=>b&&b.id===a);return b?{provider:"opencode",model:b.id}:"big-pickle"===a||String(a).endsWith("-free")?{provider:"opencode",model:a}:null}async function k(){return await i()}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=476,exports.ids=[476],exports.modules={476:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>J,OPTIONS:()=>I,buildModelsList:()=>H,fetchCompatibleModelIds:()=>E,getModelListPolicy:()=>L});var d=c(81329),e=c(40615),f=c(89718),g=c(23433),h=c(99471),i=c(16655),j=c(58569),k=c(86925),l=c(9155),m=c(89843),n=c(28730),o=c(85640),p=c(43904);let q=new Map;async function r(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),1e4);try{let d=await (0,m.proxyAwareFetch)("https://api.githubcopilot.com/models",{method:"GET",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json","Copilot-Integration-Id":"vscode-chat","editor-version":`vscode/${n.x0.VSCODE_VERSION}`,"editor-plugin-version":`copilot-chat/${n.x0.COPILOT_CHAT_VERSION}`,"user-agent":n.x0.USER_AGENT,"x-github-api-version":n.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 s(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=q.get(e);if(a&&a.expiresAt>f)return{models:a.models}}try{c=await r(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,o.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 r(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,c=[];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,p.nl)("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?(q.set(e,{expiresAt:f+3e5,models:g}),{models:g}):null}var t=c(7866);async function u(a){let b=!!a?.apiKey,c=b?a.apiKey:a?.accessToken;if(!c)return null;let d=new AbortController,e=setTimeout(()=>d.abort(),5e3);try{let a=b?{Accept:"application/json",Authorization:`Bearer ${c}`}:(0,t.w$)(c,{Accept:"application/json"}),e=await fetch("https://api.cline.bot/api/v1/models",{method:"GET",headers:a,signal:d.signal});if(!e.ok)return null;let f=await e.json(),g=Array.isArray(f)?f:f?.data;if(!Array.isArray(g))return null;let h=g.filter(a=>"string"==typeof a?.id&&a.id.startsWith("cline-pass/")).map(a=>({id:a.id,name:a.name||a.id}));return h.length?{models:h}:null}catch{return null}finally{clearTimeout(e)}}var v=c(63123),w=c(26588);c(49934);var x=c(45502),y=c(67828),z=c(39326);let A={kiro:async a=>{let b=await (0,j.cW)({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},qoder:async a=>{let b=await (0,l.EV)({accessToken:a.accessToken,refreshToken:a.refreshToken,email:a.email,displayName:a.displayName,providerSpecificData:a.providerSpecificData||{}});return b?.models?.length?{models:b.models.map(a=>({id:a.id,name:a.name}))}:null},kimchi:async a=>{let b=await (0,k.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 s({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console,onCredentialsRefreshed:async b=>{await (0,y.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 u({accessToken:a.accessToken,apiKey:a.apiKey});return b?.models?.length?{models:b.models}:null},"grok-cli":async a=>{let b=await (0,z.B)(a.providerSpecificData||{}),c=await (0,v.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,y.vN)(a.id,{...b,existingProviderSpecificData:a.providerSpecificData||{}})}});return c?.models?.length?{models:c.models}:null},cursor:async a=>{let b=await (0,w.FD)({accessToken:a.accessToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null}},B="x-9r-internal-models-fetch",C={image:"image",tts:"tts",embedding:"embedding",stt:"stt",imageToText:"imageToText",video:"video"};function D(a){let b=a?.kind||a?.type;return b&&C[b]||"llm"}async function E(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,e.mq)(a.provider))d.Authorization=`Bearer ${a.apiKey}`;else{if(!(0,e.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 f;let a=new AbortController,b=setTimeout(()=>a.abort(),5e3),e=await fetch(c,{method:"GET",headers:{...d,[B]:"1"},cache:"no-store",signal:a.signal});if(clearTimeout(b),!e.ok)return[];let g=(f=await e.json(),Array.isArray(f)?f:f?.data||f?.models||f?.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 F(a,b){let c=e.AI_PROVIDERS[a],d=Array.isArray(c?.serviceKinds)&&c.serviceKinds.length>0?c.serviceKinds:["llm"];return b.some(a=>d.includes(a))}function G(a,b){let c=a?.kind||"llm";return b.includes(c)}async function H(a,b={}){let c=!0===b.skipDynamicFetch,g=[],j=!1;try{g=(g=await (0,f.getProviderConnections)()).filter(a=>!1!==a.isActive)}catch(a){j=!0,console.log("Could not fetch providers, returning all models")}let k=[];try{k=await (0,f.Uv)()}catch(a){console.log("Could not fetch combos")}let l={};try{l=await (0,f.mt)()}catch(a){console.log("Could not fetch settings, using defaults")}if(l.exposeComboOnly){let b=new Set,c=[];for(let d of k){if(!G(d,a))continue;let e=function(a){let b={id:a.name,object:"model",owned_by:"combo"};return("webSearch"===a.kind||"webFetch"===a.kind)&&(b.kind=a.kind),b}(d);b.has(e.id)||(b.add(e.id),c.push(e))}return c}let m=[];try{m=await (0,f.uv)()}catch(a){console.log("Could not fetch custom models")}let n={};try{n=await (0,f.OM)()}catch(a){console.log("Could not fetch model aliases")}let o={};try{o=await (0,i.vF)()}catch(a){console.log("Could not fetch disabled models")}let q=(a,b)=>Array.isArray(o[a])&&o[a].includes(b),r=new Map;for(let a of g)r.has(a.provider)||r.set(a.provider,a);let s=[],t=Object.fromEntries(Object.entries(d.Xg).map(([a,b])=>[b,a])),u=a=>{let b,{alias:c,modelId:d}=-1===(b=a.indexOf("/"))?{alias:"",modelId:a}:{alias:a.slice(0,b),modelId:a.slice(b+1)};return(0,p.nl)(t[c]||c,d)};for(let b of k){if(!G(b,a))continue;let c={id:b.name,object:"model",owned_by:"combo"};if("webSearch"===b.kind||"webFetch"===b.kind)c.kind=b.kind;else{let{contextWindow:a,maxOutput:d}=function(a,b){let c={contextWindow:void 0,maxOutput:void 0};if(!Array.isArray(a))return c;for(let d of a){if("string"!=typeof d||""===d.trim())continue;let a=b(d)||{};for(let b of["contextWindow","maxOutput"]){let d=a[b];Number.isFinite(d)&&!(d<=0)&&(c[b]=void 0===c[b]?d:Math.min(c[b],d))}}return c}(b.models,u);Number.isFinite(a)&&(c.context_length=a),Number.isFinite(d)&&(c.max_completion_tokens=d)}s.push(c)}if(0===g.length){let b=Object.fromEntries(Object.entries(d.Xg).map(([a,b])=>[b,a])),c=new Set;if(!j)for(let a of x.A)(!0===a.noAuth||a.transport?.noAuth===!0)&&c.add(a.id);for(let[e,f]of Object.entries(d.vq)){let d=b[e]||e;if(F(d,a)&&(j||c.has(d)))for(let b of f)a.includes(D(b))&&(q(e,b.id)||s.push({id:`${e}/${b.id}`,object:"model",owned_by:e}))}for(let b of m){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&&s.push({id:`${c}/${d}`,object:"model",owned_by:c})}}else for(let[b,f]of r.entries()){if(!F(b,a))continue;let g=d.Xg[b]||b,h=(f?.providerSpecificData?.prefix||(0,e.wG)(b)||g).trim(),i=d.vq[g]||[],j=f?.providerSpecificData?.enabledModels,k=Array.isArray(j)&&j.length>0,l=(0,e.mq)(b)||(0,e.gb)(b),o=new Map(i.map(a=>[a.id,D(a)])),r=new Map,t=new Map,u=k?Array.from(new Set(j.filter(a=>"string"==typeof a&&""!==a.trim()))):i.map(a=>a.id);l&&0===u.length&&!c&&(u=await E(f));let v=A[b];if(v&&!k)try{let a=await v(f);a?.models?.length&&(u=a.models.map(a=>a.id),r=new Map(a.models.filter(a=>a?.id).map(a=>[a.id,D(a)])),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}`)}let w=u.map(a=>a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${g}/`)?a.slice(g.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim()),x=new Map;for(let c of Array.from(new Set([...w,...m.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===g||f===h||f===b}).map(a=>{let b=String(a.id).trim();return b&&x.set(b,(0,d.CP)(a)||"llm"),b}).filter(a=>""!==a),...Object.values(n||{}).filter(a=>"string"==typeof a&&!!a.includes("/")&&(a.startsWith(`${h}/`)||a.startsWith(`${g}/`)||a.startsWith(`${b}/`))).map(a=>a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${g}/`)?a.slice(g.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim())]))){let d=x.get(c),e=r.get(c),f=d||e||o.get(c)||function(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"}(c),i="imageToText"===f&&a.includes("llm");if(!a.includes(f)&&!i||q(h,c)||q(g,c))continue;let j={id:`${h}/${c}`,object:"model",owned_by:h},k=t.get(c)||(0,p.a0)(d||e)||("llm"===f?(0,p.nl)(b,c):null);if(k&&(j.capabilities=k),"llm"===f||i){let a=k?.contextWindow,d=k?.maxOutput;if(!Number.isFinite(a)||!Number.isFinite(d)){let e=(0,p.nl)(b,c);Number.isFinite(a)||(a=e.contextWindow),Number.isFinite(d)||(d=e.maxOutput)}Number.isFinite(a)&&(j.context_length=a),Number.isFinite(d)&&(j.max_completion_tokens=d)}s.push(j)}let y=e.AI_PROVIDERS[b];a.includes("webSearch")&&y?.searchConfig&&s.push({id:`${h}/search`,object:"model",kind:"webSearch",owned_by:h}),a.includes("webFetch")&&y?.fetchConfig&&s.push({id:`${h}/fetch`,object:"model",kind:"webFetch",owned_by:h})}let v=[],w=new Set;for(let a of s)!a?.id||w.has(a.id)||(w.add(a.id),v.push(a));if(a.includes("llm")){let b=new Set;for(let a of g){let c=a.provider,f=d.Xg[c]||c,g=(a?.providerSpecificData?.prefix||(0,e.wG)(c)||f).trim();b.add(g),b.add(f),b.add(c)}for(let c of m){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||q(g,h))continue;let i=`${g}/${h}`;if(w.has(i))continue;w.add(i);let j={id:i,object:"model",owned_by:g},k=(0,p.nl)(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),v.push(j)}for(let a of(await (0,h.Y)())){if(!a?.id)continue;let b=String(a.id).trim();if(!b||q("oc",b))continue;let c=`oc/${b}`;if(w.has(c))continue;w.add(c);let d={id:c,object:"model",owned_by:"oc"},e=(0,p.nl)("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),v.push(d)}}let y=b.apiKey,z=y?.allowedModels;return Array.isArray(z)&&0!==z.length?v.filter(a=>z.includes(a.id)):v}async function I(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function J(a){try{let b=a?.headers?.get(B)==="1",c=await L(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 H(["llm"],{skipDynamicFetch:b,apiKey:c.key});return Response.json({object:"list",data:d},{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 K(a){let b=(0,g.Tr)(a);if(!b)return{present:!1,key:null};let c=await (0,f.y7)(b),d=c?.expiresAt&&new Date(c.expiresAt).getTime()<=Date.now();return{present:!0,key:c?.isActive&&!d?c:null}}async function L(a){let b=await (0,f.mt)(),c=await K(a);return b.requireApiKey&&!c.key||c.present&&!c.key?{error:!0}:{key:c.key}}},7866:(a,b,c)=>{c.d(b,{w$:()=>e});let d=c(39006).rE||"0.0.0";function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.startsWith("workos:")?b:`workos:${b}`:""}(a))?`Bearer ${c}`:"",g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`9Router/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"9router","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return f&&(g.Authorization=f),g}},16655:(a,b,c)=>{c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(5129)},26588:(a,b,c)=>{c.d(b,{FD:()=>l});var d=c(55511),e=c(73496),f=c(39141),g=c(29790),h=c(33026);let i=new Map;function j(a,b){let c=a.get(b)?.[0]?.value;return c&&"number"!=typeof c?Buffer.from(c).toString("utf8"):""}async function k(a,b){var c;let d,i=a?.accessToken,k=a?.providerSpecificData?.machineId,l=(d=f.sr.cursor,d?.agentEndpoint&&d?.modelsEndpoint?`${d.agentEndpoint.replace(/\/$/,"")}${d.modelsEndpoint}`:null);if(!i||!k||!l)return null;let m={...(0,g.JA)(i,k,a?.providerSpecificData?.ghostMode!==!1),accept:"application/proto","content-type":"application/proto"};delete m["connect-accept-encoding"],delete m["connect-protocol-version"];let n=await (c=new Uint8Array,new Promise((a,d)=>{let f=new URL(l),g=e.connect(`https://${f.host}`),h=[],i={},j=!1,k=a=>(...b)=>{if(!j){j=!0,clearTimeout(n);try{g.close()}catch{}a(...b)}},n=setTimeout(k(()=>{d(Error("Cursor GetUsableModels timed out"))}),1e4);g.on("error",k(d));let o=g.request({":method":"POST",":path":f.pathname,":authority":f.host,":scheme":"https",...m});if(o.on("response",a=>{i=a}),o.on("data",a=>{h.push(a)}),o.on("end",k(()=>{a({status:Number(i[":status"]||0),body:Buffer.concat(h)})})),o.on("error",k(d)),b){let a=k(()=>d(Error("Request aborted")));b.aborted?a():b.addEventListener("abort",a,{once:!0})}o.end(c&&c.length?Buffer.from(c):void 0)}));if(200!==n.status){let a=Error(`Cursor GetUsableModels returned ${n.status}`);throw a.status=n.status,a}return function(a){let b=(0,h.Y8)(a),c=new Set,d=[];for(let a of b.get(1)||[]){if(!a?.value||"number"==typeof a.value)continue;let b=(0,h.Y8)(a.value),e=j(b,1).trim();if(!e||c.has(e))continue;c.add(e);let f=(j(b,4)||j(b,5)||j(b,3)||e).trim();d.push({id:e,name:f})}return d}(new Uint8Array(n.body))}async function l(a,b={}){let c;if(!a?.accessToken||!a?.providerSpecificData?.machineId)return b.log?.debug?.("CURSOR_MODELS","No Cursor access token or machine ID; skipping live fetch"),null;let e=(c=[a?.providerSpecificData?.machineId,a?.accessToken].filter(Boolean).join(":"))?d.createHash("sha256").update(`cursor:${c}`).digest("hex"):"cursor-anonymous",f=Date.now();if(!b.forceRefresh){let a=i.get(e);if(a?.expiresAt>f)return{models:a.models}}try{let c=await k(a,b.signal);if(!c?.length)return null;return i.set(e,{expiresAt:f+3e5,models:c}),{models:c}}catch(a){return b.log?.warn?.("CURSOR_MODELS",`Live model fetch failed: ${a?.message||a}`),null}}},39006:a=>{a.exports={rE:"0.5.99"}},49934:(a,b,c)=>{c.d(b,{w9:()=>u,xK:()=>f,zn:()=>r}),c(77598);var d=c(89843);let e="https://cloud.zed.dev",f={expiredToken:"x-zed-expired-token",outdatedToken:"x-zed-outdated-token",clientSupportsStatus:"x-zed-client-supports-status-messages",clientSupportsStreamEnded:"x-zed-client-supports-stream-ended-request-completion-status",serverSupportsStatus:"x-zed-server-supports-status-messages",clientSupportsXai:"x-zed-client-supports-x-ai",systemId:"x-zed-system-id"},g=new Map,h=new Map,i=new Map;function j(a,b,c,d){var e;let f=(e=a?.[b],String(e||d).replace(/\/+$/,""));return`${f}${c}`}function k(a){let b=(a?.providerSpecificData||{}).userId||a?.userId,c=a?.accessToken||a?.apiKey;if(!b||!c)throw Error("Zed credential is missing userId or accessToken");return`${b} ${c}`}function l(a){return String(a?.providerSpecificData?.systemId||a?.systemId||"")}async function m(a,b){let c=await (0,d.proxyAwareFetch)(a,b),e=await c.text(),f=null;if(e)try{f=JSON.parse(e)}catch{f={raw:e}}if(!c.ok){let a=Error(String(f?.message||f?.error?.message||f?.error||e||`HTTP ${c.status}`));throw a.status=c.status,a.body=f,a}return f}async function n(a,b={}){let c=b.config||{},d={Accept:"application/json",Authorization:k(a)},g=l(a);return g&&(d[f.systemId]=g),m(j(c,"cloudBaseUrl","/client/users/me",e),{method:"GET",headers:d,signal:b.signal??void 0})}function o(a){if(!a)return"";if("string"==typeof a)return a;if("object"==typeof a&&null!==a){if("string"==typeof a[0])return a[0];if("string"==typeof a.id)return a.id}return String(a)}function p(a,b=null){let c=a?.providerSpecificData||{},d=o(c.organizationId||c.defaultOrganizationId);if(d)return d;let e=o(b?.default_organization_id||b?.defaultOrganizationId);if(e)return e;let f=b?.organizations||[],g=f.find(a=>a?.is_personal)||f[0];return o(g?.id)}async function q(a,b={}){var c;let d,h,i=b.config||{},o=b.organizationId||p(a);if(!o){let c=await n(a,b);o=p(a,c)}if(!o)throw Error("No Zed organization selected");let r=(c=o,d=(a?.providerSpecificData||{}).userId||a?.userId||"unknown",h=a?.accessToken||a?.apiKey||"",`${d}:${c||"default"}:${h.slice(-16)}`),s=g.get(r);if(!b.forceRefresh&&s&&s.expiresAt>Date.now())return s.token;let t={"Content-Type":"application/json",Accept:"application/json",Authorization:k(a)},u=l(a);u&&(t[f.systemId]=u);let v=await m(j(i,"cloudBaseUrl","/client/llm_tokens",e),{method:"POST",headers:t,body:JSON.stringify({organization_id:o}),signal:b.signal??void 0}),w="string"==typeof v?.token?v.token:v?.token?.[0]||v?.token?.value;if(!w)throw Error("Zed did not return an LLM token");return g.set(r,{token:w,expiresAt:Date.now()+3e6}),w}async function r(a,b,c={}){var e;let g=j(c.config||{},"llmBaseUrl",b,"https://cloud.zed.dev"),h=async b=>{let e=await q(a,{...c,forceRefresh:b});return(0,d.proxyAwareFetch)(g,{...c.fetchOptions,headers:{...c.fetchOptions?.headers||{},Authorization:`Bearer ${e}`},signal:c.signal??void 0})},i=await h(!1);return e=i,(e?.status===401||e?.headers?.has?.(f.expiredToken)||e?.headers?.has?.(f.outdatedToken))&&(i=await h(!0)),i}function s(a){if(!a)return"";if("string"==typeof a)return a;if("object"==typeof a&&null!==a){if("string"==typeof a[0])return a[0];if("string"==typeof a.id)return a.id}return String(a)}function t(a){let b=s(a?.id);return b?{id:b,name:a.display_name||a.displayName||b,provider:a.provider,isLatest:!!a.is_latest,contextLength:a.max_token_count??a.maxTokenCount,contextLengthInMaxMode:a.max_token_count_in_max_mode??a.maxTokenCountInMaxMode,maxOutputTokens:a.max_output_tokens??a.maxOutputTokens,supportsTools:!!a.supports_tools,supportsImages:!!a.supports_images,supportsThinking:!!a.supports_thinking,supportsDisablingThinking:!!a.supports_disabling_thinking,supportsFastMode:!!a.supports_fast_mode,supportsServerSideCompaction:!!a.supports_server_side_compaction,supportedEffortLevels:a.supported_effort_levels??a.supportedEffortLevels??[],supportsStreamingTools:!!a.supports_streaming_tools,supportsParallelToolCalls:!!a.supports_parallel_tool_calls,isDisabled:!!a.is_disabled,disabledReason:a.disabled_reason??null}:null}async function u(a,b={}){let c,d,e;if(!a?.accessToken)return null;let g=(d=(c=a?.providerSpecificData||{}).organizationId||c.defaultOrganizationId||"default",e=a?.accessToken||a?.apiKey||"",`${c.userId||"unknown"}:${d}:${e.slice(-16)}`),j=h.get(g);if(!b.forceRefresh&&j&&j.expiresAt>Date.now())return j;let k=i.get(g);if(k&&!b.forceRefresh)return k;let l=(async()=>{let c=await r(a,"/models",{...b,fetchOptions:{method:"GET",headers:{Accept:"application/json",[f.clientSupportsXai]:"true"}}});if(!c.ok){let a=await c.text().catch(()=>"");throw Error(`Zed models failed: ${c.status} ${a}`)}let d=await c.json(),e=Array.isArray(d?.models)?d.models:[],i=e.map(t).filter(Boolean).filter(a=>!a.isDisabled),j=new Map;for(let a of e){let b=s(a?.id);b&&j.set(b,a)}let k={expiresAt:Date.now()+36e5,models:i,rawModels:e,rawById:j,defaultModel:s(d?.default_model??d?.defaultModel),defaultFastModel:s(d?.default_fast_model??d?.defaultFastModel),recommendedModels:(d?.recommended_models||d?.recommendedModels||[]).map(s).filter(Boolean)};return h.set(g,k),k})();i.set(g,l);try{return await l}finally{i.get(g)===l&&i.delete(g)}}},63123:(a,b,c)=>{c.d(b,{M:()=>h});var d=c(13247),e=c(18129),f=c(89843);let g=`${d.Nr}/models`;async function h(a,b={}){let{fetchFn:c=f.proxyAwareFetch,log:i=console,proxyOptions:j=null,onCredentialsRefreshed:k}=b,l=a?.accessToken;if(!l)return{models:[],warning:"Grok CLI access token is missing."};let m=b=>c(g,{method:"GET",headers:function(a,b={}){let c={Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":d.fZ,"x-xai-token-auth":"xai-grok-cli","x-grok-client-version":d.uG,"x-grok-client-identifier":d.rK,"x-grok-client-mode":"headless"},e=b?.email,f=b?.userId||b?.principalId;return e&&(c["x-email"]=e),f&&(c["x-userid"]=f),c}(b,a?.providerSpecificData)},j);try{let b=await m(l);if((401===b.status||403===b.status)&&a?.refreshToken){let c=await (0,e.Vq)("grok-cli",a,i,j);if(c?.accessToken){l=c.accessToken;try{await k?.(c)}catch(a){i?.warn?.("Grok CLI credential persistence failed",a)}b=await m(l)}}if(!b.ok){let a=await b.text().catch(()=>"");return{models:[],warning:`Grok CLI model discovery failed (${b.status})${a?`: ${a.slice(0,160)}`:""}`}}let c=function(a){let b,c=new Set,e=[];for(let[f,g]of(b=Array.isArray(a)?a:a?.data??a?.models??a?.results??[],Array.isArray(b)?b.map(a=>[null,a]):b&&"object"==typeof b?Object.entries(b):[])){let a="string"==typeof g?{id:g}:g;if(!a||"object"!=typeof a||Array.isArray(a))continue;let b=String(a.id??a.model_id??a.modelId??a.model??a.slug??f??a.name??"").trim();if(!b||c.has(b))continue;c.add(b);let h={...a,id:b,name:a.display_name??a.displayName??a.name??b},i=Number(a.context_length??a.contextLength??a.context_window??a.contextWindow),j=Number(a.max_output_tokens??a.maxOutputTokens);Number.isFinite(i)&&i>0&&(h.contextLength=i),Number.isFinite(j)&&j>0&&(h.maxOutputTokens=j),b===d.to&&(h.contextLength||=5e5,h.maxOutputTokens||=64e3),e.push(h)}return e}(await b.json());return c.length?{models:c}:{models:[],warning:"Grok CLI returned no selectable models."}}catch(a){return{models:[],warning:`Grok CLI model discovery failed: ${a.message}`}}}},68001:(a,b,c)=>{c.d(b,{S:()=>f});var d=c(38071);let e=["big-pickle"],f={"openrouter-free":a=>a.filter(a=>a.pricing?.prompt==="0"&&a.pricing?.completion==="0"&&a.context_length>=2e5).map(a=>({id:a.id,name:a.name,contextLength:a.context_length})).sort((a,b)=>b.contextLength-a.contextLength),"opencode-free":a=>a.filter(a=>a.id?.endsWith("-free")||e.includes(a.id)).map(a=>({id:a.id,name:a.id})),"mimo-free":a=>(Array.isArray(a)?a:[]).filter(a=>a.id?.startsWith("mimo")||a.name?.toLowerCase().includes("mimo")).map(a=>({id:a.id,name:a.name||a.id})),"nous-free":d.pD}},99471:(a,b,c)=>{c.d(b,{Y:()=>k,w:()=>j});var d=c(68001);let e=null,f=0,g=null;async function h(){let a=new AbortController,b=setTimeout(()=>a.abort(),5e3);try{let b=await fetch("https://opencode.ai/zen/v1/models",{signal:a.signal});if(!b.ok)return e||[];let c=await b.json(),g=c.data??c.models??c,h=d.S["opencode-free"](Array.isArray(g)?g:[]);return e=h,f=Date.now(),h}catch{return e||[]}finally{clearTimeout(b)}}async function i(){if(e&&Date.now()-f<6e5)return e;if(!g){g=h();try{return await g}finally{g=null}}return g}async function j(a){let b=(await i()).find(b=>b&&b.id===a);return b?{provider:"opencode",model:b.id}:"big-pickle"===a||String(a).endsWith("-free")?{provider:"opencode",model:a}:null}async function k(){return await i()}}};
|
|
1
|
+
"use strict";exports.id=476,exports.ids=[476],exports.modules={476:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>J,OPTIONS:()=>I,buildModelsList:()=>H,fetchCompatibleModelIds:()=>E,getModelListPolicy:()=>L});var d=c(81329),e=c(40615),f=c(89718),g=c(23433),h=c(99471),i=c(16655),j=c(58569),k=c(86925),l=c(9155),m=c(89843),n=c(28730),o=c(85640),p=c(11847);let q=new Map;async function r(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),1e4);try{let d=await (0,m.proxyAwareFetch)("https://api.githubcopilot.com/models",{method:"GET",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json","Copilot-Integration-Id":"vscode-chat","editor-version":`vscode/${n.x0.VSCODE_VERSION}`,"editor-plugin-version":`copilot-chat/${n.x0.COPILOT_CHAT_VERSION}`,"user-agent":n.x0.USER_AGENT,"x-github-api-version":n.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 s(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=q.get(e);if(a&&a.expiresAt>f)return{models:a.models}}try{c=await r(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,o.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 r(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,c=[];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,p.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?(q.set(e,{expiresAt:f+3e5,models:g}),{models:g}):null}var t=c(7866);async function u(a){let b=!!a?.apiKey,c=b?a.apiKey:a?.accessToken;if(!c)return null;let d=new AbortController,e=setTimeout(()=>d.abort(),5e3);try{let a=b?{Accept:"application/json",Authorization:`Bearer ${c}`}:(0,t.w$)(c,{Accept:"application/json"}),e=await fetch("https://api.cline.bot/api/v1/models",{method:"GET",headers:a,signal:d.signal});if(!e.ok)return null;let f=await e.json(),g=Array.isArray(f)?f:f?.data;if(!Array.isArray(g))return null;let h=g.filter(a=>"string"==typeof a?.id&&a.id.startsWith("cline-pass/")).map(a=>({id:a.id,name:a.name||a.id}));return h.length?{models:h}:null}catch{return null}finally{clearTimeout(e)}}var v=c(63123),w=c(26588);c(49934);var x=c(32892),y=c(67828),z=c(39326);let A={kiro:async a=>{let b=await (0,j.cW)({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},qoder:async a=>{let b=await (0,l.EV)({accessToken:a.accessToken,refreshToken:a.refreshToken,email:a.email,displayName:a.displayName,providerSpecificData:a.providerSpecificData||{}});return b?.models?.length?{models:b.models.map(a=>({id:a.id,name:a.name}))}:null},kimchi:async a=>{let b=await (0,k.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 s({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console,onCredentialsRefreshed:async b=>{await (0,y.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 u({accessToken:a.accessToken,apiKey:a.apiKey});return b?.models?.length?{models:b.models}:null},"grok-cli":async a=>{let b=await (0,z.B)(a.providerSpecificData||{}),c=await (0,v.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,y.vN)(a.id,{...b,existingProviderSpecificData:a.providerSpecificData||{}})}});return c?.models?.length?{models:c.models}:null},cursor:async a=>{let b=await (0,w.FD)({accessToken:a.accessToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null}},B="x-9r-internal-models-fetch",C={image:"image",tts:"tts",embedding:"embedding",stt:"stt",imageToText:"imageToText",video:"video"};function D(a){let b=a?.kind||a?.type;return b&&C[b]||"llm"}async function E(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,e.mq)(a.provider))d.Authorization=`Bearer ${a.apiKey}`;else{if(!(0,e.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 f;let a=new AbortController,b=setTimeout(()=>a.abort(),5e3),e=await fetch(c,{method:"GET",headers:{...d,[B]:"1"},cache:"no-store",signal:a.signal});if(clearTimeout(b),!e.ok)return[];let g=(f=await e.json(),Array.isArray(f)?f:f?.data||f?.models||f?.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 F(a,b){let c=e.AI_PROVIDERS[a],d=Array.isArray(c?.serviceKinds)&&c.serviceKinds.length>0?c.serviceKinds:["llm"];return b.some(a=>d.includes(a))}function G(a,b){let c=a?.kind||"llm";return b.includes(c)}async function H(a,b={}){let c=!0===b.skipDynamicFetch,g=[],j=!1;try{g=(g=await (0,f.getProviderConnections)()).filter(a=>!1!==a.isActive)}catch(a){j=!0,console.log("Could not fetch providers, returning all models")}let k=[];try{k=await (0,f.Uv)()}catch(a){console.log("Could not fetch combos")}let l={};try{l=await (0,f.mt)()}catch(a){console.log("Could not fetch settings, using defaults")}if(l.exposeComboOnly){let b=new Set,c=[];for(let d of k){if(!G(d,a))continue;let e=function(a){let b={id:a.name,object:"model",owned_by:"combo"};return("webSearch"===a.kind||"webFetch"===a.kind)&&(b.kind=a.kind),b}(d);b.has(e.id)||(b.add(e.id),c.push(e))}return c}let m=[];try{m=await (0,f.uv)()}catch(a){console.log("Could not fetch custom models")}let n={};try{n=await (0,f.OM)()}catch(a){console.log("Could not fetch model aliases")}let o={};try{o=await (0,i.vF)()}catch(a){console.log("Could not fetch disabled models")}let q=(a,b)=>Array.isArray(o[a])&&o[a].includes(b),r=new Map;for(let a of g)r.has(a.provider)||r.set(a.provider,a);let s=[],t=Object.fromEntries(Object.entries(d.Xg).map(([a,b])=>[b,a])),u=a=>{let b,{alias:c,modelId:d}=-1===(b=a.indexOf("/"))?{alias:"",modelId:a}:{alias:a.slice(0,b),modelId:a.slice(b+1)};return(0,p.getCapabilitiesForModel)(t[c]||c,d)};for(let b of k){if(!G(b,a))continue;let c={id:b.name,object:"model",owned_by:"combo"};if("webSearch"===b.kind||"webFetch"===b.kind)c.kind=b.kind;else{let{contextWindow:a,maxOutput:d}=function(a,b){let c={contextWindow:void 0,maxOutput:void 0};if(!Array.isArray(a))return c;for(let d of a){if("string"!=typeof d||""===d.trim())continue;let a=b(d)||{};for(let b of["contextWindow","maxOutput"]){let d=a[b];Number.isFinite(d)&&!(d<=0)&&(c[b]=void 0===c[b]?d:Math.min(c[b],d))}}return c}(b.models,u);Number.isFinite(a)&&(c.context_length=a),Number.isFinite(d)&&(c.max_completion_tokens=d)}s.push(c)}if(0===g.length){let b=Object.fromEntries(Object.entries(d.Xg).map(([a,b])=>[b,a])),c=new Set;if(!j)for(let a of x.default)(!0===a.noAuth||a.transport?.noAuth===!0)&&c.add(a.id);for(let[e,f]of Object.entries(d.vq)){let d=b[e]||e;if(F(d,a)&&(j||c.has(d)))for(let b of f)a.includes(D(b))&&(q(e,b.id)||s.push({id:`${e}/${b.id}`,object:"model",owned_by:e}))}for(let b of m){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&&s.push({id:`${c}/${d}`,object:"model",owned_by:c})}}else for(let[b,f]of r.entries()){if(!F(b,a))continue;let g=d.Xg[b]||b,h=(f?.providerSpecificData?.prefix||(0,e.wG)(b)||g).trim(),i=d.vq[g]||[],j=f?.providerSpecificData?.enabledModels,k=Array.isArray(j)&&j.length>0,l=(0,e.mq)(b)||(0,e.gb)(b),o=new Map(i.map(a=>[a.id,D(a)])),r=new Map,t=new Map,u=k?Array.from(new Set(j.filter(a=>"string"==typeof a&&""!==a.trim()))):i.map(a=>a.id);l&&0===u.length&&!c&&(u=await E(f));let v=A[b];if(v&&!k)try{let a=await v(f);a?.models?.length&&(u=a.models.map(a=>a.id),r=new Map(a.models.filter(a=>a?.id).map(a=>[a.id,D(a)])),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}`)}let w=u.map(a=>a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${g}/`)?a.slice(g.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim()),x=new Map;for(let c of Array.from(new Set([...w,...m.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===g||f===h||f===b}).map(a=>{let b=String(a.id).trim();return b&&x.set(b,(0,d.CP)(a)||"llm"),b}).filter(a=>""!==a),...Object.values(n||{}).filter(a=>"string"==typeof a&&!!a.includes("/")&&(a.startsWith(`${h}/`)||a.startsWith(`${g}/`)||a.startsWith(`${b}/`))).map(a=>a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${g}/`)?a.slice(g.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim())]))){let d=x.get(c),e=r.get(c),f=d||e||o.get(c)||function(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"}(c),i="imageToText"===f&&a.includes("llm");if(!a.includes(f)&&!i||q(h,c)||q(g,c))continue;let j={id:`${h}/${c}`,object:"model",owned_by:h},k=t.get(c)||(0,p.capabilitiesFromServiceKind)(d||e)||("llm"===f?(0,p.getCapabilitiesForModel)(b,c):null);if(k&&(j.capabilities=k),"llm"===f||i){let a=k?.contextWindow,d=k?.maxOutput;if(!Number.isFinite(a)||!Number.isFinite(d)){let e=(0,p.getCapabilitiesForModel)(b,c);Number.isFinite(a)||(a=e.contextWindow),Number.isFinite(d)||(d=e.maxOutput)}Number.isFinite(a)&&(j.context_length=a),Number.isFinite(d)&&(j.max_completion_tokens=d)}s.push(j)}let y=e.AI_PROVIDERS[b];a.includes("webSearch")&&y?.searchConfig&&s.push({id:`${h}/search`,object:"model",kind:"webSearch",owned_by:h}),a.includes("webFetch")&&y?.fetchConfig&&s.push({id:`${h}/fetch`,object:"model",kind:"webFetch",owned_by:h})}let v=[],w=new Set;for(let a of s)!a?.id||w.has(a.id)||(w.add(a.id),v.push(a));if(a.includes("llm")){let b=new Set;for(let a of g){let c=a.provider,f=d.Xg[c]||c,g=(a?.providerSpecificData?.prefix||(0,e.wG)(c)||f).trim();b.add(g),b.add(f),b.add(c)}for(let c of m){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||q(g,h))continue;let i=`${g}/${h}`;if(w.has(i))continue;w.add(i);let j={id:i,object:"model",owned_by:g},k=(0,p.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),v.push(j)}for(let a of(await (0,h.Y)())){if(!a?.id)continue;let b=String(a.id).trim();if(!b||q("oc",b))continue;let c=`oc/${b}`;if(w.has(c))continue;w.add(c);let d={id:c,object:"model",owned_by:"oc"},e=(0,p.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),v.push(d)}}let y=b.apiKey,z=y?.allowedModels;return Array.isArray(z)&&0!==z.length?v.filter(a=>z.includes(a.id)):v}async function I(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function J(a){try{let b=a?.headers?.get(B)==="1",c=await L(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 H(["llm"],{skipDynamicFetch:b,apiKey:c.key});return Response.json({object:"list",data:d},{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 K(a){let b=(0,g.Tr)(a);if(!b)return{present:!1,key:null};let c=await (0,f.y7)(b),d=c?.expiresAt&&new Date(c.expiresAt).getTime()<=Date.now();return{present:!0,key:c?.isActive&&!d?c:null}}async function L(a){let b=await (0,f.mt)(),c=await K(a);return b.requireApiKey&&!c.key||c.present&&!c.key?{error:!0}:{key:c.key}}},7866:(a,b,c)=>{c.d(b,{w$:()=>e});let d=c(39006).rE||"0.0.0";function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.startsWith("workos:")?b:`workos:${b}`:""}(a))?`Bearer ${c}`:"",g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`9Router/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"9router","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return f&&(g.Authorization=f),g}},16655:(a,b,c)=>{c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(5129)},26588:(a,b,c)=>{c.d(b,{FD:()=>l});var d=c(55511),e=c(73496),f=c(39141),g=c(29790),h=c(33026);let i=new Map;function j(a,b){let c=a.get(b)?.[0]?.value;return c&&"number"!=typeof c?Buffer.from(c).toString("utf8"):""}async function k(a,b){var c;let d,i=a?.accessToken,k=a?.providerSpecificData?.machineId,l=(d=f.sr.cursor,d?.agentEndpoint&&d?.modelsEndpoint?`${d.agentEndpoint.replace(/\/$/,"")}${d.modelsEndpoint}`:null);if(!i||!k||!l)return null;let m={...(0,g.JA)(i,k,a?.providerSpecificData?.ghostMode!==!1),accept:"application/proto","content-type":"application/proto"};delete m["connect-accept-encoding"],delete m["connect-protocol-version"];let n=await (c=new Uint8Array,new Promise((a,d)=>{let f=new URL(l),g=e.connect(`https://${f.host}`),h=[],i={},j=!1,k=a=>(...b)=>{if(!j){j=!0,clearTimeout(n);try{g.close()}catch{}a(...b)}},n=setTimeout(k(()=>{d(Error("Cursor GetUsableModels timed out"))}),1e4);g.on("error",k(d));let o=g.request({":method":"POST",":path":f.pathname,":authority":f.host,":scheme":"https",...m});if(o.on("response",a=>{i=a}),o.on("data",a=>{h.push(a)}),o.on("end",k(()=>{a({status:Number(i[":status"]||0),body:Buffer.concat(h)})})),o.on("error",k(d)),b){let a=k(()=>d(Error("Request aborted")));b.aborted?a():b.addEventListener("abort",a,{once:!0})}o.end(c&&c.length?Buffer.from(c):void 0)}));if(200!==n.status){let a=Error(`Cursor GetUsableModels returned ${n.status}`);throw a.status=n.status,a}return function(a){let b=(0,h.Y8)(a),c=new Set,d=[];for(let a of b.get(1)||[]){if(!a?.value||"number"==typeof a.value)continue;let b=(0,h.Y8)(a.value),e=j(b,1).trim();if(!e||c.has(e))continue;c.add(e);let f=(j(b,4)||j(b,5)||j(b,3)||e).trim();d.push({id:e,name:f})}return d}(new Uint8Array(n.body))}async function l(a,b={}){let c;if(!a?.accessToken||!a?.providerSpecificData?.machineId)return b.log?.debug?.("CURSOR_MODELS","No Cursor access token or machine ID; skipping live fetch"),null;let e=(c=[a?.providerSpecificData?.machineId,a?.accessToken].filter(Boolean).join(":"))?d.createHash("sha256").update(`cursor:${c}`).digest("hex"):"cursor-anonymous",f=Date.now();if(!b.forceRefresh){let a=i.get(e);if(a?.expiresAt>f)return{models:a.models}}try{let c=await k(a,b.signal);if(!c?.length)return null;return i.set(e,{expiresAt:f+3e5,models:c}),{models:c}}catch(a){return b.log?.warn?.("CURSOR_MODELS",`Live model fetch failed: ${a?.message||a}`),null}}},39006:a=>{a.exports={rE:"0.6.1"}},63123:(a,b,c)=>{c.d(b,{M:()=>h});var d=c(13247),e=c(18129),f=c(89843);let g=`${d.Nr}/models`;async function h(a,b={}){let{fetchFn:c=f.proxyAwareFetch,log:i=console,proxyOptions:j=null,onCredentialsRefreshed:k}=b,l=a?.accessToken;if(!l)return{models:[],warning:"Grok CLI access token is missing."};let m=b=>c(g,{method:"GET",headers:function(a,b={}){let c={Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":d.fZ,"x-xai-token-auth":"xai-grok-cli","x-grok-client-version":d.uG,"x-grok-client-identifier":d.rK,"x-grok-client-mode":"headless"},e=b?.email,f=b?.userId||b?.principalId;return e&&(c["x-email"]=e),f&&(c["x-userid"]=f),c}(b,a?.providerSpecificData)},j);try{let b=await m(l);if((401===b.status||403===b.status)&&a?.refreshToken){let c=await (0,e.Vq)("grok-cli",a,i,j);if(c?.accessToken){l=c.accessToken;try{await k?.(c)}catch(a){i?.warn?.("Grok CLI credential persistence failed",a)}b=await m(l)}}if(!b.ok){let a=await b.text().catch(()=>"");return{models:[],warning:`Grok CLI model discovery failed (${b.status})${a?`: ${a.slice(0,160)}`:""}`}}let c=function(a){let b,c=new Set,e=[];for(let[f,g]of(b=Array.isArray(a)?a:a?.data??a?.models??a?.results??[],Array.isArray(b)?b.map(a=>[null,a]):b&&"object"==typeof b?Object.entries(b):[])){let a="string"==typeof g?{id:g}:g;if(!a||"object"!=typeof a||Array.isArray(a))continue;let b=String(a.id??a.model_id??a.modelId??a.model??a.slug??f??a.name??"").trim();if(!b||c.has(b))continue;c.add(b);let h={...a,id:b,name:a.display_name??a.displayName??a.name??b},i=Number(a.context_length??a.contextLength??a.context_window??a.contextWindow),j=Number(a.max_output_tokens??a.maxOutputTokens);Number.isFinite(i)&&i>0&&(h.contextLength=i),Number.isFinite(j)&&j>0&&(h.maxOutputTokens=j),b===d.to&&(h.contextLength||=5e5,h.maxOutputTokens||=64e3),e.push(h)}return e}(await b.json());return c.length?{models:c}:{models:[],warning:"Grok CLI returned no selectable models."}}catch(a){return{models:[],warning:`Grok CLI model discovery failed: ${a.message}`}}}},68001:(a,b,c)=>{c.d(b,{S:()=>g});var d=c(38071);let e=["big-pickle"],f=new Set(["deepseek-v4-flash-free"]),g={"openrouter-free":a=>a.filter(a=>a.pricing?.prompt==="0"&&a.pricing?.completion==="0"&&a.context_length>=2e5).map(a=>({id:a.id,name:a.name,contextLength:a.context_length})).sort((a,b)=>b.contextLength-a.contextLength),"opencode-free":a=>a.filter(a=>(a.id?.endsWith("-free")||e.includes(a.id))&&!f.has(a.id)).map(a=>({id:a.id,name:a.id})),"mimo-free":a=>(Array.isArray(a)?a:[]).filter(a=>a.id?.startsWith("mimo")||a.name?.toLowerCase().includes("mimo")).map(a=>({id:a.id,name:a.name||a.id})),"nous-free":d.pD}},99471:(a,b,c)=>{c.d(b,{Y:()=>k,w:()=>j});var d=c(68001);let e=null,f=0,g=null;async function h(){let a=new AbortController,b=setTimeout(()=>a.abort(),5e3);try{let b=await fetch("https://opencode.ai/zen/v1/models",{signal:a.signal});if(!b.ok)return e||[];let c=await b.json(),g=c.data??c.models??c,h=d.S["opencode-free"](Array.isArray(g)?g:[]);return e=h,f=Date.now(),h}catch{return e||[]}finally{clearTimeout(b)}}async function i(){if(e&&Date.now()-f<6e5)return e;if(!g){g=h();try{return await g}finally{g=null}}return g}async function j(a){let b=(await i()).find(b=>b&&b.id===a);return b?{provider:"opencode",model:b.id}:"big-pickle"===a||String(a).endsWith("-free")?{provider:"opencode",model:a}:null}async function k(){return await i()}}};
|