zevairouter 1.1.40 → 1.1.42
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 +14 -0
- package/cli/app/.next-cli-build/BUILD_ID +1 -1
- package/cli/app/.next-cli-build/app-path-routes-manifest.json +11 -9
- package/cli/app/.next-cli-build/build-manifest.json +2 -2
- package/cli/app/.next-cli-build/prerender-manifest.json +3 -3
- package/cli/app/.next-cli-build/routes-manifest.json +14 -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 +10 -10
- 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 +2 -2
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/omp-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-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 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- 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 +2 -2
- 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/flow/import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js +1 -0
- package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -0
- package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route_client-reference-manifest.js +1 -0
- package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js +1 -0
- package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -0
- package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route_client-reference-manifest.js +1 -0
- 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/kiro/discover-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- 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]/content/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/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 +2 -2
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- 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 +2 -2
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
- 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 +3 -3
- package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
- 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/skills/[skill]/SKILL.md/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app-paths-manifest.json +11 -9
- package/cli/app/.next-cli-build/server/chunks/1131.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/3949.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4586.js +3 -3
- package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5949.js +2 -2
- package/cli/app/.next-cli-build/server/chunks/7319.js +6 -6
- package/cli/app/.next-cli-build/server/chunks/7634.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/8641.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/8895.js +1 -1
- package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- 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/preview-props.json +3 -3
- 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/B2nDIJ8Tzb8U2UW31GsJf/_buildManifest.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/{620-66edeaf7464b2af3.js → 620-904ac489ee9178f7.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-b7f4fab34a089ea0.js +58 -0
- package/cli/app/.next-cli-build/static/chunks/app/_global-error/{page-fa4215ad642ee222.js → page-c8a0d3b188f8e4f8.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/{route-fa4215ad642ee222.js → route-c8a0d3b188f8e4f8.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-fa4215ad642ee222.js → route-c8a0d3b188f8e4f8.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-fa4215ad642ee222.js → route-c8a0d3b188f8e4f8.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/context/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/health/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/init/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/import/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/login/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/login/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/discover-models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/opencode/discover-models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/content/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/version/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/page-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/app/skills/[skill]/SKILL.md/route-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-c8a0d3b188f8e4f8.js +1 -0
- package/cli/app/.next-cli-build/static/css/d35ca396ccb15df7.css +1 -0
- package/cli/app/CHANGELOG.md +14 -0
- package/cli/app/package.json +1 -1
- package/cli/app/skills/zevai-image/SKILL.md +5 -0
- package/cli/app/skills/zevai-video/SKILL.md +1 -0
- package/cli/package.json +1 -1
- package/package.json +1 -1
- package/skills/zevai-image/SKILL.md +5 -0
- package/skills/zevai-video/SKILL.md +1 -0
- package/cli/app/.next-cli-build/static/UOQlernibgn9uJ8E3huEs/_buildManifest.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-9e3c0c1e23790a02.js +0 -58
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/context/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/health/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/init/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/import/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/discover-models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/opencode/discover-models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/content/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/version/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/page-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/app/skills/[skill]/SKILL.md/route-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-fa4215ad642ee222.js +0 -1
- package/cli/app/.next-cli-build/static/css/82555d38cd8c191c.css +0 -1
- /package/cli/app/.next-cli-build/static/{UOQlernibgn9uJ8E3huEs → B2nDIJ8Tzb8U2UW31GsJf}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
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 g=n.get(`${d.h.OPENAI}:${b}`);if(g){let b=[];for(let h of null===c&&a!==d.h.OPENAI?[...f,null]:f){let a=g(h,e);a&&b.push(...Array.isArray(a)?a:[a])}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>
|
|
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(61932),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 g=n.get(`${d.h.OPENAI}:${b}`);if(g){let b=[];for(let h of null===c&&a!==d.h.OPENAI?[...f,null]:f){let a=g(h,e);a&&b.push(...Array.isArray(a)?a:[a])}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
2
|
<tool_name>${g(a||"tool")}</tool_name>
|
|
3
3
|
<tool_call_id>${g(b||"")}</tool_call_id>
|
|
4
4
|
<result>${g(d)}</result>
|
|
@@ -7,13 +7,13 @@ ${f(e.content)}`});continue}if("tool"===e.role){let a=f(e.content),d=e.tool_call
|
|
|
7
7
|
\`\`\`json
|
|
8
8
|
${b}
|
|
9
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,a.message?.usage&&"object"==typeof a.message.usage&&(b.startUsage=a.message.usage),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={...b.startUsage||{},...a.usage},d="number"==typeof c.input_tokens?c.input_tokens:0,e="number"==typeof c.output_tokens?c.output_tokens:0,f="number"==typeof c.cache_read_input_tokens?c.cache_read_input_tokens:0,g="number"==typeof c.cache_creation_input_tokens?c.cache_creation_input_tokens:0,h=d+f+g;b.usage={prompt_tokens:h,completion_tokens:e,total_tokens:h+e,input_tokens:d,output_tokens:e},f>0&&(b.usage.cache_read_input_tokens=f),g>0&&(b.usage.cache_creation_input_tokens=g)}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}
|
|
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,a.message?.usage&&"object"==typeof a.message.usage&&(b.startUsage=a.message.usage),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={...b.startUsage||{},...a.usage},d="number"==typeof c.input_tokens?c.input_tokens:0,e="number"==typeof c.output_tokens?c.output_tokens:0,f="number"==typeof c.cache_read_input_tokens?c.cache_read_input_tokens:0,g="number"==typeof c.cache_creation_input_tokens?c.cache_creation_input_tokens:0,h=d+f+g;b.usage={prompt_tokens:h,completion_tokens:e,total_tokens:h+e,input_tokens:d,output_tokens:e},f>0&&(b.usage.cache_read_input_tokens=f),g>0&&(b.usage.cache_creation_input_tokens=g)}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}},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
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
12
|
|
|
13
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,c=""){let d=`${a||"anon"}:${c?`${c}:`:""}${String(b||"").slice(0,4096)}`,f=e().createHash("sha256").update(d).digest("hex");return[f.slice(0,8),f.slice(8,12),`4${f.slice(13,16)}`,`8${f.slice(17,20)}`,f.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
14
|
|
|
15
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,m),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=b.metadata?.user_id||b.prompt_cache_key||"",w=(0,h.jS)(t,u,v),x="string"==typeof(e=b.system)?e:Array.isArray(e)?e.map(a=>"string"==typeof a?a:a?.text||"").filter(Boolean).join("\n"):"",y=s.currentMessage.userInputMessage.content||"";x&&(y=`<instructions>
|
|
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)},61932:(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)},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,m),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=b.metadata?.user_id||b.prompt_cache_key||"",w=(0,h.jS)(t,u,v),x="string"==typeof(e=b.system)?e:Array.isArray(e)?e.map(a=>"string"==typeof a?a:a?.text||"").filter(Boolean).join("\n"):"",y=s.currentMessage.userInputMessage.content||"";x&&(y=`<instructions>
|
|
17
17
|
${x}
|
|
18
18
|
</instructions>
|
|
19
19
|
|
|
@@ -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,{gq:()=>p,l4:()=>o});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);let m=/(zevairouter[\\/]+cli[\\/]+cli\.js|[\\/]zevai(?:\.cmd)?)(?=\s|"|$)/i;function n(){return 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")}async function o({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=[]){try{return function(a,{selfPid:b,parentPid:c,excludePids:d=[],dataDir:e}){let g=new Map(a.map(a=>[a.pid,a])),h=new Map;for(let b of a)h.has(b.ppid)||h.set(b.ppid,[]),h.get(b.ppid).push(b.pid);let i=String(b),j=g.get(String(c)),k=j&&m.test(j.command)?j.pid:i,l=new Set(d.filter(a=>null!=a).map(String)),n=new Set,o=[k];for(;o.length>0;){let a=o.pop();l.has(a)||n.has(a)||(n.add(a),o.push(...h.get(a)||[]))}if(e){let b=["bin","runtime"].map(a=>f().join(e,a)+f().sep),c=a=>"win32"===process.platform?a.toLowerCase():a;for(let d of a){let a=c(d.command.replace(/^"/,""));b.some(b=>a.startsWith(c(b)))&&!l.has(d.pid)&&n.add(d.pid)}}return n.delete(i),[...n]}(function(){if("win32"===process.platform){let a=JSON.parse((0,d.execSync)('powershell -NonInteractive -WindowStyle Hidden -Command "Get-WmiObject Win32_Process | Select-Object ProcessId,ParentProcessId,CommandLine,ExecutablePath | ConvertTo-Json -Compress"',{encoding:"utf8",windowsHide:!0,timeout:5e3})||"[]");return(Array.isArray(a)?a:[a]).map(a=>({pid:String(a.ProcessId),ppid:String(a.ParentProcessId),command:a.CommandLine||a.ExecutablePath||""}))}return(0,d.execSync)("ps -axo pid=,ppid=,command= 2>/dev/null",{encoding:"utf8",timeout:5e3}).split("\n").map(a=>a.trim().match(/^(\d+)\s+(\d+)\s+(.*)$/)).filter(Boolean).map(([,a,b,c])=>({pid:a,ppid:b,command:c}))}(),{selfPid:process.pid,parentPid:process.ppid,excludePids:Array.isArray(a)?a:[],dataDir:n()})}catch{return[]}}(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 p(a=k.h0.npmPackageName){let b=function(a){try{if(!a||!h().existsSync(a))return a;let b=f().join(n(),"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"],j=(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"})});j.unref();try{await o({excludePids:[j.pid]})}catch{}return setTimeout(()=>process.exit(0),k.h0.exitDelayMs),j.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"}},39006:a=>{"use strict";a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.40","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","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","skills/","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.4.2","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.12","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.5"},"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.4.2","express":"^5.2.1","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);new Set(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,{gq:()=>p,l4:()=>o});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);let m=/(zevairouter[\\/]+cli[\\/]+cli\.js|[\\/]zevai(?:\.cmd)?)(?=\s|"|$)/i;function n(){return 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")}async function o({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=[]){try{return function(a,{selfPid:b,parentPid:c,excludePids:d=[],dataDir:e}){let g=new Map(a.map(a=>[a.pid,a])),h=new Map;for(let b of a)h.has(b.ppid)||h.set(b.ppid,[]),h.get(b.ppid).push(b.pid);let i=String(b),j=g.get(String(c)),k=j&&m.test(j.command)?j.pid:i,l=new Set(d.filter(a=>null!=a).map(String)),n=new Set,o=[k];for(;o.length>0;){let a=o.pop();l.has(a)||n.has(a)||(n.add(a),o.push(...h.get(a)||[]))}if(e){let b=["bin","runtime"].map(a=>f().join(e,a)+f().sep),c=a=>"win32"===process.platform?a.toLowerCase():a;for(let d of a){let a=c(d.command.replace(/^"/,""));b.some(b=>a.startsWith(c(b)))&&!l.has(d.pid)&&n.add(d.pid)}}return n.delete(i),[...n]}(function(){if("win32"===process.platform){let a=JSON.parse((0,d.execSync)('powershell -NonInteractive -WindowStyle Hidden -Command "Get-WmiObject Win32_Process | Select-Object ProcessId,ParentProcessId,CommandLine,ExecutablePath | ConvertTo-Json -Compress"',{encoding:"utf8",windowsHide:!0,timeout:5e3})||"[]");return(Array.isArray(a)?a:[a]).map(a=>({pid:String(a.ProcessId),ppid:String(a.ParentProcessId),command:a.CommandLine||a.ExecutablePath||""}))}return(0,d.execSync)("ps -axo pid=,ppid=,command= 2>/dev/null",{encoding:"utf8",timeout:5e3}).split("\n").map(a=>a.trim().match(/^(\d+)\s+(\d+)\s+(.*)$/)).filter(Boolean).map(([,a,b,c])=>({pid:a,ppid:b,command:c}))}(),{selfPid:process.pid,parentPid:process.ppid,excludePids:Array.isArray(a)?a:[],dataDir:n()})}catch{return[]}}(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 p(a=k.h0.npmPackageName){let b=function(a){try{if(!a||!h().existsSync(a))return a;let b=f().join(n(),"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"],j=(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"})});j.unref();try{await o({excludePids:[j.pid]})}catch{}return setTimeout(()=>process.exit(0),k.h0.exitDelayMs),j.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"}},39006:a=>{"use strict";a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.42","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","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","skills/","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.4.2","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.12","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.5"},"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.4.2","express":"^5.2.1","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);new Set(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,4 +1,4 @@
|
|
|
1
|
-
exports.id=5949,exports.ids=[5949],exports.modules={24344:(a,b,c)=>{"use strict";let{execSync:d,spawnSync:e}=c(79646),f=c(29021),g=c(21820),h=c(33873),i="zevai";function j(){return h.join(process.env.DATA_DIR?process.env.DATA_DIR:"win32"===process.platform?h.join(process.env.APPDATA||g.homedir(),i):h.join(g.homedir(),`.${i}`),"runtime")}function k(){return h.join(j(),"node_modules")}function l(){let a=j();f.existsSync(a)||f.mkdirSync(a,{recursive:!0});let b=h.join(a,"package.json");return f.existsSync(b)||f.writeFileSync(b,JSON.stringify({name:"zevai-runtime",version:"1.0.0",private:!0,description:"User-writable runtime deps for ZevaiRouter (better-sqlite3 native binary)"},null,2)),a}function m(a){return f.existsSync(h.join(k(),a,"package.json"))}function n(){let a=h.join(k(),"better-sqlite3","build","Release","better_sqlite3.node");if(!f.existsSync(a))return!1;try{let b=f.openSync(a,"r"),c=Buffer.alloc(4);f.readSync(b,c,0,4,0),f.closeSync(b);let d=c.toString("hex");if("linux"===process.platform)return d.startsWith("7f454c46");if("darwin"===process.platform)return d.startsWith("cffaedfe")||d.startsWith("cefaedfe");if("win32"===process.platform)return d.startsWith("4d5a");return!0}catch{return!1}}function o(a=""){let b=String(a);if(/ENOTFOUND|ETIMEDOUT|EAI_AGAIN|network|getaddrinfo/i.test(b))return"No internet connection or registry unreachable";if(/EACCES|EPERM|permission denied/i.test(b))return"Permission denied (check folder permissions)";if(/ENOSPC|no space/i.test(b))return"Not enough disk space";if(/node-gyp|gyp ERR|python|MSBuild|Visual Studio|Xcode/i.test(b))return"Missing build tools (Xcode CLT / Python / VS Build Tools)";if(/ETARGET|version.*not found/i.test(b))return"Package version not found on registry";let c=b.match(/npm ERR! (.+)/);if(c)return c[1].slice(0,200);let d=b.trim().split(/\r?\n/).filter(Boolean).pop();return d?d.slice(0,200):"Unknown error"}function p({cwd:a,pkgs:b,extraArgs:c=[],timeout:d=18e4}){let g=["install",...b,"--save","--no-audit","--no-fund","--prefer-online","--loglevel=error",...c.filter(a=>"--no-save"!==a)],i="win32"===process.platform?"npm.cmd":"npm",j=g,k="win32"===process.platform;try{let a=h.join(h.dirname(process.execPath),"..","lib","node_modules","npm","bin","npm-cli.js");f.existsSync(a)&&(i=process.execPath,j=[a,...g],k=!1)}catch{}let l=e(i,j,{cwd:a,stdio:["ignore","pipe","pipe"],timeout:d,shell:k,encoding:"utf8"});return{ok:0===l.status,code:l.status,stderr:l.stderr||"",stdout:l.stdout||""}}a.exports={ensureSqliteRuntime:function({silent:a=!1}={}){return(l(),m("better-sqlite3")&&n())?(a||console.log("✅ SQLite engine ready"),{betterSqlite:!0}):{betterSqlite:function(a,b={}){let c=l(),d=b.optional?["--no-save"]:[];b.silent||console.log("⏳ Installing SQLite engine (first run)...");let e=p({cwd:c,pkgs:a,extraArgs:d,timeout:b.timeout||18e4});if(!e.ok&&!b.silent){let b=o(e.stderr);console.warn("⚠️ SQLite engine install failed — using fallback"),console.warn(` Reason: ${b}`),console.warn(` Retry: cd "${c}" && npm install ${a.join(" ")}`)}return e.ok}(["better-sqlite3@12.6.2"],{optional:!0,silent:a})&&m("better-sqlite3")&&n()}},buildEnvWithRuntime:function(a=process.env){let b=[k(),h.join(__dirname,"..","app","node_modules"),h.join(__dirname,"..","..","node_modules"),a.NODE_PATH||""].filter(Boolean).join(h.delimiter);return{...a,NODE_PATH:b}},getRuntimeDir:j,getRuntimeNodeModules:k,runNpmInstall:p,summarizeNpmError:o}},28601:(a,b,c)=>{var d={"./cloakbrowserRuntime":99436,"./cloakbrowserRuntime.js":99436,"./postinstall":77897,"./postinstall.js":77897,"./safeGlobalInstall":65185,"./safeGlobalInstall.js":65185,"./sqliteRuntime":24344,"./sqliteRuntime.js":24344,"./startupRuntime":83445,"./startupRuntime.js":83445,"./streamCommand":69069,"./streamCommand.js":69069,"./trayRuntime":52784,"./trayRuntime.js":52784};function e(a){return c(f(a))}function f(a){if(!c.o(d,a)){var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b}return d[a]}e.keys=function(){return Object.keys(d)},e.resolve=f,a.exports=e,e.id=28601},51029:a=>{function b(a){var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b}b.keys=()=>[],b.resolve=b,b.id=51029,a.exports=b},52784:(a,b,c)=>{"use strict";let{spawnSync:d}=c(79646),e=c(29021),f=c(33873),{getRuntimeDir:g,getRuntimeNodeModules:h,runNpmInstall:i,summarizeNpmError:j}=c(24344),k="systray2",l="systray";function m(){return e.existsSync(f.join(h(),k,"package.json"))}function n({silent:a=!1}={}){if("win32"===process.platform)return;let b="darwin"===process.platform?"tray_darwin_release":"tray_linux_release",c=f.join(h(),k,"traybin",b);if(e.existsSync(c))try{e.chmodSync(c,493)}catch(b){a||console.warn(`[zevai][runtime] chmod tray bin failed: ${b.message}`)}}a.exports={ensureTrayRuntime:function({silent:a=!1}={}){if(!function({silent:a=!1}={}){for(let b of[f.join(h(),l),f.join(__dirname,"..","node_modules",l)])if(e.existsSync(b))try{e.rmSync(b,{recursive:!0,force:!0}),a||console.log(`[zevai][runtime] removed legacy systray: ${b}`)}catch(c){a||console.warn(`[zevai][runtime] failed to remove ${b}: ${c.message}`)}}({silent:a}),"win32"===process.platform)return{systray:!1,skipped:!0};if(m())return n({silent:a}),a||console.log("✅ System tray ready"),{systray:!0};let b=function(a,{silent:b=!1}={}){let c,d,h=(c=g(),e.existsSync(c)||e.mkdirSync(c,{recursive:!0}),d=f.join(c,"package.json"),e.existsSync(d)||e.writeFileSync(d,JSON.stringify({name:"zevai-runtime",version:"1.0.0",private:!0},null,2)),c);b||console.log("⏳ Installing system tray (first run)...");let k=i({cwd:h,pkgs:a,extraArgs:["--no-save"],timeout:12e4});if(!k.ok&&!b){let b=j(k.stderr);console.warn("⚠️ System tray install failed — tray disabled"),console.warn(` Reason: ${b}`),console.warn(` Retry: cd "${h}" && npm install ${a.join(" ")}`)}return k.ok}([`${k}@2.1.4`],{silent:a});return b&&n({silent:a}),{systray:b&&m()}}}},65185:(a,b,c)=>{"use strict";a=c.nmd(a);let{execFileSync:d,spawnSync:e}=c(79646),f=c(29021),g=c(21820),h=c(33873),i="zevairouter",j="zevai";function k(a){console.log(`[zevai-install] ${a}`)}function l(a){console.warn(`[zevai-install] ${a}`)}function m(){let a=process.platform;return"darwin"===a?{id:"mac",label:"macOS"}:"win32"===a?{id:"windows",label:"Windows"}:"linux"===a?{id:"linux",label:"Linux"}:{id:a,label:a}}function n(){let a=h.dirname(process.execPath);for(let b of"win32"===process.platform?[h.join(a,"node_modules","npm","bin","npm-cli.js"),h.join(a,"npm.cmd"),h.join(a,"npm"),"npm.cmd","npm"]:[h.join(a,"npm"),h.join(a,"..","lib","node_modules","npm","bin","npm-cli.js")])if("npm"!==b&&"npm.cmd"!==b&&f.existsSync(b))return b;try{let a="win32"===process.platform?"where":"which",b=d(a,["npm"],{encoding:"utf8"}).trim().split(/\r?\n/)[0];if(b)return b}catch{}return"win32"===process.platform?"npm.cmd":"npm"}function o(a,b,c={}){let d={...process.env,npm_config_fund:"false",npm_config_audit:"false",npm_config_update_notifier:"false",npm_node_execpath:process.execPath},i=a.endsWith("npm-cli.js"),j=i?process.execPath:a,k=i?[a,...b]:b;if(c.stream){let a=f.mkdtempSync(h.join(g.tmpdir(),"zevai-command-")),b=h.join(a,"result.json");try{let a=h.join(__dirname,"streamCommand.js"),g=e(process.execPath,[a,b,j,...k],{env:{...d,ZEVAI_STREAM_COMMAND_SHELL:"win32"!==process.platform||i?"0":"1"},stdio:"inherit",timeout:c.timeout||6e5,windowsHide:!0}),l={};try{l=JSON.parse(f.readFileSync(b,"utf8"))}catch{}return{ok:0===g.status&&0===l.status,status:l.status??g.status,stdout:l.stdout||"",stderr:l.stderr||"",error:g.error||l.error||null}}finally{try{f.rmSync(a,{recursive:!0,force:!0})}catch{}}}let l=e(j,k,{encoding:"utf8",env:d,shell:"win32"===process.platform&&!i,timeout:c.timeout||6e5});return{ok:0===l.status,status:l.status,stdout:l.stdout||"",stderr:l.stderr||"",error:l.error}}function p(a){let b=(o(a,["root","-g"],{timeout:3e4}).stdout||"").trim().split(/\r?\n/).filter(Boolean).pop();return b&&f.existsSync(b)?b:"win32"===process.platform?h.join(h.dirname(process.execPath),"node_modules"):h.join(h.dirname(process.execPath),"..","lib","node_modules")}function q(a){let b=(o(a,["prefix","-g"],{timeout:3e4}).stdout||"").trim().split(/\r?\n/).filter(Boolean).pop();if(b&&f.existsSync(b)){if("win32"===process.platform)return b;let a=h.join(b,"bin");if(f.existsSync(a))return a}return h.dirname(process.execPath)}function r(a){let b=h.join(a,i);f.existsSync(b)&&(k(`Removing previous install: ${b}`),f.rmSync(b,{recursive:!0,force:!0,maxRetries:5,retryDelay:200}));try{for(let b of f.readdirSync(a))if(b.startsWith(`.${i}-`)||b===`.${i}`){let c=h.join(a,b);k(`Removing leftover: ${c}`),f.rmSync(c,{recursive:!0,force:!0,maxRetries:5,retryDelay:200})}}catch{}}function s(a){for(let b of"win32"===process.platform?[`${j}.cmd`,`${j}`,`${j}.ps1`]:[j]){let c=h.join(a,b);try{f.existsSync(c)&&f.rmSync(c,{force:!0})}catch{}}}function t(){return"win32"===process.platform?[`${j}.cmd`,j,`${j}.ps1`]:[j]}function u(a,b=f){try{return b.lstatSync(a),!0}catch{return!1}}function v(a,b){let c=h.join(a,i);if(!f.existsSync(h.join(c,"package.json")))return null;let d=f.mkdtempSync(h.join(g.tmpdir(),"zevai-install-rollback-")),e=h.join(d,i),j=h.join(d,"bin");try{for(let a of(f.cpSync(c,e,{recursive:!0,preserveTimestamps:!0,verbatimSymlinks:!0}),f.mkdirSync(j,{recursive:!0}),t())){let c=h.join(b,a);u(c)&&f.cpSync(c,h.join(j,a),{preserveTimestamps:!0,verbatimSymlinks:!0})}return{backupRoot:d,packageBackup:e,binBackup:j}}catch(a){try{f.rmSync(d,{recursive:!0,force:!0})}catch{}throw a}}function w(a,b,c){if(!a)return;let d=h.join(b,i);for(let b of(f.rmSync(d,{recursive:!0,force:!0,maxRetries:5,retryDelay:200}),f.cpSync(a.packageBackup,d,{recursive:!0,preserveTimestamps:!0,verbatimSymlinks:!0}),s(c),t())){let d=h.join(a.binBackup,b);if(!u(d))continue;let e=h.join(c,b);f.lstatSync(d).isSymbolicLink()?f.symlinkSync(f.readlinkSync(d),e):f.cpSync(d,e,{preserveTimestamps:!0,verbatimSymlinks:!0})}}function x(a){if(a)try{f.rmSync(a.backupRoot,{recursive:!0,force:!0})}catch{}}function y(a,b=f){try{let c=h.join(a,i,"package.json"),d=JSON.parse(b.readFileSync(c,"utf8"));return{name:d?.name||null,version:d?.version||null}}catch{return null}}function z(a,b=f){return y(a,b)?.version||null}function A(a,b=f){try{return b.existsSync(h.join(a,i,"package.json"))}catch{return!1}}function B(a={},b=f){let c=String(a.version||"latest").replace(/^v(?=\d)/,""),d=/^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/.test(c);if(!a.localArtifact){let b=a.packageSpec||`${i}@${c}`;return("latest"===c||d)&&b===`${i}@${c}`?{ok:!0,kind:"registry",packageSpec:b,expectedVersion:d?c:null}:{ok:!1,error:"Version must be 'latest' or an exact semantic version (for example 1.2.3)."}}if(!0!==a.allowLocalArtifact||!d)return{ok:!1,error:"Local artifacts require explicit opt-in and an exact expected version."};try{let d=h.resolve(String(a.localArtifact)),e=b.lstatSync(d);if(!e.isFile()||e.isSymbolicLink()||".tgz"!==h.extname(d))throw Error("Local artifact must be a regular .tgz file, not a directory or symlink.");let f=b.realpathSync(d);if(f!==d)throw Error("Local artifact path must already be canonical and contain no symlink components.");return{ok:!0,kind:"local-artifact",packageSpec:f,expectedVersion:c}}catch(a){return{ok:!1,error:a.message}}}function C(a={}){let b=m(),c=a.dependencies||{},d=c.fs||f,g=c.runNpm||o,t=c.resolveNpmForThisNode||n,u=c.getGlobalRoot||p,D=c.getGlobalBin||q,E=c.spawnSync||e,F=B(a,d);if(!F.ok)return{ok:!1,nodePath:process.execPath,npmPath:"",globalRoot:"",platform:b,error:F.error};let G=t(),H=u(G),I=D(G),J=A(H,d),K=J?z(H,d):null,L=null;if(J&&!a.externalRollback)try{L=v(H,I),k(`rollback snapshot: ${L.backupRoot}`)}catch(a){return{ok:!1,nodePath:process.execPath,npmPath:G,globalRoot:H,platform:b,version:K||void 0,error:`Refusing to update without a rollback snapshot: ${a.message}`}}k(`OS: ${b.label} (${process.platform}/${process.arch})`),k(`Node: ${process.version} @ ${process.execPath}`),k(`npm: ${G}`),k(`global root: ${H}`),k(`global bin: ${I}`),k(`installing: ${F.packageSpec}${K?` (was ${K})`:""}`);let M=!0===a.forceClean;M&&!J?(r(H),s(I)):M&&J&&l("forceClean requested but existing package kept until install succeeds (OOM-safe)");let N=["install","-g",F.packageSpec];"registry"===F.kind&&N.push("--prefer-online"),process.env.npm_config_registry||process.env.ZEVAI_NPM_REGISTRY&&N.push("--registry",process.env.ZEVAI_NPM_REGISTRY);let O=g(G,N,{timeout:6e5,stream:!0}),P=`${O.stderr}
|
|
1
|
+
exports.id=5949,exports.ids=[5949],exports.modules={24344:(a,b,c)=>{"use strict";let{execSync:d,spawnSync:e}=c(79646),f=c(29021),g=c(21820),h=c(33873),i="zevai";function j(){return h.join(process.env.DATA_DIR?process.env.DATA_DIR:"win32"===process.platform?h.join(process.env.APPDATA||g.homedir(),i):h.join(g.homedir(),`.${i}`),"runtime")}function k(){return h.join(j(),"node_modules")}function l(){let a=j();f.existsSync(a)||f.mkdirSync(a,{recursive:!0});let b=h.join(a,"package.json");return f.existsSync(b)||f.writeFileSync(b,JSON.stringify({name:"zevai-runtime",version:"1.0.0",private:!0,description:"User-writable runtime deps for ZevaiRouter (better-sqlite3 native binary)"},null,2)),a}function m(a){return f.existsSync(h.join(k(),a,"package.json"))}function n(){let a=h.join(k(),"better-sqlite3","build","Release","better_sqlite3.node");if(!f.existsSync(a))return!1;try{let b=f.openSync(a,"r"),c=Buffer.alloc(4);f.readSync(b,c,0,4,0),f.closeSync(b);let d=c.toString("hex");if("linux"===process.platform)return d.startsWith("7f454c46");if("darwin"===process.platform)return d.startsWith("cffaedfe")||d.startsWith("cefaedfe");if("win32"===process.platform)return d.startsWith("4d5a");return!0}catch{return!1}}function o(a=""){let b=String(a);if(/ENOTFOUND|ETIMEDOUT|EAI_AGAIN|network|getaddrinfo/i.test(b))return"No internet connection or registry unreachable";if(/EACCES|EPERM|permission denied/i.test(b))return"Permission denied (check folder permissions)";if(/ENOSPC|no space/i.test(b))return"Not enough disk space";if(/node-gyp|gyp ERR|python|MSBuild|Visual Studio|Xcode/i.test(b))return"Missing build tools (Xcode CLT / Python / VS Build Tools)";if(/ETARGET|version.*not found/i.test(b))return"Package version not found on registry";let c=b.match(/npm ERR! (.+)/);if(c)return c[1].slice(0,200);let d=b.trim().split(/\r?\n/).filter(Boolean).pop();return d?d.slice(0,200):"Unknown error"}function p({cwd:a,pkgs:b,extraArgs:c=[],timeout:d=18e4}){let g=["install",...b,"--save","--no-audit","--no-fund","--prefer-online","--loglevel=error",...c.filter(a=>"--no-save"!==a)],i="win32"===process.platform?"npm.cmd":"npm",j=g,k="win32"===process.platform;try{let a=h.join(h.dirname(process.execPath),"..","lib","node_modules","npm","bin","npm-cli.js");f.existsSync(a)&&(i=process.execPath,j=[a,...g],k=!1)}catch{}let l=e(i,j,{cwd:a,stdio:["ignore","pipe","pipe"],timeout:d,shell:k,encoding:"utf8"});return{ok:0===l.status,code:l.status,stderr:l.stderr||"",stdout:l.stdout||""}}a.exports={ensureSqliteRuntime:function({silent:a=!1}={}){return(l(),m("better-sqlite3")&&n())?(a||console.log("✅ SQLite engine ready"),{betterSqlite:!0}):{betterSqlite:function(a,b={}){let c=l(),d=b.optional?["--no-save"]:[];b.silent||console.log("⏳ Installing SQLite engine (first run)...");let e=p({cwd:c,pkgs:a,extraArgs:d,timeout:b.timeout||18e4});if(!e.ok&&!b.silent){let b=o(e.stderr);console.warn("⚠️ SQLite engine install failed — using fallback"),console.warn(` Reason: ${b}`),console.warn(` Retry: cd "${c}" && npm install ${a.join(" ")}`)}return e.ok}(["better-sqlite3@12.6.2"],{optional:!0,silent:a})&&m("better-sqlite3")&&n()}},buildEnvWithRuntime:function(a=process.env){let b=[k(),h.join(__dirname,"..","app","node_modules"),h.join(__dirname,"..","..","node_modules"),a.NODE_PATH||""].filter(Boolean).join(h.delimiter);return{...a,NODE_PATH:b}},getRuntimeDir:j,getRuntimeNodeModules:k,runNpmInstall:p,summarizeNpmError:o}},50982:(a,b,c)=>{var d={"./cloakbrowserRuntime":99436,"./cloakbrowserRuntime.js":99436,"./postinstall":77897,"./postinstall.js":77897,"./safeGlobalInstall":65185,"./safeGlobalInstall.js":65185,"./sqliteRuntime":24344,"./sqliteRuntime.js":24344,"./startupRuntime":83445,"./startupRuntime.js":83445,"./streamCommand":69069,"./streamCommand.js":69069,"./trayRuntime":52784,"./trayRuntime.js":52784};function e(a){return c(f(a))}function f(a){if(!c.o(d,a)){var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b}return d[a]}e.keys=function(){return Object.keys(d)},e.resolve=f,a.exports=e,e.id=50982},51029:a=>{function b(a){var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b}b.keys=()=>[],b.resolve=b,b.id=51029,a.exports=b},52784:(a,b,c)=>{"use strict";let{spawnSync:d}=c(79646),e=c(29021),f=c(33873),{getRuntimeDir:g,getRuntimeNodeModules:h,runNpmInstall:i,summarizeNpmError:j}=c(24344),k="systray2",l="systray";function m(){return e.existsSync(f.join(h(),k,"package.json"))}function n({silent:a=!1}={}){if("win32"===process.platform)return;let b="darwin"===process.platform?"tray_darwin_release":"tray_linux_release",c=f.join(h(),k,"traybin",b);if(e.existsSync(c))try{e.chmodSync(c,493)}catch(b){a||console.warn(`[zevai][runtime] chmod tray bin failed: ${b.message}`)}}a.exports={ensureTrayRuntime:function({silent:a=!1}={}){if(!function({silent:a=!1}={}){for(let b of[f.join(h(),l),f.join(__dirname,"..","node_modules",l)])if(e.existsSync(b))try{e.rmSync(b,{recursive:!0,force:!0}),a||console.log(`[zevai][runtime] removed legacy systray: ${b}`)}catch(c){a||console.warn(`[zevai][runtime] failed to remove ${b}: ${c.message}`)}}({silent:a}),"win32"===process.platform)return{systray:!1,skipped:!0};if(m())return n({silent:a}),a||console.log("✅ System tray ready"),{systray:!0};let b=function(a,{silent:b=!1}={}){let c,d,h=(c=g(),e.existsSync(c)||e.mkdirSync(c,{recursive:!0}),d=f.join(c,"package.json"),e.existsSync(d)||e.writeFileSync(d,JSON.stringify({name:"zevai-runtime",version:"1.0.0",private:!0},null,2)),c);b||console.log("⏳ Installing system tray (first run)...");let k=i({cwd:h,pkgs:a,extraArgs:["--no-save"],timeout:12e4});if(!k.ok&&!b){let b=j(k.stderr);console.warn("⚠️ System tray install failed — tray disabled"),console.warn(` Reason: ${b}`),console.warn(` Retry: cd "${h}" && npm install ${a.join(" ")}`)}return k.ok}([`${k}@2.1.4`],{silent:a});return b&&n({silent:a}),{systray:b&&m()}}}},65185:(a,b,c)=>{"use strict";a=c.nmd(a);let{execFileSync:d,spawnSync:e}=c(79646),f=c(29021),g=c(21820),h=c(33873),i="zevairouter",j="zevai";function k(a){console.log(`[zevai-install] ${a}`)}function l(a){console.warn(`[zevai-install] ${a}`)}function m(){let a=process.platform;return"darwin"===a?{id:"mac",label:"macOS"}:"win32"===a?{id:"windows",label:"Windows"}:"linux"===a?{id:"linux",label:"Linux"}:{id:a,label:a}}function n(){let a=h.dirname(process.execPath);for(let b of"win32"===process.platform?[h.join(a,"node_modules","npm","bin","npm-cli.js"),h.join(a,"npm.cmd"),h.join(a,"npm"),"npm.cmd","npm"]:[h.join(a,"npm"),h.join(a,"..","lib","node_modules","npm","bin","npm-cli.js")])if("npm"!==b&&"npm.cmd"!==b&&f.existsSync(b))return b;try{let a="win32"===process.platform?"where":"which",b=d(a,["npm"],{encoding:"utf8"}).trim().split(/\r?\n/)[0];if(b)return b}catch{}return"win32"===process.platform?"npm.cmd":"npm"}function o(a,b,c={}){let d={...process.env,npm_config_fund:"false",npm_config_audit:"false",npm_config_update_notifier:"false",npm_node_execpath:process.execPath},i=a.endsWith("npm-cli.js"),j=i?process.execPath:a,k=i?[a,...b]:b;if(c.stream){let a=f.mkdtempSync(h.join(g.tmpdir(),"zevai-command-")),b=h.join(a,"result.json");try{let a=h.join(__dirname,"streamCommand.js"),g=e(process.execPath,[a,b,j,...k],{env:{...d,ZEVAI_STREAM_COMMAND_SHELL:"win32"!==process.platform||i?"0":"1"},stdio:"inherit",timeout:c.timeout||6e5,windowsHide:!0}),l={};try{l=JSON.parse(f.readFileSync(b,"utf8"))}catch{}return{ok:0===g.status&&0===l.status,status:l.status??g.status,stdout:l.stdout||"",stderr:l.stderr||"",error:g.error||l.error||null}}finally{try{f.rmSync(a,{recursive:!0,force:!0})}catch{}}}let l=e(j,k,{encoding:"utf8",env:d,shell:"win32"===process.platform&&!i,timeout:c.timeout||6e5});return{ok:0===l.status,status:l.status,stdout:l.stdout||"",stderr:l.stderr||"",error:l.error}}function p(a){let b=(o(a,["root","-g"],{timeout:3e4}).stdout||"").trim().split(/\r?\n/).filter(Boolean).pop();return b&&f.existsSync(b)?b:"win32"===process.platform?h.join(h.dirname(process.execPath),"node_modules"):h.join(h.dirname(process.execPath),"..","lib","node_modules")}function q(a){let b=(o(a,["prefix","-g"],{timeout:3e4}).stdout||"").trim().split(/\r?\n/).filter(Boolean).pop();if(b&&f.existsSync(b)){if("win32"===process.platform)return b;let a=h.join(b,"bin");if(f.existsSync(a))return a}return h.dirname(process.execPath)}function r(a){let b=h.join(a,i);f.existsSync(b)&&(k(`Removing previous install: ${b}`),f.rmSync(b,{recursive:!0,force:!0,maxRetries:5,retryDelay:200}));try{for(let b of f.readdirSync(a))if(b.startsWith(`.${i}-`)||b===`.${i}`){let c=h.join(a,b);k(`Removing leftover: ${c}`),f.rmSync(c,{recursive:!0,force:!0,maxRetries:5,retryDelay:200})}}catch{}}function s(a){for(let b of"win32"===process.platform?[`${j}.cmd`,`${j}`,`${j}.ps1`]:[j]){let c=h.join(a,b);try{f.existsSync(c)&&f.rmSync(c,{force:!0})}catch{}}}function t(){return"win32"===process.platform?[`${j}.cmd`,j,`${j}.ps1`]:[j]}function u(a,b=f){try{return b.lstatSync(a),!0}catch{return!1}}function v(a,b){let c=h.join(a,i);if(!f.existsSync(h.join(c,"package.json")))return null;let d=f.mkdtempSync(h.join(g.tmpdir(),"zevai-install-rollback-")),e=h.join(d,i),j=h.join(d,"bin");try{for(let a of(f.cpSync(c,e,{recursive:!0,preserveTimestamps:!0,verbatimSymlinks:!0}),f.mkdirSync(j,{recursive:!0}),t())){let c=h.join(b,a);u(c)&&f.cpSync(c,h.join(j,a),{preserveTimestamps:!0,verbatimSymlinks:!0})}return{backupRoot:d,packageBackup:e,binBackup:j}}catch(a){try{f.rmSync(d,{recursive:!0,force:!0})}catch{}throw a}}function w(a,b,c){if(!a)return;let d=h.join(b,i);for(let b of(f.rmSync(d,{recursive:!0,force:!0,maxRetries:5,retryDelay:200}),f.cpSync(a.packageBackup,d,{recursive:!0,preserveTimestamps:!0,verbatimSymlinks:!0}),s(c),t())){let d=h.join(a.binBackup,b);if(!u(d))continue;let e=h.join(c,b);f.lstatSync(d).isSymbolicLink()?f.symlinkSync(f.readlinkSync(d),e):f.cpSync(d,e,{preserveTimestamps:!0,verbatimSymlinks:!0})}}function x(a){if(a)try{f.rmSync(a.backupRoot,{recursive:!0,force:!0})}catch{}}function y(a,b=f){try{let c=h.join(a,i,"package.json"),d=JSON.parse(b.readFileSync(c,"utf8"));return{name:d?.name||null,version:d?.version||null}}catch{return null}}function z(a,b=f){return y(a,b)?.version||null}function A(a,b=f){try{return b.existsSync(h.join(a,i,"package.json"))}catch{return!1}}function B(a={},b=f){let c=String(a.version||"latest").replace(/^v(?=\d)/,""),d=/^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/.test(c);if(!a.localArtifact){let b=a.packageSpec||`${i}@${c}`;return("latest"===c||d)&&b===`${i}@${c}`?{ok:!0,kind:"registry",packageSpec:b,expectedVersion:d?c:null}:{ok:!1,error:"Version must be 'latest' or an exact semantic version (for example 1.2.3)."}}if(!0!==a.allowLocalArtifact||!d)return{ok:!1,error:"Local artifacts require explicit opt-in and an exact expected version."};try{let d=h.resolve(String(a.localArtifact)),e=b.lstatSync(d);if(!e.isFile()||e.isSymbolicLink()||".tgz"!==h.extname(d))throw Error("Local artifact must be a regular .tgz file, not a directory or symlink.");let f=b.realpathSync(d);if(f!==d)throw Error("Local artifact path must already be canonical and contain no symlink components.");return{ok:!0,kind:"local-artifact",packageSpec:f,expectedVersion:c}}catch(a){return{ok:!1,error:a.message}}}function C(a={}){let b=m(),c=a.dependencies||{},d=c.fs||f,g=c.runNpm||o,t=c.resolveNpmForThisNode||n,u=c.getGlobalRoot||p,D=c.getGlobalBin||q,E=c.spawnSync||e,F=B(a,d);if(!F.ok)return{ok:!1,nodePath:process.execPath,npmPath:"",globalRoot:"",platform:b,error:F.error};let G=t(),H=u(G),I=D(G),J=A(H,d),K=J?z(H,d):null,L=null;if(J&&!a.externalRollback)try{L=v(H,I),k(`rollback snapshot: ${L.backupRoot}`)}catch(a){return{ok:!1,nodePath:process.execPath,npmPath:G,globalRoot:H,platform:b,version:K||void 0,error:`Refusing to update without a rollback snapshot: ${a.message}`}}k(`OS: ${b.label} (${process.platform}/${process.arch})`),k(`Node: ${process.version} @ ${process.execPath}`),k(`npm: ${G}`),k(`global root: ${H}`),k(`global bin: ${I}`),k(`installing: ${F.packageSpec}${K?` (was ${K})`:""}`);let M=!0===a.forceClean;M&&!J?(r(H),s(I)):M&&J&&l("forceClean requested but existing package kept until install succeeds (OOM-safe)");let N=["install","-g",F.packageSpec];"registry"===F.kind&&N.push("--prefer-online"),process.env.npm_config_registry||process.env.ZEVAI_NPM_REGISTRY&&N.push("--registry",process.env.ZEVAI_NPM_REGISTRY);let O=g(G,N,{timeout:6e5,stream:!0}),P=`${O.stderr}
|
|
2
2
|
${O.stdout}
|
|
3
3
|
${O.error||""}`;if(!O.ok&&/ENOTEMPTY|directory not empty|rename/i.test(P)){l("ENOTEMPTY/rename failed — force-clean and retry once");try{r(H),s(I),O=g(G,N,{timeout:6e5,stream:!0}),P=`${O.stderr}
|
|
4
4
|
${O.stdout}
|
|
@@ -53,7 +53,7 @@ Done. Run: zevai --version`),d.zevaiPath&&console.log(`Binary: ${d.zevaiPath}`)
|
|
|
53
53
|
}
|
|
54
54
|
} catch {}
|
|
55
55
|
})();
|
|
56
|
-
`}async function v(a,b={}){let{languages:c,fingerprint:d,...e}=b||{},f=await a.newContext(e);if(Array.isArray(c)&&c.length||d&&"object"==typeof d)try{await f.addInitScript(u({languages:c,fingerprint:d}))}catch{}return f}async function w(a,{timeoutMs:b,message:c=`Automation operation timed out after ${b}ms`,code:d="AUTOMATION_TIMEOUT",onTimeout:e,onLateResolve:f}={}){let g=Promise.resolve(a);if(!Number.isFinite(b)||b<=0)return g;let h=null,i=!1,j=new Promise((a,f)=>{h=setTimeout(()=>{i=!0;try{e?.()}catch{}f(Object.assign(Error(c),{code:d}))},b),h.unref?.()});try{return await Promise.race([g,j])}finally{h&&clearTimeout(h),i&&"function"==typeof f&&g.then(f).catch(()=>null)}}function x(a){let b=String(a||"").trim();if(!b)return null;if(f().isIP(b))return b;try{let a=JSON.parse(b);for(let b of["ip","query","address","origin"]){let c=String(a?.[b]||"").trim();if(f().isIP(c))return c}}catch{}for(let a of b.matchAll(/(?:\d{1,3}\.){3}\d{1,3}/g))if(f().isIP(a[0]))return a[0];for(let a of b.split(/[\s,;()[\]{}<>"'=\uFF1A]+/)){let b=a.replace(/^[^0-9a-f:]+|[^0-9a-f:]+$/gi,"");if(b.includes(":")&&f().isIP(b))return b}return null}async function y(a){if(a){if("function"==typeof a.close)return void await Promise.resolve(a.close()).catch(()=>null);"function"==typeof a.destroy&&await Promise.resolve(a.destroy()).catch(()=>null)}}async function z(a,{timeoutMs:b=8e3,urls:c=p,rounds:d=3,retryDelayMs:e=350,fetchImpl:f=g.hd,createProxyAgent:h=a=>new g.ProxyAgent(a),sleepImpl:i=a=>new Promise(b=>setTimeout(b,a))}={}){let j=null,k=[],l=null;try{try{j=h(a)}catch{return{ok:!1,ip:null,url:null,attempts:0,attemptedUrls:k,error:"proxy agent setup failed"}}let g=Math.max(1,Math.min(5,Number.parseInt(d,10)||1));for(let a=1;a<=g;a+=1){for(let d of c){k.push(d);try{let c=await f(d,{dispatcher:j,redirect:"follow",signal:AbortSignal.timeout(b),headers:{Accept:"text/plain, application/json;q=0.9, */*;q=0.1","Cache-Control":"no-cache"}});if(!c?.ok){l=`HTTP ${c?.status||0}`;continue}let e=x(await c.text());if(!e){l="exit-IP response was not recognized";continue}return{ok:!0,ip:e,url:d,attempts:k.length,attemptedUrls:k,rounds:a,error:null}}catch(a){l=a?.name==="TimeoutError"?`timed out after ${b}ms`:"request failed"}}a<g&&e>0&&await i(Math.min(2e3,e*a))}return{ok:!1,ip:null,url:null,attempts:k.length,attemptedUrls:k,rounds:g,error:l||"all exit-IP services failed"}}finally{await y(j)}}async function A(a,{timeoutMs:b=5e3,fetchImpl:c=g.hd}={}){try{let d=await c(`https://ipwho.is/${encodeURIComponent(a)}`,{redirect:"follow",signal:AbortSignal.timeout(b),headers:{Accept:"application/json"}});if(!d?.ok)return null;let e=await d.json();if(e?.success===!1)return null;let f=String(e?.country_code||"").trim().toUpperCase(),g=String(e?.timezone?.id||"").trim(),h=q[f]?.locale||(f?`en-${f}`:"");return g&&h?{countryCode:f||null,timezone:g,locale:h,source:"ip-geo"}:null}catch{return null}}async function B(a,b={}){let c=await z(a,b);if(!c.ok||!c.ip){let a=Error(`Manual proxy exit IP could not be verified before browser launch (${c.error||"no response"}); no phone number was purchased`);throw a.code="CLOAKBROWSER_PROXY_EGRESS_UNAVAILABLE",a}let d=function(a){try{let b=new URL(String(a||"").trim()),c=decodeURIComponent(b.username||""),d=[...c.matchAll(/(?:^|__)cr\.([a-z]{2})(?=__|$)/gi)],e=c.match(/(?:^|[-_])country[-_.]?([a-z]{2})(?=$|[-_])/i),f=d.at(-1)?.[1]?.toUpperCase()||e?.[1]?.toUpperCase()||null,g=f?q[f]:null;return g?.timezone&&g?.locale?{countryCode:f,...g,source:"proxy-country"}:null}catch{return null}}(a)||await A(c.ip,b);if(!d?.timezone||!d?.locale){let a=Error("Manual proxy region could not be aligned with CloakBrowser; no phone number was purchased");throw a.code="CLOAKBROWSER_PROXY_GEOIP_UNAVAILABLE",a}return Object.freeze({egressIp:c.ip,timezone:d.timezone,locale:d.locale,countryCode:d.countryCode||null,source:d.source,probeUrl:c.url,probeAttempts:c.attempts})}function C(a,b){let c=["--fingerprint-webrtc-ip=","--fingerprint-timezone=","--fingerprint-locale=","--lang="],d=(a?.args||[]).filter(a=>!c.some(b=>String(a).startsWith(b)));return d.push(`--fingerprint-webrtc-ip=${b.egressIp}`,`--fingerprint-timezone=${b.timezone}`,`--lang=${b.locale}`,`--fingerprint-locale=${b.locale}`),{...a,args:d,timezone:b.timezone,locale:b.locale,geoip:!1}}function D(a=[]){let b=b=>{let c=`${b}=`,d=(a||[]).find(a=>String(a).startsWith(c));return d?String(d).slice(c.length):null};return{egressIp:b("--fingerprint-webrtc-ip"),timezone:b("--fingerprint-timezone"),locale:b("--fingerprint-locale")||b("--lang")}}function E(a){return a&&"object"==typeof a&&j.get(a)||null}function F(a){return a&&"object"==typeof a&&l.has(a)?l.get(a):null}function G(a){if(!a||"object"!=typeof a)return null;let b=k.get(a);if(b)return b;try{let b="function"==typeof a.process?a.process():null;if(b?.pid)return b}catch{}try{let b=a?._connection?.toImpl?.(a),c=b?.options?.browserProcess?.process||null;if(c?.pid)return c}catch{}return null}function H(a){let b=G(a);return a&&b&&k.set(a,b),b}function I(a){let b=Number(G(a)?.pid);return Number.isFinite(b)&&b>1?b:null}async function J({proxyUrl:a,headless:b=!1,windowSize:d=null,requireProxyGeoip:e=!1}={}){let{ensureDisplayForHeadedBrowser:f}=await c.e(3331).then(c.bind(c,13331)),g=function(a){try{return c(
|
|
56
|
+
`}async function v(a,b={}){let{languages:c,fingerprint:d,...e}=b||{},f=await a.newContext(e);if(Array.isArray(c)&&c.length||d&&"object"==typeof d)try{await f.addInitScript(u({languages:c,fingerprint:d}))}catch{}return f}async function w(a,{timeoutMs:b,message:c=`Automation operation timed out after ${b}ms`,code:d="AUTOMATION_TIMEOUT",onTimeout:e,onLateResolve:f}={}){let g=Promise.resolve(a);if(!Number.isFinite(b)||b<=0)return g;let h=null,i=!1,j=new Promise((a,f)=>{h=setTimeout(()=>{i=!0;try{e?.()}catch{}f(Object.assign(Error(c),{code:d}))},b),h.unref?.()});try{return await Promise.race([g,j])}finally{h&&clearTimeout(h),i&&"function"==typeof f&&g.then(f).catch(()=>null)}}function x(a){let b=String(a||"").trim();if(!b)return null;if(f().isIP(b))return b;try{let a=JSON.parse(b);for(let b of["ip","query","address","origin"]){let c=String(a?.[b]||"").trim();if(f().isIP(c))return c}}catch{}for(let a of b.matchAll(/(?:\d{1,3}\.){3}\d{1,3}/g))if(f().isIP(a[0]))return a[0];for(let a of b.split(/[\s,;()[\]{}<>"'=\uFF1A]+/)){let b=a.replace(/^[^0-9a-f:]+|[^0-9a-f:]+$/gi,"");if(b.includes(":")&&f().isIP(b))return b}return null}async function y(a){if(a){if("function"==typeof a.close)return void await Promise.resolve(a.close()).catch(()=>null);"function"==typeof a.destroy&&await Promise.resolve(a.destroy()).catch(()=>null)}}async function z(a,{timeoutMs:b=8e3,urls:c=p,rounds:d=3,retryDelayMs:e=350,fetchImpl:f=g.hd,createProxyAgent:h=a=>new g.ProxyAgent(a),sleepImpl:i=a=>new Promise(b=>setTimeout(b,a))}={}){let j=null,k=[],l=null;try{try{j=h(a)}catch{return{ok:!1,ip:null,url:null,attempts:0,attemptedUrls:k,error:"proxy agent setup failed"}}let g=Math.max(1,Math.min(5,Number.parseInt(d,10)||1));for(let a=1;a<=g;a+=1){for(let d of c){k.push(d);try{let c=await f(d,{dispatcher:j,redirect:"follow",signal:AbortSignal.timeout(b),headers:{Accept:"text/plain, application/json;q=0.9, */*;q=0.1","Cache-Control":"no-cache"}});if(!c?.ok){l=`HTTP ${c?.status||0}`;continue}let e=x(await c.text());if(!e){l="exit-IP response was not recognized";continue}return{ok:!0,ip:e,url:d,attempts:k.length,attemptedUrls:k,rounds:a,error:null}}catch(a){l=a?.name==="TimeoutError"?`timed out after ${b}ms`:"request failed"}}a<g&&e>0&&await i(Math.min(2e3,e*a))}return{ok:!1,ip:null,url:null,attempts:k.length,attemptedUrls:k,rounds:g,error:l||"all exit-IP services failed"}}finally{await y(j)}}async function A(a,{timeoutMs:b=5e3,fetchImpl:c=g.hd}={}){try{let d=await c(`https://ipwho.is/${encodeURIComponent(a)}`,{redirect:"follow",signal:AbortSignal.timeout(b),headers:{Accept:"application/json"}});if(!d?.ok)return null;let e=await d.json();if(e?.success===!1)return null;let f=String(e?.country_code||"").trim().toUpperCase(),g=String(e?.timezone?.id||"").trim(),h=q[f]?.locale||(f?`en-${f}`:"");return g&&h?{countryCode:f||null,timezone:g,locale:h,source:"ip-geo"}:null}catch{return null}}async function B(a,b={}){let c=await z(a,b);if(!c.ok||!c.ip){let a=Error(`Manual proxy exit IP could not be verified before browser launch (${c.error||"no response"}); no phone number was purchased`);throw a.code="CLOAKBROWSER_PROXY_EGRESS_UNAVAILABLE",a}let d=function(a){try{let b=new URL(String(a||"").trim()),c=decodeURIComponent(b.username||""),d=[...c.matchAll(/(?:^|__)cr\.([a-z]{2})(?=__|$)/gi)],e=c.match(/(?:^|[-_])country[-_.]?([a-z]{2})(?=$|[-_])/i),f=d.at(-1)?.[1]?.toUpperCase()||e?.[1]?.toUpperCase()||null,g=f?q[f]:null;return g?.timezone&&g?.locale?{countryCode:f,...g,source:"proxy-country"}:null}catch{return null}}(a)||await A(c.ip,b);if(!d?.timezone||!d?.locale){let a=Error("Manual proxy region could not be aligned with CloakBrowser; no phone number was purchased");throw a.code="CLOAKBROWSER_PROXY_GEOIP_UNAVAILABLE",a}return Object.freeze({egressIp:c.ip,timezone:d.timezone,locale:d.locale,countryCode:d.countryCode||null,source:d.source,probeUrl:c.url,probeAttempts:c.attempts})}function C(a,b){let c=["--fingerprint-webrtc-ip=","--fingerprint-timezone=","--fingerprint-locale=","--lang="],d=(a?.args||[]).filter(a=>!c.some(b=>String(a).startsWith(b)));return d.push(`--fingerprint-webrtc-ip=${b.egressIp}`,`--fingerprint-timezone=${b.timezone}`,`--lang=${b.locale}`,`--fingerprint-locale=${b.locale}`),{...a,args:d,timezone:b.timezone,locale:b.locale,geoip:!1}}function D(a=[]){let b=b=>{let c=`${b}=`,d=(a||[]).find(a=>String(a).startsWith(c));return d?String(d).slice(c.length):null};return{egressIp:b("--fingerprint-webrtc-ip"),timezone:b("--fingerprint-timezone"),locale:b("--fingerprint-locale")||b("--lang")}}function E(a){return a&&"object"==typeof a&&j.get(a)||null}function F(a){return a&&"object"==typeof a&&l.has(a)?l.get(a):null}function G(a){if(!a||"object"!=typeof a)return null;let b=k.get(a);if(b)return b;try{let b="function"==typeof a.process?a.process():null;if(b?.pid)return b}catch{}try{let b=a?._connection?.toImpl?.(a),c=b?.options?.browserProcess?.process||null;if(c?.pid)return c}catch{}return null}function H(a){let b=G(a);return a&&b&&k.set(a,b),b}function I(a){let b=Number(G(a)?.pid);return Number.isFinite(b)&&b>1?b:null}async function J({proxyUrl:a,headless:b=!1,windowSize:d=null,requireProxyGeoip:e=!1}={}){let{ensureDisplayForHeadedBrowser:f}=await c.e(3331).then(c.bind(c,13331)),g=function(a){try{return c(50982)(`./${a}`)}catch{return null}}("cloakbrowserRuntime"),h=null;if(g?.ensureCloakbrowserRuntime){let a=g.ensureCloakbrowserRuntime({silent:!1});if(!a.ok&&a.error)throw a.error;h=a.module||g.loadCloakbrowserModule?.()}if(!h?.launch)try{let a=await Promise.resolve().then(function(){var a=Error("Cannot find module 'cloakbrowser'");throw a.code="MODULE_NOT_FOUND",a});h=a?.default||a}catch(b){let a=Error("cloakbrowser is not installed. Bulk import will auto-install on next run, or run: cd ~/.zevai/runtime && npm install cloakbrowser mmdb-lib playwright-core");throw a.code="CLOAKBROWSER_PACKAGE_MISSING",a.cause=b,a}if(!h?.launch){let a=Error("cloakbrowser loaded but launch() is missing");throw a.code="CLOAKBROWSER_API_MISMATCH",a}let i=!0===b;if(!i){let a=f();if(!a.ok)throw a.error}let k={headless:i,humanize:!0};a&&(k.proxy=a,k.geoip=!0),d?.width&&d?.height&&(k.args=[`--window-size=${d.width},${d.height}`]);let m=k,n=null;a&&e&&(m=C(k,n=await B(a)));try{let a=await h.launch(m);return H(a),l.set(a,i),n&&j.set(a,Object.freeze({...n})),a}catch(b){let a=String(b?.message||b||"");if(!i&&/XServer|DISPLAY|Missing X server|headed browser|no DISPLAY/i.test(a)){if(f().ok){let a=await h.launch(m);return H(a),l.set(a,i),n&&j.set(a,Object.freeze({...n})),a}let c=Error(`${a}
|
|
57
57
|
|
|
58
58
|
VPS has no display. Install a virtual screen then retry:
|
|
59
59
|
sudo apt-get update && sudo apt-get install -y xvfb
|