zevairouter 1.1.65 → 1.1.66
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 +11 -0
- package/cli/app/.next-cli-build/BUILD_ID +1 -1
- package/cli/app/.next-cli-build/app-path-routes-manifest.json +21 -21
- 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/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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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 +2 -2
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +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.nft.json +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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +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.nft.json +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 +5 -6
- 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.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/codewhale-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +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-profiles/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
- 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 +1 -1
- 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/crush-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- 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/devin-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
- 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-profiles/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/openbot-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-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 +1 -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/cli-tools/pi-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +3 -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/presets/route.js.nft.json +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.nft.json +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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/test/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.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/dashboard/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +1 -1
- 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.nft.json +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/catalog-sync/route.js.nft.json +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.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.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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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/api-key/route.js.nft.json +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/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +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.nft.json +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.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]/overrides/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.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/cloudflare-ai/discover-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +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/openrouter/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.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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +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.nft.json +1 -1
- 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.nft.json +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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +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.nft.json +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 +3 -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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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 +1 -1
- 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.nft.json +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.nft.json +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.nft.json +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.nft.json +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]/claude-reset/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/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.nft.json +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.nft.json +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 +2 -2
- 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.nft.json +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.nft.json +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.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.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.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/[...model]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/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/systemone/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +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.nft.json +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.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 +2 -2
- package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- 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 +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/index.html +1 -1
- package/cli/app/.next-cli-build/server/app/index.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/landing/page.js.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 +2 -2
- package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- 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 +2 -2
- package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +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.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.nft.json +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 +21 -21
- package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/3190.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/3204.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4039.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4128.js +3 -0
- package/cli/app/.next-cli-build/server/chunks/4177.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/4730.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4827.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/5024.js +51 -1
- package/cli/app/.next-cli-build/server/chunks/5330.js +12 -12
- package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5744.js +2 -0
- package/cli/app/.next-cli-build/server/chunks/7135.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/7319.js +18 -18
- package/cli/app/.next-cli-build/server/chunks/8238.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/9489.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/9548.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/9618.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/9679.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/9946.js +1 -0
- 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/chunks/{620-0ce4eb71a4de4935.js → 620-7835dd9c83c5b531.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-a0e271ee32723312.js → page-41baf67bacd12af7.js} +1 -1
- package/cli/app/CHANGELOG.md +11 -0
- package/cli/app/package.json +1 -1
- package/cli/package.json +1 -1
- package/package.json +1 -1
- package/cli/app/.next-cli-build/server/chunks/4754.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/5308.js +0 -3
- package/cli/app/.next-cli-build/server/chunks/5580.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/6382.js +0 -51
- package/cli/app/.next-cli-build/server/chunks/7793.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/8795.js +0 -1
- /package/cli/app/.next-cli-build/static/{CAhDXqUZlelAv-gfrHZSr → 86qPSmidvodTOsnCM3oez}/_buildManifest.js +0 -0
- /package/cli/app/.next-cli-build/static/{CAhDXqUZlelAv-gfrHZSr → 86qPSmidvodTOsnCM3oez}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=8238,exports.ids=[8238],exports.modules={30869:(a,b,c)=>{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(17404),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"}},38238:(a,b,c)=>{c.d(b,{OU:()=>j,PL:()=>o,Yd:()=>i});var d=c(89718),e=c(17404),f=c(54098),g=c(30869),h=c(54603);function i(a,b){let c="string"==typeof b?b:b?JSON.stringify(b):"";for(let a=0;a<3;a++){let a=c.replace(/^\s*(?:HTTP\s+)?\[?\d{3}\]?\s*:\s*/i,""),b=a;try{let c=JSON.parse(a),d=c?.error?.message||c?.message||c?.error;"string"==typeof d&&d&&(b=d)}catch{}if(b===c)break;c=b}return c=c.trim(),`HTTP ${a}${c?`: ${c.slice(0,240)}`:""}`}async function j(a=null){let b=null;try{let a=await (0,d.PX)(!0);b=a.find(a=>!1!==a.isActive)?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-zevai-cli-token"]=await (0,h.Xj)("zevai-cli-auth"),a&&(c["x-zevai-connection-id"]=a),c}function k(a){return"string"==typeof a?a.trim():""}function l(a){return a&&"object"==typeof a?k(a.reasoning||a.reasoning_content||a.thinking||a.thinking_content):""}function m(){return{ok:!1,error:"Probe timed out before a usable response",status:408}}async function n(a,b){let c=a.body?.getReader?.();if(!c)return{ok:!1,error:"Provider stream ended without a usable response"};let d=new TextDecoder,e="",g=null;try{for(;!g;){let{value:a,done:h}=await c.read();if(h)break;let i=(e+=d.decode(a,{stream:!0})).split(/\r?\n/);for(let a of(e=i.pop()||"",i)){let c=a.trim();if(!c||c.startsWith(":")||!c.startsWith("data:"))continue;let d=c.slice(5).trim();if("[DONE]"===d){g||(g={ok:!1,error:"Provider stream ended without a usable response"});break}let e=null;try{e=JSON.parse(d)}catch{continue}e=(0,f.x)(e,b);let h=function(a){if(!a||"object"!=typeof a)return null;if(a.error)return{ok:!1,error:String(a.error?.message||a.error).slice(0,240)};let b=Array.isArray(a.choices)?a.choices[0]:null;if(!b)return null;let c=k(b.delta?.content||b.message?.content),d=l(b.delta)||l(b.message);return c?{ok:!0}:d?{ok:!0,note:"reasoning-only response (length-limited)"}:null}(e);if(h?.ok===!1){g=h;break}h?.ok&&(g=h)}}}catch(a){if(g?.ok)return g;if(a?.name==="TimeoutError"||a?.name==="AbortError")return m();throw a}finally{await c.cancel().catch(()=>{})}return g||{ok:!1,error:"Provider stream ended without a usable response"}}async function o(a,b,c=`http://127.0.0.1:${process.env.PORT||g.h0.appPort}`,d={}){let h,p,q=await j(d.connectionId),r=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:q,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0&&Array.isArray(f.data[0]?.embedding)?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:q,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,f,g=new FormData,h=(e=new DataView(d=new ArrayBuffer(44+(b=8e3))),(f=(a,b)=>{for(let c=0;c<b.length;c+=1)e.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),e.setUint32(4,36+b,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,16e3,!0),e.setUint32(28,32e3,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,b,!0),new Blob([d],{type:"audio/wav"}));g.append("file",h,"test.wav"),g.append("model",a);let j=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(q).filter(([a])=>"content-type"!==a.toLowerCase())),body:g,signal:AbortSignal.timeout(15e3)}),k=Date.now()-r,l=await j.text().catch(()=>""),m=null;try{m=l?JSON.parse(l):null}catch{}if(!j.ok){let a=m?.error?.message||m?.msg||m?.message||m?.error||l;return{ok:!1,latencyMs:k,error:i(j.status,a),status:j.status}}return("string"==typeof m?.text?m.text:"").trim()?{ok:!0,latencyMs:k,error:null,status:j.status}:{ok:!1,latencyMs:k,status:j.status,error:"Provider returned no transcription text for this model"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:q,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return f?.answers&&"object"==typeof f.answers&&Object.keys(f.answers).length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no answers for this model"}}let s=(0,e.rs)(String(a).split("/")[0]),t=Number.isFinite(d.timeoutMs)?d.timeoutMs:(p=String(a||"").split("/")[0],"antigravity"===(0,e.rs)(p)?3e4:15e3);try{h=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:{...q,"x-zevai-probe":"first-token"},body:JSON.stringify({model:a,max_tokens:1024,stream:!0,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(t)})}catch(a){if(a?.name==="TimeoutError"||a?.name==="AbortError")return{...m(),latencyMs:Date.now()-r};return{ok:!1,latencyMs:Date.now()-r,error:a?.message||"Probe failed",status:0}}if(!h.ok){let a=await h.text().catch(()=>""),b=null;try{b=a?JSON.parse(a):null}catch{}b=(0,f.x)(b,s);let c=b?.error?.message||b?.msg||b?.message||b?.error||a;return{ok:!1,latencyMs:Date.now()-r,error:i(h.status,c),status:h.status}}if((h.headers.get("content-type")||"").includes("text/event-stream")){let a=await n(h,s);return{...a,latencyMs:Date.now()-r,status:h.status,error:a.error||null}}let u=await h.text().catch(()=>""),v=null;try{v=u?JSON.parse(u):null}catch{}let w=function(a){let b=a?.status,c=a?.msg||a?.message;if(null!=b&&"200"!==String(b)&&"0"!==String(b)&&c)return{ok:!1,error:`Provider status ${b}: ${String(c).slice(0,240)}`};if(a?.error)return{ok:!1,error:String(a?.error?.message||a?.error||"Provider returned an error").slice(0,240)};let d=Array.isArray(a?.choices)&&a.choices.length>0,e=a?.choices?.[0]||{},f=l(e.message),g=!k(e.message?.content);return d&&"length"===e.finish_reason&&g&&f?{ok:!0,note:"reasoning-only response (length-limited)"}:d&&(!g||f)?{ok:!0}:{ok:!1,error:"Provider returned no completion choices for this model"}}(v=(0,f.x)(v,s));return{ok:w.ok,latencyMs:Date.now()-r,status:h.status,error:w.ok?null:w.error,...w.note?{note:w.note}:{}}}},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.65","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/app/.next-cli-build/cache/","!cli/app/.next-cli-build/server/route-cache/","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":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","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","@node-saml/node-saml":"5.1.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","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","next":"16.4.2","node-forge":"^1.4.2","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","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","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"}')},54098:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(35024);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,u0:()=>d.u0,vq:()=>d.vq});var d=c(19548);new Set(Object.entries(c(17404).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})))}};
|
|
1
|
+
"use strict";exports.id=8238,exports.ids=[8238],exports.modules={30869:(a,b,c)=>{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(17404),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"}},38238:(a,b,c)=>{c.d(b,{OU:()=>j,PL:()=>o,Yd:()=>i});var d=c(89718),e=c(17404),f=c(54098),g=c(30869),h=c(54603);function i(a,b){let c="string"==typeof b?b:b?JSON.stringify(b):"";for(let a=0;a<3;a++){let a=c.replace(/^\s*(?:HTTP\s+)?\[?\d{3}\]?\s*:\s*/i,""),b=a;try{let c=JSON.parse(a),d=c?.error?.message||c?.message||c?.error;"string"==typeof d&&d&&(b=d)}catch{}if(b===c)break;c=b}return c=c.trim(),`HTTP ${a}${c?`: ${c.slice(0,240)}`:""}`}async function j(a=null){let b=null;try{let a=await (0,d.PX)(!0);b=a.find(a=>!1!==a.isActive)?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-zevai-cli-token"]=await (0,h.Xj)("zevai-cli-auth"),a&&(c["x-zevai-connection-id"]=a),c}function k(a){return"string"==typeof a?a.trim():""}function l(a){return a&&"object"==typeof a?k(a.reasoning||a.reasoning_content||a.thinking||a.thinking_content):""}function m(){return{ok:!1,error:"Probe timed out before a usable response",status:408}}async function n(a,b){let c=a.body?.getReader?.();if(!c)return{ok:!1,error:"Provider stream ended without a usable response"};let d=new TextDecoder,e="",g=null;try{for(;!g;){let{value:a,done:h}=await c.read();if(h)break;let i=(e+=d.decode(a,{stream:!0})).split(/\r?\n/);for(let a of(e=i.pop()||"",i)){let c=a.trim();if(!c||c.startsWith(":")||!c.startsWith("data:"))continue;let d=c.slice(5).trim();if("[DONE]"===d){g||(g={ok:!1,error:"Provider stream ended without a usable response"});break}let e=null;try{e=JSON.parse(d)}catch{continue}e=(0,f.x)(e,b);let h=function(a){if(!a||"object"!=typeof a)return null;if(a.error)return{ok:!1,error:String(a.error?.message||a.error).slice(0,240)};let b=Array.isArray(a.choices)?a.choices[0]:null;if(!b)return null;let c=k(b.delta?.content||b.message?.content),d=l(b.delta)||l(b.message);return c?{ok:!0}:d?{ok:!0,note:"reasoning-only response (length-limited)"}:null}(e);if(h?.ok===!1){g=h;break}h?.ok&&(g=h)}}}catch(a){if(g?.ok)return g;if(a?.name==="TimeoutError"||a?.name==="AbortError")return m();throw a}finally{await c.cancel().catch(()=>{})}return g||{ok:!1,error:"Provider stream ended without a usable response"}}async function o(a,b,c=`http://127.0.0.1:${process.env.PORT||g.h0.appPort}`,d={}){let h,p,q=await j(d.connectionId),r=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:q,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0&&Array.isArray(f.data[0]?.embedding)?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:q,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,f,g=new FormData,h=(e=new DataView(d=new ArrayBuffer(44+(b=8e3))),(f=(a,b)=>{for(let c=0;c<b.length;c+=1)e.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),e.setUint32(4,36+b,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,16e3,!0),e.setUint32(28,32e3,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,b,!0),new Blob([d],{type:"audio/wav"}));g.append("file",h,"test.wav"),g.append("model",a);let j=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(q).filter(([a])=>"content-type"!==a.toLowerCase())),body:g,signal:AbortSignal.timeout(15e3)}),k=Date.now()-r,l=await j.text().catch(()=>""),m=null;try{m=l?JSON.parse(l):null}catch{}if(!j.ok){let a=m?.error?.message||m?.msg||m?.message||m?.error||l;return{ok:!1,latencyMs:k,error:i(j.status,a),status:j.status}}return("string"==typeof m?.text?m.text:"").trim()?{ok:!0,latencyMs:k,error:null,status:j.status}:{ok:!1,latencyMs:k,status:j.status,error:"Provider returned no transcription text for this model"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:q,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return f?.answers&&"object"==typeof f.answers&&Object.keys(f.answers).length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no answers for this model"}}let s=(0,e.rs)(String(a).split("/")[0]),t=Number.isFinite(d.timeoutMs)?d.timeoutMs:(p=String(a||"").split("/")[0],"antigravity"===(0,e.rs)(p)?3e4:15e3);try{h=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:{...q,"x-zevai-probe":"first-token"},body:JSON.stringify({model:a,max_tokens:1024,stream:!0,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(t)})}catch(a){if(a?.name==="TimeoutError"||a?.name==="AbortError")return{...m(),latencyMs:Date.now()-r};return{ok:!1,latencyMs:Date.now()-r,error:a?.message||"Probe failed",status:0}}if(!h.ok){let a=await h.text().catch(()=>""),b=null;try{b=a?JSON.parse(a):null}catch{}b=(0,f.x)(b,s);let c=b?.error?.message||b?.msg||b?.message||b?.error||a;return{ok:!1,latencyMs:Date.now()-r,error:i(h.status,c),status:h.status}}if((h.headers.get("content-type")||"").includes("text/event-stream")){let a=await n(h,s);return{...a,latencyMs:Date.now()-r,status:h.status,error:a.error||null}}let u=await h.text().catch(()=>""),v=null;try{v=u?JSON.parse(u):null}catch{}let w=function(a){let b=a?.status,c=a?.msg||a?.message;if(null!=b&&"200"!==String(b)&&"0"!==String(b)&&c)return{ok:!1,error:`Provider status ${b}: ${String(c).slice(0,240)}`};if(a?.error)return{ok:!1,error:String(a?.error?.message||a?.error||"Provider returned an error").slice(0,240)};let d=Array.isArray(a?.choices)&&a.choices.length>0,e=a?.choices?.[0]||{},f=l(e.message),g=!k(e.message?.content);return d&&"length"===e.finish_reason&&g&&f?{ok:!0,note:"reasoning-only response (length-limited)"}:d&&(!g||f)?{ok:!0}:{ok:!1,error:"Provider returned no completion choices for this model"}}(v=(0,f.x)(v,s));return{ok:w.ok,latencyMs:Date.now()-r,status:h.status,error:w.ok?null:w.error,...w.note?{note:w.note}:{}}}},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.66","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/app/.next-cli-build/cache/","!cli/app/.next-cli-build/server/route-cache/","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":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","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","@node-saml/node-saml":"5.1.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","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","next":"16.4.2","node-forge":"^1.4.2","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","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","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"}')},54098:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(35024);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,u0:()=>d.u0,vq:()=>d.vq});var d=c(19548);new Set(Object.entries(c(17404).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})))}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=9489,exports.ids=[9489],exports.modules={428:(a,b,c)=>{c.d(b,{J:()=>i});var d=c(38775),e=c(88967),f=c(58136),g=c(83017),h=c(57874);async function i({body:a,models:b,routerModel:c=h.UH,log:j,timeoutMs:k=h.rc}){if(!Array.isArray(b)||b.length<=1)return null;let l="string"==typeof c&&c.trim()?c.trim():h.UH,m=(0,h.nn)(a);if(!m)return j?.debug?.("COMBO","smart-router: empty prompt state, skipping classification"),null;let n=(0,h.JE)(b);if(0===Object.keys(n).length)return null;try{let a,b,c=await (0,d.mA)(l);if(!c?.provider)return j?.warn?.("COMBO",`smart-router: unrecognized router model "${l}"`),null;let{provider:i,model:o}=c,p=await (0,e.c1)(i,new Set,o);if(!p||p.allRateLimited)return j?.warn?.("COMBO",`smart-router: no credentials available for router provider "${i}"`),null;let q=await (0,f.eU)(i,p),r=new Promise((b,c)=>{a=setTimeout(()=>c(Error(`System One router timed out after ${k}ms`)),k)}),s=(0,g.l)({body:{model:o,state:m,questions:{route:{type:"choice",instructions:"Which of these configured models is the most appropriate for this request?",criteria:n}}},modelInfo:{provider:i,model:o},credentials:q,log:j,onRequestSuccess:()=>{}});try{b=await Promise.race([s,r])}finally{clearTimeout(a)}if(!b?.success||!b.response)return j?.warn?.("COMBO",`smart-router: evaluation failed (${b?.status||"error"})`),null;let t=await b.response.json(),u=(0,h.Kn)(t);if(!u||!u.choice)return j?.warn?.("COMBO","smart-router: response missing valid route choice"),null;return u}catch(a){return j?.warn?.("COMBO",`smart-router: evaluation aborted (${a?.message||String(a)})`),null}}},3359:(a,b,c)=>{c.d(b,{K0:()=>j,Oh:()=>n,c9:()=>q,lL:()=>r,s9:()=>i});var d=c(89718),e=c(19548);let f="gpt-5.6";function g(a){return String(a||"").trim().replace(/^\/+|\/+$/g,"")}function h(a){let b;return`cx/${(b=g(a)).startsWith("cx/")?b.slice(3):b.startsWith("codex/")?b.slice(6):b||f}`}function i(a){let b=g(a);if(!b)return null;if("auto-codex"===b)return{mode:"router",modelString:`cx/${f}`,strictAccount:!1,label:"Auto Codex"};if(b.startsWith("router/")){let a;return{mode:"router",modelString:(a=g(b.slice(7))||f).includes("/")?a:`cx/${a}`,strictAccount:!1,label:"Router Pool"}}if(b.startsWith("original/"))return{mode:"original",modelString:h(b.slice(9)),strictAccount:!0,label:"Original Codex"};if("original"===b)return{mode:"original",modelString:`cx/${f}`,strictAccount:!0,label:"Original Codex"};let c=b.startsWith("account/")?"account/":b.startsWith("codex-account/")?"codex-account/":null;if(c){let a=b.slice(c.length),d=a.indexOf("/"),e=-1===d?a:a.slice(0,d),g=-1===d?f:a.slice(d+1);return e?{mode:"account",accountRef:e,modelString:h(g),strictAccount:!0,label:"Pinned Codex Account"}:null}return null}function j(a){return a?.displayName||a?.name||a?.email||a?.id||"Codex account"}function k(a){let b=String(j(a)).toLowerCase().replace(/@/g,"-").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"account";return`${b}-${String(a?.id||"").slice(0,8)}`}function l(a){return String(a||"").trim().toLowerCase()}function m(a){let b=a?.providerSpecificData||{};return"GPTJson"===b.importedFrom||String(b.tokenSource||"").startsWith("ChatGPT_team")}async function n(a=5e3){let b=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),c=b.slice(0,a).map(a=>({id:a.id,slug:k(a),label:j(a),email:a.email||null,imported:m(a),priority:a.priority||null})),e=o(b);return{accounts:c,original:e?{id:e.id,slug:k(e),label:j(e),email:e.email||null,imported:m(e),priority:e.priority||null}:null}}function o(a){return Array.isArray(a)&&0!==a.length?a.find(a=>!m(a))||a[0]:null}async function p(a){let b=l(a);if(!b)return null;let c=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),e=c.find(a=>l(a.id)===b||k(a)===b||l(a.email)===b||l(a.name)===b||l(a.displayName)===b);if(e)return e;let f=c.filter(a=>l(a.id).startsWith(b)||k(a).startsWith(b));return 1===f.length?f[0]:null}async function q(a){if(!a||"original"!==a.mode&&"account"!==a.mode)return null;if("account"===a.mode)return p(a.accountRef);let b=await (0,d.mt)(),c=b.codexGatewayOriginalConnectionId||b.codexOriginalConnectionId||"";if(c){let a=await p(c);if(a)return a}return o(await (0,d.getProviderConnections)({provider:"codex",isActive:!0}))}function r(a=[]){if(!a.some(a=>"codex"===a.provider&&!1!==a.isActive))return[];let b=[{id:"auto-codex",object:"model",owned_by:"zevai-codex-gateway"},...(e.vq.cx||[]).filter(a=>!a.type||"llm"===a.type).map(a=>a.id).flatMap(a=>[{id:`router/${a}`,object:"model",owned_by:"zevai-codex-gateway"},{id:`original/${a}`,object:"model",owned_by:"zevai-codex-gateway"}])];for(let c of a.filter(a=>"codex"===a.provider&&!1!==a.isActive))b.push({id:`account/${k(c)}`,object:"model",owned_by:"zevai-codex-account"});return b}},7444:(a,b,c)=>{c.d(b,{m:()=>e});let d=Object.freeze({kiroIntegrity:"ZEVAI_V11_KIRO_INTEGRITY",outboundPolicy:"ZEVAI_V11_OUTBOUND_POLICY",compatV11:"ZEVAI_V11_COMPAT",refreshLanes:"ZEVAI_V11_REFRESH_LANES",adaptiveShadow:"ZEVAI_V11_ADAPTIVE_SHADOW",adaptiveRoute:"ZEVAI_V11_ADAPTIVE_ROUTE",registryV2:"ZEVAI_V11_REGISTRY_V2",quotaStreamV2:"ZEVAI_V11_QUOTA_STREAM_V2"});function e(a={},b=process.env){let c=a?.v11Flags&&"object"==typeof a.v11Flags?a.v11Flags:{};return Object.freeze(Object.fromEntries(Object.entries(d).map(([a,d])=>{var e;return[a,("true"===(e=b?.[d])||"1"===e||"false"!==e&&"0"!==e&&null)??!0===c[a]]})))}},7912:(a,b,c)=>{c.d(b,{J:()=>i});var d=c(93930);let e=Object.freeze({health:35,priority:20,quota:20,latency:15,stability:10}),f=Object.freeze({healthy:1,degraded:.25,probing:.4,unhealthy:0});function g(a){return Math.min(1,Math.max(0,a))}function h(a,b,c=!1){if(!Number.isFinite(a))return .5;let d=Number(b?.min),e=Number(b?.max);if(!Number.isFinite(d)||!Number.isFinite(e)||e<=d)return .5;let f=g((a-d)/(e-d));return c?1-f:f}function i({candidates:a=[],legacyCandidateId:b=null,flags:c={},providerActivation:j=!1,context:k={}}={}){let l=function(a=[],b={}){return a.map(a=>{let c=(0,d.Z)(a,b);return c.eligible?Object.freeze({candidate:a,eligibility:c,score:function(a={},b={}){var c;if(!1===(a.eligibility||b.eligibility||(0,d.Z)(a,b)).eligible)return null;let i=Object.freeze({health:Number.isFinite(c=a.health)?g(c):f[c]??.5,priority:h(a.priority,b.priorityRange,!0),quota:function(a){if(!a||"object"!=typeof a)return .5;let b=Number(a.remaining),c=Number(a.total);return Number.isFinite(b)&&Number.isFinite(c)&&!(c<=0)?g(b/c):.5}(a.quota),latency:h(a.latency,b.latencyRange,!0),stability:!0===a.sticky?1:.5}),j=Object.entries(e).reduce((a,[b,c])=>a+i[b]*c,0);return Object.freeze({total:Math.round(1e3*(100*g(("degraded"===a.health?Math.min(j,e.health-.001):j)/100)))/1e3,components:i})}(a,{...b,eligibility:c})}):null}).filter(Boolean).sort((a,b)=>b.score.total-a.score.total||Number(a.candidate.legacyOrder||0)-Number(b.candidate.legacyOrder||0)||String(a.candidate.id||"").localeCompare(String(b.candidate.id||"")))}(a,k),m=Object.freeze(l.map(({candidate:a,score:b})=>Object.freeze({id:a.id,score:b.total,components:b.components}))),n=k.pinnedConnectionId&&a.find(a=>a.id===k.pinnedConnectionId)||a.find(a=>a.id===b)||l[0]?.candidate||null,o=l[0]?.candidate||n,p=!0===c.adaptiveRoute&&!0===j&&!!o,q=!p&&!0===c.adaptiveShadow;return Object.freeze({mode:p?"active":q?"shadow":"legacy",selected:p?o:n,legacyCandidateId:n?.id||null,adaptiveCandidateId:o?.id||null,ranked:m})}},14262:(a,b,c)=>{function d(a){let b=String(a||"").trim();if(!b)return"";let c=b.replace(/\/+$/,"");return c.endsWith("/v1")?c:`${c}/v1`}function e(a){let b=String(a||"").trim();return b?"auto-codex"===b||b.startsWith("router/")||b.startsWith("original/")||b.startsWith("account/")||b.startsWith("codex-account/")?b:b.startsWith("codex/")?`cx/${b.slice(6)}`:b.includes("/")?b:b.startsWith("gpt-")||/^o[134]/i.test(b)?`cx/${b}`:b:"cx/gpt-5.6-sol"}function f(a){let b=e(a);return b.startsWith("cx/")?b.slice(3):b}function g(a,b){return"codex"===b?e(a):a}c.d(b,{Fq:()=>f,Ow:()=>e,eR:()=>g,tb:()=>d,x_:()=>j,zA:()=>i});let h=/^[a-z0-9][a-z0-9_-]{0,63}$/;function i(a){let b="string"==typeof a?a.trim().toLowerCase():"";return"config"!==b&&h.test(b)?b:null}function j(a){let b="string"==typeof a?a.trim():"";if(!b||b.length>256||/[\u0000-\u001f"]/.test(b))return null;let c=e(b);return!c||c.length>256||/[\u0000-\u001f"]/.test(c)?null:c}},17603:(a,b,c)=>{c.d(b,{R8:()=>j,ar:()=>k,vB:()=>h});var d=c(24);let e=["vision","pdf","audioInput","videoInput"],f=new Set(e);function g(a,b){let c=b?.capacityAdapter?.[a];if(!c)return{enabled:!1,roundRobin:!1,models:[]};if(Array.isArray(c)){let a=c.filter(a=>a&&!1!==a.enabled&&"string"==typeof a.model).map(a=>a.model);return{enabled:a.length>0,roundRobin:!1,models:a}}let d=Array.isArray(c.models)?c.models.filter(a=>"string"==typeof a&&a.trim()):[];return{enabled:!0===c.enabled&&d.length>0,roundRobin:!0===c.roundRobin,models:d}}function h(a,b){for(let c of e){if(!a||!a.has?.(c))continue;let{enabled:d}=g(c,b);if(d)return function(a,b){let{enabled:c,roundRobin:d}=g(a,b);return c&&d?"round-robin":"fallback"}(c,b)}return"fallback"}function i(a,b){let c="string"==typeof a?a.indexOf("/"):-1,e=c>0?a.slice(0,c):"",f=c>0?a.slice(c+1):a,g=(0,d.nl)(e,f);return b.every(a=>!0===g[a])}function j(a,b,c){let d=[...b||[]].filter(a=>f.has(a));if(0===d.length||!Array.isArray(a)||0===a.length||a.some(a=>i(a,d)))return a;let h=(function(a){let b=new Set,c=[];for(let d of e){let{enabled:e,models:f}=g(d,a);if(e)for(let a of f)b.has(a)||(b.add(a),c.push(a))}return c})(c).filter(b=>!a.includes(b)&&i(b,d));return 0===h.length?a:[...h,...a]}function k(a,b){let c=new Set(b||[]);return 0===c.size?a:(b,e,...f)=>{if(!c.has(e))return a(b,e,...f);let g="string"==typeof e?e.indexOf("/"):-1,h=g>0?e.slice(0,g):"",i=g>0?e.slice(g+1):e,j=(0,d.nl)(h,i);return a(function(a,b){if(!a||"object"!=typeof a||!Array.isArray(a.messages)||!Number.isFinite(b)||b<=0)return a;let c=a.messages;if(c.length<=7)return a;let d=Math.floor(.8*b*4),e=a=>{try{return JSON.stringify(a).length}catch{return 0}};if(c.reduce((a,b)=>a+e(b),0)<=d)return a;let f=c.slice(0,6),g=[c[c.length-1]],h=[...f,...g].reduce((a,b)=>a+e(b),0),i=[];for(let a=c.length-2;a>=6;a--){let b=e(c[a]);if(h+b>d)break;h+=b,i.unshift(c[a])}return{...a,messages:[...f,...i,...g]}}(b,j?.contextWindow),e,...f)}}},26679:(a,b,c)=>{c.d(b,{B$:()=>aj});var d,e=c(35024),f=c(19548),g=c(17404),h=c(48806),i=c(87098),j=c(17559),k=c(25433),l=c(34204),m=c(15082),n=c(90874),o=c(79875),p=c(91861),q=c(41004),r=c(64991);let s=/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/,t=new Set(["free","freeTier","oauth","apikey"]),u=new Set(["none","oauth","apikey"]),v=new Set(["llm","embedding","image","imageToText","music","stt","tts","video","webFetch","webSearch"]),w=new Set(["antigravity","claude","codex","commandcode","cursor","gemini","gemini-cli","kiro","ollama","openai","openai-response","openai-responses","vertex"]),x=new Set(["public","trusted-local","loopback-service"]),y=new Set(["terminal","kiro-eventstream","none"]),z=["embeddingConfig","imageConfig","imageToTextConfig","musicConfig","sttConfig","ttsConfig","videoConfig"],A=["connectMs","firstEventMs","progressIdleMs","absoluteMs"],B=Object.freeze({quotaSource:Object.freeze({strategy:"none",provenance:"none"}),deadlineProfile:Object.freeze({connectMs:15e3,firstEventMs:6e4,progressIdleMs:6e4,absoluteMs:3e5}),integrityProfile:Object.freeze({mode:"terminal",requireTerminal:!0})});class C extends Error{constructor(a,b){super(`Invalid provider descriptor ${a}: ${b}`),this.name="ProviderDescriptorError",this.path=a}}function D(a,b){throw new C(a,b)}function E(a){return null!==a&&"object"==typeof a&&!Array.isArray(a)}function F(a,b){"string"==typeof a&&s.test(a)||D(b,"must be a stable lowercase ID")}function G(a,b,c){Array.isArray(a)&&0!==a.length||D(b,"must be a non-empty array");let d=new Set;for(let e of a)"string"==typeof e&&c.has(e)||D(b,"contains an unsupported value"),d.has(e)&&D(b,"contains a duplicate value"),d.add(e)}function H(a){let b=[];for(let[c,d]of Object.entries(a||{}))/(?:base|validate|responses|messages|token|auth|refresh)urls?$/i.test(c)&&("string"==typeof d?b.push(d):Array.isArray(d)&&b.push(...d));return b}function I(a,b,c="public"){for(let d of H(a)){let a;try{a=new URL(d)}catch{D(b,"contains a malformed endpoint")}(a.username||a.password)&&D(b,"endpoint credentials are not allowed"),"public"===c&&"https:"!==a.protocol&&D(b,"public endpoints must use HTTPS"),"public"===c||["http:","https:"].includes(a.protocol)||D(b,"trusted local endpoints must use HTTP or HTTPS")}}function J(a,b,{allowEmpty:c=!1}={}){Array.isArray(a)&&(0!==a.length||c)||D(b,"must contain a static fallback");let d=new Set;for(let c of a)E(c)&&"string"==typeof c.id&&0!==c.id.length||D(b,"contains a model without an ID"),d.has(c.id)&&D(b,`contains duplicate model ${c.id}`),d.add(c.id)}function K(a,b){for(let c of(E(a)||D(b,"must be an object"),A))(!Number.isInteger(a[c])||a[c]<1e3||a[c]>9e5)&&D(`${b}.${c}`,"must be between 1000 and 900000 milliseconds");a.absoluteMs<a.connectMs&&D(`${b}.absoluteMs`,"must cover connect time")}let L={id:"antigravity",alias:"ag",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.antigravity},serviceKinds:g.AI_PROVIDERS.antigravity.serviceKinds,capabilities:{streaming:!0,tools:!0,thinking:!0},transport:e.xq.antigravity,models:f.vq.ag,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:{...B.deadlineProfile,variants:{thinking:{connectMs:B.deadlineProfile.connectMs,firstEventMs:q.iL,progressIdleMs:q.SI,absoluteMs:q.P4}}},integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"quota-or-model"}},M={id:"kiro",alias:"kr",category:"free",authModes:g.AI_PROVIDERS.kiro.authModes,display:{...g.AI_PROVIDERS.kiro},serviceKinds:["llm"],capabilities:{streaming:!0,tools:!0,thinking:!0,liveCatalog:!0},transport:e.xq.kiro,models:f.vq.kr,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:(0,r.JJ)("kiro"),deadlineProfile:B.deadlineProfile,integrityProfile:{mode:"kiro-eventstream",requireTerminal:!0,verifiedWindowMs:9e5,cleanProbesToRecover:5,memoryLimitBytes:2097152,maxBytes:0x4000000},dashboard:{connection:"oauth-or-apikey",validation:"profile-or-model"}},N={id:"codex",alias:"cx",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.codex},serviceKinds:g.AI_PROVIDERS.codex.serviceKinds,capabilities:{streaming:!0,tools:!0,thinking:!0},transport:e.xq.codex,models:f.vq.cx,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:B.deadlineProfile,integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"catalog-or-quota"}},O={id:"cursor",alias:"cu",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.cursor},serviceKinds:["llm"],capabilities:{streaming:!0,tools:!0,liveCatalog:!0},transport:e.xq.cursor,models:f.vq.cu,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:B.deadlineProfile,integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"account-or-model"}},P={id:"github",alias:"gh",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.github},serviceKinds:g.AI_PROVIDERS.github.serviceKinds,capabilities:{streaming:!0,tools:!0,responseEscalation:!0},transport:e.xq.github,models:f.vq.gh,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:B.deadlineProfile,integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"quota-or-model"},embeddingConfig:g.AI_PROVIDERS.github.embeddingConfig};var Q=c(89550),R=c(42366),S=c(65551),T=c(45452),U=c(8101),V=c(34291),W=c(67854),X=c(77016),Y=c(28906),Z=c(31409),$=c(13215),_=c(80485);let aa=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","systemoneConfig","modelsFetcher","mediaPriority","hiddenKinds"],ab=[h.A,i.A,j.A,k.A,l.A,m.A,n.A,o.A,p.A,L,M,N,O,P,Q.A,R.A,S.A,T.A,U.A,V.A,W.A,X.A,Y.A,Z.A,$.A,_.A];function ac(a={}){return Object.fromEntries(aa.filter(b=>void 0!==a[b]).map(b=>[b,a[b]]))}let ad=new Set([...Object.keys(g.AI_PROVIDERS),...Object.keys(e.xq)]),ae=new Map(ab.map(a=>[a.id,a])),af=new Set(["antigravity","kiro","codex","cursor","github"]),ag={};for(let a of ad){let b=function(a){let b=g.AI_PROVIDERS[a]||{},c=b.alias||a;return{id:a,alias:c,category:b.noAuth?"free":b.hasOAuth?"oauth":"apikey",authModes:b.authModes,hasOAuth:b.hasOAuth,noAuth:b.noAuth,passthroughModels:b.passthroughModels,display:function(a={}){let b=new Set(aa);return Object.fromEntries(Object.entries(a).filter(([a])=>!b.has(a)))}(b),transport:e.xq[a],models:f.vq[c]||f.vq[a]||[],...ac(b)}}(a),c=ae.has(a)?(d=ae.get(a),{...b,...d,display:{...b.display,...d.display},transport:{...b.transport,...d.transport},models:function(a=[],b=[]){let c=new Map;for(let d of[...a,...b])d?.id&&c.set(d.id,{...c.get(d.id),...d});return[...c.values()]}(b.models,d.models)}):b;ag[a]=af.has(a)?function(a,{optional:b=!1}={}){try{return function(a){if(E(a)||D("root","must be an object"),F(a.id,"id"),F(a.alias,"alias"),void 0!==a.aliases)for(let b of(Array.isArray(a.aliases)||D("aliases","must be an array"),a.aliases))F(b,"aliases");t.has(a.category)||D("category","is unsupported"),G(a.authModes,"authModes",u),G(a.serviceKinds,"serviceKinds",v),E(a.display)&&"string"==typeof a.display.name&&a.display.name.trim()||D("display.name","is required"),E(a.capabilities)||D("capabilities","must be an object"),E(a.transport)||D("transport","must be an object"),w.has(a.transport.format)||D("transport.format","is unsupported");let b=a.transport.trustClass||"public";x.has(b)||D("transport.trustClass","is unsupported"),0===H(a.transport).length&&D("transport","requires an endpoint"),I(a.transport,"transport",b),J(a.models,"models",{allowEmpty:!0===a.capabilities.liveCatalog}),E(a.quotaSource)&&"string"==typeof a.quotaSource.strategy&&"string"==typeof a.quotaSource.provenance||D("quotaSource","must declare strategy and provenance"),E(c=a.refreshProfile)||D("refreshProfile","must be an object"),(!Number.isInteger(c.maxConcurrent)||c.maxConcurrent<1)&&D("refreshProfile.maxConcurrent","must be a positive integer"),(!Number.isInteger(c.minDelayMs)||c.minDelayMs<0)&&D("refreshProfile.minDelayMs","must be a non-negative integer");var c,d=a.deadlineProfile;if(K(d,"deadlineProfile"),void 0!==d.variants)for(let[a,b]of(E(d.variants)||D("deadlineProfile.variants","must be an object"),Object.entries(d.variants)))K(b,`deadlineProfile.variants.${a}`);var e=a.integrityProfile;for(let a of(E(e)&&y.has(e.mode)||D("integrityProfile.mode","is unsupported"),"boolean"!=typeof e.requireTerminal&&D("integrityProfile.requireTerminal","must be boolean"),["memoryLimitBytes","maxBytes","verifiedWindowMs","cleanProbesToRecover"]))void 0!==e[a]&&(!Number.isInteger(e[a])||e[a]<=0)&&D(`integrityProfile.${a}`,"must be a positive integer");E(a.dashboard)&&"string"==typeof a.dashboard.connection&&"string"==typeof a.dashboard.validation||D("dashboard","must declare connection and validation modes");for(let b of z){let c=a[b];void 0!==c&&(E(c)||D(b,"must be an object"),I(c,b,c.trustClass||"public"),void 0!==c.models&&J(c.models,`${b}.models`))}return function a(b,c=new WeakMap){if(null===b||"object"!=typeof b)return b;if(c.has(b))return c.get(b);let d=Array.isArray(b)?[]:{};for(let[e,f]of(c.set(b,d),Object.entries(b)))d[e]=a(f,c);return Object.freeze(d)}(a)}(a)}catch(d){let c;if(!b)throw d;return Object.freeze({id:"string"==typeof a?.id&&s.test(a.id)?a.id:"optional-provider",disabled:!0,diagnostic:(c=d instanceof C?d.path:"unknown",`Provider descriptor disabled: invalid ${c}`.slice(0,160))})}}(c):c}let ah={},ai={},aj={};for(let a of Object.values(ag)){a.transport&&(ah[a.id]=a.transport),ai[a.alias||a.id]=a.models||[];let b=ac(a);Object.keys(b).length>0&&(aj[a.id]=b)}},32475:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{e:()=>J});var e=c(88967),f=c(90982),g=c(89718),h=c(29240),i=c(38775),j=c(92500),k=c(43659),l=c(48136),m=c(25308),n=c(41004),o=c(14170),p=c(7803),q=c(58136),r=c(38160),s=c(3359),t=c(35893),u=c(54603),v=c(49216),w=c(7912),x=c(75434),y=c(79761),z=c(91100),A=c(45974),B=c(7444),C=c(90704),D=a([j,C]);[j,C]=D.then?(await D)():D;let K="zevai-cli-auth",L=new Set(["account_auth","account_quota","authentication","credential_rejected","reauth_required","policy_suspended","account_validation_required","entitlement_or_quota","permission_denied","rate_limited"]);function E(a){return(0,x.cN)(a)}function F(a,b){let c=Object.entries(a?.circuits||{}).find(([,a])=>a?.probeAcquired===!0&&a?.probeLeaseId);if(!c)return null;let[d,e]=c;return{dimensions:"account"===d?{scope:d,provider:a.provider,accountId:a.id}:"provider"===d?{scope:d,provider:a.provider}:"egress"===d?{scope:d,egressId:a.egressId}:{scope:d,provider:a.provider,model:b,egressId:a.egressId},leaseId:e.probeLeaseId}}async function G(a){if(a?.headers?.get("x-zevai-probe")!=="first-token")return!1;let b=a.headers.get("x-zevai-cli-token");return!!b&&b===await (0,u.Xj)(K)}async function H(a){let b=a?.headers?.get("x-zevai-connection-id")||null;if(!b)return null;let c=a.headers.get("x-zevai-cli-token");return c&&c===await (0,u.Xj)(K)?b:null}async function I(a){let b=a?.headers?.get("x-zevai-context-canary")||null;if(!b||!/^[A-Za-z0-9-]{8,64}$/.test(b))return null;let c=a.headers.get("x-zevai-cli-token");return c&&c===await (0,u.Xj)(K)?b:null}async function J(a,b,d=null,u=null,x=null,D=null){let K=await (0,i.mA)(b);if(!K.provider){let c=await (0,i.d_)(b);if(c){let a=(0,h.RV)(b,D,c);if(!a.allowed)return(0,k.yj)(n.gx.FORBIDDEN,(0,h.Ip)(b,a))}if(c){let e=await (0,g.mt)(),f=e.comboStrategies||{},h=f[b]?.fallbackStrategy||e.comboStrategy||"fallback";if("fusion"===h)return p.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: fusion)`),(0,m.vt)({body:a,models:c,handleSingleModel:(a,b,c)=>{let e=d;if(c&&d){let{tools:a,tool_choice:b,...c}=d.body||{};e={...d,body:c}}return J(a,b,e,u,x,D)},log:p,comboName:b,judgeModel:f[b]?.judgeModel,tuning:f[b]?.fusionTuning});let i=e.comboStickyRoundRobinLimit;return p.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: ${h}, sticky: ${i})`),(0,m.Pr)({body:a,models:c,handleSingleModel:(a,b)=>J(a,b,d,u,x,D),log:p,comboName:b,comboStrategy:h,comboStickyLimit:i,...(0,C.Px)(h,f,b,d,a)})}return p.warn("CHAT","Invalid model format",{model:b}),(0,k.yj)(n.gx.BAD_REQUEST,"Invalid model format")}let{provider:M,model:N}=K,O=K.gateway||null,P="claude"===M||M?.startsWith?.("anthropic-compatible-")?(0,f.J)(d?.headers):null,Q=u?.headers?.get("user-agent")||"",R=new Set,S=(0,v.P2)({maxAttempts:3}),T=await (0,g.mt)(),U=(0,B.m)(T),V=`route-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,W=null,X=null,Y=null,Z=null,$={};x&&($.apiKey=x),D?.allowedConnectionIds&&($.allowedConnectionIds=D.allowedConnectionIds);let _=await H(u);if(_&&($.preferredConnectionId=_,$.strictPreferred=!0),O&&"codex"===M&&("original"===O.mode||"account"===O.mode)){let a=await (0,s.c9)(O);if(!a){let a="account"===O.mode?`account "${O.accountRef}"`:"original Codex account";return p.warn("AUTH",`Codex gateway could not resolve ${a}`),(0,k.yj)(n.gx.NOT_FOUND,`Codex gateway could not resolve ${a}`)}$.preferredConnectionId=a.id,$.strictPreferred=!!O.strictAccount,p.info("ROUTING",`Codex gateway ${O.mode} pinned to ${(0,s.K0)(a)}`)}for(;;){let b;if(0===S.remaining)return Y||(0,k.yj)(X||n.gx.SERVICE_UNAVAILABLE,W||"Upstream attempt budget exhausted",Z);let f=await (0,e.c1)(M,R,N,$);if(f?.modelUnavailable){let a=`${M}/${N}`;return p.warn("AUTH",`No known eligible account supports model: ${a}`),(0,k.yj)(f.status||n.gx.NOT_FOUND,f.message||`Model ${a} is not available on any known eligible account`)}if(!f||f.allRateLimited){if(f?.allRateLimited){let a=W||f.lastError||"Unavailable",b=X||Number(f.lastErrorCode)||n.gx.SERVICE_UNAVAILABLE;return p.warn("CHAT",`[${M}/${N}] ${a} (${f.retryAfterHuman})`),(0,k.wO)(b,`[${M}/${N}] ${a}`,f.retryAfter,f.retryAfterHuman,Z)}if(0===R.size)return p.warn("AUTH",`No active credentials for provider: ${M}`),(0,k.yj)(n.gx.NOT_FOUND,`No active credentials for provider: ${M}`);return p.warn("CHAT","No more accounts available",{provider:M}),(0,k.yj)(X||n.gx.SERVICE_UNAVAILABLE,W||"All accounts unavailable",Z)}let g=null,h=null,i=[],s=()=>{h&&((0,y.BU)(h.dimensions,{leaseId:h.leaseId,cancelled:!0}),h=null)};if((U.adaptiveShadow||U.adaptiveRoute)&&"function"==typeof e.uT)try{let b=[...(0,m.t8)(a)],c=T.providerStrategies?.[M]?.adaptiveRoute===!0,d=(i=await e.uT(M,N,{...$,operation:"chat",requiredCapabilities:b,acquireCircuitProbes:!0===U.adaptiveRoute&&c})).filter(a=>!R.has(a.id)),j=(0,w.J)({candidates:d,legacyCandidateId:f.connectionId,flags:U,providerActivation:c,context:{provider:M,model:N,operation:"chat",requiredCapabilities:b,allowedConnectionIds:$.allowedConnectionIds,pinnedConnectionId:$.strictPreferred?$.preferredConnectionId:null,priorityRange:{min:Math.min(...d.map(a=>a.priority).filter(Number.isFinite)),max:Math.max(...d.map(a=>a.priority).filter(Number.isFinite))}}});if("active"===j.mode&&j.selected?.id!==f.connectionId){let a=await (0,e.c1)(M,R,N,{...$,preferredConnectionId:j.selected.id,strictPreferred:!0});!a||a.allRateLimited||a.modelUnavailable||(f=a)}let k=d.find(a=>a.id===f.connectionId);for(let a of((h=F(k,N))&&E({type:"probe",requestTag:V,provider:M,model:N,connectionId:f.connectionId,phase:"open"}),i)){let b=F(a,N);b&&b.leaseId!==h?.leaseId&&(0,y.BU)(b.dimensions,{leaseId:b.leaseId,cancelled:!0})}let l=j.ranked.find(a=>a.id===j.adaptiveCandidateId);g={mode:j.mode,candidateCount:d.length,connectionId:f.connectionId,score:l?.score,scoreComponents:l?.components},E({type:"decision",requestTag:V,provider:M,model:N,connectionId:f.connectionId,...g})}catch(a){for(let a of i){let b=F(a,N);b&&(0,y.BU)(b.dimensions,{leaseId:b.leaseId,cancelled:!0})}h=null,p.warn("ADAPTIVE",`Planner unavailable for ${M}/${N}; using legacy route (${a?.message||a})`),g={mode:"legacy",candidateCount:0}}try{b=await (0,q.eU)(M,f)}catch(g){s();let a=g?.permanent===!0;if("kiro"!==M&&!a)throw g;let b=Number.isInteger(g?.status)?g.status:a?n.gx.UNAUTHORIZED:n.gx.BAD_GATEWAY,c="kiro"===M?a?"Kiro rejected the refresh credential.":"Kiro credential refresh failed temporarily.":`${M} refresh token rejected (token invalid); reconnect this account.`,{shouldFallback:d}=await (0,e.vk)(f.connectionId,b,c,M,N,null,{failureClass:a?"reauth_required":"upstream_transient",providerErrorCode:g?.code||null,upstreamRequestId:g?.requestId||null,authLifecycle:{initialStatus:null,refreshAttempted:!0,refreshOutcome:a?"rejected":"transient_failed",retryStatus:null}},..."codebuddy"===M||"codebuddy-cn"===M?[f._connection]:[]);if(d){R.add(f.connectionId),W=c,X=b,p.warn("AUTH",`${M} refresh failed for ${f.connectionName}; trying fallback`);continue}return(0,k.yj)(b,c)}if("antigravity"===M||"gemini-cli"===M){let a=b.projectId||f.projectId||f.providerSpecificData?.projectId||null;if(a&&(b.projectId=a),!b.projectId){let d=await (0,r.eG)(f.connectionId,b.accessToken,{preferredProjectId:a});if(!d&&"antigravity"===M)try{let{getProviderConnections:a}=await Promise.resolve().then(c.bind(c,71998));for(let b of await a({provider:"antigravity",isActive:!0})||[]){if(b.id===f.connectionId)continue;let a=b.projectId||b.providerSpecificData?.projectId;if(a){d=a;break}}}catch{}d&&(b.projectId=d,(0,q.vN)(f.connectionId,{projectId:d}).catch(()=>{}))}}let v=(T.providerThinking||{})[M]||null,B=null;if(T.pxpipeEnabled)try{let{getTransform:a}=await c.e(4253).then(c.bind(c,46634));B=await a()}catch{B=null}let C=P?{...b,rawHeaders:P}:b,D=async a=>{if("antigravity"===M&&a&&(409===a.status||429===a.status))try{let c=await (0,A.XJ)(f.connectionId,a.status,N,b?.accessToken||f.accessToken,f.providerSpecificData);if(Number.isFinite(c)&&c>Date.now()){let b=Number(a.resetsAtMs);(!Number.isFinite(b)||c>b)&&(a.resetsAtMs=c)}}catch(a){p.warn("AG_QUOTA",`quota refresh failed: ${a?.message||a}`)}},H=(0,t.S)({connectionId:f.connectionId,connectionName:f.connectionName,provider:M,model:N,markUnavailable:e.vk,selectedConnection:"codebuddy"===M||"codebuddy-cn"===M?f._connection:null,egressId:f.providerSpecificData?.connectionProxyPoolId||(f.providerSpecificData?.vercelRelayUrl?"relay":"direct"),logger:p}),J=()=>{let a=!1,b=S.acquire({candidate:{id:f.connectionId,provider:M,egressId:f.providerSpecificData?.connectionProxyPoolId||(f.providerSpecificData?.vercelRelayUrl?"relay":"direct")},async finalize(c){let d=(0,z.Q)(c);if(E({type:"terminal",requestTag:V,provider:M,model:N,connectionId:f.connectionId,attemptIndex:b?.attemptIndex,failureClass:c.success||d?void 0:c.failure?.failureMetadata?.failureClass}),!h||a||c.retrying||(a=!0,(0,y.BU)(h.dimensions,d?{leaseId:h.leaseId,cancelled:!0}:{leaseId:h.leaseId,success:!0===c.success}),E({type:"probe",requestTag:V,provider:M,model:N,connectionId:f.connectionId,phase:d?d.eventPhase:c.success?"success":"failure"})),d)return d;if(c.retrying)return{shouldFallback:!1,cooldownMs:0};if(c.lifecycleHandled)return{shouldFallback:!0===c.shouldFallback,cooldownMs:0};let g=c.failure?.failureMetadata?.failureClass||c.failureClass;return"client_abort"===g||"policy_rejection"===g?{shouldFallback:!1,cooldownMs:0,accountUnaffected:!0}:c.success?("antigravity"===M&&(0,A.vO)(f.connectionId,N),await (0,e.Pt)(f.connectionId,f,N),{shouldFallback:!1,cooldownMs:0}):H(c.failure||c)}});return b?.transition("acquired"),b&&E({type:"attempt_open",requestTag:V,provider:M,model:N,connectionId:f.connectionId,attemptIndex:b.attemptIndex}),b},K=S.attemptsUsed,O=J();O||s();let _=await (0,j.wk)({body:{...a,model:`${M}/${N}`},modelInfo:{provider:M,model:N},credentials:C,log:p,clientRawRequest:d,connectionId:f.connectionId,userAgent:Q,apiKey:x,ccFilterNaming:!!T.ccFilterNaming,rtkEnabled:!!T.rtkEnabled,headroomEnabled:!!T.headroomEnabled,headroomUrl:T.headroomUrl||"http://localhost:8787",headroomCompressUserMessages:!!T.headroomCompressUserMessages,headroomTimeoutMs:T.headroomTimeoutMs,cavemanEnabled:!!T.cavemanEnabled,cavemanLevel:T.cavemanLevel||"full",ponytailEnabled:!!T.ponytailEnabled,ponytailLevel:T.ponytailLevel||"full",customPromptEnabled:!!T.customPromptEnabled,customPrompt:T.customPrompt||"",pxpipeEnabled:!!T.pxpipeEnabled,pxpipeMinChars:T.pxpipeMinChars,pxpipeTimeoutMs:T.pxpipeTimeoutMs,pxpipeTransform:B,onPxpipeEvent:async a=>{try{let{appendPxpipeEvent:b}=await c.e(2007).then(c.bind(c,74388));b(a)}catch{}},contextInjectionEnabled:!!T.contextInjectionEnabled,contextCanary:await I(u),providerThinking:v,providerOverrides:(T.providerOverrides||{})[M]||null,signal:u?.signal,probeFirstToken:await G(u),attemptBudget:S,attemptLease:O,acquireAttemptLease:J,adaptiveMetadata:g,onAdaptiveLifecycle:a=>E({...a,requestTag:V,provider:M,model:N,connectionId:f.connectionId}),sourceFormatOverride:u?.url?(0,o.t)(new URL(u.url).pathname,a):null,onCredentialsRefreshed:async a=>(0,q.vN)(f.connectionId,{...a,existingProviderSpecificData:f.providerSpecificData,testStatus:"active"}),onRequestSuccess:async(a=O)=>{await a.finish({success:!0})},onStreamFailure:async(a,b=O)=>(await D(a),await b.finish({success:!1,failure:a}),b.finalizationResult)});if(_.success)return _.response;await D(_),await O.finish({success:!1,lifecycleHandled:!0===_.lifecycleHandled,shouldFallback:!0===_.shouldFallback,failure:{status:_.status,message:_.error,errorText:_.error,resetsAtMs:_.resetsAtMs,failureMetadata:_.failureMetadata}});let aa=O.finalizationResult;if(!0===_.lifecycleHandled?!0===_.shouldFallback:aa?.shouldFallback===!0){(function(a){let b=a?.failureMetadata?.failureClass;return b?L.has(b):[401,402,403,429].includes(Number(a?.status))})(_)&&S.grantReplacement(S.attemptsUsed-K),E({type:"failover",requestTag:V,provider:M,model:N,connectionId:f.connectionId,attemptIndex:O.attemptIndex,failureClass:_.failureMetadata?.failureClass,code:_.failureMetadata?.providerErrorCode}),p.warn("FALLBACK",`ACC:${f.connectionName} unavailable (${_.status}) → next account`),R.add(f.connectionId),W=_.error,X=_.status,Y=_.response,Z=(0,l.d)(_.response?.headers);continue}return _.response}}d()}catch(a){d(a)}})},35893:(a,b,c)=>{c.d(b,{S:()=>g});var d=c(79761);let e=new Set(["STREAM_FIRST_CHUNK_TIMEOUT","STREAM_STALL_TIMEOUT","STREAM_CONNECT_TIMEOUT","STREAM_ABSOLUTE_TIMEOUT","STREAM_MISSING_TERMINAL","KIRO_STREAM_PROTOCOL_ERROR","AWS_EVENTSTREAM_PRELUDE_CRC_MISMATCH","AWS_EVENTSTREAM_MESSAGE_CRC_MISMATCH","AWS_EVENTSTREAM_INVALID_LENGTH","AWS_EVENTSTREAM_MESSAGE_TOO_LARGE","AWS_EVENTSTREAM_INVALID_HEADERS","AWS_EVENTSTREAM_UNSUPPORTED_HEADER_TYPE","AWS_EVENTSTREAM_DECODER_FINISHED","KIRO_STREAM_MISSING_TERMINAL","KIRO_STREAM_TRUNCATED","KIRO_STREAM_INVALID_TOOL_CALL","KIRO_STREAM_TRANSPORT_READ_FAILED","KIRO_VERIFIED_SPOOL_LIMIT","KIRO_VERIFIED_SPOOL_FAILED"]),f=Object.freeze({account_auth:"account",account_quota:"account",authentication:"account",credential_rejected:"account",reauth_required:"account",policy_suspended:"account",account_validation_required:"account",entitlement_or_quota:"account",rate_limited:"account",provider_transient:"provider",upstream_transient:"provider",shared_egress:"egress",shared_egress_waf:"egress",protocol_corruption:"integrity",upstream_protocol:"integrity"});function g({connectionId:a,connectionName:b,provider:c,model:h,markUnavailable:i,selectedConnection:j,logger:k,egressId:l="direct",recordCircuitFailure:m=d.hb}){let n=!1;return async(d={})=>{if(n)return{duplicate:!0};n=!0;let g=d.failureMetadata?.providerErrorCode,o=d.failureMetadata?.failureClass,p=f[o];if(p)try{await m({scope:p,provider:c,model:h,accountId:a,egressId:l,failureClass:o,providerErrorCode:g})}catch(a){k?.warn?.("CIRCUIT",`Failed to record scoped circuit evidence: ${a?.message||a}`)}if(e.has(g)){let a="STREAM_CONNECT_TIMEOUT"===g;return k?.info?.("STREAM",`${g} left account health unchanged for ${c}/${h}`),{shouldFallback:a,cooldownMs:0,accountUnaffected:!0}}let q=Number.isInteger(d.status)?d.status:502,r=[a,q,d.errorText||d.message||"Provider stream failed",c,h,d.resetsAtMs||null];d.failureMetadata&&"object"==typeof d.failureMetadata&&r.push(d.failureMetadata),j&&(6===r.length&&r.push(null),r.push(j));let s=await i(...r);return s?.shouldFallback&&!s.modelOnly&&k?.warn?.("AUTH",`Account ${b||a||"unknown"} unavailable after stream failure (${q})`),s}}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>i});var d=c(89718),e=c(40669),f=c(3359),g=c(32693);let h={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"};async function i(a){let b,c=(0,g.kP)(a),j=(0,f.s9)(c);if(j)return{...await i(j.modelString),gateway:{mode:j.mode,accountRef:j.accountRef||null,strictAccount:!!j.strictAccount,requestedModel:a,modelString:(0,g.kP)(j.modelString)}};let k=(b=(0,e.Xh)(c),b?.providerAlias&&h[b.providerAlias]?{...b,provider:h[b.providerAlias]}:b);if(!k.isAlias){if(!(0,e.gF)(k.providerAlias)&&!h[k.providerAlias]){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===k.providerAlias);if(a)return{provider:a.id,model:k.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===k.providerAlias);if(b)return{provider:b.id,model:k.model};let c=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===k.providerAlias);if(c)return{provider:c.id,model:k.model}}return{provider:k.provider,model:k.model}}return await (0,d.getComboByName)(k.model)?{provider:null,model:k.model}:(0,e.js)(c,d.getModelAliases)}async function j(a){if((a=(0,g.kP)(a)).includes("/"))return null;let b=await (0,d.getComboByName)(a);return b&&b.models&&b.models.length>0?b.models:null}},49216:(a,b,c)=>{c.d(b,{P2:()=>f});let d=new Map(Object.freeze(["admitted","acquired","upstream_open","semantic_commit","terminal","finalized"]).map((a,b)=>[a,b]));function e(a={}){return Object.freeze({...a})}function f(a={}){let b=Number(a.maxAttempts),c=Number.isInteger(b)&&b>0?b:3,g=0;return Object.freeze({get maxAttempts(){return c},get attemptsUsed(){return g},get remaining(){return Math.max(0,c-g)},acquire:(a={})=>g>=c?null:(g+=1,function(a={}){let b,c="admitted",f=!1,g=null,h=!1,i="function"==typeof a.finalize?a.finalize:async()=>{},j=Object.freeze({id:a.candidate?.id||null,provider:a.candidate?.provider||null,egressId:a.candidate?.egressId||null}),k={id:a.id||null,attemptIndex:Number(a.attemptIndex)||1,candidate:j,get state(){return c},get terminal(){return g},get finalizationResult(){return b},get semanticCommitted(){return f},transition(a){if(h||!d.has(a))return!1;let b=d.get(c);return d.get(a)===b+1&&"terminal"!==a&&"finalized"!==a&&(c=a,"semantic_commit"===a&&(f=!0),!0)},acceptTerminal:a=>!h&&!g&&"finalized"!==c&&(g=e(a),c="terminal",!0),finish:async a=>!h&&(h=!0,g||(g=e(a)),c="finalized",b=await i(g,k),!0)};return Object.freeze(k)}({...a,id:a.id||`attempt-${g}`,attemptIndex:g})),grantReplacement(a=1){let b=Number(a),d=Number.isInteger(b)&&b>0?b:0;return c+=d,d}})}},79489:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{L:()=>f.Lz,P:()=>f.PT});var e=c(48895),f=c(90704),g=a([e,f]);[e,f]=g.then?(await g)():g,d()}catch(a){d(a)}})},83017:(a,b,c)=>{c.d(b,{l:()=>j});var d=c(43659),e=c(41004),f=c(26679),g=c(19548),h=c(93184);let i=new Set(["opencode","opencode-zen"]);async function j({body:a,modelInfo:b,credentials:c,log:k,onRequestSuccess:l}){let m,n,{provider:o,model:p}=b,q=f.B$[o]?.systemoneConfig,r=function(a,b){let c=a?.trim();if(!c)return b?.baseUrl;if(!b?.path)return c;let d=c.replace(/\/+$/,""),e=b.path.replace(/\/+$/,"");if(d.endsWith(e))return d;let f=e.slice(0,e.lastIndexOf("/"));return f&&d.endsWith(f)?d+e.slice(f.length):d+e}(c?.providerSpecificData?.baseUrl,q);if(!r)return(0,d.A1)(e.gx.BAD_REQUEST,`Provider '${o}' does not support System One.`);if(r.includes("{accountId}")){let a=c?.providerSpecificData?.accountId;if(!a)return(0,d.A1)(e.gx.BAD_REQUEST,`Provider '${o}' requires accountId in providerSpecificData.`);r=r.replace("{accountId}",a)}if(r.includes("{model}")&&(r=r.replace(/\{model\}/g,p)),void 0===a.state||null===a.state)return(0,d.A1)(e.gx.BAD_REQUEST,"Missing required field: state");if(!a.questions||"object"!=typeof a.questions||Array.isArray(a.questions))return(0,d.A1)(e.gx.BAD_REQUEST,"Missing required field: questions");let s=c?.apiKey||c?.accessToken,t={"Content-Type":"application/json",...s?{Authorization:`Bearer ${s}`}:{},...q.headers||{},...i.has(o)?{"x-opencode-session":(0,h.Em)(a,c)}:{}},u={...a,model:(0,g.kt)(o,p)||p};k?.debug?.("SYSTEMONE",`${o.toUpperCase()} | ${p}`);try{m=await fetch(r,{method:"POST",headers:t,body:JSON.stringify(u),..."function"==typeof AbortSignal?.timeout?{signal:AbortSignal.timeout(e.pH)}:{}})}catch(b){let a=(0,d.lR)(b,o,p,e.gx.BAD_GATEWAY);return k?.debug?.("SYSTEMONE",`Fetch error: ${a}`),(0,d.A1)(e.gx.BAD_GATEWAY,a)}if(!m.ok){let{statusCode:a,message:b}=await (0,d.zL)(m),c=(0,d.lR)(Error(b),o,p,a);return k?.debug?.("SYSTEMONE",`Provider error: ${c}`),(0,d.A1)(a,c)}try{n=await m.json()}catch{return(0,d.A1)(e.gx.BAD_GATEWAY,`Invalid JSON response from ${o}`)}l&&await l();let v=n?.usage;return{success:!0,usage:v?{prompt_tokens:v.input_tokens||0,completion_tokens:v.output_tokens||0}:null,response:new Response(JSON.stringify(n),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}},90704:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Lz:()=>x,PT:()=>w,Px:()=>v});var e=c(48895),f=c(88967),g=c(89718),h=c(29240),i=c(38775),j=c(43659),k=c(25308),l=c(428),m=c(80662),n=c(17603),o=c(27349),p=c(41004),q=c(7803),r=c(324),s=c(14262),t=c(32475),u=a([e,t]);function v(a,b,c,d,e){if("smart"!==a)return{};let f=b?.[c]||{},g=Number(f.confidenceThreshold);return{sessionId:(0,m.bS)({headers:d?.headers,body:e})?.sessionId||null,smartPolicy:f.smartPolicy||"smart",sessionSticky:!1!==f.sessionSticky,confidenceThreshold:Number.isFinite(g)&&g>0?g:.8,resolveSmartChoice:(a,b)=>(0,l.J)({body:a,models:b,routerModel:f.routerModel,log:q})}}async function w(a,b=null){let d;try{d=await a.json()}catch{return q.warn("CHAT","Invalid JSON body"),(0,j.yj)(p.gx.BAD_REQUEST,"Invalid JSON body")}if(!d||"object"!=typeof d||Array.isArray(d))return(0,j.yj)(p.gx.BAD_REQUEST,"Request body must be a JSON object");if(void 0!==d.model&&"string"!=typeof d.model)return(0,j.yj)(p.gx.BAD_REQUEST,"Field 'model' must be a string");if(void 0!==d.messages&&!Array.isArray(d.messages))return(0,j.yj)(p.gx.BAD_REQUEST,"Field 'messages' must be an array");b||(b={endpoint:new URL(a.url).pathname,body:d,headers:Object.fromEntries(a.headers.entries())});let e=d.model,l=Object.fromEntries(a.headers.entries()),m=(0,r.J)(l,d),u=(0,s.eR)(e,m);e&&u!==e&&q.info("ROUTING",`Codex CLI ${e} → ${u}`);let z=a.headers.get("Authorization"),A=(0,f.Tr)(a);if(z&&A){let a=q.maskKey(A);q.debug("AUTH",`API Key: ${a}`)}else q.debug("AUTH","No API key provided (local mode)");let B=await (0,g.mt)(),C=A?await (0,g.uH)(A):null;if(B.requireApiKey){if(!A)return q.warn("AUTH","Missing API key (requireApiKey=true)"),(0,j.yj)(p.gx.UNAUTHORIZED,"Missing API key");if(!await (0,f.kI)(A))return q.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,j.yj)(p.gx.UNAUTHORIZED,"Invalid API key")}if(A){let{checkApiKeyBudget:a,checkApiKeyTokenQuota:b}=await Promise.resolve().then(c.bind(c,14686)),d=await b(A);if(!d.allowed)return q.warn("QUOTA",`Blocked: ${d.reason}`),(0,j.yj)(d.status||p.gx.RATE_LIMITED,d.reason||"Token limit exceeded");let e=await a(A);if(!e.allowed)return q.warn("BUDGET",`Blocked: ${e.reason}`),(0,j.yj)(e.error?p.gx.SERVICE_UNAVAILABLE:p.gx.PAYMENT_REQUIRED,e.reason||"Budget exceeded")}if(!e)return q.warn("CHAT","Missing model"),(0,j.yj)(p.gx.BAD_REQUEST,"Missing model");let D=await (0,i.d_)(u),E=(0,h.RV)(u,C,D);if(!E.allowed)return(0,j.yj)(p.gx.FORBIDDEN,(0,h.Ip)(u,E));if(e!==u){let a=await (0,i.d_)(e),b=(0,h.RV)(e,C,a);if(!b.allowed)return(0,j.yj)(p.gx.FORBIDDEN,(0,h.Ip)(e,b))}let F=null;if(A){let{admitApiKeyRequest:a}=await Promise.resolve().then(c.bind(c,14686));if(!(F=await a(A)).allowed){let a=F.retryAfter?{"Retry-After":String(F.retryAfter)}:void 0;return new Response(JSON.stringify({error:{message:F.reason}}),{status:F.status||429,headers:{"Content-Type":"application/json",...a}})}}let G=a=>x(a,F?.release,F?.touch);u!==e&&(d={...d,model:u});try{let{responseCache:e,isCacheableRequest:f}=await c.e(5236).then(c.bind(c,45236)),g=!0===B.responseCacheEnabled?f(d,a.headers):{cacheable:!1,reason:"disabled"},l=null;if(g.cacheable){let a=(l=e.buildKey(d,A||"local"))?e.get(l):null;if(a)return q.info("CACHE",`HIT ${u} | age=${Math.round((Date.now()-a.storedAt)/1e3)}s | hits=${a.hits}`),G(new Response(JSON.stringify(a.body),{status:a.status,headers:{"Content-Type":"application/json","X-ZevAI-Cache":"HIT","X-ZevAI-Cache-Age":String(Math.round((Date.now()-a.storedAt)/1e3))}}));q.debug("CACHE",`MISS ${u} (${g.reason||"new"})`)}let m=a?.headers?.get("user-agent")||"",r=(0,o.c)(d,u,m,!!B.ccFilterNaming);if(r)return G(r.response||r);let s=await (0,i.d_)(u);if(s){let a=(0,h.RV)(u,C,s);if(!a.allowed)return G((0,j.yj)(p.gx.FORBIDDEN,(0,h.Ip)(u,a)))}if(s){let c=B.comboStrategies||{},e=c[u]?.fallbackStrategy||B.comboStrategy||"fallback";if("fusion"===e){q.info("CHAT",`Combo "${u}" with ${s.length} models (strategy: fusion)`);let e=await (0,k.vt)({body:d,models:s,handleSingleModel:(c,d,e)=>{let f=b;if(e&&b){let{tools:a,tool_choice:c,...d}=b.body||{};f={...b,body:d}}return(0,t.e)(c,d,f,a,A,C)},log:q,comboName:u,judgeModel:c[u]?.judgeModel,tuning:c[u]?.fusionTuning});return G(await y(e,l,u))}let f=B.comboStickyRoundRobinLimit;q.info("CHAT",`Combo "${u}" with ${s.length} models (strategy: ${e}, sticky: ${f})`);let g=await (0,k.Pr)({body:d,models:s,handleSingleModel:(c,d)=>(0,t.e)(c,d,b,a,A,C),log:q,comboName:u,comboStrategy:e,comboStickyLimit:f,...v(e,c,u,b,d)});return G(await y(g,l,u))}let w=(0,k.t8)(d),x=(0,n.R8)([u],w,B);if(x.length>1){let c=x.filter(a=>a!==u);q.info("CAPACITY",`[${[...w].join(",")}] ${u} → +${c.length} fallback model(s)`);let e=await (0,k.Pr)({body:d,models:x,handleSingleModel:(0,n.ar)((c,d)=>(0,t.e)(c,d,b,a,A,C),c),log:q,comboName:u,comboStrategy:(0,n.vB)(w,B)});return G(await y(e,l,u))}let z=await (0,t.e)(d,u,b,a,A,C);return G(await y(z,l,u))}catch(a){throw F?.release?.(),a}}function x(a,b,c){if(!b)return a;if(!a?.body||!a.headers.get("content-type")?.includes("text/event-stream"))return b(),a;let d=a.body.getReader();return new Response(new ReadableStream({async pull(a){try{let{done:e,value:f}=await d.read();e?(b(),a.close()):(c?.(),a.enqueue(f))}catch(c){b(),a.error(c)}},async cancel(a){b(),await d.cancel(a)}}),{status:a.status,statusText:a.statusText,headers:a.headers})}async function y(a,b,d){if(!b||!a||!a.ok||!(a.headers.get("content-type")||"").includes("application/json"))return a;try{let{responseCache:e,isCacheableResponse:f}=await c.e(5236).then(c.bind(c,45236)),g=await a.clone().json();if(!f(g,a.status))return a;e.set(b,{body:g,status:a.status,model:d}),q.debug("CACHE",`STORE ${d} (key ${b.slice(0,8)}…)`)}catch{}return a}[e,t]=u.then?(await u)():u,d()}catch(a){d(a)}})},90982:(a,b,c)=>{c.d(b,{J:()=>e});let d=new Set(["user-agent","anthropic-beta","anthropic-version","anthropic-dangerous-direct-browser-access","x-app","x-stainless-helper-method","x-stainless-retry-count","x-stainless-runtime-version","x-stainless-package-version","x-stainless-runtime","x-stainless-lang","x-stainless-arch","x-stainless-os","x-stainless-timeout","x-claude-code-session-id","package-version","runtime-version","os","arch"]);function e(a){if(!a||"object"!=typeof a)return{};let b={};for(let[c,e]of Object.entries(a)){let a=c.toLowerCase();d.has(a)&&("string"==typeof e||"number"==typeof e)&&(b[a]=String(e))}return b}},91100:(a,b,c)=>{c.d(b,{Q:()=>d});function d(a){return a?.probeStopped!==!0?null:{circuit:"cancelled",eventPhase:"stopped",shouldFallback:!1,cooldownMs:0,accountUnaffected:!0}}}};
|