@rabbi696/ezrouter 0.5.99 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +7 -5
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/routes-manifest.json +16 -4
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +5 -5
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +18 -5
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +4 -4
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js +1 -1
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -0
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -0
- package/app/.next-cli-build/server/app/api/v1/models/{[kind] → [...model]}/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +2 -2
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +2 -2
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +2 -2
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +2 -2
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +7 -5
- package/app/.next-cli-build/server/chunks/1133.js +1 -1
- package/app/.next-cli-build/server/chunks/1253.js +1 -1
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/1522.js +1 -1
- package/app/.next-cli-build/server/chunks/1531.js +1 -1
- package/app/.next-cli-build/server/chunks/1714.js +1 -1
- package/app/.next-cli-build/server/chunks/1847.js +1 -0
- package/app/.next-cli-build/server/chunks/2177.js +1 -1
- package/app/.next-cli-build/server/chunks/2269.js +1 -1
- package/app/.next-cli-build/server/chunks/2382.js +1 -0
- package/app/.next-cli-build/server/chunks/2547.js +3 -3
- package/app/.next-cli-build/server/chunks/2892.js +1 -0
- package/app/.next-cli-build/server/chunks/2898.js +1 -1
- package/app/.next-cli-build/server/chunks/290.js +1 -0
- package/app/.next-cli-build/server/chunks/3148.js +2 -2
- package/app/.next-cli-build/server/chunks/3433.js +6 -6
- package/app/.next-cli-build/server/chunks/3547.js +1 -1
- package/app/.next-cli-build/server/chunks/3647.js +1 -0
- package/app/.next-cli-build/server/chunks/369.js +24 -24
- package/app/.next-cli-build/server/chunks/3814.js +1 -1
- package/app/.next-cli-build/server/chunks/3886.js +1 -0
- package/app/.next-cli-build/server/chunks/412.js +2 -2
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4562.js +1 -1
- package/app/.next-cli-build/server/chunks/4646.js +1 -1
- package/app/.next-cli-build/server/chunks/{9233.js → 4704.js} +2 -2
- package/app/.next-cli-build/server/chunks/476.js +1 -1
- package/app/.next-cli-build/server/chunks/4928.js +1 -9
- package/app/.next-cli-build/server/chunks/4999.js +1 -1
- package/app/.next-cli-build/server/chunks/5129.js +1 -1
- package/app/.next-cli-build/server/chunks/5849.js +1 -0
- package/app/.next-cli-build/server/chunks/6112.js +1 -0
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6405.js +1 -1
- package/app/.next-cli-build/server/chunks/{5681.js → 6436.js} +1 -1
- package/app/.next-cli-build/server/chunks/6535.js +23 -20
- package/app/.next-cli-build/server/chunks/6958.js +1 -0
- package/app/.next-cli-build/server/chunks/7054.js +1 -0
- package/app/.next-cli-build/server/chunks/7239.js +1 -1
- package/app/.next-cli-build/server/chunks/7353.js +1 -1
- package/app/.next-cli-build/server/chunks/7362.js +2 -2
- package/app/.next-cli-build/server/chunks/7413.js +2 -0
- package/app/.next-cli-build/server/chunks/{7456.js → 7438.js} +16 -16
- package/app/.next-cli-build/server/chunks/7467.js +1 -0
- package/app/.next-cli-build/server/chunks/7603.js +1 -0
- package/app/.next-cli-build/server/chunks/7716.js +1 -0
- package/app/.next-cli-build/server/chunks/7734.js +1 -1
- package/app/.next-cli-build/server/chunks/7775.js +1 -1
- package/app/.next-cli-build/server/chunks/7785.js +9 -0
- package/app/.next-cli-build/server/chunks/8129.js +1 -1
- package/app/.next-cli-build/server/chunks/8243.js +3 -3
- package/app/.next-cli-build/server/chunks/8251.js +2 -2
- package/app/.next-cli-build/server/chunks/8326.js +1 -1
- package/app/.next-cli-build/server/chunks/8421.js +1 -1
- package/app/.next-cli-build/server/chunks/8851.js +1 -1
- package/app/.next-cli-build/server/chunks/8901.js +95 -95
- package/app/.next-cli-build/server/chunks/8946.js +1 -1
- package/app/.next-cli-build/server/chunks/8976.js +1 -1
- package/app/.next-cli-build/server/chunks/9043.js +1 -1
- package/app/.next-cli-build/server/chunks/9296.js +1 -1
- package/app/.next-cli-build/server/chunks/9303.js +1 -0
- package/app/.next-cli-build/server/chunks/9485.js +1 -0
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +2 -2
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/4mlCrBOTKFKg2N9Gnk9oD/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/{1321-41a94f7ab0a65d8c.js → 1321-811432d2e5bb2b49.js} +1 -1
- package/app/.next-cli-build/static/chunks/2595-2d703efb995163a7.js +95 -0
- package/app/.next-cli-build/static/chunks/{5497-22fe81a552f1646d.js → 5497-675887789aaf2c43.js} +3 -3
- package/app/.next-cli-build/static/chunks/801-a83c4648747b8c6a.js +1 -0
- package/app/.next-cli-build/static/chunks/8105-e46089480e63b1a9.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-c7840dae0ef76527.js → page-178f383964973bfb.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-0e4d3fb00fc6a9bf.js → page-ce0b5b8882899119.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-4c63bfc57149c7eb.js → page-257aaa1374d529b4.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-64177496760b1187.js → page-78c78a3108fbe60e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-dc6c3c72e5d6acc3.js → page-2c65df20769d31df.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/convoy/{page-5ada6cd825b67236.js → page-8c2bc69a688a000b.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-a840225ab3f601c2.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0ab40e69321978fb.js → page-90a4f789d907db25.js} +4 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-cb36efdbd929e8e1.js → page-c671ae36a313887b.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-46eaa5603462d610.js → page-3df89694c0bbdeb8.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-ed1ea0fa33a0b190.js → page-b2540d642bc46f4c.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-e316dc83a5a557a6.js → page-e44166090e05cfb3.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-18192f830d2ddb76.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-db01adc017c79525.js → page-e996175d559e9e5a.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f3d9a84f9e04119e.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-b6b4de987365ec8f.js → page-3f52ff9517c679ba.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-10cfe308dcee550e.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-491fe95c5b5277a9.js → page-a43ff8ae35edb414.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-ec79e9bb5a842351.js → page-1ac6f4d529f9b6a5.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c55b823e44230396.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/routing-health/{page-703d4a28b1852949.js → page-a14b37a404e5e6e0.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-b6026576dd4be770.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-93bca4f363f4b6f1.js → page-73fe7ee1ecd1bd52.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-34f5228777b0430d.js → page-74477be9930501e3.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-3ecea7f87104d318.js → page-d74d7a054b638e0d.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-d77f0a1a4ce2f537.js → layout-100d6d3c6c7256f1.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/landing/page-7d5b31b8481d8fdd.js +1 -0
- package/app/.next-cli-build/static/chunks/app/login/{page-27e9a95a150a0ac4.js → page-57af8e67ea3a745f.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/css/abc246bcd6eb079c.css +1 -0
- package/app/CHANGELOG.md +333 -2
- package/app/package.json +3 -3
- package/app/public/CHANGELOG.md +333 -2
- package/app/public/i18n/literals/id.json +1368 -159
- package/app/public/i18n/literals/pt-BR.json +7 -8
- package/app/public/i18n/literals/zh-CN.json +1 -0
- package/app/public/providers/alims-intl.png +0 -0
- package/app/public/providers/alitp-intl.png +0 -0
- package/app/public/providers/fish-audio.png +0 -0
- package/app/public/providers/selfhosted-embedding.png +0 -0
- package/app/public/providers/selfhosted-stt.png +0 -0
- package/app/public/providers/selfhosted-tts.png +0 -0
- package/app/public/providers/xquik.png +0 -0
- package/app/src/mitm/server.js +26 -26
- package/hooks/sqliteRuntime.js +28 -5
- package/package.json +1 -1
- package/src/cli/menus/providers.js +5 -0
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +0 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route_client-reference-manifest.js +0 -1
- package/app/.next-cli-build/server/chunks/1446.js +0 -1
- package/app/.next-cli-build/server/chunks/2031.js +0 -1
- package/app/.next-cli-build/server/chunks/3904.js +0 -1
- package/app/.next-cli-build/server/chunks/5502.js +0 -1
- package/app/.next-cli-build/server/chunks/5841.js +0 -1
- package/app/.next-cli-build/server/chunks/7281.js +0 -1
- package/app/.next-cli-build/server/chunks/7335.js +0 -1
- package/app/.next-cli-build/server/chunks/7591.js +0 -1
- package/app/.next-cli-build/server/chunks/8906.js +0 -2
- package/app/.next-cli-build/server/chunks/9212.js +0 -1
- package/app/.next-cli-build/server/chunks/9884.js +0 -1
- package/app/.next-cli-build/static/9d6V9rrAx8cIjAoaKJjvb/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/2595-1b1c30e3a4314456.js +0 -92
- package/app/.next-cli-build/static/chunks/801-9683dc19ffb81217.js +0 -1
- package/app/.next-cli-build/static/chunks/8105-39d6edfaddcbf181.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-272444fcf2114bb5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-2247901c7422157d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-04f568d5510f26f7.js +0 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-38f69db60cdfe7cd.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-973240b44eb04877.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-4b65eb84c14bf9f0.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/landing/page-e7e81318e9e5c4e4.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/css/c784a89390f4e764.css +0 -1
- /package/app/.next-cli-build/static/{9d6V9rrAx8cIjAoaKJjvb → 4mlCrBOTKFKg2N9Gnk9oD}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=2382,exports.ids=[2382],exports.modules={8382:(a,b,c)=>{c.d(b,{d5:()=>d,nh:()=>e});let d="-review";function e(a){if(!a||"string"!=typeof a)return!1;let b=a.replace(/\([^()]+\)\s*$/,"").trim(),c=b.includes("/")?b.split("/").pop():b;return/^muse[-_]?spark(?:$|[-_:.\s])/i.test(c)}},13808:(a,b,c)=>{c.d(b,{$N:()=>f,OK:()=>g,Zl:()=>h,lz:()=>i});var d=c(55511),e=c.n(d);function f(a=32){return e().randomBytes(a).toString("base64url")}function g(a){return e().createHash("sha256").update(a).digest("base64url")}function h(){return e().randomBytes(32).toString("base64url")}function i(a=32){let b=f(a),c=g(b);return{codeVerifier:b,codeChallenge:c,state:h()}}},29485:(a,b,c)=>{c.d(b,{KC:()=>u,OA:()=>q,PROVIDER_MODELS:()=>f.vq,SM:()=>j,Xg:()=>t,cY:()=>v,ez:()=>p,fZ:()=>k,kt:()=>r,ux:()=>o});var d=c(4630),e=c(32892),f=c(39141),g=c(6595),h=c(8382),i=c(19956);function j(a){return f.vq[a]||[]}function k(a){let b=f.vq[a];return b?.[0]?.id||null}let l=new Set(["kr","kiro"]),m=new Map;for(let[a,b]of Object.entries(f.vq)){if(!Array.isArray(b))continue;let c=new Map,d=new Map;for(let e of b)if(e?.id!=null&&(c.set(e.id,e),l.has(a))){let a=(0,g.Kq)(e.id);a!==e.id&&d.set(a,e)}m.set(a,{exact:c,normalized:d})}function n(a,b,c){if(!a)return;let d=m.get(c);if(d){let a=d.exact.get(b);return a||(d.normalized.size?d.normalized.get(b):void 0)}let e=a.find(a=>a.id===b);if(e)return e;if(!l.has(c))return;let f=(0,g.Kq)(b);if(f!==b)return a.find(a=>a.id===f)}function o(a,b){if((!a||"oc"===a||"opencode"===a)&&(0,h.nh)(b))return i.h.OPENAI_RESPONSES;let c=t[a]||a,d=f.vq[c]||f.vq[a];return d?(0,g.gr)(n(d,b,c)):null}function p(a,b){let c=t[a]||a,d=f.vq[c]||f.vq[a];return d?(0,g.ec)(n(d,b,c)):null}function q(a,b){let c=t[a]||a,d=f.vq[c]||f.vq[a];if(!d)return null;let e=n(d,b,c);return e?.kind||e?.type||null}function r(a,b){let c=t[a]||a,d="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,e=d?d[0]:"",g=e?b.slice(0,d.index).trim():b,i=n(f.vq[c]||f.vq[a],g,c),j=i?.upstreamModelId||i?.id;if(j){let a=j.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?j.slice(0,a.index).trim():j)+(e||b)}return"cx"===c&&"string"==typeof g&&g.endsWith(h.d5)?g.slice(0,-h.d5.length)+e:g+e}let s=Object.fromEntries(e.default.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),t=Object.fromEntries(Object.keys(d.xq).map(a=>[a,s[a]||a]));function u(a){let b=t[a]||a;return f.vq[b]||[]}function v(a,b){return(0,g.g5)(n(f.vq[a],b,a))}},47370:(a,b,c)=>{c.d(b,{BY:()=>d.BY,E5:()=>d.E5,QB:()=>d.QB,SL:()=>d.SL,Zx:()=>d.Zx,_V:()=>d._V,j$:()=>d.j$,ox:()=>d.ox,rg:()=>d.rg,sZ:()=>d.sZ,uw:()=>d.uw,wV:()=>d.wV});var d=c(5129)},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{shouldFallback:!1,cooldownMs:0}}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()}}},49934:(a,b,c)=>{c.d(b,{qJ:()=>n,w9:()=>u,xK:()=>f,zn:()=>r}),c(77598);var d=c(89843);let e="https://cloud.zed.dev",f={expiredToken:"x-zed-expired-token",outdatedToken:"x-zed-outdated-token",clientSupportsStatus:"x-zed-client-supports-status-messages",clientSupportsStreamEnded:"x-zed-client-supports-stream-ended-request-completion-status",serverSupportsStatus:"x-zed-server-supports-status-messages",clientSupportsXai:"x-zed-client-supports-x-ai",systemId:"x-zed-system-id"},g=new Map,h=new Map,i=new Map;function j(a,b,c,d){var e;let f=(e=a?.[b],String(e||d).replace(/\/+$/,""));return`${f}${c}`}function k(a){let b=(a?.providerSpecificData||{}).userId||a?.userId,c=a?.accessToken||a?.apiKey;if(!b||!c)throw Error("Zed credential is missing userId or accessToken");return`${b} ${c}`}function l(a){return String(a?.providerSpecificData?.systemId||a?.systemId||"")}async function m(a,b,c=null){let e=await (0,d.proxyAwareFetch)(a,b,c),f=await e.text(),g=null;if(f)try{g=JSON.parse(f)}catch{g={raw:f}}if(!e.ok){let a=Error(String(g?.message||g?.error?.message||g?.error||f||`HTTP ${e.status}`));throw a.status=e.status,a.body=g,a}return g}async function n(a,b={}){let c=b.config||{},d={Accept:"application/json",Authorization:k(a)},g=l(a);return g&&(d[f.systemId]=g),m(j(c,"cloudBaseUrl","/client/users/me",e),{method:"GET",headers:d,signal:b.signal??void 0},b.proxyOptions??null)}function o(a){if(!a)return"";if("string"==typeof a)return a;if("object"==typeof a&&null!==a){if("string"==typeof a[0])return a[0];if("string"==typeof a.id)return a.id}return String(a)}function p(a,b=null){let c=a?.providerSpecificData||{},d=o(c.organizationId||c.defaultOrganizationId);if(d)return d;let e=o(b?.default_organization_id||b?.defaultOrganizationId);if(e)return e;let f=b?.organizations||[],g=f.find(a=>a?.is_personal)||f[0];return o(g?.id)}async function q(a,b={}){var c;let d,h,i=b.config||{},o=b.organizationId||p(a);if(!o){let c=await n(a,b);o=p(a,c)}if(!o)throw Error("No Zed organization selected");let r=(c=o,d=(a?.providerSpecificData||{}).userId||a?.userId||"unknown",h=a?.accessToken||a?.apiKey||"",`${d}:${c||"default"}:${h.slice(-16)}`),s=g.get(r);if(!b.forceRefresh&&s&&s.expiresAt>Date.now())return s.token;let t={"Content-Type":"application/json",Accept:"application/json",Authorization:k(a)},u=l(a);u&&(t[f.systemId]=u);let v=await m(j(i,"cloudBaseUrl","/client/llm_tokens",e),{method:"POST",headers:t,body:JSON.stringify({organization_id:o}),signal:b.signal??void 0}),w="string"==typeof v?.token?v.token:v?.token?.[0]||v?.token?.value;if(!w)throw Error("Zed did not return an LLM token");return g.set(r,{token:w,expiresAt:Date.now()+3e6}),w}async function r(a,b,c={}){var e;let g=j(c.config||{},"llmBaseUrl",b,"https://cloud.zed.dev"),h=async b=>{let e=await q(a,{...c,forceRefresh:b});return(0,d.proxyAwareFetch)(g,{...c.fetchOptions,headers:{...c.fetchOptions?.headers||{},Authorization:`Bearer ${e}`},signal:c.signal??void 0})},i=await h(!1);return e=i,(e?.status===401||e?.headers?.has?.(f.expiredToken)||e?.headers?.has?.(f.outdatedToken))&&(i=await h(!0)),i}function s(a){if(!a)return"";if("string"==typeof a)return a;if("object"==typeof a&&null!==a){if("string"==typeof a[0])return a[0];if("string"==typeof a.id)return a.id}return String(a)}function t(a){let b=s(a?.id);return b?{id:b,name:a.display_name||a.displayName||b,provider:a.provider,isLatest:!!a.is_latest,contextLength:a.max_token_count??a.maxTokenCount,contextLengthInMaxMode:a.max_token_count_in_max_mode??a.maxTokenCountInMaxMode,maxOutputTokens:a.max_output_tokens??a.maxOutputTokens,supportsTools:!!a.supports_tools,supportsImages:!!a.supports_images,supportsThinking:!!a.supports_thinking,supportsDisablingThinking:!!a.supports_disabling_thinking,supportsFastMode:!!a.supports_fast_mode,supportsServerSideCompaction:!!a.supports_server_side_compaction,supportedEffortLevels:a.supported_effort_levels??a.supportedEffortLevels??[],supportsStreamingTools:!!a.supports_streaming_tools,supportsParallelToolCalls:!!a.supports_parallel_tool_calls,isDisabled:!!a.is_disabled,disabledReason:a.disabled_reason??null}:null}async function u(a,b={}){let c,d,e;if(!a?.accessToken)return null;let g=(d=(c=a?.providerSpecificData||{}).organizationId||c.defaultOrganizationId||"default",e=a?.accessToken||a?.apiKey||"",`${c.userId||"unknown"}:${d}:${e.slice(-16)}`),j=h.get(g);if(!b.forceRefresh&&j&&j.expiresAt>Date.now())return j;let k=i.get(g);if(k&&!b.forceRefresh)return k;let l=(async()=>{let c=await r(a,"/models",{...b,fetchOptions:{method:"GET",headers:{Accept:"application/json",[f.clientSupportsXai]:"true"}}});if(!c.ok){let a=await c.text().catch(()=>"");throw Error(`Zed models failed: ${c.status} ${a}`)}let d=await c.json(),e=Array.isArray(d?.models)?d.models:[],i=e.map(t).filter(Boolean).filter(a=>!a.isDisabled),j=new Map;for(let a of e){let b=s(a?.id);b&&j.set(b,a)}let k={expiresAt:Date.now()+36e5,models:i,rawModels:e,rawById:j,defaultModel:s(d?.default_model??d?.defaultModel),defaultFastModel:s(d?.default_fast_model??d?.defaultFastModel),recommendedModels:(d?.recommended_models||d?.recommendedModels||[]).map(s).filter(Boolean)};return h.set(g,k),k})();i.set(g,l);try{return await l}finally{i.get(g)===l&&i.delete(g)}}},53129:(a,b,c)=>{function d(a,b){let c,d=String(a||"").trim();if(!d)throw Error(`xai discovery ${b} is empty`);try{c=new URL(d)}catch(a){throw Error(`xai discovery ${b} is invalid: ${a.message}`)}if("https:"!==c.protocol)throw Error(`xai discovery ${b} must use https: ${d}`);let e=c.hostname.toLowerCase().trim();if("x.ai"!==e&&!e.endsWith(".x.ai"))throw Error(`xai discovery ${b} host ${e} is not on x.ai`);return d}function e(a){if(!a||"string"!=typeof a)return;let b=a.split(".");if(3===b.length)try{let a=b[1].replace(/-/g,"+").replace(/_/g,"/"),c=(4-a.length%4)%4,d=Buffer.from(a+"=".repeat(c),"base64").toString("utf8"),e=JSON.parse(d);return e.email||e.preferred_username||e.sub||void 0}catch{return}}function f(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,e=c+"=".repeat(d);return JSON.parse(Buffer.from(e,"base64").toString("utf8"))}catch{return null}}function g(a){let b=f(a);if(b)return b.email||b.preferred_username||b.sub||void 0}async function h(a){if(!a)return null;try{let b=await fetch("https://codewhisperer.us-east-1.amazonaws.com/ListAvailableProfiles",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({maxResults:10})});if(!b.ok)return null;let c=await b.json();return c.profiles?.find(a=>a.arn?.trim())?.arn?.trim()||null}catch{return null}}function i(a){let b=f(a);if(!b)return{};let c=b["https://api.openai.com/auth"]||{};return{email:b.email,chatgptAccountId:c.chatgpt_account_id||b.account_id,chatgptPlanType:c.chatgpt_plan_type||b.plan_type}}c.d(b,{J_:()=>g,YR:()=>i,gR:()=>h,js:()=>d,pG:()=>e})},67677:(a,b,c)=>{c.d(b,{Gh:()=>k,IF:()=>p,O9:()=>g,OF:()=>o,WL:()=>h,_6:()=>j,_L:()=>m,bC:()=>n,f5:()=>l,lm:()=>f});var d=c(19956);let e="1"===process.env.LOG_USAGE_VERBOSE,f={reset:"\x1b[0m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",cyan:"\x1b[36m"};function g(a){if(!a||"object"!=typeof a)return a;let b={...a};return void 0!==b.input_tokens&&(b.input_tokens+=2e3),void 0!==b.prompt_tokens&&(b.prompt_tokens+=2e3),void 0!==b.total_tokens?b.total_tokens+=2e3:void 0!==b.prompt_tokens&&void 0!==b.completion_tokens&&(b.total_tokens=b.prompt_tokens+b.completion_tokens),b}function h(a,b){if(!a||"object"!=typeof a)return a;let c={[d.h.CLAUDE]:["input_tokens","output_tokens","cache_read_input_tokens","cache_creation_input_tokens","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.GEMINI]:["promptTokenCount","candidatesTokenCount","totalTokenCount","cachedContentTokenCount","thoughtsTokenCount","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.OPENAI_RESPONSES]:["input_tokens","output_tokens","input_tokens_details","output_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],default:["prompt_tokens","completion_tokens","total_tokens","cached_tokens","reasoning_tokens","prompt_tokens_details","completion_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"]},e=c[b];b===d.h.GEMINI_CLI||b===d.h.ANTIGRAVITY?e=c[d.h.GEMINI]:b===d.h.OPENAI_RESPONSE?e=c[d.h.OPENAI_RESPONSES]:e||(e=c.default);let f={};for(let b of e)void 0!==a[b]&&(f[b]=a[b]);return f}function i(a){if(!a||"object"!=typeof a||Array.isArray(a))return null;let b={},c=(a,c)=>{if(null==c)return;let d=Number(c);Number.isFinite(d)&&(b[a]=d)},d=(a,c)=>{if(null==c||""===c)return;let d=Number(c);Number.isFinite(d)&&d>=0&&(b[a]=d)};return(c("prompt_tokens",a?.prompt_tokens),c("completion_tokens",a?.completion_tokens),c("total_tokens",a?.total_tokens),c("cache_read_input_tokens",a?.cache_read_input_tokens),c("cache_creation_input_tokens",a?.cache_creation_input_tokens),c("cached_tokens",a?.cached_tokens),c("reasoning_tokens",a?.reasoning_tokens),d("cost_usd",a?.cost_usd),d("cost_in_usd",a?.cost_in_usd),d("cost_in_usd_ticks",a?.cost_in_usd_ticks),a?.prompt_tokens_details&&"object"==typeof a.prompt_tokens_details&&(b.prompt_tokens_details=a.prompt_tokens_details),a?.completion_tokens_details&&"object"==typeof a.completion_tokens_details&&(b.completion_tokens_details=a.completion_tokens_details),0===Object.keys(b).length)?null:b}function j(a){let b;if(!a||"object"!=typeof a||Array.isArray(a))return null;let c=a=>Number.isFinite(Number(a))?Number(a):0,d=c(a.completion_tokens??a.output_tokens),e=c(a.reasoning_tokens),f=c(a.cache_creation_input_tokens??a.prompt_tokens_details?.cache_creation_tokens),g=c(a.prompt_tokens??a.input_tokens);void 0===a.cached_tokens&&(void 0!==a.cache_read_input_tokens||void 0!==a.cache_creation_input_tokens)?g=g+(b=c(a.cache_read_input_tokens))+f:b=c(a.cached_tokens??a.prompt_tokens_details?.cached_tokens);let h={prompt_tokens:g,completion_tokens:d,total_tokens:g+d,cached_tokens:b,cache_creation_input_tokens:f},i=b=>{if(null===a[b]||void 0===a[b]||""===a[b])return;let c=Number(a[b]);Number.isFinite(c)&&c>=0&&(h[b]=c)};return i("cost_usd"),i("cost_in_usd"),i("cost_in_usd_ticks"),e>0&&(h.reasoning_tokens=e),h}function k(a){if(!a||"object"!=typeof a)return!1;for(let b of["prompt_tokens","completion_tokens","total_tokens","input_tokens","output_tokens","promptTokenCount","candidatesTokenCount"])if("number"==typeof a[b]&&a[b]>0)return!0;return!1}function l(a){if(!a||"object"!=typeof a)return null;if("message_start"===a.type&&a.message?.usage&&"object"==typeof a.message.usage){let b=a.message.usage;return i({prompt_tokens:b.input_tokens||0,completion_tokens:b.output_tokens||0,cache_read_input_tokens:b.cache_read_input_tokens,cache_creation_input_tokens:b.cache_creation_input_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks})}if("message_delta"===a.type&&a.usage&&"object"==typeof a.usage)return i({prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks});if(("response.completed"===a.type||"response.done"===a.type)&&a.response?.usage&&"object"==typeof a.response.usage){let b=a.response.usage,c=b.input_tokens_details?.cached_tokens;return i({prompt_tokens:b.input_tokens||b.prompt_tokens||0,completion_tokens:b.output_tokens||b.completion_tokens||0,cached_tokens:c,reasoning_tokens:b.output_tokens_details?.reasoning_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks,prompt_tokens_details:c?{cached_tokens:c}:void 0})}if(a.usage&&"object"==typeof a.usage&&void 0!==a.usage.prompt_tokens)return i({prompt_tokens:a.usage.prompt_tokens,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.prompt_tokens_details?.cached_tokens||a.usage.prompt_cache_hit_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks,prompt_tokens_details:a.usage.prompt_tokens_details,completion_tokens_details:a.usage.completion_tokens_details});let b=a.usageMetadata||a.response?.usageMetadata;return b&&"object"==typeof b?i({prompt_tokens:b.promptTokenCount||0,completion_tokens:b.candidatesTokenCount||0,total_tokens:b.totalTokenCount,cached_tokens:b.cachedContentTokenCount,reasoning_tokens:b.thoughtsTokenCount}):!0===a.done&&"number"==typeof a.prompt_eval_count?i({prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}):null}function m(a,b){if(!a)return b||null;if(!b)return a;let c={...a};for(let[a,d]of Object.entries(b))"number"==typeof d&&Number.isFinite(d)?c[a]=Math.max("number"==typeof c[a]?c[a]:0,d):d&&"object"==typeof d&&(c[a]=d);return c}function n(a){if(!a||"object"!=typeof a)return 0;try{let b=JSON.stringify(a).length;return Math.ceil(b/4)}catch(a){return 0}}function o(a,b,c=d.h.OPENAI){var e,f;return e=n(a),f=b&&!(b<=0)?Math.max(1,Math.floor(b/4)):0,c===d.h.CLAUDE?g({input_tokens:e,output_tokens:f,estimated:!0}):g({prompt_tokens:e,completion_tokens:f,total_tokens:e+f,estimated:!0})}function p(a,b,c=null,d=null,g=null){if(!b||"object"!=typeof b||!e)return;let h=a?.toUpperCase()||"UNKNOWN",i=b?.prompt_tokens||b?.input_tokens||0,j=b?.completion_tokens||b?.output_tokens||0,k=d?d.slice(0,8)+"...":"unknown",l=`[${new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}] 📊 ${f.green}[USAGE] ${h} | in=${i} | out=${j} | account=${k}${f.reset}`;b.estimated&&(l+=` ${f.yellow}(estimated)${f.reset}`);let m=b.cache_read_input_tokens||b.cached_tokens||b.prompt_tokens_details?.cached_tokens;m&&(l+=` | cache_read=${m}`);let n=b.cache_creation_input_tokens;n&&(l+=` | cache_create=${n}`);let o=b.reasoning_tokens;o&&(l+=` | reasoning=${o}`),console.log(l)}},73159:(a,b,c)=>{c.d(b,{Ue:()=>k,oT:()=>l});var d=c(39141);let e=d.xq.xai?.clientId,f="https://auth.x.ai",g="/oauth2/authorize",h="/oauth2/token",i="/.well-known/openid-configuration",j="/callback",k=96,l={clientId:e,issuer:f,authEndpointPath:g,tokenEndpointPath:h,discoveryPath:i,authorizeUrl:`${f}${g}`,tokenUrl:`${f}${h}`,discoveryUrl:`${f}${i}`,scope:"openid profile email offline_access grok-cli:access api:access",apiBaseUrl:"https://api.x.ai/v1",redirectUri:`http://127.0.0.1:56121${j}`,loopbackPort:56121,callbackPath:j,pkceVerifierBytes:96,refreshLeadSeconds:300,userAgent:"grok-cli/9router",codeChallengeMethod:"S256"}},74177:(a,b,c)=>{c.d(b,{PY:()=>s,Re:()=>p,Su:()=>q,exchangeTokens:()=>o,extractCodexAccountInfo:()=>i.YR,fetchKiroProfileArn:()=>i.gR,kP:()=>n,sO:()=>m}),c(30369);var d=c(55511),e=c.n(d),f=c(13808),g=c(92990),h=c(73159),i=c(53129);let j=null;async function k(){if(j)return j;try{let a=await fetch(h.oT.discoveryUrl,{headers:{Accept:"application/json"}});if(a.ok){let b=await a.json();return j={authorizeUrl:(0,i.js)(b.authorization_endpoint,"authorization_endpoint"),tokenUrl:(0,i.js)(b.token_endpoint,"token_endpoint")}}}catch{}return j={authorizeUrl:h.oT.authorizeUrl,tokenUrl:h.oT.tokenUrl}}let l={claude:{config:g.OV,flowType:"authorization_code_pkce",buildAuthUrl:(a,b,c,d)=>{let e=new URLSearchParams({code:"true",client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),code_challenge:d,code_challenge_method:a.codeChallengeMethod,state:c});return`${a.authorizeUrl}?${e.toString()}`},exchangeToken:async(a,b,c,d,e)=>{let f=b,g="";if(f.includes("#")){let a=f.split("#");f=a[0],g=a[1]||""}let h=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({code:f,state:g||e,grant_type:"authorization_code",client_id:a.clientId,redirect_uri:c,code_verifier:d})});if(!h.ok){let a=await h.text();throw Error(`Token exchange failed: ${a}`)}return await h.json()},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope})},codex:{config:g.DI,flowType:"authorization_code_pkce",fixedPort:g.DI.fixedPort,callbackPath:g.DI.callbackPath,buildAuthUrl:(a,b,c,d)=>{let e=Object.entries({response_type:"code",client_id:a.clientId,redirect_uri:b,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod,...a.extraParams,state:c}).map(([a,b])=>`${a}=${encodeURIComponent(b)}`).join("&");return`${a.authorizeUrl}?${e}`},exchangeToken:async(a,b,c,d)=>{let e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,code:b,redirect_uri:c,code_verifier:d})});if(!e.ok){let a=await e.text();throw Error(`Token exchange failed: ${a}`)}return await e.json()},mapTokens:a=>{let b=(0,i.YR)(a.id_token),c={accessToken:a.access_token,refreshToken:a.refresh_token,idToken:a.id_token,expiresIn:a.expires_in,lastRefreshAt:new Date().toISOString()},d=b.email||(0,i.J_)(a.access_token);return d&&(c.email=d),(b.chatgptAccountId||b.chatgptPlanType)&&(c.providerSpecificData={chatgptAccountId:b.chatgptAccountId,chatgptPlanType:b.chatgptPlanType}),c}},xai:{config:h.oT,flowType:"authorization_code_pkce",fixedPort:h.oT.loopbackPort,callbackPath:h.oT.callbackPath,pkceVerifierBytes:h.Ue,prepareConfig:async a=>{let b=await k();return{...a,authorizeUrl:b.authorizeUrl,tokenUrl:b.tokenUrl}},buildAuthUrl:(a,b,c,d)=>{let f=e().randomBytes(16).toString("hex"),g=Object.entries({response_type:"code",client_id:a.clientId,redirect_uri:b,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod,state:c,nonce:f,plan:"generic",referrer:"cli-proxy-api"}).map(([a,b])=>`${a}=${encodeURIComponent(b)}`).join("&");return`${a.authorizeUrl}?${g}`},exchangeToken:async(a,b,c,d)=>{let e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,code:b,redirect_uri:c,code_verifier:d})});if(!e.ok){let a=await e.text();throw Error(`xAI token exchange failed: ${a}`)}return await e.json()},mapTokens:a=>{let b={accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope},c=(0,i.pG)(a.id_token);return c&&(b.email=c),a.id_token&&(b.providerSpecificData={idToken:a.id_token}),b}},"grok-cli":{config:g.qp,flowType:"device_code",requestDeviceCode:async a=>{let b=new URLSearchParams({client_id:a.clientId,scope:a.scope});a.referrer&&b.set("referrer",a.referrer);let c=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)"},body:b});if(!c.ok){let a=await c.text();throw Error(`Grok CLI device code request failed: ${a}`)}return await c.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:b,client_id:a.clientId})});try{c=await d.json()}catch{c={error:"invalid_response",error_description:await d.text()}}let e=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||e,data:c}},postExchange:async a=>{try{let b=await fetch("https://cli-chat-proxy.grok.com/v1/user",{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)","x-xai-token-auth":"xai-grok-cli","x-grok-client-version":"0.2.93"}});if(b.ok)return{user:await b.json()}}catch{}return{user:null}},mapTokens:(a,b)=>{let c=(0,i.pG)(a.id_token)||(0,i.J_)(a.access_token)||b?.user?.email||null,d=b?.user?.userId||b?.user?.principalId||null,e=[b?.user?.firstName,b?.user?.lastName].filter(Boolean).join(" ").trim()||null,f=a.expires_in?new Date(Date.now()+1e3*a.expires_in).toISOString():null;return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,expiresAt:f,scope:a.scope,email:c||void 0,displayName:e||void 0,providerSpecificData:{authMethod:"device_code",idToken:a.id_token||null,email:c||null,userId:d,hasGrokCodeAccess:b?.user?.hasGrokCodeAccess??null,subscriptionTier:b?.user?.subscriptionTier??null}}}},"frontier-for-all":{config:g.V1,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scope})});if(!b.ok){let a=await b.text();throw Error(`Frontier device code request failed: ${a}`)}return await b.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.deviceTokenUrl||a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:b,client_id:a.clientId})});try{c=await d.json()}catch{c={error:"invalid_response",error_description:await d.text()}}let e=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||e,data:c}},postExchange:async a=>{try{let b=await fetch(g.V1.modelsUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json"}});if(b.ok){let a=await b.json();return{model:a?.data?.[0]||null}}}catch{}return{model:null}},mapTokens:(a,b)=>{let c=b?.model||null,d=c?.frontier||{};return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,expiresAt:a.expires_in?new Date(Date.now()+1e3*a.expires_in).toISOString():null,scope:a.scope,displayName:c?.id?`Frontier — ${c.id}`:void 0,providerSpecificData:{authMethod:"device_code",resolvedModel:c?.id||null,upstreamProvider:d.provider||null,eligible:d.eligible??null}}}},"gemini-cli":{config:g.LT,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),state:c,access_type:"offline",prompt:"consent"});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,client_secret:a.clientSecret,code:b,redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Token exchange failed: ${a}`)}return await d.json()},postExchange:async a=>{let b=await fetch(`${g.LT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`}}),c=b.ok?await b.json():{},d="";try{let b=await fetch("https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",{method:"POST",headers:{Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json"},body:JSON.stringify({metadata:(0,g.cD)(),mode:1})});if(b.ok){let a=await b.json();d=a.cloudaicompanionProject?.id||a.cloudaicompanionProject||""}}catch(a){console.log("Failed to fetch project ID:",a)}return{userInfo:c,projectId:d}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,email:b?.userInfo?.email,projectId:b?.projectId})},antigravity:{config:g.YT,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),state:c,access_type:"offline",prompt:"consent"});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,client_secret:a.clientSecret,code:b,redirect_uri:c}),signal:AbortSignal.timeout(1e4)});if(!d.ok){let a=await d.text();throw Error(`Token exchange failed: ${a}`)}return await d.json()},postExchange:async a=>{let b={Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json","User-Agent":g.YT.loadCodeAssistUserAgent,"X-Goog-Api-Client":g.YT.loadCodeAssistApiClient,"Client-Metadata":g.YT.loadCodeAssistClientMetadata,"x-request-source":"local"},c=(0,g.cD)(),d={};try{let b=await fetch(`${g.YT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`,"x-request-source":"local"},signal:AbortSignal.timeout(5e3)});b.ok&&(d=await b.json())}catch(a){console.log("Failed to fetch user info:",a)}let e="",f="legacy-tier";try{let a=await fetch(g.YT.loadCodeAssistEndpoint,{method:"POST",headers:b,body:JSON.stringify({metadata:c}),signal:AbortSignal.timeout(5e3)});if(a.ok){let b=await a.json();if(e=b.cloudaicompanionProject?.id||b.cloudaicompanionProject||"",Array.isArray(b.allowedTiers)){for(let a of b.allowedTiers)if(a.isDefault&&a.id){f=a.id.trim();break}}}}catch(a){console.log("Failed to load code assist:",a)}return e&&(async()=>{for(let a=0;a<10;a++){try{let a=await fetch(g.YT.onboardUserEndpoint,{method:"POST",headers:b,body:JSON.stringify({tierId:f,metadata:c})});if(a.ok){let b=await a.json();if(!0===b.done)break}}catch(a){break}await new Promise(a=>setTimeout(a,5e3))}})().catch(()=>{}),{userInfo:d,projectId:e}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,email:b?.userInfo?.email,projectId:b?.projectId})},iflow:{config:g.ZL,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({loginMethod:a.extraParams.loginMethod,type:a.extraParams.type,redirect:b,state:c,client_id:a.clientId});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=Buffer.from(`${a.clientId}:${a.clientSecret}`).toString("base64"),e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",Authorization:`Basic ${d}`},body:new URLSearchParams({grant_type:"authorization_code",code:b,redirect_uri:c,client_id:a.clientId,client_secret:a.clientSecret})});if(!e.ok){let a=await e.text();throw Error(`Token exchange failed: ${a}`)}return await e.json()},postExchange:async a=>{let b=await fetch(`${g.ZL.userInfoUrl}?accessToken=${encodeURIComponent(a.access_token)}`,{headers:{Accept:"application/json"}});if(!b.ok){let a=await b.text();throw Error(`Failed to fetch user info: ${a}`)}let c=await b.json();if(!c.success)throw Error(`User info request failed: ${c.message||"Unknown error"}`);let d=c.data||{};if(!d.apiKey||""===d.apiKey.trim())throw Error("Empty API key returned from iFlow");if(!(d.email?.trim()||d.phone?.trim()))throw Error("Missing account email/phone in user info");return{userInfo:d}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,apiKey:b?.userInfo?.apiKey,email:b?.userInfo?.email||b?.userInfo?.phone,displayName:b?.userInfo?.nickname||b?.userInfo?.name})},qoder:{config:g.hF,flowType:"device_code",requestDeviceCode:async a=>{let{QoderService:b}=await c.e(6769).then(c.bind(c,91531)),d=new b().initiateDeviceFlow();return{device_code:d.nonce,user_code:d.nonce.slice(0,8).toUpperCase(),verification_uri:a.loginUrl,verification_uri_complete:d.verificationUriComplete,expires_in:300,interval:2,codeVerifier:d.codeVerifier,_qoderNonce:d.nonce,_qoderMachineId:d.machineId}},pollToken:async(a,b,d,e)=>{let f,{QoderService:g}=await c.e(6769).then(c.bind(c,91531)),h=new g,i=b||e?._qoderNonce,j=d||e?._qoderVerifier;if(!i||!j)return{ok:!1,data:{error:"invalid_request",error_description:"Missing nonce/verifier"}};try{f=await h.pollDeviceToken({nonce:i,codeVerifier:j})}catch(a){return{ok:!1,data:{error:"poll_failed",error_description:a.message}}}if("pending"===f.status)return{ok:!1,data:{error:"authorization_pending"}};let k=await h.fetchUserInfo(f.accessToken),l=Math.max(86400,Math.floor((f.expireTime-Date.now())/1e3));return{ok:!0,data:{access_token:f.accessToken,refresh_token:f.refreshToken,expires_in:l,_qoderUserId:f.userId,_qoderMachineId:e?._qoderMachineId||"",_qoderName:k.name,_qoderEmail:k.email,_qoderOrganizationId:k.organizationId}}},mapTokens:a=>{let b=(a._qoderEmail||"").trim(),c=(a._qoderName||"").trim()||null,d=a._qoderUserId||"",e=b||(d?`qoder-user-${d}`:null);return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,email:e,displayName:c,providerSpecificData:{authMethod:"device",userId:d,machineId:a._qoderMachineId||"",organizationId:a._qoderOrganizationId||""}}}},qwen:{config:g.Hp,flowType:"device_code",requestDeviceCode:async(a,b)=>{let c=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scope,code_challenge:b,code_challenge_method:a.codeChallengeMethod})});if(!c.ok){let a=await c.text();throw Error(`Device code request failed: ${a}`)}return await c.json()},pollToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",client_id:a.clientId,device_code:b,code_verifier:c})});return{ok:d.ok,data:await d.json()}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,providerSpecificData:{resourceUrl:a.resource_url}})},github:{config:g.Nu,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scopes})});if(!b.ok){let a=await b.text();throw Error(`Device code request failed: ${a}`)}return await b.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,device_code:b,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});try{c=await d.json()}catch(a){c={error:"invalid_response",error_description:await d.text()}}return{ok:d.ok,data:c}},postExchange:async a=>{let b=await fetch(g.Nu.copilotTokenUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":g.Nu.apiVersion,"User-Agent":g.Nu.userAgent}}),c=b.ok?await b.json():{},d=await fetch(g.Nu.userInfoUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":g.Nu.apiVersion,"User-Agent":g.Nu.userAgent}});return{copilotToken:c,userInfo:d.ok?await d.json():{}}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,name:b?.userInfo?.login||b?.userInfo?.name,displayName:b?.userInfo?.name||b?.userInfo?.login,email:b?.userInfo?.email||null,providerSpecificData:{copilotToken:b?.copilotToken?.token,copilotTokenExpiresAt:b?.copilotToken?.expires_at,githubUserId:b?.userInfo?.id,githubLogin:b?.userInfo?.login,githubName:b?.userInfo?.name,githubEmail:b?.userInfo?.email}})},kiro:{config:g.Tx,flowType:"device_code",requestDeviceCode:async(a,b,c={})=>{let d=("string"==typeof c.region?c.region.trim():"")||"us-east-1";(0,g.S6)(d);let e=("string"==typeof c.startUrl?c.startUrl.trim():"")||a.startUrl,f="idc"===c.authMethod?"idc":"builder-id",h=`https://oidc.${d}.amazonaws.com/client/register`,i=`https://oidc.${d}.amazonaws.com/device_authorization`,j=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientName:a.clientName,clientType:a.clientType,scopes:a.scopes,grantTypes:a.grantTypes,issuerUrl:a.issuerUrl})});if(!j.ok){let a=await j.text();throw Error(`Client registration failed: ${a}`)}let k=await j.json(),l=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:k.clientId,clientSecret:k.clientSecret,startUrl:e})});if(!l.ok){let a=await l.text();throw Error(`Device authorization failed: ${a}`)}let m=await l.json();return{device_code:m.deviceCode,user_code:m.userCode,verification_uri:m.verificationUri,verification_uri_complete:m.verificationUriComplete,expires_in:m.expiresIn,interval:m.interval||5,_clientId:k.clientId,_clientSecret:k.clientSecret,_region:d,_authMethod:f,_startUrl:e}},pollToken:async(a,b,c,d)=>{let e,f=d?._region||"us-east-1";(0,g.S6)(f);let h=`https://oidc.${f}.amazonaws.com/token`,i=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:d?._clientId,clientSecret:d?._clientSecret,deviceCode:b,grantType:"urn:ietf:params:oauth:grant-type:device_code"})});try{e=await i.json()}catch(a){e={error:"invalid_response",error_description:await i.text()}}return e.accessToken?{ok:!0,data:{access_token:e.accessToken,refresh_token:e.refreshToken,expires_in:e.expiresIn,profile_arn:e?.profileArn||null,_clientId:d?._clientId,_clientSecret:d?._clientSecret,_region:d?._region,_authMethod:d?._authMethod,_startUrl:d?._startUrl}}:{ok:!1,data:{error:e.error||"authorization_pending",error_description:e.error_description||e.message}}},mapTokens:a=>{let b=(0,i.J_)(a.access_token);return{accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,email:b,providerSpecificData:{profileArn:a?.profile_arn||null,clientId:a._clientId,clientSecret:a._clientSecret,region:a._region||"us-east-1",authMethod:a._authMethod||"builder-id",startUrl:a._startUrl||g.Tx.startUrl}}}},cursor:{config:g.WN,flowType:"authorization_code_pkce",buildAuthUrl:()=>null,mapTokens:a=>a},kimi:{config:g.aV,flowType:"device_code",requestDeviceCode:async a=>{let{buildKimiHeaders:b}=await Promise.resolve().then(c.bind(c,28730)),d=e().randomUUID(),f={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...b(d)},g=await fetch(a.deviceCodeUrl,{method:"POST",headers:f,body:new URLSearchParams({client_id:a.clientId})});if(!g.ok){let a=await g.text();throw Error(`Device code request failed: ${a}`)}let h=await g.json(),i=a.authorizeDeviceUrl||"https://www.kimi.com/code/authorize_device";return{device_code:h.device_code,user_code:h.user_code,verification_uri:h.verification_uri||i,verification_uri_complete:h.verification_uri_complete||`${i}?user_code=${h.user_code}`,expires_in:h.expires_in,interval:h.interval||5,_kimiDeviceId:d}},pollToken:async(a,b,d,e)=>{let f,{buildKimiHeaders:g}=await Promise.resolve().then(c.bind(c,28730)),h=e?._kimiDeviceId,i={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...g(h)},j=await fetch(a.tokenUrl,{method:"POST",headers:i,body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",client_id:a.clientId,device_code:b})});try{f=await j.json()}catch{f={error:"invalid_response",error_description:"non-json token response"}}return"authorization_pending"===f.error||"slow_down"===f.error?{ok:!0,data:f}:(f.access_token&&h&&(f._kimiDeviceId=h),{ok:j.ok||!!f.access_token||!!f.error,data:f})},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,providerSpecificData:{authMethod:"device_code",...a._kimiDeviceId?{deviceId:a._kimiDeviceId}:{}}})},kilocode:{config:g.MZ,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.initiateUrl,{method:"POST",headers:{"Content-Type":"application/json"}});if(!b.ok){if(429===b.status)throw Error("Too many pending authorization requests. Please try again later.");let a=await b.text();throw Error(`Device auth initiation failed: ${a}`)}let c=await b.json();return{device_code:c.code,user_code:c.code,verification_uri:c.verificationUrl,verification_uri_complete:c.verificationUrl,expires_in:c.expiresIn||300,interval:3}},pollToken:async(a,b)=>{let c=await fetch(`${a.pollUrlBase}/${b}`);if(202===c.status)return{ok:!1,data:{error:"authorization_pending"}};if(403===c.status)return{ok:!1,data:{error:"access_denied",error_description:"Authorization denied by user"}};if(410===c.status)return{ok:!1,data:{error:"expired_token",error_description:"Authorization code expired"}};if(!c.ok)return{ok:!1,data:{error:"poll_failed",error_description:`Poll failed: ${c.status}`}};let d=await c.json();if("approved"===d.status&&d.token){let b=null;try{let c=await fetch(`${a.apiBaseUrl}/api/profile`,{headers:{Authorization:`Bearer ${d.token}`}});if(c.ok){let a=await c.json();b=a.organizations?.[0]?.id||null}}catch{}return{ok:!0,data:{access_token:d.token,_userEmail:d.userEmail,_orgId:b}}}return{ok:!1,data:{error:"authorization_pending"}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:null,expiresIn:null,email:a._userEmail,...a._orgId?{providerSpecificData:{orgId:a._orgId}}:{}})},cline:{config:g.lB,flowType:"authorization_code",buildAuthUrl:(a,b)=>{let c=new URLSearchParams({client_type:"extension",callback_url:b,redirect_uri:b});return`${a.authorizeUrl}?${c.toString()}`},exchangeToken:async(a,b,c)=>{try{let a=b,c=4-a.length%4;4!==c&&(a+="=".repeat(c));let d=Buffer.from(a,"base64").toString("utf-8"),e=d.lastIndexOf("}");if(-1===e)throw Error("No JSON found in decoded code");let f=JSON.parse(d.substring(0,e+1));return{access_token:f.accessToken,refresh_token:f.refreshToken,email:f.email,firstName:f.firstName,lastName:f.lastName,expires_at:f.expiresAt}}catch(f){let d=await fetch(a.tokenExchangeUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"authorization_code",code:b,client_type:"extension",redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Cline token exchange failed: ${a}`)}let e=await d.json();return{access_token:e.data?.accessToken||e.accessToken,refresh_token:e.data?.refreshToken||e.refreshToken,email:e.data?.userInfo?.email||"",expires_at:e.data?.expiresAt||e.expiresAt}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_at?Math.floor((new Date(a.expires_at).getTime()-Date.now())/1e3):3600,email:a.email,providerSpecificData:{firstName:a.firstName,lastName:a.lastName}})},clinepass:{config:g.w1,flowType:"authorization_code",buildAuthUrl:(a,b)=>{let c=new URLSearchParams({client_type:"extension",callback_url:b,redirect_uri:b});return`${a.authorizeUrl}?${c.toString()}`},exchangeToken:async(a,b,c)=>{try{let a=b,c=4-a.length%4;4!==c&&(a+="=".repeat(c));let d=Buffer.from(a,"base64").toString("utf-8"),e=d.lastIndexOf("}");if(-1===e)throw Error("No JSON found in decoded code");let f=JSON.parse(d.substring(0,e+1));return{access_token:f.accessToken,refresh_token:f.refreshToken,email:f.email,firstName:f.firstName,lastName:f.lastName,expires_at:f.expiresAt}}catch(f){let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"authorization_code",code:b,client_type:"extension",redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`ClinePass token exchange failed: ${a}`)}let e=await d.json();return{access_token:e.data?.accessToken||e.accessToken,refresh_token:e.data?.refreshToken||e.refreshToken,email:e.data?.userInfo?.email||"",expires_at:e.data?.expiresAt||e.expiresAt}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_at?Math.floor((new Date(a.expires_at).getTime()-Date.now())/1e3):3600,email:a.email,providerSpecificData:{firstName:a.firstName,lastName:a.lastName}})},gitlab:{config:g.f7,flowType:"authorization_code_pkce",buildAuthUrl:(a,b,c,d,e={})=>{let f=e.baseUrl||a.defaultBaseUrl,g=new URLSearchParams({client_id:e.clientId||"",redirect_uri:b,response_type:"code",state:c,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod});return`${f}${a.authorizeUrlPath}?${g.toString()}`},exchangeToken:async(a,b,c,d,e,f={})=>{let g=f.baseUrl||a.defaultBaseUrl,h=f.clientId||"",i=f.clientSecret||"",j=new URLSearchParams({client_id:h,grant_type:"authorization_code",code:b,redirect_uri:c,code_verifier:d});i&&j.set("client_secret",i);let k=await fetch(`${g}${a.tokenUrlPath}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:j.toString()});if(!k.ok)throw Error(`GitLab token exchange failed: ${await k.text()}`);let l=await k.json(),m=await fetch(`${g}${a.userInfoUrlPath}`,{headers:{Authorization:`Bearer ${l.access_token}`}}),n=m.ok?await m.json():{};return{...l,_user:n,_baseUrl:g,_clientId:h}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,providerSpecificData:{username:a._user?.username||"",email:a._user?.email||a._user?.public_email||"",name:a._user?.name||"",baseUrl:a._baseUrl,clientId:a._clientId,authKind:"oauth"}})},"codebuddy-cn":{config:g.Nl,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(`${a.stateUrl}?platform=${a.platform}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-No-Authorization":"true","X-No-User-Id":"true","X-Product":"SaaS"},body:"{}"});if(!b.ok)throw Error(`CodeBuddy state request failed: ${await b.text()}`);let c=await b.json();if(0!==c.code||!c.data?.state||!c.data?.authUrl)throw Error(`CodeBuddy state error: ${c.msg||"missing state/authUrl"}`);return{device_code:c.data.state,verification_uri:c.data.authUrl,user_code:"",interval:a.pollInterval/1e3,_isCodeBuddy:!0}},pollToken:async(a,b)=>{let c=await fetch(`${a.tokenUrl}?state=${encodeURIComponent(b)}`,{method:"GET",headers:{Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-No-Authorization":"true","X-No-User-Id":"true","X-No-Enterprise-Id":"true","X-No-Department-Info":"true","X-Product":"SaaS"}});if(!c.ok)return{ok:!1,data:{error:"request_failed"}};let d=await c.json();return 0===d.code&&d.data?.accessToken?{ok:!0,data:{access_token:d.data.accessToken,refresh_token:d.data.refreshToken||"",token_type:d.data.tokenType||"Bearer",expires_in:d.data.expiresIn}}:11217===d.code?{ok:!0,data:{error:"authorization_pending"}}:{ok:!1,data:{error:d.msg||"unknown_error"}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in||86400,providerSpecificData:{}})},kimchi:{config:g.Td,flowType:"browser_token",buildAuthUrl:(a,b,c)=>{let d=(a.webAppUrl||"https://app.kimchi.dev").replace(/\/+$/,""),e=new URLSearchParams({callback:b,state:c});return`${d}/cli-auth?${e.toString()}`},exchangeToken:async(a,b)=>{let c=String(b||"").trim();if(!c)throw Error("Missing Kimchi token");let d=a.validationUrl||"https://api.cast.ai/v1/llm/openai/supported-providers",e=await fetch(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${c}`}});if(!e.ok)throw Error(`Kimchi token validation failed: ${e.status}`);let f={};if(a.userInfoUrl)try{let b=await fetch(a.userInfoUrl,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${c}`}});b.ok&&(f=await b.json())}catch{f={}}return{access_token:c,token_type:"Bearer",_kimchiUser:f}},mapTokens:a=>{let b=a._kimchiUser||{},c=b.id?String(b.id):"",d=b.username||"",e=b.email||(c?`kimchi-user-${c}`:null);return{accessToken:a.access_token,refreshToken:null,email:e,displayName:b.name||d||null,providerSpecificData:{authMethod:"browser_token",userId:c,username:d}}}}};function m(a){let b=l["kimi-coding"===a?"kimi":a];if(!b)throw Error(`Unknown provider: ${a}`);return b}async function n(a,b,c){let d=m(a),e=d.prepareConfig?await d.prepareConfig(d.config,c||{}):d.config,{codeVerifier:g,codeChallenge:h,state:i}=(0,f.lz)(d.pkceVerifierBytes);return{authUrl:"device_code"===d.flowType?null:"authorization_code_pkce"===d.flowType?d.buildAuthUrl(e,b,i,h,c||{}):d.buildAuthUrl(e,b,i,void 0,c||{}),state:i,codeVerifier:g,codeChallenge:h,redirectUri:b,flowType:d.flowType,fixedPort:d.fixedPort,callbackPath:d.callbackPath||"/callback"}}async function o(a,b,c,d,e,f){let g=m(a),h=g.prepareConfig?await g.prepareConfig(g.config,f||{}):g.config,i=await g.exchangeToken(h,b,c,d,e,f||{}),j=null;return g.postExchange&&(j=await g.postExchange(i)),g.mapTokens(i,j)}async function p(a,b,c){let d=m(a);if("device_code"!==d.flowType)throw Error(`Provider ${a} does not support device code flow`);return await d.requestDeviceCode(d.config,b,c||{})}async function q(a,b,c,d){let e=m(a);if("device_code"!==e.flowType)throw Error(`Provider ${a} does not support device code flow`);let f=await e.pollToken(e.config,b,c,d);if(f.ok)if(f.data.access_token){let b=null;e.postExchange&&(b=await e.postExchange(f.data));let c=e.mapTokens(f.data,b);if("kiro"===a&&!c.providerSpecificData?.profileArn){let a=await (0,i.gR)(c.accessToken);a&&(c.providerSpecificData.profileArn=a)}return{success:!0,tokens:c}}else if("authorization_pending"===f.data.error||"slow_down"===f.data.error)return{success:!1,error:f.data.error,errorDescription:f.data.error_description||f.data.message,pending:"authorization_pending"===f.data.error};else return{success:!1,error:f.data.error||"no_access_token",errorDescription:f.data.error_description||f.data.message||"No access token received"};return{success:!1,error:f.data.error,errorDescription:f.data.error_description}}let r=!1;async function s(){if(!r){r=!0;try{let{getProviderConnections:a,updateProviderConnection:b}=await c.e(9718).then(c.bind(c,89718));for(let c of(await a()).filter(a=>{if("codex"!==a.provider||"oauth"!==a.authType||!a.idToken)return!1;let b=!!a.email,c=!!a.providerSpecificData?.chatgptAccountId;return!b||!c})){let a=(0,i.YR)(c.idToken);if(!a.email&&!a.chatgptAccountId)continue;let d={};!c.email&&a.email&&(d.email=a.email),(a.chatgptAccountId||a.chatgptPlanType)&&(d.providerSpecificData={...c.providerSpecificData||{},chatgptAccountId:a.chatgptAccountId,chatgptPlanType:a.chatgptPlanType}),Object.keys(d).length&&await b(c.id,d)}}catch(a){r=!1,console.log("backfillCodexEmails failed:",a?.message||a)}}}},81358:(a,b,c)=>{c.d(b,{a:()=>d});function d(a={},b=null){let c=[a?.workspaceId,a?.chatgptAccountId,a?.accountId,function(a){if("string"!=typeof a)return"";try{let b=JSON.parse(Buffer.from(a.split(".")[1]||"","base64url").toString("utf8"));return b?.["https://api.openai.com/auth"]?.chatgpt_account_id||b?.account_id||""}catch{return""}}(b)];return c.find(a=>"string"==typeof a&&a.trim())?.trim()||""}},89865:(a,b,c)=>{c.d(b,{A1:()=>h,lR:()=>j,wO:()=>i,yj:()=>f,zL:()=>g});var d=c(87252),e=c(60290);function f(a,b,c){let e;return new Response(JSON.stringify((e=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:e.type,code:c??e.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function g(a,b=null){let c,f="";try{f=await a.text()}catch{f=""}let h="",i=null,j=!1;try{let a=JSON.parse(f);if(h=a.error?.message||a.message||a.error||f,c=a.error?.code||a.code,i=a.error?.metadata?.provider_name||null,"string"==typeof h){let a=/^Invalid URL:\s*(.*)$/.exec(h);a&&(j=""===a[1].trim())}}catch{h=f}let k="string"==typeof h?h:JSON.stringify(h);if((i||j)&&(a.status===e.gx.BAD_GATEWAY||a.status===e.gx.SERVER_ERROR||502===a.status||500===a.status)){let a=i?`OpenRouter upstream "${i}" returned an invalid routing URL — its endpoint is misconfigured on OpenRouter's side`:"Upstream returned an invalid (empty) routing URL";k=`${k} — ${a}. Try a different model, or set \`provider: { allow_fallbacks: true }\` to opt into OpenRouter's automatic upstream fallback.`}let l=k||d.O[a.status]||`Upstream error: ${a.status}`;if(b&&"function"==typeof b.parseError)try{let d=b.parseError(a,f);if(d&&"object"==typeof d){let b=d.message&&d.message!==f?d.message:l,e=d.resetsAtMs??(429===a.status?extractResetsAtMs(a,b):null);return{statusCode:d.status||a.status,message:b,resetsAtMs:e,code:d.code??c}}}catch{}return{statusCode:a.status,message:l,code:c}}function h(a,b,c,d){return{success:!1,status:a,error:b,resetsAtMs:c,response:f(a,b,d)}}function i(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function j(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}}};
|
|
@@ -17,10 +17,10 @@ ${a}
|
|
|
17
17
|
|
|
18
18
|
${y}`)}let A=new Date().toISOString(),B=[];null===p||r||B.push((0,x.aZ)(p)),B.push(`[Context: Current time is ${A}]`),n&&B.push(x.rG);let C={content:y=`${B.join("\n\n")}
|
|
19
19
|
|
|
20
|
-
${y}`,modelId:o,origin:"AI_EDITOR",...t?.userInputMessage?.userInputMessageContext&&{userInputMessageContext:t.userInputMessage.userInputMessageContext},...t?.userInputMessage?.images&&{images:t.userInputMessage.images}};e&&(C.systemInstruction=e);let D={conversationState:{chatTriggerType:"MANUAL",conversationId:(0,w.A)(),currentMessage:{userInputMessage:C},history:s}};return v&&(D.profileArn=v),q&&(D.additionalModelRequestFields=q),(i||void 0!==k||void 0!==l)&&(D.inferenceConfig={},i&&(D.inferenceConfig.maxTokens=i),void 0!==k&&(D.inferenceConfig.temperature=k),void 0!==l&&(D.inferenceConfig.topP=l)),Object.defineProperty(D,"_kiroUpstreamModel",{value:o,enumerable:!1}),D},null),c(83589);var H=c(98173),I=c(22208);let J="proxy_";function K(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function L(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function M(a,b){for(let[c,d]of a.toolCalls){let e=a.toolArgBuffers?.get(c);if(e){let a=function(a,b){try{let c=JSON.parse(b),d=a.startsWith(J)?a.slice(J.length):a;return"Read"===d&&function(a){var b,c;"string"==typeof a.limit&&/^\d+$/.test(a.limit)&&(a.limit=Number(a.limit)),"string"==typeof a.offset&&/^-?\d+$/.test(a.offset)&&(a.offset=Number(a.offset)),"number"==typeof a.limit&&(a.limit>2e3&&(a.limit=2e3),a.limit<1&&delete a.limit),"number"==typeof a.offset&&a.offset<0&&(a.offset=0),"pages"in a&&(b=a.file_path,c=a.pages,!("string"==typeof b&&b.toLowerCase().endsWith(".pdf")&&"string"==typeof c&&/^\d+(?:-\d+)?$/.test(c)))&&delete a.pages}(c),JSON.stringify(c)}catch{return b}}(d.name,e);b.push({type:"content_block_delta",index:d.blockIndex,delta:{type:"input_json_delta",partial_json:a}})}b.push({type:"content_block_stop",index:d.blockIndex})}}function N(a){let b="number"==typeof a.prompt_tokens?a.prompt_tokens:0,c="number"==typeof a.completion_tokens?a.completion_tokens:0,d=a.prompt_tokens_details?.cached_tokens,e=a.prompt_tokens_details?.cache_creation_tokens,f="number"==typeof d?d:0,g="number"==typeof e?e:0,h={input_tokens:b-f-g,output_tokens:c};return f>0&&(h.cache_read_input_tokens=f),g>0&&(h.cache_creation_input_tokens=g),h}T(f.h.OPENAI,f.h.CLAUDE,null,function(a,b){if(!a){if(!b.messageStartSent||b.claudeFinishHandled)return null;b.claudeFinishHandled=!0;let a=[];K(b,a),L(b,a),M(b,a);let c=b.usage?.input_tokens!=null?b.usage:b.usage?.prompt_tokens!=null?N(b.usage):{input_tokens:0,output_tokens:0},d=b.toolCalls.size>0?"tool_use":"end_turn";return a.push({type:"message_delta",delta:{stop_reason:d},usage:c}),a.push({type:"message_stop"}),a}if(!a.choices?.[0])return null;let c=[],d=a.choices[0],e=d.delta;a.usage&&"object"==typeof a.usage&&(b.usage=N(a.usage)),b.messageStartSent||(b.messageStartSent=!0,b.messageId=a.id?.replace("chatcmpl-","")||`msg_${Date.now()}`,(!b.messageId||"chat"===b.messageId||b.messageId.length<8)&&(b.messageId=a.extend_fields?.requestId||a.extend_fields?.traceId||`msg_${Date.now()}`),b.model=a.model||j.rP,b.nextBlockIndex=0,c.push({type:"message_start",message:{id:b.messageId,type:"message",role:j.z7.ASSISTANT,model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let f=(0,I.V)(e);if(f&&(L(b,c),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,c.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:j.R4.THINKING,thinking:""}})),c.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:f}})),e?.content&&(K(b,c),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,c.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:j.R4.TEXT,text:""}})),c.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:e.content}})),e?.tool_calls)for(let a of e.tool_calls){let d=a.index??0;if(a.id&&!b.toolCalls.has(d)){K(b,c),L(b,c);let e=b.nextBlockIndex++;b.toolCalls.set(d,{id:a.id,name:a.function?.name||"",blockIndex:e});let f=a.function?.name||"";f.startsWith(J)&&(f=f.slice(J.length)),c.push({type:"content_block_start",index:e,content_block:{type:j.R4.TOOL_USE,id:a.id,name:f,input:{}}})}a.function?.arguments&&b.toolCalls.get(d)&&(b.toolArgBuffers||(b.toolArgBuffers=new Map),b.toolArgBuffers.set(d,(b.toolArgBuffers.get(d)||"")+a.function.arguments))}if(d.finish_reason&&!b.claudeFinishHandled){if(b.claudeFinishHandled=!0,b.claudeTerminalEmitted)return c.length>0?c:null;if(b.claudeTerminalEmitted=!0,K(b,c),L(b,c),M(b,c),b.finishReason=d.finish_reason,d.finish_reason===j.bC.ERROR){let a=b.upstreamError?.message||"Upstream aborted the response (malformed function call or empty candidate)";c.push({type:"error",error:{type:"api_error",message:a}})}else{let a,e=b.usage||{input_tokens:0,output_tokens:0};c.push({type:"message_delta",delta:{stop_reason:(a=d.finish_reason,(0,H.Q)(a,"claude"))},usage:e}),c.push({type:"message_stop"})}}return c.length>0?c:null}),c(45136),T(f.h.OPENAI,f.h.ANTIGRAVITY,null,function(a,b){if(!a)return null;let c=a.choices?.[0];if(!c)return a.usage&&(b._usage=a.usage),null;let d=c.delta||{},e=c.finish_reason;b._toolCallAccum||(b._toolCallAccum={}),b._responseId||(b._responseId=a.id||`resp_${Date.now()}`),b._modelVersion||(b._modelVersion=a.model||"");let f=[];if(d.reasoning_content&&f.push({thought:!0,text:d.reasoning_content}),d.content&&f.push({text:d.content}),d.tool_calls){for(let a of d.tool_calls){let c=a.index??0;b._toolCallAccum[c]||(b._toolCallAccum[c]={id:"",name:"",arguments:""});let d=b._toolCallAccum[c];a.id&&(d.id=a.id),a.function?.name&&(d.name+=a.function.name),a.function?.arguments&&(d.arguments+=a.function.arguments)}if(0===f.length&&!e)return null}if(e)for(let a of Object.keys(b._toolCallAccum)){let c=b._toolCallAccum[a],d={};try{d=JSON.parse(c.arguments)}catch{}let e=b.toolNameMap?.get(c.name)||c.name;f.push({functionCall:{name:e,args:d}})}if(0===f.length&&!e)return null;0===f.length&&e&&f.push({text:""});let g={content:{role:j.RV.MODEL,parts:f}};e&&(g.finishReason=({[j.bC.STOP]:j.a_.STOP,[j.bC.LENGTH]:j.a_.MAX_TOKENS,[j.bC.TOOL_CALLS]:j.a_.STOP,[j.bC.CONTENT_FILTER]:j.a_.SAFETY})[e]||j.a_.STOP);let h={candidates:[g],modelVersion:b._modelVersion,responseId:b._responseId},i=a.usage||b._usage;return i&&(h.usageMetadata={promptTokenCount:i.prompt_tokens||0,candidatesTokenCount:i.completion_tokens||0,totalTokenCount:i.total_tokens||0},i.completion_tokens_details?.reasoning_tokens&&(h.usageMetadata.thoughtsTokenCount=i.completion_tokens_details.reasoning_tokens),i.prompt_tokens_details?.cached_tokens&&(h.usageMetadata.cachedContentTokenCount=i.prompt_tokens_details.cached_tokens)),{response:h}}),c(86711);var O=c(47945),P=c(39423);function Q(a){return{id:a.responseId,created:a.created,model:a.model||"kiro"}}function R(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function S(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function T(a,b,c,f){d??=new Map,e??=new Map;let g=`${a}:${b}`;c&&d.set(g,c),f&&e.set(g,f)}T(f.h.KIRO,f.h.OPENAI,null,function(a,b){if(!a)return null;if("chat.completion.chunk"===a.object&&a.choices)return a;let c=a;if("string"==typeof a){let b=a.split("\n"),d="",e="";for(let a of b)a.startsWith("event:")?d=a.slice(6).trim():a.startsWith(":event-type:")?d=a.slice(12).trim():a.startsWith("data:")?e=a.slice(5).trim():a.startsWith(":content-type:")||a.trim()&&!a.startsWith(":")&&(e=a.trim());if(!e)return null;try{(c=JSON.parse(e))._eventType=d}catch{c={text:e,_eventType:d}}}b.responseId||(b.responseId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.chunkIndex=0);let d=c._eventType||c.event||"";if("assistantResponseEvent"===d||c.assistantResponseEvent){let a=c.assistantResponseEvent?.content||c.content||"";if(!a)return null;let d=(0,O.k)(Q(b),{...0===b.chunkIndex?{role:j.z7.ASSISTANT}:{},content:a},null);return b.chunkIndex++,d}if("reasoningContentEvent"===d||c.reasoningContentEvent){let a=c.reasoningContentEvent||c,d="string"==typeof a?a:a.text||a.content||c.content||"";if(!d)return null;let e=(0,O.k)(Q(b),(0,I.B)(d,0===b.chunkIndex),null);return b.chunkIndex++,e}if("toolUseEvent"===d||c.toolUseEvent){b.hadToolUse=!0;let a=c.toolUseEvent||c,d=a.toolUseId||(0,g.eG)(),e=a.name||"",f=a.input||{},h=(0,O.k)(Q(b),{...0===b.chunkIndex?{role:j.z7.ASSISTANT}:{},tool_calls:[{index:0,id:d,type:j.x4.FUNCTION,function:{name:e,arguments:JSON.stringify(f)}}]},null);return b.chunkIndex++,h}if("messageStopEvent"===d||"done"===d||c.messageStopEvent){let a=(0,H.F)(b.hadToolUse?"tool_use":"stop","kiro");b.finishReason=a;let c=(0,O.k)(Q(b),{},a);return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}if("usageEvent"===d||c.usageEvent){let a=(0,P.B6)(c.usageEvent||c,"kiro");a&&(b.usage=a)}return null}),T(f.h.CURSOR,f.h.OPENAI,null,function(a,b){return a?("chat.completion.chunk"===a.object&&a.choices||"chat.completion"===a.object&&a.choices,a):null}),c(68057),c(9537);function U(a,b,c,e,o=!0,p=null,q=null,r=null,s=[],t=null,u=null){let v=e;!function(a,b=[]){if(!b.length||!a.messages||!Array.isArray(a.messages))return;let c=new Set(["image_url","image"]),d=new Set(["audio_url","input_audio"]),e=a=>c.has(a)?b.includes("image"):!!d.has(a)&&b.includes("audio");for(let b of a.messages)Array.isArray(b.content)&&(b.content=b.content.filter(a=>!e(a.type)),0===b.content.length&&(b.content=""))}(v,s),(0,k.SZ)(v),(0,g.fH)(v),b!==f.h.KIRO&&(0,g.SF)(v);let w=(0,l.NU)(v),x=(0,m.YC)(v,p,t,b);if(p&&(p._clientSessionId=x),a!==b){let e=d.get(`${a}:${b}`);if(e)v=e(c,v,o,p);else{if(a!==f.h.OPENAI){let b=d.get(`${a}:${f.h.OPENAI}`);b&&(v=b(c,v,o,p),r?.logOpenAIRequest?.(v))}if(b!==f.h.OPENAI){let a=d.get(`${f.h.OPENAI}:${b}`);a&&(v=a(c,v,o,p))}}}if((b!==f.h.KIRO||a!==f.h.OPENAI&&a!==f.h.CLAUDE)&&(0,l.z)(b,c,v,q,w),b===f.h.OPENAI&&(v=function(a,b={}){if(!a.messages||!Array.isArray(a.messages))return a;let c=!!b.preserveCacheControl;function d(a){let{signature:b,cache_control:d,...e}=a;return c&&d?{...e,cache_control:d}:e}if(a.messages=a.messages.map(a=>{if(a.role===j.z7.DEVELOPER&&(a={...a,role:j.z7.SYSTEM}),a.role===j.z7.TOOL||a.role===j.z7.ASSISTANT&&a.tool_calls?.length||"string"==typeof a.content)return a;if(Array.isArray(a.content)){let b=[];for(let c of a.content)if(c.type!==j.R4.THINKING&&c.type!==j.R4.REDACTED_THINKING)if(j.m8.includes(c.type))b.push(d(c));else{if(c.type===j.R4.TOOL_USE)continue;c.type===j.R4.TOOL_RESULT&&b.push(d(c))}0===b.length&&b.push({type:j.x4.TEXT,text:""});let c=b.every(a=>a.type===j.x4.TEXT),e=b.some(a=>a.cache_control),f=c&&!e?b.map(a=>a.text).join("\n"):b;return{...a,content:f}}return a}),a.messages=a.messages.filter(a=>!!(a.role===j.z7.TOOL||a.role===j.z7.ASSISTANT&&a.tool_calls?.length)||("string"==typeof a.content?""!==a.content.trim():!Array.isArray(a.content)||a.content.some(a=>a.type===j.x4.TEXT&&a.text?.trim()||a.type!==j.x4.TEXT))),a.tools&&Array.isArray(a.tools)&&0===a.tools.length&&delete a.tools,a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&(a.tools=a.tools.map(a=>a.type===j.x4.FUNCTION&&a.function?a:a.name&&(a.input_schema||a.description)?{type:j.x4.FUNCTION,function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}}:a.functionDeclarations&&Array.isArray(a.functionDeclarations)?a.functionDeclarations.map(a=>({type:j.x4.FUNCTION,function:{name:a.name,description:String(a.description||""),parameters:a.parameters||{type:"object",properties:{}}}})):a).flat()),a.tool_choice&&"object"==typeof a.tool_choice){let b=a.tool_choice;"auto"===b.type?a.tool_choice="auto":"any"===b.type?a.tool_choice="required":"tool"===b.type&&b.name&&(a.tool_choice={type:j.x4.FUNCTION,function:{name:b.name}})}return a}(v,{preserveCacheControl:!!n.xq[q]?.quirks?.preserveCacheControl})),b===f.h.CLAUDE){let a=p?.accessToken||p?.apiKey||null;v=(0,h.Bz)(v,q,a,t,p?.rawHeaders,x)}if(n.xq[q]?.quirks?.cloakToolsOnOAuth){let a=p?.accessToken||p?.apiKey||null;if(a?.includes("sk-ant-oat")){let{body:a,toolNameMap:b}=(0,i.Az)(v);v=a,b?.size>0&&(v._toolNameMap=b)}}return v}function V(a,b,c,d){if(b===a){let a=(0,i.F5)(c,d?.toolNameMap);return null!=a?[a]:[]}let g=[c],h=null,j=e.get(`${a}:${b}`);if(j){let a=j(c,d);return a?Array.isArray(a)?a:[a]:[]}if(a!==f.h.OPENAI){let b=e.get(`${a}:${f.h.OPENAI}`);if(b){g=[];let a=b(c,d);a&&(h=g=Array.isArray(a)?a:[a])}}if(b!==f.h.OPENAI){let a=e.get(`${f.h.OPENAI}:${b}`);if(a){let b=[];for(let c of g){let e=a(c,d);e&&b.push(...Array.isArray(e)?e:[e])}g=b}}return h&&b!==f.h.OPENAI&&a!==f.h.OPENAI&&(g._openaiIntermediate=h),g}function W(a,b){return a!==b}function X(a){let b={messageId:null,model:null,textBlockStarted:!1,thinkingBlockStarted:!1,inThinkingBlock:!1,currentBlockIndex:null,toolCalls:new Map,finishReason:null,finishReasonSent:!1,usage:null,contentBlockIndex:-1};return a===f.h.OPENAI_RESPONSES?{...b,seq:0,nextOutputIndex:0,responseId:`resp_${Date.now()}`,created:Math.floor(Date.now()/1e3),started:!1,msgTextBuf:{},msgItemAdded:{},msgContentAdded:{},msgItemDone:{},msgOutputIndexes:{},reasoningId:"",reasoningIndex:-1,reasoningBuf:"",reasoningPartAdded:!1,reasoningDone:!1,inThinking:!1,funcArgsBuf:{},funcNames:{},funcCallIds:{},funcArgsDone:{},funcItemDone:{},funcOutputIndexes:{},completedSent:!1}:b}function Y(){}T(f.h.KIRO,f.h.CLAUDE,null,function(a,b){let c=a;if("string"==typeof a){let b=a.trim();if(!b||"[DONE]"===b)return null;try{c=JSON.parse(b.startsWith("data:")?b.slice(5).trim():b)}catch{return null}}if(!c||!c.choices?.[0])return null;let d=[],e=c.choices[0],f=e.delta||{};if(c.usage&&"object"==typeof c.usage){b.usage={input_tokens:"number"==typeof c.usage.prompt_tokens?c.usage.prompt_tokens:0,output_tokens:"number"==typeof c.usage.completion_tokens?c.usage.completion_tokens:0};let a=c.usage.cache_read_input_tokens??c.usage.prompt_tokens_details?.cached_tokens,d=c.usage.cache_creation_input_tokens??c.usage.prompt_tokens_details?.cache_creation_tokens;"number"==typeof a&&(b.usage.cache_read_input_tokens=a),"number"==typeof d&&(b.usage.cache_creation_input_tokens=d)}b.messageStartSent||(b.messageStartSent=!0,b.messageId="string"==typeof c.id&&c.id.replace("chatcmpl-","")||`msg_${Date.now()}`,b.model=c.model||"kiro",b.nextBlockIndex=0,d.push({type:"message_start",message:{id:b.messageId,type:"message",role:"assistant",model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let g=f.reasoning_content||f.reasoning;if(g&&(S(b,d),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,d.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:"thinking",thinking:""}})),d.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:g}})),f.content&&(R(b,d),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,d.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:"text",text:""}})),d.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:f.content}})),f.tool_calls)for(let a of(b.toolCalls||(b.toolCalls=new Map),b.toolArgBuffers||(b.toolArgBuffers=new Map),f.tool_calls)){let c=a.index??0;if(a.id){R(b,d),S(b,d);let e=b.nextBlockIndex++;b.toolCalls.set(c,{id:a.id,name:a.function?.name||"",blockIndex:e}),d.push({type:"content_block_start",index:e,content_block:{type:"tool_use",id:a.id,name:a.function?.name||"",input:{}}})}a.function?.arguments&&b.toolCalls.get(c)&&b.toolArgBuffers.set(c,(b.toolArgBuffers.get(c)||"")+a.function.arguments)}if(e.finish_reason){if(R(b,d),S(b,d),b.toolCalls)for(let[a,c]of b.toolCalls){let e=b.toolArgBuffers?.get(a);e&&d.push({type:"content_block_delta",index:c.blockIndex,delta:{type:"input_json_delta",partial_json:e}}),d.push({type:"content_block_stop",index:c.blockIndex})}b.finishReason=e.finish_reason;let a=b.usage||{input_tokens:0,output_tokens:0};d.push({type:"message_delta",delta:{stop_reason:function(a){switch(a){case"stop":default:return"end_turn";case"length":return"max_tokens";case"tool_calls":return"tool_use"}}(e.finish_reason)},usage:a}),d.push({type:"message_stop"})}return d.length>0?d:null})},3771:(a,b,c)=>{c.d(b,{l:()=>k});var d=c(2547),e=c(19956),f=c(55511),g=c(18226),h=c(94454),i=c(60290);function j(a){if(null==a)return"";if("string"==typeof a)return a;if(Array.isArray(a)){let b=[];for(let c of a)"string"==typeof c?b.push(c):c&&"object"==typeof c&&"string"==typeof c.text&&b.push(c.text);return b.join("\n")}return String(a)}function k(a,b,c){let{messages:d,system:e}=function(a=[]){let b=[],c=[];for(let d of a){if(!d)continue;let a=d.role;if(a===g.z7.SYSTEM){let a=j(d.content);a&&c.push(a);continue}if(a===g.z7.TOOL){let a="string"==typeof d.content?d.content:j(d.content);b.push({role:g.z7.TOOL,content:[{type:"tool-result",toolCallId:d.tool_call_id||"",toolName:d.name||"",output:{type:"text",value:a}}]});continue}if(a===g.z7.ASSISTANT){let a=[],c=j(d.content);if(d.reasoning_content&&a.push({type:"reasoning",text:d.reasoning_content}),c&&a.push({type:g.x4.TEXT,text:c}),Array.isArray(d.tool_calls))for(let b of d.tool_calls){let c=b.function||{};a.push({type:"tool-call",toolCallId:b.id||"",toolName:c.name||"",input:function(a){if(null==a)return{};if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return{}}}(c.arguments)})}b.push({role:g.z7.ASSISTANT,content:a.length?a:[{type:g.x4.TEXT,text:""}]});continue}b.push({role:g.z7.USER,content:function(a){if(null==a)return[{type:g.x4.TEXT,text:""}];if("string"==typeof a)return[{type:g.x4.TEXT,text:a}];if(Array.isArray(a)){let b=[];for(let c of a)if("string"==typeof c)b.push({type:g.x4.TEXT,text:c});else if(c&&"object"==typeof c)if(c.type===g.x4.TEXT&&"string"==typeof c.text)b.push({type:g.x4.TEXT,text:c.text});else if(c.type===g.x4.IMAGE_URL||c.type===g.x4.IMAGE){let a="string"==typeof c.image_url?c.image_url:c.image_url?.url||c.image||c.url;a&&b.push({type:"image",image:a})}else"string"==typeof c.text&&b.push({type:g.x4.TEXT,text:c.text});return b.length?b:[{type:g.x4.TEXT,text:""}]}return[{type:g.x4.TEXT,text:String(a)}]}(d.content)})}return{messages:b,system:c.join("\n\n")}}(b.messages),k={model:(0,h.kD)(a),messages:d,stream:!1!==c,max_tokens:b.max_tokens??b.max_output_tokens??i.Uc,temperature:b.temperature??.3};e&&(k.system=e);let l=function(a){if(!Array.isArray(a)||0===a.length)return;let b=[];for(let c of a)c&&(c.type===g.x4.FUNCTION&&c.function?b.push({name:c.function.name,description:c.function.description,input_schema:c.function.parameters||{type:"object"}}):c.name&&(c.input_schema||c.parameters)&&b.push({name:c.name,description:c.description,input_schema:c.input_schema||c.parameters}));return b.length?b:void 0}(b.tools);l&&(k.tools=l),null!=b.top_p&&(k.top_p=b.top_p);let m=new Date().toISOString().slice(0,10);return{threadId:(0,f.randomUUID)(),memory:"",config:{workingDir:process.cwd(),date:m,environment:process.platform,structure:[],isGitRepo:!1,currentBranch:"",mainBranch:"",gitStatus:"",recentCommits:[]},params:k}}(0,d.kz)(e.h.OPENAI,e.h.COMMANDCODE,k,null)},6499:(a,b,c)=>{c.d(b,{$G:()=>g,bf:()=>e,n6:()=>f,xr:()=>d});let d="EpwGCkYIChgCKkCzVUuRrg7CcglSUWEef4rH6o35g9UYS8ZPe0/VomQTBsFx6sttYNj5l8GqgW6ejuHyYqpFToxIbZl0bw17l5dJEgzCnqDO0Z8fRlMrNgsaDLS1cnCjC53KBqE0CCIwAADQdo1eO+7qPAmo8J4WR3JPmr92S97kmvr5K1iPMiOpkZNj8mEXW8uzBoOJs/9ZKoMFiqHJ3UObwaJDqFOW70E9oCwDoc6jesaWVAEdN5vWfKMpIkjFJjECdjIdkxyJNJ8Ib8yXVal3qwE7uThoPRqSZDdHB5mmwPEjWE/90cSYCbtX2YsJki1265CabBb8/QEkODXg4kgRrL+c8e8rRXz/dr1RswvaPuzEdGKHRNi9UooNUeOK4/ebx1KkP9YZttyohN9GWqlts36kOoW0Cfie/ABDgF9g534BPth/sstxDM6d79QlRmh6NxizyTF74DXJI34u0M4tTRchqE5pAq85SgdJaa+dix1yJPMji8m6nZkwJbscJb9rdc2MKyKWjz8QL2+rTSSuZ2F1k1qSsW0xNcI7qLcI12Vncfn/VqY6YOIZy/saZBR0ezXvN6g+UYbuIdyVg7AyIFZt3nbrO7/kmOEb2VKzygwklHGEIJHfFgMpH3JSrAzbZIowVHOF7VaJ+KXRFDCFin7hHTOiOsdg+1ij1mML9Z/x/9CP4b7OUcaQm1llDZPSHc6rZMNL3DdB+fW5YfmNgKU35S+7AMtA10nVILzDAk1UV4T2K9Do09JlI6rjOs9UuULlIN2Z0eE8YTlANR6uQcw7lMcdfqYE8tke4rDKc2dDiaS5vVe45VewICNpdXGN11yw8QqH7p27CR1HtN30e0tHXOR3bIwWk/Yb6O5fTaKG6Ri8e5ZCPvdD9HqepVi188nM0iTjJqL58F3ni04ECIhcbyaQWnuTes1Kw4CMwiZDLQkk8Hgz7HkUOf1btQTF/0nhD7ry0n0hAEg2PaDM3V6TjOjf4hEldRmeqERcQF1PfgKb6ZM12rlIIfUqKACczWJSzTV158+47HX36o0cgux6nFlv/DE+sEiRVxgB",e="EuwGCukGAXLI2nxwZIq54WWSoL/YN0P3TsDZ7zRnLi8g0S4aVr2HUGxvaHKySuY6HAVzcE0GPGjXrytLIldxthSvfxgUlJh6Qa9Z+Oj5QZBlYdg6HaJ6yuY5R7waE6rdwBsRf7Ft2j3DJ9rMi9qhWFqApewYtPhls3VHtuvND3l8Rm09+lbAXQs6KKWEWrxNLKTBkfpMgXhRERc/TQRMZu1twAablm6/Zk1tsYRvfWKLsNbeKF+CCojJdXJKvnR/8Ouuoa+Y2Ti20hcW7aZIIjZDFYPU//k6Ybmhg69J/imbFai2ckhfLaisqdDkdoIiBJScTOUvYqP6AE9d4MsydSC+UlhIMk4hoP76R8vUSCZRMkjOaDXstf/QoVZKbt94wyRZgAJ1G0BqI8L5ow86kLpA4wJEtxsRGymOE4bKUvApveBakYDNM9APkf+LbtbzWSseGjoZcSlycF9iN8Q2XNYKRrHbv3Lr5Y8JjdH/5y/6SHkNehTEZugaeGnSPSyCTWto1kQgHpxdWmhkLfJGNUGLmue7Mesj4TSms4J33mRpYVhNB/J333FCqIP0hr/E7BkkjEn7yZ4X7SQlh+xKPurapsnHRwiKmtsilmEFrnTE9iQr+pMr6M29qqFNv1tr5yumbaJw8JW9sB15tNsRv+dW6BjNanbsKz7HCgKUBc8tGy+7YuhXzAfViyRefcjK7eZW0Fbyt7AbybJTKz78W8NH7ye6LAwzOebXpeZ4D43fNIt8bKh26qgduSQv/7o+pAflkuqHZ99YWgHQ8h8OkZFi3eOiSYjsjhdZ/czWOdoPI/OnqIldzMPF5YlrKBLFX8VhRKVmqgsmWf5PHGulHhMkVlS+XG2UIseGy69ARa93D78Gsa+1n1kJr7EEB7Rh+27vUMxVYLdz1yMSvE5nalTAlg/ZeG8+XQ0cHuAI3KbQpHW2Q++RdXfm5JzD5WdJZUU+Zn8t8UUn85BH4RxZLeE0qJikgSsKoYVBc6YhiMjhPgkR95ReimY4Z0xCJdRo1gjexOFeODZMpQF6Yxnoic7IrdgsFA3iePTbFnPp3IAM1fAThWhXJUn3QInUOTd5o1qmTmn6REbL15g/JQNl+dqUoPkhleeb2V3kjqp1okmO3wMZbPknR3S1LZNmlS72/iBQUm+n2b/RCn4PjmM2",f="CloBjz1rX5+yg1ILh/Ag+suum5k1f/9m/hI0XDQ33lsQIYnOHLn9KZwN0C7E4jgep5MzZvz5Se1Z1xxYrA1+Iz0Il4tabBhaDfMKNa5dGdEA3KnikfjfIpMlPaAKaQGPPWtf2hodPdBgguiZqDn+Qz2LwGEqHVJ16LVBUpeSx7UnYBLSwio8cyNy0jPijOh5QXKLTeHVdO2tKKcCCrtG2JCW3dOSrW2qA8eyAg40iQUnMNECjbcjkqB1+zrab7jX9ILwg7L9OgqYAQGPPWtfT4nzaPzSkXePAa920abYxPs3fg/RHDlg8PUVFLa+ko6qOjt7nXJTMxN0cpCwUCFX7eHHcMnA6vApyA/rXvJiAABkHZ3HilAktXRtxr/thHU0H8/4H5gT3kzoQcq9aMznrKomd3ct0mFi0ioSKnOEfoY1Mrfj00p/ZWm0tT7Wrjcm3BQXZ+T9Vrb94k+6CjtcEBrGCq8BAY89a1/vTMczqwB1NP3HCCuBdnds2vDXkj6XAYaXjsjmik8tGqwMKHz8R9RAWsx6SO6pkGEpXXpRzAaUx6c+aofsL/z1xOcN7ArCAa6uEeQKEgNngZuCP05p4+9P95epVmgOjFa4KfsPnyg+NKUkEFmpPSDrIRyMT+xERlclVcCI98/u7i8a9+vTbgzl8TRFYryClNH37K1ye5i6kqSGDUcMyiEasjke5BxbUh3i6wqMAgGPPWtfk+A+iY38QAldu117FEkTIkzbYOIt67lk9c6Ou3Y3Ct8TFHFw5QwGfSFc0YWjeTFHdm9UdV5jPK35p6VfhiRSva3w2+JLIHb4jvv5HutZPOJ3yQTt/+hUDj80oMNMbwnxNZvCEdzKS+D9vwmTACAm5H0ZetBSH2gPJXnhhuQo9AegS3wIWVR2a5k643Vx9r4u4pOvij4476lxKswIHvqsjL4jnTzRCvd44G6dn7vD0ENGb1K/i+dMRQMcOBaOxPN0ynk9bKxXWRDbZ+Rhakfr+y74z+6eYCdRPVqO9I7s+riilFuRIfaQ+U6/vuVKGIWEVKCfZZi0z6H5Xgz1xmse0u0AsittDlIKxwEBjz1rX783A0vehvUeabRia+/pX46IsN5efTAxFEBUeUce3jLuXIghkMV2b8KNhUs2G0aZldDDewRQbkluQabBMDT82N5I7reJP0VZgLIKccCL5DoGv1J7YWM2npLMIgZ6aP8aSlT3PFFJ0IXbUZUrzduczmIm6nzAJf9zxmq1aIFYw8YrgW8RjUdy0UvUmRoBEShSGUrvsyaRTl7J//KJW5utIPunFMu53GPWLidCFHzM1QA3Cj1+4zv5UXajP/V92RQayWbzCvYBAY89a1+yzoVSWukUGH7kX71Tg9dx7HA7OyKYwnYaqekG98zJfcUM/3KoiiiotW5t4xYu//ksEl36bSWvUHsRnxGByg+3WYdnZqKg0AtdRB/EXbI5PsjvS5ko96bkjSuFkY3TjHGwAM2B94K6/t6OTE/NBbxCsY9sT4d+1sbFv/iyfmfCnfvJaSzGmC9CDWKy4iqQ/vBNWps9j1JXk0p5uPAYC2BaMkxl5xoTVZqI3zAuRtQF5JLmPPy+PdqOgFxMKcLGNhwp7dbhIFLF68vCYQ9CL0NnK2d3CFk1UFVYxsi1TsolR1xahe/Rxt5HZDz/z65nevrQ",g="CiQBjz1rX/AlslZWMe5RgBt4Tv9j4+YNZTTez+JH2/+5oAlICygKXgGPPWtf7/Sux9eLYap/bmYAdPqFThLXj+l7o0DLu/hdgU98MA9ZrlRDNHXx+T0tuY8AcnjPZbiDyOq2bE11Fjhsk6p5axqayaapC/Pt9GczcgIQf1z15WTxCeKWAPYKYQGPPWtfDYj0nlNFNoTlU39RC91Z16xFKJ2MLEmkm+NvimsoOJ6be3g2BssNPtJ/9BKDXRA5cVs17tBeeW72lH8TMB5999udtxHM2SiUsnWsrHlfVuGSCpNQQ+5REw8HNvEKkgEBjz1rXzBNWrqZGbjun55K+vgYPBhJO2qZ67uRWXUA5/qcU12U/mbi5XoA3swoxYE8LEXfZvFFC9WG/W28QNCA0Qd4Trk/WkWiAwZmB8a84Fs14rkv3wqyxwFavPkJorqurAfd2XzGiFy0sB0ITCOPYi1HzDGV5WfXk6b9k+jT66/RuzGa8EcSOWo/QtC3Bkhgowo4AY89a1/f/tw8A02zjIoK7JVDAbf8W4UfmbApJJhwXIiGtu1M0JItObx7g2reYqT+HHL2Q/R4VDc="},7259:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(60290);function e(a,b=d.Uc){let c=a.max_tokens||d.Uc;return a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&c<d.eo&&(c=d.eo),a.thinking?.budget_tokens&&c<=a.thinking.budget_tokens&&(c=a.thinking.budget_tokens+1024),c>b&&(c=b),c}},7274:(a,b,c)=>{c.d(b,{c:()=>w});var d=c(55511),e=c(85187),f=c(4630),g=c(28730),h=c(60290),i=c(91576),j=c(89843),k=c(9562),l=c(48644),m=c(6499);let n=/^agent\/[^/]+\/\d+\/[^/]+\/\d+$/,o=[/high\s+traffic/i,/agent\s+(execution\s+)?terminated\s+due\s+to\s+error/i,/capacity/i,/temporarily\s+unavailable/i,/timeout/i,/stream\s+(ended|closed|terminated|interrupted)/i,/empty\s+response/i],p=new Set([h.gx.SERVER_ERROR,h.gx.BAD_GATEWAY,h.gx.SERVICE_UNAVAILABLE,h.gx.GATEWAY_TIMEOUT]),q=["output_config","thinking","reasoning_effort","reasoning","enable_thinking","thinking_budget","thinkingConfig"],r=a=>{for(let b of q)delete a[b]},s=[/image/i,/imagen/i,/image-generation/i];function t(a){return!!a&&s.some(b=>b.test(a))}function u(a){let b=d.createHash("sha256").update(String(a||"antigravity")).digest().subarray(0,16);b[6]=15&b[6]|80,b[8]=63&b[8]|128;let c=b.toString("hex");return`${c.slice(0,8)}-${c.slice(8,12)}-${c.slice(12,16)}-${c.slice(16,20)}-${c.slice(20)}`}function v({body:a,request:b,credentials:c,model:d,requestType:e}){if(n.test(a?.requestId||""))return a.requestId;let f=b?.sessionId||a?.request?.sessionId||c?._clientSessionId||c?.connectionId||c?.email||"anonymous",g=u(`antigravity:conversation:${f}`),h=u(`antigravity:trajectory:${f}:${d}:${e}`),i=Math.max(1,2*(Array.isArray(b?.contents)?b.contents.length:1)-1);return`agent/${g}/${Date.now()}/${h}/${i}`}class w extends e.H{constructor(){super("antigravity",f.xq.antigravity)}buildUrl(a,b,c=0){let d=this.getBaseUrls(),e=d[c]||d[0],f=t(a);return`${e}/v1internal:${b&&!f?"streamGenerateContent?alt=sse":"generateContent"}`}parseError(a,b){if(429===a.status&&b){let{resetsAtMs:a}=(0,k.k)(b),c=b;try{c=JSON.parse(b)?.error?.message||b}catch{}let d=a;if(!d){let a=this.parseRetryFromErrorMessage(c);a&&(d=Date.now()+a)}if(d)return{status:429,message:c,resetsAtMs:d}}return super.parseError(a,b)}buildHeaders(a,b=!0,c=null){return{"Content-Type":"application/json",Authorization:`Bearer ${a.accessToken}`,"User-Agent":this.config.headers?.["User-Agent"]||g.K["User-Agent"]}}transformRequest(a,b,c,d){let e=d?.projectId||this.generateProjectId();if(!0!==c&&delete b.stream_options,t(a)){let c=function(a){let b={aspectRatio:"1:1"},c=a.match(/(\d+)x(\d+)$/);if(c){let a=parseInt(c[1]),d=parseInt(c[2]);if(a<=16&&d<=16)b.aspectRatio=`${a}:${d}`;else{let c=(a,b)=>b?c(b,a%b):a,e=c(a,d);b.aspectRatio=`${a/e}:${d/e}`}}return b}(a),f=a.replace(/-(\d+)x(\d+)$/,""),g=[];for(let a of b.request?.contents||b.contents||[]){let b=(a.parts||[]).filter(a=>a?.text!==void 0||a?.inlineData?.data&&a?.inlineData?.mimeType||a?.fileData?.fileUri&&a?.fileData?.mimeType);b.length>0&&g.push({role:a.role||"user",parts:b})}let h=(0,i.oV)({headers:d?.rawHeaders,body:b,connectionId:d?.email||d?.connectionId,scope:"antigravity"});this._lastSessionId=h;let j={contents:g,generationConfig:{temperature:1,topP:.95,topK:40,maxOutputTokens:8192,responseModalities:["TEXT","IMAGE"],imageConfig:c},sessionId:h};return{project:e,model:f,userAgent:"antigravity",requestType:"image_gen",requestId:v({body:b,request:j,credentials:d,model:f,requestType:"image_gen"}),request:j}}let f=function(a){let b=[];for(let c of a||[]){if(!c?.role||!Array.isArray(c.parts)||0===c.parts.length)continue;let a=b.at(-1);a?.role===c.role?a.parts.push(...c.parts):b.push({...c,parts:[...c.parts]})}return b}(b.request?.contents?.map(a=>{let b=a.role;a.parts?.some(a=>a.functionResponse)&&(b="user");let c=a.parts?.filter(a=>(!a.thought||!!a.functionCall)&&(!a.thoughtSignature||!!a.functionCall||!!a.text)),d=c?.some(a=>a.functionCall&&!a.thoughtSignature)??!1;return b!==a.role||c?.length!==a.parts?.length||d?{...a,role:b,parts:d?c.map(a=>a.functionCall&&!a.thoughtSignature?{...a,thoughtSignature:m.bf}:a):c}:a}).filter(a=>a.parts&&a.parts.length>0)),g=b.request?.tools;if(g&&g.length>0){let a=new Set,b=[];for(let c of g)for(let d of c.functionDeclarations||[]){let c=function(a){if(!a)return"_unknown";let b=a.replace(/[^a-zA-Z0-9_.:\-]/g,"_");return/^[a-zA-Z_]/.test(b)||(b="_"+b),b.substring(0,64)}(d.name);a.has(c)||(a.add(c),b.push({...d,name:c,parameters:d.parameters?(0,l.Yr)(structuredClone(d.parameters)):{type:"object",properties:{reason:{type:"string",description:"Brief explanation"}},required:["reason"]}}))}g=b.length>0?[{functionDeclarations:b}]:[]}let{tools:h,toolConfig:j,...k}=b.request||{};if(r(k),k.systemInstruction?.parts){let a="You are a Claude agent, built on Anthropic's Claude Agent SDK.";for(let b of k.systemInstruction.parts)"string"==typeof b.text&&b.text.includes(a)&&(b.text=b.text.split(a).join(""))}let n={...k.generationConfig||{}};n.maxOutputTokens>64e3&&(n.maxOutputTokens=64e3);let o={...k,generationConfig:n,...f&&{contents:f},...g&&{tools:g},sessionId:b.request?.sessionId||(0,i.oV)({headers:d?.rawHeaders,body:b,connectionId:d?.email||d?.connectionId,scope:"antigravity"}),safetySettings:void 0,...g?.length>0&&{toolConfig:{functionCallingConfig:{mode:"VALIDATED"}}}};return r(b),this._lastSessionId=o.sessionId,{project:e,model:b.model||a,userAgent:"antigravity",requestType:"agent",requestId:v({body:b,request:o,credentials:d,model:a,requestType:"agent"}),request:o}}async refreshCredentials(a,b,c=null){if(!a.refreshToken)return null;try{let d=await (0,j.proxyAwareFetch)(g.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.refreshToken,client_id:this.config.clientId,client_secret:this.config.clientSecret})},c);if(!d.ok)return null;let e=await d.json();return b?.info?.("TOKEN","Antigravity refreshed"),{accessToken:e.access_token,refreshToken:e.refresh_token||a.refreshToken,expiresIn:e.expires_in,projectId:a.projectId}}catch(a){return b?.error?.("TOKEN",`Antigravity refresh error: ${a.message}`),null}}generateProjectId(){let a=["useful","bright","swift","calm","bold"][Math.floor(5*Math.random())],b=["fuze","wave","spark","flow","core"][Math.floor(5*Math.random())];return`${a}-${b}-${d.randomUUID().slice(0,5)}`}generateSessionId(){return d.randomUUID()+Date.now().toString()}parseRetryHeaders(a){if(!a?.get)return null;let b=a.get("retry-after");if(b){let a=parseInt(b,10);if(!isNaN(a)&&a>0)return 1e3*a;let c=new Date(b);if(!isNaN(c.getTime())){let a=c.getTime()-Date.now();return a>0?a:null}}let c=a.get("x-ratelimit-reset-after");if(c){let a=parseInt(c,10);if(!isNaN(a)&&a>0)return 1e3*a}let d=a.get("x-ratelimit-reset");if(d){let a=1e3*parseInt(d,10)-Date.now();return a>0?a:null}return null}parseRetryFromErrorMessage(a){if(!a||"string"!=typeof a)return null;let b=a.match(/reset after (\d+h)?(\d+m)?(\d+s)?/i);if(!b)return null;let c=0;return b[1]&&(c+=3600*parseInt(b[1])*1e3),b[2]&&(c+=60*parseInt(b[2])*1e3),b[3]&&(c+=1e3*parseInt(b[3])),c>0?c:null}extractErrorMessage(a,b=""){return[a?.error?.message,a?.message,a?.error,b].filter(Boolean).map(a=>"string"==typeof a?a:JSON.stringify(a)).join("\n")}isTransientAntigravityError(a,b){return!!(a===h.gx.RATE_LIMITED||p.has(a))||o.some(a=>a.test(b||""))}async computeRetryDelay(a,b){let c="",d=null,e=this.parseRetryHeaders(a.headers);try{d=(c=await a.clone().text())?JSON.parse(c):null}catch{}let f=this.extractErrorMessage(d,c);return(e||(e=this.parseRetryFromErrorMessage(f)),e)?e<=1e4&&e:!!this.isTransientAntigravityError(a.status,f)&&Math.min(1e3*2**b,a.status===h.gx.RATE_LIMITED?1e4:15e3)}static cloakTools(a,b=null){let c=a.request?.tools;if(!c||0===c.length)return{cloakedBody:a,toolNameMap:null};let d="github-copilot"===b,e=new Map,f=[],h=new Set(x.map(a=>a.name));for(let a of c)if(a.functionDeclarations)for(let b of a.functionDeclarations){if(d&&g.J5.has(b.name)||d&&h.has(b.name))continue;if(g.J5.has(b.name)){f.push(b);continue}let a=`${b.name}${g.QH}`;e.set(a,b.name),f.push({...b,name:a})}let i=[],j=new Set;for(let a of[...f,...x])!a?.name||j.has(a.name)||(j.add(a.name),i.push(a));let k=a.request?.contents?.map(a=>{if(!a.parts)return a;let b=a.parts.map(a=>a.functionCall&&!g.J5.has(a.functionCall.name)?{...a,functionCall:{...a.functionCall,name:`${a.functionCall.name}${g.QH}`}}:a.functionResponse&&!g.J5.has(a.functionResponse.name)?{...a,functionResponse:{...a.functionResponse,name:`${a.functionResponse.name}${g.QH}`}}:a);return{...a,parts:b}}),{stream:l,stream_options:m,...n}=a;return{cloakedBody:{...n,request:{...a.request,tools:[{functionDeclarations:i}],contents:k||a.request.contents}},toolNameMap:e}}}let x=[{name:"browser_subagent",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"command_status",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"find_by_name",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"generate_image",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"grep_search",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"list_dir",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"list_resources",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"mcp_sequential-thinking_sequentialthinking",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"multi_replace_file_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"notify_user",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_resource",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_terminal",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_url_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"replace_file_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"run_command",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"search_web",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"send_command_input",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"task_boundary",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"view_content_chunk",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"view_file",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"write_to_file",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}}]},9537:(a,b,c)=>{c.d(b,{H:()=>n});var d=c(2547),e=c(19956),f=c(18226),g=c(47945),h=c(39423),i=c(22208),j=c(10640),k=c(98173);function l(a,b,c=null){return(0,g.k)({id:a.responseId,created:a.created,model:a.model},b,c)}let m=a=>(0,k.F)(a,"commandcode");function n(a,b){var c;if(!a)return null;if(a&&"object"==typeof a&&"chat.completion.chunk"===a.object)return a;let d=a;if("string"==typeof a){let b=a.trim();if(!b)return null;let c=b.startsWith("data:")?b.slice(5).trim():b;if(!c||"[DONE]"===c)return null;try{d=JSON.parse(c)}catch{return null}}if(!d||"object"!=typeof d||!d.type)return null;c=d.model,b.responseId??=`chatcmpl-${Date.now()}`,b.created??=Math.floor(Date.now()/1e3),b.model=b.model||c||"commandcode",b.chunkIndex??=0,b.toolIndex??=0,b.toolIndexById??=new Map,b.openTools??=new Set,b.openText??=!1,b.finishReason??=null,b.usage??=null;let e=[];switch(d.type){case"text-delta":{let a=d.text||d.delta||"";if(!a)break;let c=0===b.chunkIndex?{role:f.z7.ASSISTANT,content:a}:{content:a};b.chunkIndex++,b.openText=!0,e.push(l(b,c));break}case"reasoning-delta":{let a=d.text||"";if(!a)break;let c=(0,i.B)(a,0===b.chunkIndex);b.chunkIndex++,e.push(l(b,c));break}case"tool-input-start":{let a=d.id||d.toolCallId||(0,j.eG)(b.toolIndex),c=b.toolIndexById.get(a);null==c&&(c=b.toolIndex++,b.toolIndexById.set(a,c)),b.openTools.add(a);let g={...0===b.chunkIndex?{role:f.z7.ASSISTANT}:{},tool_calls:[{index:c,id:a,type:f.x4.FUNCTION,function:{name:d.toolName||"",arguments:""}}]};b.chunkIndex++,e.push(l(b,g));break}case"tool-input-delta":{let a=d.id||d.toolCallId,c=b.toolIndexById.get(a);if(null==c)break;let f={tool_calls:[{index:c,function:{arguments:d.delta||d.inputTextDelta||""}}]};e.push(l(b,f));break}case"tool-call":{let a=d.toolCallId;if(b.toolIndexById.has(a))break;let c=b.toolIndex++;b.toolIndexById.set(a,c);let g="string"==typeof d.input?d.input:JSON.stringify(d.input??{}),h={...0===b.chunkIndex?{role:f.z7.ASSISTANT}:{},tool_calls:[{index:c,id:a,type:f.x4.FUNCTION,function:{name:d.toolName||"",arguments:g}}]};b.chunkIndex++,e.push(l(b,h));break}case"finish-step":b.finishReason=m(d.finishReason),d.usage&&(b.usage=d.usage);break;case"finish":{let a=b.finishReason||m(d.finishReason||"stop"),c=l(b,{},a),f=d.totalUsage||b.usage,g=(0,h.B6)(f,"commandcode");g&&(c.usage=g),e.push(c);break}case"error":{b.finishReason=f.bC.STOP;let a=d.error??d.message??"unknown",c="string"==typeof a?a:JSON.stringify(a),g=`
|
|
20
|
+
${y}`,modelId:o,origin:"AI_EDITOR",...t?.userInputMessage?.userInputMessageContext&&{userInputMessageContext:t.userInputMessage.userInputMessageContext},...t?.userInputMessage?.images&&{images:t.userInputMessage.images}};e&&(C.systemInstruction=e);let D={conversationState:{chatTriggerType:"MANUAL",conversationId:(0,w.A)(),currentMessage:{userInputMessage:C},history:s}};return v&&(D.profileArn=v),q&&(D.additionalModelRequestFields=q),(i||void 0!==k||void 0!==l)&&(D.inferenceConfig={},i&&(D.inferenceConfig.maxTokens=i),void 0!==k&&(D.inferenceConfig.temperature=k),void 0!==l&&(D.inferenceConfig.topP=l)),Object.defineProperty(D,"_kiroUpstreamModel",{value:o,enumerable:!1}),D},null),c(83589);var H=c(98173),I=c(22208);let J="proxy_";function K(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function L(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function M(a,b){for(let[c,d]of a.toolCalls){let e=a.toolArgBuffers?.get(c);if(e){let a=function(a,b){try{let c=JSON.parse(b),d=a.startsWith(J)?a.slice(J.length):a;return"Read"===d&&function(a){var b,c;"string"==typeof a.limit&&/^\d+$/.test(a.limit)&&(a.limit=Number(a.limit)),"string"==typeof a.offset&&/^-?\d+$/.test(a.offset)&&(a.offset=Number(a.offset)),"number"==typeof a.limit&&(a.limit>2e3&&(a.limit=2e3),a.limit<1&&delete a.limit),"number"==typeof a.offset&&a.offset<0&&(a.offset=0),"pages"in a&&(b=a.file_path,c=a.pages,!("string"==typeof b&&b.toLowerCase().endsWith(".pdf")&&"string"==typeof c&&/^\d+(?:-\d+)?$/.test(c)))&&delete a.pages}(c),JSON.stringify(c)}catch{return b}}(d.name,e);b.push({type:"content_block_delta",index:d.blockIndex,delta:{type:"input_json_delta",partial_json:a}})}b.push({type:"content_block_stop",index:d.blockIndex})}}function N(a){let b="number"==typeof a.prompt_tokens?a.prompt_tokens:0,c="number"==typeof a.completion_tokens?a.completion_tokens:0,d=a.prompt_tokens_details?.cached_tokens,e=a.prompt_tokens_details?.cache_creation_tokens,f="number"==typeof d?d:0,g="number"==typeof e?e:0,h={input_tokens:b-f-g,output_tokens:c};return f>0&&(h.cache_read_input_tokens=f),g>0&&(h.cache_creation_input_tokens=g),h}T(f.h.OPENAI,f.h.CLAUDE,null,function(a,b){if(!a){if(!b.messageStartSent||b.claudeFinishHandled)return null;b.claudeFinishHandled=!0;let a=[];K(b,a),L(b,a),M(b,a);let c=b.usage?.input_tokens!=null?b.usage:b.usage?.prompt_tokens!=null?N(b.usage):{input_tokens:0,output_tokens:0},d=b.toolCalls.size>0?"tool_use":"end_turn";return a.push({type:"message_delta",delta:{stop_reason:d},usage:c}),a.push({type:"message_stop"}),a}if(!a.choices?.[0])return null;let c=[],d=a.choices[0],e=d.delta;a.usage&&"object"==typeof a.usage&&(b.usage=N(a.usage)),b.messageStartSent||(b.messageStartSent=!0,b.messageId=a.id?.replace("chatcmpl-","")||`msg_${Date.now()}`,(!b.messageId||"chat"===b.messageId||b.messageId.length<8)&&(b.messageId=a.extend_fields?.requestId||a.extend_fields?.traceId||`msg_${Date.now()}`),b.model=b.model||a.model||j.rP,b.nextBlockIndex=0,c.push({type:"message_start",message:{id:b.messageId,type:"message",role:j.z7.ASSISTANT,model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let f=(0,I.V)(e);if(f&&(L(b,c),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,c.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:j.R4.THINKING,thinking:""}})),c.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:f}})),e?.content&&(K(b,c),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,c.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:j.R4.TEXT,text:""}})),c.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:e.content}})),e?.tool_calls)for(let a of e.tool_calls){let d=a.index??0;if(a.id&&!b.toolCalls.has(d)){K(b,c),L(b,c);let e=b.nextBlockIndex++;b.toolCalls.set(d,{id:a.id,name:a.function?.name||"",blockIndex:e});let f=a.function?.name||"";f.startsWith(J)&&(f=f.slice(J.length)),c.push({type:"content_block_start",index:e,content_block:{type:j.R4.TOOL_USE,id:a.id,name:f,input:{}}})}a.function?.arguments&&b.toolCalls.get(d)&&(b.toolArgBuffers||(b.toolArgBuffers=new Map),b.toolArgBuffers.set(d,(b.toolArgBuffers.get(d)||"")+a.function.arguments))}if(d.finish_reason&&!b.claudeFinishHandled){if(b.claudeFinishHandled=!0,b.claudeTerminalEmitted)return c.length>0?c:null;if(b.claudeTerminalEmitted=!0,K(b,c),L(b,c),M(b,c),b.finishReason=d.finish_reason,d.finish_reason===j.bC.ERROR){let a=b.upstreamError?.message||"Upstream aborted the response (malformed function call or empty candidate)";c.push({type:"error",error:{type:"api_error",message:a}})}else{let a,e=b.usage||{input_tokens:0,output_tokens:0};c.push({type:"message_delta",delta:{stop_reason:(a=d.finish_reason,(0,H.Q)(a,"claude"))},usage:e}),c.push({type:"message_stop"})}}return c.length>0?c:null}),c(45136),T(f.h.OPENAI,f.h.ANTIGRAVITY,null,function(a,b){if(!a)return null;let c=a.choices?.[0];if(!c)return a.usage&&(b._usage=a.usage),null;let d=c.delta||{},e=c.finish_reason;b._toolCallAccum||(b._toolCallAccum={}),b._responseId||(b._responseId=a.id||`resp_${Date.now()}`),b._modelVersion||(b._modelVersion=a.model||"");let f=[];if(d.reasoning_content&&f.push({thought:!0,text:d.reasoning_content}),d.content&&f.push({text:d.content}),d.tool_calls){for(let a of d.tool_calls){let c=a.index??0;b._toolCallAccum[c]||(b._toolCallAccum[c]={id:"",name:"",arguments:""});let d=b._toolCallAccum[c];a.id&&(d.id=a.id),a.function?.name&&(d.name+=a.function.name),a.function?.arguments&&(d.arguments+=a.function.arguments)}if(0===f.length&&!e)return null}if(e)for(let a of Object.keys(b._toolCallAccum)){let c=b._toolCallAccum[a],d={};try{d=JSON.parse(c.arguments)}catch{}let e=b.toolNameMap?.get(c.name)||c.name;f.push({functionCall:{name:e,args:d}})}if(0===f.length&&!e)return null;0===f.length&&e&&f.push({text:""});let g={content:{role:j.RV.MODEL,parts:f}};e&&(g.finishReason=({[j.bC.STOP]:j.a_.STOP,[j.bC.LENGTH]:j.a_.MAX_TOKENS,[j.bC.TOOL_CALLS]:j.a_.STOP,[j.bC.CONTENT_FILTER]:j.a_.SAFETY})[e]||j.a_.STOP);let h={candidates:[g],modelVersion:b._modelVersion,responseId:b._responseId},i=a.usage||b._usage;return i&&(h.usageMetadata={promptTokenCount:i.prompt_tokens||0,candidatesTokenCount:i.completion_tokens||0,totalTokenCount:i.total_tokens||0},i.completion_tokens_details?.reasoning_tokens&&(h.usageMetadata.thoughtsTokenCount=i.completion_tokens_details.reasoning_tokens),i.prompt_tokens_details?.cached_tokens&&(h.usageMetadata.cachedContentTokenCount=i.prompt_tokens_details.cached_tokens)),{response:h}}),c(86711);var O=c(47945),P=c(39423);function Q(a){return{id:a.responseId,created:a.created,model:a.model||"kiro"}}function R(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function S(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function T(a,b,c,f){d??=new Map,e??=new Map;let g=`${a}:${b}`;c&&d.set(g,c),f&&e.set(g,f)}T(f.h.KIRO,f.h.OPENAI,null,function(a,b){if(!a)return null;if("chat.completion.chunk"===a.object&&a.choices)return a;let c=a;if("string"==typeof a){let b=a.split("\n"),d="",e="";for(let a of b)a.startsWith("event:")?d=a.slice(6).trim():a.startsWith(":event-type:")?d=a.slice(12).trim():a.startsWith("data:")?e=a.slice(5).trim():a.startsWith(":content-type:")||a.trim()&&!a.startsWith(":")&&(e=a.trim());if(!e)return null;try{(c=JSON.parse(e))._eventType=d}catch{c={text:e,_eventType:d}}}b.responseId||(b.responseId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.chunkIndex=0);let d=c._eventType||c.event||"";if("assistantResponseEvent"===d||c.assistantResponseEvent){let a=c.assistantResponseEvent?.content||c.content||"";if(!a)return null;let d=(0,O.k)(Q(b),{...0===b.chunkIndex?{role:j.z7.ASSISTANT}:{},content:a},null);return b.chunkIndex++,d}if("reasoningContentEvent"===d||c.reasoningContentEvent){let a=c.reasoningContentEvent||c,d="string"==typeof a?a:a.text||a.content||c.content||"";if(!d)return null;let e=(0,O.k)(Q(b),(0,I.B)(d,0===b.chunkIndex),null);return b.chunkIndex++,e}if("toolUseEvent"===d||c.toolUseEvent){b.hadToolUse=!0;let a=c.toolUseEvent||c,d=a.toolUseId||(0,g.eG)(),e=a.name||"",f=a.input||{},h=(0,O.k)(Q(b),{...0===b.chunkIndex?{role:j.z7.ASSISTANT}:{},tool_calls:[{index:0,id:d,type:j.x4.FUNCTION,function:{name:e,arguments:JSON.stringify(f)}}]},null);return b.chunkIndex++,h}if("messageStopEvent"===d||"done"===d||c.messageStopEvent){let a=(0,H.F)(b.hadToolUse?"tool_use":"stop","kiro");b.finishReason=a;let c=(0,O.k)(Q(b),{},a);return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}if("usageEvent"===d||c.usageEvent){let a=(0,P.B6)(c.usageEvent||c,"kiro");a&&(b.usage=a)}return null}),T(f.h.CURSOR,f.h.OPENAI,null,function(a,b){return a?("chat.completion.chunk"===a.object&&a.choices||"chat.completion"===a.object&&a.choices,a):null}),c(68057),c(9537);function U(a,b,c,e,o=!0,p=null,q=null,r=null,s=[],t=null,u=null){let v=e;!function(a,b=[]){if(!b.length||!a.messages||!Array.isArray(a.messages))return;let c=new Set(["image_url","image"]),d=new Set(["audio_url","input_audio"]),e=a=>c.has(a)?b.includes("image"):!!d.has(a)&&b.includes("audio");for(let b of a.messages)Array.isArray(b.content)&&(b.content=b.content.filter(a=>!e(a.type)),0===b.content.length&&(b.content=""))}(v,s),(0,k.SZ)(v),(0,g.fH)(v),b!==f.h.KIRO&&(0,g.SF)(v);let w=(0,l.NU)(v),x=(0,m.YC)(v,p,t,b);if(p&&(p._clientSessionId=x),a!==b){let e=d.get(`${a}:${b}`);if(e)v=e(c,v,o,p);else{if(a!==f.h.OPENAI){let b=d.get(`${a}:${f.h.OPENAI}`);b&&(v=b(c,v,o,p),r?.logOpenAIRequest?.(v))}if(b!==f.h.OPENAI){let a=d.get(`${f.h.OPENAI}:${b}`);a&&(v=a(c,v,o,p))}}}if((b!==f.h.KIRO||a!==f.h.OPENAI&&a!==f.h.CLAUDE)&&(0,l.z)(b,c,v,q,w),b===f.h.OPENAI&&(v=function(a,b={}){if(!a.messages||!Array.isArray(a.messages))return a;let c=!!b.preserveCacheControl;function d(a){let{signature:b,cache_control:d,...e}=a;return c&&d?{...e,cache_control:d}:e}if(a.messages=a.messages.map(a=>{if(a.role===j.z7.DEVELOPER&&(a={...a,role:j.z7.SYSTEM}),a.role===j.z7.TOOL||a.role===j.z7.ASSISTANT&&a.tool_calls?.length||"string"==typeof a.content)return a;if(Array.isArray(a.content)){let b=[];for(let c of a.content)if(c.type!==j.R4.THINKING&&c.type!==j.R4.REDACTED_THINKING)if(j.m8.includes(c.type))b.push(d(c));else{if(c.type===j.R4.TOOL_USE)continue;c.type===j.R4.TOOL_RESULT&&b.push(d(c))}0===b.length&&b.push({type:j.x4.TEXT,text:""});let c=b.every(a=>a.type===j.x4.TEXT),e=b.some(a=>a.cache_control),f=c&&!e?b.map(a=>a.text).join("\n"):b;return{...a,content:f}}return a}),a.messages=a.messages.filter(a=>!!(a.role===j.z7.TOOL||a.role===j.z7.ASSISTANT&&a.tool_calls?.length)||("string"==typeof a.content?""!==a.content.trim():!Array.isArray(a.content)||a.content.some(a=>a.type===j.x4.TEXT&&a.text?.trim()||a.type!==j.x4.TEXT))),a.tools&&Array.isArray(a.tools)&&0===a.tools.length&&delete a.tools,a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&(a.tools=a.tools.map(a=>a.type===j.x4.FUNCTION&&a.function?a:a.name&&(a.input_schema||a.description)?{type:j.x4.FUNCTION,function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}}:a.functionDeclarations&&Array.isArray(a.functionDeclarations)?a.functionDeclarations.map(a=>({type:j.x4.FUNCTION,function:{name:a.name,description:String(a.description||""),parameters:a.parameters||{type:"object",properties:{}}}})):a).flat()),a.tool_choice&&"object"==typeof a.tool_choice){let b=a.tool_choice;"auto"===b.type?a.tool_choice="auto":"any"===b.type?a.tool_choice="required":"tool"===b.type&&b.name&&(a.tool_choice={type:j.x4.FUNCTION,function:{name:b.name}})}return a}(v,{preserveCacheControl:!!n.xq[q]?.quirks?.preserveCacheControl})),b===f.h.CLAUDE){let a=p?.accessToken||p?.apiKey||null;v=(0,h.Bz)(v,q,a,t,p?.rawHeaders,x)}if(n.xq[q]?.quirks?.cloakToolsOnOAuth){let a=p?.accessToken||p?.apiKey||null;if(a?.includes("sk-ant-oat")){let{body:a,toolNameMap:b}=(0,i.Az)(v);v=a,b?.size>0&&(v._toolNameMap=b)}}return v}function V(a,b,c,d){if(b===a){let a=(0,i.F5)(c,d?.toolNameMap);return null!=a?[a]:[]}let g=[c],h=null,j=e.get(`${a}:${b}`);if(j){let a=j(c,d);return a?Array.isArray(a)?a:[a]:[]}if(a!==f.h.OPENAI){let b=e.get(`${a}:${f.h.OPENAI}`);if(b){g=[];let a=b(c,d);a&&(h=g=Array.isArray(a)?a:[a])}}if(b!==f.h.OPENAI){let a=e.get(`${f.h.OPENAI}:${b}`);if(a){let b=[];for(let c of g){let e=a(c,d);e&&b.push(...Array.isArray(e)?e:[e])}g=b}}return h&&b!==f.h.OPENAI&&a!==f.h.OPENAI&&(g._openaiIntermediate=h),g}function W(a,b){return a!==b}function X(a){let b={messageId:null,model:null,textBlockStarted:!1,thinkingBlockStarted:!1,inThinkingBlock:!1,currentBlockIndex:null,toolCalls:new Map,finishReason:null,finishReasonSent:!1,usage:null,contentBlockIndex:-1};return a===f.h.OPENAI_RESPONSES?{...b,seq:0,nextOutputIndex:0,responseId:`resp_${Date.now()}`,created:Math.floor(Date.now()/1e3),started:!1,msgTextBuf:{},msgItemAdded:{},msgContentAdded:{},msgItemDone:{},msgOutputIndexes:{},reasoningId:"",reasoningIndex:-1,reasoningBuf:"",reasoningPartAdded:!1,reasoningDone:!1,inThinking:!1,funcArgsBuf:{},funcNames:{},funcCallIds:{},funcArgsDone:{},funcItemDone:{},funcOutputIndexes:{},completedSent:!1}:b}function Y(){}T(f.h.KIRO,f.h.CLAUDE,null,function(a,b){let c=a;if("string"==typeof a){let b=a.trim();if(!b||"[DONE]"===b)return null;try{c=JSON.parse(b.startsWith("data:")?b.slice(5).trim():b)}catch{return null}}if(!c||!c.choices?.[0])return null;let d=[],e=c.choices[0],f=e.delta||{};if(c.usage&&"object"==typeof c.usage){b.usage={input_tokens:"number"==typeof c.usage.prompt_tokens?c.usage.prompt_tokens:0,output_tokens:"number"==typeof c.usage.completion_tokens?c.usage.completion_tokens:0};let a=c.usage.cache_read_input_tokens??c.usage.prompt_tokens_details?.cached_tokens,d=c.usage.cache_creation_input_tokens??c.usage.prompt_tokens_details?.cache_creation_tokens;"number"==typeof a&&(b.usage.cache_read_input_tokens=a),"number"==typeof d&&(b.usage.cache_creation_input_tokens=d)}b.messageStartSent||(b.messageStartSent=!0,b.messageId="string"==typeof c.id&&c.id.replace("chatcmpl-","")||`msg_${Date.now()}`,b.model=c.model||"kiro",b.nextBlockIndex=0,d.push({type:"message_start",message:{id:b.messageId,type:"message",role:"assistant",model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let g=f.reasoning_content||f.reasoning;if(g&&(S(b,d),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,d.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:"thinking",thinking:""}})),d.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:g}})),f.content&&(R(b,d),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,d.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:"text",text:""}})),d.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:f.content}})),f.tool_calls)for(let a of(b.toolCalls||(b.toolCalls=new Map),b.toolArgBuffers||(b.toolArgBuffers=new Map),f.tool_calls)){let c=a.index??0;if(a.id){R(b,d),S(b,d);let e=b.nextBlockIndex++;b.toolCalls.set(c,{id:a.id,name:a.function?.name||"",blockIndex:e}),d.push({type:"content_block_start",index:e,content_block:{type:"tool_use",id:a.id,name:a.function?.name||"",input:{}}})}a.function?.arguments&&b.toolCalls.get(c)&&b.toolArgBuffers.set(c,(b.toolArgBuffers.get(c)||"")+a.function.arguments)}if(e.finish_reason){if(R(b,d),S(b,d),b.toolCalls)for(let[a,c]of b.toolCalls){let e=b.toolArgBuffers?.get(a);e&&d.push({type:"content_block_delta",index:c.blockIndex,delta:{type:"input_json_delta",partial_json:e}}),d.push({type:"content_block_stop",index:c.blockIndex})}b.finishReason=e.finish_reason;let a=b.usage||{input_tokens:0,output_tokens:0};d.push({type:"message_delta",delta:{stop_reason:function(a){switch(a){case"stop":default:return"end_turn";case"length":return"max_tokens";case"tool_calls":return"tool_use"}}(e.finish_reason)},usage:a}),d.push({type:"message_stop"})}return d.length>0?d:null})},3771:(a,b,c)=>{c.d(b,{l:()=>k});var d=c(2547),e=c(19956),f=c(55511),g=c(18226),h=c(94454),i=c(60290);function j(a){if(null==a)return"";if("string"==typeof a)return a;if(Array.isArray(a)){let b=[];for(let c of a)"string"==typeof c?b.push(c):c&&"object"==typeof c&&"string"==typeof c.text&&b.push(c.text);return b.join("\n")}return String(a)}function k(a,b,c){let{messages:d,system:e}=function(a=[]){let b=[],c=[];for(let d of a){if(!d)continue;let a=d.role;if(a===g.z7.SYSTEM){let a=j(d.content);a&&c.push(a);continue}if(a===g.z7.TOOL){let a="string"==typeof d.content?d.content:j(d.content);b.push({role:g.z7.TOOL,content:[{type:"tool-result",toolCallId:d.tool_call_id||"",toolName:d.name||"",output:{type:"text",value:a}}]});continue}if(a===g.z7.ASSISTANT){let a=[],c=j(d.content);if(d.reasoning_content&&a.push({type:"reasoning",text:d.reasoning_content}),c&&a.push({type:g.x4.TEXT,text:c}),Array.isArray(d.tool_calls))for(let b of d.tool_calls){let c=b.function||{};a.push({type:"tool-call",toolCallId:b.id||"",toolName:c.name||"",input:function(a){if(null==a)return{};if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return{}}}(c.arguments)})}b.push({role:g.z7.ASSISTANT,content:a.length?a:[{type:g.x4.TEXT,text:""}]});continue}b.push({role:g.z7.USER,content:function(a){if(null==a)return[{type:g.x4.TEXT,text:""}];if("string"==typeof a)return[{type:g.x4.TEXT,text:a}];if(Array.isArray(a)){let b=[];for(let c of a)if("string"==typeof c)b.push({type:g.x4.TEXT,text:c});else if(c&&"object"==typeof c)if(c.type===g.x4.TEXT&&"string"==typeof c.text)b.push({type:g.x4.TEXT,text:c.text});else if(c.type===g.x4.IMAGE_URL||c.type===g.x4.IMAGE){let a="string"==typeof c.image_url?c.image_url:c.image_url?.url||c.image||c.url;a&&b.push({type:"image",image:a})}else"string"==typeof c.text&&b.push({type:g.x4.TEXT,text:c.text});return b.length?b:[{type:g.x4.TEXT,text:""}]}return[{type:g.x4.TEXT,text:String(a)}]}(d.content)})}return{messages:b,system:c.join("\n\n")}}(b.messages),k={model:(0,h.kD)(a),messages:d,stream:!1!==c,max_tokens:b.max_tokens??b.max_output_tokens??i.Uc,temperature:b.temperature??.3};e&&(k.system=e);let l=function(a){if(!Array.isArray(a)||0===a.length)return;let b=[];for(let c of a)c&&(c.type===g.x4.FUNCTION&&c.function?b.push({name:c.function.name,description:c.function.description,input_schema:c.function.parameters||{type:"object"}}):c.name&&(c.input_schema||c.parameters)&&b.push({name:c.name,description:c.description,input_schema:c.input_schema||c.parameters}));return b.length?b:void 0}(b.tools);l&&(k.tools=l),null!=b.top_p&&(k.top_p=b.top_p);let m=new Date().toISOString().slice(0,10);return{threadId:(0,f.randomUUID)(),memory:"",config:{workingDir:process.cwd(),date:m,environment:process.platform,structure:[],isGitRepo:!1,currentBranch:"",mainBranch:"",gitStatus:"",recentCommits:[]},params:k}}(0,d.kz)(e.h.OPENAI,e.h.COMMANDCODE,k,null)},6499:(a,b,c)=>{c.d(b,{$G:()=>g,bf:()=>e,n6:()=>f,xr:()=>d});let d="EpwGCkYIChgCKkCzVUuRrg7CcglSUWEef4rH6o35g9UYS8ZPe0/VomQTBsFx6sttYNj5l8GqgW6ejuHyYqpFToxIbZl0bw17l5dJEgzCnqDO0Z8fRlMrNgsaDLS1cnCjC53KBqE0CCIwAADQdo1eO+7qPAmo8J4WR3JPmr92S97kmvr5K1iPMiOpkZNj8mEXW8uzBoOJs/9ZKoMFiqHJ3UObwaJDqFOW70E9oCwDoc6jesaWVAEdN5vWfKMpIkjFJjECdjIdkxyJNJ8Ib8yXVal3qwE7uThoPRqSZDdHB5mmwPEjWE/90cSYCbtX2YsJki1265CabBb8/QEkODXg4kgRrL+c8e8rRXz/dr1RswvaPuzEdGKHRNi9UooNUeOK4/ebx1KkP9YZttyohN9GWqlts36kOoW0Cfie/ABDgF9g534BPth/sstxDM6d79QlRmh6NxizyTF74DXJI34u0M4tTRchqE5pAq85SgdJaa+dix1yJPMji8m6nZkwJbscJb9rdc2MKyKWjz8QL2+rTSSuZ2F1k1qSsW0xNcI7qLcI12Vncfn/VqY6YOIZy/saZBR0ezXvN6g+UYbuIdyVg7AyIFZt3nbrO7/kmOEb2VKzygwklHGEIJHfFgMpH3JSrAzbZIowVHOF7VaJ+KXRFDCFin7hHTOiOsdg+1ij1mML9Z/x/9CP4b7OUcaQm1llDZPSHc6rZMNL3DdB+fW5YfmNgKU35S+7AMtA10nVILzDAk1UV4T2K9Do09JlI6rjOs9UuULlIN2Z0eE8YTlANR6uQcw7lMcdfqYE8tke4rDKc2dDiaS5vVe45VewICNpdXGN11yw8QqH7p27CR1HtN30e0tHXOR3bIwWk/Yb6O5fTaKG6Ri8e5ZCPvdD9HqepVi188nM0iTjJqL58F3ni04ECIhcbyaQWnuTes1Kw4CMwiZDLQkk8Hgz7HkUOf1btQTF/0nhD7ry0n0hAEg2PaDM3V6TjOjf4hEldRmeqERcQF1PfgKb6ZM12rlIIfUqKACczWJSzTV158+47HX36o0cgux6nFlv/DE+sEiRVxgB",e="EuwGCukGAXLI2nxwZIq54WWSoL/YN0P3TsDZ7zRnLi8g0S4aVr2HUGxvaHKySuY6HAVzcE0GPGjXrytLIldxthSvfxgUlJh6Qa9Z+Oj5QZBlYdg6HaJ6yuY5R7waE6rdwBsRf7Ft2j3DJ9rMi9qhWFqApewYtPhls3VHtuvND3l8Rm09+lbAXQs6KKWEWrxNLKTBkfpMgXhRERc/TQRMZu1twAablm6/Zk1tsYRvfWKLsNbeKF+CCojJdXJKvnR/8Ouuoa+Y2Ti20hcW7aZIIjZDFYPU//k6Ybmhg69J/imbFai2ckhfLaisqdDkdoIiBJScTOUvYqP6AE9d4MsydSC+UlhIMk4hoP76R8vUSCZRMkjOaDXstf/QoVZKbt94wyRZgAJ1G0BqI8L5ow86kLpA4wJEtxsRGymOE4bKUvApveBakYDNM9APkf+LbtbzWSseGjoZcSlycF9iN8Q2XNYKRrHbv3Lr5Y8JjdH/5y/6SHkNehTEZugaeGnSPSyCTWto1kQgHpxdWmhkLfJGNUGLmue7Mesj4TSms4J33mRpYVhNB/J333FCqIP0hr/E7BkkjEn7yZ4X7SQlh+xKPurapsnHRwiKmtsilmEFrnTE9iQr+pMr6M29qqFNv1tr5yumbaJw8JW9sB15tNsRv+dW6BjNanbsKz7HCgKUBc8tGy+7YuhXzAfViyRefcjK7eZW0Fbyt7AbybJTKz78W8NH7ye6LAwzOebXpeZ4D43fNIt8bKh26qgduSQv/7o+pAflkuqHZ99YWgHQ8h8OkZFi3eOiSYjsjhdZ/czWOdoPI/OnqIldzMPF5YlrKBLFX8VhRKVmqgsmWf5PHGulHhMkVlS+XG2UIseGy69ARa93D78Gsa+1n1kJr7EEB7Rh+27vUMxVYLdz1yMSvE5nalTAlg/ZeG8+XQ0cHuAI3KbQpHW2Q++RdXfm5JzD5WdJZUU+Zn8t8UUn85BH4RxZLeE0qJikgSsKoYVBc6YhiMjhPgkR95ReimY4Z0xCJdRo1gjexOFeODZMpQF6Yxnoic7IrdgsFA3iePTbFnPp3IAM1fAThWhXJUn3QInUOTd5o1qmTmn6REbL15g/JQNl+dqUoPkhleeb2V3kjqp1okmO3wMZbPknR3S1LZNmlS72/iBQUm+n2b/RCn4PjmM2",f="CloBjz1rX5+yg1ILh/Ag+suum5k1f/9m/hI0XDQ33lsQIYnOHLn9KZwN0C7E4jgep5MzZvz5Se1Z1xxYrA1+Iz0Il4tabBhaDfMKNa5dGdEA3KnikfjfIpMlPaAKaQGPPWtf2hodPdBgguiZqDn+Qz2LwGEqHVJ16LVBUpeSx7UnYBLSwio8cyNy0jPijOh5QXKLTeHVdO2tKKcCCrtG2JCW3dOSrW2qA8eyAg40iQUnMNECjbcjkqB1+zrab7jX9ILwg7L9OgqYAQGPPWtfT4nzaPzSkXePAa920abYxPs3fg/RHDlg8PUVFLa+ko6qOjt7nXJTMxN0cpCwUCFX7eHHcMnA6vApyA/rXvJiAABkHZ3HilAktXRtxr/thHU0H8/4H5gT3kzoQcq9aMznrKomd3ct0mFi0ioSKnOEfoY1Mrfj00p/ZWm0tT7Wrjcm3BQXZ+T9Vrb94k+6CjtcEBrGCq8BAY89a1/vTMczqwB1NP3HCCuBdnds2vDXkj6XAYaXjsjmik8tGqwMKHz8R9RAWsx6SO6pkGEpXXpRzAaUx6c+aofsL/z1xOcN7ArCAa6uEeQKEgNngZuCP05p4+9P95epVmgOjFa4KfsPnyg+NKUkEFmpPSDrIRyMT+xERlclVcCI98/u7i8a9+vTbgzl8TRFYryClNH37K1ye5i6kqSGDUcMyiEasjke5BxbUh3i6wqMAgGPPWtfk+A+iY38QAldu117FEkTIkzbYOIt67lk9c6Ou3Y3Ct8TFHFw5QwGfSFc0YWjeTFHdm9UdV5jPK35p6VfhiRSva3w2+JLIHb4jvv5HutZPOJ3yQTt/+hUDj80oMNMbwnxNZvCEdzKS+D9vwmTACAm5H0ZetBSH2gPJXnhhuQo9AegS3wIWVR2a5k643Vx9r4u4pOvij4476lxKswIHvqsjL4jnTzRCvd44G6dn7vD0ENGb1K/i+dMRQMcOBaOxPN0ynk9bKxXWRDbZ+Rhakfr+y74z+6eYCdRPVqO9I7s+riilFuRIfaQ+U6/vuVKGIWEVKCfZZi0z6H5Xgz1xmse0u0AsittDlIKxwEBjz1rX783A0vehvUeabRia+/pX46IsN5efTAxFEBUeUce3jLuXIghkMV2b8KNhUs2G0aZldDDewRQbkluQabBMDT82N5I7reJP0VZgLIKccCL5DoGv1J7YWM2npLMIgZ6aP8aSlT3PFFJ0IXbUZUrzduczmIm6nzAJf9zxmq1aIFYw8YrgW8RjUdy0UvUmRoBEShSGUrvsyaRTl7J//KJW5utIPunFMu53GPWLidCFHzM1QA3Cj1+4zv5UXajP/V92RQayWbzCvYBAY89a1+yzoVSWukUGH7kX71Tg9dx7HA7OyKYwnYaqekG98zJfcUM/3KoiiiotW5t4xYu//ksEl36bSWvUHsRnxGByg+3WYdnZqKg0AtdRB/EXbI5PsjvS5ko96bkjSuFkY3TjHGwAM2B94K6/t6OTE/NBbxCsY9sT4d+1sbFv/iyfmfCnfvJaSzGmC9CDWKy4iqQ/vBNWps9j1JXk0p5uPAYC2BaMkxl5xoTVZqI3zAuRtQF5JLmPPy+PdqOgFxMKcLGNhwp7dbhIFLF68vCYQ9CL0NnK2d3CFk1UFVYxsi1TsolR1xahe/Rxt5HZDz/z65nevrQ",g="CiQBjz1rX/AlslZWMe5RgBt4Tv9j4+YNZTTez+JH2/+5oAlICygKXgGPPWtf7/Sux9eLYap/bmYAdPqFThLXj+l7o0DLu/hdgU98MA9ZrlRDNHXx+T0tuY8AcnjPZbiDyOq2bE11Fjhsk6p5axqayaapC/Pt9GczcgIQf1z15WTxCeKWAPYKYQGPPWtfDYj0nlNFNoTlU39RC91Z16xFKJ2MLEmkm+NvimsoOJ6be3g2BssNPtJ/9BKDXRA5cVs17tBeeW72lH8TMB5999udtxHM2SiUsnWsrHlfVuGSCpNQQ+5REw8HNvEKkgEBjz1rXzBNWrqZGbjun55K+vgYPBhJO2qZ67uRWXUA5/qcU12U/mbi5XoA3swoxYE8LEXfZvFFC9WG/W28QNCA0Qd4Trk/WkWiAwZmB8a84Fs14rkv3wqyxwFavPkJorqurAfd2XzGiFy0sB0ITCOPYi1HzDGV5WfXk6b9k+jT66/RuzGa8EcSOWo/QtC3Bkhgowo4AY89a1/f/tw8A02zjIoK7JVDAbf8W4UfmbApJJhwXIiGtu1M0JItObx7g2reYqT+HHL2Q/R4VDc="},7259:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(60290);function e(a,b=d.Uc){let c=a.max_tokens||d.Uc;return a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&c<d.eo&&(c=d.eo),a.thinking?.budget_tokens&&c<=a.thinking.budget_tokens&&(c=a.thinking.budget_tokens+1024),c>b&&(c=b),c}},7274:(a,b,c)=>{c.d(b,{c:()=>w});var d=c(55511),e=c(85187),f=c(4630),g=c(28730),h=c(60290),i=c(91576),j=c(89843),k=c(9562),l=c(48644),m=c(6499);let n=/^agent\/[^/]+\/\d+\/[^/]+\/\d+$/,o=[/high\s+traffic/i,/agent\s+(execution\s+)?terminated\s+due\s+to\s+error/i,/capacity/i,/temporarily\s+unavailable/i,/timeout/i,/stream\s+(ended|closed|terminated|interrupted)/i,/empty\s+response/i],p=new Set([h.gx.SERVER_ERROR,h.gx.BAD_GATEWAY,h.gx.SERVICE_UNAVAILABLE,h.gx.GATEWAY_TIMEOUT]),q=["output_config","thinking","reasoning_effort","reasoning","enable_thinking","thinking_budget","thinkingConfig"],r=a=>{for(let b of q)delete a[b]},s=[/image/i,/imagen/i,/image-generation/i];function t(a){return!!a&&s.some(b=>b.test(a))}function u(a){let b=d.createHash("sha256").update(String(a||"antigravity")).digest().subarray(0,16);b[6]=15&b[6]|80,b[8]=63&b[8]|128;let c=b.toString("hex");return`${c.slice(0,8)}-${c.slice(8,12)}-${c.slice(12,16)}-${c.slice(16,20)}-${c.slice(20)}`}function v({body:a,request:b,credentials:c,model:d,requestType:e}){if(n.test(a?.requestId||""))return a.requestId;let f=b?.sessionId||a?.request?.sessionId||c?._clientSessionId||c?.connectionId||c?.email||"anonymous",g=u(`antigravity:conversation:${f}`),h=u(`antigravity:trajectory:${f}:${d}:${e}`),i=Math.max(1,2*(Array.isArray(b?.contents)?b.contents.length:1)-1);return`agent/${g}/${Date.now()}/${h}/${i}`}class w extends e.H{constructor(){super("antigravity",f.xq.antigravity)}buildUrl(a,b,c=0){let d=this.getBaseUrls(),e=d[c]||d[0],f=t(a);return`${e}/v1internal:${b&&!f?"streamGenerateContent?alt=sse":"generateContent"}`}parseError(a,b){if(429===a.status&&b){let{resetsAtMs:a}=(0,k.k)(b),c=b;try{c=JSON.parse(b)?.error?.message||b}catch{}let d=a;if(!d){let a=this.parseRetryFromErrorMessage(c);a&&(d=Date.now()+a)}if(d)return{status:429,message:c,resetsAtMs:d}}return super.parseError(a,b)}buildHeaders(a,b=!0,c=null){return{"Content-Type":"application/json",Authorization:`Bearer ${a.accessToken}`,"User-Agent":this.config.headers?.["User-Agent"]||g.K["User-Agent"]}}transformRequest(a,b,c,d){let e=d?.projectId||this.generateProjectId();if(!0!==c&&delete b.stream_options,t(a)){let c=function(a){let b={aspectRatio:"1:1"},c=a.match(/(\d+)x(\d+)$/);if(c){let a=parseInt(c[1]),d=parseInt(c[2]);if(a<=16&&d<=16)b.aspectRatio=`${a}:${d}`;else{let c=(a,b)=>b?c(b,a%b):a,e=c(a,d);b.aspectRatio=`${a/e}:${d/e}`}}return b}(a),f=a.replace(/-(\d+)x(\d+)$/,""),g=[];for(let a of b.request?.contents||b.contents||[]){let b=(a.parts||[]).filter(a=>a?.text!==void 0||a?.inlineData?.data&&a?.inlineData?.mimeType||a?.fileData?.fileUri&&a?.fileData?.mimeType);b.length>0&&g.push({role:a.role||"user",parts:b})}let h=(0,i.oV)({headers:d?.rawHeaders,body:b,connectionId:d?.email||d?.connectionId,scope:"antigravity"});this._lastSessionId=h;let j={contents:g,generationConfig:{temperature:1,topP:.95,topK:40,maxOutputTokens:8192,responseModalities:["TEXT","IMAGE"],imageConfig:c},sessionId:h};return{project:e,model:f,userAgent:"antigravity",requestType:"image_gen",requestId:v({body:b,request:j,credentials:d,model:f,requestType:"image_gen"}),request:j}}let f=function(a){let b=[];for(let c of a||[]){if(!c?.role||!Array.isArray(c.parts)||0===c.parts.length)continue;let a=b.at(-1);a?.role===c.role?a.parts.push(...c.parts):b.push({...c,parts:[...c.parts]})}return b}(b.request?.contents?.map(a=>{let b=a.role;a.parts?.some(a=>a.functionResponse)&&(b="user");let c=a.parts?.filter(a=>(!a.thought||!!a.functionCall)&&(!a.thoughtSignature||!!a.functionCall||!!a.text)),d=c?.some(a=>a.functionCall&&!a.thoughtSignature)??!1;return b!==a.role||c?.length!==a.parts?.length||d?{...a,role:b,parts:d?c.map(a=>a.functionCall&&!a.thoughtSignature?{...a,thoughtSignature:m.bf}:a):c}:a}).filter(a=>a.parts&&a.parts.length>0)),h=b.request?.tools;if(h&&h.length>0){let a=new Set,b=[];for(let c of h)for(let d of c.functionDeclarations||[]){let c=function(a){if(!a)return"_unknown";let b=a.replace(/[^a-zA-Z0-9_.:\-]/g,"_");return/^[a-zA-Z_]/.test(b)||(b="_"+b),b.substring(0,64)}(d.name);a.has(c)||(a.add(c),b.push({...d,name:c,parameters:d.parameters?(0,l.Yr)(structuredClone(d.parameters)):{type:"object",properties:{reason:{type:"string",description:"Brief explanation"}},required:["reason"]}}))}h=b.length>0?[{functionDeclarations:b}]:[]}let{tools:j,toolConfig:k,...n}=b.request||{};if(r(n),n.systemInstruction?.parts){for(let a of n.systemInstruction.parts)if("string"==typeof a.text)for(let{from:b,to:c}of g.iO)a.text=a.text.replaceAll(b,c)}let o={...n.generationConfig||{}};o.maxOutputTokens>64e3&&(o.maxOutputTokens=64e3);let p={...n,generationConfig:o,...f&&{contents:f},...h&&{tools:h},sessionId:b.request?.sessionId||(0,i.oV)({headers:d?.rawHeaders,body:b,connectionId:d?.email||d?.connectionId,scope:"antigravity"}),safetySettings:void 0,...h?.length>0&&{toolConfig:{functionCallingConfig:{mode:"VALIDATED"}}}};return r(b),this._lastSessionId=p.sessionId,{project:e,model:b.model||a,userAgent:"antigravity",requestType:"agent",requestId:v({body:b,request:p,credentials:d,model:a,requestType:"agent"}),request:p}}async refreshCredentials(a,b,c=null){if(!a.refreshToken)return null;try{let d=await (0,j.proxyAwareFetch)(g.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.refreshToken,client_id:this.config.clientId,client_secret:this.config.clientSecret})},c);if(!d.ok)return null;let e=await d.json();return b?.info?.("TOKEN","Antigravity refreshed"),{accessToken:e.access_token,refreshToken:e.refresh_token||a.refreshToken,expiresIn:e.expires_in,projectId:a.projectId}}catch(a){return b?.error?.("TOKEN",`Antigravity refresh error: ${a.message}`),null}}generateProjectId(){let a=["useful","bright","swift","calm","bold"][Math.floor(5*Math.random())],b=["fuze","wave","spark","flow","core"][Math.floor(5*Math.random())];return`${a}-${b}-${d.randomUUID().slice(0,5)}`}generateSessionId(){return d.randomUUID()+Date.now().toString()}parseRetryHeaders(a){if(!a?.get)return null;let b=a.get("retry-after");if(b){let a=parseInt(b,10);if(!isNaN(a)&&a>0)return 1e3*a;let c=new Date(b);if(!isNaN(c.getTime())){let a=c.getTime()-Date.now();return a>0?a:null}}let c=a.get("x-ratelimit-reset-after");if(c){let a=parseInt(c,10);if(!isNaN(a)&&a>0)return 1e3*a}let d=a.get("x-ratelimit-reset");if(d){let a=1e3*parseInt(d,10)-Date.now();return a>0?a:null}return null}parseRetryFromErrorMessage(a){if(!a||"string"!=typeof a)return null;let b=a.match(/reset after (\d+h)?(\d+m)?(\d+s)?/i);if(!b)return null;let c=0;return b[1]&&(c+=3600*parseInt(b[1])*1e3),b[2]&&(c+=60*parseInt(b[2])*1e3),b[3]&&(c+=1e3*parseInt(b[3])),c>0?c:null}extractErrorMessage(a,b=""){return[a?.error?.message,a?.message,a?.error,b].filter(Boolean).map(a=>"string"==typeof a?a:JSON.stringify(a)).join("\n")}isTransientAntigravityError(a,b){return!!(a===h.gx.RATE_LIMITED||p.has(a))||o.some(a=>a.test(b||""))}async computeRetryDelay(a,b){let c="",d=null,e=this.parseRetryHeaders(a.headers);try{d=(c=await a.clone().text())?JSON.parse(c):null}catch{}let f=this.extractErrorMessage(d,c);return(e||(e=this.parseRetryFromErrorMessage(f)),e)?e<=1e4&&e:!!this.isTransientAntigravityError(a.status,f)&&Math.min(1e3*2**b,a.status===h.gx.RATE_LIMITED?1e4:15e3)}static cloakTools(a,b=null){let c=a.request?.tools;if(!c||0===c.length)return{cloakedBody:a,toolNameMap:null};let d="github-copilot"===b,e=new Map,f=[],h=new Set(x.map(a=>a.name));for(let a of c)if(a.functionDeclarations)for(let b of a.functionDeclarations){if(d&&g.J5.has(b.name)||d&&h.has(b.name))continue;if(g.J5.has(b.name)){f.push(b);continue}let a=`${b.name}${g.QH}`;e.set(a,b.name),f.push({...b,name:a})}let i=[],j=new Set;for(let a of[...f,...x])!a?.name||j.has(a.name)||(j.add(a.name),i.push(a));let k=a.request?.contents?.map(a=>{if(!a.parts)return a;let b=a.parts.map(a=>a.functionCall&&!g.J5.has(a.functionCall.name)?{...a,functionCall:{...a.functionCall,name:`${a.functionCall.name}${g.QH}`}}:a.functionResponse&&!g.J5.has(a.functionResponse.name)?{...a,functionResponse:{...a.functionResponse,name:`${a.functionResponse.name}${g.QH}`}}:a);return{...a,parts:b}}),{stream:l,stream_options:m,...n}=a;return{cloakedBody:{...n,request:{...a.request,tools:[{functionDeclarations:i}],contents:k||a.request.contents}},toolNameMap:e}}}let x=[{name:"browser_subagent",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"command_status",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"find_by_name",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"generate_image",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"grep_search",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"list_dir",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"list_resources",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"mcp_sequential-thinking_sequentialthinking",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"multi_replace_file_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"notify_user",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_resource",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_terminal",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_url_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"replace_file_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"run_command",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"search_web",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"send_command_input",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"task_boundary",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"view_content_chunk",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"view_file",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"write_to_file",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}}]},9537:(a,b,c)=>{c.d(b,{H:()=>n});var d=c(2547),e=c(19956),f=c(18226),g=c(47945),h=c(39423),i=c(22208),j=c(10640),k=c(98173);function l(a,b,c=null){return(0,g.k)({id:a.responseId,created:a.created,model:a.model},b,c)}let m=a=>(0,k.F)(a,"commandcode");function n(a,b){var c;if(!a)return null;if(a&&"object"==typeof a&&"chat.completion.chunk"===a.object)return a;let d=a;if("string"==typeof a){let b=a.trim();if(!b)return null;let c=b.startsWith("data:")?b.slice(5).trim():b;if(!c||"[DONE]"===c)return null;try{d=JSON.parse(c)}catch{return null}}if(!d||"object"!=typeof d||!d.type)return null;c=d.model,b.responseId??=`chatcmpl-${Date.now()}`,b.created??=Math.floor(Date.now()/1e3),b.model=b.model||c||"commandcode",b.chunkIndex??=0,b.toolIndex??=0,b.toolIndexById??=new Map,b.openTools??=new Set,b.openText??=!1,b.finishReason??=null,b.usage??=null;let e=[];switch(d.type){case"text-delta":{let a=d.text||d.delta||"";if(!a)break;let c=0===b.chunkIndex?{role:f.z7.ASSISTANT,content:a}:{content:a};b.chunkIndex++,b.openText=!0,e.push(l(b,c));break}case"reasoning-delta":{let a=d.text||"";if(!a)break;let c=(0,i.B)(a,0===b.chunkIndex);b.chunkIndex++,e.push(l(b,c));break}case"tool-input-start":{let a=d.id||d.toolCallId||(0,j.eG)(b.toolIndex),c=b.toolIndexById.get(a);null==c&&(c=b.toolIndex++,b.toolIndexById.set(a,c)),b.openTools.add(a);let g={...0===b.chunkIndex?{role:f.z7.ASSISTANT}:{},tool_calls:[{index:c,id:a,type:f.x4.FUNCTION,function:{name:d.toolName||"",arguments:""}}]};b.chunkIndex++,e.push(l(b,g));break}case"tool-input-delta":{let a=d.id||d.toolCallId,c=b.toolIndexById.get(a);if(null==c)break;let f={tool_calls:[{index:c,function:{arguments:d.delta||d.inputTextDelta||""}}]};e.push(l(b,f));break}case"tool-call":{let a=d.toolCallId;if(b.toolIndexById.has(a))break;let c=b.toolIndex++;b.toolIndexById.set(a,c);let g="string"==typeof d.input?d.input:JSON.stringify(d.input??{}),h={...0===b.chunkIndex?{role:f.z7.ASSISTANT}:{},tool_calls:[{index:c,id:a,type:f.x4.FUNCTION,function:{name:d.toolName||"",arguments:g}}]};b.chunkIndex++,e.push(l(b,h));break}case"finish-step":b.finishReason=m(d.finishReason),d.usage&&(b.usage=d.usage);break;case"finish":{let a=b.finishReason||m(d.finishReason||"stop"),c=l(b,{},a),f=d.totalUsage||b.usage,g=(0,h.B6)(f,"commandcode");g&&(c.usage=g),e.push(c);break}case"error":{b.finishReason=f.bC.STOP;let a=d.error??d.message??"unknown",c="string"==typeof a?a:JSON.stringify(a),g=`
|
|
21
21
|
|
|
22
|
-
[CommandCode error: ${c}]`,h=0===b.chunkIndex?{role:f.z7.ASSISTANT,content:g}:{content:g};b.chunkIndex++,e.push(l(b,h)),e.push(l(b,{},f.bC.STOP))}}return e.length?e:null}(0,d.kz)(e.h.COMMANDCODE,e.h.OPENAI,null,n)},9562:(a,b,c)=>{function d(a){if("string"!=typeof a)return null;let b=a.trim();if(!b)return null;if(/^\d+(\.\d+)?s$/.test(b))return Math.round(1e3*parseFloat(b));let c=b.match(/(\d+(?:\.\d+)?)(h|m|s|ms)/g);if(!c)return null;let d={h:36e5,m:6e4,s:1e3,ms:1},e=0;for(let a of c){let[,b,c]=a.match(/(\d+(?:\.\d+)?)(h|m|s|ms)/);e+=parseFloat(b)*d[c]}return Math.round(e)}function e(a,b=Date.now()){let c={resetsAtMs:null,reason:null,model:null,retryAfter:null};if(!a)return c;let f=a;if("string"==typeof a)try{f=JSON.parse(a)}catch{return c}let g=f?.error?.details;if(!Array.isArray(g))return c;let h=null,i=null,j=null,k=null;for(let a of g)if(a?.["@type"]==="type.googleapis.com/google.rpc.ErrorInfo"){i=a.reason||i,j=a.metadata?.model||j;let c=a.metadata?.quotaResetTimeStamp;if(!h&&c){let a=new Date(c).getTime();Number.isFinite(a)&&a>b&&(h=a)}if(!h){let c=d(a.metadata?.quotaResetDelay);c>0&&(h=b+c)}}else a?.["@type"]==="type.googleapis.com/google.rpc.RetryInfo"&&a?.retryDelay&&(k=a.retryDelay);if(!h&&k){let a=d(k);a>0&&(h=b+a)}return{resetsAtMs:h,reason:i,model:j,retryAfter:k}}c.d(b,{k:()=>e})},10089:(a,b,c)=>{c.d(b,{Az:()=>g,F5:()=>i,fO:()=>k,kR:()=>h});var d=c(55511),e=c(28730),f=c(92675);function g(a){let b=a.tools;if(!b||0===b.length)return{body:a,toolNameMap:null};let c=a=>`${a}${e.uR}`,d=new Map,f=new Set,g=[];for(let a of b){if(a.type){g.push(a);continue}let b=c(a.name);d.set(b,a.name),f.add(a.name),g.push({...a,name:b})}let h=[...g,...j],i=a.messages?.map(a=>{if(!Array.isArray(a.content))return a;let b=a.content.map(a=>"tool_use"===a.type?{...a,name:c(a.name)}:a);return{...a,content:b}}),k={...a,tools:h,messages:i||a.messages};return a.tool_choice?.type==="tool"&&f.has(a.tool_choice.name)&&(k.tool_choice={...a.tool_choice,name:c(a.tool_choice.name)}),{body:k,toolNameMap:d.size>0?d:null}}function h(a,b){if(!b?.size||!Array.isArray(a?.content))return a;let c=a.content.map(a=>a?.type==="tool_use"&&b.has(a.name)?{...a,name:b.get(a.name)}:a);return{...a,content:c}}function i(a,b){if(!b?.size||!a||"object"!=typeof a||"content_block_start"!==a.type)return a;let c=a.content_block;if(c?.type!=="tool_use"||"string"!=typeof c.name)return a;let d=b.get(c.name);return d?{...a,content_block:{...c,name:d}}:a}let j=[{name:"Task",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskOutput",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskStop",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskCreate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskGet",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskUpdate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskList",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Bash",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Glob",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Grep",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Read",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Edit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Write",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"NotebookEdit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebFetch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebSearch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"AskUserQuestion",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Skill",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"EnterPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"ExitPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}}];function k(a,b,c){var e;let g,h,i,j,k,l,m;if(!b||!b.includes("sk-ant-oat"))return a;let n={...a},o={type:"text",text:(g=JSON.stringify(a),h=(0,d.createHash)("sha256").update(g).digest("hex").slice(0,5),i=(0,d.randomBytes)(2).toString("hex").slice(0,3),`x-anthropic-billing-header: cc_version=${f.t4}.${i}; cc_entrypoint=sdk-cli; cch=${h};`)};return Array.isArray(n.system)?n.system[0]?.text?.startsWith("x-anthropic-billing-header:")||(n.system=[o,...n.system]):"string"==typeof n.system?n.system=[o,{type:"text",text:n.system}]:n.system=[o],n.metadata?.user_id||(n.metadata={...n.metadata,user_id:(j=b?(0,d.createHash)("sha256").update(`device:${b}`).digest("hex"):(0,d.randomBytes)(32).toString("hex"),l=b?(e=`account:${b}`,k=(0,d.createHash)("sha256").update(e).digest("hex"),`${k.slice(0,8)}-${k.slice(8,12)}-4${k.slice(13,16)}-${(3&parseInt(k[16],16)|8).toString(16)}${k.slice(17,20)}-${k.slice(20,32)}`):(0,d.randomUUID)(),m=c||(0,d.randomUUID)(),`{"device_id":"${j}","account_uuid":"${l}","session_id":"${m}"}`)}),n}},10640:(a,b,c)=>{c.d(b,{C5:()=>l,SF:()=>k,eG:()=>e,fH:()=>i});let d=/^[a-zA-Z0-9_-]+$/;function e(a){return void 0===a?`call_${Date.now()}`:`call_${a}_${Date.now()}`}function f(a=0,b=0,c=""){let d=c?`_${c.replace(/[^a-zA-Z0-9_-]/g,"")}`:"";return`call_msg${a}_tc${b}${d}`}function g(a){if(!a||"string"!=typeof a)return null;let b=a.replace(/[^a-zA-Z0-9_-]/g,"");return b.length>0?b:null}function h(a,b,c){if(a){let c=g(a);if(c){let a=b.indexOf(c);return -1!==a&&b.splice(a,1),c}}return b.length>0?b.shift():c()}function i(a){if(!a.messages||!Array.isArray(a.messages))return a;let b=[];for(let c=0;c<a.messages.length;c++){let e=a.messages[c];if("assistant"===e.role&&e.tool_calls&&Array.isArray(e.tool_calls))for(let a=0;a<e.tool_calls.length;a++){let b=e.tool_calls[a];if(!b.id||!d.test(b.id)){let d=g(b.id);b.id=d||f(c,a,b.function?.name)}b.type||(b.type="function"),b.function?.arguments&&"string"!=typeof b.function.arguments&&(b.function.arguments=JSON.stringify(b.function.arguments))}if(Array.isArray(e.content))for(let a=0;a<e.content.length;a++){let b=e.content[a];if("tool_use"===b.type&&b.id&&!d.test(b.id)){let d=g(b.id);b.id=d||f(c,a,b.name)}}if("assistant"===e.role){b=j(e);continue}if("tool"===e.role&&(e.tool_call_id=h(e.tool_call_id,b,()=>f(c,0))),Array.isArray(e.content))for(let a=0;a<e.content.length;a++){let d=e.content[a];"tool_result"===d.type&&(d.tool_use_id=h(d.tool_use_id,b,()=>f(c,a)))}}return a}function j(a){if("assistant"!==a.role)return[];let b=[];if(a.tool_calls&&Array.isArray(a.tool_calls))for(let c of a.tool_calls)c.id&&b.push(c.id);if(Array.isArray(a.content))for(let c of a.content)"tool_use"===c.type&&c.id&&b.push(c.id);return b}function k(a){if(!a.messages||!Array.isArray(a.messages))return a;let b=a.messages.some(a=>Array.isArray(a?.content)&&a.content.some(a=>a?.type==="tool_use"||a?.type==="tool_result"))||!!a.system,c=[],d=!1;for(let e=0;e<a.messages.length;e++){let f=a.messages[e],g=a.messages[e+1];c.push(f);let h=j(f);if(0!==h.length&&(!g||!function(a,b){if(!a||!b.length)return!1;if("tool"===a.role&&a.tool_call_id)return b.includes(a.tool_call_id);if("user"===a.role&&Array.isArray(a.content)){for(let c of a.content)if("tool_result"===c.type&&b.includes(c.tool_use_id))return!0}return!1}(g,h)))for(let a of(d=!0,h))b?c.push({role:"user",content:[{type:"tool_result",tool_use_id:a,content:"[No response received]"}]}):c.push({role:"tool",tool_call_id:a,content:"[No response received]"})}return d&&(a.messages=c),a}function l(a){return Array.isArray(a)?a.map(a=>a?.type?a:{...a,type:"custom"}):a}},12828:(a,b,c)=>{function d(a,b){}c.d(b,{T:()=>e,s:()=>d});let e=!1},17717:(a,b,c)=>{c.d(b,{SZ:()=>n,Tz:()=>k,jJ:()=>l,oF:()=>m});var d=c(4630),e=c(92675);let f={baseUrl:e.Es},g={baseUrl:e.ky};function h(a){return"string"==typeof a&&a.startsWith("openai-compatible-")}function i(a){return"string"==typeof a&&a.startsWith("anthropic-compatible-")}function j(a){return h(a)&&a.includes("responses")?"responses":"chat"}function k(a){if(a.input&&(Array.isArray(a.input)||"string"==typeof a.input)&&!a.messages)return"openai-responses";if(a.request?.contents&&"antigravity"===a.userAgent)return"antigravity";if(a.contents&&Array.isArray(a.contents))return"gemini";if(a.stream_options||a.response_format||void 0!==a.logprobs||void 0!==a.top_logprobs||void 0!==a.n||void 0!==a.presence_penalty||void 0!==a.frequency_penalty||a.logit_bias||a.user)return"openai";if(a.messages&&Array.isArray(a.messages)){let b=a.messages[0];if(b?.content&&Array.isArray(b.content)){let c=b.content[0];if(c?.type==="text"&&!a.model?.includes("/")){if(a.system||a.anthropic_version)return"claude";let c=b.content.some(a=>"image"===a.type&&a.source?.type==="base64"),d=b.content.some(a=>"image_url"===a.type&&a.image_url?.url);if(c)return"claude";if(d)return"openai";if(b.content.some(a=>"tool_use"===a.type||"tool_result"===a.type))return"claude"}}if(void 0!==a.system||a.anthropic_version)return"claude"}return"openai"}function l(a){return h(a)?"responses"===j(a)?"openai-responses":"openai":i(a)?"claude":function(a){if(h(a)){let b=j(a);return{...d.xq.openai,format:"responses"===b?"openai-responses":"openai",baseUrl:f.baseUrl}}return i(a)?{...d.xq.anthropic,format:"claude",baseUrl:g.baseUrl}:d.xq[a]||d.xq.openai}(a).format||"openai"}function m(a,b){let c=d.xq[a],e=c?.transports;return Array.isArray(e)&&e.length&&e.find(a=>a.format===b)||null}function n(a){return!function(a){let b=a.messages||a.contents;if(!b?.length)return!0;let c=b[b.length-1];return c?.role==="user"}(a)&&delete a.thinking,a}},22095:(a,b,c)=>{c.d(b,{Ww:()=>h,fP:()=>f,yx:()=>g});let d="google",e="thought_signature";function f(a){if(!a||"object"!=typeof a)return null;let b=a[i];if(b&&"object"==typeof b){let a=b[d];if(a&&"object"==typeof a){let b=a[e];if("string"==typeof b&&b.length>0)return b}}let c=a[e];return"string"==typeof c&&c.length>0?c:null}function g(a,b){if(!a||"object"!=typeof a||!b)return a;let c=a[i]||{},f=c[d]||{};return f[e]=b,c[d]=f,a[i]=c,a}function h(a){if(!a||"object"!=typeof a)return null;let b=a.thoughtSignature||a.thought_signature;return"string"==typeof b&&b.length>0?b:null}let i="extra_content"},22208:(a,b,c)=>{c.d(b,{B:()=>e,V:()=>f});var d=c(18226);function e(a,b=!1){return b?{role:d.z7.ASSISTANT,reasoning_content:a}:{reasoning_content:a}}function f(a){if(!a||"object"!=typeof a)return"";if("string"==typeof a.reasoning_content&&a.reasoning_content)return a.reasoning_content;if("string"==typeof a.reasoning&&a.reasoning)return a.reasoning;let b=a.reasoning_details;return Array.isArray(b)?b.map(a=>"string"==typeof a?a:a?.text||a?.content||"").join(""):""}},25830:(a,b,c)=>{c.d(b,{_W:()=>r,ui:()=>p,Bz:()=>s});var d=c(6499),e=c(18226);c(7259);var f=c(10089),g=c(91576);function h(a){let b=function(a){let b=(a||"").trim();if(!b)return"";let c=b.indexOf("#");return c>=0?b.slice(c+1).trim():b}(a);if(!b||b.length>0x2000000)return!1;try{if("E"===b[0]){let a=Buffer.from(b,"base64");return a.length>0&&18===a[0]}if("R"===b[0]){let a=Buffer.from(b,"base64");if(!a.length||69!==a[0])return!1;let c=Buffer.from(a.toString(),"base64");return c.length>0&&18===c[0]}return!1}catch{return!1}}var i=c(39141),j=c(43904),k=c(60290);function l(a,b=null){var c;if(!Array.isArray(a?.messages)||"preserve"===String(function(a,b){if(!a)return null;if("function"==typeof a.get)return a.get(b);let c=Object.entries(a).find(([a])=>a.toLowerCase()===b),d=c?.[1];return Array.isArray(d)?d[0]:d}(b,"x-9router-assistant-prefill")||"").toLowerCase())return a;let d=a.messages.at(-1);if(d?.role!==e.z7.ASSISTANT)return a;let f=Array.isArray(d.content)?d.content.filter(a=>a?.type===e.R4.TOOL_USE&&a.id):[];return f.length>0?(a.messages.push({role:e.z7.USER,content:f.map(a=>({type:e.R4.TOOL_RESULT,tool_use_id:a.id,is_error:!0,content:"Tool execution was not completed before this request continued."}))}),a):(("string"==typeof(c=d.content)?!!c.trim():Array.isArray(c)&&c.some(a=>a?.type===e.R4.TEXT&&a.text?.trim()))?a.messages.push({role:e.z7.USER,content:[{type:e.R4.TEXT,text:"Continue from the assistant response above without repeating it."}]}):a.messages.pop(),a)}let m=/haiku/i,n=["cc/","claude/"];function o(a){let b={type:e.R4.THINKING,thinking:"."};return"deepseek"!==a&&(b.signature=d.xr),b}function p(a,b="",c=null){if(!a||"object"!=typeof a)return a;if(a.thinking?.type==="adaptive"&&m.test(b)&&(a.thinking={type:"enabled",budget_tokens:1e4}),m.test(b)&&a.output_config?.effort!=null&&(delete a.output_config.effort,0===Object.keys(a.output_config).length&&delete a.output_config),Array.isArray(a.messages)){let b=[],c=[];for(let d of a.messages){if(d.role===e.z7.SYSTEM){let a="string"==typeof d.content?d.content:Array.isArray(d.content)?d.content.map(a=>"string"==typeof a?a:a?.text||"").join("\n"):"";a.trim()&&b.push({type:e.R4.TEXT,text:a});continue}c.push(d)}if(b.length>0){let d=Array.isArray(a.system)?a.system:"string"==typeof a.system&&a.system.trim()?[{type:"text",text:a.system}]:[];a.system=[...d,...b],a.messages=c}}var d=a.tools;if(Array.isArray(d))for(let a of d){if(!a||"object"!=typeof a||"string"!=typeof a.model)continue;let b=n.find(b=>a.model.startsWith(b));b&&(a.model=a.model.slice(b.length))}let f=a.thinking?.type==="enabled";if(Array.isArray(a.messages))for(let b of a.messages){if(b.role!==e.z7.ASSISTANT||!Array.isArray(b.content))continue;let a=!1,c=!1,d=[];for(let f of b.content){if(f.type===e.R4.THINKING||f.type===e.R4.REDACTED_THINKING){h(f.signature)&&(c=!0,d.push(f));continue}f.type===e.R4.TOOL_USE&&(a=!0),d.push(f)}b.content=d,f&&!c&&a&&b.content.unshift(o("claude"))}return l(a,c),a}function q(a){if(!Array.isArray(a?.content))return!1;for(let b=a.content.length-1;b>=0;b--){let c=a.content[b];if("object"==typeof c&&null!==c&&c.type!==e.R4.THINKING&&c.type!==e.R4.REDACTED_THINKING)return c.cache_control={type:"ephemeral"},!0}return!1}function r(a){if(!a||"object"!=typeof a)return a;if(Array.isArray(a.system)){let b=a.system.length-1;a.system.forEach((a,c)=>{"object"==typeof a&&null!==a&&(c===b?a.cache_control={type:"ephemeral",ttl:"1h"}:delete a.cache_control)})}if(Array.isArray(a.tools)){let b=a.tools.length-1;a.tools.forEach((a,c)=>{c===b?a.cache_control={type:"ephemeral",ttl:"1h"}:delete a.cache_control})}if(Array.isArray(a.messages)){let b=null;for(let c=a.messages.length-1;c>=0;c--){let d=a.messages[c];if(Array.isArray(d.content)){for(let a of d.content)delete a.cache_control;b||d.role!==e.z7.ASSISTANT||(b=q(d))}}if(!b)for(let c=a.messages.length-1;c>=0&&!b;c--)b=q(a.messages[c])}return a}function s(a,b=null,c=null,m=null,n=null,p=null){if(i.xq[b]?.quirks?.dropOutputConfig&&delete a.output_config,a.max_tokens){let c=(0,j.nl)(b,a.model).maxOutput||k.Uc;a.max_tokens>c&&(a.max_tokens=c),a.thinking?.type==="enabled"&&a.thinking.budget_tokens&&a.thinking.budget_tokens>=a.max_tokens&&(a.max_tokens=Math.min(a.thinking.budget_tokens+1024,c),a.thinking.budget_tokens>=a.max_tokens&&(a.thinking.budget_tokens=Math.max(1024,a.max_tokens-1024)))}if(a.system&&Array.isArray(a.system)&&(a.system=a.system.map((b,c)=>{let{cache_control:d,...e}=b;return c===a.system.length-1?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e})),a.messages&&Array.isArray(a.messages)){let c=a.messages.length,f=[];for(let b=0;b<c;b++){let d=a.messages[b];if(Array.isArray(d.content))for(let a of d.content)delete a.cache_control;(b===c-1&&d.role===e.z7.ASSISTANT||"string"==typeof d.content&&d.content.trim()||Array.isArray(d.content)&&d.content.some(a=>a.type===e.R4.TEXT&&a.text?.trim()||a.type===e.R4.TOOL_USE||a.type===e.R4.TOOL_RESULT||a.type===e.R4.IMAGE||a.type===e.R4.DOCUMENT))&&f.push(d)}f=function(a){if(0===a.length)return a;for(let b of a)if(b.role===e.z7.ASSISTANT&&Array.isArray(b.content)&&b.content.some(a=>a.type===e.R4.TOOL_USE)){let a=[],c=!1;for(let d of b.content)d.type===e.R4.TOOL_USE?(c=!0,a.push(d)):d.type===e.R4.THINKING||d.type===e.R4.REDACTED_THINKING?a.push(d):c||a.push(d);b.content=a}let b=[];for(let c of a){let a=b[b.length-1];if(a&&a.role===c.role){let b=Array.isArray(a.content)?a.content:[{type:e.R4.TEXT,text:a.content}],d=Array.isArray(c.content)?c.content:[{type:e.R4.TEXT,text:c.content}];a.content=[...b.filter(a=>a.type===e.R4.TOOL_RESULT),...d.filter(a=>a.type===e.R4.TOOL_RESULT),...b.filter(a=>a.type!==e.R4.TOOL_RESULT),...d.filter(a=>a.type!==e.R4.TOOL_RESULT)]}else{let a=Array.isArray(c.content)?c.content:[{type:e.R4.TEXT,text:c.content}];b.push({role:c.role,content:[...a]})}}for(let a=0;a<b.length;a++){let d=b[a];if(d.role!==e.z7.USER||!Array.isArray(d.content))continue;let f=b[a-1],g=new Set(f?.role===e.z7.ASSISTANT&&Array.isArray(f.content)?f.content.filter(a=>a.type===e.R4.TOOL_USE&&a.id).map(a=>a.id):[]),h=new Map,i=[];for(let a of d.content){var c;if(a.type!==e.R4.TOOL_RESULT){i.push(a);continue}if(g.has(a.tool_use_id)&&!h.has(a.tool_use_id)){h.set(a.tool_use_id,a);continue}let b="string"==typeof(c=a.content)?c:(Array.isArray(c)?c:[c]).flatMap(a=>"string"==typeof a?[a]:a?.type===e.R4.TEXT&&"string"==typeof a.text?[a.text]:[]).join("\n");i.push({type:e.R4.TEXT,text:`[Unpaired tool result ${a.tool_use_id||"unknown"}]${b?`
|
|
23
|
-
${b}`:""}`})}d.content=[...[...g].map(a=>h.get(a)||{type:e.R4.TOOL_RESULT,tool_use_id:a,content:""}),...i]}return b}(f),a.messages=f,l(a,
|
|
22
|
+
[CommandCode error: ${c}]`,h=0===b.chunkIndex?{role:f.z7.ASSISTANT,content:g}:{content:g};b.chunkIndex++,e.push(l(b,h)),e.push(l(b,{},f.bC.STOP))}}return e.length?e:null}(0,d.kz)(e.h.COMMANDCODE,e.h.OPENAI,null,n)},9562:(a,b,c)=>{function d(a){if("string"!=typeof a)return null;let b=a.trim();if(!b)return null;if(/^\d+(\.\d+)?s$/.test(b))return Math.round(1e3*parseFloat(b));let c=b.match(/(\d+(?:\.\d+)?)(h|m|s|ms)/g);if(!c)return null;let d={h:36e5,m:6e4,s:1e3,ms:1},e=0;for(let a of c){let[,b,c]=a.match(/(\d+(?:\.\d+)?)(h|m|s|ms)/);e+=parseFloat(b)*d[c]}return Math.round(e)}function e(a,b=Date.now()){let c={resetsAtMs:null,reason:null,model:null,retryAfter:null};if(!a)return c;let f=a;if("string"==typeof a)try{f=JSON.parse(a)}catch{return c}let g=f?.error?.details;if(!Array.isArray(g))return c;let h=null,i=null,j=null,k=null;for(let a of g)if(a?.["@type"]==="type.googleapis.com/google.rpc.ErrorInfo"){i=a.reason||i,j=a.metadata?.model||j;let c=a.metadata?.quotaResetTimeStamp;if(!h&&c){let a=new Date(c).getTime();Number.isFinite(a)&&a>b&&(h=a)}if(!h){let c=d(a.metadata?.quotaResetDelay);c>0&&(h=b+c)}}else a?.["@type"]==="type.googleapis.com/google.rpc.RetryInfo"&&a?.retryDelay&&(k=a.retryDelay);if(!h&&k){let a=d(k);a>0&&(h=b+a)}return{resetsAtMs:h,reason:i,model:j,retryAfter:k}}c.d(b,{k:()=>e})},10089:(a,b,c)=>{c.d(b,{Az:()=>g,F5:()=>i,fO:()=>k,kR:()=>h});var d=c(55511),e=c(28730),f=c(92675);function g(a){let b=a.tools;if(!b||0===b.length)return{body:a,toolNameMap:null};let c=a=>`${a}${e.uR}`,d=new Map,f=new Set,g=[];for(let a of b){if(a.type){g.push(a);continue}let b=c(a.name);d.set(b,a.name),f.add(a.name),g.push({...a,name:b})}let h=[...g,...j],i=a.messages?.map(a=>{if(!Array.isArray(a.content))return a;let b=a.content.map(a=>"tool_use"===a.type?{...a,name:c(a.name)}:a);return{...a,content:b}}),k={...a,tools:h,messages:i||a.messages};return a.tool_choice?.type==="tool"&&f.has(a.tool_choice.name)&&(k.tool_choice={...a.tool_choice,name:c(a.tool_choice.name)}),{body:k,toolNameMap:d.size>0?d:null}}function h(a,b){if(!b?.size||!Array.isArray(a?.content))return a;let c=a.content.map(a=>a?.type==="tool_use"&&b.has(a.name)?{...a,name:b.get(a.name)}:a);return{...a,content:c}}function i(a,b){if(!b?.size||!a||"object"!=typeof a||"content_block_start"!==a.type)return a;let c=a.content_block;if(c?.type!=="tool_use"||"string"!=typeof c.name)return a;let d=b.get(c.name);return d?{...a,content_block:{...c,name:d}}:a}let j=[{name:"Task",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskOutput",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskStop",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskCreate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskGet",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskUpdate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskList",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Bash",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Glob",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Grep",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Read",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Edit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Write",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"NotebookEdit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebFetch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebSearch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"AskUserQuestion",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Skill",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"EnterPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"ExitPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}}];function k(a,b,c){var e;let g,h,i,j,k,l,m;if(!b||!b.includes("sk-ant-oat"))return a;let n={...a},o={type:"text",text:(g=JSON.stringify(a),h=(0,d.createHash)("sha256").update(g).digest("hex").slice(0,5),i=(0,d.randomBytes)(2).toString("hex").slice(0,3),`x-anthropic-billing-header: cc_version=${f.t4}.${i}; cc_entrypoint=sdk-cli; cch=${h};`)};return Array.isArray(n.system)?n.system[0]?.text?.startsWith("x-anthropic-billing-header:")||(n.system=[o,...n.system]):"string"==typeof n.system?n.system=[o,{type:"text",text:n.system}]:n.system=[o],n.metadata?.user_id||(n.metadata={...n.metadata,user_id:(j=b?(0,d.createHash)("sha256").update(`device:${b}`).digest("hex"):(0,d.randomBytes)(32).toString("hex"),l=b?(e=`account:${b}`,k=(0,d.createHash)("sha256").update(e).digest("hex"),`${k.slice(0,8)}-${k.slice(8,12)}-4${k.slice(13,16)}-${(3&parseInt(k[16],16)|8).toString(16)}${k.slice(17,20)}-${k.slice(20,32)}`):(0,d.randomUUID)(),m=c||(0,d.randomUUID)(),`{"device_id":"${j}","account_uuid":"${l}","session_id":"${m}"}`)}),n}},10640:(a,b,c)=>{c.d(b,{C5:()=>l,SF:()=>k,eG:()=>e,fH:()=>i});let d=/^[a-zA-Z0-9_-]+$/;function e(a){return void 0===a?`call_${Date.now()}`:`call_${a}_${Date.now()}`}function f(a=0,b=0,c=""){let d="string"==typeof c&&c?`_${c.replace(/[^a-zA-Z0-9_-]/g,"")}`:"";return`call_msg${a}_tc${b}${d}`}function g(a){if(!a||"string"!=typeof a)return null;let b=a.replace(/[^a-zA-Z0-9_-]/g,"");return b.length>0?b:null}function h(a,b,c){if(a){let c=g(a);if(c){let a=b.indexOf(c);return -1!==a&&b.splice(a,1),c}}return b.length>0?b.shift():c()}function i(a){if(!a.messages||!Array.isArray(a.messages))return a;let b=[];for(let c=0;c<a.messages.length;c++){let e=a.messages[c];if(null!==e&&"object"==typeof e){if("assistant"===e.role&&e.tool_calls&&Array.isArray(e.tool_calls))for(let a=0;a<e.tool_calls.length;a++){let b=e.tool_calls[a];if(null!==b&&"object"==typeof b){if(!b.id||!d.test(b.id)){let d=g(b.id);b.id=d||f(c,a,b.function?.name)}b.type||(b.type="function"),b.function?.arguments&&"string"!=typeof b.function.arguments&&(b.function.arguments=JSON.stringify(b.function.arguments))}}if(Array.isArray(e.content))for(let a=0;a<e.content.length;a++){let b=e.content[a];if(null!==b&&"object"==typeof b&&"tool_use"===b.type&&b.id&&!d.test(b.id)){let d=g(b.id);b.id=d||f(c,a,b.name)}}if("assistant"===e.role){b=j(e);continue}if("tool"===e.role&&(e.tool_call_id=h(e.tool_call_id,b,()=>f(c,0))),Array.isArray(e.content))for(let a=0;a<e.content.length;a++){let d=e.content[a];"tool_result"===d.type&&(d.tool_use_id=h(d.tool_use_id,b,()=>f(c,a)))}}}return a}function j(a){if("assistant"!==a.role)return[];let b=[];if(a.tool_calls&&Array.isArray(a.tool_calls))for(let c of a.tool_calls)c.id&&b.push(c.id);if(Array.isArray(a.content))for(let c of a.content)"tool_use"===c.type&&c.id&&b.push(c.id);return b}function k(a){if(!a.messages||!Array.isArray(a.messages))return a;let b=a.messages.some(a=>Array.isArray(a?.content)&&a.content.some(a=>a?.type==="tool_use"||a?.type==="tool_result"))||!!a.system,c=[],d=!1;for(let e=0;e<a.messages.length;e++){let f=a.messages[e],g=a.messages[e+1];c.push(f);let h=j(f);if(0!==h.length&&(!g||!function(a,b){if(!a||!b.length)return!1;if("tool"===a.role&&a.tool_call_id)return b.includes(a.tool_call_id);if("user"===a.role&&Array.isArray(a.content)){for(let c of a.content)if("tool_result"===c.type&&b.includes(c.tool_use_id))return!0}return!1}(g,h)))for(let a of(d=!0,h))b?c.push({role:"user",content:[{type:"tool_result",tool_use_id:a,content:"[No response received]"}]}):c.push({role:"tool",tool_call_id:a,content:"[No response received]"})}return d&&(a.messages=c),a}function l(a){return Array.isArray(a)?a.map(a=>a?.type?a:{...a,type:"custom"}):a}},12828:(a,b,c)=>{function d(a,b){}c.d(b,{T:()=>e,s:()=>d});let e=!1},17717:(a,b,c)=>{c.d(b,{SZ:()=>n,Tz:()=>k,jJ:()=>l,oF:()=>m});var d=c(4630),e=c(92675);let f={baseUrl:e.Es},g={baseUrl:e.ky};function h(a){return"string"==typeof a&&a.startsWith("openai-compatible-")}function i(a){return"string"==typeof a&&a.startsWith("anthropic-compatible-")}function j(a){return h(a)&&a.includes("responses")?"responses":"chat"}function k(a){if(a.input&&(Array.isArray(a.input)||"string"==typeof a.input)&&!a.messages)return"openai-responses";if(a.request?.contents&&"antigravity"===a.userAgent)return"antigravity";if(a.contents&&Array.isArray(a.contents))return"gemini";if(a.stream_options||a.response_format||void 0!==a.logprobs||void 0!==a.top_logprobs||void 0!==a.n||void 0!==a.presence_penalty||void 0!==a.frequency_penalty||a.logit_bias||a.user)return"openai";if(a.messages&&Array.isArray(a.messages)){let b=a.messages[0];if(b?.content&&Array.isArray(b.content)){let c=b.content[0];if(c?.type==="text"&&!a.model?.includes("/")){if(a.system||a.anthropic_version)return"claude";let c=b.content.some(a=>"image"===a.type&&a.source?.type==="base64"),d=b.content.some(a=>"image_url"===a.type&&a.image_url?.url);if(c)return"claude";if(d)return"openai";if(b.content.some(a=>"tool_use"===a.type||"tool_result"===a.type))return"claude"}}if(void 0!==a.system||a.anthropic_version)return"claude"}return"openai"}function l(a){return h(a)?"responses"===j(a)?"openai-responses":"openai":i(a)?"claude":function(a){if(h(a)){let b=j(a);return{...d.xq.openai,format:"responses"===b?"openai-responses":"openai",baseUrl:f.baseUrl}}return i(a)?{...d.xq.anthropic,format:"claude",baseUrl:g.baseUrl}:d.xq[a]||d.xq.openai}(a).format||"openai"}function m(a,b){let c=d.xq[a],e=c?.transports;return Array.isArray(e)&&e.length&&e.find(a=>a.format===b)||null}function n(a){return!function(a){let b=a.messages||a.contents;if(!b?.length)return!0;let c=b[b.length-1];return c?.role==="user"}(a)&&delete a.thinking,a}},22095:(a,b,c)=>{c.d(b,{Ww:()=>h,fP:()=>f,yx:()=>g});let d="google",e="thought_signature";function f(a){if(!a||"object"!=typeof a)return null;let b=a[i];if(b&&"object"==typeof b){let a=b[d];if(a&&"object"==typeof a){let b=a[e];if("string"==typeof b&&b.length>0)return b}}let c=a[e];return"string"==typeof c&&c.length>0?c:null}function g(a,b){if(!a||"object"!=typeof a||!b)return a;let c=a[i]||{},f=c[d]||{};return f[e]=b,c[d]=f,a[i]=c,a}function h(a){if(!a||"object"!=typeof a)return null;let b=a.thoughtSignature||a.thought_signature;return"string"==typeof b&&b.length>0?b:null}let i="extra_content"},22208:(a,b,c)=>{c.d(b,{B:()=>e,V:()=>f});var d=c(18226);function e(a,b=!1){return b?{role:d.z7.ASSISTANT,reasoning_content:a}:{reasoning_content:a}}function f(a){if(!a||"object"!=typeof a)return"";if("string"==typeof a.reasoning_content&&a.reasoning_content)return a.reasoning_content;if("string"==typeof a.reasoning&&a.reasoning)return a.reasoning;let b=a.reasoning_details;return Array.isArray(b)?b.map(a=>"string"==typeof a?a:a?.text||a?.content||"").join(""):""}},25830:(a,b,c)=>{c.d(b,{_W:()=>t,ui:()=>r,Bz:()=>u});var d=c(6499),e=c(18226);c(7259);var f=c(10089),g=c(91576);function h(a){let b=function(a){let b=(a||"").trim();if(!b)return"";let c=b.indexOf("#");return c>=0?b.slice(c+1).trim():b}(a);if(!b||b.length>0x2000000)return!1;try{if("E"===b[0]){let a=Buffer.from(b,"base64");return a.length>0&&18===a[0]}if("R"===b[0]){let a=Buffer.from(b,"base64");if(!a.length||69!==a[0])return!1;let c=Buffer.from(a.toString(),"base64");return c.length>0&&18===c[0]}return!1}catch{return!1}}var i=c(39141),j=c(11847),k=c(60290);function l(a,b=null){var c;if(!Array.isArray(a?.messages)||"preserve"===String(function(a,b){if(!a)return null;if("function"==typeof a.get)return a.get(b);let c=Object.entries(a).find(([a])=>a.toLowerCase()===b),d=c?.[1];return Array.isArray(d)?d[0]:d}(b,"x-9router-assistant-prefill")||"").toLowerCase())return a;let d=a.messages.at(-1);if(d?.role!==e.z7.ASSISTANT)return a;let f=Array.isArray(d.content)?d.content.filter(a=>(a?.type===e.R4.TOOL_USE||a?.type===e.R4.SERVER_TOOL_USE)&&a.id):[];return f.length>0?(a.messages.push({role:e.z7.USER,content:f.map(a=>({type:e.R4.TOOL_RESULT,tool_use_id:a.id,is_error:!0,content:"Tool execution was not completed before this request continued."}))}),a):(("string"==typeof(c=d.content)?!!c.trim():Array.isArray(c)&&c.some(a=>a?.type===e.R4.TEXT&&a.text?.trim()))?a.messages.push({role:e.z7.USER,content:[{type:e.R4.TEXT,text:"Continue from the assistant response above without repeating it."}]}):a.messages.pop(),a)}function m(a){if(!Array.isArray(a))return -1;for(let b=a.length-1;b>=0;b--)if(a[b]?.defer_loading!==!0)return b;return -1}let n=/haiku/i,o=["cc/","claude/"];function p(a){let b={type:e.R4.THINKING,thinking:"."};return"deepseek"!==a&&(b.signature=d.xr),b}let q=/^srvtoolu_[a-zA-Z0-9_]+$/;function r(a,b="",c=null){if(!a||"object"!=typeof a)return a;if(a.thinking?.type==="adaptive"&&n.test(b)&&(a.thinking={type:"enabled",budget_tokens:1e4}),n.test(b)&&a.output_config?.effort!=null&&(delete a.output_config.effort,0===Object.keys(a.output_config).length&&delete a.output_config),Array.isArray(a.messages)){let b=[],c=[];for(let d of a.messages){if(d.role===e.z7.SYSTEM){let a="string"==typeof d.content?d.content:Array.isArray(d.content)?d.content.map(a=>"string"==typeof a?a:a?.text||"").join("\n"):"";a.trim()&&b.push({type:e.R4.TEXT,text:a});continue}c.push(d)}if(b.length>0){let d=Array.isArray(a.system)?a.system:"string"==typeof a.system&&a.system.trim()?[{type:"text",text:a.system}]:[];a.system=[...d,...b],a.messages=c}}var d=a.tools;if(Array.isArray(d))for(let a of d){if(!a||"object"!=typeof a||"string"!=typeof a.model)continue;let b=o.find(b=>a.model.startsWith(b));b&&(a.model=a.model.slice(b.length))}let f=a.thinking?.type==="enabled",g=new Set;if(Array.isArray(a.messages))for(let b of a.messages){if(b.role!==e.z7.ASSISTANT||!Array.isArray(b.content))continue;let a=!1,c=!1,d=[];for(let f of b.content){if(f.type===e.R4.THINKING||f.type===e.R4.REDACTED_THINKING){h(f.signature)&&(c=!0,d.push(f));continue}if(f?.type===e.R4.SERVER_TOOL_USE&&!q.test(String(f.id??""))){null!=f.id&&g.add(String(f.id));continue}f.type===e.R4.TOOL_USE&&(a=!0),d.push(f)}b.content=d,f&&!c&&a&&b.content.unshift(p("claude"))}if(g.size>0&&Array.isArray(a.messages))for(let b of a.messages){if(!Array.isArray(b.content))continue;let a=b.content.filter(a=>!((a?.type===e.R4.TOOL_RESULT||a?.type===e.R4.WEB_SEARCH_TOOL_RESULT)&&g.has(String(a.tool_use_id??""))));a.length!==b.content.length&&(b.content=a)}return Array.isArray(a.messages)&&(a.messages=a.messages.filter(a=>"string"==typeof a.content?a.content.trim().length>0:!Array.isArray(a.content)||(a.content=a.content.filter(a=>!(a?.type===e.R4.TEXT&&!String(a.text??"").trim())),a.content.length>0))),l(a,c),a}function s(a){if(!Array.isArray(a?.content))return!1;for(let b=a.content.length-1;b>=0;b--){let c=a.content[b];if("object"==typeof c&&null!==c&&c.type!==e.R4.THINKING&&c.type!==e.R4.REDACTED_THINKING)return c.cache_control={type:"ephemeral"},!0}return!1}function t(a){if(!a||"object"!=typeof a)return a;if(Array.isArray(a.system)){let b=a.system.length-1;a.system.forEach((a,c)=>{"object"==typeof a&&null!==a&&(c===b?a.cache_control={type:"ephemeral",ttl:"1h"}:delete a.cache_control)})}if(Array.isArray(a.tools)){let b=m(a.tools);a.tools.forEach((a,c)=>{c===b?a.cache_control={type:"ephemeral",ttl:"1h"}:delete a.cache_control})}if(Array.isArray(a.messages)){let b=null;for(let c=a.messages.length-1;c>=0;c--){let d=a.messages[c];if(Array.isArray(d.content)){for(let a of d.content)delete a.cache_control;b||d.role!==e.z7.ASSISTANT||(b=s(d))}}if(!b)for(let c=a.messages.length-1;c>=0&&!b;c--)b=s(a.messages[c])}return a}function u(a,b=null,c=null,n=null,o=null,q=null){if(i.xq[b]?.quirks?.dropOutputConfig&&delete a.output_config,a.max_tokens){let c=(0,j.getCapabilitiesForModel)(b,a.model).maxOutput||k.Uc;a.max_tokens>c&&(a.max_tokens=c),a.thinking?.type==="enabled"&&a.thinking.budget_tokens&&a.thinking.budget_tokens>=a.max_tokens&&(a.max_tokens=Math.min(a.thinking.budget_tokens+1024,c),a.thinking.budget_tokens>=a.max_tokens&&(a.thinking.budget_tokens=Math.max(1024,a.max_tokens-1024)))}if(a.system&&Array.isArray(a.system)&&(a.system=a.system.map((b,c)=>{let{cache_control:d,...e}=b;return c===a.system.length-1?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e})),a.messages&&Array.isArray(a.messages)){let c=a.messages.length,f=[];for(let b=0;b<c;b++){let d=a.messages[b];if(Array.isArray(d.content))for(let a of d.content)delete a.cache_control;(b===c-1&&d.role===e.z7.ASSISTANT||"string"==typeof d.content&&d.content.trim()||Array.isArray(d.content)&&d.content.some(a=>a.type===e.R4.TEXT&&a.text?.trim()||a.type===e.R4.TOOL_USE||a.type===e.R4.TOOL_RESULT||a.type===e.R4.IMAGE||a.type===e.R4.DOCUMENT))&&f.push(d)}f=function(a){if(0===a.length)return a;for(let b of a)if(b.role===e.z7.ASSISTANT&&Array.isArray(b.content)&&b.content.some(a=>a.type===e.R4.TOOL_USE)){let a=[],c=!1;for(let d of b.content)d.type===e.R4.TOOL_USE?(c=!0,a.push(d)):d.type===e.R4.THINKING||d.type===e.R4.REDACTED_THINKING?a.push(d):c||a.push(d);b.content=a}let b=[];for(let c of a){let a=b[b.length-1];if(a&&a.role===c.role){let b=Array.isArray(a.content)?a.content:[{type:e.R4.TEXT,text:a.content}],d=Array.isArray(c.content)?c.content:[{type:e.R4.TEXT,text:c.content}];a.content=[...b.filter(a=>a.type===e.R4.TOOL_RESULT),...d.filter(a=>a.type===e.R4.TOOL_RESULT),...b.filter(a=>a.type!==e.R4.TOOL_RESULT),...d.filter(a=>a.type!==e.R4.TOOL_RESULT)]}else{let a=Array.isArray(c.content)?c.content:[{type:e.R4.TEXT,text:c.content}];b.push({role:c.role,content:[...a]})}}for(let a=0;a<b.length;a++){let d=b[a];if(d.role!==e.z7.USER||!Array.isArray(d.content))continue;let f=b[a-1],g=new Set(f?.role===e.z7.ASSISTANT&&Array.isArray(f.content)?f.content.filter(a=>a.type===e.R4.TOOL_USE&&a.id).map(a=>a.id):[]),h=new Map,i=[];for(let a of d.content){var c;if(a.type!==e.R4.TOOL_RESULT){i.push(a);continue}if(g.has(a.tool_use_id)&&!h.has(a.tool_use_id)){h.set(a.tool_use_id,a);continue}let b="string"==typeof(c=a.content)?c:(Array.isArray(c)?c:[c]).flatMap(a=>"string"==typeof a?[a]:a?.type===e.R4.TEXT&&"string"==typeof a.text?[a.text]:[]).join("\n");i.push({type:e.R4.TEXT,text:`[Unpaired tool result ${a.tool_use_id||"unknown"}]${b?`
|
|
23
|
+
${b}`:""}`})}d.content=[...[...g].map(a=>h.get(a)||{type:e.R4.TOOL_RESULT,tool_use_id:a,content:""}),...i]}return b}(f),a.messages=f,l(a,o);let g=(f=a.messages)[f.length-1],i=g?.role===e.z7.USER,j=a.thinking?.type==="enabled"&&i,k=!1;for(let a=f.length-1;a>=0;a--){let c=f[a];if(c.role===e.z7.ASSISTANT&&Array.isArray(c.content)){if(!k&&c.content.length>0){for(let a=c.content.length-1;a>=0;a--){let b=c.content[a];if(b.type!==e.R4.THINKING&&b.type!==e.R4.REDACTED_THINKING){b.cache_control={type:"ephemeral"};break}}k=!0}if("claude"===b||b?.startsWith("anthropic-compatible")||"deepseek"===b){let a=!1,f=!1,g="claude"===b,i="deepseek"===b,k=[];for(let b of c.content){if(b.type===e.R4.THINKING||b.type===e.R4.REDACTED_THINKING){g?h(b.signature)&&(f=!0,k.push(b)):(i||(b.signature=d.xr),f=!0,k.push(b));continue}b.type===e.R4.TOOL_USE&&(a=!0),k.push(b)}c.content=k,j&&!f&&a&&c.content.unshift(p(b))}}}}if(a.tools&&Array.isArray(a.tools)){"claude"!==b&&(a.tools=a.tools.filter(a=>!a.type||"function"===a.type).map(a=>{if(a.function)return{name:a.function.name,description:a.function.description,input_schema:a.function.parameters};let{type:b,...c}=a;return c}));let c=m(a.tools);a.tools=a.tools.map((a,b)=>{let{cache_control:d,...e}=a;return b===c?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e}),0===a.tools.length&&(delete a.tools,delete a.tool_choice)}if(("claude"===b||b?.startsWith("anthropic-compatible"))&&c){let b=q||(0,g.oV)({headers:o,body:a,connectionId:n,scope:"claude"});a=(0,f.fO)(a,c,b)}return a}},25896:(a,b,c)=>{c.d(b,{b1:()=>j,rP:()=>i});let d=["blocks","model"],e="9router:claude-thinking:v1:";function f(a,b){return a&&"object"==typeof a&&!Array.isArray(a)&&Object.keys(a).sort().join("\0")===b.slice().sort().join("\0")}function g(a){return a?.type==="thinking"&&f(a,["signature","thinking","type"])&&"string"==typeof a.thinking&&"string"==typeof a.signature&&a.signature?{type:"thinking",thinking:a.thinking,signature:a.signature}:a?.type==="redacted_thinking"&&f(a,["data","type"])&&"string"==typeof a.data&&a.data?{type:"redacted_thinking",data:a.data}:null}function h(a,b){if(!f(a,d)||a.model!==b||!Array.isArray(a.blocks)||0===a.blocks.length)return null;let c=a.blocks.map(g);return c.every(Boolean)?c:null}function i(a,b){if("string"!=typeof a||!a||!Array.isArray(b))return null;let c=h({model:a,blocks:b},a);if(!c)return null;try{let b=Buffer.from(JSON.stringify({model:a,blocks:c}),"utf8").toString("base64url");return b.length<=2097152?e+b:null}catch{return null}}function j(a,b){if("string"!=typeof a||"string"!=typeof b||!b||!a.startsWith(e))return null;let c=a.slice(e.length);if(!c||c.length>2097152||!/^[A-Za-z0-9_-]+$/.test(c))return null;try{let a=Buffer.from(c,"base64url");if(a.toString("base64url")!==c)return null;return h(JSON.parse(a.toString("utf8")),b)}catch{return null}}},29229:(a,b,c)=>{c.d(b,{C:()=>p,p:()=>n});var d=c(2547),e=c(19956),f=c(28730),g=c(7259),h=c(27980),i=c(50186),j=c(48644),k=c(18226),l=c(11847),m=c(25896);function n(a,b,c){let d=new Map,e=(0,l.getCapabilitiesForModel)(null,a).maxOutput||void 0,n={model:a,max_tokens:(0,g.M)(b,e),stream:c};void 0!==b.temperature&&(n.temperature=b.temperature),n.messages=[];let p=[];if(b.messages&&Array.isArray(b.messages)){let c;for(let a of b.messages)a.role===k.z7.SYSTEM&&p.push("string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n"));let e=b.messages.filter(a=>a.role!==k.z7.SYSTEM),f=[],g=()=>{c&&f.length>0&&(n.messages.push({role:c,content:f}),f=[])};for(let b of e){let e=b.role===k.z7.USER||b.role===k.z7.TOOL?k.z7.USER:k.z7.ASSISTANT,l=function(a,b=new Map,c=""){let d=[];if(a.role===k.z7.TOOL)d.push({type:k.R4.TOOL_RESULT,tool_use_id:a.tool_call_id,content:a.content});else if(a.role===k.z7.USER){if("string"==typeof a.content)a.content&&d.push({type:k.R4.TEXT,text:a.content});else if(Array.isArray(a.content)){for(let b of a.content)if(b.type===k.x4.TEXT&&b.text)d.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_RESULT)d.push({type:k.R4.TOOL_RESULT,tool_use_id:b.tool_use_id,content:b.content,...b.is_error&&{is_error:b.is_error}});else if(b.type===k.x4.IMAGE_URL){let a=b.image_url.url,c=(0,i.W$)(a);c?d.push({type:k.R4.IMAGE,source:{type:"base64",media_type:c.mimeType,data:c.base64}}):(a.startsWith("http://")||a.startsWith("https://"))&&d.push({type:k.R4.IMAGE,source:{type:"url",url:a}})}else if(b.type===k.x4.IMAGE&&b.source)d.push({type:k.R4.IMAGE,source:b.source});else if(b.type===k.x4.FILE&&b.file){let a=b.file.file_data,c=(0,i.W$)(a);c&&"application/pdf"===c.mimeType&&d.push({type:k.R4.DOCUMENT,source:{type:"base64",media_type:c.mimeType,data:c.base64}})}}}else if(a.role===k.z7.ASSISTANT){let b=Array.isArray(a.tool_calls)&&a.tool_calls.length>0,e="string"==typeof a.encrypted_content&&a.encrypted_content||"string"==typeof a.reasoning_encrypted_content&&a.reasoning_encrypted_content||"string"==typeof a.reasoning?.encrypted_content&&a.reasoning.encrypted_content||"",f=b?(0,m.b1)(e,c):null;if(f&&d.push(...f),Array.isArray(a.content)){for(let b of a.content)if(b.type===k.x4.TEXT&&b.text)d.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_USE)d.push({type:k.R4.TOOL_USE,id:b.id,name:b.name,input:b.input});else if((b.type===k.R4.THINKING||b.type===k.R4.REDACTED_THINKING)&&!f){let{cache_control:a,...c}=b;d.push(c)}}else if(a.content){let b="string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n");b&&d.push({type:k.R4.TEXT,text:b})}if(a.tool_calls&&Array.isArray(a.tool_calls)){for(let b of a.tool_calls)if(b.type===k.x4.FUNCTION){let a=""+b.function.name;d.push({type:k.R4.TOOL_USE,id:b.id,name:a,input:(0,h.N)(b.function.arguments,b.function.arguments)})}}}return d}(b,d,a),o=l.some(a=>a.type===k.R4.TOOL_USE);if(l.some(a=>a.type===k.R4.TOOL_RESULT)){let a=l.filter(a=>a.type===k.R4.TOOL_RESULT),b=l.filter(a=>a.type!==k.R4.TOOL_RESULT);g(),a.length>0&&n.messages.push({role:k.z7.USER,content:a}),b.length>0&&(c=e,f.push(...b));continue}c!==e&&(g(),c=e),f.push(...l),o&&g()}g();for(let a=n.messages.length-1;a>=0;a--){let b=n.messages[a];if(b.role===k.z7.ASSISTANT&&Array.isArray(b.content)&&b.content.length>0){let a=[k.R4.TEXT,k.R4.TOOL_USE,k.R4.TOOL_RESULT,k.R4.IMAGE];for(let c=b.content.length-1;c>=0;c--){let d=b.content[c];if(a.includes(d.type)){d.cache_control={type:"ephemeral"};break}}break}}}if(b.response_format){let a=b.response_format;if("json_schema"===a.type&&a.json_schema?.schema){let b=JSON.stringify(a.json_schema.schema,null,2);p.push(`You must respond with valid JSON that strictly follows this JSON schema:
|
|
24
24
|
\`\`\`json
|
|
25
25
|
${b}
|
|
26
26
|
\`\`\`
|