@rabbi696/ezrouter 0.6.14 → 0.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +5 -4
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/react-loadable-manifest.json +1 -1
- package/app/.next-cli-build/routes-manifest.json +8 -0
- 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/mcp-gateway/keys/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- 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 +18 -18
- 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/codewhale-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/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-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +5 -5
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/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/forge-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +8 -8
- 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 +3 -3
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +8 -8
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js +2 -2
- 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/mcp-gateway/instances/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/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 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -0
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route_client-reference-manifest.js +1 -0
- 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 +3 -3
- 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 +14 -14
- 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 +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +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 +2 -2
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/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 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/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 +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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/mcp-gateway/keys.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +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 +7 -7
- 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 +6 -6
- 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 +6 -6
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- 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 +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +6 -6
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- 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 +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +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 +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- 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 +5 -4
- package/app/.next-cli-build/server/chunks/1253.js +1 -1
- package/app/.next-cli-build/server/chunks/1522.js +1 -1
- package/app/.next-cli-build/server/chunks/1733.js +1 -1
- package/app/.next-cli-build/server/chunks/1847.js +1 -1
- package/app/.next-cli-build/server/chunks/2269.js +1 -1
- package/app/.next-cli-build/server/chunks/2348.js +1 -1
- 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/3216.js +1 -1
- package/app/.next-cli-build/server/chunks/3245.js +1 -1
- package/app/.next-cli-build/server/chunks/3252.js +1 -1
- package/app/.next-cli-build/server/chunks/3267.js +1 -1
- package/app/.next-cli-build/server/chunks/3275.js +1 -0
- package/app/.next-cli-build/server/chunks/3547.js +1 -1
- package/app/.next-cli-build/server/chunks/3583.js +2 -2
- package/app/.next-cli-build/server/chunks/369.js +12 -12
- package/app/.next-cli-build/server/chunks/3794.js +1 -1
- package/app/.next-cli-build/server/chunks/3886.js +1 -1
- package/app/.next-cli-build/server/chunks/3977.js +1 -1
- 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/4378.js +3 -3
- package/app/.next-cli-build/server/chunks/4646.js +1 -1
- package/app/.next-cli-build/server/chunks/4704.js +4 -4
- package/app/.next-cli-build/server/chunks/4768.js +1 -0
- package/app/.next-cli-build/server/chunks/4807.js +1 -1
- package/app/.next-cli-build/server/chunks/4811.js +1 -1
- package/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/app/.next-cli-build/server/chunks/4878.js +1 -1
- package/app/.next-cli-build/server/chunks/4882.js +1 -1
- package/app/.next-cli-build/server/chunks/5130.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6420.js +1 -0
- package/app/.next-cli-build/server/chunks/6707.js +1 -1
- package/app/.next-cli-build/server/chunks/7218.js +1 -0
- package/app/.next-cli-build/server/chunks/73.js +1 -1
- package/app/.next-cli-build/server/chunks/7594.js +16 -16
- package/app/.next-cli-build/server/chunks/7663.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/7775.js +1 -1
- package/app/.next-cli-build/server/chunks/7828.js +1 -1
- package/app/.next-cli-build/server/chunks/8129.js +1 -1
- package/app/.next-cli-build/server/chunks/823.js +1 -1
- package/app/.next-cli-build/server/chunks/8231.js +1 -1
- package/app/.next-cli-build/server/chunks/8243.js +3 -3
- package/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/app/.next-cli-build/server/chunks/8421.js +1 -1
- package/app/.next-cli-build/server/chunks/8450.js +254 -0
- package/app/.next-cli-build/server/chunks/8459.js +1 -1
- package/app/.next-cli-build/server/chunks/8644.js +1 -1
- package/app/.next-cli-build/server/chunks/8772.js +1 -0
- package/app/.next-cli-build/server/chunks/8976.js +1 -1
- package/app/.next-cli-build/server/chunks/9026.js +17 -17
- package/app/.next-cli-build/server/chunks/9143.js +1 -1
- package/app/.next-cli-build/server/chunks/9303.js +1 -1
- package/app/.next-cli-build/server/chunks/9485.js +1 -1
- package/app/.next-cli-build/server/chunks/9843.js +1 -1
- package/app/.next-cli-build/server/chunks/9865.js +1 -1
- 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-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +4 -4
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/{1321-c3d563d8c76a4dac.js → 1321-043afc56cba448b8.js} +1 -1
- package/app/.next-cli-build/static/chunks/5497-8766958582f95dc7.js +17 -0
- package/app/.next-cli-build/static/chunks/{6808-42c5cc62f0d2662b.js → 6808-93e2068e37a63896.js} +1 -1
- package/app/.next-cli-build/static/chunks/8105-9dfc2c5ffef6e778.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-fa195b4f7348e2d6.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-a31d9ca05cc3d528.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/page-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/enabled/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/{webpack-1f254f36f822e458.js → webpack-ac71f993743961ad.js} +1 -1
- package/app/.next-cli-build/static/css/76821f2171e21e80.css +1 -0
- package/app/CHANGELOG.md +46 -37
- package/app/package.json +1 -1
- package/app/public/CHANGELOG.md +46 -37
- package/app/public/providers/muse.png +0 -0
- package/app/public/providers/tinyfish.png +0 -0
- package/app/public/providers/v1m.png +0 -0
- package/cli.js +25 -14
- package/hooks/postinstall.js +4 -0
- package/node_modules/confbox/LICENSE +27 -0
- package/node_modules/confbox/README.md +191 -0
- package/node_modules/confbox/dist/THIRD-PARTY-LICENSES.md +171 -0
- package/node_modules/confbox/dist/_chunks/_format.d.mts +25 -0
- package/node_modules/confbox/dist/_chunks/_format.mjs +1 -0
- package/node_modules/confbox/dist/_chunks/json.mjs +1 -0
- package/node_modules/confbox/dist/_chunks/libs/detect-indent.mjs +1 -0
- package/node_modules/confbox/dist/_chunks/libs/ini.mjs +3 -0
- package/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +33 -0
- package/node_modules/confbox/dist/_chunks/libs/json5.mjs +14 -0
- package/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +7 -0
- package/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +249 -0
- package/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +1 -0
- package/node_modules/confbox/dist/index.d.mts +34 -0
- package/node_modules/confbox/dist/index.mjs +1 -0
- package/node_modules/confbox/dist/ini.d.mts +62 -0
- package/node_modules/confbox/dist/ini.mjs +1 -0
- package/node_modules/confbox/dist/json5.d.mts +59 -0
- package/node_modules/confbox/dist/json5.mjs +1 -0
- package/node_modules/confbox/dist/jsonc.d.mts +41 -0
- package/node_modules/confbox/dist/jsonc.mjs +1 -0
- package/node_modules/confbox/dist/toml.d.mts +23 -0
- package/node_modules/confbox/dist/toml.mjs +1 -0
- package/node_modules/confbox/dist/yaml.d.mts +96 -0
- package/node_modules/confbox/dist/yaml.mjs +1 -0
- package/node_modules/confbox/package.json +67 -0
- package/package.json +5 -3
- package/src/cli/commands/connect.js +269 -0
- package/src/cli/commands/connectTools.js +338 -0
- package/src/cli/menus/providers.js +3 -2
- package/src/cli/tray/tray.js +11 -11
- package/src/cli/utils/modelSelector.js +1 -1
- package/app/.next-cli-build/server/chunks/2767.js +0 -1
- package/app/.next-cli-build/server/chunks/3960.js +0 -254
- package/app/.next-cli-build/server/chunks/4327.js +0 -1
- package/app/.next-cli-build/server/chunks/4722.js +0 -1
- package/app/.next-cli-build/server/chunks/7528.js +0 -1
- package/app/.next-cli-build/server/chunks/8670.js +0 -1
- package/app/.next-cli-build/server/chunks/8946.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-ffaf8dc7c7c8f95c.js +0 -17
- package/app/.next-cli-build/static/chunks/8105-1a9e02e4d5a17e44.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-cfa303b120846bf8.js +0 -27
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-6369f894b65720dd.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/enabled/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/css/14f3f7e420fa2785.css +0 -1
- /package/app/.next-cli-build/static/{BkbAW6wqVq3TFwhDZSKXi → zQapcWqcr7oLVi5jh7t01}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{BkbAW6wqVq3TFwhDZSKXi → zQapcWqcr7oLVi5jh7t01}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=7663,exports.ids=[7663],exports.modules={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.toLowerCase().startsWith("workos:")?b:/^eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/.test(b)?`workos:${b}`: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}},8730:(a,b,c)=>{c.d(b,{d:()=>f});var d=c(55511);let e="1.0.0";function f(a={}){let b=a.providerSpecificData||{},c=b.clientId||a.refreshToken||b.profileArn||a.apiKey||a.accessToken||"kiro-anonymous",g=(0,d.createHash)("sha256").update(String(c)).digest("hex"),h=`KiroIDE-0.10.32-${g}`;return{"User-Agent":`aws-sdk-js/${e} ua/2.1 os/windows#10.0.26200 lang/js md/nodejs#22.21.1 api/codewhispererruntime#${e} m/N,E ${h}`,"x-amz-user-agent":`aws-sdk-js/${e} ${h}`,"x-amzn-kiro-agent-mode":"vibe","x-amzn-codewhisperer-optout":"true"}}},39006:a=>{a.exports={rE:"0.6.
|
|
1
|
+
"use strict";exports.id=7663,exports.ids=[7663],exports.modules={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.toLowerCase().startsWith("workos:")?b:/^eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/.test(b)?`workos:${b}`: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}},8730:(a,b,c)=>{c.d(b,{d:()=>f});var d=c(55511);let e="1.0.0";function f(a={}){let b=a.providerSpecificData||{},c=b.clientId||a.refreshToken||b.profileArn||a.apiKey||a.accessToken||"kiro-anonymous",g=(0,d.createHash)("sha256").update(String(c)).digest("hex"),h=`KiroIDE-0.10.32-${g}`;return{"User-Agent":`aws-sdk-js/${e} ua/2.1 os/windows#10.0.26200 lang/js md/nodejs#22.21.1 api/codewhispererruntime#${e} m/N,E ${h}`,"x-amz-user-agent":`aws-sdk-js/${e} ${h}`,"x-amzn-kiro-agent-mode":"vibe","x-amzn-codewhisperer-optout":"true"}}},39006:a=>{a.exports={rE:"0.6.15"}},58569:(a,b,c)=>{c.d(b,{cW:()=>k});var d=c(94755),e=c(55511),f=c(85640),g=c(8730);let h="us-east-1",i=new Map;async function j(a,b){let c,e=a?.providerSpecificData?.profileArn||"",f=a?.providerSpecificData?.authMethod,i=e?function(a){if(!a||"string"!=typeof a)return h;let b=a.split(":");return b.length>=4&&b[3]?b[3]:h}(e):a?.providerSpecificData?.region||h,j=new URLSearchParams;j.set("origin","AI_EDITOR"),e&&j.set("profileArn",e);let k=`https://q.${i}.amazonaws.com/ListAvailableModels?${j.toString()}`,l={...(0,g.d)(a),"amz-sdk-request":"attempt=1; max=1","amz-sdk-invocation-id":(0,d.A)(),Accept:"application/json",Authorization:`Bearer ${a?.accessToken||""}`,..."api_key"===f?{TokenType:"API_KEY"}:{}},m=new AbortController,n=setTimeout(()=>m.abort("timeout"),3e4);b&&"function"==typeof b.addEventListener&&b.addEventListener("abort",()=>m.abort(b.reason));try{c=await fetch(k,{method:"GET",headers:l,signal:m.signal})}finally{clearTimeout(n)}if(!c.ok){let a=await c.text().catch(()=>""),b=Error(`Kiro ListAvailableModels ${c.status}: ${a||c.statusText}`);throw b.status=c.status,b.body=a,b}let o=await c.json();return Array.isArray(o?.models)?o.models:[]}async function k(a,b={}){let c,d,g;if(!a||!a.accessToken)return b.log?.debug?.("KIRO_MODELS","No accessToken; skipping live fetch"),null;let h=(g=(d=a?.providerSpecificData||{}).profileArn||d.clientId||a?.refreshToken||a?.accessToken||"anonymous",(0,e.createHash)("sha256").update(`kiro:${g}`).digest("hex")),l=Date.now();if(!b.forceRefresh){let a=i.get(h);if(a&&a.expiresAt>l)return{models:a.models,rawModels:a.rawModels}}try{c=await j(a,b.signal)}catch(d){if(!d||401!==d.status||!a.refreshToken)return b.log?.warn?.("KIRO_MODELS",`ListAvailableModels failed: ${d?.message||d}`),null;{b.log?.info?.("KIRO_MODELS","Got 401 from Kiro; refreshing token");let d=await (0,f.Ql)(a.refreshToken,a.providerSpecificData,b.log);if(!d?.accessToken)return b.log?.warn?.("KIRO_MODELS","Token refresh did not return accessToken"),null;{let e={...a,...d};if("function"==typeof b.onCredentialsRefreshed)try{await b.onCredentialsRefreshed(d)}catch(a){b.log?.warn?.("KIRO_MODELS",`onCredentialsRefreshed failed: ${a?.message||a}`)}try{c=await j(e,b.signal),a.accessToken=e.accessToken,e.refreshToken&&(a.refreshToken=e.refreshToken)}catch(a){return b.log?.warn?.("KIRO_MODELS",`Retry after refresh failed: ${a?.message||a}`),null}}}}let m=[];for(let a of c){if(!a||"object"!=typeof a)continue;let b=a.modelId||a.id;if(!b)continue;let c=function(a,b,c){let d=(a||b||"Kiro").trim(),e=Number(c);if(!Number.isFinite(e)||1e-9>Math.abs(e-1)||e<=0)return`Kiro ${d}`;let f=e.toFixed(1).replace(",",".");return`Kiro ${d} (${f}x credit)`}(a.modelName,b,a.rateMultiplier),d=Number(a?.tokenLimits?.maxInputTokens)||2e5,e=Number(a?.tokenLimits?.maxOutputTokens)||null;for(let f of function(a,b){let c,d=((c=a).endsWith("-agentic")&&(c=c.slice(0,-8)),c.endsWith("-thinking")&&(c=c.slice(0,-9)),c),e=b||`Kiro ${d}`,f=[{id:d,name:e,capabilities:{thinking:!1,agentic:!1}},{id:`${d}-thinking`,name:`${e} (Thinking)`,capabilities:{thinking:!0,agentic:!1}}];return"auto"!==d&&(f.push({id:`${d}-agentic`,name:`${e} (Agentic)`,capabilities:{thinking:!1,agentic:!0}}),f.push({id:`${d}-thinking-agentic`,name:`${e} (Thinking + Agentic)`,capabilities:{thinking:!0,agentic:!0}})),f}(b,c))m.push({...f,contextLength:d,...e?{maxOutputTokens:e}:{},rateMultiplier:Number.isFinite(Number(a.rateMultiplier))?Number(a.rateMultiplier):1,upstreamModelId:b,description:a.description||""})}return i.set(h,{expiresAt:l+3e5,models:m,rawModels:c}),{models:m,rawModels:c}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>C,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>I,S6:()=>s,SK:()=>F,Td:()=>A,Tx:()=>q,V1:()=>J,WN:()=>t,Ww:()=>K,YT:()=>n,ZL:()=>m,_0:()=>H,aV:()=>u,cD:()=>o,eD:()=>G,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>E,qp:()=>B,sA:()=>D,t3:()=>l,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"]};({...f.sr.qwen});let k={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let l={...f.sr["qoder-cn"]},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"]},C={...f.sr["codebuddy-intl"]},D={...f.sr.muse},E={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},F={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},G={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},H={...f.sr.glm},I={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},J={...f.sr["frontier-for-all"]},K=3e5}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=7716,exports.ids=[6958,7716],exports.modules={26958:(a,b,c)=>{c.d(b,{$i:()=>i,Ah:()=>h,Pg:()=>q,installCatalogSource:()=>r,l9:()=>g});var d=c(73024),e=c(76760),f=c(53859);let g=e.join(f.n,"model-catalog.json"),h=e.join(f.n,"model-catalog-raw.json"),i=2,j={models:{},providers:{}},k=j,l=-1;function m(a){return a?(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]:""}function n(){let a;try{a=d.statSync(g).mtimeMs}catch{return l=-1,k=j}if(a===l)return k;l=a;try{let a=JSON.parse(d.readFileSync(g,"utf8"));k={models:a?.models||{},providers:a?.providers||{}}}catch{k=j}return k}function o(a,b){return a&&n().models[`${a}:${m(b)}`]||null}function p(a,b){let c=a&&n().providers[a];return c&&(c[b]||c[m(b)])||null}function q(){l=-1}async function r(){let{setCatalogSource:a}=await Promise.all([c.e(1253),c.e(9303)]).then(c.bind(c,19303));a({getModalities:o,getLimits:p})}},53859:(a,b,c)=>{c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="ezrouter";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},57716:(a,b,c)=>{c.d(b,{startModelCatalogSync:()=>q});var d=c(73024),e=c.n(d),f=c(76760),g=c.n(f),h=c(26958);let i={image:"vision",pdf:"pdf",audio:"audioInput",video:"videoInput"},j={glm:"zai","glm-cn":"zhipuai",claude:"anthropic",gemini:"google",kimi:"moonshotai","kimi-cn":"moonshotai-cn",qwen:"alibaba","qwen-cn":"alibaba-cn",zhipu:"zhipuai",hunyuan:"tencent",doubao:"volcengine","cloudflare-ai":"cloudflare-workers-ai"},k={running:!1,lastSync:null,lastError:null,lastResult:null,etag:null,fileVersion:null},l=null;function m(a){return(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]}function n(a,b){e().mkdirSync(g().dirname(a),{recursive:!0}),e().writeFileSync(`${a}.tmp`,b,"utf8"),e().renameSync(`${a}.tmp`,a)}async function o(){let[{default:a},{getCapabilitiesForModel:b,setCatalogSource:d}]=await Promise.all([c.e(
|
|
1
|
+
"use strict";exports.id=7716,exports.ids=[6958,7716],exports.modules={26958:(a,b,c)=>{c.d(b,{$i:()=>i,Ah:()=>h,Pg:()=>q,installCatalogSource:()=>r,l9:()=>g});var d=c(73024),e=c(76760),f=c(53859);let g=e.join(f.n,"model-catalog.json"),h=e.join(f.n,"model-catalog-raw.json"),i=2,j={models:{},providers:{}},k=j,l=-1;function m(a){return a?(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]:""}function n(){let a;try{a=d.statSync(g).mtimeMs}catch{return l=-1,k=j}if(a===l)return k;l=a;try{let a=JSON.parse(d.readFileSync(g,"utf8"));k={models:a?.models||{},providers:a?.providers||{}}}catch{k=j}return k}function o(a,b){return a&&n().models[`${a}:${m(b)}`]||null}function p(a,b){let c=a&&n().providers[a];return c&&(c[b]||c[m(b)])||null}function q(){l=-1}async function r(){let{setCatalogSource:a}=await Promise.all([c.e(1253),c.e(9303)]).then(c.bind(c,19303));a({getModalities:o,getLimits:p})}},53859:(a,b,c)=>{c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="ezrouter";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},57716:(a,b,c)=>{c.d(b,{startModelCatalogSync:()=>q});var d=c(73024),e=c.n(d),f=c(76760),g=c.n(f),h=c(26958);let i={image:"vision",pdf:"pdf",audio:"audioInput",video:"videoInput"},j={github:"github-copilot",glm:"zai","glm-cn":"zhipuai",claude:"anthropic",gemini:"google",kimi:"moonshotai","kimi-cn":"moonshotai-cn",qwen:"alibaba","qwen-cn":"alibaba-cn",zhipu:"zhipuai",hunyuan:"tencent",doubao:"volcengine","cloudflare-ai":"cloudflare-workers-ai"},k={running:!1,lastSync:null,lastError:null,lastResult:null,etag:null,fileVersion:null},l=null;function m(a){return(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]}function n(a,b){e().mkdirSync(g().dirname(a),{recursive:!0}),e().writeFileSync(`${a}.tmp`,b,"utf8"),e().renameSync(`${a}.tmp`,a)}async function o(){let[{default:a},{getCapabilitiesForModel:b,setCatalogSource:d}]=await Promise.all([c.e(8772).then(c.bind(c,38772)),Promise.all([c.e(1253),c.e(9303)]).then(c.bind(c,19303))]);d(null);let e=[];for(let c of a)for(let a of c.models||[])e.push({provider:c.id,model:a.id,contextLength:a.contextLength,current:b(c.id,a.id)});return e}async function p(){if(k.running)return null;k.running=!0;try{let a,b={accept:"application/json"};k.etag&&k.fileVersion===h.$i&&(b["if-none-match"]=k.etag);let c=await fetch("https://models.dev/api.json",{headers:b,signal:AbortSignal.timeout(6e4)});if(304===c.status)a={status:"unchanged"};else if(c.ok){let b=await c.json(),d=c.headers.get("etag")||null,e=await o(),{models:f,providers:g}=function(a,b){let c=new Map;for(let{provider:a}of b){let b=j[a]||a,d=c.get(b);d||c.set(b,d=[]),d.includes(a)||d.push(a)}let d={},e={};for(let[b,f]of Object.entries(a)){let a=c.get(b)||[b],g={},h=new Set;for(let[c,d]of Object.entries(f?.models||{})){let f=m(c);if(g[f]=d,h.has(f))continue;h.add(f);let j={};for(let a of d?.modalities?.input||[]){let b=i[a];b&&(j[b]=!0)}if(Object.keys(j).length){for(let b of a)e[`${b}:${f}`]=j;a.includes(b)||(e[`${b}:${f}`]=j)}}d[b]=g}let f={};for(let{provider:c,model:e,contextLength:g,current:h}of b){let b=j[c],i=a[c]?c:b&&a[b]?b:null,k=i&&d[i]?.[m(e)];if(!k)continue;let l={},{context:n,output:o}=k.limit||{};n>0&&!g&&Math.abs(n-h.contextWindow)/h.contextWindow>.1&&(l.contextWindow=n),o>0&&Math.abs(o-h.maxOutput)/h.maxOutput>.1&&(l.maxOutput=o),Object.keys(l).length&&((f[c]||(f[c]={}))[e]=l)}return{models:e,providers:f}}(b,e),l=JSON.stringify({v:h.$i,etag:d,syncedAt:Date.now(),models:f,providers:g});n(h.l9,l),n(h.Ah,JSON.stringify(function(a){let b={};for(let[c,d]of Object.entries(a)){let a={};for(let[b,c]of Object.entries(d?.models||{}))a[b]={i:(c?.modalities?.input||[]).filter(a=>"text"!==a),c:c?.limit?.context,o:c?.limit?.output,r:c?.reasoning||void 0};b[c]=a}return b}(b))),k.etag=d,k.fileVersion=h.$i,(0,h.Pg)(),a={status:"updated",etag:d,bytes:Buffer.byteLength(l),models:Object.keys(f).length,providers:Object.keys(g).length},console.log(`[modelCatalog] ${a.models} models, ${a.providers} providers, ${(a.bytes/1024).toFixed(1)}KB`)}else throw Error(`HTTP ${c.status}`);return k.lastSync=Date.now(),k.lastError=null,k.lastResult=a,a}catch(a){return k.lastError=a?.message||String(a),console.log(`[modelCatalog] sync failed: ${k.lastError}`),null}finally{await (0,h.installCatalogSource)().catch(()=>{}),k.running=!1}}function q(){if(l||"off"===String(process.env.MODEL_CATALOG_SYNC||"").toLowerCase())return;try{let a=JSON.parse(e().readFileSync(h.l9,"utf8"));k.etag=a.etag||null,k.fileVersion=a.v||1,k.lastSync=e().statSync(h.l9).mtimeMs}catch{k.etag=null,k.fileVersion=null}let a=b=>{l=setTimeout(async()=>{a(await p()?864e5:18e5)},b),l.unref?.()};a(6e4)}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=7775,exports.ids=[7775],exports.modules={48595:(a,b,c)=>{c.d(b,{UY:()=>g,oc:()=>h});var d=c(90053),e=c(63995),f=c(78492);Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),Object.freeze(["gemini-live"]),d.rE;let g={maxLines:200,pollIntervalMs:1e3,streamTimeoutMs:5e3},h={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingInactiveSession:!0,inactiveMinPingIntervalMs:18e6,pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},63995:(a,b,c)=>{c.d(b,{Q2:()=>m});var d=c(
|
|
1
|
+
"use strict";exports.id=7775,exports.ids=[7775],exports.modules={48595:(a,b,c)=>{c.d(b,{UY:()=>g,oc:()=>h});var d=c(90053),e=c(63995),f=c(78492);Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),Object.freeze(["gemini-live"]),d.rE;let g={maxLines:200,pollIntervalMs:1e3,streamTimeoutMs:5e3},h={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingInactiveSession:!0,inactiveMinPingIntervalMs:18e6,pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},63995:(a,b,c)=>{c.d(b,{Q2:()=>m});var d=c(38772);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","systemoneConfig","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.fastMode?{fastMode:a.fastMode}:{},...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.apiKeyOptionalWith?{apiKeyOptionalWith:a.apiKeyOptionalWith}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m={...h,...i,...j,...k,...l};Object.values(m).reduce((a,b)=>(a[b.alias]=b.id,a),{}),Object.values(m).reduce((a,b)=>(a[b.id]=b.alias,a),{}),d.default.filter(a=>a.features?.usage).map(a=>a.id),d.default.filter(a=>a.features?.usageApikey).map(a=>a.id)},67775:(a,b,c)=>{c.d(b,{initConsoleLogCapture:()=>l});var d=c(94735),e=c(48595);let f=["log","info","warn","error","debug"];global._consoleLogBufferState||(global._consoleLogBufferState={logs:[],revision:0,patched:!1,originals:{},emitter:new d.EventEmitter},global._consoleLogBufferState.emitter.setMaxListeners(50));let g=global._consoleLogBufferState;function h(){if(g.flushTimer=null,!g.pendingLines.length)return;let a=g.pendingLines.splice(0,g.pendingLines.length);g.emitter.emit("lines",a)}g.emitter||(g.emitter=new d.EventEmitter,g.emitter.setMaxListeners(50)),g.pendingLines||(g.pendingLines=[]),g.flushTimer||(g.flushTimer=null),Number.isSafeInteger(g.revision)||(g.revision=0);let i=/\x1b\[[0-9;]*m/g;function j(a){return a.replace(i,"")}function k(a){if("string"==typeof a)return j(a);if(a instanceof Error)return j(a.stack||a.message||String(a));try{return j(JSON.stringify(a))}catch{return j(String(a))}}function l(){if(!g.patched){for(let a of f)g.originals[a]=console[a],console[a]=(...b)=>{!function(a){g.logs.push(a),g.revision+=1;let b=e.UY.maxLines;g.logs.length>b&&(g.logs=g.logs.slice(-b)),g.pendingLines.push(a),g.pendingLines.length>=50?(g.flushTimer&&(clearTimeout(g.flushTimer),g.flushTimer=null),h()):g.flushTimer||(g.flushTimer=setTimeout(h,100),g.flushTimer?.unref?.())}(b.map(k).join(" ")),g.originals[a](...b)};g.patched=!0}}},78492:(a,b,c)=>{c.d(b,{SM:()=>k,kt:()=>o,ux:()=>n,vq:()=>f.vq});var d=c(38421),e=c(38772),f=c(15251),g=c(97915),h=c(62397),i=c(68531);let j=a=>!a||["oc","opencode","ocg","opencode-go","ocz","opencode-zen"].includes(a);function k(a){return f.vq[a]||[]}let l=new Set(["kr","kiro"]);function m(a,b,c){if(!a)return;let d="string"==typeof b?b.replace(/\([^()]+\)\s*$/,"").trim():b,e=a.find(a=>a.id===b||a.id===d);if(e)return e;if(!l.has(c))return;let f=(0,g.Kq)(d);if(f!==d)return a.find(a=>a.id===f)}function n(a,b){if(j(a)&&(0,h.nh)(b))return i.h.OPENAI_RESPONSES;let c=f.vq[a];if(!c)return null;let d=m(c,b,a);return d?(0,g.gr)(d):j(a)&&(0,h.i8)(b)?.targetFormat||null}function o(a,b){let c="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,d=c?c[0]:"",e=d?b.slice(0,c.index).trim():b,g=m(f.vq[a],e,a),i=g?.upstreamModelId||g?.id;if(i){let a=i.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?i.slice(0,a.index).trim():i)+(d||b)}return"cx"===a&&"string"==typeof e&&e.endsWith(h.d5)?e.slice(0,-h.d5.length)+d:e+d}let p=Object.fromEntries(e.default.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias]));Object.fromEntries(Object.keys(d.xq).map(a=>[a,p[a]||a]))},90053:a=>{a.exports={rE:"0.6.15"}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=7828,exports.ids=[7828],exports.modules={15186:(a,b,c)=>{c.d(b,{Ou:()=>i,eG:()=>h});var d=c(28730);let e=new Map,f=new Map,g=null;async function h(a,b,c="gemini-cli"){if(!a||!b)return null;let d=e.get(a);if(d&&Date.now()-d.fetchedAt<36e5)return d.projectId;if(f.has(a))return f.get(a).promise;let g=new AbortController,i=(async()=>{try{let d=await j(b,g.signal,c);if(d)return e.set(a,{projectId:d,fetchedAt:Date.now()}),d;return console.warn("[ProjectId] could not fetch projectId for connection",a.slice(0,8)),null}catch(a){return console.warn(`[ProjectId] Error fetching project ID: ${a.message}`),null}finally{f.delete(a)}})();return f.set(a,{promise:i,controller:g,startedAt:Date.now()}),i}function i(a){e.delete(a)}async function j(a,b,c){let e=d.nZ[c]||d.nZ["gemini-cli"],f="antigravity"===c?d.j5:d.Ic,g=await fetch(e.loadCodeAssist,{method:"POST",headers:{...f,Authorization:`Bearer ${a}`},body:JSON.stringify({metadata:d.zv}),signal:b});if(!g.ok){let a=await g.text().catch(()=>"");throw Error(`loadCodeAssist failed: HTTP ${g.status} ${a.slice(0,200)}`)}let h=await g.json(),i=function(a){if(!a)return null;if("string"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.trim();if(b)return b}if(a.cloudaicompanionProject&&"object"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.id;if("string"==typeof b&&b.trim())return b.trim()}return null}(h);if(i)return i;let j="legacy-tier";if(Array.isArray(h.allowedTiers)){for(let a of h.allowedTiers)if(a&&"object"==typeof a&&!0===a.isDefault&&a.id&&"string"==typeof a.id&&a.id.trim()){j=a.id.trim();break}}return k(a,j,b,e,c)}async function k(a,b,c,e,f){console.log(`[ProjectId] Onboarding user with tier: ${b}`);let g={tierId:b,metadata:d.zv},h="antigravity"===f?d.j5:d.Ic,i=Number(process.env.ONBOARD_MAX_ATTEMPTS)||2,j=Number(process.env.ONBOARD_RETRY_DELAY_MS)||12e3;for(let b=1;b<=i&&!c?.aborted;b++){let d=new AbortController,f=setTimeout(()=>d.abort(),3e4),k=()=>d.abort();c?.addEventListener("abort",k);try{let c=await fetch(e.onboardUser,{method:"POST",headers:{...h,Authorization:`Bearer ${a}`},body:JSON.stringify(g),signal:d.signal});if(clearTimeout(f),!c.ok){let a=await c.text().catch(()=>"");throw Error(`onboardUser HTTP ${c.status}: ${a.slice(0,200)}`)}let k=await c.json();if(!0===k.done){let a=function(a){if(!a?.response)return null;let b=a.response.cloudaicompanionProject;if("string"==typeof b){let a=b.trim();if(a)return a}if(b&&"object"==typeof b){let a=b.id;if("string"==typeof a&&a.trim())return a.trim()}return null}(k);if(a)return console.log(`[ProjectId] Successfully onboarded, project ID: ${a}`),a;return console.warn("[ProjectId] onboardUser finished without a project ID (account not provisioned)"),null}let l=Math.floor(5e3*Math.random());console.log(`[ProjectId] Onboard attempt ${b}/${i}: not done yet, waiting...`),await new Promise(a=>setTimeout(a,j+l))}catch(d){if(clearTimeout(f),"AbortError"===d.name){if(console.warn(`[ProjectId] onboardUser attempt ${b} aborted (timeout or connection removed)`),c?.aborted)return null;continue}if(b===i)return console.warn(`[ProjectId] onboardUser failed after ${i} attempts: ${d.message}`),null;let a=Math.floor(5e3*Math.random());console.warn(`[ProjectId] onboardUser attempt ${b} failed: ${d.message}, retrying...`),await new Promise(b=>setTimeout(b,j+a))}finally{clearTimeout(f),c?.removeEventListener("abort",k)}}return null}g=setInterval(()=>{try{let a=Date.now();for(let[b,c]of e)(!c||a-c.fetchedAt>=36e5)&&e.delete(b);for(let[b,c]of f){if(!c||"number"!=typeof c.startedAt){f.delete(b);continue}if(a-c.startedAt>12e4){try{c.controller.abort()}catch(a){}f.delete(b)}}}catch(a){console.warn("[ProjectId] cleanup sweep error:",a?.message??a)}},6e5),g?.unref?.()},67828:(a,b,c)=>{c.d(b,{I9:()=>j,Wm:()=>k,checkAndRefreshToken:()=>p,go:()=>l,vN:()=>o});var d=c(7803),e=c(89718),f=c(15186),g=c(85640),h=c(18129);let i=g.oD,j=(a,b,c)=>(0,g.I9)(a,b,c,d),k=a=>(0,g.Wm)(a,d),l=a=>(0,g.go)(a,d);function m(a){return new Date(Date.now()+1e3*a).toISOString()}function n(a){let b=(0,h.jR)(a);return null===b?null:new Date(b).toISOString()}async function o(a,b){try{let c={};if(b.accessToken&&(c.accessToken=b.accessToken),b.refreshToken&&(c.refreshToken=b.refreshToken),b.idToken&&(c.idToken=b.idToken),b.lastRefreshAt&&(c.lastRefreshAt=b.lastRefreshAt),b.expiresAt&&(c.expiresAt=b.expiresAt),b.expiresIn)c.expiresAt=m(b.expiresIn),c.expiresIn=b.expiresIn;else if(b.expiresAt){let a=n(b.expiresAt);a&&(c.expiresAt=a,c.expiresIn=Math.max(1,Math.floor((new Date(a).getTime()-Date.now())/1e3)))}if(b.providerSpecificData&&(c.providerSpecificData={...b.existingProviderSpecificData||{},...b.providerSpecificData}),b.refreshToken){let a=c.providerSpecificData||b.existingProviderSpecificData;a&&(c.providerSpecificData={...a,refreshToken:b.refreshToken})}(b.copilotToken||b.copilotTokenExpiresAt)&&(c.providerSpecificData={...c.providerSpecificData||b.existingProviderSpecificData||{},...b.copilotToken?{copilotToken:b.copilotToken}:{},...b.copilotTokenExpiresAt?{copilotTokenExpiresAt:b.copilotTokenExpiresAt}:{}}),b.projectId&&(c.projectId=b.projectId);let f=await (0,e.updateProviderConnection)(a,c);return d.info("TOKEN_REFRESH","Credentials updated in localDb",{connectionId:a,success:!!f}),!!f}catch(b){return d.error("TOKEN_REFRESH","Error updating credentials in localDb",{connectionId:a,error:b.message}),!1}}async function p(a,b,c={}){let
|
|
1
|
+
"use strict";exports.id=7828,exports.ids=[7828],exports.modules={15186:(a,b,c)=>{c.d(b,{Ou:()=>i,eG:()=>h});var d=c(28730);let e=new Map,f=new Map,g=null;async function h(a,b,c="gemini-cli"){if(!a||!b)return null;let d=e.get(a);if(d&&Date.now()-d.fetchedAt<36e5)return d.projectId;if(f.has(a))return f.get(a).promise;let g=new AbortController,i=(async()=>{try{let d=await j(b,g.signal,c);if(d)return e.set(a,{projectId:d,fetchedAt:Date.now()}),d;return console.warn("[ProjectId] could not fetch projectId for connection",a.slice(0,8)),null}catch(a){return console.warn(`[ProjectId] Error fetching project ID: ${a.message}`),null}finally{f.delete(a)}})();return f.set(a,{promise:i,controller:g,startedAt:Date.now()}),i}function i(a){e.delete(a)}async function j(a,b,c){let e=d.nZ[c]||d.nZ["gemini-cli"],f="antigravity"===c?d.j5:d.Ic,g=await fetch(e.loadCodeAssist,{method:"POST",headers:{...f,Authorization:`Bearer ${a}`},body:JSON.stringify({metadata:d.zv}),signal:b});if(!g.ok){let a=await g.text().catch(()=>"");throw Error(`loadCodeAssist failed: HTTP ${g.status} ${a.slice(0,200)}`)}let h=await g.json(),i=function(a){if(!a)return null;if("string"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.trim();if(b)return b}if(a.cloudaicompanionProject&&"object"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.id;if("string"==typeof b&&b.trim())return b.trim()}return null}(h);if(i)return i;let j="legacy-tier";if(Array.isArray(h.allowedTiers)){for(let a of h.allowedTiers)if(a&&"object"==typeof a&&!0===a.isDefault&&a.id&&"string"==typeof a.id&&a.id.trim()){j=a.id.trim();break}}return k(a,j,b,e,c)}async function k(a,b,c,e,f){console.log(`[ProjectId] Onboarding user with tier: ${b}`);let g={tierId:b,metadata:d.zv},h="antigravity"===f?d.j5:d.Ic,i=Number(process.env.ONBOARD_MAX_ATTEMPTS)||2,j=Number(process.env.ONBOARD_RETRY_DELAY_MS)||12e3;for(let b=1;b<=i&&!c?.aborted;b++){let d=new AbortController,f=setTimeout(()=>d.abort(),3e4),k=()=>d.abort();c?.addEventListener("abort",k);try{let c=await fetch(e.onboardUser,{method:"POST",headers:{...h,Authorization:`Bearer ${a}`},body:JSON.stringify(g),signal:d.signal});if(clearTimeout(f),!c.ok){let a=await c.text().catch(()=>"");throw Error(`onboardUser HTTP ${c.status}: ${a.slice(0,200)}`)}let k=await c.json();if(!0===k.done){let a=function(a){if(!a?.response)return null;let b=a.response.cloudaicompanionProject;if("string"==typeof b){let a=b.trim();if(a)return a}if(b&&"object"==typeof b){let a=b.id;if("string"==typeof a&&a.trim())return a.trim()}return null}(k);if(a)return console.log(`[ProjectId] Successfully onboarded, project ID: ${a}`),a;return console.warn("[ProjectId] onboardUser finished without a project ID (account not provisioned)"),null}let l=Math.floor(5e3*Math.random());console.log(`[ProjectId] Onboard attempt ${b}/${i}: not done yet, waiting...`),await new Promise(a=>setTimeout(a,j+l))}catch(d){if(clearTimeout(f),"AbortError"===d.name){if(console.warn(`[ProjectId] onboardUser attempt ${b} aborted (timeout or connection removed)`),c?.aborted)return null;continue}if(b===i)return console.warn(`[ProjectId] onboardUser failed after ${i} attempts: ${d.message}`),null;let a=Math.floor(5e3*Math.random());console.warn(`[ProjectId] onboardUser attempt ${b} failed: ${d.message}, retrying...`),await new Promise(b=>setTimeout(b,j+a))}finally{clearTimeout(f),c?.removeEventListener("abort",k)}}return null}g=setInterval(()=>{try{let a=Date.now();for(let[b,c]of e)(!c||a-c.fetchedAt>=36e5)&&e.delete(b);for(let[b,c]of f){if(!c||"number"!=typeof c.startedAt){f.delete(b);continue}if(a-c.startedAt>12e4){try{c.controller.abort()}catch(a){}f.delete(b)}}}catch(a){console.warn("[ProjectId] cleanup sweep error:",a?.message??a)}},6e5),g?.unref?.()},67828:(a,b,c)=>{c.d(b,{I9:()=>j,Wm:()=>k,checkAndRefreshToken:()=>p,go:()=>l,vN:()=>o});var d=c(7803),e=c(89718),f=c(15186),g=c(85640),h=c(18129);let i=g.oD,j=(a,b,c)=>(0,g.I9)(a,b,c,d),k=a=>(0,g.Wm)(a,d),l=a=>(0,g.go)(a,d);function m(a){return new Date(Date.now()+1e3*a).toISOString()}function n(a){let b=(0,h.jR)(a);return null===b?null:new Date(b).toISOString()}async function o(a,b){try{let c={};if(b.accessToken&&(c.accessToken=b.accessToken),b.refreshToken&&(c.refreshToken=b.refreshToken),b.idToken&&(c.idToken=b.idToken),b.lastRefreshAt&&(c.lastRefreshAt=b.lastRefreshAt),b.expiresAt&&(c.expiresAt=b.expiresAt),b.expiresIn)c.expiresAt=m(b.expiresIn),c.expiresIn=b.expiresIn;else if(b.expiresAt){let a=n(b.expiresAt);a&&(c.expiresAt=a,c.expiresIn=Math.max(1,Math.floor((new Date(a).getTime()-Date.now())/1e3)))}if(b.providerSpecificData&&(c.providerSpecificData={...b.existingProviderSpecificData||{},...b.providerSpecificData}),b.refreshToken){let a=c.providerSpecificData||b.existingProviderSpecificData;a&&(c.providerSpecificData={...a,refreshToken:b.refreshToken})}(b.copilotToken||b.copilotTokenExpiresAt)&&(c.providerSpecificData={...c.providerSpecificData||b.existingProviderSpecificData||{},...b.copilotToken?{copilotToken:b.copilotToken}:{},...b.copilotTokenExpiresAt?{copilotTokenExpiresAt:b.copilotTokenExpiresAt}:{}}),b.projectId&&(c.projectId=b.projectId);let f=await (0,e.updateProviderConnection)(a,c);return d.info("TOKEN_REFRESH","Credentials updated in localDb",{connectionId:a,success:!!f}),!!f}catch(b){return d.error("TOKEN_REFRESH","Error updating credentials in localDb",{connectionId:a,error:b.message}),!1}}async function p(a,b,c={}){let j=c&&"function"==typeof c.needsRefresh?c:null,k=c&&"object"==typeof c&&!j?c:{},l={...b};if(!l.connectionId&&l.id&&(l.connectionId=l.id),l.connectionId){let a=await (0,e.Mc)(l.connectionId).catch(()=>null),b=Date.parse(a?.lastRefreshAt||""),c=Date.parse(l.lastRefreshAt||"");Number.isFinite(b)&&(!Number.isFinite(c)||b>c)&&a.refreshToken&&a.refreshToken!==l.refreshToken&&(l={...l,refreshToken:a.refreshToken,accessToken:a.accessToken||l.accessToken,expiresAt:a.expiresAt||a.tokenExpiresAt||l.expiresAt,lastRefreshAt:a.lastRefreshAt||l.lastRefreshAt})}if(k?.force===!0||(j?j.needsRefresh(l):(0,h.fp)(a,l))){let b=l.expiresAt?new Date(l.expiresAt).getTime():null,c=b?b-Date.now():null,e=(0,g.Og)(a);d.info("TOKEN_REFRESH","Refreshing provider credentials proactively",{provider:a,expiresIn:null===c?null:Math.round(c/1e3),refreshLeadMs:e,lastRefreshAt:l.lastRefreshAt||null});let i=await (0,h.Vq)(a,l,d);if(i?.accessToken||i?.apiKey||i?.copilotToken){let b={...i,existingProviderSpecificData:l.providerSpecificData};await o(l.connectionId,b),(l={...l,...i,expiresAt:i.expiresIn?m(i.expiresIn):n(i.expiresAt)||i.expiresAt||l.expiresAt,providerSpecificData:i.providerSpecificData?{...l.providerSpecificData,...i.providerSpecificData}:l.providerSpecificData}).projectId||function(a,b,c){("antigravity"===a||"gemini-cli"===a)&&b&&c&&((0,f.Ou)(b),"true"===process.env.EAGER_PROJECT_ID_REFRESH&&(0,f.eG)(b,c,a).then(a=>{a&&o(b,{projectId:a}).catch(a=>{d.debug("TOKEN_REFRESH","Failed to persist refreshed projectId",{connectionId:b,error:a?.message??a})})}).catch(a=>{d.debug("TOKEN_REFRESH","Failed to fetch projectId after token refresh",{connectionId:b,error:a?.message??a})}))}(a,l.connectionId,l.accessToken)}}if("github"===a){let b=l.providerSpecificData?.copilotToken,c=(l.providerSpecificData?.copilotTokenExpiresAt?1e3*l.providerSpecificData.copilotTokenExpiresAt:0)-Date.now();if(!b||c<i){let e;d.info("TOKEN_REFRESH","Copilot token expiring soon or missing, refreshing proactively",{provider:a,expiresIn:b?Math.round(c/1e3):"missing"});let f=await (e=l.accessToken,(0,g.jR)(e,d));if(f){let a={...l.providerSpecificData,copilotToken:f.token,copilotTokenExpiresAt:f.expiresAt};await o(l.connectionId,{providerSpecificData:a}),l.providerSpecificData=a,l.copilotToken=f.token}}}return l}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=8129,exports.ids=[8129],exports.modules={18080:(a,b,c)=>{c.d(b,{Xj:()=>j,uo:()=>k});var d=c(92990);let e=new Set(["login.microsoftonline.com","login.microsoft.com","login.windows.net"]);function f(a){return"string"==typeof a?a.trim():""}function g(a){let b,c=f(a);if(!c)throw Error("token_endpoint is required");try{b=new URL(c)}catch{throw Error("token_endpoint must be a valid URL")}if("https:"!==b.protocol)throw Error("token_endpoint must use https");let d=b.hostname.toLowerCase();if(!e.has(d))throw Error("token_endpoint must be a Microsoft login endpoint");return b.toString()}function h(a){return Array.isArray(a)?a.map(f).filter(Boolean).join(" "):f(a)}function i(a){try{if(!a||"string"!=typeof a)return null;let b=a.split(".");if(3!==b.length)return null;let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=(4-c.length%4)%4;return JSON.parse(Buffer.from(`${c}${"=".repeat(d)}`,"base64").toString("utf8"))}catch{return null}}function j(a){let b=a;if("string"==typeof b)try{b=JSON.parse(b)}catch{throw Error("CLIProxyAPI auth JSON is invalid")}if(!b||"object"!=typeof b)throw Error("CLIProxyAPI auth JSON is required");let c=f(b.auth_method||b.authMethod);if(c&&"external_idp"!==c)throw Error("Only external_idp Kiro auth is supported by this importer");let e=f(b.access_token||b.accessToken),j=f(b.refresh_token||b.refreshToken),k=f(b.client_id||b.clientId),l=g(b.token_endpoint||b.tokenEndpoint),m=f(b.profile_arn||b.profileArn),n=f(b.region)||"us-east-1",o=h(b.scopes||b.scope),p=(0,d.S6)(n);if(!e)throw Error("access_token is required");if(!j)throw Error("refresh_token is required");if(!k)throw Error("client_id is required");if(!o)throw Error("scopes is required");if(!m)throw Error("profile_arn is required");let q=i(e),r=b.email||q?.email||q?.preferred_username||q?.upn||q?.sub||null;return{accessToken:e,refreshToken:j,expiresAt:function(a){let b=a.expired||a.expires_at||a.expiresAt;if(b){let a=new Date(b).getTime();if(Number.isFinite(a))return new Date(a).toISOString()}let c=Number(a.expires_in||a.expiresIn||0);if(Number.isFinite(c)&&c>0)return new Date(Date.now()+1e3*c).toISOString();let d=i(a.access_token||a.accessToken);return d?.exp?new Date(1e3*d.exp).toISOString():new Date(Date.now()+36e5).toISOString()}(b),email:r,providerSpecificData:{profileArn:m,region:p,authMethod:"external_idp",provider:"CLIProxyAPI",clientId:k,tokenEndpoint:l,scope:o}}}function k(a,b={}){let c=f(b.clientId||b.client_id),d=g(b.tokenEndpoint||b.token_endpoint),e=h(b.scope||b.scopes);if(!a)throw Error("refresh token is required");if(!c)throw Error("clientId is required for external_idp refresh");if(!e)throw Error("scope is required for external_idp refresh");return{tokenEndpoint:d,body:new URLSearchParams({grant_type:"refresh_token",client_id:c,refresh_token:a,scope:e}),providerSpecificData:{...b,authMethod:"external_idp",clientId:c,tokenEndpoint:d,scope:e}}}},18129:(a,b,c)=>{c.d(b,{Dz:()=>j,Vq:()=>m,fp:()=>k,jR:()=>i});var d=c(85640),e=c(39141);let f=e.sr.codex?.maxRefreshAgeMs,g=new Map,h=/^\d+(\.\d+)?$/;function i(a){if(null==a||""===a)return null;if("number"==typeof a||"string"==typeof a&&h.test(a.trim())){let b=Number(a);return Number.isFinite(b)?b<1e12?1e3*b:b:null}let b=new Date(a).getTime();return Number.isFinite(b)?b:null}function j(a,b=Date.now()){let c=i(a?.expiresAt??a?.tokenExpiresAt);if(null!==c)return c;let d=a?.expiresIn;return"number"==typeof d&&d>0?b+1e3*d:null}function k(a,b,c=Date.now()){if(!b)return!1;let g=j(b);if(null!==g&&g-c<(0,d.Og)(a))return!0;let h=e.sr[a]?.maxRefreshAgeMs;return!!(h&&b.refreshToken&&function(a,b=Date.now(),c=f){let d=i(a?.lastRefreshAt??a?.lastRefresh??a?.providerSpecificData?.lastRefreshAt);return!d||b-d>=c}(b,c,h))}async function l(a,b,c){let d,e=(d=b?.connectionId||b?.id||b?.email||b?.name||b?.refreshToken?.slice?.(-16)||"default",`${a}:${d}`),f=g.get(e);if(f)return f;let h=Promise.resolve().then(c).finally(()=>{g.delete(e)});return g.set(e,h),h}async function m(a,b,c){return b?l(a,b,async()=>{let f=await (0,d.$B)(a,b,c);return function(a,b,c,f=Date.now()){var g,h;if(!c)return null;if((0,d.jT)(c))return c;let i={},j=new Date(f).toISOString();c.accessToken&&(i.accessToken=c.accessToken),c.apiKey&&(i.apiKey=c.apiKey),c.token&&(i.token=c.token);let k=c.refreshToken??b?.refreshToken;k&&(i.refreshToken=k);let l=c.idToken??b?.idToken;return l&&(i.idToken=l),c.expiresIn?(i.expiresIn=c.expiresIn,i.expiresAt=function(a,b=Date.now()){return a?new Date(b+1e3*a).toISOString():null}(c.expiresIn,f)):c.expiresAt&&(i.expiresAt=c.expiresAt),c.projectId&&(i.projectId=c.projectId),c.providerSpecificData&&(g=b?.providerSpecificData,i.providerSpecificData=(h=c.providerSpecificData)&&"object"==typeof h?{...g||{},...h}:g),c.copilotToken&&(i.copilotToken=c.copilotToken),c.copilotTokenExpiresAt&&(i.copilotTokenExpiresAt=c.copilotTokenExpiresAt),(e.sr[a]?.trackRefreshAt||i.accessToken||i.apiKey||i.token||i.refreshToken||i.copilotToken)&&(i.lastRefreshAt=c.lastRefreshAt||j),i}(a,b,f)}):null}},21362:(a,b,c)=>{c.d(b,{J1:()=>n,ge:()=>q,Il:()=>p,XB:()=>A,SO:()=>z,Wm:()=>t,jR:()=>y,ZP:()=>G,go:()=>F,EF:()=>x,I9:()=>r,AH:()=>w,ng:()=>o,Ql:()=>v,Ms:()=>E,RM:()=>B,p9:()=>D,r_:()=>l,wt:()=>C});var d=c(31024),e=c(4630),f=c(28730),g=c(89843);let h=new Map;async function i(a,b,c,d){if(!b)return c();let e=`${a}:${b}`,f=h.get(e);if(f){if(f.promise)return d?.info?.("TOKEN_REFRESH",`Reusing in-flight refresh for ${a}`),f.promise;if(f.expiresAt>Date.now())return d?.info?.("TOKEN_REFRESH",`Reusing recent refresh result for ${a}`),f.result;h.delete(e)}let g=(async()=>{try{let a=await c();return h.set(e,{result:a,expiresAt:Date.now()+1e4}),a}catch(a){throw h.delete(e),a}})();return h.set(e,{promise:g}),g}var j=c(18080);let k=null;async function l(a,b){return a?i("xai",a,async()=>{try{k||(k=new(await Promise.all([c.e(2898),c.e(4730)]).then(c.bind(c,84730))).XaiService);let b=await k.refreshAccessToken(a);return{accessToken:b.access_token,refreshToken:b.refresh_token||a,expiresIn:b.expires_in,idToken:b.id_token}}catch(c){b?.warn?.("TOKEN_REFRESH",`xai refresh failed: ${c?.message||c}`);let a=String(c?.message||"");if(a.includes("invalid_grant")||a.includes("invalid_request"))return{error:"invalid_grant"};return null}},b):null}let m={claude:{bodyFormat:"json",includeClientSecret:!1,url:()=>f.NA.anthropic.token,dedupKey:"claude"},qwen:{url:()=>f.NA.qwen.token,dedupKey:"qwen",parse:a=>a.resource_url?{providerSpecificData:{resourceUrl:a.resource_url}}:{}},iflow:{url:()=>f.NA.iflow.token,dedupKey:"iflow",extraHeaders:(a,b)=>({Authorization:`Basic ${btoa(`${b.clientId}:${b.clientSecret}`)}`})},github:{url:()=>f.NA.github.token,dedupKey:"github",includeClientSecret:a=>!!a?.clientSecret},kimi:{dedupKey:"kimi",extraHeaders:a=>(0,f.buildKimiHeaders)(a?.providerSpecificData?.deviceId)}};async function n(a,b,c,d){let f=e.xq[a],g=m[a]||{},h=function(a,b,c){if(c?.url)try{return c.url()}catch{}return b?.refreshUrl||e.sr[a]?.tokenUrl||null}(a,f,g);return f&&h?b?i(g.dedupKey||a,b,async()=>{try{let e,i,j,{format:k,body:l}=(e=g?.bodyFormat==="json"?"json":"form",i=g?.includeClientSecret===void 0||("function"==typeof g.includeClientSecret?g.includeClientSecret(f):g.includeClientSecret),j={grant_type:"refresh_token",refresh_token:b,client_id:f.clientId},(i&&f.clientSecret&&(j.client_secret=f.clientSecret),"json"===e)?{format:"json",body:JSON.stringify(j)}:{format:"form",body:new URLSearchParams(j)}),m={"Content-Type":"json"===k?"application/json":"application/x-www-form-urlencoded",Accept:"application/json",...g.extraHeaders&&g.extraHeaders(c,f)||{}},n=await fetch(h,{method:"POST",headers:m,body:l});if(!n.ok){let b=await n.text();return d?.error?.("TOKEN_REFRESH",`Failed to refresh token for ${a}`,{status:n.status,error:b}),null}let o=await n.json();return d?.info?.("TOKEN_REFRESH",`Successfully refreshed token for ${a}`,{hasNewAccessToken:!!o.access_token,hasNewRefreshToken:!!o.refresh_token,expiresIn:o.expires_in}),{accessToken:o.access_token,refreshToken:o.refresh_token||b,expiresIn:o.expires_in,...g.parse&&g.parse(o)||{}}}catch(b){return d?.error?.("TOKEN_REFRESH",`Error refreshing token for ${a}`,{error:b.message}),null}},d):(d?.warn?.("TOKEN_REFRESH",`No refresh token available for provider: ${a}`),null):(d?.warn?.("TOKEN_REFRESH",`No refresh URL configured for provider: ${a}`),null)}async function o(a,b,c){return n("kimi",a,b,c)}async function p(a,b){return a?i("cline",a,async()=>{try{let c=await fetch(e.xq.cline?.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({refreshToken:a,grantType:"refresh_token",clientType:"extension"})});if(!c.ok){let a=await c.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh Cline token",{status:c.status,error:a}),null}let d=await c.json(),f=d?.data||d;if(!f?.accessToken)return null;let g=f.expiresAt?Math.max(1,Math.floor((new Date(f.expiresAt).getTime()-Date.now())/1e3)):f.expiresIn||f.expires_in||3600;return{accessToken:f.accessToken,refreshToken:f.refreshToken||a,expiresIn:g}}catch(a){return b?.error?.("TOKEN_REFRESH",`Error refreshing Cline token: ${a.message}`),null}},b):null}async function q(a,b){return n("claude",a,{},b)}async function r(a,b,c,d){return a?i(`google:${b}`,a,async()=>{try{let e=await fetch(f.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:b,client_secret:c})});if(!e.ok){let a=await e.text();return d?.error?.("TOKEN_REFRESH","Failed to refresh Google token",{status:e.status,error:a}),null}let g=await e.json();return d?.info?.("TOKEN_REFRESH","Successfully refreshed Google token",{hasNewAccessToken:!!g.access_token,expiresIn:g.expires_in}),{accessToken:g.access_token,refreshToken:g.refresh_token||a,expiresIn:g.expires_in}}catch(a){return d?.error?.("TOKEN_REFRESH",`Network error refreshing Google token: ${a.message}`),null}},d):null}function s(a="",b=0){let c=null;try{c=a?JSON.parse(a):null}catch{c=null}let d=c?.error?.code||c?.error||c?.error_code||"",e=c?.error_description||c?.message||a||"",f=`${d} ${e}`.toLowerCase();return{status:b,code:d,description:e,permanent:["refresh_token_expired","refresh_token_reused","refresh_token_invalidated","invalid_grant"].some(a=>f.includes(a))}}async function t(a,b){return a?i("codex",a,async()=>{try{let c=await fetch(f.NA.openai.token,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({client_id:e.xq.codex.clientId,grant_type:"refresh_token",refresh_token:a})});if(!c.ok){let a=await c.text(),d=s(a,c.status);if(d.permanent)return b?.error?.("TOKEN_REFRESH","Codex refresh token already used or invalid. Re-auth required.",{status:c.status,code:d.code}),{error:"unrecoverable_refresh_error",code:d.code};return b?.error?.("TOKEN_REFRESH","Failed to refresh Codex token",{status:c.status,error:a,code:d.code,permanent:d.permanent}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Codex token",{hasNewAccessToken:!!d.access_token,hasNewRefreshToken:!!d.refresh_token,hasIdToken:!!d.id_token,expiresIn:d.expires_in}),{accessToken:d.access_token,refreshToken:d.refresh_token||a,idToken:d.id_token,expiresIn:d.expires_in}}catch(a){return b?.error?.("TOKEN_REFRESH",`Network error refreshing Codex token: ${a.message}`),null}},b):null}async function u(a,b,d){if(a?.profileArn)return{};let e=d?.trim?.()||null;if(!e){let{fetchKiroProfileArn:a}=await Promise.all([c.e(7774),c.e(4646),c.e(1847),c.e(4378),c.e(576),c.e(9865),c.e(1187),c.e(8644),c.e(7677),c.e(73),c.e(7594),c.e(1733),c.e(9026),c.e(369),c.e(4327)]).then(c.bind(c,46448));e=await a(b)}return e?{providerSpecificData:{profileArn:e}}:{}}async function v(a,b,c,d=null){return a?i("kiro",a,async()=>{let f=b?.authMethod,h=b?.clientId,i=b?.clientSecret,k=b?.region;if("external_idp"===f){let e;try{e=(0,j.uo)(a,b)}catch(a){return c?.warn?.("TOKEN_REFRESH",`Invalid Kiro external_idp refresh config: ${a.message}`),null}let f=await (0,g.proxyAwareFetch)(e.tokenEndpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:e.body},d);if(!f.ok){let a=await f.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro external_idp token",{status:f.status,error:a}),null}let h=await f.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro external_idp token",{hasNewAccessToken:!!h.access_token,hasNewRefreshToken:!!h.refresh_token,expiresIn:h.expires_in}),{accessToken:h.access_token,refreshToken:h.refresh_token||a,expiresIn:h.expires_in,providerSpecificData:e.providerSpecificData}}if(h&&i){let e="idc"===f&&k?`https://oidc.${k}.amazonaws.com/token`:"https://oidc.us-east-1.amazonaws.com/token",j=await (0,g.proxyAwareFetch)(e,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:h,clientSecret:i,refreshToken:a,grantType:"refresh_token"})},d);if(!j.ok){let a=await j.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro AWS token",{status:j.status,error:a}),null}let l=await j.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro AWS token",{hasNewAccessToken:!!l.accessToken,expiresIn:l.expiresIn}),{accessToken:l.accessToken,refreshToken:l.refreshToken||a,expiresIn:l.expiresIn,...await u(b,l.accessToken,l.profileArn)}}let l=await (0,g.proxyAwareFetch)(e.xq.kiro.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"kiro-cli/1.0.0"},body:JSON.stringify({refreshToken:a})},d);if(!l.ok){let a=await l.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro social token",{status:l.status,error:a}),null}let m=await l.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro social token",{hasNewAccessToken:!!m.accessToken,expiresIn:m.expiresIn}),{accessToken:m.accessToken,refreshToken:m.refreshToken||a,expiresIn:m.expiresIn,...await u(b,m.accessToken,m.profileArn)}},c):null}async function w(a,b){return n("iflow",a,{},b)}async function x(a,b){return n("github",a,{},b)}async function y(a,b){return a?i("copilot",a,async()=>{try{let c=await fetch(e.sr.github?.copilotTokenUrl,{headers:{Authorization:`token ${a}`,"User-Agent":f.x0.USER_AGENT,"Editor-Version":`vscode/${f.x0.VSCODE_VERSION}`,"Editor-Plugin-Version":`copilot-chat/${f.x0.COPILOT_CHAT_VERSION}`,Accept:"application/json","x-github-api-version":f.x0.API_VERSION}});if(!c.ok){let a=await c.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh Copilot token",{status:c.status,error:a}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Copilot token",{hasToken:!!d.token,expiresAt:d.expires_at}),{token:d.token,expiresAt:d.expires_at}}catch(a){return b?.error?.("TOKEN_REFRESH","Error refreshing Copilot token",{error:a.message}),null}},b):null}async function z(a,b){return a?i("codebuddy-cn",a,async()=>{let c=e.sr["codebuddy-cn"]||{},d=await fetch(c.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":c.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-Refresh-Token":a,"X-Auth-Refresh-Source":"plugin","X-Product":"SaaS"},body:"{}"});if(!d.ok){let a=await d.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh CodeBuddy token",{status:d.status,error:a}),null}let f=await d.json();return 0===f.code&&f.data?.accessToken?(b?.info?.("TOKEN_REFRESH","Successfully refreshed CodeBuddy token",{hasNewAccessToken:!!f.data.accessToken,hasNewRefreshToken:!!f.data.refreshToken,expiresIn:f.data.expiresIn}),{accessToken:f.data.accessToken,refreshToken:f.data.refreshToken||a,expiresIn:f.data.expiresIn}):(b?.error?.("TOKEN_REFRESH","CodeBuddy token refresh returned no token",{code:f.code,msg:f.msg}),null)},b):null}async function A(a,b){return a?i("codebuddy-intl",a,async()=>{let c=e.sr["codebuddy-intl"]||{},d=await fetch(c.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":c.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"www.codebuddy.ai","X-Refresh-Token":a,"X-Auth-Refresh-Source":"plugin","X-Product":"SaaS"},body:"{}"});if(!d.ok){let a=await d.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh CodeBuddy intl token",{status:d.status,error:a}),null}let f=await d.json();return 0===f.code&&f.data?.accessToken?(b?.info?.("TOKEN_REFRESH","Successfully refreshed CodeBuddy intl token",{hasNewAccessToken:!!f.data.accessToken,hasNewRefreshToken:!!f.data.refreshToken,expiresIn:f.data.expiresIn}),{accessToken:f.data.accessToken,refreshToken:f.data.refreshToken||a,expiresIn:f.data.expiresIn}):(b?.error?.("TOKEN_REFRESH","CodeBuddy intl token refresh returned no token",{code:f.code,msg:f.msg}),null)},b):null}async function B(a,b,c){if(!a)return null;let d=e.sr.trae||{},f=d.exchangeTokenUrl||d.tokenUrl;return f?i("trae",a,async()=>{try{let b,e=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"Trae/1.0.0 antigravity-cockpit-tools"},body:JSON.stringify({ClientID:d.clientId||"ono9krqynydwx5",RefreshToken:a,ClientSecret:d.clientSecret||"-",UserID:""})});if(!e.ok){let a=await e.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Trae token",{status:e.status,error:a}),null}let g=await e.json(),h=g?.Result||g?.result||g,i=h?.AccessToken||h?.accessToken;if(!i)return c?.error?.("TOKEN_REFRESH","Trae refresh returned no AccessToken",{payload:g}),null;let j=h?.RefreshToken||h?.refreshToken||a,k=h?.ExpiresAt||h?.expiresAt;if("number"==typeof k)b=Math.max(1,k-Math.floor(Date.now()/1e3));else if("string"==typeof k){let a=new Date(k).getTime()-Date.now();b=a>0?Math.floor(a/1e3):void 0}return c?.info?.("TOKEN_REFRESH","Successfully refreshed Trae token",{hasNewAccessToken:!!i,hasNewRefreshToken:j!==a,expiresIn:b}),{accessToken:i,refreshToken:j,expiresIn:b}}catch(a){return c?.error?.("TOKEN_REFRESH",`Error refreshing Trae token: ${a.message}`),null}},c):(c?.warn?.("TOKEN_REFRESH","No Trae exchangeTokenUrl configured"),null)}function C(){return null}async function D(a,b){return b?.info?.("TOKEN_REFRESH","windsurf: apiKey is long-lived (no refresh_token flow) — skipping"),null}async function E(a,b="intl",d){return a?i(`qoder:${b||"intl"}`,a,async()=>{try{let e=new(await Promise.all([c.e(4646),c.e(1847),c.e(4378),c.e(1531)]).then(c.bind(c,91531))).QoderService({profile:b}),f=await e.refreshDeviceToken(a);return d?.info?.("TOKEN_REFRESH","Successfully refreshed Qoder device token",{profile:b,hasNewAccessToken:!!f.accessToken,hasNewRefreshToken:!!f.refreshToken,expiresIn:f.expiresIn}),{accessToken:f.accessToken,refreshToken:f.refreshToken||a,expiresIn:f.expiresIn}}catch(c){let a=c?.status;if(d?.error?.("TOKEN_REFRESH",`Qoder device refresh failed (${b})`,{error:c?.message||String(c),status:a}),401===a||403===a)return{error:"invalid_grant",message:c?.message||"Qoder refresh rejected"};return null}},d):null}async function F(a,b){return a?i("frontier-for-all",a,async()=>{try{let c=await fetch(f.NA["frontier-for-all"].token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:e.xq["frontier-for-all"].clientId})});if(!c.ok){let a=await c.text().catch(()=>""),d=s(a,c.status);if(d.permanent)return b?.error?.("TOKEN_REFRESH","Frontier refresh token rotated or revoked. Re-login required.",{status:c.status,code:d.code}),{error:"unrecoverable_refresh_error",code:d.code};return b?.error?.("TOKEN_REFRESH","Failed to refresh Frontier token",{status:c.status,error:a}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Frontier token",{hasNewAccessToken:!!d.access_token,hasNewRefreshToken:!!d.refresh_token,expiresIn:d.expires_in}),{accessToken:d.access_token,refreshToken:d.refresh_token||a,expiresIn:d.expires_in}}catch(a){return b?.error?.("TOKEN_REFRESH",`Network error refreshing Frontier token: ${a.message}`),null}},b):null}async function G(a,b){return a?i("cursor",a,async()=>{try{let c=await new d.q().refreshToken(a);return b?.info?.("TOKEN_REFRESH","Successfully refreshed Cursor token",{hasNewAccessToken:!!c.accessToken,hasNewRefreshToken:!!c.refreshToken,expiresIn:c.expiresIn}),c}catch(a){return b?.warn?.("TOKEN_REFRESH",`Cursor refresh failed: ${a?.message||a}`),null}},b):null}},31024:(a,b,c)=>{c.d(b,{q:()=>h});var d=c(55511),e=c.n(d),f=c(92990);function g(a){let b="string"==typeof a?a.split("."):[];if(3!==b.length||!b[1])return null;try{return JSON.parse(Buffer.from(b[1],"base64url").toString("utf8"))}catch{return null}}class h{constructor(){this.config=f.WN}getAuthorizationData(a="login"){let b=e().randomBytes(32).toString("base64url"),c=e().createHash("sha256").update(b).digest("base64url"),d=e().randomUUID(),f=new URLSearchParams({challenge:c,uuid:d,mode:a,supportsSelectedTeamLogin:"true"});return{authUrl:`${this.config.loginUrl}?${f.toString()}`,uuid:d,verifier:b,expiresIn:300}}async pollToken(a,b,c){if(!a||!b)throw Error("Cursor OAuth session is incomplete");let d=new URLSearchParams({uuid:a,verifier:b}),f=await fetch(`${this.config.pollUrl}?${d.toString()}`,{headers:{Accept:"application/json","User-Agent":"Cursor/3.12.29","x-cursor-client-type":this.config.clientType,"x-ghost-mode":"implicit-false","x-new-onboarding-completed":"false",traceparent:`00-${e().randomBytes(16).toString("hex")}-${e().randomBytes(8).toString("hex")}-01`},signal:c});if(404===f.status)return{success:!1,pending:!0,error:"authorization_pending"};if(!f.ok)throw Error(`Cursor OAuth polling failed with HTTP ${f.status}`);let g=await f.json();if(!g.accessToken||!g.refreshToken)throw Error("Cursor OAuth response was missing tokens");return{success:!0,tokens:g}}async refreshToken(a){let b;if(!a||"string"!=typeof a)throw Error("Cursor refresh token is required");for(let d=0;d<3;d+=1){var c;try{let c=await fetch(this.config.refreshUrl,{method:"POST",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:"{}",signal:AbortSignal.timeout(15e3)});if(c.ok){let b=await c.json();if(!b.accessToken)throw Error("Cursor refresh response was missing an access token");return this.mapTokens(b.accessToken,b.refreshToken||a)}if(429!==c.status&&c.status<500){let a=Error(`Cursor token refresh failed with HTTP ${c.status}`);throw a.retryable=!1,a}b=Error(`Cursor token refresh failed with HTTP ${c.status}`)}catch(a){if(!1===a.retryable)throw a;b=a}d<2&&await function(a){return new Promise(b=>setTimeout(b,a))}((c=d,Math.floor(300*2**c*(.8+.4*Math.random()))))}throw b||Error("Cursor token refresh failed")}mapTokens(a,b,c=null,d="oauth"){let e,f=(e=g(a),"number"==typeof e?.exp?1e3*e.exp-3e5:Date.now()+36e5),h=this.extractUserInfo(a);return{accessToken:a,refreshToken:b,...c?{machineId:c}:{},expiresAt:new Date(f).toISOString(),expiresIn:Math.max(1,Math.floor((f-Date.now())/1e3)),email:h?.email||null,providerSpecificData:{authMethod:d,...c?{machineId:c}:{},...h?.userId?{userId:h.userId}:{}}}}async validateImportToken(a,b){if(!a||"string"!=typeof a)throw Error("Access token is required");if(!b||"string"!=typeof b)throw Error("Machine ID is required");if(a.length<50)throw Error("Invalid token format. Token appears too short.");if(!/^[a-f0-9-]{32,}$/i.test(b.replace(/-/g,"")))throw Error("Invalid machine ID format. Expected UUID format.");return this.mapTokens(a,null,b,"imported")}extractUserInfo(a){let b=g(a);return b?{email:"string"==typeof b.email&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b.email)?b.email:null,userId:b.sub||b.user_id||null}:null}getTokenStorageInstructions(){return{title:"How to import your existing Cursor session",steps:["Open Cursor IDE and make sure you're logged in",`Linux: ${this.config.tokenStoragePaths.linux}`,`macOS: ${this.config.tokenStoragePaths.macos}`,`Windows: ${this.config.tokenStoragePaths.windows}`,"Read cursorAuth/accessToken and storage.serviceMachineId from itemTable"]}}}},85640:(a,b,c)=>{c.d(b,{$B:()=>o,I9:()=>f.I9,Og:()=>i,Ql:()=>f.Ql,Sc:()=>j,Wm:()=>f.Wm,go:()=>f.go,jR:()=>f.jR,jT:()=>h,oD:()=>g,pb:()=>l,qZ:()=>p});var d=c(4630),e=c(28730),f=c(21362);let g=3e5;function h(a){return a&&"object"==typeof a&&("unrecoverable_refresh_error"===a.error||"refresh_token_reused"===a.error||"invalid_request"===a.error||"invalid_grant"===a.error)}function i(a){return e.Wu[a]?e.Wu[a]:"kimi-coding"===a&&e.Wu.kimi?e.Wu.kimi:g}function j(a){if("string"!=typeof a)return null;try{let b=JSON.parse(a);if("service_account"===b.type&&b.client_email&&b.private_key&&b.project_id)return b;return null}catch{return null}}let k=new Map;async function l(a,b){let d=a.client_email,f=k.get(d);if(f&&f.expiresAt-Date.now()>3e5)return{accessToken:f.token,expiresAt:f.expiresAt};try{let{SignJWT:f,importPKCS8:g}=await Promise.all([c.e(4433),c.e(1455)]).then(c.bind(c,71455));b?.debug?.("TOKEN_REFRESH",`Vertex minting token for ${a.client_email}`);let h=await g(a.private_key.replace(/\\n/g,"\n"),"RS256"),i=Math.floor(Date.now()/1e3),j=await new f({scope:"https://www.googleapis.com/auth/cloud-platform"}).setProtectedHeader({alg:"RS256"}).setIssuer(a.client_email).setAudience(e.NA.google.token).setIssuedAt(i).setExpirationTime(i+3600).sign(h),l=await fetch(e.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:j})});if(!l.ok){let a=await l.text();return b?.error?.("TOKEN_REFRESH",`Vertex token mint failed: ${a}`),null}let{access_token:m,expires_in:n}=await l.json(),o=Date.now()+(n??3600)*1e3;return k.set(d,{token:m,expiresAt:o}),b?.info?.("TOKEN_REFRESH",`Vertex token minted for ${a.client_email}`),{accessToken:m,expiresAt:o}}catch(a){return b?.error?.("TOKEN_REFRESH",`Vertex token error: ${a.message}`),null}}function m(a,b){let c=j(a.apiKey);return c?l(c,b):null}let n={"frontier-for-all":(a,b)=>(0,f.go)(a.refreshToken,b),"gemini-cli":(a,b)=>(0,f.I9)(a.refreshToken,d.xq["gemini-cli"].clientId,d.xq["gemini-cli"].clientSecret,b),antigravity:(a,b)=>(0,f.I9)(a.refreshToken,d.xq.antigravity.clientId,d.xq.antigravity.clientSecret,b),claude:(a,b)=>(0,f.ge)(a.refreshToken,b),codex:(a,b)=>(0,f.Wm)(a.refreshToken,b),iflow:(a,b)=>(0,f.AH)(a.refreshToken,b),github:(a,b)=>(0,f.EF)(a.refreshToken,b),kiro:(a,b)=>(0,f.Ql)(a.refreshToken,a.providerSpecificData,b),cursor:(a,b)=>(0,f.ZP)(a.refreshToken,b),xai:(a,b)=>(0,f.r_)(a.refreshToken,b),"grok-cli":(a,b)=>(0,f.r_)(a.refreshToken,b),gcli:(a,b)=>(0,f.r_)(a.refreshToken,b),"codebuddy-cn":(a,b)=>(0,f.SO)(a.refreshToken,b),"codebuddy-intl":(a,b)=>(0,f.XB)(a.refreshToken,b),trae:(a,b)=>(0,f.RM)(a.refreshToken,a,b),cline:(a,b)=>(0,f.Il)(a.refreshToken,b),clinepass:(a,b)=>(0,f.Il)(a.refreshToken,b),zed:()=>(0,f.wt)(),windsurf:(a,b)=>(0,f.p9)(a,b),kimi:(a,b)=>(0,f.ng)(a.refreshToken,a,b),"kimi-coding":(a,b)=>(0,f.ng)(a.refreshToken,a,b),vertex:m,"vertex-partner":m};async function o(a,b,c){let d=b.refreshToken||b.providerSpecificData?.refreshToken;if(!d)return null;let e=d!==b.refreshToken?{...b,refreshToken:d}:b,g=n[a];return g?g(e,c):(0,f.J1)(a,d,e,c)}async function p(a,b=3,c=null){for(let d=0;d<b;d++){if(d>0){let a=1e3*d;c?.debug?.("TOKEN_REFRESH",`Retry ${d}/${b} after ${a}ms`),await new Promise(b=>setTimeout(b,a))}try{let b=await a();if(b)return b}catch(a){c?.warn?.("TOKEN_REFRESH",`Attempt ${d+1}/${b} failed: ${a.message}`)}}return c?.error?.("TOKEN_REFRESH",`All ${b} retry attempts failed`),null}}};
|
|
1
|
+
"use strict";exports.id=8129,exports.ids=[8129],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]}},18080:(a,b,c)=>{c.d(b,{Xj:()=>j,uo:()=>k});var d=c(92990);let e=new Set(["login.microsoftonline.com","login.microsoft.com","login.windows.net"]);function f(a){return"string"==typeof a?a.trim():""}function g(a){let b,c=f(a);if(!c)throw Error("token_endpoint is required");try{b=new URL(c)}catch{throw Error("token_endpoint must be a valid URL")}if("https:"!==b.protocol)throw Error("token_endpoint must use https");let d=b.hostname.toLowerCase();if(!e.has(d))throw Error("token_endpoint must be a Microsoft login endpoint");return b.toString()}function h(a){return Array.isArray(a)?a.map(f).filter(Boolean).join(" "):f(a)}function i(a){try{if(!a||"string"!=typeof a)return null;let b=a.split(".");if(3!==b.length)return null;let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=(4-c.length%4)%4;return JSON.parse(Buffer.from(`${c}${"=".repeat(d)}`,"base64").toString("utf8"))}catch{return null}}function j(a){let b=a;if("string"==typeof b)try{b=JSON.parse(b)}catch{throw Error("CLIProxyAPI auth JSON is invalid")}if(!b||"object"!=typeof b)throw Error("CLIProxyAPI auth JSON is required");let c=f(b.auth_method||b.authMethod);if(c&&"external_idp"!==c)throw Error("Only external_idp Kiro auth is supported by this importer");let e=f(b.access_token||b.accessToken),j=f(b.refresh_token||b.refreshToken),k=f(b.client_id||b.clientId),l=g(b.token_endpoint||b.tokenEndpoint),m=f(b.profile_arn||b.profileArn),n=f(b.region)||"us-east-1",o=h(b.scopes||b.scope),p=(0,d.S6)(n);if(!e)throw Error("access_token is required");if(!j)throw Error("refresh_token is required");if(!k)throw Error("client_id is required");if(!o)throw Error("scopes is required");if(!m)throw Error("profile_arn is required");let q=i(e),r=b.email||q?.email||q?.preferred_username||q?.upn||q?.sub||null;return{accessToken:e,refreshToken:j,expiresAt:function(a){let b=a.expired||a.expires_at||a.expiresAt;if(b){let a=new Date(b).getTime();if(Number.isFinite(a))return new Date(a).toISOString()}let c=Number(a.expires_in||a.expiresIn||0);if(Number.isFinite(c)&&c>0)return new Date(Date.now()+1e3*c).toISOString();let d=i(a.access_token||a.accessToken);return d?.exp?new Date(1e3*d.exp).toISOString():new Date(Date.now()+36e5).toISOString()}(b),email:r,providerSpecificData:{profileArn:m,region:p,authMethod:"external_idp",provider:"CLIProxyAPI",clientId:k,tokenEndpoint:l,scope:o}}}function k(a,b={}){let c=f(b.clientId||b.client_id),d=g(b.tokenEndpoint||b.token_endpoint),e=h(b.scope||b.scopes);if(!a)throw Error("refresh token is required");if(!c)throw Error("clientId is required for external_idp refresh");if(!e)throw Error("scope is required for external_idp refresh");return{tokenEndpoint:d,body:new URLSearchParams({grant_type:"refresh_token",client_id:c,refresh_token:a,scope:e}),providerSpecificData:{...b,authMethod:"external_idp",clientId:c,tokenEndpoint:d,scope:e}}}},18129:(a,b,c)=>{c.d(b,{Dz:()=>j,Vq:()=>m,fp:()=>k,jR:()=>i});var d=c(85640),e=c(39141);let f=e.sr.codex?.maxRefreshAgeMs,g=new Map,h=/^\d+(\.\d+)?$/;function i(a){if(null==a||""===a)return null;if("number"==typeof a||"string"==typeof a&&h.test(a.trim())){let b=Number(a);return Number.isFinite(b)?b<1e12?1e3*b:b:null}let b=new Date(a).getTime();return Number.isFinite(b)?b:null}function j(a,b=Date.now()){let c=i(a?.expiresAt??a?.tokenExpiresAt);if(null!==c)return c;let d=a?.expiresIn;return"number"==typeof d&&d>0?b+1e3*d:null}function k(a,b,c=Date.now()){if(!b)return!1;let g=j(b);if(null!==g&&g-c<(0,d.Og)(a))return!0;let h=e.sr[a]?.maxRefreshAgeMs;return!!(h&&b.refreshToken&&function(a,b=Date.now(),c=f){let d=i(a?.lastRefreshAt??a?.lastRefresh??a?.providerSpecificData?.lastRefreshAt);return!d||b-d>=c}(b,c,h))}async function l(a,b,c){let d,e=(d=b?.connectionId||b?.id||b?.email||b?.name||b?.refreshToken?.slice?.(-16)||"default",`${a}:${d}`),f=g.get(e);if(f)return f;let h=Promise.resolve().then(c).finally(()=>{g.delete(e)});return g.set(e,h),h}async function m(a,b,c){return b?l(a,b,async()=>{let f=await (0,d.$B)(a,b,c);return function(a,b,c,f=Date.now()){var g,h;if(!c)return null;if((0,d.jT)(c))return c;let i={},j=new Date(f).toISOString();c.accessToken&&(i.accessToken=c.accessToken),c.apiKey&&(i.apiKey=c.apiKey),c.token&&(i.token=c.token);let k=c.refreshToken??b?.refreshToken;k&&(i.refreshToken=k);let l=c.idToken??b?.idToken;return l&&(i.idToken=l),c.expiresIn?(i.expiresIn=c.expiresIn,i.expiresAt=function(a,b=Date.now()){return a?new Date(b+1e3*a).toISOString():null}(c.expiresIn,f)):c.expiresAt&&(i.expiresAt=c.expiresAt),c.projectId&&(i.projectId=c.projectId),c.providerSpecificData&&(g=b?.providerSpecificData,i.providerSpecificData=(h=c.providerSpecificData)&&"object"==typeof h?{...g||{},...h}:g),c.copilotToken&&(i.copilotToken=c.copilotToken),c.copilotTokenExpiresAt&&(i.copilotTokenExpiresAt=c.copilotTokenExpiresAt),(e.sr[a]?.trackRefreshAt||i.accessToken||i.apiKey||i.token||i.refreshToken||i.copilotToken)&&(i.lastRefreshAt=c.lastRefreshAt||j),i}(a,b,f)}):null}},21362:(a,b,c)=>{c.d(b,{J1:()=>n,ge:()=>q,Il:()=>p,XB:()=>A,SO:()=>z,Wm:()=>t,jR:()=>y,ZP:()=>G,go:()=>F,EF:()=>x,I9:()=>r,AH:()=>w,ng:()=>o,Ql:()=>v,Ms:()=>E,RM:()=>B,p9:()=>D,r_:()=>l,wt:()=>C});var d=c(31024),e=c(4630),f=c(28730),g=c(89843);let h=new Map;async function i(a,b,c,d){if(!b)return c();let e=`${a}:${b}`,f=h.get(e);if(f){if(f.promise)return d?.info?.("TOKEN_REFRESH",`Reusing in-flight refresh for ${a}`),f.promise;if(f.expiresAt>Date.now())return d?.info?.("TOKEN_REFRESH",`Reusing recent refresh result for ${a}`),f.result;h.delete(e)}let g=(async()=>{try{let a=await c();return h.set(e,{result:a,expiresAt:Date.now()+1e4}),a}catch(a){throw h.delete(e),a}})();return h.set(e,{promise:g}),g}var j=c(18080);let k=null;async function l(a,b){return a?i("xai",a,async()=>{try{k||(k=new(await Promise.all([c.e(2898),c.e(4730)]).then(c.bind(c,84730))).XaiService);let b=await k.refreshAccessToken(a);return{accessToken:b.access_token,refreshToken:b.refresh_token||a,expiresIn:b.expires_in,idToken:b.id_token}}catch(c){b?.warn?.("TOKEN_REFRESH",`xai refresh failed: ${c?.message||c}`);let a=String(c?.message||"");if(a.includes("invalid_grant")||a.includes("invalid_request"))return{error:"invalid_grant"};return null}},b):null}let m={claude:{bodyFormat:"json",includeClientSecret:!1,url:()=>f.NA.anthropic.token,dedupKey:"claude"},qwen:{url:()=>f.NA.qwen.token,dedupKey:"qwen",parse:a=>a.resource_url?{providerSpecificData:{resourceUrl:a.resource_url}}:{}},iflow:{url:()=>f.NA.iflow.token,dedupKey:"iflow",extraHeaders:(a,b)=>({Authorization:`Basic ${btoa(`${b.clientId}:${b.clientSecret}`)}`})},github:{url:()=>f.NA.github.token,dedupKey:"github",includeClientSecret:a=>!!a?.clientSecret},kimi:{dedupKey:"kimi",extraHeaders:a=>(0,f.buildKimiHeaders)(a?.providerSpecificData?.deviceId)}};async function n(a,b,c,d){let f=e.xq[a],g=m[a]||{},h=function(a,b,c){if(c?.url)try{return c.url()}catch{}return b?.refreshUrl||e.sr[a]?.tokenUrl||null}(a,f,g);return f&&h?b?i(g.dedupKey||a,b,async()=>{try{let e,i,j,{format:k,body:l}=(e=g?.bodyFormat==="json"?"json":"form",i=g?.includeClientSecret===void 0||("function"==typeof g.includeClientSecret?g.includeClientSecret(f):g.includeClientSecret),j={grant_type:"refresh_token",refresh_token:b,client_id:f.clientId},(i&&f.clientSecret&&(j.client_secret=f.clientSecret),"json"===e)?{format:"json",body:JSON.stringify(j)}:{format:"form",body:new URLSearchParams(j)}),m={"Content-Type":"json"===k?"application/json":"application/x-www-form-urlencoded",Accept:"application/json",...g.extraHeaders&&g.extraHeaders(c,f)||{}},n=await fetch(h,{method:"POST",headers:m,body:l});if(!n.ok){let b=await n.text();return d?.error?.("TOKEN_REFRESH",`Failed to refresh token for ${a}`,{status:n.status,error:b}),null}let o=await n.json();return d?.info?.("TOKEN_REFRESH",`Successfully refreshed token for ${a}`,{hasNewAccessToken:!!o.access_token,hasNewRefreshToken:!!o.refresh_token,expiresIn:o.expires_in}),{accessToken:o.access_token,refreshToken:o.refresh_token||b,expiresIn:o.expires_in,...g.parse&&g.parse(o)||{}}}catch(b){return d?.error?.("TOKEN_REFRESH",`Error refreshing token for ${a}`,{error:b.message}),null}},d):(d?.warn?.("TOKEN_REFRESH",`No refresh token available for provider: ${a}`),null):(d?.warn?.("TOKEN_REFRESH",`No refresh URL configured for provider: ${a}`),null)}async function o(a,b,c){return n("kimi",a,b,c)}async function p(a,b){return a?i("cline",a,async()=>{try{let c=await fetch(e.xq.cline?.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({refreshToken:a,grantType:"refresh_token",clientType:"extension"})});if(!c.ok){let a=await c.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh Cline token",{status:c.status,error:a}),null}let d=await c.json(),f=d?.data||d;if(!f?.accessToken)return null;let g=f.expiresAt?Math.max(1,Math.floor((new Date(f.expiresAt).getTime()-Date.now())/1e3)):f.expiresIn||f.expires_in||3600;return{accessToken:f.accessToken,refreshToken:f.refreshToken||a,expiresIn:g}}catch(a){return b?.error?.("TOKEN_REFRESH",`Error refreshing Cline token: ${a.message}`),null}},b):null}async function q(a,b){return n("claude",a,{},b)}async function r(a,b,c,d){return a?i(`google:${b}`,a,async()=>{try{let e=await fetch(f.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:b,client_secret:c})});if(!e.ok){let a=await e.text();return d?.error?.("TOKEN_REFRESH","Failed to refresh Google token",{status:e.status,error:a}),null}let g=await e.json();return d?.info?.("TOKEN_REFRESH","Successfully refreshed Google token",{hasNewAccessToken:!!g.access_token,expiresIn:g.expires_in}),{accessToken:g.access_token,refreshToken:g.refresh_token||a,expiresIn:g.expires_in}}catch(a){return d?.error?.("TOKEN_REFRESH",`Network error refreshing Google token: ${a.message}`),null}},d):null}function s(a="",b=0){let c=null;try{c=a?JSON.parse(a):null}catch{c=null}let d=c?.error?.code||c?.error||c?.error_code||"",e=c?.error_description||c?.message||a||"",f=`${d} ${e}`.toLowerCase();return{status:b,code:d,description:e,permanent:["refresh_token_expired","refresh_token_reused","refresh_token_invalidated","invalid_grant"].some(a=>f.includes(a))}}async function t(a,b){return a?i("codex",a,async()=>{try{let c=await fetch(f.NA.openai.token,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({client_id:e.xq.codex.clientId,grant_type:"refresh_token",refresh_token:a})});if(!c.ok){let a=await c.text(),d=s(a,c.status);if(d.permanent)return b?.error?.("TOKEN_REFRESH","Codex refresh token already used or invalid. Re-auth required.",{status:c.status,code:d.code}),{error:"unrecoverable_refresh_error",code:d.code};return b?.error?.("TOKEN_REFRESH","Failed to refresh Codex token",{status:c.status,error:a,code:d.code,permanent:d.permanent}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Codex token",{hasNewAccessToken:!!d.access_token,hasNewRefreshToken:!!d.refresh_token,hasIdToken:!!d.id_token,expiresIn:d.expires_in}),{accessToken:d.access_token,refreshToken:d.refresh_token||a,idToken:d.id_token,expiresIn:d.expires_in}}catch(a){return b?.error?.("TOKEN_REFRESH",`Network error refreshing Codex token: ${a.message}`),null}},b):null}async function u(a,b,d){if(a?.profileArn)return{};let e=d?.trim?.()||null;if(!e){let{fetchKiroProfileArn:a}=await Promise.all([c.e(7774),c.e(4646),c.e(1847),c.e(4378),c.e(576),c.e(9865),c.e(1187),c.e(8644),c.e(7677),c.e(73),c.e(7594),c.e(1733),c.e(9026),c.e(369),c.e(6420)]).then(c.bind(c,36187));e=await a(b)}return e?{providerSpecificData:{profileArn:e}}:{}}async function v(a,b,c,d=null){return a?i("kiro",a,async()=>{let f=b?.authMethod,h=b?.clientId,i=b?.clientSecret,k=b?.region;if("external_idp"===f){let e;try{e=(0,j.uo)(a,b)}catch(a){return c?.warn?.("TOKEN_REFRESH",`Invalid Kiro external_idp refresh config: ${a.message}`),null}let f=await (0,g.proxyAwareFetch)(e.tokenEndpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:e.body},d);if(!f.ok){let a=await f.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro external_idp token",{status:f.status,error:a}),null}let h=await f.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro external_idp token",{hasNewAccessToken:!!h.access_token,hasNewRefreshToken:!!h.refresh_token,expiresIn:h.expires_in}),{accessToken:h.access_token,refreshToken:h.refresh_token||a,expiresIn:h.expires_in,providerSpecificData:e.providerSpecificData}}if(h&&i){let e="idc"===f&&k?`https://oidc.${k}.amazonaws.com/token`:"https://oidc.us-east-1.amazonaws.com/token",j=await (0,g.proxyAwareFetch)(e,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:h,clientSecret:i,refreshToken:a,grantType:"refresh_token"})},d);if(!j.ok){let a=await j.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro AWS token",{status:j.status,error:a}),null}let l=await j.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro AWS token",{hasNewAccessToken:!!l.accessToken,expiresIn:l.expiresIn}),{accessToken:l.accessToken,refreshToken:l.refreshToken||a,expiresIn:l.expiresIn,...await u(b,l.accessToken,l.profileArn)}}let l=await (0,g.proxyAwareFetch)(e.xq.kiro.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"kiro-cli/1.0.0"},body:JSON.stringify({refreshToken:a})},d);if(!l.ok){let a=await l.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro social token",{status:l.status,error:a}),null}let m=await l.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro social token",{hasNewAccessToken:!!m.accessToken,expiresIn:m.expiresIn}),{accessToken:m.accessToken,refreshToken:m.refreshToken||a,expiresIn:m.expiresIn,...await u(b,m.accessToken,m.profileArn)}},c):null}async function w(a,b){return n("iflow",a,{},b)}async function x(a,b){return n("github",a,{},b)}async function y(a,b){return a?i("copilot",a,async()=>{try{let c=await fetch(e.sr.github?.copilotTokenUrl,{headers:{Authorization:`token ${a}`,"User-Agent":f.x0.USER_AGENT,"Editor-Version":`vscode/${f.x0.VSCODE_VERSION}`,"Editor-Plugin-Version":`copilot-chat/${f.x0.COPILOT_CHAT_VERSION}`,Accept:"application/json","x-github-api-version":f.x0.API_VERSION}});if(!c.ok){let a=await c.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh Copilot token",{status:c.status,error:a}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Copilot token",{hasToken:!!d.token,expiresAt:d.expires_at}),{token:d.token,expiresAt:d.expires_at}}catch(a){return b?.error?.("TOKEN_REFRESH","Error refreshing Copilot token",{error:a.message}),null}},b):null}async function z(a,b){return a?i("codebuddy-cn",a,async()=>{let c=e.sr["codebuddy-cn"]||{},d=await fetch(c.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":c.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-Refresh-Token":a,"X-Auth-Refresh-Source":"plugin","X-Product":"SaaS"},body:"{}"});if(!d.ok){let a=await d.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh CodeBuddy token",{status:d.status,error:a}),null}let f=await d.json();return 0===f.code&&f.data?.accessToken?(b?.info?.("TOKEN_REFRESH","Successfully refreshed CodeBuddy token",{hasNewAccessToken:!!f.data.accessToken,hasNewRefreshToken:!!f.data.refreshToken,expiresIn:f.data.expiresIn}),{accessToken:f.data.accessToken,refreshToken:f.data.refreshToken||a,expiresIn:f.data.expiresIn}):(b?.error?.("TOKEN_REFRESH","CodeBuddy token refresh returned no token",{code:f.code,msg:f.msg}),null)},b):null}async function A(a,b){return a?i("codebuddy-intl",a,async()=>{let c=e.sr["codebuddy-intl"]||{},d=await fetch(c.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":c.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"www.codebuddy.ai","X-Refresh-Token":a,"X-Auth-Refresh-Source":"plugin","X-Product":"SaaS"},body:"{}"});if(!d.ok){let a=await d.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh CodeBuddy intl token",{status:d.status,error:a}),null}let f=await d.json();return 0===f.code&&f.data?.accessToken?(b?.info?.("TOKEN_REFRESH","Successfully refreshed CodeBuddy intl token",{hasNewAccessToken:!!f.data.accessToken,hasNewRefreshToken:!!f.data.refreshToken,expiresIn:f.data.expiresIn}),{accessToken:f.data.accessToken,refreshToken:f.data.refreshToken||a,expiresIn:f.data.expiresIn}):(b?.error?.("TOKEN_REFRESH","CodeBuddy intl token refresh returned no token",{code:f.code,msg:f.msg}),null)},b):null}async function B(a,b,c){if(!a)return null;let d=e.sr.trae||{},f=d.exchangeTokenUrl||d.tokenUrl;return f?i("trae",a,async()=>{try{let b,e=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"Trae/1.0.0 antigravity-cockpit-tools"},body:JSON.stringify({ClientID:d.clientId||"ono9krqynydwx5",RefreshToken:a,ClientSecret:d.clientSecret||"-",UserID:""})});if(!e.ok){let a=await e.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Trae token",{status:e.status,error:a}),null}let g=await e.json(),h=g?.Result||g?.result||g,i=h?.AccessToken||h?.accessToken;if(!i)return c?.error?.("TOKEN_REFRESH","Trae refresh returned no AccessToken",{payload:g}),null;let j=h?.RefreshToken||h?.refreshToken||a,k=h?.ExpiresAt||h?.expiresAt;if("number"==typeof k)b=Math.max(1,k-Math.floor(Date.now()/1e3));else if("string"==typeof k){let a=new Date(k).getTime()-Date.now();b=a>0?Math.floor(a/1e3):void 0}return c?.info?.("TOKEN_REFRESH","Successfully refreshed Trae token",{hasNewAccessToken:!!i,hasNewRefreshToken:j!==a,expiresIn:b}),{accessToken:i,refreshToken:j,expiresIn:b}}catch(a){return c?.error?.("TOKEN_REFRESH",`Error refreshing Trae token: ${a.message}`),null}},c):(c?.warn?.("TOKEN_REFRESH","No Trae exchangeTokenUrl configured"),null)}function C(){return null}async function D(a,b){return b?.info?.("TOKEN_REFRESH","windsurf: apiKey is long-lived (no refresh_token flow) — skipping"),null}async function E(a,b="intl",d){return a?i(`qoder:${b||"intl"}`,a,async()=>{try{let e=new(await Promise.all([c.e(4646),c.e(1847),c.e(4378),c.e(1531)]).then(c.bind(c,91531))).QoderService({profile:b}),f=await e.refreshDeviceToken(a);return d?.info?.("TOKEN_REFRESH","Successfully refreshed Qoder device token",{profile:b,hasNewAccessToken:!!f.accessToken,hasNewRefreshToken:!!f.refreshToken,expiresIn:f.expiresIn}),{accessToken:f.accessToken,refreshToken:f.refreshToken||a,expiresIn:f.expiresIn}}catch(c){let a=c?.status;if(d?.error?.("TOKEN_REFRESH",`Qoder device refresh failed (${b})`,{error:c?.message||String(c),status:a}),401===a||403===a)return{error:"invalid_grant",message:c?.message||"Qoder refresh rejected"};return null}},d):null}async function F(a,b){return a?i("frontier-for-all",a,async()=>{try{let c=await fetch(f.NA["frontier-for-all"].token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:e.xq["frontier-for-all"].clientId})});if(!c.ok){let a=await c.text().catch(()=>""),d=s(a,c.status);if(d.permanent)return b?.error?.("TOKEN_REFRESH","Frontier refresh token rotated or revoked. Re-login required.",{status:c.status,code:d.code}),{error:"unrecoverable_refresh_error",code:d.code};return b?.error?.("TOKEN_REFRESH","Failed to refresh Frontier token",{status:c.status,error:a}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Frontier token",{hasNewAccessToken:!!d.access_token,hasNewRefreshToken:!!d.refresh_token,expiresIn:d.expires_in}),{accessToken:d.access_token,refreshToken:d.refresh_token||a,expiresIn:d.expires_in}}catch(a){return b?.error?.("TOKEN_REFRESH",`Network error refreshing Frontier token: ${a.message}`),null}},b):null}async function G(a,b){return a?i("cursor",a,async()=>{try{let c=await new d.q().refreshToken(a);return b?.info?.("TOKEN_REFRESH","Successfully refreshed Cursor token",{hasNewAccessToken:!!c.accessToken,hasNewRefreshToken:!!c.refreshToken,expiresIn:c.expiresIn}),c}catch(a){return b?.warn?.("TOKEN_REFRESH",`Cursor refresh failed: ${a?.message||a}`),null}},b):null}},28730:(a,b,c)=>{let d;c.d(b,{Ch:()=>k,Cn:()=>p,Co:()=>z,Ic:()=>w,J5:()=>t,K:()=>u,NA:()=>C,QH:()=>q,Wu:()=>B,buildKimiHeaders:()=>D,dw:()=>s,go:()=>j,iO:()=>A,j5:()=>x,nZ:()=>v,sX:()=>l,uR:()=>r,x0:()=>n,zv:()=>y});var e=c(21820),f=c(4630),g=c(92675),h=c(8086);let i=f.xq["gemini-cli"]?.cliVersion,j=f.xq["gemini-cli"]?.apiClient,k=f.xq.codex?.cliVersion;function l(a="unknown"){let b;return`GeminiCLI/${i}/${a||"unknown"} (${(0,e.platform)()}; ${"ia32"===(b=(0,e.arch)())?"x86":b}; terminal)`}let m=f.xq.github?.copilot||{},n={VSCODE_VERSION:m.vscodeVersion,COPILOT_CHAT_VERSION:m.chatVersion,USER_AGENT:m.userAgent,API_VERSION:m.apiVersion,AUTO_API_VERSION:m.autoApiVersion,AUTO_TIMEOUT_MS:m.autoTimeoutMs,AUTO_SESSION_REFRESH_WINDOW_MS:m.autoSessionRefreshWindowMs};function o(){let a=(0,e.platform)(),b=(0,e.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let p={ideType:9,platform:o(),pluginType:2},q="_ide",r="_ide",s=new Set(["Task","TaskOutput","TaskStop","TaskCreate","TaskGet","TaskUpdate","TaskList","Bash","Glob","Grep","Read","Edit","Write","NotebookEdit","WebFetch","WebSearch","AskUserQuestion","Skill","EnterPlanMode","ExitPlanMode"]),t=new Set(["browser_subagent","command_status","find_by_name","generate_image","grep_search","list_dir","list_resources","multi_replace_file_content","notify_user","read_resource","read_terminal","read_url_content","replace_file_content","run_command","search_web","send_command_input","task_boundary","view_content_chunk","view_file","write_to_file"]),u={"User-Agent":g.Of},v={"gemini-cli":{loadCodeAssist:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUser:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser"},antigravity:{loadCodeAssist:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUser:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser"}},w={"Content-Type":"application/json","User-Agent":"google-api-nodejs-client/9.15.1","X-Goog-Api-Client":"google-cloud-sdk vscode_cloudshelleditor/0.1","Client-Metadata":JSON.stringify({ideType:9,platform:o(),pluginType:2})},x={"Content-Type":"application/json","User-Agent":g.Of},y={ideType:9,platform:o(),pluginType:2},z="You are Claude Code, Anthropic's official CLI for Claude.",A=[{from:"You are a Claude agent, built on Anthropic's Claude Agent SDK.",to:""},{from:/You are Hermes(?: Agent)?(?:,\s*(?:an intelligent AI assistant|an AI assistant|an AI agent))?(?:,?\s*(?:built|created)\s+by\s+Nous Research)?\./gi,to:"You are an AI assistant."},{from:/^x-anthropic-billing-header:[^\n]*(?:\r?\n)*/gim,to:""},{from:/opencode/gi,to:a=>"OpenCode"===a?"Antigravity":"OPENCODE"===a?"ANTIGRAVITY":"antigravity"}],B=Object.fromEntries(Object.entries(f.sr).filter(([,a])=>a.refreshLeadMs).map(([a,b])=>[a,b.refreshLeadMs])),C={google:{token:"https://oauth2.googleapis.com/token",auth:"https://accounts.google.com/o/oauth2/auth"},openai:{token:f.sr.codex?.tokenUrl,auth:f.sr.codex?.authorizeUrl},anthropic:{token:f.sr.claude?.tokenUrl,auth:"https://api.anthropic.com/v1/oauth/authorize"},iflow:{token:f.sr.iflow?.tokenUrl,auth:f.sr.iflow?.authorizeUrl},github:{token:f.sr.github?.tokenUrl,auth:f.sr.github?.authorizeUrl,deviceCode:f.sr.github?.deviceCodeUrl},"frontier-for-all":{token:f.sr["frontier-for-all"]?.tokenUrl,auth:f.sr["frontier-for-all"]?.deviceCodeUrl,deviceCode:f.sr["frontier-for-all"]?.deviceCodeUrl,deviceToken:f.sr["frontier-for-all"]?.deviceTokenUrl,revoke:f.sr["frontier-for-all"]?.revokeUrl}};function D(a){let b=(0,e.platform)(),c=(0,e.arch)(),f=`${b} ${c}`;"darwin"===b?f=`macOS ${c}`:"win32"===b?f=`Windows ${c}`:"linux"===b&&(f=`Linux ${c}`);let g="unknown";try{g=(0,e.hostname)()||"unknown"}catch{g="unknown"}let i="string"==typeof a&&a.trim()?a.trim():`kimi-${Date.now()}`;return{"X-Msh-Platform":"9router","X-Msh-Version":function(){if(d)return d;try{d=(0,h.createRequire)("file:///Volumes/Files/Projects/EzRouter/EzRouter/open-sse/config/appConstants.js")("../../package.json").version||"0.0.0"}catch{d=process.env.npm_package_version||"0.0.0"}return d}(),"X-Msh-Device-Name":g,"X-Msh-Device-Model":f,"X-Msh-Device-Id":i}}},31024:(a,b,c)=>{c.d(b,{q:()=>h});var d=c(55511),e=c.n(d),f=c(92990);function g(a){let b="string"==typeof a?a.split("."):[];if(3!==b.length||!b[1])return null;try{return JSON.parse(Buffer.from(b[1],"base64url").toString("utf8"))}catch{return null}}class h{constructor(){this.config=f.WN}getAuthorizationData(a="login"){let b=e().randomBytes(32).toString("base64url"),c=e().createHash("sha256").update(b).digest("base64url"),d=e().randomUUID(),f=new URLSearchParams({challenge:c,uuid:d,mode:a,supportsSelectedTeamLogin:"true"});return{authUrl:`${this.config.loginUrl}?${f.toString()}`,uuid:d,verifier:b,expiresIn:300}}async pollToken(a,b,c){if(!a||!b)throw Error("Cursor OAuth session is incomplete");let d=new URLSearchParams({uuid:a,verifier:b}),f=await fetch(`${this.config.pollUrl}?${d.toString()}`,{headers:{Accept:"application/json","User-Agent":"Cursor/3.12.29","x-cursor-client-type":this.config.clientType,"x-ghost-mode":"implicit-false","x-new-onboarding-completed":"false",traceparent:`00-${e().randomBytes(16).toString("hex")}-${e().randomBytes(8).toString("hex")}-01`},signal:c});if(404===f.status)return{success:!1,pending:!0,error:"authorization_pending"};if(!f.ok)throw Error(`Cursor OAuth polling failed with HTTP ${f.status}`);let g=await f.json();if(!g.accessToken||!g.refreshToken)throw Error("Cursor OAuth response was missing tokens");return{success:!0,tokens:g}}async refreshToken(a){let b;if(!a||"string"!=typeof a)throw Error("Cursor refresh token is required");for(let d=0;d<3;d+=1){var c;try{let c=await fetch(this.config.refreshUrl,{method:"POST",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:"{}",signal:AbortSignal.timeout(15e3)});if(c.ok){let b=await c.json();if(!b.accessToken)throw Error("Cursor refresh response was missing an access token");return this.mapTokens(b.accessToken,b.refreshToken||a)}if(429!==c.status&&c.status<500){let a=Error(`Cursor token refresh failed with HTTP ${c.status}`);throw a.retryable=!1,a}b=Error(`Cursor token refresh failed with HTTP ${c.status}`)}catch(a){if(!1===a.retryable)throw a;b=a}d<2&&await function(a){return new Promise(b=>setTimeout(b,a))}((c=d,Math.floor(300*2**c*(.8+.4*Math.random()))))}throw b||Error("Cursor token refresh failed")}mapTokens(a,b,c=null,d="oauth"){let e,f=(e=g(a),"number"==typeof e?.exp?1e3*e.exp-3e5:Date.now()+36e5),h=this.extractUserInfo(a);return{accessToken:a,refreshToken:b,...c?{machineId:c}:{},expiresAt:new Date(f).toISOString(),expiresIn:Math.max(1,Math.floor((f-Date.now())/1e3)),email:h?.email||null,providerSpecificData:{authMethod:d,...c?{machineId:c}:{},...h?.userId?{userId:h.userId}:{}}}}async validateImportToken(a,b){if(!a||"string"!=typeof a)throw Error("Access token is required");if(!b||"string"!=typeof b)throw Error("Machine ID is required");if(a.length<50)throw Error("Invalid token format. Token appears too short.");if(!/^[a-f0-9-]{32,}$/i.test(b.replace(/-/g,"")))throw Error("Invalid machine ID format. Expected UUID format.");return this.mapTokens(a,null,b,"imported")}extractUserInfo(a){let b=g(a);return b?{email:"string"==typeof b.email&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b.email)?b.email:null,userId:b.sub||b.user_id||null}:null}getTokenStorageInstructions(){return{title:"How to import your existing Cursor session",steps:["Open Cursor IDE and make sure you're logged in",`Linux: ${this.config.tokenStoragePaths.linux}`,`macOS: ${this.config.tokenStoragePaths.macos}`,`Windows: ${this.config.tokenStoragePaths.windows}`,"Read cursorAuth/accessToken and storage.serviceMachineId from itemTable"]}}}},85640:(a,b,c)=>{c.d(b,{$B:()=>o,I9:()=>f.I9,Og:()=>i,Ql:()=>f.Ql,Sc:()=>j,Wm:()=>f.Wm,go:()=>f.go,jR:()=>f.jR,jT:()=>h,oD:()=>g,pb:()=>l,qZ:()=>p});var d=c(4630),e=c(28730),f=c(21362);let g=3e5;function h(a){return a&&"object"==typeof a&&("unrecoverable_refresh_error"===a.error||"refresh_token_reused"===a.error||"invalid_request"===a.error||"invalid_grant"===a.error)}function i(a){return e.Wu[a]?e.Wu[a]:"kimi-coding"===a&&e.Wu.kimi?e.Wu.kimi:g}function j(a){if("string"!=typeof a)return null;try{let b=JSON.parse(a);if("service_account"===b.type&&b.client_email&&b.private_key&&b.project_id)return b;return null}catch{return null}}let k=new Map;async function l(a,b){let d=a.client_email,f=k.get(d);if(f&&f.expiresAt-Date.now()>3e5)return{accessToken:f.token,expiresAt:f.expiresAt};try{let{SignJWT:f,importPKCS8:g}=await Promise.all([c.e(4433),c.e(1455)]).then(c.bind(c,71455));b?.debug?.("TOKEN_REFRESH",`Vertex minting token for ${a.client_email}`);let h=await g(a.private_key.replace(/\\n/g,"\n"),"RS256"),i=Math.floor(Date.now()/1e3),j=await new f({scope:"https://www.googleapis.com/auth/cloud-platform"}).setProtectedHeader({alg:"RS256"}).setIssuer(a.client_email).setAudience(e.NA.google.token).setIssuedAt(i).setExpirationTime(i+3600).sign(h),l=await fetch(e.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:j})});if(!l.ok){let a=await l.text();return b?.error?.("TOKEN_REFRESH",`Vertex token mint failed: ${a}`),null}let{access_token:m,expires_in:n}=await l.json(),o=Date.now()+(n??3600)*1e3;return k.set(d,{token:m,expiresAt:o}),b?.info?.("TOKEN_REFRESH",`Vertex token minted for ${a.client_email}`),{accessToken:m,expiresAt:o}}catch(a){return b?.error?.("TOKEN_REFRESH",`Vertex token error: ${a.message}`),null}}function m(a,b){let c=j(a.apiKey);return c?l(c,b):null}let n={"frontier-for-all":(a,b)=>(0,f.go)(a.refreshToken,b),"gemini-cli":(a,b)=>(0,f.I9)(a.refreshToken,d.xq["gemini-cli"].clientId,d.xq["gemini-cli"].clientSecret,b),antigravity:(a,b)=>(0,f.I9)(a.refreshToken,d.xq.antigravity.clientId,d.xq.antigravity.clientSecret,b),claude:(a,b)=>(0,f.ge)(a.refreshToken,b),codex:(a,b)=>(0,f.Wm)(a.refreshToken,b),iflow:(a,b)=>(0,f.AH)(a.refreshToken,b),github:(a,b)=>(0,f.EF)(a.refreshToken,b),kiro:(a,b)=>(0,f.Ql)(a.refreshToken,a.providerSpecificData,b),cursor:(a,b)=>(0,f.ZP)(a.refreshToken,b),xai:(a,b)=>(0,f.r_)(a.refreshToken,b),"grok-cli":(a,b)=>(0,f.r_)(a.refreshToken,b),gcli:(a,b)=>(0,f.r_)(a.refreshToken,b),"codebuddy-cn":(a,b)=>(0,f.SO)(a.refreshToken,b),"codebuddy-intl":(a,b)=>(0,f.XB)(a.refreshToken,b),trae:(a,b)=>(0,f.RM)(a.refreshToken,a,b),cline:(a,b)=>(0,f.Il)(a.refreshToken,b),clinepass:(a,b)=>(0,f.Il)(a.refreshToken,b),zed:()=>(0,f.wt)(),windsurf:(a,b)=>(0,f.p9)(a,b),kimi:(a,b)=>(0,f.ng)(a.refreshToken,a,b),"kimi-coding":(a,b)=>(0,f.ng)(a.refreshToken,a,b),vertex:m,"vertex-partner":m};async function o(a,b,c){let d=b.refreshToken||b.providerSpecificData?.refreshToken;if(!d)return null;let e=d!==b.refreshToken?{...b,refreshToken:d}:b,g=n[a];return g?g(e,c):(0,f.J1)(a,d,e,c)}async function p(a,b=3,c=null){for(let d=0;d<b;d++){if(d>0){let a=1e3*d;c?.debug?.("TOKEN_REFRESH",`Retry ${d}/${b} after ${a}ms`),await new Promise(b=>setTimeout(b,a))}try{let b=await a();if(b)return b}catch(a){c?.warn?.("TOKEN_REFRESH",`Attempt ${d+1}/${b} failed: ${a.message}`)}}return c?.error?.("TOKEN_REFRESH",`All ${b} retry attempts failed`),null}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=823,exports.ids=[823],exports.modules={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}}))}},49263:(a,b,c)=>{c.d(b,{Bl:()=>k,Ib:()=>e,Qo:()=>g,S5:()=>m,hk:()=>f,kJ:()=>l});var d=c(87252);function e(a,b=Date.now()){let c;if(!a)return null;let d="string"==typeof a?a:JSON.stringify(a);if(c=d.match(/"?retry[_-]?delay"?\s*[:=]\s*"?\s*([0-9]+(?:\.[0-9]+)?)\s*s/i))return Math.round(1e3*parseFloat(c[1]));if(c=d.match(/"?(?:resets?_at|x-?ratelimit-?reset|ratelimit-?reset)"?\s*[:=]\s*"?\s*([0-9]{9,})/i)){let a=parseInt(c[1],10);a<1e12&&(a*=1e3);let d=a-b;return d>0?d:null}return(c=d.match(/"?retry[_-]?after"?\s*[:=]\s*"?\s*([0-9]+)\b/i))?1e3*parseInt(c[1],10):null}function f(a,b,c=0){let g=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"",h=g.includes("invalid_encrypted_content")||g.includes("encrypted content")&&(g.includes("could not be verified")||g.includes("could not be decrypted or parsed"));if(400===a&&h)return{shouldFallback:!1,cooldownMs:0};if(d.t2.find(b=>b.status===a&&!1===b.fallback))return{shouldFallback:!1,cooldownMs:0,newBackoffLevel:c};for(let f of d.t2)if(f.pattern&&g&&f.pattern.test(g)||f.text&&g&&g.includes(f.text)||f.status&&f.status===a){if(f.permanent||!1===f.fallback)return{shouldFallback:!1,cooldownMs:0};if(f.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a,b){let c=function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),f=e(b);return null!=f&&f>0?Math.min(Math.max(f,c),d.fh):c}(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:f.cooldownMs}}return d.w6.has(a)?{shouldFallback:!1,cooldownMs:0}:{shouldFallback:!0,cooldownMs:d.wf}}function g(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let h="modelLock_",i=`${h}__all`;function j(a){return a?`${h}${a}`:i}function k(a,b){let c=Date.now(),d=a=>{if(!a)return!1;let b=new Date(a).getTime();return Number.isFinite(b)&&b>c};return d(a[j(b)])||d(a[i])}function l(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(h)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function m(a,b){return{[j(a)]:new Date(Date.now()+b).toISOString()}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>C,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>G,S6:()=>s,SK:()=>E,Td:()=>A,Tx:()=>q,V1:()=>H,WN:()=>t,Ww:()=>I,YT:()=>n,ZL:()=>m,aV:()=>u,cD:()=>o,eD:()=>F,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>D,qp:()=>B,t3:()=>l,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"]};({...f.sr.qwen});let k={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let l={...f.sr["qoder-cn"]},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"]},C={...f.sr["codebuddy-intl"]},D={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},E={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},F={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},G={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},H={...f.sr["frontier-for-all"]},I=3e5}};
|
|
1
|
+
"use strict";exports.id=823,exports.ids=[823],exports.modules={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}}))}},49263:(a,b,c)=>{c.d(b,{Bl:()=>k,Ib:()=>e,Qo:()=>g,S5:()=>m,hk:()=>f,kJ:()=>l});var d=c(87252);function e(a,b=Date.now()){let c;if(!a)return null;let d="string"==typeof a?a:JSON.stringify(a);if(c=d.match(/"?retry[_-]?delay"?\s*[:=]\s*"?\s*([0-9]+(?:\.[0-9]+)?)\s*s/i))return Math.round(1e3*parseFloat(c[1]));if(c=d.match(/"?(?:resets?_at|x-?ratelimit-?reset|ratelimit-?reset)"?\s*[:=]\s*"?\s*([0-9]{9,})/i)){let a=parseInt(c[1],10);a<1e12&&(a*=1e3);let d=a-b;return d>0?d:null}return(c=d.match(/"?retry[_-]?after"?\s*[:=]\s*"?\s*([0-9]+)\b/i))?1e3*parseInt(c[1],10):null}function f(a,b,c=0,g=null){let h=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"",i=h.includes("invalid_encrypted_content")||h.includes("encrypted content")&&(h.includes("could not be verified")||h.includes("could not be decrypted or parsed"));if(400===a&&i)return{shouldFallback:!1,cooldownMs:0};if(d.t2.find(b=>b.status===a&&!1===b.fallback))return{shouldFallback:!1,cooldownMs:0,newBackoffLevel:c};for(let f of d.t2)if((!f.provider||f.provider===g)&&(f.pattern&&h&&f.pattern.test(h)||f.text&&h&&h.includes(f.text)||f.status&&f.status===a)){if(f.permanent||!1===f.fallback)return{shouldFallback:!1,cooldownMs:0};if(f.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a,b){let c=function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),f=e(b);return null!=f&&f>0?Math.min(Math.max(f,c),d.fh):c}(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:f.cooldownMs}}return d.w6.has(a)?{shouldFallback:!1,cooldownMs:0}:{shouldFallback:!0,cooldownMs:d.wf}}function g(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let h="modelLock_",i=`${h}__all`;function j(a){return a?`${h}${a}`:i}function k(a,b){let c=Date.now(),d=a=>{if(!a)return!1;let b=new Date(a).getTime();return Number.isFinite(b)&&b>c};return d(a[j(b)])||d(a[i])}function l(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(h)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function m(a,b){return{[j(a)]:new Date(Date.now()+b).toISOString()}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>C,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>I,S6:()=>s,SK:()=>F,Td:()=>A,Tx:()=>q,V1:()=>J,WN:()=>t,Ww:()=>K,YT:()=>n,ZL:()=>m,_0:()=>H,aV:()=>u,cD:()=>o,eD:()=>G,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>E,qp:()=>B,sA:()=>D,t3:()=>l,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"]};({...f.sr.qwen});let k={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let l={...f.sr["qoder-cn"]},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"]},C={...f.sr["codebuddy-intl"]},D={...f.sr.muse},E={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},F={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},G={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},H={...f.sr.glm},I={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},J={...f.sr["frontier-for-all"]},K=3e5}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=8231,exports.ids=[7753,8231],exports.modules={48595:(a,b,c)=>{c.d(b,{UY:()=>g,oc:()=>h});var d=c(90053),e=c(63995),f=c(78492);Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),Object.freeze(["gemini-live"]),d.rE;let g={maxLines:200,pollIntervalMs:1e3,streamTimeoutMs:5e3},h={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingInactiveSession:!0,inactiveMinPingIntervalMs:18e6,pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},78231:(a,b,c)=>{c.r(b),c.d(b,{configureQuotaAutoPing:()=>W,runQuotaAutoPingTick:()=>T,startQuotaAutoPing:()=>U,stopQuotaAutoPing:()=>V}),c(73960);var d=c(70321),e=c(55511),f=c(26762),g=c(74570),h=c(15251);let i=a=>h.xq[a]?.usage||{};function j(a){if(!a)return null;try{if(a instanceof Date)return a.toISOString();if("number"==typeof a)return new Date(a<1e12?1e3*a:a).toISOString();if("string"==typeof a){if(/^\d+$/.test(a)){let b=Number(a);return new Date(b<1e12?1e3*b:b).toISOString()}return new Date(a).toISOString()}return null}catch(b){return console.warn(`Failed to parse reset time: ${a}`,b),null}}function k(a,b=0){if("number"==typeof a&&Number.isFinite(a))return a;if("string"==typeof a&&a.trim()){let b=Number(a);if(Number.isFinite(b))return b}return b}let l={oauthUsageUrl:i("claude").oauthUrl,usageUrl:i("claude").orgUrl,settingsUrl:i("claude").settingsUrl,profileUrl:i("claude").profileUrl,resetUrl:i("claude").resetUrl,apiVersion:g.b8,userAgent:`claude-cli/${g.t4} (external, cli)`},m=new Map,n=new Map;function o(a,b){for(m.delete(a),m.set(a,b);m.size>128;)m.delete(m.keys().next().value)}function p(a,b,c,d){if("number"==typeof c&&Number.isFinite(c)&&!Object.keys(a).some(a=>a.toLowerCase()===b.toLowerCase())){let e,f;a[b]=(f=100-(e=Math.min(100,Math.max(0,c))),{used:e,total:100,remaining:f,remainingPercentage:f,resetAt:j(d),unlimited:!1})}}async function q(a,b,c){try{let d=await (0,f.Fm)(`${l.oauthUsageUrl}?cedar_ember=1`,{method:"GET",headers:{Authorization:`Bearer ${a}`,"anthropic-beta":"oauth-2025-04-20","anthropic-version":l.apiVersion,"User-Agent":l.userAgent},signal:AbortSignal.timeout(5e3)},b);if(d.ok){let a=function(a){let b={};for(let[c,d]of(p(b,"session (5h)",a?.five_hour?.utilization,a?.five_hour?.resets_at),p(b,"weekly (7d)",a?.seven_day?.utilization,a?.seven_day?.resets_at),Object.entries(a||{})))c.startsWith("seven_day_")&&d&&"object"==typeof d&&p(b,`weekly ${c.slice(10)} (7d)`,d.utilization,d.resets_at);for(let c of[...Array.isArray(a?.limits)?a.limits:[],...Array.isArray(a?.rate_limits)?a.rate_limits:[]]){let a=String(c?.group||"").toLowerCase(),d=String(c?.kind||"").toLowerCase();if("session"===d||"session"===a){p(b,"session (5h)",c.percent,c.resets_at);continue}if("weekly_scoped"===d||"weekly"===a){let a=c?.scope?.model?.display_name||c?.scope?.surface?.display_name;p(b,a?`weekly ${a} (7d)`:"weekly (7d)",c.percent,c.resets_at)}}return{plan:"Claude Code",extraUsage:a?.extra_usage??null,resetCredits:function(a){if(!a?.eligible||!Array.isArray(a.grants))return null;let b=a.grants.filter(a=>a?.id&&!a.paused&&Number(a.resets_left)>0),c=b.find(b=>b.id===a.next_grant_id)||b[0]||null;return{availableCount:b.reduce((a,b)=>a+Number(b.resets_left),0),nextGrantId:c?.id||null,expiresAt:c?.ends_at||null,clears:c?.clears||[],cooldownUntil:a.cooldown_until||null,weeklyResetsAt:a.weekly_resets_at||null,grants:a.grants.filter(a=>a?.id).map(a=>({id:a.id,label:a.label||"",resetsLeft:Number(a.resets_left)||0,resetsTotal:Number(a.resets_total)||0,startsAt:a.starts_at||null,endsAt:a.ends_at||null,clears:Array.isArray(a.clears)?a.clears:[],paused:!0===a.paused,usableNow:!0===a.usable_now,useRequiresLimit:!1!==a.use_requires_limit}))}}(a?.cedar_ember),quotas:b}}(await d.json());return o(c,{value:a,expiresAt:Date.now()+65e3,retryAt:0}),a}if(429===d.status){let a,b=Date.now(),e=m.get(c),f=e?.value||{message:"Claude usage is rate limited. Retry later."};return o(c,{value:f,expiresAt:e?.expiresAt||0,retryAt:b+(a=function(a,b){let c=String(a||"").trim();if(!c)return null;let d=Number(c);if(Number.isFinite(d))return d>=0?1e3*d:null;let e=Date.parse(c);return Number.isFinite(e)?Math.max(0,e-b):null}(d.headers.get("retry-after"),b),null===a&&d.headers.forEach((c,d)=>{if(!/^anthropic-ratelimit-.+-reset$/i.test(d))return;let e=function(a,b){let c=String(a||"").trim();if(!c)return null;let d=Number(c),e=Number.isFinite(d)?d<1e12?1e3*d:d:Date.parse(c);return Number.isFinite(e)&&e>b&&e<=864e13?e-b:null}(c,b);null!==e&&(null===a||e>a)&&(a=e)}),Math.min(18e5,Math.max(18e4,a??18e4)))}),f}if(401===d.status)return{message:"Claude authentication expired (401). Re-authorize or refresh the connection."};if(404===d.status||405===d.status){let d=await r(a,b);return d.cacheable&&o(c,{value:d.value,expiresAt:Date.now()+65e3,retryAt:0}),d.value}return{message:`Claude connected. Usage endpoint returned HTTP ${d.status}.`}}catch{return{message:"Claude connected. Unable to fetch usage."}}}async function r(a,b=null){try{let c=await (0,f.Fm)(l.settingsUrl,{method:"GET",headers:{Authorization:`Bearer ${a}`,"anthropic-version":l.apiVersion}},b);if(c.ok){let d=await c.json();if(d.organization_id){let c=await (0,f.Fm)(l.usageUrl.replace("{org_id}",d.organization_id),{method:"GET",headers:{Authorization:`Bearer ${a}`,"anthropic-version":l.apiVersion}},b);if(c.ok){let a=await c.json();return{cacheable:!0,value:{plan:d.plan||"Unknown",organization:d.organization_name,quotas:a}}}return{cacheable:!1,value:{plan:d.plan||"Unknown",organization:d.organization_name,message:"Claude connected. Usage details require admin access."}}}return{cacheable:!0,value:{plan:d.plan||"Unknown",organization:d.organization_name,message:"Claude connected. Usage details require admin access."}}}return{cacheable:!1,value:{message:"Claude connected. Usage endpoint requires OAuth."}}}catch(a){return{cacheable:!1,value:{message:`Claude connected. Error checking usage: ${a.message}`}}}}var s=c(53261);let t={usageUrl:i("codex").url,resetCreditsUrl:i("codex").resetCreditsUrl,resetCreditsConsumeUrl:i("codex").resetCreditsConsumeUrl};function u(a,b={},c={},d=null){let e={Authorization:`Bearer ${a}`,Accept:"application/json",originator:"codex_cli_rs",...c},f=(0,s.a)(b,d);return f&&(e["ChatGPT-Account-ID"]=f),e}function v(a){return!a||"object"!=typeof a||Array.isArray(a)?null:a.rate_limit&&"object"==typeof a.rate_limit?a.rate_limit:a}function w(a){let b=Math.max(0,Math.min(100,k(a?.used_percent??a?.percent_used,0)));return{used:b,total:100,remaining:Math.max(0,100-b),resetAt:j(a?.reset_at??a?.resets_at??a?.resetAt??null),unlimited:!1}}function x(a,b,c){let d=v(c);if(!d)return!1;let e=d.primary_window||d.primary||c.primary_window||c.primary,f=d.secondary_window||d.secondary||c.secondary_window||c.secondary,g=!1;return e&&(a[b?`${b}_session`:"session"]=w(e),g=!0),f&&(a[b?`${b}_weekly`:"weekly"]=w(f),g=!0),g}async function y(a,b={},c=null,d=null){var e,g,h;[b,c]=(e=b,!(g=c)&&(h=e)&&"object"==typeof h&&("connectionProxyEnabled"in h||"connectionProxyUrl"in h||"connectionNoProxy"in h||"vercelRelayUrl"in h||"strictProxy"in h)?(0,s.a)(e,d)?[e,e]:[{},e]:[e||{},g]);try{let e=await (0,f.Fm)(t.usageUrl,{method:"GET",headers:u(a,b,{},d)},c);if(!e.ok)return{message:`Codex connected. Usage API temporarily unavailable (${e.status}).`};let g=await e.json(),h=g.rate_limit||g.rate_limits||g.rate_limits_by_limit_id?.codex||{},i=function(a){if(a.code_review_rate_limit||a.review_rate_limit)return a.code_review_rate_limit||a.review_rate_limit;let b=a.rate_limits_by_limit_id;return b&&"object"==typeof b&&!Array.isArray(b)?b.code_review||b.codex_review||b.review||null:(Array.isArray(a.additional_rate_limits)?a.additional_rate_limits:[]).find(a=>{let b=String(a?.limit_name||a?.metered_feature||a?.id||"").toLowerCase();return"code_review"===b||"codex_review"===b||"review"===b||b.includes("review")})||null}(g),j=function(a){if(a.spark_rate_limit||a.gpt_5_3_codex_spark_rate_limit)return a.spark_rate_limit||a.gpt_5_3_codex_spark_rate_limit;let b=a.rate_limits_by_limit_id;return b&&"object"==typeof b&&!Array.isArray(b)?b["gpt-5.3-codex-spark"]||b.gpt_5_3_codex_spark||b.spark||null:(Array.isArray(a.additional_rate_limits)?a.additional_rate_limits:[]).find(a=>{let b=String(a?.limit_name||a?.metered_feature||a?.id||"").toLowerCase();return b.includes("spark")||b.includes("5.3-codex-spark")})||null}(g),l=Math.max(0,k(g.rate_limit_reset_credits?.available_count,0)),m={};return x(m,"",h),x(m,"review",i),x(m,"spark",j),{plan:g.plan_type||g.summary?.plan||"unknown",limitReached:v(h)?.limit_reached||!1,reviewLimitReached:v(i)?.limit_reached||!1,sparkLimitReached:v(j)?.limit_reached||!1,resetCredits:{availableCount:l},quotas:m}}catch(a){throw Error(`Failed to fetch Codex usage: ${a.message}`)}}async function z(a,b=null,c=null,d=null){let e=new URL(i("codex").modelsUrl||"https://chatgpt.com/backend-api/codex/models");i("codex").clientVersion&&e.searchParams.set("client_version",i("codex").clientVersion);let g=u(a,c,{},d),h=await (0,f.Fm)(e,{method:"GET",headers:g},b);if(!h.ok)return[];let j=await h.json();return(Array.isArray(j?.models)?j.models:[]).filter(a=>a?.supported_in_api!==!1&&"string"==typeof a?.slug&&a.slug).sort((a,b)=>Number(a.priority||0)-Number(b.priority||0))}var A=c(76171),B=c(97753);function C(a){return null==a?"":String(a).trim()}async function D(a={}){try{let b=C(a?.proxyPoolId),c="__none__"===b?"":b,d=function(a={}){let b=a?.connectionProxyEnabled===!0,c=C(a?.connectionProxyUrl);return{connectionProxyEnabled:b,connectionProxyUrl:c,connectionNoProxy:C(a?.connectionNoProxy)}}(a);if(c){let a=await (0,B.hr)(c),b=C(a?.proxyUrl),d=C(a?.noProxy);if(a&&!0===a.isActive&&b){if("vercel"===a.type||"cloudflare"===a.type||"deno"===a.type)return{source:a.type,proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:d,strictProxy:!0===a.strictProxy,vercelRelayUrl:b};return{source:"pool",proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!0,connectionProxyUrl:b,connectionNoProxy:d,strictProxy:!0===a.strictProxy}}}if(d.connectionProxyEnabled&&d.connectionProxyUrl)return{source:"legacy",proxyPoolId:c||null,proxyPool:null,...d};return{source:"none",proxyPoolId:c||null,proxyPool:null,...d}}catch(a){return console.error("[resolveConnectionProxyConfig] Failed to resolve proxy config:",a),{source:"error",proxyPoolId:null,proxyPool:null,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:"",strictProxy:!1}}}h.sr.github?.apiVersion,h.sr.github?.userAgent,c(10793),i("antigravity"),g.Of,i("antigravity"),g.XP,g.Of,c(43835),i("minimax").urls,i("minimax-cn").urls,c(83382);let E=i("grok-cli"),F=E.url||"https://cli-chat-proxy.grok.com/v1/billing?format=credits";async function G(a,b=!1,c=null){let e=(0,A.SB)(a.provider),f={accessToken:a.accessToken,refreshToken:a.refreshToken,idToken:a.idToken,expiresAt:a.expiresAt||a.tokenExpiresAt,lastRefreshAt:a.lastRefreshAt,connectionId:a.id,providerSpecificData:a.providerSpecificData,copilotToken:a.providerSpecificData?.copilotToken,copilotTokenExpiresAt:a.providerSpecificData?.copilotTokenExpiresAt};if(!(b||e.needsRefresh(f)))return{connection:a,refreshed:!1};let g=await e.refreshCredentials(f,console,c);if(!g){if(a.accessToken)return{connection:a,refreshed:!1};throw Error("Failed to refresh credentials. Please re-authorize the connection.")}let h={updatedAt:new Date().toISOString()};g.accessToken&&(h.accessToken=g.accessToken),g.refreshToken&&(h.refreshToken=g.refreshToken),g.idToken&&(h.idToken=g.idToken),g.lastRefreshAt&&(h.lastRefreshAt=g.lastRefreshAt),g.expiresIn?(h.expiresAt=new Date(Date.now()+1e3*g.expiresIn).toISOString(),h.expiresIn=g.expiresIn):g.expiresAt&&(h.expiresAt=g.expiresAt);let i={...g.providerSpecificData||{},...g.copilotToken?{copilotToken:g.copilotToken}:{},...g.copilotTokenExpiresAt?{copilotTokenExpiresAt:g.copilotTokenExpiresAt}:{}};return Object.keys(i).length>0&&(h.providerSpecificData={...a.providerSpecificData||{},...i}),await (0,d.updateProviderConnection)(a.id,h),{connection:{...a,...h,providerSpecificData:h.providerSpecificData||a.providerSpecificData},refreshed:!0}}E.userUrl,"string"==typeof F&&F.includes("?")&&F.replace(/\?.*$/,""),i("cursor").usageUrl,i("cursor").planUrl,i("groq").url,c(33373),i("opencode-go").url,c(95901),c(970),i("glm").url,i("glm-cn").url,i("vercel-ai-gateway").url,c(63995);let H=c(48595).oc,I={claude:{getUsage:(a,b,c)=>(function(a,b=null,c={}){let d,f=c?.force===!0,g=(0,e.createHash)("sha256").update(String(a??"")).digest("hex"),h=m.get(g),i=Date.now();return!f&&h&&(i<h.expiresAt||i<h.retryAt)?Promise.resolve(h.value):!f&&n.has(g)?n.get(g):n.size>=128?Promise.resolve({message:"Claude usage refresh is busy. Retry shortly."}):(d=q(a,b,g).finally(()=>{n.get(g)===d&&n.delete(g)}),n.set(g,d),d)})(a,c),sendPing:P},codex:{getUsage:y,getModels:z,sendPing:R}},J=global.__quotaAutoPing??={interval:null,running:!1,resetCache:{},failureCache:{},pingCache:{}};function K(a){let b=new Date(a).getTime();return Number.isFinite(b)?new Date(6e4*Math.floor(b/6e4)).toISOString():a}function L(a,b=null){if("number"==typeof a&&Number.isFinite(a))return a;if("string"==typeof a&&a.trim()){let b=Number(a);if(Number.isFinite(b))return b}return b}function M(a){if(!a||!0===a.unlimited)return!1;let b=L(a.remaining);if(null!==b)return b<=0;let c=L(a.used),d=L(a.total);return null!==d&&d>0&&null!==c&&c>=d}function N(a,b,c=Date.now(),d=null){if(!b)return!1;let e=new Date(a.lastPingAt).getTime(),f=L(d,-1/0),g=Math.max(Number.isFinite(e)?e:-1/0,f);return Number.isFinite(g)&&c-g<b}function O(a,b){return Object.entries(a||{}).some(([a,c])=>a!==b&&!String(a).toLowerCase().includes("session")&&M(c))}async function P(a,b,c,d){let e=await d.proxyAwareFetch("https://api.anthropic.com/v1/messages?beta=true",{method:"POST",headers:{...g.$B,Authorization:`Bearer ${a.accessToken}`,"content-type":"application/json"},body:JSON.stringify({model:b.pingModel,max_tokens:b.pingMaxTokens,messages:[{role:"user",content:b.pingText}]})},c);if(!e.ok){try{await e.body?.cancel?.()}catch{}return!1}return await Q(e),!0}async function Q(a){if("function"==typeof a?.text)return void await a.text();let b=a?.body?.getReader?.();if(b)try{for(;;){let{done:a}=await b.read();if(a)return}}finally{b.releaseLock?.()}}async function R(a,b,c,d,e){let f=e.getExecutor("codex"),{response:g}=await f.execute({model:c,stream:!0,credentials:{accessToken:a.accessToken,connectionId:a.id,idToken:a.idToken,providerSpecificData:a.providerSpecificData},proxyOptions:d,log:console,body:{model:c,input:[{type:"message",role:"user",content:[{type:"input_text",text:b.pingText}]}],instructions:b.pingInstructions,reasoning:b.pingReasoningEffort?{effort:b.pingReasoningEffort,summary:"auto"}:void 0,store:!1,stream:!0}});if(!g.ok){try{await g.body?.cancel?.()}catch{}return!1}return await Q(g),!0}async function S(a,b,c,d,e,f=J){var g;let h=(g=a.id,`${b}:${g}`),i=f.resetCache[h];if(!c.pingWhenResetAtSlides&&i&&Date.now()<new Date(i).getTime()-H.refreshAheadMs||function(a,b,c=Date.now()){let d=a.failureCache[b];return d&&c-d<H.failureCooldownMs}(f,h))return;let j=await e.resolveConnectionProxyConfig(a.providerSpecificData),k={connectionProxyEnabled:!0===j.connectionProxyEnabled,connectionProxyUrl:j.connectionProxyUrl||"",connectionNoProxy:j.connectionNoProxy||"",vercelRelayUrl:j.vercelRelayUrl||"",strictProxy:!1},l=a;try{l=(await e.refreshAndUpdateCredentials(l,!1,k)).connection}catch(c){f.failureCache[h]=Date.now(),console.warn(`[AutoPing] ${b}:${a.id}: refresh failed: ${c.message}`);return}let m=await d.getUsage(l.accessToken,l.providerSpecificData,k,l.idToken),n=m?.quotas||{},o=n?.[c.quotaKey],p=o?.resetAt,q=Date.now(),r=function(a,b,c,d,e,f,g){let h,i;return!0===b.pingInactiveSession&&d&&!d.resetAt&&!M(d)&&(h=Object.entries(c||{}).filter(([a])=>String(a).toLowerCase().startsWith("weekly"))).length>0&&h.every(([,a])=>!M(a))&&!O(c,b.quotaKey)&&(!(i=String(a.providerSpecificData?.proxyPoolId??"").trim())||"__none__"===i||e?.proxyUnavailable!==!0&&e?.source!=="unavailable"&&String(e?.proxyPoolId??"").trim()===i&&!!e?.proxyPool)&&!N(a,b.inactiveMinPingIntervalMs,f,g)}(l,c,n,o,j,q,f.pingCache?.[h]),s=null;if(p){if(f.resetCache[h]=p,c.skipWhenBlockingQuotaExhausted&&O(n,c.quotaKey)||M(o))return;s=K(p);let a=l.lastPingedResetKey||K(l.lastPingedResetAt);if(!function(a,b,c,d){if(a.pingWhenResetAtSlides){let d,e;return!!b&&(d=new Date(b).getTime(),e=new Date(c).getTime(),(Number.isFinite(d)&&Number.isFinite(e)?e-d:0)>=(a.resetAtDriftMs||0))}let e=new Date(c).getTime();return Number.isFinite(e)&&d>=e-H.pingLeadMs}(c,i,p,q)||N(l,c.minPingIntervalMs,q)||a===s)return}else if(!r)return;let t="codex"===b?(await d.getModels(l.accessToken,k,l.providerSpecificData))[0]?.slug:c.pingModel;if(!t){f.failureCache[h]=Date.now(),console.warn(`[AutoPing] ${b}:${l.id}: no supported model available`);return}if(!("codex"===b?await d.sendPing(l,c,t,k,e):await d.sendPing(l,c,k,e))){f.failureCache[h]=Date.now(),console.warn(`[AutoPing] ${b}:${l.id}: ping failed (${p?`reset ${p}`:"inactive session"})`);return}r&&((f.pingCache??={})[h]=Date.now()),delete f.failureCache[h],await e.updateProviderConnection(l.id,{...p?{lastPingedResetAt:p,lastPingedResetKey:s}:{},lastPingAt:new Date().toISOString(),updatedAt:new Date().toISOString()}),r&&delete f.pingCache[h],console.log(`[AutoPing] ${b}:${l.id}: ping sent (${p?`reset ${p}`:"inactive session"})`)}async function T(a={getSettings:d.mt,getProviderConnections:d.getProviderConnections,updateProviderConnection:d.updateProviderConnection,resolveConnectionProxyConfig:D,refreshAndUpdateCredentials:G,proxyAwareFetch:f.Fm,getExecutor:A.SB},b=J){if(!b.running){b.running=!0;try{let d=await a.getSettings();for(let[e,f]of Object.entries(H.providers)){let g=I[e];if(!g)continue;let h=d?.[f.settingsKey]?.connections||{};if(0!==Object.keys(h).length)for(let d of(await a.getProviderConnections({provider:e,isActive:!0})).filter(a=>"oauth"===a.authType&&!0===h[a.id]))try{await S(d,e,f,g,a,b)}catch(a){var c;b.failureCache[c=d.id,`${e}:${c}`]=Date.now(),console.warn(`[AutoPing] ${e}:${d.id}: ${a.message}`)}}}catch(a){console.warn("[AutoPing] tick error:",a.message)}finally{b.running=!1}}}function U(){!J.interval&&(console.log("[AutoPing] scheduler started"),T().catch(()=>{}),J.interval=setInterval(()=>{T().catch(()=>{})},H.tickIntervalMs),J.interval.unref&&J.interval.unref())}function V(){J.interval&&(clearInterval(J.interval),J.interval=null,console.log("[AutoPing] scheduler stopped"))}function W(a){Object.values(H.providers).some(b=>Object.values(a?.[b.settingsKey]?.connections||{}).some(Boolean))?U():V()}},97753:(a,b,c)=>{c.d(b,{createProviderConnection:()=>d.iE,hr:()=>d.hr});var d=c(70321)}};
|
|
1
|
+
"use strict";exports.id=8231,exports.ids=[7753,8231],exports.modules={48595:(a,b,c)=>{c.d(b,{UY:()=>g,oc:()=>h});var d=c(90053),e=c(63995),f=c(78492);Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),Object.freeze(["gemini-live"]),d.rE;let g={maxLines:200,pollIntervalMs:1e3,streamTimeoutMs:5e3},h={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingInactiveSession:!0,inactiveMinPingIntervalMs:18e6,pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},78231:(a,b,c)=>{c.r(b),c.d(b,{configureQuotaAutoPing:()=>X,runQuotaAutoPingTick:()=>U,startQuotaAutoPing:()=>V,stopQuotaAutoPing:()=>W}),c(48450);var d=c(70321),e=c(55511),f=c(26762),g=c(74570),h=c(15251);let i=a=>h.xq[a]?.usage||{};function j(a){if(!a)return null;try{if(a instanceof Date)return a.toISOString();if("number"==typeof a)return new Date(a<1e12?1e3*a:a).toISOString();if("string"==typeof a){if(/^\d+$/.test(a)){let b=Number(a);return new Date(b<1e12?1e3*b:b).toISOString()}return new Date(a).toISOString()}return null}catch(b){return console.warn(`Failed to parse reset time: ${a}`,b),null}}function k(a,b=0){if("number"==typeof a&&Number.isFinite(a))return a;if("string"==typeof a&&a.trim()){let b=Number(a);if(Number.isFinite(b))return b}return b}let l={oauthUsageUrl:i("claude").oauthUrl,usageUrl:i("claude").orgUrl,settingsUrl:i("claude").settingsUrl,profileUrl:i("claude").profileUrl,resetUrl:i("claude").resetUrl,apiVersion:g.b8,userAgent:`claude-cli/${g.t4} (external, cli)`},m=new Map,n=new Map;function o(a,b){for(m.delete(a),m.set(a,b);m.size>128;)m.delete(m.keys().next().value)}function p(a,b,c,d){if("number"==typeof c&&Number.isFinite(c)&&!Object.keys(a).some(a=>a.toLowerCase()===b.toLowerCase())){let e,f;a[b]=(f=100-(e=Math.min(100,Math.max(0,c))),{used:e,total:100,remaining:f,remainingPercentage:f,resetAt:j(d),unlimited:!1})}}async function q(a,b,c){try{let d=await (0,f.Fm)(`${l.oauthUsageUrl}?cedar_ember=1`,{method:"GET",headers:{Authorization:`Bearer ${a}`,"anthropic-beta":"oauth-2025-04-20","anthropic-version":l.apiVersion,"User-Agent":l.userAgent},signal:AbortSignal.timeout(5e3)},b);if(d.ok){let a=function(a){let b={};for(let[c,d]of(p(b,"session (5h)",a?.five_hour?.utilization,a?.five_hour?.resets_at),p(b,"weekly (7d)",a?.seven_day?.utilization,a?.seven_day?.resets_at),Object.entries(a||{})))c.startsWith("seven_day_")&&d&&"object"==typeof d&&p(b,`weekly ${c.slice(10)} (7d)`,d.utilization,d.resets_at);for(let c of[...Array.isArray(a?.limits)?a.limits:[],...Array.isArray(a?.rate_limits)?a.rate_limits:[]]){let a=String(c?.group||"").toLowerCase(),d=String(c?.kind||"").toLowerCase();if("session"===d||"session"===a){p(b,"session (5h)",c.percent,c.resets_at);continue}if("weekly_scoped"===d||"weekly"===a){let a=c?.scope?.model?.display_name||c?.scope?.surface?.display_name;p(b,a?`weekly ${a} (7d)`:"weekly (7d)",c.percent,c.resets_at)}}return{plan:"Claude Code",extraUsage:a?.extra_usage??null,resetCredits:function(a){if(!a?.eligible||!Array.isArray(a.grants))return null;let b=a.grants.filter(a=>a?.id&&!a.paused&&Number(a.resets_left)>0),c=b.find(b=>b.id===a.next_grant_id)||b[0]||null;return{availableCount:b.reduce((a,b)=>a+Number(b.resets_left),0),nextGrantId:c?.id||null,expiresAt:c?.ends_at||null,clears:c?.clears||[],cooldownUntil:a.cooldown_until||null,weeklyResetsAt:a.weekly_resets_at||null,grants:a.grants.filter(a=>a?.id).map(a=>({id:a.id,label:a.label||"",resetsLeft:Number(a.resets_left)||0,resetsTotal:Number(a.resets_total)||0,startsAt:a.starts_at||null,endsAt:a.ends_at||null,clears:Array.isArray(a.clears)?a.clears:[],paused:!0===a.paused,usableNow:!0===a.usable_now,useRequiresLimit:!1!==a.use_requires_limit}))}}(a?.cedar_ember),quotas:b}}(await d.json());return o(c,{value:a,expiresAt:Date.now()+65e3,retryAt:0}),a}if(429===d.status){let a,b=Date.now(),e=m.get(c),f=e?.value||{message:"Claude usage is rate limited. Retry later."};return o(c,{value:f,expiresAt:e?.expiresAt||0,retryAt:b+(a=function(a,b){let c=String(a||"").trim();if(!c)return null;let d=Number(c);if(Number.isFinite(d))return d>=0?1e3*d:null;let e=Date.parse(c);return Number.isFinite(e)?Math.max(0,e-b):null}(d.headers.get("retry-after"),b),null===a&&d.headers.forEach((c,d)=>{if(!/^anthropic-ratelimit-.+-reset$/i.test(d))return;let e=function(a,b){let c=String(a||"").trim();if(!c)return null;let d=Number(c),e=Number.isFinite(d)?d<1e12?1e3*d:d:Date.parse(c);return Number.isFinite(e)&&e>b&&e<=864e13?e-b:null}(c,b);null!==e&&(null===a||e>a)&&(a=e)}),Math.min(18e5,Math.max(18e4,a??18e4)))}),f}if(401===d.status)return{message:"Claude authentication expired (401). Re-authorize or refresh the connection."};if(404===d.status||405===d.status){let d=await r(a,b);return d.cacheable&&o(c,{value:d.value,expiresAt:Date.now()+65e3,retryAt:0}),d.value}return{message:`Claude connected. Usage endpoint returned HTTP ${d.status}.`}}catch{return{message:"Claude connected. Unable to fetch usage."}}}async function r(a,b=null){try{let c=await (0,f.Fm)(l.settingsUrl,{method:"GET",headers:{Authorization:`Bearer ${a}`,"anthropic-version":l.apiVersion}},b);if(c.ok){let d=await c.json();if(d.organization_id){let c=await (0,f.Fm)(l.usageUrl.replace("{org_id}",d.organization_id),{method:"GET",headers:{Authorization:`Bearer ${a}`,"anthropic-version":l.apiVersion}},b);if(c.ok){let a=await c.json();return{cacheable:!0,value:{plan:d.plan||"Unknown",organization:d.organization_name,quotas:a}}}return{cacheable:!1,value:{plan:d.plan||"Unknown",organization:d.organization_name,message:"Claude connected. Usage details require admin access."}}}return{cacheable:!0,value:{plan:d.plan||"Unknown",organization:d.organization_name,message:"Claude connected. Usage details require admin access."}}}return{cacheable:!1,value:{message:"Claude connected. Usage endpoint requires OAuth."}}}catch(a){return{cacheable:!1,value:{message:`Claude connected. Error checking usage: ${a.message}`}}}}var s=c(53261);let t={usageUrl:i("codex").url,resetCreditsUrl:i("codex").resetCreditsUrl,resetCreditsConsumeUrl:i("codex").resetCreditsConsumeUrl};function u(a,b={},c={},d=null){let e={Authorization:`Bearer ${a}`,Accept:"application/json",originator:"codex_cli_rs",...c},f=(0,s.a)(b,d);return f&&(e["ChatGPT-Account-ID"]=f),e}function v(a){return!a||"object"!=typeof a||Array.isArray(a)?null:a.rate_limit&&"object"==typeof a.rate_limit?a.rate_limit:a}function w(a){let b=Math.max(0,Math.min(100,k(a?.used_percent??a?.percent_used,0)));return{used:b,total:100,remaining:Math.max(0,100-b),resetAt:j(a?.reset_at??a?.resets_at??a?.resetAt??null),unlimited:!1}}function x(a,b,c){let d=v(c);if(!d)return!1;let e=d.primary_window||d.primary||c.primary_window||c.primary,f=d.secondary_window||d.secondary||c.secondary_window||c.secondary,g=!1;return e&&(a[b?`${b}_session`:"session"]=w(e),g=!0),f&&(a[b?`${b}_weekly`:"weekly"]=w(f),g=!0),g}async function y(a,b={},c=null,d=null){var e,g,h;[b,c]=(e=b,!(g=c)&&(h=e)&&"object"==typeof h&&("connectionProxyEnabled"in h||"connectionProxyUrl"in h||"connectionNoProxy"in h||"vercelRelayUrl"in h||"strictProxy"in h)?(0,s.a)(e,d)?[e,e]:[{},e]:[e||{},g]);try{let e=await (0,f.Fm)(t.usageUrl,{method:"GET",headers:u(a,b,{},d)},c);if(!e.ok)return{message:`Codex connected. Usage API temporarily unavailable (${e.status}).`};let g=await e.json(),h=g.rate_limit||g.rate_limits||g.rate_limits_by_limit_id?.codex||{},i=function(a){if(a.code_review_rate_limit||a.review_rate_limit)return a.code_review_rate_limit||a.review_rate_limit;let b=a.rate_limits_by_limit_id;return b&&"object"==typeof b&&!Array.isArray(b)?b.code_review||b.codex_review||b.review||null:(Array.isArray(a.additional_rate_limits)?a.additional_rate_limits:[]).find(a=>{let b=String(a?.limit_name||a?.metered_feature||a?.id||"").toLowerCase();return"code_review"===b||"codex_review"===b||"review"===b||b.includes("review")})||null}(g),j=function(a){if(a.spark_rate_limit||a.gpt_5_3_codex_spark_rate_limit)return a.spark_rate_limit||a.gpt_5_3_codex_spark_rate_limit;let b=a.rate_limits_by_limit_id;return b&&"object"==typeof b&&!Array.isArray(b)?b["gpt-5.3-codex-spark"]||b.gpt_5_3_codex_spark||b.spark||null:(Array.isArray(a.additional_rate_limits)?a.additional_rate_limits:[]).find(a=>{let b=String(a?.limit_name||a?.metered_feature||a?.id||"").toLowerCase();return b.includes("spark")||b.includes("5.3-codex-spark")})||null}(g),l=Math.max(0,k(g.rate_limit_reset_credits?.available_count,0)),m={};return x(m,"",h),x(m,"review",i),x(m,"spark",j),{plan:g.plan_type||g.summary?.plan||"unknown",limitReached:v(h)?.limit_reached||!1,reviewLimitReached:v(i)?.limit_reached||!1,sparkLimitReached:v(j)?.limit_reached||!1,resetCredits:{availableCount:l},quotas:m}}catch(a){throw Error(`Failed to fetch Codex usage: ${a.message}`)}}async function z(a,b=null,c=null,d=null){let e=new URL(i("codex").modelsUrl||"https://chatgpt.com/backend-api/codex/models");i("codex").clientVersion&&e.searchParams.set("client_version",i("codex").clientVersion);let g=u(a,c,{},d),h=await (0,f.Fm)(e,{method:"GET",headers:g},b);if(!h.ok)return[];let j=await h.json();return(Array.isArray(j?.models)?j.models:[]).filter(a=>a?.supported_in_api!==!1&&"string"==typeof a?.slug&&a.slug).sort((a,b)=>Number(a.priority||0)-Number(b.priority||0))}var A=c(76171),B=c(97753);function C(a){return null==a?"":String(a).trim()}async function D(a={}){try{let b=C(a?.proxyPoolId),c="__none__"===b?"":b,d=function(a={}){let b=a?.connectionProxyEnabled===!0,c=C(a?.connectionProxyUrl);return{connectionProxyEnabled:b,connectionProxyUrl:c,connectionNoProxy:C(a?.connectionNoProxy)}}(a),e=!1;if(c){let a=await (0,B.hr)(c),b=C(a?.proxyUrl),d=C(a?.noProxy),f=a&&!0===a.isActive&&b;if(e=a?.strictProxy===!0,f){if("vercel"===a.type||"cloudflare"===a.type||"deno"===a.type)return{source:a.type,proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:d,strictProxy:!0===a.strictProxy,vercelRelayUrl:b};return{source:"pool",proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!0,connectionProxyUrl:b,connectionNoProxy:d,strictProxy:!0===a.strictProxy}}}if(d.connectionProxyEnabled&&d.connectionProxyUrl)return{source:"legacy",proxyPoolId:c||null,proxyPool:null,strictProxy:e,...d};return{source:"none",proxyPoolId:c||null,proxyPool:null,strictProxy:e,...d}}catch(a){return console.error("[resolveConnectionProxyConfig] Failed to resolve proxy config:",a),{source:"error",proxyPoolId:null,proxyPool:null,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:"",strictProxy:!1}}}h.sr.github?.apiVersion,h.sr.github?.userAgent,c(10793),i("antigravity"),g.Of,i("antigravity"),g.XP,g.Of,c(43835),i("minimax").urls,i("minimax-cn").urls,c(83382);let E=i("grok-cli"),F=E.url||"https://cli-chat-proxy.grok.com/v1/billing?format=credits";E.userUrl,"string"==typeof F&&F.includes("?")&&F.replace(/\?.*$/,""),i("cursor").usageUrl,i("cursor").planUrl,i("groq").url,c(33373),i("opencode-go").url,c(95901),c(970),i("glm").url,i("glm-cn").url,i("vercel-ai-gateway").url;var G=c(44855);async function H(a,b=!1,c=null){let e=a.id?await (0,d.Mc)(a.id):null;e&&(a=e);let f=(0,A.SB)(a.provider),g={accessToken:a.accessToken,refreshToken:a.refreshToken,idToken:a.idToken,expiresAt:a.expiresAt||a.tokenExpiresAt,lastRefreshAt:a.lastRefreshAt,connectionId:a.id,providerSpecificData:a.providerSpecificData,copilotToken:a.providerSpecificData?.copilotToken,copilotTokenExpiresAt:a.providerSpecificData?.copilotTokenExpiresAt};if(!(b||f.needsRefresh(g)))return{connection:a,refreshed:!1};let h=await f.refreshCredentials(g,console,c);if(h&&(0,G.jT)(h))throw Error("Refresh token invalid or reused. Please re-authorize the connection.");if(!h){if(a.accessToken)return{connection:a,refreshed:!1};throw Error("Failed to refresh credentials. Please re-authorize the connection.")}let i={updatedAt:new Date().toISOString()};h.accessToken&&(i.accessToken=h.accessToken),h.refreshToken&&(i.refreshToken=h.refreshToken),h.idToken&&(i.idToken=h.idToken),h.lastRefreshAt&&(i.lastRefreshAt=h.lastRefreshAt),h.expiresIn?(i.expiresAt=new Date(Date.now()+1e3*h.expiresIn).toISOString(),i.expiresIn=h.expiresIn):h.expiresAt&&(i.expiresAt=h.expiresAt);let j={...h.providerSpecificData||{},...h.copilotToken?{copilotToken:h.copilotToken}:{},...h.copilotTokenExpiresAt?{copilotTokenExpiresAt:h.copilotTokenExpiresAt}:{}};return Object.keys(j).length>0&&(i.providerSpecificData={...a.providerSpecificData||{},...j}),await (0,d.updateProviderConnection)(a.id,i),{connection:{...a,...i,providerSpecificData:i.providerSpecificData||a.providerSpecificData},refreshed:!0}}c(63995);let I=c(48595).oc,J={claude:{getUsage:(a,b,c)=>(function(a,b=null,c={}){let d,f=c?.force===!0,g=(0,e.createHash)("sha256").update(String(a??"")).digest("hex"),h=m.get(g),i=Date.now();return!f&&h&&(i<h.expiresAt||i<h.retryAt)?Promise.resolve(h.value):!f&&n.has(g)?n.get(g):n.size>=128?Promise.resolve({message:"Claude usage refresh is busy. Retry shortly."}):(d=q(a,b,g).finally(()=>{n.get(g)===d&&n.delete(g)}),n.set(g,d),d)})(a,c),sendPing:Q},codex:{getUsage:y,getModels:z,sendPing:S}},K=global.__quotaAutoPing??={interval:null,running:!1,resetCache:{},failureCache:{},pingCache:{}};function L(a){let b=new Date(a).getTime();return Number.isFinite(b)?new Date(6e4*Math.floor(b/6e4)).toISOString():a}function M(a,b=null){if("number"==typeof a&&Number.isFinite(a))return a;if("string"==typeof a&&a.trim()){let b=Number(a);if(Number.isFinite(b))return b}return b}function N(a){if(!a||!0===a.unlimited)return!1;let b=M(a.remaining);if(null!==b)return b<=0;let c=M(a.used),d=M(a.total);return null!==d&&d>0&&null!==c&&c>=d}function O(a,b,c=Date.now(),d=null){if(!b)return!1;let e=new Date(a.lastPingAt).getTime(),f=M(d,-1/0),g=Math.max(Number.isFinite(e)?e:-1/0,f);return Number.isFinite(g)&&c-g<b}function P(a,b){return Object.entries(a||{}).some(([a,c])=>a!==b&&!String(a).toLowerCase().includes("session")&&N(c))}async function Q(a,b,c,d){let e=await d.proxyAwareFetch("https://api.anthropic.com/v1/messages?beta=true",{method:"POST",headers:{...g.$B,Authorization:`Bearer ${a.accessToken}`,"content-type":"application/json"},body:JSON.stringify({model:b.pingModel,max_tokens:b.pingMaxTokens,messages:[{role:"user",content:b.pingText}]})},c);if(!e.ok){try{await e.body?.cancel?.()}catch{}return!1}return await R(e),!0}async function R(a){if("function"==typeof a?.text)return void await a.text();let b=a?.body?.getReader?.();if(b)try{for(;;){let{done:a}=await b.read();if(a)return}}finally{b.releaseLock?.()}}async function S(a,b,c,d,e){let f=e.getExecutor("codex"),{response:g}=await f.execute({model:c,stream:!0,credentials:{accessToken:a.accessToken,connectionId:a.id,idToken:a.idToken,providerSpecificData:a.providerSpecificData},proxyOptions:d,log:console,body:{model:c,input:[{type:"message",role:"user",content:[{type:"input_text",text:b.pingText}]}],instructions:b.pingInstructions,reasoning:b.pingReasoningEffort?{effort:b.pingReasoningEffort,summary:"auto"}:void 0,store:!1,stream:!0}});if(!g.ok){try{await g.body?.cancel?.()}catch{}return!1}return await R(g),!0}async function T(a,b,c,d,e,f=K){var g;let h=(g=a.id,`${b}:${g}`),i=f.resetCache[h];if(!c.pingWhenResetAtSlides&&i&&Date.now()<new Date(i).getTime()-I.refreshAheadMs||function(a,b,c=Date.now()){let d=a.failureCache[b];return d&&c-d<I.failureCooldownMs}(f,h))return;let j=await e.resolveConnectionProxyConfig(a.providerSpecificData),k={connectionProxyEnabled:!0===j.connectionProxyEnabled,connectionProxyUrl:j.connectionProxyUrl||"",connectionNoProxy:j.connectionNoProxy||"",vercelRelayUrl:j.vercelRelayUrl||"",strictProxy:!1},l=a;try{l=(await e.refreshAndUpdateCredentials(l,!1,k)).connection}catch(c){f.failureCache[h]=Date.now(),console.warn(`[AutoPing] ${b}:${a.id}: refresh failed: ${c.message}`);return}let m=await d.getUsage(l.accessToken,l.providerSpecificData,k,l.idToken),n=m?.quotas||{},o=n?.[c.quotaKey],p=o?.resetAt,q=Date.now(),r=function(a,b,c,d,e,f,g){let h,i;return!0===b.pingInactiveSession&&d&&!d.resetAt&&!N(d)&&(h=Object.entries(c||{}).filter(([a])=>String(a).toLowerCase().startsWith("weekly"))).length>0&&h.every(([,a])=>!N(a))&&!P(c,b.quotaKey)&&(!(i=String(a.providerSpecificData?.proxyPoolId??"").trim())||"__none__"===i||e?.proxyUnavailable!==!0&&e?.source!=="unavailable"&&String(e?.proxyPoolId??"").trim()===i&&!!e?.proxyPool)&&!O(a,b.inactiveMinPingIntervalMs,f,g)}(l,c,n,o,j,q,f.pingCache?.[h]),s=null;if(p){if(f.resetCache[h]=p,c.skipWhenBlockingQuotaExhausted&&P(n,c.quotaKey)||N(o))return;s=L(p);let a=l.lastPingedResetKey||L(l.lastPingedResetAt);if(!function(a,b,c,d){if(a.pingWhenResetAtSlides){let d,e;return!!b&&(d=new Date(b).getTime(),e=new Date(c).getTime(),(Number.isFinite(d)&&Number.isFinite(e)?e-d:0)>=(a.resetAtDriftMs||0))}let e=new Date(c).getTime();return Number.isFinite(e)&&d>=e-I.pingLeadMs}(c,i,p,q)||O(l,c.minPingIntervalMs,q)||a===s)return}else if(!r)return;let t="codex"===b?(await d.getModels(l.accessToken,k,l.providerSpecificData))[0]?.slug:c.pingModel;if(!t){f.failureCache[h]=Date.now(),console.warn(`[AutoPing] ${b}:${l.id}: no supported model available`);return}if(!("codex"===b?await d.sendPing(l,c,t,k,e):await d.sendPing(l,c,k,e))){f.failureCache[h]=Date.now(),console.warn(`[AutoPing] ${b}:${l.id}: ping failed (${p?`reset ${p}`:"inactive session"})`);return}r&&((f.pingCache??={})[h]=Date.now()),delete f.failureCache[h],await e.updateProviderConnection(l.id,{...p?{lastPingedResetAt:p,lastPingedResetKey:s}:{},lastPingAt:new Date().toISOString(),updatedAt:new Date().toISOString()}),r&&delete f.pingCache[h],console.log(`[AutoPing] ${b}:${l.id}: ping sent (${p?`reset ${p}`:"inactive session"})`)}async function U(a={getSettings:d.mt,getProviderConnections:d.getProviderConnections,updateProviderConnection:d.updateProviderConnection,resolveConnectionProxyConfig:D,refreshAndUpdateCredentials:H,proxyAwareFetch:f.Fm,getExecutor:A.SB},b=K){if(!b.running){b.running=!0;try{let d=await a.getSettings();for(let[e,f]of Object.entries(I.providers)){let g=J[e];if(!g)continue;let h=d?.[f.settingsKey]?.connections||{};if(0!==Object.keys(h).length)for(let d of(await a.getProviderConnections({provider:e,isActive:!0})).filter(a=>"oauth"===a.authType&&!0===h[a.id]))try{await T(d,e,f,g,a,b)}catch(a){var c;b.failureCache[c=d.id,`${e}:${c}`]=Date.now(),console.warn(`[AutoPing] ${e}:${d.id}: ${a.message}`)}}}catch(a){console.warn("[AutoPing] tick error:",a.message)}finally{b.running=!1}}}function V(){!K.interval&&(console.log("[AutoPing] scheduler started"),U().catch(()=>{}),K.interval=setInterval(()=>{U().catch(()=>{})},I.tickIntervalMs),K.interval.unref&&K.interval.unref())}function W(){K.interval&&(clearInterval(K.interval),K.interval=null,console.log("[AutoPing] scheduler stopped"))}function X(a){Object.values(I.providers).some(b=>Object.values(a?.[b.settingsKey]?.connections||{}).some(Boolean))?V():W()}},97753:(a,b,c)=>{c.d(b,{createProviderConnection:()=>d.iE,hr:()=>d.hr});var d=c(70321)}};
|