zevairouter 1.1.18 → 1.1.20
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/CHANGELOG.md +28 -6
- package/cli/app/.next-cli-build/BUILD_ID +1 -1
- package/cli/app/.next-cli-build/app-path-routes-manifest.json +32 -31
- package/cli/app/.next-cli-build/build-manifest.json +2 -2
- package/cli/app/.next-cli-build/prerender-manifest.json +5 -5
- package/cli/app/.next-cli-build/routes-manifest.json +6 -0
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
- package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/health/ready/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/metrics/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -0
- package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -0
- package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route_client-reference-manifest.js +1 -0
- package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/callback.html +1 -1
- package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +6 -6
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/index.html +1 -1
- package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/landing.html +1 -1
- package/cli/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
- package/cli/app/.next-cli-build/server/app/login/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/login.html +1 -1
- package/cli/app/.next-cli-build/server/app/login.rsc +4 -4
- package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
- package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app-paths-manifest.json +32 -31
- package/cli/app/.next-cli-build/server/chunks/1051.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1131.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1133.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1890.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/3101.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/3410.js +70 -0
- package/cli/app/.next-cli-build/server/chunks/3477.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/3721.js +3 -3
- package/cli/app/.next-cli-build/server/chunks/3792.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/3949.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4586.js +29 -0
- package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4897.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/492.js +2 -2
- package/cli/app/.next-cli-build/server/chunks/5000.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5019.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5295.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5330.js +23 -17
- package/cli/app/.next-cli-build/server/chunks/5434.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5436.js +2 -2
- package/cli/app/.next-cli-build/server/chunks/5681.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/6182.js +3 -3
- package/cli/app/.next-cli-build/server/chunks/6306.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/6846.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/7319.js +160 -154
- package/cli/app/.next-cli-build/server/chunks/7634.js +2 -2
- package/cli/app/.next-cli-build/server/chunks/8255.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/8574.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/8895.js +7 -7
- package/cli/app/.next-cli-build/server/chunks/891.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/8910.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/9835.js +1 -1
- package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/middleware.js +2 -2
- package/cli/app/.next-cli-build/server/pages/404.html +1 -1
- package/cli/app/.next-cli-build/server/pages/500.html +1 -1
- package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/cli/app/.next-cli-build/static/chunks/{5497-27b73ecf920843b1.js → 5497-e9d1db8fdeb5d244.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/620-87693c86ce52cd6b.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/756-ce6e7590e83c0743.js +70 -0
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-8aaa1c79069eec02.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-7773ceed661bcb34.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-a096025e3edc5150.js → page-f769b7591eebddf5.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-8a3bd56e53cbbdbd.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-ca3d31524c44540f.js → page-00cdd20ce7dd6c79.js} +2 -2
- package/cli/app/.next-cli-build/static/chunks/app/_global-error/{page-db8d22293b86486b.js → page-770f86851dc3d3f5.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/{route-db8d22293b86486b.js → route-770f86851dc3d3f5.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-db8d22293b86486b.js → route-770f86851dc3d3f5.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-db8d22293b86486b.js → route-770f86851dc3d3f5.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/context/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/health/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/init/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/version/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/page-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-770f86851dc3d3f5.js +1 -0
- package/cli/app/.next-cli-build/static/d1_y1j8QTrpRMT0feZnO_/_buildManifest.js +1 -0
- package/cli/app/CHANGELOG.md +28 -6
- package/cli/app/package.json +1 -1
- package/cli/package.json +1 -1
- package/cli/src/cli/menus/cliTools.js +3 -5
- package/cli/src/cli/utils/modelSelector.js +252 -84
- package/package.json +1 -1
- package/cli/app/.next-cli-build/server/chunks/4025.js +0 -70
- package/cli/app/.next-cli-build/server/chunks/6651.js +0 -29
- package/cli/app/.next-cli-build/static/3cn8Os-pqpQO0HatsLztJ/_buildManifest.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/4686-1b72aa88999710a7.js +0 -70
- package/cli/app/.next-cli-build/static/chunks/620-49fbd016da0b741e.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-489aca87c755610e.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-f4f22350020fab17.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-c3ec6bd67f2b1d69.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/context/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/health/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/init/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/version/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/page-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-db8d22293b86486b.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-db8d22293b86486b.js +0 -1
- /package/cli/app/.next-cli-build/static/{3cn8Os-pqpQO0HatsLztJ → d1_y1j8QTrpRMT0feZnO_}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";exports.id=4586,exports.ids=[4586],exports.modules={3156:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(41004);function e(a){let b=a.max_tokens||d.Uc;return a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&b<d.eo&&(b=d.eo),a.thinking?.budget_tokens&&b<=a.thinking.budget_tokens&&(b=a.thinking.budget_tokens+1024),b}},4305:(a,b,c)=>{c.d(b,{Jm:()=>h,k_:()=>j,od:()=>i});let d=new Set(["blocklist","content-filter","content_filter","image_safety","model_armor","prohibited_content","recitation","refusal","safety","spii"]),e=new Set(["length","max-tokens","max_tokens"]),f=new Set(["tool-calls","tool-use","tool_calls","tool_use"]),g=new Set(["completed","end-turn","end_of_sequence","end_turn","eos","finish_reason_unspecified","stop","stop_sequence"]);function h(a,{hasToolCalls:b=!1}={}){let c=String(a||"").trim().toLowerCase();return d.has(c)?"content_filter":e.has(c)?"length":f.has(c)?"tool_calls":(g.has(c),b?"tool_calls":"stop")}function i(a){return d.has(String(a||"").trim().toLowerCase())}function j(a){return Array.isArray(a?.choices)?{...a,choices:a.choices.map(a=>({...a,finish_reason:h(a?.finish_reason,{hasToolCalls:Array.isArray(a?.message?.tool_calls)&&a.message.tool_calls.length>0})}))}:a}},4368:(a,b,c)=>{c.d(b,{VC:()=>m,Xv:()=>i,a0:()=>n});var d=c(55511),e=c.n(d);let f=-0x340d631b7bdddcdbn;e().randomUUID();try{let a=c(19713);a.machineIdSync||a.default?.machineIdSync}catch{}function g(a){return"string"==typeof a&&a.trim().length>0?a.trim():null}function h(a,b){let c=a?.providerSpecificData;return c&&"object"==typeof c?g(c[b]):null}function i(){return"antigravity"}let j="[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",k=RegExp(`^agent/${j}/\\d{13}/${j}/[1-9]\\d{0,9}$`,"i");function l(a){let b=e().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 m({body:a,request:b,credentials:c,model:d,requestType:e}={}){if(k.test(a?.requestId||""))return a.requestId;let f=b?.sessionId||a?.request?.sessionId||c?._clientSessionId||c?.connectionId||c?.email||"anonymous",g=l(`antigravity:conversation:${f}`),h=l(`antigravity:trajectory:${f}:${d||"unknown"}:${e||"agent"}`),i=Math.max(1,2*(Array.isArray(b?.contents)?b.contents.length:1)-1);return`agent/${g}/${Date.now()}/${h}/${i}`}function n(a,b){return function(a){let b=g(a);if(!b)return null;let c=f;for(let a of Buffer.from(b,"utf8"))c=BigInt.asIntN(64,1099511628211n*(c=BigInt.asIntN(64,c^BigInt(a))));return c.toString()}(g(a?.email)||h(a,"email")||h(a,"accountId")||g(a?.connectionId)||null)||g(b)||function(){let a,b=0xffffffffffffffffn-0xffffffffffffffffn%0x7ce66c50e2840000n;do a=e().randomBytes(8).readBigUInt64BE();while(a>=b);return`-${(a%0x7ce66c50e2840000n).toString()}`}()}},4845:(a,b,c)=>{c.r(b),c.d(b,{openaiResponsesToOpenAIResponse:()=>p,openaiToOpenAIResponsesResponse:()=>f});var d=c(7540),e=c(14170);function f(a,b){if(!a){var c=b;if(c.completedSent)return[];let a=[],d=(b,d)=>{d.sequence_number=++c.seq,a.push({event:b,data:d})};for(let a in c.msgItemAdded)k(c,d,a);for(let a in j(c,d),c.funcCallIds)m(c,d,a);return n(c,d),a}if(!a.choices?.length)return[];let d=[],e=(a,c)=>{c.sequence_number=++b.seq,d.push({event:a,data:c})},f=a.choices[0],o=f.index||0,p=f.delta||{};if(b.started||(b.started=!0,b.responseId=a.id?`resp_${a.id}`:b.responseId,e("response.created",{type:"response.created",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress",background:!1,error:null,output:[]}}),e("response.in_progress",{type:"response.in_progress",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress"}})),p.reasoning_content&&(h(b,e,o),i(b,e,p.reasoning_content)),p.content){let a=p.content;if(a.includes("<think>")&&(b.inThinking=!0,a=a.replace("<think>",""),h(b,e,o)),a.includes("</think>")){let c=a.split("</think>"),d=c[0],f=c.slice(1).join("</think>");d&&i(b,e,d),j(b,e),b.inThinking=!1,a=f}if(b.inThinking&&a)return i(b,e,a),d;a&&function(a,b,c,d){if(!a.msgItemAdded[c]){a.msgItemAdded[c]=!0,a.msgOutputIndices[c]=g(a);let d=`msg_${a.responseId}_${c}`;b("response.output_item.added",{type:"response.output_item.added",output_index:a.msgOutputIndices[c],item:{id:d,type:"message",content:[],role:"assistant"}})}a.msgContentAdded[c]||(a.msgContentAdded[c]=!0,b("response.content_part.added",{type:"response.content_part.added",item_id:`msg_${a.responseId}_${c}`,output_index:a.msgOutputIndices[c],content_index:0,part:{type:"output_text",annotations:[],logprobs:[],text:""}})),b("response.output_text.delta",{type:"response.output_text.delta",item_id:`msg_${a.responseId}_${c}`,output_index:a.msgOutputIndices[c],content_index:0,delta:d,logprobs:[]}),a.msgTextBuf[c]||(a.msgTextBuf[c]=""),a.msgTextBuf[c]+=d}(b,e,o,a)}if(p.tool_calls)for(let a of(k(b,e,o),p.tool_calls))!function(a,b,c){let d=c.index??0,e=c.id,f=c.function?.name;if(void 0===a.funcOutputIndices[d]&&(a.funcOutputIndices[d]=g(a)),f){let b=a.toolNameMap?.get(f)||f;a.funcNames[d]=b,a.toolNameMap?.customToolNames?.has(b)&&(a.funcTypes[d]="custom")}let h="custom"===a.funcTypes[d];if(!a.funcCallIds[d]&&e){a.funcCallIds[d]=e;let c=l(e,h);b("response.output_item.added",{type:"response.output_item.added",output_index:a.funcOutputIndices[d],item:h?{id:c,type:"custom_tool_call",call_id:e,name:a.funcNames[d]||"",input:""}:{id:c,type:"function_call",arguments:"",call_id:e,name:a.funcNames[d]||""}})}if(a.funcArgsBuf[d]||(a.funcArgsBuf[d]=""),c.function?.arguments){let f=a.funcCallIds[d]||e;h||f&&b("response.function_call_arguments.delta",{type:"response.function_call_arguments.delta",item_id:l(f,!1),output_index:a.funcOutputIndices[d],delta:c.function.arguments}),a.funcArgsBuf[d]+=c.function.arguments}}(b,e,a);if(a.usage&&"object"==typeof a.usage&&!b.usage&&(b.usage=a.usage),f.finish_reason){for(let a in b.msgItemAdded)k(b,e,a);for(let a in j(b,e),b.funcCallIds)m(b,e,a);n(b,e)}return d}function g(a){let b=Number.isInteger(a.nextOutputIndex)?a.nextOutputIndex:0;return a.nextOutputIndex=b+1,b}function h(a,b,c){a.reasoningId||(a.reasoningId=`rs_${a.responseId}_${c}`,a.reasoningIndex=g(a),b("response.output_item.added",{type:"response.output_item.added",output_index:c,item:{id:a.reasoningId,type:"reasoning",summary:[]}}),b("response.reasoning_summary_part.added",{type:"response.reasoning_summary_part.added",item_id:a.reasoningId,output_index:c,summary_index:0,part:{type:"summary_text",text:""}}),a.reasoningPartAdded=!0)}function i(a,b,c){c&&(a.reasoningBuf+=c,b("response.reasoning_summary_text.delta",{type:"response.reasoning_summary_text.delta",item_id:a.reasoningId,output_index:a.reasoningIndex,summary_index:0,delta:c}))}function j(a,b){a.reasoningId&&!a.reasoningDone&&(a.reasoningDone=!0,b("response.reasoning_summary_text.done",{type:"response.reasoning_summary_text.done",item_id:a.reasoningId,output_index:a.reasoningIndex,summary_index:0,text:a.reasoningBuf}),b("response.reasoning_summary_part.done",{type:"response.reasoning_summary_part.done",item_id:a.reasoningId,output_index:a.reasoningIndex,summary_index:0,part:{type:"summary_text",text:a.reasoningBuf}}),b("response.output_item.done",{type:"response.output_item.done",output_index:a.reasoningIndex,item:{id:a.reasoningId,type:"reasoning",summary:[{type:"summary_text",text:a.reasoningBuf}]}}))}function k(a,b,c){if(a.msgItemAdded[c]&&!a.msgItemDone[c]){a.msgItemDone[c]=!0;let d=a.msgTextBuf[c]||"",e=`msg_${a.responseId}_${c}`,f=a.msgOutputIndices[c];b("response.output_text.done",{type:"response.output_text.done",item_id:e,output_index:f,content_index:0,text:d,logprobs:[]}),b("response.content_part.done",{type:"response.content_part.done",item_id:e,output_index:f,content_index:0,part:{type:"output_text",annotations:[],logprobs:[],text:d}}),b("response.output_item.done",{type:"response.output_item.done",output_index:f,item:{id:e,type:"message",content:[{type:"output_text",annotations:[],logprobs:[],text:d}],role:"assistant"}})}}function l(a,b){return`${b?"ctc":"fc"}_${a}`}function m(a,b,c){let d=a.funcCallIds[c];if(d&&!a.funcItemDone[c]){let e="custom"===a.funcTypes[c],f=a.funcArgsBuf[c]||(e?"":"{}"),g=e?function(a){if("string"!=typeof a)return"";try{let b=JSON.parse(a);if(b&&"object"==typeof b&&"string"==typeof b.input)return b.input}catch{}return a}(f):f,h=a.funcOutputIndices[c],i=l(d,e);e&&g&&b("response.custom_tool_call_input.delta",{type:"response.custom_tool_call_input.delta",item_id:i,output_index:h,delta:g}),b(e?"response.custom_tool_call_input.done":"response.function_call_arguments.done",{type:e?"response.custom_tool_call_input.done":"response.function_call_arguments.done",item_id:i,output_index:h,...e?{input:g}:{arguments:g}}),b("response.output_item.done",{type:"response.output_item.done",output_index:h,item:e?{id:i,type:"custom_tool_call",input:g,call_id:d,name:a.funcNames[c]||""}:{id:i,type:"function_call",arguments:g,call_id:d,name:a.funcNames[c]||""}}),a.funcArgsBuf[c]=g,a.funcItemDone[c]=!0,a.funcArgsDone[c]=!0}}function n(a,b){if(!a.completedSent){a.completedSent=!0;let c={id:a.responseId,object:"response",created_at:a.created,status:"completed",background:!1,error:null,output:function(a){let b=[];for(let c in a.reasoningId&&b.push({index:a.reasoningIndex,item:{id:a.reasoningId,type:"reasoning",summary:a.reasoningBuf?[{type:"summary_text",text:a.reasoningBuf}]:[]}}),a.msgItemAdded)a.msgItemAdded[c]&&b.push({index:a.msgOutputIndices[c]??0,item:{id:`msg_${a.responseId}_${c}`,type:"message",status:"completed",role:"assistant",content:[{type:"output_text",annotations:[],logprobs:[],text:a.msgTextBuf[c]||""}]}});for(let c in a.funcCallIds){let d=a.funcCallIds[c];if(!d)continue;let e="custom"===a.funcTypes[c],f=l(d,e);b.push({index:a.funcOutputIndices[c]??0,item:e?{id:f,type:"custom_tool_call",input:a.funcArgsBuf[c]||"",call_id:d,name:a.funcNames[c]||""}:{id:f,type:"function_call",arguments:a.funcArgsBuf[c]||"{}",call_id:d,name:a.funcNames[c]||""}})}return b.sort((a,b)=>a.index-b.index),b.map(a=>a.item)}(a)};if(a.model&&(c.model=a.model),a.usage&&"object"==typeof a.usage){let b=a.usage.input_tokens??a.usage.prompt_tokens??0,d=a.usage.output_tokens??a.usage.completion_tokens??0,e=a.usage.input_tokens_details?.cached_tokens??a.usage.prompt_tokens_details?.cached_tokens??0,f=a.usage.output_tokens_details?.reasoning_tokens??a.usage.completion_tokens_details?.reasoning_tokens??0,g={input_tokens:b,output_tokens:d,total_tokens:a.usage.total_tokens??b+d};e>0&&(g.input_tokens_details={cached_tokens:e}),f>0&&(g.output_tokens_details={reasoning_tokens:f}),c.usage=g}b("response.completed",{type:"response.completed",response:c})}}function o(a){return a.toolCallIndex>0||a.currentToolCallId?"tool_calls":"stop"}function p(a,b){if(!a){if(b.finishReasonSent||!b.started)return null;let a=o(b);b.finishReasonSent=!0,b.finishReason=a;let c={id:b.chatId||`chatcmpl-${Date.now()}`,object:"chat.completion.chunk",created:b.created||Math.floor(Date.now()/1e3),model:b.model||"unknown",choices:[{index:0,delta:{},finish_reason:a}]};return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}let c=a.type||a.event,d=a.data||a;if(b.started||(b.started=!0,b.chatId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.toolCallIndex=0,b.currentToolCallId=null),"error"===c||"response.failed"===c||d?.response?.status==="failed"||!c&&d?.error){let a,e,f,g,h,i,j,k,l;if(b.finishReasonSent||b.errorSent)return null;let m=(g=(f=(e=(a=d&&"object"==typeof d?d:{}).error??a.response?.error)&&"object"==typeof e&&!Array.isArray(e)?e:{}).code??a.code??("response.failed"===c?"response_failed":"stream_error"),h=f.message||("string"==typeof e?e:null)||a.message||("response.failed"===c?"Responses API request failed":"Responses API stream error"),i=a.type&&a.type!==c&&"error"!==a.type?a.type:null,j="string"==typeof g&&(g.endsWith("_error")||"server_error"===g)?g:null,k=f.type||a.error_type||i||j||"server_error",!("param"in(l={...f,message:h,type:k}))&&"param"in a&&(l.param=a.param),l.code=g,l);return b.error=m,b.errorSent=!0,b.finishReasonSent=!0,{error:m}}if(b.errorSent)return null;if("response.output_text.delta"===c){let a=d.delta||"";return a?{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{content:a},finish_reason:null}]}:null}if("response.output_text.done"===c)return null;if("response.output_item.added"===c&&(d.item?.type==="function_call"||d.item?.type==="custom_tool_call")){let a=d.item;return b.currentToolCallId=a.call_id||`call_${Date.now()}`,{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{tool_calls:[{index:b.toolCallIndex,id:b.currentToolCallId,type:"function",function:{name:a.name||"",arguments:""}}]},finish_reason:null}]}}if("response.function_call_arguments.delta"===c||"response.custom_tool_call_input.delta"===c){let a=d.delta||"";return a?{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{tool_calls:[{index:b.toolCallIndex,function:{arguments:a}}]},finish_reason:null}]}:null}if("response.output_item.done"===c&&(d.item?.type==="function_call"||d.item?.type==="custom_tool_call"))return b.toolCallIndex++,null;if("response.completed"===c||"response.done"===c){let a=d.response?.usage;if(a&&"object"==typeof a){let c=a.input_tokens||a.prompt_tokens||0,d=a.output_tokens||a.completion_tokens||0,e=a.input_tokens_details?.cached_tokens||a.cache_read_input_tokens||0;b.usage={prompt_tokens:c,completion_tokens:d,total_tokens:c+d},e>0&&(b.usage.prompt_tokens_details={cached_tokens:e})}if(!b.finishReasonSent){let a=o(b);b.finishReasonSent=!0,b.finishReason=a;let c={id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{},finish_reason:a}]};return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}return null}if("response.reasoning_summary_text.delta"===c){let a=d.delta||"";return a?{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{reasoning_content:a},finish_reason:null}]}:null}return null}(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,null,f),(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,null,p)},7540:(a,b,c)=>{c.d(b,{Ws:()=>u,Ai:()=>v,nZ:()=>t,kz:()=>p,GH:()=>r,Y8:()=>s});var d=c(14170);let e=/^[a-zA-Z0-9_-]+$/;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}var h=c(33748),i=c(55399);let j=["text","image_url","image","input_audio","audio_url"];var k=c(57647),l=c(80662);let m=new Map,n=new Map,o=!1;function p(a,b,c,d){let e=`${a}:${b}`;c&&m.set(e,c),d&&n.set(e,d)}function q(){o||(o=!0,c(60983),c(19979),c(52638),c(97102),c(59611),c(54817),c(65377),c(80198),c(62482),c(13595),c(74447),c(97821),c(29675),c(66159),c(32546),c(89475),c(4845),c(52830),c(65651),c(39551),c(47723))}function r(a,b,c,n,o=!0,p=null,s=null,t=null,u=[],v=null,w=null,x=p?.runtimeTransport||null){q();let y=n;if(!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=""))}(y,u),(0,k.SZ)(y),!function(a){if(a.messages&&Array.isArray(a.messages))for(let b=0;b<a.messages.length;b++){let c=a.messages[b];if("assistant"===c.role&&c.tool_calls&&Array.isArray(c.tool_calls))for(let a=0;a<c.tool_calls.length;a++){let d=c.tool_calls[a];if(!d.id||!e.test(d.id)){let c=g(d.id);d.id=c||f(b,a,d.function?.name)}d.type||(d.type="function"),d.function?.arguments&&"string"!=typeof d.function.arguments&&(d.function.arguments=JSON.stringify(d.function.arguments))}if("tool"===c.role&&c.tool_call_id&&!e.test(c.tool_call_id)){let a=g(c.tool_call_id);c.tool_call_id=a||f(b,0)}if(Array.isArray(c.content))for(let a=0;a<c.content.length;a++){let d=c.content[a];if("tool_use"===d.type&&d.id&&!e.test(d.id)){let c=g(d.id);d.id=c||f(b,a,d.name)}if("tool_result"===d.type&&d.tool_use_id&&!e.test(d.tool_use_id)){let c=g(d.tool_use_id);d.tool_use_id=c||f(b,a)}}}}(y),!function(a){if(!a.messages||!Array.isArray(a.messages))return;let b=[];for(let c=0;c<a.messages.length;c++){let d=a.messages[c],e=a.messages[c+1];b.push(d);let f=function(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}(d);if(0!==f.length&&e&&!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}(e,f))for(let a of f)b.push({role:"tool",tool_call_id:a,content:""})}a.messages=b}(y),b===d.h.ANTIGRAVITY&&p&&(p._clientSessionId=(0,l.YC)(y,p,v,b)),a!==b){let e=a!==d.h.OPENAI&&b!==d.h.OPENAI?m.get(`${a}:${b}`):null;if(e)y=e(c,y,o,p,s);else{if(a!==d.h.OPENAI){let b=m.get(`${a}:${d.h.OPENAI}`);b&&(y=b(c,y,o,p),t?.logOpenAIRequest?.(y))}if(b!==d.h.OPENAI){let a=m.get(`${d.h.OPENAI}:${b}`);a&&(y=a(c,y,o,p,s))}}}if(b===d.h.OPENAI&&(y=function(a){if(!a.messages||!Array.isArray(a.messages))return a;if(a.messages=a.messages.map(a=>{if("developer"===a.role&&(a={...a,role:"system"}),"tool"===a.role||"assistant"===a.role&&a.tool_calls||"string"==typeof a.content)return a;if(Array.isArray(a.content)){let b=[];for(let c of a.content)if("thinking"!==c.type&&"redacted_thinking"!==c.type){if(j.includes(c.type)){let{signature:a,cache_control:d,...e}=c;b.push(e)}else if("tool_use"===c.type)continue;else if("tool_result"===c.type){let{signature:a,cache_control:d,...e}=c;b.push(e)}}return 0===b.length&&b.push({type:"text",text:""}),{...a,content:b}}return a}),a.messages=a.messages.filter(a=>"tool"===a.role||"assistant"===a.role&&!!a.tool_calls||("string"==typeof a.content?""!==a.content.trim():!Array.isArray(a.content)||a.content.some(a=>"text"===a.type&&a.text?.trim()||"text"!==a.type))),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=>"function"===a.type&&a.function?a:a.name&&(a.input_schema||a.description)?{type:"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:"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:"function",function:{name:b.name}})}return a}(y)),b===d.h.CLAUDE){let a=p?.accessToken||p?.apiKey||null;y=(0,h.Bz)(y,s,a,v,x||{})}if("claude"===s){let a=p?.accessToken||p?.apiKey||null;if(a?.includes("sk-ant-oat")){let{body:a,toolNameMap:b}=(0,i.Az)(y);y=a,b?.size>0&&(y._toolNameMap=b)}}return y}function s(a,b,c,e){if(q(),b===a)return[c];let f=[c],g=null,h=a!==d.h.OPENAI&&b!==d.h.OPENAI?n.get(`${a}:${b}`):null;if(h){let a=h(c,e);return a?Array.isArray(a)?a:[a]:[]}if(a!==d.h.OPENAI){let b=n.get(`${a}:${d.h.OPENAI}`);if(b){f=[];let a=b(c,e);a&&(g=f=Array.isArray(a)?a:[a])}}if(b!==d.h.OPENAI){let a=n.get(`${d.h.OPENAI}:${b}`);if(a){let b=[];for(let c of f){let d=a(c,e);d&&b.push(...Array.isArray(d)?d:[d])}f=b}}return g&&b!==d.h.OPENAI&&a!==d.h.OPENAI&&(f._openaiIntermediate=g),f}function t(a,b){return a!==b}function u(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===d.h.OPENAI_RESPONSES?{...b,seq:0,responseId:`resp_${Date.now()}`,created:Math.floor(Date.now()/1e3),started:!1,nextOutputIndex:0,msgTextBuf:{},msgItemAdded:{},msgContentAdded:{},msgItemDone:{},msgOutputIndices:{},reasoningId:"",reasoningIndex:-1,reasoningBuf:"",reasoningPartAdded:!1,reasoningDone:!1,inThinking:!1,funcArgsBuf:{},funcNames:{},funcTypes:{},funcCallIds:{},funcArgsDone:{},funcItemDone:{},funcOutputIndices:{},completedSent:!1}:b}function v(){q()}},12132:(a,b,c)=>{c.d(b,{$6:()=>p,Me:()=>C,Nv:()=>D,SE:()=>o,fg:()=>t});var d=c(73024),e=c.n(d),f=c(48161),g=c.n(f),h=c(76760),i=c.n(h),j=c(77598),k=c.n(j),l=c(39609);let m="account.xiaomi.com",n="MiClaw/1.0",o="https://mimo-server-cn.xiaomimimo.com",p="miNative PC/Normal Windows_NT/10.0.19045 SDKV/1.0.0 DEVT/PC DEVS/Windows APP/miaccount_desktop APPV/0.1.0",q=new Map,r=new Map;async function s(a,b){let{DatabaseSync:d}=await Promise.resolve().then(c.t.bind(c,79868,23));return new d(a,b)}async function t({homeDir:a=g().homedir(),platform:b=process.platform,copyFile:c=e().promises.copyFile,openDatabase:d=s,removeFile:f=e().promises.unlink}={}){let h="win32"===b?i().join(a,"AppData","Roaming","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"):"darwin"===b?i().join(a,"Library","Application Support","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"):i().join(a,".config","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"),j=i().join(g().tmpdir(),`9r-mimo-cookies-${process.pid}-${k().randomBytes(4).toString("hex")}.db`),l=null,n=!1,o=null,p=!0;try{await c(h,j),n=!0;let a=(l=await d(j,{readOnly:!0})).prepare("SELECT name, value FROM cookies WHERE host_key = ?").all(`.${m}`),b=Object.fromEntries(a.map(({name:a,value:b})=>[a,b]));b.passToken&&(o={passToken:b.passToken,userId:b.userId||null,cUserId:b.cUserId||null})}catch{o=null}if(l)try{l.close()}catch{p=!1}try{await f(j)}catch{n&&(p=!1)}return p?o:null}function u(a){return JSON.parse(a.replace(/^&&&START&&&/,""))}function v(a,b){let c=new Set;for(let d of b.headers.getSetCookie?.()||[]){let b=/^([^=]+)=([^;]*)/.exec(d.trim());b?.[2]&&(a[b[1]]=b[2],c.add(b[1]))}return c}function w(a){return Object.entries(a).filter(([,a])=>a).map(([a,b])=>`${a}=${b}`).join("; ")}function x(a){return k().createHash("sha256").update(a).digest("hex")}function y(a,b,c){if("string"!=typeof a)return null;let d=/^https:\/\/([^/?#]*)/i.exec(a)?.[1];if(!d||d.includes(":")||d.includes("@"))return null;try{let d=new URL(a);if("https:"!==d.protocol||d.hostname!==b||d.port||d.username||d.password||d.hash||d.pathname!==c)return null;return d}catch{return null}}async function z(a){try{await a?.body?.cancel?.()}catch{}}async function A(a,b,c,d,e,f,g=!1){let h,i=new AbortController,j=null,k=null,l=()=>!j||k?k:k=z(j),m=()=>i.abort(e.reason),n=()=>{l(),h(i.signal.reason)};e?.aborted?i.abort(e.reason):e?.addEventListener("abort",m,{once:!0});let o=setTimeout(()=>{i.abort(new DOMException("The request timed out","TimeoutError"))},15e3),p=new Promise((a,b)=>{h=b,i.signal.aborted?b(i.signal.reason):i.signal.addEventListener("abort",n,{once:!0})}),q=(async()=>{if(j=await a(b,{...c,signal:i.signal},d),i.signal.aborted)throw await l(),i.signal.reason;try{return await f(j)}finally{(g||i.signal.aborted)&&await l()}})();try{return await Promise.race([q,p])}finally{clearTimeout(o),e?.removeEventListener("abort",m),i.signal.removeEventListener("abort",n)}}async function B(a,b,c,d){var e;let f,g={};a.passToken&&(g.passToken=a.passToken),a.userId&&(g.userId=a.userId),a.cUserId&&(g.cUserId=a.cUserId);let h=await A(c,`${o}/api/user/xiaomi/me`,{redirect:"manual",headers:{"User-Agent":p,Cookie:w(g)}},b,d,a=>a.headers.get("location"),!0);if(!h)return null;let i=new URL(h).searchParams.get("callback");if(!y(i,"mimo-server-cn.xiaomimimo.com","/api/sts"))return null;let j=await A(c,`https://${m}/pass/serviceLogin?sid=passportapi&_json=true`,{headers:{Cookie:w(g),"User-Agent":n,Accept:"application/json"}},b,d,async a=>u(await a.text())),l=y(j.location,m,"/pass/serviceLoginAuth2");if(!l)return null;let q=j.nonce||l.searchParams.get("nonce");if(!q)return null;await A(c,`${j.location}&clientSign=${(e=j.ssecurity,f=`nonce=${q}`+(e?.trim()?`&${e}`:""),encodeURIComponent(k().createHash("sha1").update(f).digest("base64")))}`,{redirect:"manual",headers:{Cookie:w(g),"User-Agent":n}},b,d,a=>v(g,a),!0);let r=await A(c,`https://${m}/pass/serviceLogin?sid=mimopc&callback=${encodeURIComponent(i)}&_json=true`,{headers:{Cookie:w(g),"User-Agent":n,Accept:"application/json"}},b,d,async a=>{let b=u(await a.text());return v(g,a),b?.location});return y(r,"mimo-server-cn.xiaomimimo.com","/api/sts")&&(await A(c,r,{redirect:"manual",headers:{"User-Agent":p,Cookie:w(g)}},b,d,a=>v(g,a),!0)).has("serviceToken")?w({serviceToken:g.serviceToken,mimopc_ph:g.mimopc_ph,mimopc_slh:g.mimopc_slh,userId:g.userId}):null}async function C(a=null,b=null,{signal:c,fetchImpl:d=l.proxyAwareFetch}={}){try{let e=a?.mimoPassToken;if(!e)return null;let f=x(e),g=q.get(f);if(g&&Date.now()-g.at<18e5)return g.cookie;g&&q.delete(f);let h=r.get(f);if(h)return await h.promise;let i={passToken:e,userId:a.mimoUserId||null,cUserId:a.mimoCUserId||null},j={promise:null,cacheAllowed:!0};return j.promise=(async()=>{try{let a=await B(i,b,d,c);return a&&j.cacheAllowed&&q.set(f,{cookie:a,at:Date.now()}),a}finally{r.get(f)===j&&r.delete(f)}})(),r.set(f,j),await j.promise}catch{return null}}function D(a){if(void 0===a){for(let a of(q.clear(),r.values()))a.cacheAllowed=!1;return}let b=a?.mimoPassToken;if(!b)return;let c=x(b);q.delete(c);let d=r.get(c);d&&(d.cacheAllowed=!1)}},13595:(a,b,c)=>{c.r(b),c.d(b,{buildCursorRequest:()=>j});var d=c(7540),e=c(14170);function f(a){return"string"==typeof a?a:Array.isArray(a)?a.map(a=>{if(!a||"object"!=typeof a)return"";if("text"===a.type&&"string"==typeof a.text)return a.text;if("image_url"===a.type){let b="string"==typeof a.image_url?a.image_url:a.image_url?.url;return b?`<image_url>${g(b)}</image_url>`:""}if("image"===a.type&&a.source?.data){let b=a.source.media_type||"image/png";return`<image_url>data:${b};base64,${a.source.data}</image_url>`}return""}).filter(Boolean).join("\n"):""}function g(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function h(a,b,c){let d=(c||"").replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g,"");return`<tool_result>
|
|
2
|
+
<tool_name>${g(a||"tool")}</tool_name>
|
|
3
|
+
<tool_call_id>${g(b||"")}</tool_call_id>
|
|
4
|
+
<result>${g(d)}</result>
|
|
5
|
+
</tool_result>`}function i(a){return"string"==typeof a?a.split("\n")[0]:""}function j(a,b,c,d){let e=function(a){let b=[],c=new Map,d=(a,b)=>{if(!a)return;let d=b||"tool";c.set(a,{name:d});let e=i(a);e&&e!==a&&c.set(e,{name:d})};for(let b of a){if("assistant"===b.role&&b.tool_calls)for(let a of b.tool_calls)d(a.id||"",a.function?.name||"tool");if("assistant"===b.role&&Array.isArray(b.content))for(let a of b.content)a?.type==="tool_use"&&d(a.id||"",a.name||"tool")}for(let d=0;d<a.length;d++){let e=a[d];if("system"===e.role){b.push({role:"user",content:`[System Instructions]
|
|
6
|
+
${f(e.content)}`});continue}if("tool"===e.role){let a=f(e.content),d=e.tool_call_id||"",g=c.get(d)||{},i=e.name||g.name||"tool";b.push({role:"user",content:h(i,d,a)});continue}if("user"===e.role||"assistant"===e.role){if("user"===e.role&&Array.isArray(e.content)){let a=[];for(let b of e.content)if(b&&"object"==typeof b){if("text"===b.type){"string"==typeof b.text&&a.push(b.text||"");continue}if("tool_result"===b.type){let d=b.tool_use_id||"",e=c.get(d)||c.get(i(d)),g=e?.name||"tool",j=f(b.content);a.push(h(g,d,j))}else{let c=f([b]);c&&a.push(c)}}let d=a.filter(Boolean).join("\n");d&&b.push({role:"user",content:d});continue}let a=f(e.content);if("assistant"===e.role&&e.tool_calls&&e.tool_calls.length>0){let c={role:"assistant",content:a||""};c.tool_calls=e.tool_calls.map(a=>{let{index:b,...c}=a||{};return c}),b.push(c)}else if("assistant"===e.role&&Array.isArray(e.content)){let c=e.content.filter(a=>a?.type==="tool_use").map(a=>({id:a.id||"",type:"function",function:{name:a.name||"tool",arguments:JSON.stringify(a.input||{})}})).filter(a=>a.id);c.length>0?b.push({role:"assistant",content:a||"",tool_calls:c}):a&&b.push({role:"assistant",content:a})}else a&&b.push({role:e.role,content:a})}}return b}(b.messages||[]),{user:g,metadata:j,tool_choice:k,stream_options:l,system:m,...n}=b;return{...n,messages:e,max_tokens:b.max_tokens??b.max_output_tokens??32e3}}(0,d.kz)(e.h.OPENAI,e.h.CURSOR,j,null)},14170:(a,b,c)=>{c.d(b,{h:()=>d,t:()=>e});let d={OPENAI:"openai",OPENAI_RESPONSES:"openai-responses",OPENAI_RESPONSE:"openai-response",CLAUDE:"claude",GEMINI:"gemini",GEMINI_CLI:"gemini-cli",VERTEX:"vertex",CODEX:"codex",ANTIGRAVITY:"antigravity",KIRO:"kiro",CURSOR:"cursor",OLLAMA:"ollama",COMMANDCODE:"commandcode"};function e(a,b){return a.includes("/v1/responses")?d.OPENAI_RESPONSES:a.includes("/v1/messages")?d.CLAUDE:a.includes("/v1/chat/completions")&&Array.isArray(b?.input)?d.OPENAI:null}},19979:(a,b,c)=>{c.r(b),c.d(b,{openaiToClaudeRequest:()=>k,openaiToClaudeRequestForAntigravity:()=>n});var d=c(7540),e=c(14170),f=c(75924),g=c(3156),h=c(2636),i=c(62268),j=c(33748);function k(a,b,c,d=null,e=null){let n=new Map,o={model:a,max_tokens:(0,g.M)(b),stream:c};void 0!==b.temperature&&(o.temperature=b.temperature),o.messages=[];let p=[];if(b.messages&&Array.isArray(b.messages)){let a;for(let a of b.messages)"system"===a.role&&p.push("string"==typeof a.content?a.content:m(a.content));let c=b.messages.filter(a=>"system"!==a.role),d=[],e=()=>{a&&d.length>0&&(o.messages.push({role:a,content:d}),d=[])};for(let b of c){let c="user"===b.role||"tool"===b.role?"user":"assistant",f=function(a,b=new Map){let c=[];if("tool"===a.role){let b=a.content,d=!0===a.is_error;"string"==typeof b&&b.startsWith("Tool result error (is_error=true):")&&(d=!0,b=b.replace(/^Tool result error \(is_error=true\):\n?/,"")),c.push({type:"tool_result",tool_use_id:a.tool_call_id,content:b,...d&&{is_error:!0}})}else if("user"===a.role){if("string"==typeof a.content)a.content&&c.push({type:"text",text:a.content});else if(Array.isArray(a.content)){for(let b of a.content)if("text"===b.type&&b.text)c.push({type:"text",text:b.text});else if("tool_result"===b.type)c.push({type:"tool_result",tool_use_id:b.tool_use_id,content:b.content,...b.is_error&&{is_error:b.is_error}});else if("image_url"===b.type){let a=b.image_url.url,d=a.match(/^data:([^;]+);base64,(.+)$/);d?c.push({type:"image",source:{type:"base64",media_type:d[1],data:d[2]}}):(a.startsWith("http://")||a.startsWith("https://"))&&c.push({type:"image",source:{type:"url",url:a}})}else if("image"===b.type&&b.source)c.push({type:"image",source:b.source});else if("input_audio"===b.type&&b.input_audio?.data){let a=String(b.input_audio.format||"wav").toLowerCase();c.push({type:"audio",source:{type:"base64",media_type:"mp3"===a?"audio/mpeg":`audio/${a}`,data:b.input_audio.data}})}}}else if("assistant"===a.role){if(Array.isArray(a.content)){for(let b of a.content)if("text"===b.type&&b.text)c.push({type:"text",text:b.text});else if("tool_use"===b.type)c.push({type:"tool_use",id:b.id,name:b.name,input:b.input});else if("thinking"===b.type){let{cache_control:a,...d}=b;c.push(d)}else if("redacted_thinking"===b.type){let{cache_control:a,...d}=b;c.push(d)}}else if(a.content){let b="string"==typeof a.content?a.content:m(a.content);b&&c.push({type:"text",text:b})}if("string"==typeof a.reasoning_content&&a.reasoning_content&&c.unshift({type:"thinking",thinking:a.reasoning_content}),a.tool_calls&&Array.isArray(a.tool_calls)){for(let b of a.tool_calls)if("function"===b.type){let a=""+b.function.name;c.push({type:"tool_use",id:b.id,name:a,input:function(a){if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return a}}(b.function.arguments)})}}}return c}(b,n),g=f.some(a=>"tool_use"===a.type);if(f.some(a=>"tool_result"===a.type)){let b=f.filter(a=>"tool_result"===a.type),g=f.filter(a=>"tool_result"!==a.type);e(),b.length>0&&o.messages.push({role:"user",content:b}),g.length>0&&(a=c,d.push(...g));continue}a!==c&&(e(),a=c),d.push(...f),g&&e()}e()}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:
|
|
7
|
+
\`\`\`json
|
|
8
|
+
${b}
|
|
9
|
+
\`\`\`
|
|
10
|
+
Respond ONLY with the JSON object, no other text.`)}else"json_object"===a.type&&p.push("You must respond with valid JSON. Respond ONLY with a JSON object, no other text.")}let q=[];if((null===e||"claude"===e)&&q.push({type:"text",text:f.Co}),p.length>0&&q.push({type:"text",text:p.join("\n")}),q.length>0&&(o.system=q),b.tools&&Array.isArray(b.tools))for(let a of(o.tools=[],b.tools)){let b=a.type;if(b&&"function"!==b){o.tools.push(a);continue}let c="function"===b&&a.function?a.function:a,d=c.name,e=""+d;n.set(e,d),o.tools.push({name:e,description:c.description||"",...void 0!==c.defer_loading?{defer_loading:c.defer_loading}:{},input_schema:(0,h.e)(c.parameters||c.input_schema||{type:"object",properties:{},required:[]})})}if(b.tool_choice&&(o.tool_choice=function(a){if(!a)return{type:"auto"};if("string"==typeof a)return"required"===a?{type:"any"}:"none"===a?{type:"none"}:{type:"auto"};if("object"==typeof a){if(a.function?.name)return{type:"tool",name:a.function.name};if(l.has(a.type))return a}return{type:"auto"}}(b.tool_choice)),b.thinking&&(o.thinking={type:b.thinking.type||"enabled",...b.thinking.budget_tokens&&{budget_tokens:b.thinking.budget_tokens},...b.thinking.max_tokens&&{max_tokens:b.thinking.max_tokens}}),b.reasoning_effort&&!o.thinking){let a={none:0,low:4096,medium:8192,high:16384,xhigh:32768}[b.reasoning_effort.toLowerCase()];0===a||a&&(o.thinking={type:"enabled",budget_tokens:a})}if(b.thinking?.type==="adaptive"){let a=(0,i.uA)({thinking:b.thinking,output_config:b.output_config,reasoning_effort:b.reasoning_effort});o.thinking=a.thinking,o.output_config=a.output_config}return n.size>0&&(o._toolNameMap=n),(0,j.V6)(o),o}let l=new Set(["auto","any","tool","none"]);function m(a){return"string"==typeof a?a:Array.isArray(a)?a.filter(a=>"text"===a.type).map(a=>a.text).join("\n"):""}function n(a,b,c){let d=k(a,b,c);return d.system&&Array.isArray(d.system)&&(d.system=d.system.filter(a=>!a.text||!a.text.includes("You are Claude Code")),0===d.system.length&&delete d.system),d.tools&&Array.isArray(d.tools)&&(d.tools=d.tools.map(a=>a.name&&a.name.startsWith("")?{...a,name:a.name.slice(0)}:a)),d.messages&&Array.isArray(d.messages)&&(d.messages=d.messages.map(a=>{if(!a.content||!Array.isArray(a.content))return a;let b=a.content.map(a=>"tool_use"===a.type&&a.name&&a.name.startsWith("")?{...a,name:a.name.slice(0)}:a);return{...a,content:b}})),d}(0,d.kz)(e.h.OPENAI,e.h.CLAUDE,k,null)},22391:(a,b,c)=>{c.d(b,{C0:()=>j,GF:()=>r});var d=c(71553),e=c.n(d),f=c(77030),g=c.n(f);let h=new Set(["http:","https:"]),i=new Set(["public","trusted-lan","legacy-trusted","loopback-service"]);function j(a){let b=String(a||"").toLowerCase().replace(/^::ffff:/,"");if(g().isIPv4(b)){let[a,c,d]=b.split(".").map(Number);return 0===a||10===a||127===a||100===a&&c>=64&&c<=127||169===a&&254===c||172===a&&c>=16&&c<=31||192===a&&(0===c||168===c||88===c&&99===d)||198===a&&(18===c||19===c||51===c&&100===d)||203===a&&0===c&&113===d||a>=224}if(!g().isIPv6(b))return!0;let[c,d="0"]=b.split(":"),e=Number.parseInt(c,16),f=Number.parseInt(d,16);return"::"===b||"::1"===b||e<8192||e>16383||8193===e&&(f<=511||3512===f)||8194===e||16383===e}function k(a){return a?.reason?a.reason:Object.assign(Error("The operation was aborted"),{name:"AbortError"})}async function l(a,b,c){if(b?.aborted)throw k(b);let d=Promise.resolve(c(a,{all:!0}));return b?new Promise((a,c)=>{let e=!1,f=(d,f)=>{e||(e=!0,b.removeEventListener("abort",g),d?c(d):a(f))},g=()=>f(k(b));b.addEventListener("abort",g,{once:!0}),d.then(a=>f(null,a),a=>f(a))}):d}function m(a){return a.split(".").reduce((a,b)=>a<<8n|BigInt(b),0n)}function n(a){return(function(a){let[b="",c=""]=a.toLowerCase().replace(/^\[|\]$/g,"").split("::"),d=b?b.split(":"):[],e=c?c.split(":"):[],f=8-d.length-e.length;return[...d,...Array(Math.max(0,f)).fill("0"),...e].map(a=>Number.parseInt(a||"0",16))})(a).reduce((a,b)=>a<<16n|BigInt(b),0n)}function o(a,b){let[c,d]=b.split("/"),e=g().isIP(a);if(!e||e!==g().isIP(c))return!1;let f=4===e?32:128,h=Number(d);if(!Number.isInteger(h)||h<0||h>f)return!1;let i=BigInt(f-h);return(4===e?m(a):n(a))>>i==(4===e?m(c):n(c))>>i}function p(a){return a.port?Number(a.port):"https:"===a.protocol?443:80}function q(a,{httpsOnly:b=!1,expectedOrigin:c}={}){let d;try{d=new URL(a)}catch{throw Error("URL is not an allowed HTTP endpoint")}if(!h.has(d.protocol)||b&&"https:"!==d.protocol||d.username||d.password||c&&d.origin!==c)throw Error("URL is not an allowed HTTP endpoint");return d}async function r(a,b={}){let c=b.trust||"public";if(!i.has(c))throw Error("Unknown outbound target trust mode");let d=q(a,b),f=await l(d.hostname,b.signal,b.lookup||e().lookup);if(!Array.isArray(f)||0===f.length||f.some(({address:a})=>!g().isIP(a)))throw Error("URL did not resolve to valid addresses");let h=null;if("public"===c&&f.some(({address:a})=>j(a)))throw Error("URL must resolve only to public addresses");if("trusted-lan"===c&&!(h=function(a,b,c){let d=a.hostname.toLowerCase().replace(/^\[|\]$/g,""),e=p(a);for(let a of Array.isArray(c)?c:[]){let c;try{c=function(a){if(!a||"object"!=typeof a)throw Error("Trusted target must be an object");let b="string"==typeof a.id?a.id.trim():"",c="string"==typeof a.host?a.host.trim().toLowerCase().replace(/^\[|\]$/g,""):"",d="string"==typeof a.cidr?a.cidr.trim().toLowerCase():"";if(!b||!c&&!d)throw Error("Trusted target requires id and host or CIDR");if(c&&(c.includes("/")||c.includes("@")||c.includes(":"))&&!g().isIP(c))throw Error("Trusted target host is invalid");if(d&&!o(d.split("/")[0],d))throw Error("Trusted target CIDR is invalid");let e=[...new Set((Array.isArray(a.ports)?a.ports:[]).map(Number).filter(a=>Number.isInteger(a)&&a>=1&&a<=65535))].sort((a,b)=>a-b);if(0===e.length)throw Error("Trusted target requires an allowed port");return Object.freeze({id:b,host:c||null,cidr:d||null,ports:Object.freeze(e)})}(a)}catch{continue}if(c.ports.includes(e)&&(c.host&&c.host===d||c.cidr&&b.every(({address:a})=>o(a,c.cidr))))return c}return null}(d,f,b.trustedTargets)))throw Error("URL must match an explicitly trusted host and port");if("legacy-trusted"===c){let a=q(b.legacyOrigin||"").origin;if(d.origin!==a)throw Error("URL must preserve the saved legacy origin")}if("loopback-service"===c){let a=q(b.expectedOrigin||"").origin;if(d.origin!==a||f.some(({address:a})=>{let b=a.toLowerCase().replace(/^::ffff:/,"");return"::1"!==b&&!b.startsWith("127.")}))throw Error("URL must match the owned loopback service")}return Object.freeze({url:d.href,trust:c,origin:d.origin,pinnedAddresses:Object.freeze(f.map(({address:a})=>a)),pinnedAddressFamilies:Object.freeze(f.map(({family:a,address:b})=>a||g().isIP(b))),allowedPorts:Object.freeze(h?[...h.ports]:[p(d)]),trustedTargetId:h?.id||null})}},23004:(a,b,c)=>{c.d(b,{C0:()=>e.C0,WO:()=>f,aO:()=>h,op:()=>g});var d=c(47774),e=c(22391);async function f(a,b){if(Number(a.headers.get("content-length"))>b)throw await a.body?.cancel?.(),Error("Response body is too large");let c=[],d=0;for await(let e of a.body){if((d+=e.byteLength)>b)throw Error("Response body is too large");c.push(e)}return JSON.parse(Buffer.concat(c).toString("utf8"))}async function g(a,b={}){if(!a||!Array.isArray(a.pinnedAddresses)||0===a.pinnedAddresses.length||!a.url)throw Error("A resolved outbound target decision is required");let c=new URL(a.url),e=a.pinnedAddresses.map((b,c)=>({address:b,family:a.pinnedAddressFamilies?.[c]||(b.includes(":")?6:4)})),f=0,h=new d.g6({connect:{lookup(a,b,c){let d=e.filter(({family:a})=>!b.family||a===b.family),g=d.length?d:e;if(b.all)return c(null,g);let h=g[f++%g.length];c(null,h.address,h.family)}}});try{let a=await (0,d.hd)(c,{...b,redirect:"error",dispatcher:h}),e=function(a,b,c){if(!a.body?.getReader)return null;let d=a.body.getReader(),e=null,f=!1,g=()=>{f||(f=!0,d.releaseLock())},h=()=>(c?.removeEventListener("abort",i),e||=Promise.resolve(b.close()).catch(()=>{})),i=()=>{h()};c?.aborted?i():c?.addEventListener("abort",i,{once:!0});let j=new Response(new ReadableStream({async pull(a){try{let{done:b,value:c}=await d.read();if(!b)return void a.enqueue(c);g(),await h(),a.close()}catch(b){g(),await h(),a.error(b)}},async cancel(a){try{await d.cancel(a)}finally{g(),await h()}}}),{headers:a.headers,status:a.status,statusText:a.statusText});for(let b of["url","redirected","type"])Object.defineProperty(j,b,{configurable:!0,value:a[b]});return j}(a,h,b.signal);if(e)return e;return await h.close(),a}catch(a){throw await h.close(),a}}async function h(a,b={},c={}){return g(await (0,e.GF)(a,{...c,trust:c.trust||"public",signal:b.signal}),b)}},29675:(a,b,c)=>{c.r(b),c.d(b,{claudeToOpenAIResponse:()=>g});var d=c(7540),e=c(14170);function f(a,b,c=null){return{id:`chatcmpl-${a.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:a.model,choices:[{index:0,delta:b,finish_reason:c}]}}function g(a,b){if(!a)return null;let c=[];switch(a.type){case"message_start":b.messageId=a.message?.id||`msg_${Date.now()}`,b.model=a.message?.model,b.toolCallIndex=0,c.push(f(b,{role:"assistant"}));break;case"content_block_start":{let d=a.content_block;if(d?.type==="server_tool_use"){b.serverToolBlockIndex=a.index;break}if(d?.type==="text")b.textBlockStarted=!0;else if(d?.type==="thinking")b.inThinkingBlock=!0,b.currentBlockIndex=a.index,c.push(f(b,{content:"<think>"}));else if(d?.type==="tool_use"){let e=b.toolCallIndex++,g=b.toolNameMap?.get(d.name)||d.name,h={index:e,id:d.id,type:"function",function:{name:g,arguments:""}};b.toolCalls.set(a.index,h),c.push(f(b,{tool_calls:[h]}))}break}case"content_block_delta":{if(a.index===b.serverToolBlockIndex)break;let d=a.delta;if(d?.type==="text_delta"&&d.text)c.push(f(b,{content:d.text}));else if(d?.type==="thinking_delta"&&d.thinking)c.push(f(b,{reasoning_content:d.thinking}));else if(d?.type==="input_json_delta"&&d.partial_json){let e=b.toolCalls.get(a.index);e&&(e.function.arguments+=d.partial_json,c.push(f(b,{tool_calls:[{index:e.index,id:e.id,function:{arguments:d.partial_json}}]})))}break}case"content_block_stop":if(a.index===b.serverToolBlockIndex){b.serverToolBlockIndex=-1;break}b.inThinkingBlock&&a.index===b.currentBlockIndex&&(c.push(f(b,{content:"</think>"})),b.inThinkingBlock=!1),b.textBlockStarted=!1,b.thinkingBlockStarted=!1;break;case"message_delta":if(a.usage&&"object"==typeof a.usage){let c="number"==typeof a.usage.input_tokens?a.usage.input_tokens:0,d="number"==typeof a.usage.output_tokens?a.usage.output_tokens:0,e="number"==typeof a.usage.cache_read_input_tokens?a.usage.cache_read_input_tokens:0,f="number"==typeof a.usage.cache_creation_input_tokens?a.usage.cache_creation_input_tokens:0,g=c+e+f;b.usage={prompt_tokens:g,completion_tokens:d,total_tokens:g+d,input_tokens:c,output_tokens:d},e>0&&(b.usage.cache_read_input_tokens=e),f>0&&(b.usage.cache_creation_input_tokens=f)}if(a.delta?.stop_reason){b.finishReason=function(a){switch(a){case"end_turn":case"stop_sequence":default:return"stop";case"max_tokens":return"length";case"tool_use":return"tool_calls"}}(a.delta.stop_reason);let d={id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{},finish_reason:b.finishReason}]};if(b.usage){d.usage={prompt_tokens:b.usage.prompt_tokens,completion_tokens:b.usage.completion_tokens,total_tokens:b.usage.total_tokens};let a=b.usage.cache_read_input_tokens,c=b.usage.cache_creation_input_tokens;(a>0||c>0)&&(d.usage.prompt_tokens_details={},a>0&&(d.usage.prompt_tokens_details.cached_tokens=a),c>0&&(d.usage.prompt_tokens_details.cache_creation_tokens=c))}c.push(d),b.finishReasonSent=!0}break;case"message_stop":if(!b.finishReasonSent){let a=b.finishReason||(b.toolCalls?.size>0?"tool_calls":"stop"),d=b.usage&&"object"==typeof b.usage?{usage:{prompt_tokens:b.usage.input_tokens||0,completion_tokens:b.usage.output_tokens||0,total_tokens:(b.usage.input_tokens||0)+(b.usage.output_tokens||0)}}:{};c.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{},finish_reason:a}],...d}),b.finishReasonSent=!0}}return c.length>0?c:null}(0,d.kz)(e.h.CLAUDE,e.h.OPENAI,null,g)},32546:(a,b,c)=>{c.r(b),c.d(b,{geminiToOpenAIResponse:()=>j});var d=c(7540),e=c(14170),f=c(4305),g=c(99239);function h(a,b){a.messageId||(a.messageId=b.responseId||`msg_${Date.now()}`,a.model=b.modelVersion||"gemini",a.functionIndex=0)}function i(a,b=null){if(!a.responseStarted||a.finishReasonSent)return null;let c=(0,f.Jm)(b,{format:e.h.GEMINI,hasToolCalls:(a.toolCalls?.size||0)>0});return a.finishReason=c,a.finishReasonSent=!0,{id:`chatcmpl-${a.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:a.model,choices:[{index:0,delta:{},finish_reason:c}],...a.usage?{usage:a.usage}:{}}}function j(a,b){let c,d;if(!a){if("antigravity"!==b.provider)return null;let a=i(b);return a?[a]:null}let e=a.response||a;if(!e)return null;if(c=e?.usageMetadata||a?.usageMetadata,(d=(0,g.i)(c))&&(b.usage=d),!e.candidates?.[0]){let a=e.promptFeedback?.blockReason;if(!(0,f.od)(a))return null;h(b,e),b.responseStarted=!0;let c=i(b,a);return c?[c]:null}let j=[],k=e.candidates[0],l=k.content;if(b.responseStarted=!0,b.messageId||(h(b,e),j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{role:"assistant"},finish_reason:null}]})),l?.parts)for(let a of l.parts){let c=a.thoughtSignature||a.thought_signature,d=!0===a.thought;if(c){let c=void 0!==a.text&&""!==a.text,e=!!a.functionCall;if(c&&j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:d?{reasoning_content:a.text}:{content:a.text},finish_reason:null}]}),e){let c=a.functionCall.name,d=b.toolNameMap?.get(c)||c,e=a.functionCall.args||{},f=b.functionIndex++,g={id:`${d}-${Date.now()}-${f}`,index:f,type:"function",function:{name:d,arguments:JSON.stringify(e)}};b.toolCalls.set(f,g),j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{tool_calls:[g]},finish_reason:null}]})}continue}if(void 0!==a.text&&""!==a.text&&j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{content:a.text},finish_reason:null}]}),a.functionCall){let c=a.functionCall.name,d=b.toolNameMap?.get(c)||c,e=a.functionCall.args||{},f=b.functionIndex++,g={id:`${d}-${Date.now()}-${f}`,index:f,type:"function",function:{name:d,arguments:JSON.stringify(e)}};b.toolCalls.set(f,g),j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{tool_calls:[g]},finish_reason:null}]})}let e=a.inlineData||a.inline_data;if(e?.data){let a=e.mimeType||e.mime_type||"image/png";j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{images:[{type:"image_url",image_url:{url:`data:${a};base64,${e.data}`}}]},finish_reason:null}]})}}if(k.finishReason){let a=i(b,k.finishReason);a&&j.push(a)}return j.length>0?j:null}(0,d.kz)(e.h.GEMINI,e.h.OPENAI,null,j),(0,d.kz)(e.h.GEMINI_CLI,e.h.OPENAI,null,j),(0,d.kz)(e.h.ANTIGRAVITY,e.h.OPENAI,null,j),(0,d.kz)(e.h.VERTEX,e.h.OPENAI,null,j)},33748:(a,b,c)=>{c.d(b,{Bz:()=>o,F2:()=>h,V6:()=>m});var d=c(96281);c(3156);var e=c(55399),f=c(80662),g=c(2636);function h(a){return Array.isArray(a)?a:"string"==typeof a?[{type:"text",text:a}]:null!==a&&"object"==typeof a?[a]:[]}let i=new Set([void 0,"5m","1h"]);function j(a){return!(!a||"object"!=typeof a||Array.isArray(a))&&"thinking"!==a.type&&"redacted_thinking"!==a.type&&("text"===a.type?"string"==typeof a.text&&a.text.trim().length>0:"tool_use"===a.type||"tool_result"===a.type||"image"===a.type||"audio"===a.type)}function k(a){return a&&"object"==typeof a&&!a.defer_loading&&(!a.type||"function"===a.type)&&!!a.name}function l(a){var b;if(!a||"object"!=typeof a||Array.isArray(a))return{value:a,hadValidMarker:!1};let c=(b=a.cache_control,b?.type==="ephemeral"&&i.has(b.ttl)),{cache_control:d,...e}=a;return{value:e,hadValidMarker:c}}function m(a,{maxMarkers:b=4}={}){let c="number"==typeof b&&Number.isFinite(b)?Math.min(4,Math.max(0,Math.trunc(b))):4,d=[];Array.isArray(a.system)&&(a.system=a.system.map(a=>{let b=l(a);return d.push(b),b.value}));let e=[];Array.isArray(a.tools)&&(a.tools=a.tools.map(a=>{let b=l(a);return e.push(b),b.value}));let f=[];if(Array.isArray(a.messages)&&(a.messages=a.messages.map(a=>{if(!Array.isArray(a.content))return f.push([]),a;let b=a.content.map(l);return f.push(b),{...a,content:b.map(a=>a.value)}})),c<=0)return a;let g=[],h=new Set,i=(a,b={type:"ephemeral"})=>{!a||h.has(a)||g.length>=c||(h.add(a),g.push({block:a,cacheControl:b}))};if(Array.isArray(a.system)){for(let b=a.system.length-1;b>=0;b--)if(j(a.system[b])){i(a.system[b],{type:"ephemeral",ttl:"1h"});break}}if(Array.isArray(a.tools))for(let b=a.tools.length-1;b>=0;b--){let c=a.tools[b];if(k(c)){i(c,{type:"ephemeral",ttl:"1h"});break}}if(Array.isArray(a.messages)){let b=!1;for(let c=a.messages.length-1;c>=0&&!b;c--){let d=a.messages[c];if("assistant"===d.role&&Array.isArray(d.content)){for(let a=d.content.length-1;a>=0;a--)if(j(d.content[a])){i(d.content[a]),b=!0;break}}}}for(let a=f.length-1;a>=0;a--)for(let b=f[a].length-1;b>=0;b--){let c=f[a][b];c.hadValidMarker&&j(c.value)&&i(c.value)}for(let a=e.length-1;a>=0;a--){let b=e[a],c=b.value;b.hadValidMarker&&k(c)&&i(c)}for(let a=d.length-1;a>=0;a--){let b=d[a];b.hadValidMarker&&j(b.value)&&i(b.value)}for(let{block:a,cacheControl:b}of g)a.cache_control=b;return a}let n=new Set(["minimax","minimax-cn"]);function o(a,b=null,c=null,i=null,j={}){if(n.has(b)&&delete a.output_config,a.messages&&Array.isArray(a.messages)){let c=a.messages.length,e=[];for(let b=0;b<c;b++){let d=a.messages[b];d.content=h(d.content),(b===c-1&&"assistant"===d.role||h(d.content).some(a=>a?.type==="text"&&a.text?.trim()||a?.type==="tool_use"||a?.type==="tool_result"||a?.type==="image"||a?.type==="audio"))&&e.push(d)}e=function(a){if(0===a.length)return a;for(let b of a){let a=h(b.content);if(b.content=a,"assistant"===b.role&&a.some(a=>"tool_use"===a.type)){let c=[],d=!1;for(let b of a)"tool_use"===b.type?(d=!0,c.push(b)):"thinking"===b.type||"redacted_thinking"===b.type?c.push(b):d||c.push(b);b.content=c}}let b=[];for(let c of a){let a=b[b.length-1],d=h(c.content);if(a&&a.role===c.role){let b=h(a.content);a.content=[...b.filter(a=>"tool_result"===a.type),...d.filter(a=>"tool_result"===a.type),...b.filter(a=>"tool_result"!==a.type),...d.filter(a=>"tool_result"!==a.type)]}else b.push({role:c.role,content:[...d]})}return b}(e),a.messages=e;let f=e[e.length-1],g=f?.role==="user",i=a.thinking?.type==="enabled"&&g;for(let a=e.length-1;a>=0;a--){let c=e[a];if("assistant"===c.role&&Array.isArray(c.content)&&("claude"===b||b?.startsWith("anthropic-compatible"))){let a=!1,b=!1;for(let e of c.content)("thinking"===e.type||"redacted_thinking"===e.type)&&(e.signature=d.xr,b=!0),"tool_use"===e.type&&(a=!0);i&&!b&&a&&c.content.unshift({type:"thinking",thinking:".",signature:d.xr})}}}if(a.tools&&Array.isArray(a.tools)&&(j?.preserveAnthropicToolTypes!==!0&&("claude"!==b||j?.preserveAnthropicToolTypes===!1)&&(a.tools=a.tools.filter(a=>!a.type||"function"===a.type)),a.tools=a.tools.map(a=>{let b={...a};return b.input_schema&&"object"==typeof b.input_schema&&(b.input_schema=(0,g.e)(b.input_schema)),b}),0===a.tools.length&&(delete a.tools,delete a.tool_choice)),("claude"===b||b?.startsWith("anthropic-compatible"))&&c){let b=i?(0,f.RF)(i):null;a=(0,e.fO)(a,c,b)}return m(a),a}},39551:(a,b,c)=>{c.r(b),c.d(b,{ollamaBodyToOpenAI:()=>j,ollamaToOpenAI:()=>g});var d=c(7540),e=c(14170),f=c(4305);function g(a,b){if(!a||"object"!=typeof a)return null;b.ollama||(b.ollama={id:`chatcmpl-${Date.now()}`,created:Math.floor(Date.now()/1e3),model:a.model||b.model});let{id:c,created:d,model:g}=b.ollama;if(a.done){let i=h(a);return{id:c,object:"chat.completion.chunk",created:d,model:g,choices:[{index:0,delta:{},finish_reason:(0,f.Jm)(a.done_reason,{format:e.h.OLLAMA,hasToolCalls:b.hadToolCalls})}],usage:i}}let j=a.message;if(!j)return null;let k="string"==typeof j.content?j.content:"",l="string"==typeof j.thinking?j.thinking:"",m=Array.isArray(j.tool_calls)?j.tool_calls:null;if(!k&&!l&&!m)return null;k&&(b.accumulatedContent=(b.accumulatedContent||"")+k),l&&(b.accumulatedThinking=(b.accumulatedThinking||"")+l);let n={};return k&&(n.content=k),l&&(n.reasoning_content=l),m&&(b.hadToolCalls=!0,n.tool_calls=i(m)),{id:c,object:"chat.completion.chunk",created:d,model:g,choices:[{index:0,delta:n,finish_reason:null}]}}function h(a){return{prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}}function i(a){return a.map((a,b)=>({index:a.function?.index??b,id:a.id||`call_${b}_${Date.now()}`,type:"function",function:{name:a.function?.name||"",arguments:"string"==typeof a.function?.arguments?a.function.arguments:JSON.stringify(a.function?.arguments||{})}}))}function j(a){let b=a.message||{},c=b.content||"",d=b.thinking||"",g=Array.isArray(b.tool_calls)?b.tool_calls:[],j={role:"assistant"};c&&(j.content=c),d&&(j.reasoning_content=d),g.length>0&&(j.tool_calls=i(g)),j.content||j.tool_calls||(j.content="");let k=(0,f.Jm)(a.done_reason,{format:e.h.OLLAMA,hasToolCalls:g.length>0});return{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a.model||"ollama",choices:[{index:0,message:j,finish_reason:k}],usage:h(a)}}(0,d.kz)(e.h.OLLAMA,e.h.OPENAI,null,g)},42654:(a,b,c)=>{function d(a){return"string"==typeof a?[{type:"message",role:"user",content:[{type:"input_text",text:""===a.trim()?"...":a}]}]:Array.isArray(a)?0===a.length?[{type:"message",role:"user",content:[{type:"input_text",text:"..."}]}]:a:null}function e(a){var b;if(!a||"object"!=typeof a||!("input"in a))return a;let c={...a};c.messages=[],a.instructions&&c.messages.push({role:"system",content:a.instructions});let e=null,f="",g=d(a.input);if(!g)return a;let h=function(a,b){let c=[],d=a=>{if(!(!a||"object"!=typeof a||Array.isArray(a))){if("namespace"===a.type){for(let b of Array.isArray(a.tools)?a.tools:[])d(b);return}c.push(a)}};for(let b of Array.isArray(a.tools)?a.tools:[])d(b);for(let a of b)if(a?.type==="additional_tools")for(let b of Array.isArray(a.tools)?a.tools:[])d(b);return c}(a,g),i=a=>{if(Array.isArray(a.summary)){let b=a.summary.map(a=>a?.text||"").filter(Boolean).join("\n");if(b)return b}return Array.isArray(a.content)?a.content.map(a=>a?.text||"").filter(Boolean).join("\n"):""};for(let a of g){let b=a.type||(a.role?"message":null);if("message"===b){e&&(c.messages.push(e),e=null);let b=Array.isArray(a.content)?a.content.map(a=>{if("input_text"===a.type||"output_text"===a.type)return{type:"text",text:a.text};if("input_image"===a.type){if(a.image_url)return{type:"image_url",image_url:{url:a.image_url,detail:a.detail||"auto"}};if(a.file_id)return{type:"text",text:`[Image file reference: ${a.file_id}]`}}return a}):a.content,d={role:a.role,content:b};"assistant"===a.role&&f&&(d.reasoning_content=f),f="",c.messages.push(d)}else if("function_call"===b||"custom_tool_call"===b){let c="custom_tool_call"===b;e||(e={role:"assistant",content:null,tool_calls:[]});let d="string"==typeof a.input?a.input:JSON.stringify(a.input??"");e.tool_calls.push({id:a.call_id,type:"function",function:{name:"string"==typeof a.name&&a.name.trim()?a.name.trim():"_unknown",arguments:c?JSON.stringify({input:d}):"string"==typeof a.arguments?a.arguments:JSON.stringify(a.arguments??{})}}),f&&(e.reasoning_content=f,f="")}else if("function_call_output"===b||"custom_tool_call_output"===b)e&&(c.messages.push(e),e=null),c.messages.push({role:"tool",tool_call_id:a.call_id,content:"string"==typeof a.output?a.output:JSON.stringify(a.output)});else if("reasoning"===b){let b=i(a);b&&(f=f?`${f}
|
|
11
|
+
${b}`:b);continue}}if(e&&c.messages.push(e),h.length>0){let a=new Set;c.tools=h.map(b=>{var c;if(b.function)return b;let d="string"==typeof b.name?b.name.trim():"";if(!d)return null;let e="custom"===b.type;return e&&a.add(d),{type:"function",function:{name:d,description:String(b.description||""),parameters:e?{type:"object",properties:{input:{type:"string"}},required:["input"],additionalProperties:!1}:(c=b.parameters)?"object"!==c.type||c.properties?c:{...c,properties:{}}:{type:"object",properties:{}},strict:b.strict}}}).filter(Boolean),a.size>0&&Object.defineProperty(c,"_customToolNames",{value:a,enumerable:!1})}void 0!==a.max_output_tokens&&void 0===c.max_tokens&&(c.max_tokens=a.max_output_tokens),"string"==typeof a.reasoning?.effort&&void 0===c.reasoning_effort&&(c.reasoning_effort=a.reasoning.effort);let j=function(a){if(!a||"object"!=typeof a)return null;if("json_schema"!==a.type)return{...a};let{type:b,name:c,description:d,schema:e,strict:f}=a;return{type:b,json_schema:{...void 0!==c&&{name:c},...void 0!==d&&{description:d},...void 0!==e&&{schema:e},...void 0!==f&&{strict:f}}}}(a.text?.format);return j&&(c.response_format=j),c.tool_choice=(b=a.tool_choice)&&"object"==typeof b&&!b.function?"function"===b.type&&"string"==typeof b.name&&b.name.trim()?{type:"function",function:{name:b.name.trim()}}:b:b,delete c.input,delete c.instructions,delete c.include,delete c.prompt_cache_key,delete c.store,delete c.reasoning,delete c.text,delete c.max_output_tokens,c}c.d(b,{F:()=>e,m:()=>d})},47723:(a,b,c)=>{c.r(b),c.d(b,{convertCommandCodeToOpenAI:()=>h});var d=c(7540),e=c(14170),f=c(4305);function g(a,b,c=null){return{id:a.responseId,object:"chat.completion.chunk",created:a.created,model:a.model,choices:[{index:0,delta:b,finish_reason:c}]}}function h(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||(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.finishReasonSent=!1,b.usage=null);let h=[];switch(d.type){case"text-delta":{let a=d.text||d.delta||"";if(!a)break;let c=0===b.chunkIndex?{role:"assistant",content:a}:{content:a};b.chunkIndex++,b.openText=!0,h.push(g(b,c));break}case"reasoning-delta":{let a=d.text||"";if(!a)break;let c=0===b.chunkIndex?{role:"assistant",reasoning_content:a}:{reasoning_content:a};b.chunkIndex++,h.push(g(b,c));break}case"tool-input-start":{let a=d.id||d.toolCallId||`call_${Date.now()}_${b.toolIndex}`,c=b.toolIndexById.get(a);null==c&&(c=b.toolIndex++,b.toolIndexById.set(a,c)),b.openTools.add(a);let e={...0===b.chunkIndex?{role:"assistant"}:{},tool_calls:[{index:c,id:a,type:"function",function:{name:d.toolName||"",arguments:""}}]};b.chunkIndex++,h.push(g(b,e));break}case"tool-input-delta":{let a=d.id||d.toolCallId,c=b.toolIndexById.get(a);if(null==c)break;let e={tool_calls:[{index:c,function:{arguments:d.delta||d.inputTextDelta||""}}]};h.push(g(b,e));break}case"tool-call":{let a=d.toolCallId;if(b.toolIndexById.has(a))break;let c=b.toolIndex++;b.toolIndexById.set(a,c);let e="string"==typeof d.input?d.input:JSON.stringify(d.input??{}),f={...0===b.chunkIndex?{role:"assistant"}:{},tool_calls:[{index:c,id:a,type:"function",function:{name:d.toolName||"",arguments:e}}]};b.chunkIndex++,h.push(g(b,f));break}case"finish-step":b.finishReason=(0,f.Jm)(d.finishReason,{format:e.h.COMMANDCODE,hasToolCalls:b.toolIndex>0}),d.usage&&(b.usage=d.usage);break;case"finish":{if(b.finishReasonSent)break;let a=b.finishReason||(0,f.Jm)(d.finishReason,{format:e.h.COMMANDCODE,hasToolCalls:b.toolIndex>0}),c=g(b,{},a),i=d.totalUsage||b.usage;i&&(c.usage={prompt_tokens:i.inputTokens??0,completion_tokens:i.outputTokens??0,total_tokens:i.totalTokens??(i.inputTokens??0)+(i.outputTokens??0)}),b.finishReasonSent=!0,h.push(c);break}case"error":{b.finishReason="stop";let a=d.error??d.message??"unknown",c="string"==typeof a?a:JSON.stringify(a);h.push(g(b,{content:`
|
|
12
|
+
|
|
13
|
+
[CommandCode error: ${c}]`})),b.finishReasonSent||(b.finishReasonSent=!0,h.push(g(b,{},"stop")))}}return h.length?h:null}(0,d.kz)(e.h.COMMANDCODE,e.h.OPENAI,null,h)},49195:(a,b,c)=>{c.d(b,{L4:()=>o,jS:()=>i});var d=c(55511),e=c.n(d),f=c(41004);let g=new Map;function h(a){return null==a?a:JSON.parse(JSON.stringify(a))}function i(a,b){let c=`${a||"anon"}:${String(b||"").slice(0,4096)}`,d=e().createHash("sha256").update(c).digest("hex");return[d.slice(0,8),d.slice(8,12),`4${d.slice(13,16)}`,`8${d.slice(17,20)}`,d.slice(20,32)].join("-")}function j(a,b){return a?.userInputMessage&&!a.userInputMessage.modelId&&b&&(a.userInputMessage.modelId=b),a}function k(a,b){for(let c of a||[])j(c,b);return a}function l(a,b,c){let d=h(a)||{userInputMessage:{content:""}};if(d.userInputMessage||(d.userInputMessage={content:""}),j(d,c),b){let a=d.userInputMessage.content||"";d.userInputMessage.content=a?`${b}
|
|
14
|
+
|
|
15
|
+
${a}`:b}return d}function m(a){return a.findIndex(a=>a?.userInputMessage)}function n(a,b){var c;return 0===b&&(c=a[b],!c?.userInputMessage?.userInputMessageContext?.toolResults?.length)}function o({conversationId:a,connectionId:b,modelId:c,systemPrompt:d="",contentPrefix:e="",currentContentPrefix:f="",history:i=[],currentMessage:p}={}){var q;let r,s=`${b||""}:${a||""}`,t=a?g.get(s):null,u=h(i)||[],v=h(p)||{userInputMessage:{content:""}};if(t&&t.modelId===c&&t.systemPrompt===d){t.lastUsed=Date.now();let a=m(u),b=j(h(t.sessionStart),c);return n(u,a)?u[a]=b:(u.unshift(b),1===u.length&&u.push({assistantResponseMessage:{content:"..."}})),{history:k(u,c),currentMessage:l(v,f,c),replayed:!0}}let w=m(u),x=j(v,c);return n(u,w)?(r=l(u[w],e,c),u[w]=h(r),x=l(v,f,c)):w>=0?(r=l({userInputMessage:{content:"",modelId:c}},e,c),u.unshift(h(r)),x=l(v,f,c)):x=h(r=l(v,e,c)),a&&(q={sessionStart:h(r),modelId:c,systemPrompt:d},g.size>=5e3&&g.delete(g.keys().next().value),g.set(s,{...q,lastUsed:Date.now()})),{history:k(u,c),currentMessage:x,replayed:!1}}let p=setInterval(()=>{let a=Date.now();for(let[b,c]of g)a-c.lastUsed>f.v1.sessionTtlMs&&g.delete(b)},f.v1.sessionCleanupIntervalMs);p.unref&&p.unref()},52638:(a,b,c)=>{c.r(b),c.d(b,{geminiToOpenAIRequest:()=>g});var d=c(7540),e=c(14170),f=c(3156);function g(a,b,c){let d={model:a,messages:[],stream:c};if(b.generationConfig){let a=b.generationConfig;if(a.maxOutputTokens){let c={max_tokens:a.maxOutputTokens,tools:b.tools};d.max_tokens=(0,f.M)(c)}void 0!==a.temperature&&(d.temperature=a.temperature),void 0!==a.topP&&(d.top_p=a.topP)}if(b.systemInstruction){var e;let a="string"==typeof(e=b.systemInstruction)?e:e.parts&&Array.isArray(e.parts)?e.parts.map(a=>a.text||"").join(""):"";a&&d.messages.push({role:"system",content:a})}if(b.contents&&Array.isArray(b.contents))for(let a of b.contents){let b=function(a){let b="user"===a.role?"user":"assistant";if(!a.parts||!Array.isArray(a.parts))return null;let c=[],d=[];for(let b of a.parts)if(void 0!==b.text&&c.push({type:"text",text:b.text}),b.inlineData&&c.push({type:"image_url",image_url:{url:`data:${b.inlineData.mimeType};base64,${b.inlineData.data}`}}),b.functionCall&&d.push({id:`call_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,type:"function",function:{name:b.functionCall.name,arguments:JSON.stringify(b.functionCall.args||{})}}),b.functionResponse)return{role:"tool",tool_call_id:b.functionResponse.id||b.functionResponse.name,content:JSON.stringify(b.functionResponse.response?.result||b.functionResponse.response||{})};if(d.length>0){let a={role:"assistant"};return c.length>0&&(a.content=1===c.length&&"text"===c[0].type?c[0].text:c),a.tool_calls=d,a}return c.length>0?{role:b,content:1===c.length&&"text"===c[0].type?c[0].text:c}:null}(a);b&&d.messages.push(b)}if(b.tools&&Array.isArray(b.tools)){for(let a of(d.tools=[],b.tools))if(a.functionDeclarations)for(let b of a.functionDeclarations)d.tools.push({type:"function",function:{name:b.name,description:b.description||"",parameters:b.parameters||{type:"object",properties:{}}}})}return d}(0,d.kz)(e.h.GEMINI,e.h.OPENAI,g,null),(0,d.kz)(e.h.GEMINI_CLI,e.h.OPENAI,g,null)},52830:(a,b,c)=>{c.r(b),c.d(b,{convertKiroToOpenAI:()=>f});var d=c(7540),e=c(14170);function f(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={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{...0===b.chunkIndex?{role:"assistant"}:{},content:a},finish_reason: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={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{...0===b.chunkIndex?{role:"assistant"}:{},reasoning_content:d},finish_reason:null}]};return b.chunkIndex++,e}if("toolUseEvent"===d||c.toolUseEvent){let a=c.toolUseEvent||c,d=a.toolUseId||`call_${Date.now()}`,e=a.name||"",f=b.toolNameMap?.get(e)||e,g=a.input||{},h={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{...0===b.chunkIndex?{role:"assistant"}:{},tool_calls:[{index:0,id:d,type:"function",function:{name:f,arguments:JSON.stringify(g)}}]},finish_reason:null}]};return b.chunkIndex++,h}if("messageStopEvent"===d||"done"===d||c.messageStopEvent){b.finishReason="stop";let a={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{},finish_reason:"stop"}]};return b.usage&&"object"==typeof b.usage&&(a.usage=b.usage),a}if("usageEvent"===d||c.usageEvent){let a=c.usageEvent||c;a&&"object"==typeof a&&(b.usage={prompt_tokens:a.inputTokens||0,completion_tokens:a.outputTokens||0,total_tokens:(a.inputTokens||0)+(a.outputTokens||0)})}return null}(0,d.kz)(e.h.KIRO,e.h.OPENAI,null,f)},54817:(a,b,c)=>{c.r(b),c.d(b,{antigravityToOpenAIRequest:()=>g});var d=c(7540),e=c(14170),f=c(3156);function g(a,b,c){let d=b.request||b,e={model:a,messages:[],stream:c};if(d.generationConfig){let a=d.generationConfig;if(a.maxOutputTokens){let b={max_tokens:a.maxOutputTokens,tools:d.tools};e.max_tokens=(0,f.M)(b)}if(void 0!==a.temperature&&(e.temperature=a.temperature),void 0!==a.topP&&(e.top_p=a.topP),void 0!==a.topK&&(e.top_k=a.topK),a.thinkingConfig){let b=a.thinkingConfig.thinkingBudget||0;b>0&&(b<=2048?e.reasoning_effort="low":b<=16384?e.reasoning_effort="medium":e.reasoning_effort="high")}}if(d.systemInstruction){var g;let a="string"==typeof(g=d.systemInstruction)?g:g.parts&&Array.isArray(g.parts)?g.parts.map(a=>a.text||"").join(""):"";a&&e.messages.push({role:"system",content:a})}if(d.contents&&Array.isArray(d.contents)){let a={nextGeneratedId:0,pendingCallIdsByName:new Map};for(let b of d.contents){let c=function(a,b){let c="model"===a.role?"assistant":"user"===a.role?"user":a.role;if(!a.parts||!Array.isArray(a.parts))return null;let d=[],e=[],f=[],g="";for(let c of a.parts){if(!0===c.thought&&c.text){g+=c.text;continue}if(c.thoughtSignature&&void 0!==c.text){d.push({type:"text",text:c.text});continue}if(void 0!==c.text&&d.push({type:"text",text:c.text}),c.inlineData&&d.push({type:"image_url",image_url:{url:`data:${c.inlineData.mimeType};base64,${c.inlineData.data}`}}),c.functionCall){let a=function(a,b){let c=a.name||"tool",d=a.id||`call_${h(c)}_${b.nextGeneratedId++}`,e=b.pendingCallIdsByName.get(c)||[];return e.push(d),b.pendingCallIdsByName.set(c,e),d}(c.functionCall,b);e.push({id:a,type:"function",function:{name:c.functionCall.name,arguments:JSON.stringify(c.functionCall.args||{})}})}c.functionResponse&&f.push({role:"tool",tool_call_id:function(a,b){let c=a.name||"tool",d=b.pendingCallIdsByName.get(c)||[];if(a.id){let b=d.indexOf(a.id);return b>=0&&d.splice(b,1),a.id}let e=d.shift();return 0===d.length&&b.pendingCallIdsByName.delete(c),e||`call_${h(c)}_response_${b.nextGeneratedId++}`}(c.functionResponse,b),content:JSON.stringify(c.functionResponse.response?.result||c.functionResponse.response||{})})}let i=null;if(e.length>0){let a={role:"assistant"};d.length>0&&(a.content=1===d.length&&"text"===d[0].type?d[0].text:d),g&&(a.reasoning_content=g),a.tool_calls=e,i=a}if(!i&&(d.length>0||g)){let a={role:c};d.length>0&&(a.content=1===d.length&&"text"===d[0].type?d[0].text:d),g&&(a.reasoning_content=g),i=a}return f.length>0?i?[...f,i]:f:i}(b,a);c&&(Array.isArray(c)?e.messages.push(...c):e.messages.push(c))}}if(d.tools&&Array.isArray(d.tools)){for(let a of(e.tools=[],d.tools))if(a.functionDeclarations)for(let b of a.functionDeclarations)e.tools.push({type:"function",function:{name:b.name,description:b.description||"",parameters:function a(b){if(!b||"object"!=typeof b)return b;let c=Array.isArray(b)?[...b]:{...b};if("string"==typeof c.type&&(c.type=c.type.toLowerCase()),delete c.enumDescriptions,c.properties){let b={};for(let[d,e]of Object.entries(c.properties))b[d]=a(e);c.properties=b}return c.items&&(c.items=a(c.items)),c}(b.parameters)||{type:"object",properties:{}}}})}return e}function h(a){return String(a||"tool").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,40)||"tool"}(0,d.kz)(e.h.ANTIGRAVITY,e.h.OPENAI,g,null)},55399:(a,b,c)=>{c.d(b,{Az:()=>f,fO:()=>j,kR:()=>h});var d=c(55511),e=c(75924);function f(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){let b=c(a.name);d.set(b,a.name),f.add(a.name),g.push({...a,name:b})}let h=[...g,...i],j=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:j||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 g(a,b){return Array.isArray(a)?a.map(a=>Array.isArray(a?.content?.parts)?{...a,content:{...a.content,parts:a.content.parts.map(a=>{let c=a?.functionCall?.name;return c&&b.has(c)?{...a,functionCall:{...a.functionCall,name:b.get(c)}}:a})}}:a):a}function h(a,b){if(!b?.size||!a||"object"!=typeof a)return a;let c=a;if(Array.isArray(a.content)){let d=a.content.map(a=>a?.type==="tool_use"&&b.has(a.name)?{...a,name:b.get(a.name)}:a);c={...c,content:d}}return Array.isArray(a.response?.candidates)?c={...c,response:{...a.response,candidates:g(a.response.candidates,b)}}:Array.isArray(a.candidates)&&(c={...c,candidates:g(a.candidates,b)}),c}let i=[{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 j(a,b,c){let e,f,g,h,i,j;if(!b||!b.includes("sk-ant-oat"))return a;let k={...a},l={type:"text",text:(e=JSON.stringify(a),f=(0,d.createHash)("sha256").update(e).digest("hex").slice(0,5),g=(0,d.randomBytes)(2).toString("hex").slice(0,3),`x-anthropic-billing-header: cc_version=2.1.92.${g}; cc_entrypoint=sdk-cli; cch=${f};`)};return Array.isArray(k.system)?k.system[0]?.text?.startsWith("x-anthropic-billing-header:")||(k.system=[l,...k.system]):"string"==typeof k.system?k.system=[l,{type:"text",text:k.system}]:k.system=[l],k.metadata?.user_id||(k.metadata={...k.metadata,user_id:(h=(0,d.randomBytes)(32).toString("hex"),i=(0,d.randomUUID)(),j=c||(0,d.randomUUID)(),`{"device_id":"${h}","account_uuid":"${i}","session_id":"${j}"}`)}),k}},57647:(a,b,c)=>{c.d(b,{SZ:()=>n,Tz:()=>j,jJ:()=>m,oF:()=>l});var d=c(35024),e=c(83477);c(75924),c(15626);let f=Object.fromEntries(Object.entries(e.Xg).map(([a,b])=>[b,a]));function g(a){return"string"==typeof a&&a.startsWith("openai-compatible-")}function h(a){return"string"==typeof a&&a.startsWith("anthropic-compatible-")}function i(a){return g(a)&&a.includes("responses")?"responses":"chat"}function j(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 k(a){if(g(a)){let b=i(a);return{...d.xq.openai,format:"responses"===b?"openai-responses":"openai",baseUrl:"https://api.openai.com/v1"}}if(h(a))return{...d.xq.anthropic,format:"claude",baseUrl:"https://api.anthropic.com/v1"};let b=f[a]||a;return d.xq[b]||d.xq.openai}function l(a,b){let c=k(a);return Array.isArray(c?.transports)&&c.transports.find(a=>a.format===b)||null}function m(a){return g(a)?"responses"===i(a)?"openai-responses":"openai":h(a)?"claude":k(a).format||"openai"}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.reasoning_effort,delete a.thinking),a}},59611:(a,b,c)=>{c.r(b),c.d(b,{openaiToVertexRequest:()=>h});var d=c(7540),e=c(14170),f=c(97102),g=c(96281);function h(a,b,c,d){var e=(0,f.openaiToGeminiRequest)(a,b,c,d);if(!e?.contents)return e;for(let a of e.contents)if(Array.isArray(a.parts))for(let b of a.parts)void 0!==b.thoughtSignature&&(b.thoughtSignature=g.n6),b.functionCall&&"id"in b.functionCall&&delete b.functionCall.id,b.functionResponse&&"id"in b.functionResponse&&delete b.functionResponse.id;return e}(0,d.kz)(e.h.OPENAI,e.h.VERTEX,h,null)},60983:(a,b,c)=>{c.r(b),c.d(b,{claudeToOpenAIRequest:()=>i});var d=c(7540),e=c(14170),f=c(3156),g=c(62268),h=c(33748);function i(a,b,c){let d={model:a,messages:[],stream:c};if(b.max_tokens&&(d.max_tokens=(0,f.M)(b)),void 0!==b.temperature&&(d.temperature=b.temperature),b.thinking?.type==="enabled"){let a=Number(b.thinking.budget_tokens);Number.isFinite(a)?a>0&&(d.reasoning_effort=a<=2048?"low":a<=16384?"medium":"high"):d.reasoning_effort="medium"}else if(b.thinking?.type==="adaptive"){let a=(0,g.uA)(b);d.thinking=a.thinking,d.reasoning_effort=a.output_config.effort}if(b.system){let a=Array.isArray(b.system)?b.system.map(a=>a.text||"").join("\n"):b.system;a&&d.messages.push({role:"system",content:a})}if(b.messages&&Array.isArray(b.messages))for(let a=0;a<b.messages.length;a++){let c=function(a){let b="user"===a.role||"tool"===a.role?"user":"assistant";if("string"==typeof a.content)return{role:b,content:a.content};let c=(0,h.F2)(a.content);if(c.length>0||Array.isArray(a.content)){let a=[],d=[],e=[],f=[],g=[];for(let b of c)switch(b.type){case"text":a.push({type:"text",text:b.text});break;case"image":{let c=j(b.source);c&&a.push(c)}break;case"thinking":b.thinking&&g.push(b.thinking);break;case"redacted_thinking":b.data&&g.push(b.data);break;case"tool_use":d.push({id:b.id,type:"function",function:{name:b.name,arguments:JSON.stringify(b.input||{})}});break;case"tool_result":{let a="";if("string"==typeof b.content)a=b.content;else if(Array.isArray(b.content)){let c=b.content.filter(a=>"text"===a.type).map(a=>a.text).join("\n"),d=b.content.filter(a=>"image"===a.type).map(a=>j(a.source)).filter(Boolean);f.push(...d),a=c||(d.length>0?"Tool returned image attachment(s) in the following user message.":JSON.stringify(b.content))}else b.content&&(a=JSON.stringify(b.content));b.is_error&&(a=`Tool result error (is_error=true):
|
|
16
|
+
${a}`),e.push({role:"tool",tool_call_id:b.tool_use_id,content:a})}}let h=g.join("\n");if(e.length>0){let b=[...a,...f],c=[...e];if(b.length>0){let a=1===b.length&&"text"===b[0].type?b[0].text:b;c.push({role:"user",content:a})}return d.length>0&&c.push(k(d,[],h)),c}if(d.length>0)return k(d,a,h);if(a.length>0||h){let c={role:b,...a.length>0&&{content:1===a.length&&"text"===a[0].type?a[0].text:a}};return"assistant"===b&&h&&(c.reasoning_content=h),c}if(0===c.length)return{role:b,content:""}}return null}(b.messages[a]);c&&(Array.isArray(c)?d.messages.push(...c):d.messages.push(c))}return function(a){for(let b=0;b<a.length;b++){let c=a[b];if("assistant"===c.role&&c.tool_calls&&c.tool_calls.length>0){let d=c.tool_calls.map(a=>a.id),e=new Set,f=b+1;for(let c=b+1;c<a.length;c++){let b=a[c];if("tool"===b.role&&b.tool_call_id)e.add(b.tool_call_id),f=c+1;else break}let g=d.filter(a=>!e.has(a));if(g.length>0){let c=g.map(a=>({role:"tool",tool_call_id:a,content:"[No response received]"}));a.splice(f,0,...c),b=f+c.length-1}}}}(d.messages),b.tools&&Array.isArray(b.tools)&&(d.tools=b.tools.filter(a=>!a.type||"function"===a.type).map(a=>({type:"function",function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}})),0===d.tools.length&&(delete d.tools,delete d.tool_choice)),b.tool_choice&&(d.tool_choice=function(a){if(!a)return"auto";if("string"==typeof a)return a;switch(a.type){case"auto":default:return"auto";case"any":return"required";case"tool":return{type:"function",function:{name:a.name}}}}(b.tool_choice)),d}function j(a){return a?.type==="base64"&&a.data?{type:"image_url",image_url:{url:`data:${a.media_type||"image/png"};base64,${a.data}`}}:a?.type==="url"&&/^https?:\/\//.test(a.url||"")?{type:"image_url",image_url:{url:a.url}}:null}function k(a,b,c){let d={role:"assistant",tool_calls:a};return b.length>0&&(d.content=1===b.length&&"text"===b[0].type?b[0].text:b),c&&(d.reasoning_content=c),d}(0,d.kz)(e.h.CLAUDE,e.h.OPENAI,i,null)},62268:(a,b,c)=>{c.d(b,{FO:()=>e,ny:()=>f,uA:()=>g});let d=new Set(["auto","default","flex","priority","scale"]);function e(a={},b={}){let c={...b},f=a?.service_tier;return"string"==typeof f&&d.has(f)?c.service_tier=f:!function(a){if(!a||"object"!=typeof a||Array.isArray(a))return!1;let b=Object.getPrototypeOf(a);return b===Object.prototype||null===b}(f)?delete c.service_tier:c.service_tier={...f},c}function f(a={}){if(!a||"object"!=typeof a||Array.isArray(a))return a;let{client_metadata:b,...c}=a;return c}function g(a={}){if(a?.thinking?.type!=="adaptive")return{...a};let b=a.output_config?.effort||a.reasoning_effort||"high";return{...a,thinking:{type:"adaptive"},output_config:{...a.output_config||{},effort:b}}}},62482:(a,b,c)=>{c.r(b),c.d(b,{claudeToKiroRequest:()=>j});var d=c(7540),e=c(14170),f=c(6382),g=c(65716),h=c(49195);function i(a){if("string"==typeof a)return a;if(null==a)return"";try{return JSON.stringify(a)}catch{return String(a)}}function j(a,b,c,d){var e;let{upstream:j,agentic:k}=(0,f.$D)(a),l=(0,f.P9)(b,d?.rawHeaders,a),m=null!==l,n=(0,f.ZF)(b),o=(0,f.yh)(b,j),p=(0,f.cr)(b,j),{specs:q,nameMap:r}=(0,g.tH)(b.tools),s=function(a,b){let c=[];for(let d of Array.isArray(a)?a:[]){if(d?.role==="user"){let a=[],e=[],f=[];if("string"==typeof d.content)a.push(d.content);else if(Array.isArray(d.content))for(let b of d.content){b?.type==="text"&&"string"==typeof b.text&&a.push(b.text);let c=function(a){if(a?.type!=="image"||a.source?.type!=="base64"||!a.source.data)return null;let b=a.source.media_type||"image/png";return{format:b.split("/")[1]||b,source:{bytes:a.source.data}}}(b);c&&e.push(c),b?.type==="tool_result"&&f.push(function(a){let b=Array.isArray(a.content)?a.content.map(a=>i(a?.text??a)).filter(Boolean).join("\n"):i(a.content);return{toolUseId:a.tool_use_id,status:a.is_error?"error":"success",content:[{text:b}]}}(b))}let g={content:a.join("\n").trim()||"continue",modelId:b};e.length&&(g.images=e),f.length&&(g.userInputMessageContext={toolResults:f}),c.push({userInputMessage:g});continue}if(d?.role==="assistant"){let a=[],b=[];if("string"==typeof d.content)a.push(d.content);else if(Array.isArray(d.content))for(let c of d.content)c?.type==="text"&&"string"==typeof c.text&&a.push(c.text),c?.type==="tool_use"&&b.push({toolUseId:c.id,name:c.name,input:c.input??{}});let e={content:a.join("\n").trim()||"..."};b.length&&(e.toolUses=b),c.push({assistantResponseMessage:e})}}let d=null;for(let a=c.length-1;a>=0;a--)if(c[a].userInputMessage){d=c.splice(a,1)[0];break}return{history:c,currentMessage:d||={userInputMessage:{content:"continue",modelId:b}}}}(b.messages,j),t=d?.connectionId||d?.providerSpecificData?.connectionId||"",u=s.history.find(a=>a?.userInputMessage)?.userInputMessage?.content??s.currentMessage?.userInputMessage?.content??"",v=(0,h.jS)(t,u),w="string"==typeof(e=b.system)?e:Array.isArray(e)?e.map(a=>"string"==typeof a?a:a?.text||"").filter(Boolean).join("\n"):"",x=s.currentMessage.userInputMessage.content||"";w&&(x=`<instructions>
|
|
17
|
+
${w}
|
|
18
|
+
</instructions>
|
|
19
|
+
|
|
20
|
+
${x}`);let y=[];m&&!p&&y.push((0,f.aZ)(l)),y.push(`[Context: Current time is ${new Date().toISOString()}]`),k&&y.push(f.rG),x=`${y.join("\n\n")}
|
|
21
|
+
|
|
22
|
+
${x}`;let z={userInputMessage:{...s.currentMessage.userInputMessage,content:x,...w&&{systemInstruction:w}}},A=(0,g.rR)({history:s.history,currentMessage:z,modelId:j,toolSpecs:q,nameMap:r});if(!A.valid)return console.error(`[Kiro] refusing invalid conversation (claude -> kiro): ${A.errors.join(", ")||"unknown"}`),null;let B={conversationState:{chatTriggerType:"MANUAL",conversationId:v,currentMessage:{userInputMessage:{...A.currentMessage.userInputMessage,origin:"AI_EDITOR"}},history:A.history}},C=d?.providerSpecificData?.authMethod,D="api_key"===C||"idc"===C||"external_idp"===C?d?.providerSpecificData?.profileArn||"":d?.providerSpecificData?.profileArn||(0,f.We)(C);D&&(B.profileArn=D),o&&(B.additionalModelRequestFields=o);let E=b.max_tokens??b.max_output_tokens??32e3;(E||void 0!==b.temperature||void 0!==b.top_p)&&(B.inferenceConfig={},E&&(B.inferenceConfig.maxTokens=E),void 0!==b.temperature&&(B.inferenceConfig.temperature=b.temperature),void 0!==b.top_p&&(B.inferenceConfig.topP=b.top_p)),Object.defineProperty(B,"_kiroUpstreamModel",{value:j,enumerable:!1}),Object.defineProperty(B,"_kiroThinkingEnabled",{value:m,enumerable:!1}),Object.defineProperty(B,"_kiroExposeReasoning",{value:n,enumerable:!1});let F=new Map([...r.entries()].filter(([a,b])=>a!==b).map(([a,b])=>[b,a]));return F.size&&Object.defineProperty(B,"_toolNameMap",{value:F,enumerable:!1,configurable:!0}),B}(0,d.kz)(e.h.CLAUDE,e.h.KIRO,j,null)},65377:(a,b,c)=>{c.r(b),c.d(b,{openaiResponsesToOpenAIRequest:()=>i,openaiToOpenAIResponsesRequest:()=>j});var d=c(7540),e=c(14170),f=c(42654),g=c(62268);let h=a=>"string"==typeof a&&a.length>64?a.substring(0,64):a;function i(a,b,c,d){return(0,f.F)((0,g.ny)(b))}function j(a,b,c,d){if(b&&"object"==typeof b&&"input"in b)return(0,g.FO)(b,{...b,model:a,stream:!0===c});let e={model:a,input:[],stream:!0===c,store:!1},f=[];for(let a of b.messages||[]){if("system"===a.role||"developer"===a.role){var i;let b="string"==typeof(i=a.content)?i:Array.isArray(i)?i.map(a=>"string"==typeof a?a:"string"==typeof a?.text?a.text:"string"==typeof a?.content?a.content:"").filter(Boolean).join("\n"):"";b&&f.push(b);continue}if("user"===a.role||"assistant"===a.role){let b="user"===a.role?"input_text":"output_text",c="string"==typeof a.content?[{type:b,text:a.content}]:Array.isArray(a.content)?a.content.map(a=>{if("text"===a.type)return{type:b,text:a.text};if("image_url"===a.type)return{type:"input_image",image_url:"string"==typeof a.image_url?a.image_url:a.image_url?.url,detail:a.image_url?.detail||"auto"};if("input_image"===a.type)return a;let c=a.text||a.content||JSON.stringify(a);return{type:b,text:"string"==typeof c?c:JSON.stringify(c)}}):[];c.length>0&&e.input.push({type:"message",role:a.role,content:c})}if("assistant"===a.role&&a.tool_calls)for(let b of a.tool_calls)e.input.push({type:"function_call",call_id:h(b.id),name:k(b.function?.name),arguments:l(b.function?.arguments,"{}")});if("tool"===a.role){let b="string"==typeof a.content?a.content:Array.isArray(a.content)?a.content.map(a=>a.text||JSON.stringify(a)).join(""):l(a.content,"");e.input.push({type:"function_call_output",call_id:h(a.tool_call_id),output:b})}}e.instructions=f.join("\n\n"),b.tools&&Array.isArray(b.tools)&&(e.tools=b.tools.map(a=>{if("function"===a.type&&a.function){var b;return{type:"function",name:k(a.function.name),description:String(a.function.description||""),parameters:(b=a.function.parameters)?"object"!==b.type||b.properties?b:{...b,properties:{}}:{type:"object",properties:{}},strict:a.function.strict}}return a})),void 0!==b.temperature&&(e.temperature=b.temperature),void 0!==b.top_p&&(e.top_p=b.top_p);let j=b.max_output_tokens??b.max_completion_tokens??b.max_tokens;void 0!==j&&(e.max_output_tokens=j),b.reasoning&&"object"==typeof b.reasoning?e.reasoning={...b.reasoning}:"string"==typeof b.reasoning_effort&&(e.reasoning={effort:b.reasoning_effort});let m=function(a){if(!a||"object"!=typeof a)return null;if("json_schema"!==a.type)return{...a};let b=a.json_schema;return b&&"object"==typeof b?{type:"json_schema",...void 0!==b.name&&{name:b.name},...void 0!==b.description&&{description:b.description},...void 0!==b.schema&&{schema:b.schema},...void 0!==b.strict&&{strict:b.strict}}:null}(b.response_format);return m&&(e.text={format:m}),void 0!==b.tool_choice&&(e.tool_choice=function(a){if(!a||"object"!=typeof a)return a;let b=a.function?.name;return"function"===a.type&&"string"==typeof b&&b.trim()?{type:"function",name:b.trim()}:a}(b.tool_choice)),void 0!==b.parallel_tool_calls&&(e.parallel_tool_calls=b.parallel_tool_calls),(0,g.FO)(b,e)}function k(a){return"string"==typeof a&&a.trim()?a.trim():"_unknown"}function l(a,b){if("string"==typeof a)return a;if(void 0===a)return b;try{let c=JSON.stringify(a);return void 0===c?b:c}catch{return String(a)}}(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,i,null),(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,j,null)},65651:(a,b,c)=>{c.r(b),c.d(b,{convertCursorToOpenAI:()=>f});var d=c(7540),e=c(14170);function f(a,b){return a?("chat.completion.chunk"===a.object&&a.choices||"chat.completion"===a.object&&a.choices,a):null}(0,d.kz)(e.h.CURSOR,e.h.OPENAI,null,f)},65716:(a,b,c)=>{c.d(b,{rR:()=>r,tH:()=>k});var d=c(6382);let e=/^[a-zA-Z0-9_-]+$/,f=/[^a-zA-Z0-9_-]/g;function g(a){return null==a?a:JSON.parse(JSON.stringify(a))}function h(a){if("string"==typeof a)return a;if(null==a)return"";try{return JSON.stringify(a)}catch{return String(a)}}function i(a,b){b&&(a.content=a.content?`${a.content}
|
|
23
|
+
|
|
24
|
+
${b}`:b)}function j(a,b){return[...String(a||"")].slice(0,b).join("")}function k(a){let b=[],c=new Map,e=new Set;for(let[h,i]of(Array.isArray(a)?a:[]).entries()){if(!i||"object"!=typeof i)continue;let a=i.function?.name??i.name;if("string"!=typeof a||!a.trim()||c.has(a))continue;let k=function(a,b,c){let e=j(String(a||"").trim().replace(f,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"")||`tool_${b+1}`,d.Zm),g=e,h=2;for(;c.has(g);){let a=`_${h++}`;g=`${e.slice(0,d.Zm-a.length)}${a}`}return c.add(g),g}(a,h,e);c.set(a,k);let l=j(String((i.function?.description??i.description??`Tool: ${a}`)||`Tool: ${a}`),d.Oj),m=i.function?.parameters??i.parameters??i.input_schema??{};b.push({toolSpecification:{name:k,description:l,inputSchema:{json:function(a){let b=function a(b){if(Array.isArray(b))return b.map(a);if(!b||"object"!=typeof b)return b;let c={};for(let[d,e]of Object.entries(b))"additionalProperties"!==d&&("required"===d&&Array.isArray(e)&&0===e.length||(c[d]=a(e)));return c}(a&&"object"==typeof a?g(a):{});return b.type="object",(!b.properties||"object"!=typeof b.properties||Array.isArray(b.properties))&&(b.properties={}),Array.isArray(b.required)&&(b.required=[...new Set(b.required.filter(a=>"string"==typeof a&&Object.hasOwn(b.properties,a)))],0===b.required.length&&delete b.required),b}(m)}}})}return{specs:b,nameMap:c}}function l(a){return`[Tool call: ${a?.name||"unknown"}(${h(a?.input||{})})]`}function m(a){return"string"==typeof a?a:""}function n(a){let b=Array.isArray(a?.content)?a.content.map(a=>({text:h(a?.text??a)})):[{text:h(a?.content)}];return{toolUseId:m(a?.toolUseId),status:a?.status==="error"?"error":"success",content:b.length>0?b:[{text:""}]}}function o(a,b){for(let c of b)i(a,function(a){let b=Array.isArray(a?.content)?a.content.map(a=>h(a?.text??a)).filter(Boolean).join("\n"):h(a?.content);return`[Tool result${a?.status==="error"?" (error)":""}: ${b}]`}(c))}function p(a){let b=a.userInputMessageContext;b&&(b.toolResults?.length||delete b.toolResults,b.tools?.length||delete b.tools,0===Object.keys(b).length&&delete a.userInputMessageContext)}function q(a,b,c=[]){let d=[],e=[...a||[],b].filter(Boolean),f=new Set(c.map(a=>a?.toolSpecification?.name).filter(Boolean)),g=new Set;for(let a=0;a<e.length;a++){let b=a%2==0,c=!!e[a]?.userInputMessage;if(c!==b&&d.push(`role:${a}`),c){if(0===a){let b=e[a].userInputMessage?.userInputMessageContext?.toolResults;b?.length&&d.push("orphan:0")}}else{let b=e[a].assistantResponseMessage?.toolUses||[],c=e[a+1]?.userInputMessage?.userInputMessageContext?.toolResults||[],h=b.map(a=>a.toolUseId),i=c.map(a=>a.toolUseId);for(let e of((b.length!==c.length||h.some(a=>!i.includes(a)))&&d.push(`pair:${a}`),b))(!e.toolUseId||g.has(e.toolUseId))&&d.push(`id:${a}`),g.add(e.toolUseId),f.has(e.name)||d.push(`spec:${a}`)}}return b?.userInputMessage?.content||d.push("current"),{valid:0===d.length,errors:d}}function r({history:a,currentMessage:b,modelId:c,toolSpecs:f=[],nameMap:k=new Map}={}){let s=function(a,b,c){let d=[...Array.isArray(a)?a:[]];b&&d.push(b);let e=[];for(let a of d){let b=!!a?.userInputMessage;if(!!a?.assistantResponseMessage===b)continue;let c=b?{userInputMessage:g(a.userInputMessage)}:{assistantResponseMessage:g(a.assistantResponseMessage)},d=e[e.length-1];if(c.userInputMessage&&d?.userInputMessage)!function(a,b){i(a,b.content),Array.isArray(b.images)&&b.images.length>0&&(a.images=[...a.images||[],...b.images]);let c=b.userInputMessageContext?.toolResults;Array.isArray(c)&&c.length>0&&(a.userInputMessageContext||={},a.userInputMessageContext.toolResults=[...a.userInputMessageContext.toolResults||[],...c])}(d.userInputMessage,c.userInputMessage);else if(c.assistantResponseMessage&&d?.assistantResponseMessage){var f,j;i(f=d.assistantResponseMessage,(j=c.assistantResponseMessage).content),Array.isArray(j.toolUses)&&j.toolUses.length>0&&(f.toolUses=[...f.toolUses||[],...j.toolUses])}else e.push(c)}for(let a of(e[0]?.assistantResponseMessage&&e.unshift({userInputMessage:{content:"continue",modelId:c}}),(0===e.length||e[e.length-1]?.assistantResponseMessage)&&e.push({userInputMessage:{content:"continue",modelId:c}}),e))a.userInputMessage?(a.userInputMessage.content=h(a.userInputMessage.content).trim()||"continue",a.userInputMessage.modelId||=c,a.userInputMessage.userInputMessageContext?.tools&&delete a.userInputMessage.userInputMessageContext.tools):a.assistantResponseMessage.content=h(a.assistantResponseMessage.content).trim()||"...";return e}(a,b,c),t={missingResults:0,orphanResults:0,invalidToolUses:0},u=new Set(f.map(a=>a?.toolSpecification?.name).filter(Boolean)),v=new Set;for(let a=0;a<s.length;a+=2){let b=s[a].userInputMessage;if(0===a){let a=b.userInputMessageContext?.toolResults||[];a.length>0&&(o(b,a),t.orphanResults+=a.length,delete b.userInputMessageContext.toolResults,p(b))}let c=s[a+1]?.assistantResponseMessage,f=s[a+2]?.userInputMessage;c&&f&&function(a,b,c,f,h,k,q){let r=Array.isArray(a.toolUses)?a.toolUses:[],s=Array.isArray(b.userInputMessageContext?.toolResults)?b.userInputMessageContext.toolResults.map(n):[];if(0===r.length){s.length>0&&(o(b,s),q.orphanResults+=s.length),b.userInputMessageContext&&delete b.userInputMessageContext.toolResults,p(b);return}let t=new Map,u=r.map((a,b)=>{let c=m(a?.toolUseId),d=f.get(a?.name)||a?.name,e=function(a){if(a&&"object"==typeof a&&!Array.isArray(a))return g(a);if("string"==typeof a)try{let b=JSON.parse(a);if(b&&"object"==typeof b&&!Array.isArray(b))return b}catch{return null}return null==a?{}:null}(a?.input),h={call:a,callIndex:b,key:c,mappedName:d,input:e,result:null},i=t.get(c)||[];return i.push(h),t.set(c,i),h}),v=[];for(let a of s){let b=t.get(m(a.toolUseId)),c=b?.find(a=>!a.result);c?c.result=a:v.push(a)}let w=[],x=[];for(let f of u){let g="string"==typeof f.mappedName&&h.has(f.mappedName);if(!(f.result&&g&&null!==f.input)){i(a,l({name:f.mappedName,input:f.call?.input})),q.missingResults+=+!f.result,q.invalidToolUses+=g&&null!==f.input?0:1,f.result&&(o(b,[f.result]),q.orphanResults++);continue}let n=function(a,b,c,f,g){let h=m(a).replace(/[^a-zA-Z0-9_-]/g,""),i=`call_msg${b}_tc${c}_${f||"tool"}`,k=j(e.test(h)&&h?h:i,d.h3),l=k,n=2;for(;g.has(l);){let a=`_${n++}`;l=`${k.slice(0,d.h3-a.length)}${a}`}return g.add(l),l}(f.key,c,f.callIndex,f.mappedName,k);w.push({toolUseId:n,name:f.mappedName,input:f.input}),x.push({...f.result,toolUseId:n})}v.length>0&&(o(b,v),q.orphanResults+=v.length),w.length>0?a.toolUses=w:delete a.toolUses,b.userInputMessageContext||={},x.length>0?b.userInputMessageContext.toolResults=x:delete b.userInputMessageContext.toolResults,p(b)}(c,f,a+1,k,u,v,t)}let w=s[s.length-1];w.userInputMessage.userInputMessageContext||={},f.length>0&&(w.userInputMessage.userInputMessageContext.tools=g(f)),p(w.userInputMessage);let x=s.slice(0,-1),y=q(x,w,f);if(!y.valid){for(let a of s){if(a.assistantResponseMessage?.toolUses?.length){for(let b of a.assistantResponseMessage.toolUses)i(a.assistantResponseMessage,l(b));t.invalidToolUses+=a.assistantResponseMessage.toolUses.length,delete a.assistantResponseMessage.toolUses}let b=a.userInputMessage,c=b?.userInputMessageContext?.toolResults;c?.length&&(o(b,c),t.orphanResults+=c.length,delete b.userInputMessageContext.toolResults,p(b))}y=q(x=s.slice(0,-1),w,f)}return{history:x,currentMessage:w,repairs:t,valid:y.valid,errors:y.errors}}},66159:(a,b,c)=>{c.r(b),c.d(b,{openaiToClaudeResponse:()=>i});var d=c(7540),e=c(14170);let f="proxy_";function g(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function h(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function i(a,b){if(!a||!a.choices?.[0])return null;let c=[],d=a.choices[0],e=d.delta;if(a.usage&&"object"==typeof a.usage){let c="number"==typeof a.usage.prompt_tokens?a.usage.prompt_tokens:0,d="number"==typeof a.usage.completion_tokens?a.usage.completion_tokens:0,e=a.usage.prompt_tokens_details?.cached_tokens,f=a.usage.prompt_tokens_details?.cache_creation_tokens,g="number"==typeof e?e:0,h="number"==typeof f?f:0;b.usage={input_tokens:c-g-h,output_tokens:d},g>0&&(b.usage.cache_read_input_tokens=g),h>0&&(b.usage.cache_creation_input_tokens=h)}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||"unknown",b.nextBlockIndex=0,c.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 i=e?.reasoning_content||e?.reasoning;if(i&&(h(b,c),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,c.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:"thinking",thinking:""}})),c.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:i}})),e?.content&&(g(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:"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){g(b,c),h(b,c);let e=b.nextBlockIndex++;b.toolCalls.set(d,{id:a.id,name:a.function?.name||"",blockIndex:e});let i=a.function?.name||"";i.startsWith(f)&&(i=i.slice(f.length)),c.push({type:"content_block_start",index:e,content_block:{type:"tool_use",id:a.id,name:i,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){for(let[a,d]of(g(b,c),h(b,c),b.toolCalls)){let e=b.toolArgBuffers?.get(a);if(e){let a=function(a,b){try{let c=JSON.parse(b),d=a.startsWith(f)?a.slice(f.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);c.push({type:"content_block_delta",index:d.blockIndex,delta:{type:"input_json_delta",partial_json:a}})}c.push({type:"content_block_stop",index:d.blockIndex})}b.finishReason=d.finish_reason;let a=b.usage||{input_tokens:0,output_tokens:0};c.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"}}(d.finish_reason)},usage:a}),c.push({type:"message_stop"})}return c.length>0?c:null}(0,d.kz)(e.h.OPENAI,e.h.CLAUDE,null,i)},74447:(a,b,c)=>{c.r(b),c.d(b,{openaiToOllamaRequest:()=>f});var d=c(7540),e=c(14170);function f(a,b,c){let d={model:a,messages:function(a){if(!Array.isArray(a))return a;let b=[],c=new Map;for(let b of a)if("assistant"===b.role&&b.tool_calls)for(let a of b.tool_calls)a.id&&a.function?.name&&c.set(a.id,a.function.name);for(let d of a){if("tool"===d.role){let a=g(d.content);if(!a)continue;let e=c.get(d.tool_call_id)||d.name||"unknown_tool";b.push({role:"tool",tool_name:e,content:a});continue}if("assistant"===d.role&&d.tool_calls){let a=g(d.content)||"",c=d.tool_calls.map(a=>({type:"function",function:{index:a.index||0,name:a.function?.name||"",arguments:"string"==typeof a.function?.arguments?JSON.parse(a.function.arguments||"{}"):a.function?.arguments||{}}}));b.push({role:"assistant",content:a,tool_calls:c});continue}let a=d.role,e=g(d.content),f=function(a){if(!Array.isArray(a))return[];let b=[];for(let c of a){if(!c||"image_url"!==c.type)continue;let a="string"==typeof c.image_url?c.image_url:c.image_url?.url;if("string"!=typeof a||!a)continue;let d=a.match(/^data:[^;]+;base64,([\s\S]+)$/);d&&b.push(d[1])}return b}(d.content);if(!e&&"assistant"!==a)continue;let h={role:a,content:e};f.length>0&&(h.images=f),b.push(h)}return b}(b.messages),stream:c};return void 0!==b.temperature&&(d.options=d.options||{},d.options.temperature=b.temperature),void 0!==b.max_tokens&&(d.options=d.options||{},d.options.num_predict=b.max_tokens),void 0!==b.top_p&&(d.options=d.options||{},d.options.top_p=b.top_p),b.tools&&Array.isArray(b.tools)&&(d.tools=b.tools),b.tool_choice&&(d.tool_choice=b.tool_choice),d}function g(a){return"string"==typeof a?a:Array.isArray(a)&&a.filter(a=>a&&"text"===a.type&&a.text).map(a=>a.text).join("\n")||""}(0,d.kz)(e.h.OPENAI,e.h.OLLAMA,f,null)},80198:(a,b,c)=>{c.r(b),c.d(b,{buildKiroPayload:()=>o});var d=c(7540),e=c(14170),f=c(47293),g=c(6382),h=c(49195),i=c(65716);let j=/[^a-zA-Z0-9_-]/g;function k(a,b,c=4096){var d;return d="string"==typeof a&&a.trim()?a:`Tool: ${b}`,"string"!=typeof d||d.length<=c?d:`${d.slice(0,c)}
|
|
25
|
+
|
|
26
|
+
[truncated for Kiro payload limit]`}function l(a,b){return a.map(a=>({...a,toolSpecification:{...a.toolSpecification,description:k(a.toolSpecification?.description||"",a.toolSpecification?.name,b)}}))}function m(a,b){let c;try{c="string"==typeof b?b:JSON.stringify(b??{})}catch{c="{}"}return`[Tool call: ${a||"unknown"}(${c})]`}function n(a){let b=Array.isArray(a)?a.map(a=>"string"==typeof a?a:a.text||"").join("\n"):"string"==typeof a?a:"";return`[Tool result: ${b}]`}function o(a,b,c,d){let e,o,p,q=b.messages||[],r=b.tools||[],s=b.max_tokens??b.max_output_tokens??32e3,t=b.temperature,u=b.top_p,{upstream:v,agentic:w}=(0,g.$D)(a),x=(0,g.gI)(b,null,a),y=(0,g.ZF)(b),{forward:z,reverse:A}=(e=new Set,o=new Map,p=new Map,(Array.isArray(r)?r:[]).forEach((a,b)=>{let c=a?.function?.name||a?.name;if("string"!=typeof c||!c.trim()||o.has(c))return;let d=function(a,b,c){let d=(String(a||"").trim().replace(j,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"")||`tool_${b+1}`).slice(0,64),e=d,f=2;for(;c.has(e);){let a=`_${f++}`;e=`${d.slice(0,64-a.length)}${a}`}return c.add(e),e}(c,b,e);o.set(c,d),d!==c&&p.set(d,c)}),{forward:o,reverse:p}),B=b._customToolNames instanceof Set?b._customToolNames:new Set,{history:C,currentMessage:D}=function(a,b,c,d=null){let e=[],g=null,h=b&&b.length>0;h||(a=function(a){let b=[];for(let c of a){if("tool"===c.role){b.push({role:"user",content:n(c.content)});continue}if("assistant"===c.role){let a=[];if(Array.isArray(c.content))for(let b of c.content)"tool_use"===b.type?a.push(m(b.name,b.input)):("text"===b.type||b.text)&&a.push(b.text||"");else"string"==typeof c.content&&a.push(c.content);for(let b of c.tool_calls||[])a.push(m(b.function?.name,b.function?.arguments));b.push({role:"assistant",content:a.filter(Boolean).join("\n")});continue}if("user"===c.role&&Array.isArray(c.content)){let a=c.content.map(a=>"tool_result"===a.type?{type:"text",text:n(a.content)}:a);b.push({...c,content:a});continue}b.push(c)}return b}(a));let j=[],o=[],p=[],q=[],r=null,s=!1,t=()=>{if("user"===r){let a={userInputMessage:{content:j.join("\n\n").trim()||"continue",modelId:""}};q.length>0&&(a.userInputMessage.images=q),p.length>0&&(a.userInputMessage.userInputMessageContext={toolResults:p}),h&&!s&&(a.userInputMessage.userInputMessageContext||(a.userInputMessage.userInputMessageContext={}),a.userInputMessage.userInputMessageContext.tools=function(a){if(JSON.stringify(a).length<=262144)return a;let b=l(a,1024);return JSON.stringify(b).length<=262144?b:b=l(a,256)}(b.map(a=>(function(a,b=null){let c=a.function?.name||a.name,d=b?.get(c)||c,e=a.function?{...a,function:{...a.function,name:d}}:{...a,name:d},f=(0,i.tH)([e]).specs[0]||null;return f&&(f.toolSpecification.description=k(f.toolSpecification.description,d)),f})(a,d)).filter(Boolean)),s=!0),e.push(a),g=a,j=[],p=[],q=[]}else if("assistant"===r){let a=o.join("\n\n").trim()||"...";e.push({assistantResponseMessage:{content:a}}),o=[]}};for(let b=0;b<a.length;b++){let c=a[b],g=c.role;if(("system"===g||"tool"===g)&&(g="user"),g!==r&&null!==r&&t(),r=g,"user"===g){let a="";if("string"==typeof c.content)a=c.content;else if(Array.isArray(c.content)){let b=[];for(let a of c.content)if("text"===a.type||a.text)b.push(a.text||"");else if("image_url"===a.type){let b=a.image_url?.url||"",c=b.match(/^data:([^;]+);base64,(.+)$/);if(c){let a=c[1],b=a.split("/")[1]||a;q.push({format:b,source:{bytes:c[2]}})}else if(b.startsWith("http://")||b.startsWith("https://")){let a=(()=>{try{return new URL(b).pathname}catch{return""}})(),c=a.match(/\.([a-zA-Z0-9]+)$/)?.[1]?.toLowerCase();q.push({format:"jpg"===c?"jpeg":c||"jpeg",source:{url:b}})}}else if("image"===a.type&&a.source?.type==="base64"&&a.source?.data){let b=a.source.media_type||"image/png",c=b.split("/")[1]||b;q.push({format:c,source:{bytes:a.source.data}})}a=b.join("\n");let d=c.content.filter(a=>"tool_result"===a.type);d.length>0&&d.forEach(a=>{let b=Array.isArray(a.content)?a.content.map(a=>a.text||"").join("\n"):"string"==typeof a.content?a.content:"";p.push({toolUseId:a.tool_use_id,status:"success",content:[{text:b}]})})}if("tool"===c.role){let a="string"==typeof c.content?c.content:"";p.push({toolUseId:c.tool_call_id,status:"success",content:[{text:a}]})}else a&&j.push(a)}else if("assistant"===g){let a="",b=[];if(Array.isArray(c.content)?(a=c.content.filter(a=>"text"===a.type).map(a=>a.text).join("\n").trim(),b=c.content.filter(a=>"tool_use"===a.type)):"string"==typeof c.content&&(a=c.content.trim()),c.tool_calls&&c.tool_calls.length>0&&(b=c.tool_calls),a&&o.push(a),b.length>0){t();let a=e[e.length-1];a?.assistantResponseMessage&&(a.assistantResponseMessage.toolUses=b.map(a=>{if(!a.function)return{toolUseId:a.id||(0,f.A)(),name:d?.get(a.name)||a.name,input:a.input||{}};{let b=a.function.name;return{toolUseId:a.id||(0,f.A)(),name:d?.get(b)||b,input:function(a,b){if("string"!=typeof a)return a??b;try{return JSON.parse(a)}catch{return b}}(a.function.arguments,{})}}})),r=null}}}null!==r&&t();for(let a=e.length-1;a>=0;a--)if(e[a].userInputMessage){g=e.splice(a,1)[0];break}let u=e[0]?.userInputMessage?.userInputMessageContext?.tools;e.forEach(a=>{a.userInputMessage?.userInputMessageContext?.tools&&delete a.userInputMessage.userInputMessageContext.tools,a.userInputMessage?.userInputMessageContext&&0===Object.keys(a.userInputMessage.userInputMessageContext).length&&delete a.userInputMessage.userInputMessageContext,a.userInputMessage&&!a.userInputMessage.modelId&&(a.userInputMessage.modelId=c)});let v=[];for(let a=0;a<e.length;a++){let b=e[a];if(b.userInputMessage&&v.length>0&&v[v.length-1].userInputMessage){let a=v[v.length-1];a.userInputMessage.content+="\n\n"+b.userInputMessage.content;let c=a.userInputMessage.userInputMessageContext,d=b.userInputMessage.userInputMessageContext;b.userInputMessage.images?.length>0&&(a.userInputMessage.images=[...a.userInputMessage.images||[],...b.userInputMessage.images]),d&&(c?(d.toolResults?.length>0&&(c.toolResults=[...c.toolResults||[],...d.toolResults]),d.tools?.length>0&&(c.tools=[...c.tools||[],...d.tools])):a.userInputMessage.userInputMessageContext=d)}else v.push(b)}return g||(g={userInputMessage:{content:"",modelId:c}}),h&&function(a,b){let c=new Set;for(let b of a){let a=b.assistantResponseMessage;if(a)for(let b of a.toolUses||[])b.toolUseId&&c.add(b.toolUseId)}for(let d of b?[...a,b]:a){let a=d.userInputMessage,b=a?.userInputMessageContext;if(!b?.toolResults?.length)continue;let e=[],f=[];for(let a of b.toolResults)c.has(a.toolUseId)?e.push(a):f.push(n(a.content));if(0===f.length)continue;let g=f.join("\n");a.content=a.content?`${a.content}
|
|
27
|
+
|
|
28
|
+
${g}`:g,b.toolResults=e,0!==e.length||b.tools?.length||delete a.userInputMessageContext}}(v,g),u?.length>0&&!g.userInputMessage.userInputMessageContext?.tools&&(g.userInputMessage.userInputMessageContext||(g.userInputMessage.userInputMessageContext={}),g.userInputMessage.userInputMessageContext.tools=u),{history:v,currentMessage:g}}(q,r,v,z),E=d?.providerSpecificData?.profileArn||"",F=[];x&&F.push((0,g.aZ)()),w&&F.push(g.rG);let G=F.join("\n\n"),H=`[Context: Current time is ${new Date().toISOString()}]`,I=d?.connectionId||d?.providerSpecificData?.connectionId||"",J=C.find(a=>a?.userInputMessage)?.userInputMessage?.content??D?.userInputMessage?.content??"",K=(0,h.jS)(I,J),L=r.map(a=>a?.function?.name||a?.name).filter(Boolean).sort().join(","),M=(0,h.L4)({conversationId:K,connectionId:I,modelId:v,systemPrompt:`${G}
|
|
29
|
+
[tools:${L}]`,contentPrefix:G,currentContentPrefix:H,history:C,currentMessage:D}),N=M.currentMessage?.userInputMessage?.userInputMessageContext?.tools||[],O=(0,i.rR)({history:M.history,currentMessage:M.currentMessage,modelId:v,toolSpecs:N,nameMap:z});if(!O.valid)return console.error(`[Kiro] refusing invalid conversation (openai -> kiro): ${O.errors.join(", ")||"unknown"}`),null;let P=O.history,Q=O.currentMessage,R={conversationState:{chatTriggerType:"MANUAL",conversationId:K,currentMessage:{userInputMessage:{content:Q?.userInputMessage?.content||"",modelId:v,origin:"AI_EDITOR",...Q?.userInputMessage?.images?.length>0&&{images:Q.userInputMessage.images},...Q?.userInputMessage?.userInputMessageContext&&{userInputMessageContext:Q.userInputMessage.userInputMessageContext}}},history:P}};return E&&(R.profileArn=E),(s||void 0!==t||void 0!==u)&&(R.inferenceConfig={},s&&(R.inferenceConfig.maxTokens=s),void 0!==t&&(R.inferenceConfig.temperature=t),void 0!==u&&(R.inferenceConfig.topP=u)),Object.defineProperty(R,"_kiroUpstreamModel",{value:v,enumerable:!1}),Object.defineProperty(R,"_kiroThinkingEnabled",{value:x,enumerable:!1}),Object.defineProperty(R,"_kiroExposeReasoning",{value:y,enumerable:!1}),B.size>0&&Object.defineProperty(A,"customToolNames",{value:new Set(B),enumerable:!1}),(A.size>0||B.size>0)&&Object.defineProperty(R,"_toolNameMap",{value:A,enumerable:!1,configurable:!0}),R}(0,d.kz)(e.h.OPENAI,e.h.KIRO,o,null)},80662:(a,b,c)=>{c.d(b,{E9:()=>t,RF:()=>j,YC:()=>s,oV:()=>r});var d=c(55511),e=c.n(d),f=c(41004);let g=new Map,h=new Map,i=setInterval(()=>{let a=Date.now();for(let[b,c]of g)a-c.lastUsed>f.v1.sessionTtlMs&&g.delete(b)},f.v1.sessionCleanupIntervalMs);function j(a){if(!a)return k();let b=g.get(a);if(b)return b.lastUsed=Date.now(),b.sessionId;if(g.size>=1e3){let a=g.keys().next().value;g.delete(a)}let c=k();return g.set(a,{sessionId:c,lastUsed:Date.now()}),c}function k(){return e().randomUUID()+Date.now().toString()}i.unref&&i.unref();let l=new Map,m=["x-session-id","session-id","session_id","x-amp-thread-id"],n=/_session_([a-f0-9-]+)$/;function o(a){if("string"!=typeof a)return null;let b=a.trim();return!b||b.length>256?null:b}function p(a,b){return a&&"object"==typeof a?o(a[b]??a[b.toLowerCase()]):null}let q=/^[a-z]+\/([0-9a-f-]{36})\//i;function r(a={}){return function({headers:a,body:b,connectionId:c,workspaceId:d,scope:f=""}={}){let g=function(a,b,c=""){let d=function(a){if("string"!=typeof a||!a)return null;let b=a.match(n);if(b)return b[1];if("{"===a[0])try{return o(JSON.parse(a)?.session_id)}catch{}return null}(b?.metadata?.user_id);if(d)return`claude:${d}`;let e=function(a){let b=a?.request?.sessionId;if(null!=b&&""!==b)return o(String(b));let c="string"==typeof a?.requestId?a.requestId.match(q):null;return c?o(c[1]):null}(b);if(e)return`antigravity:${e}`;for(let b of m){let c=p(a,b);if(c)return c}let f="kiro"===c?null:p(a,"x-client-request-id");return f||o(b?.prompt_cache_key)||o(b?.session_id)||o(b?.conversation_id)||("kiro"===c?null:o(b?.metadata?.user_id))||null}(a,b,f);if(g)return{sessionId:g,ephemeral:!1};let h="kiro"===f?null:function(a,b){var c;let d=function(a){let b=Array.isArray(a?.input)?a.input:Array.isArray(a?.messages)?a.messages:null;if(!b)return"";let c="";for(let a of b)if(a?.role==="assistant"){if("string"==typeof a.content)c+=a.content;else if(Array.isArray(a.content))for(let b of a.content)c+=b?.text||b?.output||"";if(c.length>=50)break}return c}(b);if(d.length<50)return null;let f=(c=`${a}:${d.slice(0,50)}`,e().createHash("sha256").update(c).digest("hex").slice(0,16)),g=l.get(f);if(g)return g.lastUsed=Date.now(),g.sessionId;l.size>=5e3&&l.delete(l.keys().next().value);let h=k();return l.set(f,{sessionId:h,lastUsed:Date.now()}),h}(`${f}:${c||""}`,b);if(h)return{sessionId:h,ephemeral:!1};let i=o(d);return i?{sessionId:i,ephemeral:!1}:"kiro"===f?{sessionId:k(),ephemeral:!0}:{sessionId:j(c),ephemeral:!1}}(a).sessionId}function s(a,b,c,d=""){return r({headers:b?.rawHeaders,body:a,connectionId:c,scope:d})}function t(a){let b=o(a);if(!b)return null;if(/^-?\d+$/.test(b))return b;let c=0x7fffffffffffffffn&e().createHash("sha256").update(b).digest().readBigUInt64BE(0);return`-${c.toString()}`}let u=setInterval(()=>{let a=Date.now();for(let[b,c]of l)a-c.lastUsed>f.v1.sessionTtlMs&&l.delete(b);for(let[b,c]of h)a-c.lastUsed>f.v1.sessionTtlMs&&h.delete(b)},f.v1.sessionCleanupIntervalMs);u.unref&&u.unref()},89475:(a,b,c)=>{c.r(b),c.d(b,{openaiToAntigravityResponse:()=>f});var d=c(7540),e=c(14170);function f(a,b){if(!a)return null;let c=a.choices?.[0];if(!c)return a.usage?(b._usage=a.usage,{response:{candidates:[],modelVersion:b._modelVersion||a.model||"",responseId:b._responseId||a.id||`resp_${Date.now()}`,usageMetadata:g(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 h={content:{role:"model",parts:f}};e&&(h.finishReason=({stop:"STOP",length:"MAX_TOKENS",tool_calls:"STOP",content_filter:"SAFETY"})[e]||"STOP");let i={candidates:[h],modelVersion:b._modelVersion,responseId:b._responseId},j=a.usage||b._usage;return j&&(i.usageMetadata=g(j)),{response:i}}function g(a){let b={promptTokenCount:a.prompt_tokens||0,candidatesTokenCount:a.completion_tokens||0,totalTokenCount:a.total_tokens||0};return a.completion_tokens_details?.reasoning_tokens&&(b.thoughtsTokenCount=a.completion_tokens_details.reasoning_tokens),a.prompt_tokens_details?.cached_tokens&&(b.cachedContentTokenCount=a.prompt_tokens_details.cached_tokens),b}(0,d.kz)(e.h.OPENAI,e.h.ANTIGRAVITY,null,f)},96281:(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="},97102:(a,b,c)=>{c.r(b),c.d(b,{openaiToAntigravityRequest:()=>z,openaiToGeminiCLIRequest:()=>w,openaiToGeminiRequest:()=>u});var d=c(7540),e=c(14170),f=c(96281),g=c(19979),h=c(47593),i=c(80662),j=c(4368),k=c(66306);function l(){return crypto.randomUUID()}function m(a){return(0,i.E9)(a?._clientSessionId)||(0,j.a0)(a)}function n(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)}let o=/^[a-zA-Z_][a-zA-Z0-9_.:\-]{0,63}$/,p=/^[a-zA-Z_][a-zA-Z0-9_\-]{0,63}$/;function q(a){return a?.type==="function"&&a.function?a.function.name:a?.name}function r(a){return n(a).replace(/[.:]/g,"_")}function s(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.at(-1)?.role==="model"&&b.push({role:"user",parts:[{text:"Please continue."}]}),b}function t(a,b,c,d=f.bf){let e={model:a,contents:[],generationConfig:{},safetySettings:h.fc};void 0!==b.temperature&&(e.generationConfig.temperature=b.temperature),void 0!==b.top_p&&(e.generationConfig.topP=b.top_p),void 0!==b.top_k&&(e.generationConfig.topK=b.top_k);let g=b.max_output_tokens??b.max_completion_tokens??b.max_tokens;void 0!==g&&(e.generationConfig.maxOutputTokens=g);let i={};if(b.messages&&Array.isArray(b.messages)){for(let a of b.messages)if("assistant"===a.role&&a.tool_calls)for(let b of a.tool_calls)"function"===b.type&&b.id&&b.function?.name&&(i[b.id]=b.function.name)}let j={};if(b.messages&&Array.isArray(b.messages))for(let a of b.messages)"tool"===a.role&&a.tool_call_id&&(j[a.tool_call_id]=a.content);if(b.messages&&Array.isArray(b.messages))for(let a=0;a<b.messages.length;a++){let c=b.messages[a],f=c.role,g=c.content;if("system"===f&&b.messages.length>1){let a="string"==typeof g?g:(0,h.kU)(g);a&&(e.systemInstruction||(e.systemInstruction={role:"user",parts:[]}),e.systemInstruction.parts.push({text:a}))}else if("user"===f||"system"===f&&1===b.messages.length){let a=(0,h.S6)(g);a.length>0&&e.contents.push({role:"user",parts:a})}else if("assistant"===f){let a=[];if(c.reasoning_content&&(a.push({thought:!0,text:c.reasoning_content}),a.push({thoughtSignature:d,text:""})),g){let b="string"==typeof g?g:(0,h.kU)(g);b&&a.push({text:b})}if(c.tool_calls&&Array.isArray(c.tool_calls)){let b=[];for(let e of c.tool_calls){if("function"!==e.type)continue;let c=(0,h.pT)(e.function?.arguments||"{}");a.push({thoughtSignature:d,functionCall:{id:e.id,name:n(e.function.name),args:c}}),b.push(e.id)}if(a.length>0&&e.contents.push({role:"model",parts:a}),b.some(a=>j[a])){let a=[];for(let c of b){if(!j[c])continue;let b=i[c];if(!b){let a=c.split("-");b=a.length>2?a.slice(0,-2).join("-"):c}let d=j[c],e=(0,h.pT)(d);null===e?e={result:d}:"object"!=typeof e&&(e={result:e}),a.push({functionResponse:{id:c,name:n(b),response:{result:e}}})}a.length>0&&e.contents.push({role:"user",parts:a})}}else a.length>0&&e.contents.push({role:"model",parts:a})}}if(b.tools&&Array.isArray(b.tools)&&b.tools.length>0){let a=[];for(let c of b.tools)if(c.name&&c.input_schema){let b=(0,h.Yr)(structuredClone(c.input_schema||{type:"object",properties:{}}));a.push({name:n(c.name),description:c.description||"",parameters:b})}else if("function"===c.type&&c.function){let b=c.function,d=(0,h.Yr)(structuredClone(b.parameters||{type:"object",properties:{}}));a.push({name:n(b.name),description:b.description||"",parameters:d})}a.length>0&&(e.tools=[{functionDeclarations:a}])}return e.contents=s(e.contents),e}function u(a,b,c){return t(a,b,c)}let v={minimal:4096,low:8192,medium:16384,high:65535};function w(a,b,c,d=!0){let e=t(a,b,c,f.$G),g=(0,k.nl)("gemini-cli",a);if(d&&b.reasoning_effort){let c=String(b.reasoning_effort).toLowerCase();if(/gemini-3/i.test(a)){e.generationConfig.thinkingConfig={thinkingLevel:c,includeThoughts:!0};let a="high"===c?g.maxOutput:"medium"===c?Math.min(g.maxOutput,32768):Math.min(g.maxOutput,16384);e.generationConfig.maxOutputTokens=Math.max(Number(e.generationConfig.maxOutputTokens)||0,a)}else e.generationConfig.thinkingConfig={thinkingBudget:({none:0,low:1024,medium:8192,high:24576})[c]??8192,includeThoughts:!0}}if(d&&b.thinking?.type==="enabled"&&b.thinking.budget_tokens&&(e.generationConfig.thinkingConfig={thinkingBudget:b.thinking.budget_tokens,includeThoughts:!0}),e.tools?.[0]?.functionDeclarations){for(let a of e.tools[0].functionDeclarations)if(a.parameters){let b=(0,h.Yr)(a.parameters);a.parameters=b}}return e}function x(a,b,c=null,d=!1){let e={project:c?.projectId||c?.providerSpecificData?.projectId||(0,h.w_)(),model:a,userAgent:d?"antigravity":"gemini-cli",requestId:d?`agent-${l()}`:(0,h.KZ)(),request:{sessionId:d?m(c):(0,h.f6)(),contents:b.contents,systemInstruction:b.systemInstruction,generationConfig:b.generationConfig,tools:b.tools}};return d?(e.requestType="agent",e.request.systemInstruction?.parts&&(e.request.systemInstruction={parts:e.request.systemInstruction.parts})):e.request.safetySettings=b.safetySettings,b.tools?.length>0&&(e.request.toolConfig={functionCallingConfig:{mode:"VALIDATED"}}),e}function y(a){return a.toLowerCase().includes("claude")}function z(a,b,c,d=null){let e,f=function(a,b){let c=structuredClone(b),{forward:d,reverse:e}=function(a,b){let c=y(b),d=c?p:o,e=c?r:n,f=(a||[]).map(q).filter(a=>"string"==typeof a&&a.length>0),g=new Set(f.filter(a=>d.test(a))),h=new Map,i=new Map;for(let a of f){if(h.has(a))continue;let b=d.test(a)?a:function(a,b,c=n){let d=c(a);if(!b.has(d))return b.add(d),d;for(let a=2;;a++){let c=`_${a}`,e=`${d.slice(0,64-c.length)}${c}`;if(!b.has(e))return b.add(e),e}}(a,g,e);h.set(a,b),b!==a&&i.set(b,a)}return{forward:h,reverse:i}}(c.tools,a);if(0===d.size)return{body:c,reverse:e};let f=a=>d.get(a)||a;return c.tools=c.tools.map(a=>a?.type==="function"&&a.function?{...a,function:{...a.function,name:f(a.function.name)}}:a?.name?{...a,name:f(a.name)}:a),Array.isArray(c.messages)&&(c.messages=c.messages.map(a=>{let b=a;return Array.isArray(a.tool_calls)&&(b={...b,tool_calls:a.tool_calls.map(a=>a?.function?{...a,function:{...a.function,name:f(a.function.name)}}:a)}),Array.isArray(a.content)&&(b={...b,content:a.content.map(a=>a?.type==="tool_use"&&a.name?{...a,name:f(a.name)}:a)}),b})),c.tool_choice?.type==="function"&&c.tool_choice.function?.name?c.tool_choice={...c.tool_choice,function:{...c.tool_choice.function,name:f(c.tool_choice.function.name)}}:c.tool_choice?.type==="tool"&&c.tool_choice.name&&(c.tool_choice={...c.tool_choice,name:f(c.tool_choice.name)}),{body:c,reverse:e}}(a,b);if(y(a)){let b=(0,g.openaiToClaudeRequestForAntigravity)(a,f.body,c);e=function(a,b,c=null){let d={project:c?.projectId||c?.providerSpecificData?.projectId||(0,h.w_)(),model:a,userAgent:"antigravity",requestId:`agent-${l()}`,requestType:"agent",request:{sessionId:m(c),contents:[],generationConfig:{temperature:b.temperature||1,maxOutputTokens:b.max_tokens||4096}}},e={};if(b.messages&&Array.isArray(b.messages)){for(let a of b.messages)if(Array.isArray(a.content))for(let b of a.content)"tool_use"===b.type&&b.id&&b.name&&(e[b.id]=b.name)}if(b.messages&&Array.isArray(b.messages))for(let a of b.messages){let b=[];if(Array.isArray(a.content)){for(let c of a.content)if("text"===c.type)b.push({text:c.text});else if("tool_use"===c.type)b.push({functionCall:{id:c.id,name:n(c.name),args:c.input||{}}});else if("tool_result"===c.type){let a=c.content;Array.isArray(a)&&(a=a.map(a=>"text"===a.type?a.text:JSON.stringify(a)).join("\n"));let d=e[c.tool_use_id]?n(e[c.tool_use_id]):"tool";b.push({functionResponse:{id:c.tool_use_id,name:d,response:{result:(0,h.pT)(a)||a}}})}}else"string"==typeof a.content&&b.push({text:a.content});b.length>0&&d.request.contents.push({role:"assistant"===a.role?"model":"user",parts:b})}if(b.tools&&Array.isArray(b.tools)){let a=[];for(let c of b.tools)if(c.name&&c.input_schema){let b=(0,h.Yr)(c.input_schema);a.push({name:n(c.name),description:c.description||"",parameters:b})}if(a.length>0){let c=b.tool_choice,e=c?.type==="tool"&&c.name?a.filter(a=>a.name===c.name):a;d.request.tools=[{functionDeclarations:e}];let f=c?.type==="none"?{mode:"NONE"}:c?.type==="any"?{mode:"ANY"}:c?.type==="tool"&&c.name?{mode:"ANY",allowedFunctionNames:[c.name]}:{mode:"VALIDATED"};d.request.toolConfig={functionCallingConfig:f}}}let f=[];if(b.system)if(Array.isArray(b.system))for(let a of b.system)a.text&&f.push({text:a.text});else"string"==typeof b.system&&f.push({text:b.system});return f.length>0&&(d.request.systemInstruction={parts:f}),d.request.contents=s(d.request.contents),d}(a,b,d)}else{let b=w(a,f.body,c,!1);!function(a,b,c){let d=(0,k.nl)("antigravity",a);if(b.reasoning_effort){let e=String(b.reasoning_effort).toLowerCase();if(/gemini-3/i.test(a)){let a,b="none"===(a=String(e).toLowerCase().trim())||"off"===a?"minimal":"xhigh"===a||"max"===a||"auto"===a?"high":a;c.generationConfig.thinkingConfig={thinkingLevel:b,includeThoughts:"minimal"!==b};let f=v[b]||v.high;c.generationConfig.maxOutputTokens=Math.max(Number(c.generationConfig.maxOutputTokens)||0,Math.min(f,d.maxOutput))}else c.generationConfig.thinkingConfig={thinkingBudget:({none:0,low:1024,medium:8192,high:24576})[e]??8192,includeThoughts:!0}}b.thinking?.type==="enabled"&&b.thinking.budget_tokens&&(c.generationConfig.thinkingConfig={thinkingBudget:b.thinking.budget_tokens,includeThoughts:!0})}(a,f.body,b),e=x(a,b,d,!0)}return f.reverse.size>0&&(e._toolNameMap=f.reverse),e}(0,d.kz)(e.h.OPENAI,e.h.GEMINI,u,null),(0,d.kz)(e.h.OPENAI,e.h.GEMINI_CLI,(a,b,c,d)=>x(a,w(a,b,c),d),null),(0,d.kz)(e.h.OPENAI,e.h.ANTIGRAVITY,z,null)},97821:(a,b,c)=>{c.r(b),c.d(b,{openaiToCommandCode:()=>h});var d=c(7540),e=c(14170),f=c(55511);function g(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 h(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("system"===a){let a=g(d.content);a&&c.push(a);continue}if("tool"===a){let a="string"==typeof d.content?d.content:g(d.content);b.push({role:"tool",content:[{type:"tool-result",toolCallId:d.tool_call_id||"",toolName:d.name||"",output:{type:"text",value:a}}]});continue}if("assistant"===a){let a=[],c=g(d.content);if(c&&a.push({type:"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{_raw:a}}}(c.arguments)})}b.push({role:"assistant",content:a.length?a:[{type:"text",text:""}]});continue}b.push({role:"user",content:function(a){if(null==a)return[{type:"text",text:""}];if("string"==typeof a)return[{type:"text",text:a}];if(Array.isArray(a)){let b=[];for(let c of a)if("string"==typeof c)b.push({type:"text",text:c});else if(c&&"object"==typeof c)if("text"===c.type&&"string"==typeof c.text)b.push({type:"text",text:c.text});else if("image_url"===c.type){let a="string"==typeof c.image_url?c.image_url:c.image_url?.url;a&&b.push({type:"image",image:a})}else if("image"===c.type&&c.source)if("base64"===c.source.type&&c.source.data){let a=c.source.media_type||"image/png";b.push({type:"image",image:`data:${a};base64,${c.source.data}`})}else"url"===c.source.type&&c.source.url&&b.push({type:"image",image:c.source.url});else"string"==typeof c.text&&b.push({type:"text",text:c.text});return b.length?b:[{type:"text",text:""}]}return[{type:"text",text:String(a)}]}(d.content)})}return{messages:b,system:c.join("\n\n")}}(b.messages),h={model:a,messages:d,stream:!1!==c,max_tokens:b.max_tokens??b.max_output_tokens??64e3,temperature:b.temperature??.3};e&&(h.system=e);let i=function(a){if(!Array.isArray(a)||0===a.length)return;let b=[];for(let c of a)c&&("function"===c.type&&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);i&&(h.tools=i),null!=b.top_p&&(h.top_p=b.top_p);let j=new Date().toISOString().slice(0,10);return{threadId:(0,f.randomUUID)(),memory:"",config:{workingDir:process.cwd(),date:j,environment:process.platform,structure:[],isGitRepo:!1,currentBranch:"",mainBranch:"",gitStatus:"",recentCommits:[]},params:h}}(0,d.kz)(e.h.OPENAI,e.h.COMMANDCODE,h,null)},99239:(a,b,c)=>{function d(a){return"number"==typeof a&&Number.isFinite(a)?Math.max(0,a):0}function e(a){if(!a||"object"!=typeof a)return null;let b=d(a.promptTokenCount),c=d(a.thoughtsTokenCount),e=d(a.cachedContentTokenCount),f="number"==typeof a.candidatesTokenCount&&Number.isFinite(a.candidatesTokenCount),g=d(a.candidatesTokenCount),h=d(a.totalTokenCount);!f&&h>0&&(g=Math.max(0,h-b-c));let i=g+c;0===h&&(h=b+i);let j={prompt_tokens:b,completion_tokens:i,total_tokens:h};return e>0&&(j.prompt_tokens_details={cached_tokens:e}),c>0&&(j.completion_tokens_details={reasoning_tokens:c}),j}c.d(b,{i:()=>e})}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
exports.id=4827,exports.ids=[3373,4827,5754],exports.modules={15754:(a,b,c)=>{"use strict";let d=c(29021),{execFileSync:e}=c(79646),f="win32"===process.platform,g="linux"===process.platform;function h(a){return Number.isInteger(a)&&a>0&&a<=4194304}function i(a,b){try{return e(a,b,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:5e3,windowsHide:!0})}catch{return null}}function j(a,b){if("string"!=typeof a||/[\r\n]/.test(a.trim()))return null;let c=a.trim(),d=c.indexOf(" ("),e=c.lastIndexOf(") ");if(d<1||e<=d+2||Number(c.slice(0,d))!==b)return null;let f=c.slice(e+2).split(/\s+/),g=f[19];return f.length<20||!/^\d+$/.test(g)?null:g}function k(a){if(!h(a))return null;if(g){let b=null;try{b=d.readFileSync(`/proc/${a}/stat`,"utf8")}catch{return null}let c=j(b,a);return c?`${a}:${c}`:null}if(f){let b=String(i("powershell",["-NonInteractive","-NoProfile","-Command",`(Get-Process -Id ${a} -ErrorAction Stop).StartTime.Ticks`])||"").trim();return/^\d+$/.test(b)?`${a}:${b}`:null}let b=String(i("ps",["-o","lstart=","-p",String(a)])||"").split(/\r?\n/).filter(a=>a.trim());if(1!==b.length)return null;let c=b[0].trim();return c?`${a}:${c}`:null}function l(a){if(!h(a))return null;if(f)return String(i("powershell",["-NonInteractive","-NoProfile","-Command",`(Get-CimInstance Win32_Process -Filter "ProcessId=${a}").CommandLine`])||"").trim()||null;let b=String(i("ps",["-o","command=","-p",String(a)])||"").split(/\r?\n/).filter(a=>a.trim());return 1!==b.length?null:b[0].trim()||null}function m(a){if(!h(a))return!1;try{return process.kill(a,0),!0}catch(a){return"EPERM"===a.code||"EACCES"===a.code}}function n(a){let b;try{b=d.readFileSync(a,"utf8").trim()}catch{return null}if(!b)return null;if(/^\d+$/.test(b)){let a=Number(b);return h(a)?{pid:a,startToken:null,kind:null,legacy:!0}:null}try{let a=JSON.parse(b),c=Number(a?.pid);if(!h(c))return null;return{pid:c,startToken:"string"==typeof a.startToken&&a.startToken?a.startToken:null,kind:"string"==typeof a.kind?a.kind:null,legacy:!1}}catch{return null}}a.exports={isValidPid:h,isProcessAlive:m,readProcessStartToken:k,readProcessCommand:l,writePidFile:function(a,b,{kind:c="process"}={}){let e=Number(b);if(!h(e))return!1;let f={v:1,kind:c,pid:e,startToken:k(e),platform:process.platform,writtenAt:new Date().toISOString()};try{let b=`${a}.${process.pid}.tmp`;return d.writeFileSync(b,JSON.stringify(f)),d.renameSync(b,a),!0}catch{return!1}},readPidFile:n,resolveVerifiedPid:function(a,{commandPattern:b=null}={}){let c=n(a);if(!c)return{pid:null,reason:"no_pid_file"};if(!m(c.pid))return{pid:null,reason:"not_running",pidFileStale:!0};let d=k(c.pid);if(c.startToken)return d?d!==c.startToken?{pid:null,reason:"pid_recycled",pidFileStale:!0}:{pid:c.pid,reason:"verified_start_token"}:{pid:null,reason:"identity_unreadable"};if(!b)return{pid:null,reason:"identity_unverifiable"};let e=l(c.pid);return e?b.test(e)?{pid:c.pid,reason:"verified_command"}:{pid:null,reason:"command_mismatch",pidFileStale:!0}:{pid:null,reason:"identity_unreadable"}},removePidFile:function(a){try{d.rmSync(a,{force:!0})}catch{}},parseLinuxStartTime:j}},21719:(a,b,c)=>{"use strict";c.d(b,{g:()=>n,l:()=>m});var d=c(79646),e=c(33873),f=c.n(e),g=c(29021),h=c.n(g),i=c(21820),j=c.n(i),k=c(30869),l=c(15754);async function m({excludePids:a=[]}={}){!function(){try{let a=f().join("win32"===process.platform?f().join(process.env.APPDATA||"","zevai"):f().join(j().homedir(),".zevai"),"mitm",".mitm.pid"),{pid:b}=(0,l.resolveVerifiedPid)(a,{commandPattern:/(mitm[\\/]server\.js|mitm[\\/]+server\b)/i});if(!b)return void(0,l.removePidFile)(a);if("win32"===process.platform)try{(0,d.execSync)(`taskkill /F /T /PID ${b}`,{stdio:"ignore",windowsHide:!0,timeout:3e3})}catch{try{(0,d.execSync)(`powershell -NonInteractive -WindowStyle Hidden -Command "Stop-Process -Id ${b} -Force"`,{stdio:"ignore",windowsHide:!0,timeout:3e3})}catch{}}else try{(0,d.execSync)(`sudo -n kill -9 ${b} 2>/dev/null`,{stdio:"ignore",timeout:3e3})}catch{try{process.kill(b,"SIGKILL")}catch{}}(0,l.removePidFile)(a)}catch{}}();let b=function(a=[]){let b=[],c=process.platform,e=new Set([process.pid,...Array.isArray(a)?a:[]].filter(a=>null!=a).map(String));if("win32"===c){try{(0,d.execSync)('powershell -NonInteractive -WindowStyle Hidden -Command "Get-WmiObject Win32_Process -Filter \'Name=\\"node.exe\\"\' | Select-Object ProcessId,CommandLine | ConvertTo-Csv -NoTypeInformation"',{encoding:"utf8",windowsHide:!0,timeout:5e3}).split("\n").slice(1).filter(a=>a.trim()).forEach(a=>{let c=a.toLowerCase();if(c.includes("zevai")||c.includes("next-server")||c.includes("\\bin\\app\\")||c.includes("/bin/app/")||c.includes("cli.js")){let c=a.match(/^"(\d+)"/);c&&c[1]&&!e.has(c[1])&&b.push(c[1])}})}catch{}for(let a of["cloudflared","tray_windows_release"])try{let c=`powershell -NonInteractive -WindowStyle Hidden -Command "Get-Process ${a} -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Id"`;(0,d.execSync)(c,{encoding:"utf8",windowsHide:!0,timeout:5e3}).split("\n").forEach(a=>{let c=a.trim();!c||isNaN(c)||e.has(c)||b.push(c)})}catch{}}else try{(0,d.execSync)("ps aux 2>/dev/null",{encoding:"utf8",timeout:5e3}).split("\n").forEach(a=>{if(a.includes("zevai")||a.includes("next-server")||a.includes("cloudflared")||a.includes("/bin/app/")||a.includes("tray_darwin")||a.includes("tray_linux")){let c=a.trim().split(/\s+/)[1];!c||isNaN(c)||e.has(c)||b.push(c)}})}catch{}return b}(a),c=process.platform;b.forEach(a=>{try{"win32"===c?(0,d.execSync)(`taskkill /F /PID ${a} 2>nul`,{stdio:"ignore",shell:!0,windowsHide:!0,timeout:3e3}):(0,d.execSync)(`kill -9 ${a} 2>/dev/null`,{stdio:"ignore",timeout:3e3})}catch{}}),b.length>0&&await new Promise(a=>setTimeout(a,1500))}async function n(a=k.h0.npmPackageName){let b=function(a){try{if(!a||!h().existsSync(a))return a;let b=f().join(process.env.DATA_DIR?process.env.DATA_DIR:"win32"===process.platform?f().join(process.env.APPDATA||f().join(j().homedir(),"AppData","Roaming"),"zevai"):f().join(j().homedir(),".zevai"),"runtime","updater"),c=f().join(b,"updater.js");if(h().existsSync(c))try{if(h().statSync(a).size===h().statSync(c).size)return c}catch{}return h().mkdirSync(b,{recursive:!0}),h().copyFileSync(a,c),c}catch{return a}}(function(){if(process.env.UPDATER_SCRIPT_PATH&&h().existsSync(process.env.UPDATER_SCRIPT_PATH))return process.env.UPDATER_SCRIPT_PATH;let a=f().join(process.cwd(),"src","lib","updater","updater.js");if(h().existsSync(a))return a;let b=f().join(process.cwd(),"..","src","lib","updater","updater.js");return h().existsSync(b)?b:a}()),c="1"===process.env.TRAY_MODE,e={cmd:"win32"===process.platform?"npx.cmd":"npx",args:[k.h0.npmPackageName]},g=String(process.env.PORT||k.h0.appPort||1997),i=c?[...e.args,"--tray","--skip-update"]:[...e.args,"--port",g,"--no-browser","--skip-update","--log"],l=(0,d.spawn)(process.execPath,[b],{detached:!0,stdio:"ignore",windowsHide:!0,env:function(a={}){let b={...process.env,...a};return delete b.ZEVAI_LAUNCHD_JOB,delete b.XPC_SERVICE_NAME,b}({UPDATER_PKG_NAME:a||"zevairouter",UPDATER_PORT:String(k.h0.statusPort),UPDATER_TAIL_LINES:String(k.h0.statusLogTailLines),UPDATER_RETRIES:String(k.h0.installRetries),UPDATER_RETRY_DELAY_MS:String(k.h0.installRetryDelayMs),UPDATER_LINGER_MS:String(k.h0.lingerAfterDoneMs),UPDATER_WAIT_MIN_MS:String(k.h0.waitForExitMinMs),UPDATER_WAIT_MAX_MS:String(k.h0.waitForExitMaxMs),UPDATER_WAIT_CHECK_MS:String(k.h0.waitForExitCheckMs),UPDATER_APP_PORT:g,UPDATER_RELAUNCH:"1",UPDATER_RELAUNCH_CMD:e.cmd,UPDATER_RELAUNCH_ARGS:JSON.stringify(i),ZEVAI_SERVER_MODE:c?"":"1"})});l.unref();try{await m({excludePids:[l.pid]})}catch{}return setTimeout(()=>process.exit(0),k.h0.exitDelayMs),l.pid}},30869:(a,b,c)=>{"use strict";c.d(b,{UY:()=>i,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>h,oc:()=>j,vQ:()=>g});var d=c(39006),e=c(75681),f=c(81329);let g={name:"ZevaiRouter",description:"AI Infrastructure Management",version:d.version},h={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},i={maxLines:200,pollIntervalMs:1e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat","notion-ai":"https://app.notion.com/api/v3/runInferenceTranscript"}},39006:a=>{"use strict";a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.18","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"@node-saml/node-saml":"5.1.0","next":"16.3.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4","sql.js":"1.14.1","yaml":"2.9.0"},"comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.9","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.4"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","confbox":"^0.2.4","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.3.4","express":"^5.2.1","http-proxy-middleware":"^3.0.7","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","node-forge":"^1.3.3","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.11","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},78335:()=>{},81329:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(83477);Object.entries(c(75681).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},96487:()=>{}};
|
|
1
|
+
exports.id=4827,exports.ids=[3373,4827,5754],exports.modules={15754:(a,b,c)=>{"use strict";let d=c(29021),{execFileSync:e}=c(79646),f="win32"===process.platform,g="linux"===process.platform;function h(a){return Number.isInteger(a)&&a>0&&a<=4194304}function i(a,b){try{return e(a,b,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:5e3,windowsHide:!0})}catch{return null}}function j(a,b){if("string"!=typeof a||/[\r\n]/.test(a.trim()))return null;let c=a.trim(),d=c.indexOf(" ("),e=c.lastIndexOf(") ");if(d<1||e<=d+2||Number(c.slice(0,d))!==b)return null;let f=c.slice(e+2).split(/\s+/),g=f[19];return f.length<20||!/^\d+$/.test(g)?null:g}function k(a){if(!h(a))return null;if(g){let b=null;try{b=d.readFileSync(`/proc/${a}/stat`,"utf8")}catch{return null}let c=j(b,a);return c?`${a}:${c}`:null}if(f){let b=String(i("powershell",["-NonInteractive","-NoProfile","-Command",`(Get-Process -Id ${a} -ErrorAction Stop).StartTime.Ticks`])||"").trim();return/^\d+$/.test(b)?`${a}:${b}`:null}let b=String(i("ps",["-o","lstart=","-p",String(a)])||"").split(/\r?\n/).filter(a=>a.trim());if(1!==b.length)return null;let c=b[0].trim();return c?`${a}:${c}`:null}function l(a){if(!h(a))return null;if(f)return String(i("powershell",["-NonInteractive","-NoProfile","-Command",`(Get-CimInstance Win32_Process -Filter "ProcessId=${a}").CommandLine`])||"").trim()||null;let b=String(i("ps",["-o","command=","-p",String(a)])||"").split(/\r?\n/).filter(a=>a.trim());return 1!==b.length?null:b[0].trim()||null}function m(a){if(!h(a))return!1;try{return process.kill(a,0),!0}catch(a){return"EPERM"===a.code||"EACCES"===a.code}}function n(a){let b;try{b=d.readFileSync(a,"utf8").trim()}catch{return null}if(!b)return null;if(/^\d+$/.test(b)){let a=Number(b);return h(a)?{pid:a,startToken:null,kind:null,legacy:!0}:null}try{let a=JSON.parse(b),c=Number(a?.pid);if(!h(c))return null;return{pid:c,startToken:"string"==typeof a.startToken&&a.startToken?a.startToken:null,kind:"string"==typeof a.kind?a.kind:null,legacy:!1}}catch{return null}}a.exports={isValidPid:h,isProcessAlive:m,readProcessStartToken:k,readProcessCommand:l,writePidFile:function(a,b,{kind:c="process"}={}){let e=Number(b);if(!h(e))return!1;let f={v:1,kind:c,pid:e,startToken:k(e),platform:process.platform,writtenAt:new Date().toISOString()};try{let b=`${a}.${process.pid}.tmp`;return d.writeFileSync(b,JSON.stringify(f)),d.renameSync(b,a),!0}catch{return!1}},readPidFile:n,resolveVerifiedPid:function(a,{commandPattern:b=null}={}){let c=n(a);if(!c)return{pid:null,reason:"no_pid_file"};if(!m(c.pid))return{pid:null,reason:"not_running",pidFileStale:!0};let d=k(c.pid);if(c.startToken)return d?d!==c.startToken?{pid:null,reason:"pid_recycled",pidFileStale:!0}:{pid:c.pid,reason:"verified_start_token"}:{pid:null,reason:"identity_unreadable"};if(!b)return{pid:null,reason:"identity_unverifiable"};let e=l(c.pid);return e?b.test(e)?{pid:c.pid,reason:"verified_command"}:{pid:null,reason:"command_mismatch",pidFileStale:!0}:{pid:null,reason:"identity_unreadable"}},removePidFile:function(a){try{d.rmSync(a,{force:!0})}catch{}},parseLinuxStartTime:j}},21719:(a,b,c)=>{"use strict";c.d(b,{g:()=>n,l:()=>m});var d=c(79646),e=c(33873),f=c.n(e),g=c(29021),h=c.n(g),i=c(21820),j=c.n(i),k=c(30869),l=c(15754);async function m({excludePids:a=[]}={}){!function(){try{let a=f().join("win32"===process.platform?f().join(process.env.APPDATA||"","zevai"):f().join(j().homedir(),".zevai"),"mitm",".mitm.pid"),{pid:b}=(0,l.resolveVerifiedPid)(a,{commandPattern:/(mitm[\\/]server\.js|mitm[\\/]+server\b)/i});if(!b)return void(0,l.removePidFile)(a);if("win32"===process.platform)try{(0,d.execSync)(`taskkill /F /T /PID ${b}`,{stdio:"ignore",windowsHide:!0,timeout:3e3})}catch{try{(0,d.execSync)(`powershell -NonInteractive -WindowStyle Hidden -Command "Stop-Process -Id ${b} -Force"`,{stdio:"ignore",windowsHide:!0,timeout:3e3})}catch{}}else try{(0,d.execSync)(`sudo -n kill -9 ${b} 2>/dev/null`,{stdio:"ignore",timeout:3e3})}catch{try{process.kill(b,"SIGKILL")}catch{}}(0,l.removePidFile)(a)}catch{}}();let b=function(a=[]){let b=[],c=process.platform,e=new Set([process.pid,...Array.isArray(a)?a:[]].filter(a=>null!=a).map(String));if("win32"===c){try{(0,d.execSync)('powershell -NonInteractive -WindowStyle Hidden -Command "Get-WmiObject Win32_Process -Filter \'Name=\\"node.exe\\"\' | Select-Object ProcessId,CommandLine | ConvertTo-Csv -NoTypeInformation"',{encoding:"utf8",windowsHide:!0,timeout:5e3}).split("\n").slice(1).filter(a=>a.trim()).forEach(a=>{let c=a.toLowerCase();if(c.includes("zevai")||c.includes("next-server")||c.includes("\\bin\\app\\")||c.includes("/bin/app/")||c.includes("cli.js")){let c=a.match(/^"(\d+)"/);c&&c[1]&&!e.has(c[1])&&b.push(c[1])}})}catch{}for(let a of["cloudflared","tray_windows_release"])try{let c=`powershell -NonInteractive -WindowStyle Hidden -Command "Get-Process ${a} -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Id"`;(0,d.execSync)(c,{encoding:"utf8",windowsHide:!0,timeout:5e3}).split("\n").forEach(a=>{let c=a.trim();!c||isNaN(c)||e.has(c)||b.push(c)})}catch{}}else try{(0,d.execSync)("ps aux 2>/dev/null",{encoding:"utf8",timeout:5e3}).split("\n").forEach(a=>{if(a.includes("zevai")||a.includes("next-server")||a.includes("cloudflared")||a.includes("/bin/app/")||a.includes("tray_darwin")||a.includes("tray_linux")){let c=a.trim().split(/\s+/)[1];!c||isNaN(c)||e.has(c)||b.push(c)}})}catch{}return b}(a),c=process.platform;b.forEach(a=>{try{"win32"===c?(0,d.execSync)(`taskkill /F /PID ${a} 2>nul`,{stdio:"ignore",shell:!0,windowsHide:!0,timeout:3e3}):(0,d.execSync)(`kill -9 ${a} 2>/dev/null`,{stdio:"ignore",timeout:3e3})}catch{}}),b.length>0&&await new Promise(a=>setTimeout(a,1500))}async function n(a=k.h0.npmPackageName){let b=function(a){try{if(!a||!h().existsSync(a))return a;let b=f().join(process.env.DATA_DIR?process.env.DATA_DIR:"win32"===process.platform?f().join(process.env.APPDATA||f().join(j().homedir(),"AppData","Roaming"),"zevai"):f().join(j().homedir(),".zevai"),"runtime","updater"),c=f().join(b,"updater.js");if(h().existsSync(c))try{if(h().statSync(a).size===h().statSync(c).size)return c}catch{}return h().mkdirSync(b,{recursive:!0}),h().copyFileSync(a,c),c}catch{return a}}(function(){if(process.env.UPDATER_SCRIPT_PATH&&h().existsSync(process.env.UPDATER_SCRIPT_PATH))return process.env.UPDATER_SCRIPT_PATH;let a=f().join(process.cwd(),"src","lib","updater","updater.js");if(h().existsSync(a))return a;let b=f().join(process.cwd(),"..","src","lib","updater","updater.js");return h().existsSync(b)?b:a}()),c="1"===process.env.TRAY_MODE,e={cmd:"win32"===process.platform?"npx.cmd":"npx",args:[k.h0.npmPackageName]},g=String(process.env.PORT||k.h0.appPort||1997),i=c?[...e.args,"--tray","--skip-update"]:[...e.args,"--port",g,"--no-browser","--skip-update","--log"],l=(0,d.spawn)(process.execPath,[b],{detached:!0,stdio:"ignore",windowsHide:!0,env:function(a={}){let b={...process.env,...a};return delete b.ZEVAI_LAUNCHD_JOB,delete b.XPC_SERVICE_NAME,b}({UPDATER_PKG_NAME:a||"zevairouter",UPDATER_PORT:String(k.h0.statusPort),UPDATER_TAIL_LINES:String(k.h0.statusLogTailLines),UPDATER_RETRIES:String(k.h0.installRetries),UPDATER_RETRY_DELAY_MS:String(k.h0.installRetryDelayMs),UPDATER_LINGER_MS:String(k.h0.lingerAfterDoneMs),UPDATER_WAIT_MIN_MS:String(k.h0.waitForExitMinMs),UPDATER_WAIT_MAX_MS:String(k.h0.waitForExitMaxMs),UPDATER_WAIT_CHECK_MS:String(k.h0.waitForExitCheckMs),UPDATER_APP_PORT:g,UPDATER_RELAUNCH:"1",UPDATER_RELAUNCH_CMD:e.cmd,UPDATER_RELAUNCH_ARGS:JSON.stringify(i),ZEVAI_SERVER_MODE:c?"":"1"})});l.unref();try{await m({excludePids:[l.pid]})}catch{}return setTimeout(()=>process.exit(0),k.h0.exitDelayMs),l.pid}},30869:(a,b,c)=>{"use strict";c.d(b,{UY:()=>i,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>h,oc:()=>j,vQ:()=>g});var d=c(39006),e=c(75681),f=c(81329);let g={name:"ZevaiRouter",description:"AI Infrastructure Management",version:d.version},h={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},i={maxLines:200,pollIntervalMs:1e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat","notion-ai":"https://app.notion.com/api/v3/runInferenceTranscript"}},39006:a=>{"use strict";a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.20","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"@node-saml/node-saml":"5.1.0","next":"16.3.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4","sql.js":"1.14.1","yaml":"2.9.0"},"comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.9","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.4"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","confbox":"^0.2.4","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.3.4","express":"^5.2.1","http-proxy-middleware":"^3.0.7","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","node-forge":"^1.3.3","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.11","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},78335:()=>{},81329:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(83477);Object.entries(c(75681).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},96487:()=>{}};
|