zevairouter 1.1.83 → 1.1.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/cli/app/.next-cli-build/BUILD_ID +1 -1
- package/cli/app/.next-cli-build/app-path-routes-manifest.json +19 -19
- 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 +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +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 +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +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 +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found.rsc +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 -5
- 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 +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
- 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 +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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +2 -2
- 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 +3 -3
- 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 -1
- 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 +1 -1
- package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js +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 +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 +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 +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 +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 +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 +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 +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 +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/aistudio/helper/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/aistudio/models/route.js.nft.json +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 +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 +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 +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 +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 +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 +2 -2
- 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/routing/adaptive/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 +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/test-alert/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 +2 -2
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.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/music/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/audio/music/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 +2 -2
- 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 +2 -2
- package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/callback.html +1 -1
- package/cli/app/.next-cli-build/server/app/callback.rsc +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 +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +2 -2
- 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 +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 +1 -1
- package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/login.html +1 -1
- package/cli/app/.next-cli-build/server/app/login.rsc +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 +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 +19 -19
- package/cli/app/.next-cli-build/server/chunks/1004.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1047.js +1 -0
- 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/2231.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/{5728.js → 2307.js} +2 -2
- package/cli/app/.next-cli-build/server/chunks/{1605.js → 2557.js} +1 -1
- package/cli/app/.next-cli-build/server/chunks/2578.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/267.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/2918.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/2957.js +16 -0
- package/cli/app/.next-cli-build/server/chunks/3184.js +616 -0
- package/cli/app/.next-cli-build/server/chunks/{7364.js → 3190.js} +1 -1
- package/cli/app/.next-cli-build/server/chunks/4073.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4549.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4631.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4730.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/4754.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5330.js +13 -25
- package/cli/app/.next-cli-build/server/chunks/5580.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/5744.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/{9188.js → 5986.js} +1 -1
- package/cli/app/.next-cli-build/server/chunks/627.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/7135.js +2 -2
- package/cli/app/.next-cli-build/server/chunks/7319.js +1022 -830
- package/cli/app/.next-cli-build/server/chunks/7525.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/7557.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/7573.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/7740.js +13 -0
- package/cli/app/.next-cli-build/server/chunks/7793.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/7995.js +3 -3
- package/cli/app/.next-cli-build/server/chunks/{6166.js → 8238.js} +1 -1
- package/cli/app/.next-cli-build/server/chunks/9094.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/9413.js +12 -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/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/5153-ac99c34c9374919f.js +1 -0
- package/cli/app/.next-cli-build/static/chunks/620-22231fb47409f27a.js +1 -0
- package/cli/app/CHANGELOG.md +14 -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/3204.js +0 -12
- package/cli/app/.next-cli-build/server/chunks/4177.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/4294.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/5626.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/5781.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/5819.js +0 -439
- package/cli/app/.next-cli-build/server/chunks/9489.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/9946.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/5153-11d3b7ab985b3fa8.js +0 -1
- package/cli/app/.next-cli-build/static/chunks/620-c79a51db4866ef69.js +0 -1
- /package/cli/app/.next-cli-build/static/{FOGmZhfTF_hGbhAHqAoR7 → 5AsQtmL5kXfUKmrhvVyvT}/_buildManifest.js +0 -0
- /package/cli/app/.next-cli-build/static/{FOGmZhfTF_hGbhAHqAoR7 → 5AsQtmL5kXfUKmrhvVyvT}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
"use strict";exports.id=3184,exports.ids=[3184],exports.modules={9035:(a,b,c)=>{c.d(b,{f:()=>h});let d="glm-5.3-flash-free",e="mimo-v2.6-flash-free",f=new Set(["none","minimal","low","medium","high","xhigh","max"]),g={minimal:"low",low:"low",medium:"high",high:"high",xhigh:"max",max:"max",ultra:"max"};function h(a,b){if(!b||"object"!=typeof b)return b;let c=String(a||b.model||"").replace(/\([^()]+\)\s*$/,"").split("/").pop();if(c!==d&&"deepseek-v4.1-flash-free"!==c&&c!==e)return b;let h={...b},i="string"==typeof h.reasoning_effort?h.reasoning_effort.trim().toLowerCase():"";return c===e?(delete h.thinking,delete h.enable_thinking,i&&"auto"!==i&&f.has(i)?h.reasoning_effort=i:delete h.reasoning_effort):c===d?(i||h.thinking?.type!=="enabled"?"auto"===i&&delete h.reasoning_effort:h.reasoning_effort="high",delete h.thinking,delete h.enable_thinking):i&&"auto"!==i&&"none"!==i&&"off"!==i?g[i]&&(h.reasoning_effort=g[i],delete h.thinking):(delete h.reasoning_effort,delete h.thinking),h}},60210:(a,b,c)=>{c.d(b,{HR:()=>function a(b,c){if(!c?.size||!b)return b;if(Array.isArray(b))return b.map(b=>a(b,c));if("object"!=typeof b)return b;let d=b,e=(a,c)=>{d===b&&(d={...b}),d[a]=c};if("content_block_start"===b.type){let a=b.content_block;a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)&&e("content_block",{...a,name:c.get(a.name)})}Array.isArray(b.content)&&e("content",b.content.map(a=>a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a)),Array.isArray(b.choices)&&e("choices",b.choices.map(a=>{let b=!1,d={...a};for(let e of["delta","message"]){let f=a?.[e];if(!f||!Array.isArray(f.tool_calls)||0===f.tool_calls.length)continue;let g=f.tool_calls.map(a=>{let d=a?.function?.name;return"string"==typeof d&&c.has(d)?(b=!0,{...a,function:{...a.function,name:c.get(d)}}):a});d[e]={...f,tool_calls:g}}return b?d:a})),Array.isArray(b.output)&&e("output",b.output.map(a=>a?.type==="function_call"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a));let f=b.item;return f?.type==="function_call"&&"string"==typeof f.name&&c.has(f.name)&&e("item",{...f,name:c.get(f.name)}),d},Ke:()=>v,g4:()=>x,sj:()=>w});var d=c(48161),e=c.n(d),f=c(76760),g=c.n(f);let h=["read","shell"],i={read:{description:"Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",parameters:{type:"object",properties:{path:{type:"string",description:"File or directory to read"},offset:{type:"integer",minimum:0,description:"The line or directory entry to start reading from (1-based)"},limit:{type:"integer",minimum:0,description:"The maximum number of lines or directory entries to read (defaults to and capped at 2000)"}},required:["path"],additionalProperties:!1}},shell:{description:"Execute a shell command and return its output. Commands run on Linux using bash. Quote file paths containing spaces or special characters. Prefer dedicated tools over shell commands when possible. When output is large, the full result is saved to a file and a truncated preview is returned. Rely on automatic truncation unless filtering the output is more useful. Commands accept an optional timeout, background commands have no timeout by default. Background commands return immediately, and you will be notified when they complete.",parameters:{type:"object",properties:{command:{type:"string",description:"Shell command string to execute"},workdir:{type:"string",description:"Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."},timeout:{type:"integer",minimum:0,description:"Timeout in milliseconds. Set to 0 to disable the timeout. Defaults to 120000 for foreground commands. Background commands have no timeout by default."},background:{type:"boolean",description:"Run the command in the background and return immediately (useful for dev servers and long-running builds). You do not need to use '&' at the end of the command when using this parameter. You will be notified when it completes. DO NOT poll for completion."}},required:["command"],additionalProperties:!1}}},j=new WeakMap;function k(a){let b=String(a??"").trim();return h.includes(b)?b:""}function l(a){if(!a||"object"!=typeof a||Array.isArray(a))return"";if("string"==typeof a.name&&a.name.trim())return a.name.trim();let b=a.function;return b&&"object"==typeof b&&!Array.isArray(b)&&"string"==typeof b.name?b.name.trim():""}function m(a){let b=a?.function;return b&&"object"==typeof b&&!Array.isArray(b)?b:null}function n(a,b){let c=m(a);return c?{...a,function:{...c,name:b}}:{...a,name:b}}function o(a){return new Map([...a].map(([a,b])=>[b,a]))}let p="<env>",q=g().join(e().tmpdir(),"opencode"),r=process.cwd(),s=["Here is some useful information about the environment you are running in:",p,` Working directory: ${r}`,` Workspace root folder: ${r}`," Is directory a git repo: no",` Platform: ${process.platform}`,` Prefer ${q} over generic system temporary directories such as /tmp; it is pre-created and approved for external access.`,"</env>"].join("\n");function t(a){return"string"==typeof a?a.includes(p):!!Array.isArray(a)&&a.some(a=>"string"==typeof a?.text&&a.text.includes(p))}function u(a,b){if("string"==typeof a)return a.trim()?`${a}
|
|
2
|
+
|
|
3
|
+
${b}`:b;let c=Array.isArray(a)?[...a]:[];for(let a=c.length-1;a>=0;a--){let d=c[a];if("string"==typeof d?.text){let e=d.text.trim();return c[a]={...d,text:e?`${d.text}
|
|
4
|
+
|
|
5
|
+
${b}`:b},c}}return[...c,{type:"text",text:b}]}function v(a,b,{claude:c=!1}={}){if(!a||"object"!=typeof a)return new Map;let{tools:d,map:e}=function(a){let b=new Map;if(!Array.isArray(a)||0===a.length)return{tools:a,map:b};let c=new Set(a.map(l)),d=new Set,e=[];for(let f of a){if(!f||"object"!=typeof f||Array.isArray(f)){e.push(f);continue}let a=l(f),g=k(a);if(!g){if(function(a){if("edit"!==l(a))return!1;let b=a&&(m(a)||a),c=b?.parameters?.properties;return!!(!c||"object"!=typeof c||Array.isArray(c))||!("oldString"in c&&"newString"in c)}(f)){let d=`${a}_client`;for(let b=2;c.has(d);b++)d=`${a}_client${b}`;c.add(d),b.set(d,a),e.push(n(f,d));continue}e.push(f);continue}if(d.has(g))continue;if(d.add(g),function(a,b){let c=a&&(m(a)||a),d=i[b];return!!c&&c.description===d.description&&JSON.stringify(c.parameters)===JSON.stringify(d.parameters)}(f,g)){e.push(f);continue}if(function(a,b){let c=a&&(m(a)||a),d=c?.parameters?.properties;if(!d||"object"!=typeof d||Array.isArray(d))return!1;let e=Object.keys(i[b].parameters.properties||{}),f=Object.keys(d);return!f.some(a=>!e.includes(a))&&i[b].parameters.required.every(a=>f.includes(a))}(f,g)){e.push(function(a,b){let{description:c,parameters:d}=i[b],e=m(a);return e?{...a,function:{...e,description:c,parameters:d}}:{...a,description:c,parameters:d}}(f,g));continue}let h=`${g}_client`;for(let a=2;c.has(h);a++)h=`${g}_client${a}`;c.add(h),b.set(h,g),e.push(n(f,h))}return{tools:e,map:b}}(a.tools);a.tools=Array.isArray(d)?d:[];let f=function(a,b){let c=[];if(!Array.isArray(a))return c;for(let d of h){if(a.some(a=>k(l(a))===d))continue;let{description:e,parameters:f}=i[d];a.push(b?{type:"function",name:d,description:e,parameters:f,strict:!1}:{type:"function",function:{name:d,description:e,parameters:f}}),c.push(d)}return c}(a.tools,b);return!function(a,b){if(!a||"object"!=typeof a||!b?.size)return;let c=a.tool_choice;if(!c||"object"!=typeof c||Array.isArray(c))return;let d=o(b);if("string"==typeof c.name){let b=d.get(c.name.trim());b&&(a.tool_choice={...c,name:b});return}let e=c.function;if(e&&"object"==typeof e&&!Array.isArray(e)&&"string"==typeof e.name){let b=d.get(e.name.trim());b&&(a.tool_choice={...c,function:{...e,name:b}})}}(a,e),!function(a,b){if(!a||"object"!=typeof a||!b?.size)return;let c=o(b);Array.isArray(a.input)&&(a.input=a.input.map(a=>a?.type==="function_call"&&c.has(a.name)?{...a,name:c.get(a.name)}:a)),Array.isArray(a.messages)&&(a.messages=a.messages.map(a=>{let b=a;return Array.isArray(a?.tool_calls)&&(b={...b,tool_calls:a.tool_calls.map(a=>c.has(a?.function?.name)?{...a,function:{...a.function,name:c.get(a.function.name)}}:a)}),a?.role==="assistant"&&Array.isArray(a?.content)&&a.content.some(a=>a?.type==="tool_use"&&c.has(a.name))&&(b={...b,content:a.content.map(a=>a?.type==="tool_use"&&c.has(a.name)?{...a,name:c.get(a.name)}:a)}),b}))}(a,e),f.length&&function(a,b,c,d=!1){let e=c.map(a=>`\`${a}\``).join(" or "),f=c.length>1?`Do not call the ${e} tools; they are placeholders that do nothing. Use the other tools you have been given instead.`:`Do not call the ${e} tool; it is a placeholder that does nothing. Use the other tools you have been given instead.`;if(b){a.instructions="string"==typeof a.instructions&&a.instructions.trim()?`${a.instructions}
|
|
6
|
+
|
|
7
|
+
${f}`:f;return}if(d||void 0!==a.system){a.system=u(a.system,f);return}if(!Array.isArray(a.messages))return;let g=a.messages[0];g?.role==="system"?a.messages=[{...g,content:u(g.content,f)},...a.messages.slice(1)]:a.messages=[{role:"system",content:f},...a.messages]}(a,b,f,c),!function(a,b,{claude:c=!1}={}){try{if(!a||"object"!=typeof a)return!1;if(b){if(void 0!==a.instructions&&"string"!=typeof a.instructions||t(a.instructions))return!1;return a.instructions="string"==typeof a.instructions&&a.instructions.trim()?`${a.instructions}
|
|
8
|
+
|
|
9
|
+
${s}`:s,!0}if(c||void 0!==a.system){if(t(a.system))return!1;return a.system=u(a.system,s),!0}if(!Array.isArray(a.messages))return!1;let d=a.messages.findIndex(a=>a?.role==="system");if(d>=0){let b=a.messages[d];if(t(b.content))return!1;let c=u(b.content,s);return a.messages=a.messages.map((a,b)=>b===d?{...a,content:c}:a),!0}a.messages=[{role:"system",content:s},...a.messages]}catch{return!1}}(a,b,{claude:c}),!a.tool_choice&&b&&(a.tool_choice="auto"),w(a,e),e}function w(a,b){a&&"object"==typeof a&&b?.size&&j.set(a,b)}function x(a){return a&&"object"==typeof a&&j.get(a)||null}},93184:(a,b,c)=>{c.d(b,{j9:()=>P,cA:()=>C,Em:()=>J});var d=c(77598),e=c.n(d),f=c(74957),g=c(35024),h=c(86724),i=c(9035),j=c(60210),k=c(31421),l=c(73024),m=c.n(l),n=c(48161),o=c.n(n),p=c(76760),q=c.n(p);let r=`
|
|
10
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
11
|
+
import fs from "node:fs";
|
|
12
|
+
import os from "node:os";
|
|
13
|
+
import path from "node:path";
|
|
14
|
+
|
|
15
|
+
const input = JSON.parse(await Bun.stdin.text());
|
|
16
|
+
const out = Bun.stdout.writer();
|
|
17
|
+
|
|
18
|
+
const FALLBACK_WARP_PROFILES = {
|
|
19
|
+
40191: { priv: "YFWmzL3aEEJTmsm3xGxw5RcFUBuVTaozKHQ9DIgn60s=", v6: "2606:4700:110:8b49:3fb7:3c26:8ff8:98e1/128" },
|
|
20
|
+
40192: { priv: "WJRA/C/DXfB4VDf9kruOegcomImBMzwyvLPyu+B4wkI=", v6: "2606:4700:110:8130:f4b:9927:12cd:c3ad/128" },
|
|
21
|
+
40193: { priv: "WNZQqGrSR5GpZFipeCyafrwXxjev4dVHeLuCW/atX3Q=", v6: "2606:4700:110:88a3:ab54:194c:cb12:d546/128" },
|
|
22
|
+
40194: { priv: "mC/qISnHwznBOWuA104cx5IobJkQVi7dG068LWegq3Y=", v6: "2606:4700:110:8392:a0c1:fc:a96b:f7ca/128" },
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const CLEAN_WARP_ENDPOINTS = [
|
|
26
|
+
"engage.cloudflareclient.com:2408",
|
|
27
|
+
"162.159.192.1:500",
|
|
28
|
+
"188.114.96.1:4500",
|
|
29
|
+
"162.159.193.1:2408",
|
|
30
|
+
"188.114.97.1:500",
|
|
31
|
+
"162.159.192.1:4500",
|
|
32
|
+
"162.159.192.1:854",
|
|
33
|
+
"188.114.96.1:2408",
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
function normalizeIpv6Prefix64(rawAddr) {
|
|
37
|
+
if (typeof rawAddr !== "string") return "";
|
|
38
|
+
const cleaned = rawAddr.trim().replace(/^\\[|\\]$/g, "").split("/")[0].split("%")[0].trim().toLowerCase();
|
|
39
|
+
if (!cleaned) return "";
|
|
40
|
+
if (/^\\d{1,3}(?:\\.\\d{1,3}){3}$/.test(cleaned)) return cleaned;
|
|
41
|
+
if (!cleaned.includes(":")) return "";
|
|
42
|
+
const halves = cleaned.split("::");
|
|
43
|
+
if (halves.length > 2) return "";
|
|
44
|
+
const left = halves[0] ? halves[0].split(":").filter(Boolean) : [];
|
|
45
|
+
const right = halves.length === 2 && halves[1] ? halves[1].split(":").filter(Boolean) : [];
|
|
46
|
+
const missing = 8 - (left.length + right.length);
|
|
47
|
+
if ((halves.length === 1 && missing !== 0) || missing < 0) return "";
|
|
48
|
+
const full = [...left, ...Array(halves.length === 2 ? missing : 0).fill("0"), ...right];
|
|
49
|
+
if (full.length !== 8) return "";
|
|
50
|
+
const groups = [];
|
|
51
|
+
for (let i = 0; i < 4; i++) {
|
|
52
|
+
const g = full[i];
|
|
53
|
+
if (!/^[0-9a-f]{1,4}$/.test(g)) return "";
|
|
54
|
+
groups.push(g.padStart(4, "0"));
|
|
55
|
+
}
|
|
56
|
+
return groups.join(":") + "::/64";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function parseWarpTrace(text) {
|
|
60
|
+
if (typeof text !== "string" || !text.trim()) return { isWarpActive: false, ip: "", prefix: "" };
|
|
61
|
+
const map = {};
|
|
62
|
+
for (const line of text.split(/\\r?\\n/)) {
|
|
63
|
+
const eq = line.indexOf("=");
|
|
64
|
+
if (eq > 0) map[line.slice(0, eq).trim()] = line.slice(eq + 1).trim();
|
|
65
|
+
}
|
|
66
|
+
const warp = (map.warp || "").toLowerCase();
|
|
67
|
+
const ip = map.ip || "";
|
|
68
|
+
return {
|
|
69
|
+
isWarpActive: warp === "on" || warp === "plus",
|
|
70
|
+
warp,
|
|
71
|
+
ip,
|
|
72
|
+
prefix: normalizeIpv6Prefix64(ip),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function nextFreeResetMs(nowMs = Date.now()) {
|
|
77
|
+
const d = new Date(nowMs);
|
|
78
|
+
const todayReset = Date.UTC(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate(), 1, 5, 0, 0);
|
|
79
|
+
return nowMs < todayReset ? todayReset : todayReset + 86400000;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function loadBurntPrefixes() {
|
|
83
|
+
const file = path.join(getPoolDir(), "burnt-prefixes.json");
|
|
84
|
+
const now = Date.now();
|
|
85
|
+
try {
|
|
86
|
+
if (!fs.existsSync(file)) return {};
|
|
87
|
+
const raw = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
88
|
+
const active = {};
|
|
89
|
+
for (const [k, v] of Object.entries(raw || {})) {
|
|
90
|
+
if (k && Number(v) > now) active[k] = Number(v);
|
|
91
|
+
}
|
|
92
|
+
return active;
|
|
93
|
+
} catch {
|
|
94
|
+
return {};
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function recordBurntPrefix(prefix) {
|
|
99
|
+
const norm = prefix?.endsWith("::/64") ? prefix : normalizeIpv6Prefix64(prefix);
|
|
100
|
+
if (!norm) return;
|
|
101
|
+
const poolDir = getPoolDir();
|
|
102
|
+
const file = path.join(poolDir, "burnt-prefixes.json");
|
|
103
|
+
try {
|
|
104
|
+
fs.mkdirSync(poolDir, { recursive: true });
|
|
105
|
+
const active = loadBurntPrefixes();
|
|
106
|
+
delete active[norm];
|
|
107
|
+
active[norm] = nextFreeResetMs();
|
|
108
|
+
const trimmed = Object.fromEntries(Object.entries(active).slice(-200));
|
|
109
|
+
fs.writeFileSync(file, JSON.stringify(trimmed));
|
|
110
|
+
} catch {}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function getSlotSavedPrefix(port) {
|
|
114
|
+
const slotDir = path.join(getPoolDir(), "port-" + port);
|
|
115
|
+
try {
|
|
116
|
+
const saved = fs.readFileSync(path.join(slotDir, "egress-prefix.txt"), "utf8").trim();
|
|
117
|
+
if (saved) return saved;
|
|
118
|
+
} catch {}
|
|
119
|
+
try {
|
|
120
|
+
const prof = fs.readFileSync(path.join(slotDir, "wgcf-profile.conf"), "utf8");
|
|
121
|
+
const m = prof.match(/^\\s*Address\\s*=\\s*([^\\r\\n]+)/im);
|
|
122
|
+
if (m) {
|
|
123
|
+
for (const part of m[1].split(",")) {
|
|
124
|
+
if (part.includes(":")) {
|
|
125
|
+
const pfx = normalizeIpv6Prefix64(part);
|
|
126
|
+
if (pfx) return pfx;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
} catch {}
|
|
131
|
+
return "";
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const slotPrefixes = new Map();
|
|
135
|
+
function genSes(c) {
|
|
136
|
+
const raw = BigInt(Date.now()) * 0x1000n + BigInt(c);
|
|
137
|
+
const val = ~raw;
|
|
138
|
+
const hex = Array.from({ length: 6 }, (_, i) => Number((val >> BigInt(40 - 8 * i)) & 0xffn).toString(16).padStart(2, "0")).join("");
|
|
139
|
+
const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
140
|
+
const rb = crypto.getRandomValues(new Uint8Array(14));
|
|
141
|
+
const rand = Array.from(rb, (b) => chars[b % 62]).join("");
|
|
142
|
+
return "ses_" + hex + rand;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function getZevaiDataDir() {
|
|
146
|
+
const isWin = process.platform === "win32";
|
|
147
|
+
const home = os.homedir();
|
|
148
|
+
return process.env.DATA_DIR || (isWin ? path.join(process.env.APPDATA || home, "zevai") : path.join(home, ".zevai"));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function getPoolDir() {
|
|
152
|
+
return path.join(getZevaiDataDir(), "free-warp-pool");
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
async function isFreeWarpEnabled(proxy) {
|
|
156
|
+
if (typeof proxy === "string" && proxy.includes("mode=free-warp")) return true;
|
|
157
|
+
if (typeof proxy === "string" && proxy.trim()) return false;
|
|
158
|
+
try {
|
|
159
|
+
const { Database } = await import("bun:sqlite");
|
|
160
|
+
const dbPath = path.join(getZevaiDataDir(), "db", "data.sqlite");
|
|
161
|
+
if (!fs.existsSync(dbPath)) return false;
|
|
162
|
+
const db = new Database(dbPath, { readonly: true });
|
|
163
|
+
const row = db.query("SELECT data FROM settings WHERE id = 1").get();
|
|
164
|
+
db.close();
|
|
165
|
+
if (!row?.data) return false;
|
|
166
|
+
const parsed = JSON.parse(row.data);
|
|
167
|
+
return parsed?.providerStrategies?.opencode?.freeWarpMode === true;
|
|
168
|
+
} catch {
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function findBin(name) {
|
|
174
|
+
const isWin = process.platform === "win32";
|
|
175
|
+
const exe = isWin ? name + ".exe" : name;
|
|
176
|
+
const home = os.homedir();
|
|
177
|
+
const list = [
|
|
178
|
+
path.join(getZevaiDataDir(), "bin", exe),
|
|
179
|
+
path.join(home, ".local", "bin", exe),
|
|
180
|
+
"/opt/homebrew/bin/" + exe,
|
|
181
|
+
"/usr/local/bin/" + exe,
|
|
182
|
+
"/usr/bin/" + exe,
|
|
183
|
+
];
|
|
184
|
+
for (const d of String(process.env.PATH || "").split(path.delimiter)) {
|
|
185
|
+
if (d) list.push(path.join(d, exe));
|
|
186
|
+
}
|
|
187
|
+
for (const c of list) {
|
|
188
|
+
try { if (fs.statSync(c).isFile()) return c; } catch {}
|
|
189
|
+
}
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function isSlotAlive(port) {
|
|
194
|
+
const slotDir = path.join(getPoolDir(), "port-" + port);
|
|
195
|
+
const pidFile = path.join(slotDir, "wireproxy.pid");
|
|
196
|
+
try {
|
|
197
|
+
const pid = Number(fs.readFileSync(pidFile, "utf8").trim());
|
|
198
|
+
if (pid > 0) {
|
|
199
|
+
process.kill(pid, 0);
|
|
200
|
+
return true;
|
|
201
|
+
}
|
|
202
|
+
} catch {}
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function isSlotFresh(port) {
|
|
207
|
+
const slotDir = path.join(getPoolDir(), "port-" + port);
|
|
208
|
+
try {
|
|
209
|
+
const lockStat = fs.statSync(path.join(slotDir, "mint.lock"));
|
|
210
|
+
if (Date.now() - lockStat.mtimeMs < 15000) return false;
|
|
211
|
+
} catch {}
|
|
212
|
+
try {
|
|
213
|
+
const burnStat = fs.statSync(path.join(slotDir, "burned.ts"));
|
|
214
|
+
if (Date.now() - burnStat.mtimeMs < 15000) return false;
|
|
215
|
+
} catch {}
|
|
216
|
+
return true;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function triggerBackgroundMint(port, rotateAccount = false) {
|
|
220
|
+
const wp = findBin("wireproxy");
|
|
221
|
+
const wgcf = findBin("wgcf");
|
|
222
|
+
if (!wp) return;
|
|
223
|
+
const poolDir = getPoolDir();
|
|
224
|
+
const slotDir = path.join(poolDir, "port-" + port);
|
|
225
|
+
fs.mkdirSync(slotDir, { recursive: true });
|
|
226
|
+
const lockFile = path.join(slotDir, "mint.lock");
|
|
227
|
+
const globalLock = path.join(poolDir, "global-mint.lock");
|
|
228
|
+
try {
|
|
229
|
+
const st = fs.statSync(lockFile);
|
|
230
|
+
if (Date.now() - st.mtimeMs < 20000) return;
|
|
231
|
+
} catch {}
|
|
232
|
+
let ownsGlobalLock = false;
|
|
233
|
+
if (rotateAccount) {
|
|
234
|
+
try {
|
|
235
|
+
const gst = fs.statSync(globalLock);
|
|
236
|
+
if (Date.now() - gst.mtimeMs < 15000) {
|
|
237
|
+
rotateAccount = false;
|
|
238
|
+
} else {
|
|
239
|
+
fs.writeFileSync(globalLock, String(process.pid));
|
|
240
|
+
ownsGlobalLock = true;
|
|
241
|
+
}
|
|
242
|
+
} catch {
|
|
243
|
+
try {
|
|
244
|
+
fs.writeFileSync(globalLock, String(process.pid), { flag: "wx" });
|
|
245
|
+
ownsGlobalLock = true;
|
|
246
|
+
} catch {
|
|
247
|
+
rotateAccount = false;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
try {
|
|
252
|
+
fs.writeFileSync(path.join(slotDir, "burned.ts"), String(Date.now()));
|
|
253
|
+
fs.writeFileSync(lockFile, String(process.pid));
|
|
254
|
+
} catch {}
|
|
255
|
+
|
|
256
|
+
const fb = FALLBACK_WARP_PROFILES[port] || FALLBACK_WARP_PROFILES[40191];
|
|
257
|
+
const fallbackProfile = [
|
|
258
|
+
"[Interface]",
|
|
259
|
+
"PrivateKey = " + fb.priv,
|
|
260
|
+
"Address = 172.16.0.2/32, " + fb.v6,
|
|
261
|
+
"DNS = 1.1.1.1, 1.0.0.1, 2606:4700:4700::1111, 2606:4700:4700::1001",
|
|
262
|
+
"MTU = 1280",
|
|
263
|
+
"[Peer]",
|
|
264
|
+
"PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
|
|
265
|
+
"AllowedIPs = 0.0.0.0/0, ::/0",
|
|
266
|
+
"Endpoint = engage.cloudflareclient.com:2408",
|
|
267
|
+
"PersistentKeepalive = 25",
|
|
268
|
+
"",
|
|
269
|
+
].join("\\n");
|
|
270
|
+
|
|
271
|
+
const profilePath = path.join(slotDir, "wgcf-profile.conf");
|
|
272
|
+
let prof = "";
|
|
273
|
+
try {
|
|
274
|
+
if (fs.existsSync(profilePath)) prof = fs.readFileSync(profilePath, "utf8");
|
|
275
|
+
} catch {}
|
|
276
|
+
if (!prof.trim()) {
|
|
277
|
+
prof = fallbackProfile;
|
|
278
|
+
try { fs.writeFileSync(profilePath, prof); } catch {}
|
|
279
|
+
} else if (!prof.includes("PersistentKeepalive")) {
|
|
280
|
+
prof = prof.trim() + "\\nPersistentKeepalive = 25\\n";
|
|
281
|
+
try { fs.writeFileSync(profilePath, prof); } catch {}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
const confPath = path.join(slotDir, "wireproxy.conf");
|
|
285
|
+
try {
|
|
286
|
+
fs.writeFileSync(confPath, prof.trim() + "\\n\\n[http]\\nBindAddress = 127.0.0.1:" + port + "\\n");
|
|
287
|
+
} catch {}
|
|
288
|
+
|
|
289
|
+
const tmpDir = path.join(slotDir, "tmp-mint");
|
|
290
|
+
const proxyOrder = [40191, 40192, 40193, 40194, 40000, 40002].filter((p) => p !== port);
|
|
291
|
+
const workerCfg = JSON.stringify({
|
|
292
|
+
port,
|
|
293
|
+
slotDir,
|
|
294
|
+
tmpDir,
|
|
295
|
+
profilePath,
|
|
296
|
+
confPath,
|
|
297
|
+
fallbackProfile,
|
|
298
|
+
lockFile,
|
|
299
|
+
globalLock,
|
|
300
|
+
ownsGlobalLock,
|
|
301
|
+
wp,
|
|
302
|
+
wgcf: rotateAccount ? wgcf : null,
|
|
303
|
+
proxyOrder,
|
|
304
|
+
cleanEndpoints: CLEAN_WARP_ENDPOINTS,
|
|
305
|
+
burntFile: path.join(poolDir, "burnt-prefixes.json"),
|
|
306
|
+
});
|
|
307
|
+
const workerScript = [
|
|
308
|
+
'import { spawn, spawnSync } from "node:child_process";',
|
|
309
|
+
'import fs from "node:fs";',
|
|
310
|
+
'import path from "node:path";',
|
|
311
|
+
'const c = JSON.parse(process.argv[1]);',
|
|
312
|
+
'const nl = String.fromCharCode(10);',
|
|
313
|
+
'function norm64(a) {',
|
|
314
|
+
' if (typeof a !== "string") return "";',
|
|
315
|
+
' const s = a.trim().replace(/^\\[|\\]$/g, "").split("/")[0].split("%")[0].trim().toLowerCase();',
|
|
316
|
+
' if (!s || !s.includes(":")) return /^\\d{1,3}(?:\\.\\d{1,3}){3}$/.test(s) ? s : "";',
|
|
317
|
+
' const h = s.split("::"); if (h.length > 2) return "";',
|
|
318
|
+
' const l = h[0] ? h[0].split(":").filter(Boolean) : [];',
|
|
319
|
+
' const r = h.length === 2 && h[1] ? h[1].split(":").filter(Boolean) : [];',
|
|
320
|
+
' const m = 8 - (l.length + r.length); if ((h.length === 1 && m !== 0) || m < 0) return "";',
|
|
321
|
+
' const f = [...l, ...Array(h.length === 2 ? m : 0).fill("0"), ...r];',
|
|
322
|
+
' return f.slice(0, 4).map((g) => g.padStart(4, "0")).join(":") + "::/64";',
|
|
323
|
+
'}',
|
|
324
|
+
'function profPrefix(txt) {',
|
|
325
|
+
' const m = String(txt || "").match(/^\\s*Address\\s*=\\s*([^\\r\\n]+)/im);',
|
|
326
|
+
' if (!m) return "";',
|
|
327
|
+
' for (const part of m[1].split(",")) { if (part.includes(":")) { const p = norm64(part); if (p) return p; } }',
|
|
328
|
+
' return "";',
|
|
329
|
+
'}',
|
|
330
|
+
'function isBurnt(pfx) {',
|
|
331
|
+
' if (!pfx) return false;',
|
|
332
|
+
' try { const raw = JSON.parse(fs.readFileSync(c.burntFile, "utf8")); return Number(raw?.[pfx] || 0) > Date.now(); } catch { return false; }',
|
|
333
|
+
'}',
|
|
334
|
+
'function rewriteEp(txt, ep) {',
|
|
335
|
+
' const t = String(txt || "").trim();',
|
|
336
|
+
' return /^\\s*Endpoint\\s*=/im.test(t) ? t.replace(/^\\s*Endpoint\\s*=\\s*[^\\r\\n]+/im, "Endpoint = " + ep) + nl : t + nl + "Endpoint = " + ep + nl;',
|
|
337
|
+
'}',
|
|
338
|
+
'function parseTrace(txt) {',
|
|
339
|
+
' const map = {};',
|
|
340
|
+
' for (const ln of String(txt || "").split(/\\r?\\n/)) { const i = ln.indexOf("="); if (i > 0) map[ln.slice(0, i).trim()] = ln.slice(i + 1).trim(); }',
|
|
341
|
+
' const w = (map.warp || "").toLowerCase();',
|
|
342
|
+
' return { ok: w === "on" || w === "plus", prefix: norm64(map.ip || "") };',
|
|
343
|
+
'}',
|
|
344
|
+
'try {',
|
|
345
|
+
' if (c.wgcf) {',
|
|
346
|
+
' let minted = false;',
|
|
347
|
+
' for (let attempt = 0; attempt < 2 && !minted; attempt++) {',
|
|
348
|
+
' for (const p of [...c.proxyOrder, null]) {',
|
|
349
|
+
' try { fs.rmSync(c.tmpDir, { recursive: true, force: true }); } catch {}',
|
|
350
|
+
' fs.mkdirSync(c.tmpDir, { recursive: true });',
|
|
351
|
+
' const env = { ...process.env };',
|
|
352
|
+
' if (p) { env.HTTPS_PROXY = "http://127.0.0.1:" + p; env.HTTP_PROXY = "http://127.0.0.1:" + p; }',
|
|
353
|
+
' const r1 = spawnSync(c.wgcf, ["register", "--accept-tos"], { cwd: c.tmpDir, env, timeout: 10000, windowsHide: true });',
|
|
354
|
+
' const r2 = r1.status === 0 ? spawnSync(c.wgcf, ["generate"], { cwd: c.tmpDir, env, timeout: 8000, windowsHide: true }) : { status: 1 };',
|
|
355
|
+
' const tp = path.join(c.tmpDir, "wgcf-profile.conf");',
|
|
356
|
+
' if (r2.status === 0 && fs.existsSync(tp)) {',
|
|
357
|
+
' const prof = fs.readFileSync(tp, "utf8").trim() + nl + "PersistentKeepalive = 25" + nl;',
|
|
358
|
+
' const pfx = profPrefix(prof);',
|
|
359
|
+
' if (attempt === 0 && pfx && isBurnt(pfx)) break;',
|
|
360
|
+
' fs.writeFileSync(c.profilePath, prof);',
|
|
361
|
+
' try { fs.copyFileSync(path.join(c.tmpDir, "wgcf-account.toml"), path.join(c.slotDir, "wgcf-account.toml")); } catch {}',
|
|
362
|
+
' fs.writeFileSync(c.confPath, prof + nl + "[http]" + nl + "BindAddress = 127.0.0.1:" + c.port + nl);',
|
|
363
|
+
' minted = true;',
|
|
364
|
+
' break;',
|
|
365
|
+
' }',
|
|
366
|
+
' }',
|
|
367
|
+
' }',
|
|
368
|
+
' try { fs.rmSync(c.tmpDir, { recursive: true, force: true }); } catch {}',
|
|
369
|
+
' }',
|
|
370
|
+
' const startWp = async (profText) => {',
|
|
371
|
+
' try {',
|
|
372
|
+
' const oldPid = Number(fs.readFileSync(path.join(c.slotDir, "wireproxy.pid"), "utf8").trim());',
|
|
373
|
+
' if (oldPid > 0) process.kill(oldPid, "SIGKILL");',
|
|
374
|
+
' } catch {}',
|
|
375
|
+
' if (process.platform !== "win32") {',
|
|
376
|
+
' try { spawnSync("pkill", ["-9", "-f", "port-" + c.port + "/wireproxy.conf"], { timeout: 2000 }); } catch {}',
|
|
377
|
+
' }',
|
|
378
|
+
' fs.writeFileSync(c.profilePath, profText);',
|
|
379
|
+
' fs.writeFileSync(c.confPath, profText.trim() + nl + nl + "[http]" + nl + "BindAddress = 127.0.0.1:" + c.port + nl);',
|
|
380
|
+
' await new Promise((r) => setTimeout(r, 180));',
|
|
381
|
+
' const child = spawn(c.wp, ["-s", "-c", c.confPath], { cwd: c.slotDir, detached: true, stdio: "ignore", windowsHide: true });',
|
|
382
|
+
' if (child.pid) fs.writeFileSync(path.join(c.slotDir, "wireproxy.pid"), String(child.pid));',
|
|
383
|
+
' child.unref();',
|
|
384
|
+
' await new Promise((r) => setTimeout(r, 350));',
|
|
385
|
+
' for (let t = 0; t < 2; t++) {',
|
|
386
|
+
' try {',
|
|
387
|
+
' const tr = await fetch("https://opencode.ai/cdn-cgi/trace", { proxy: "http://127.0.0.1:" + c.port, signal: AbortSignal.timeout(3000) });',
|
|
388
|
+
' if (tr.ok) {',
|
|
389
|
+
' const parsed = parseTrace(await tr.text());',
|
|
390
|
+
' if (parsed.ok) return parsed;',
|
|
391
|
+
' }',
|
|
392
|
+
' } catch {}',
|
|
393
|
+
' if (t === 0) await new Promise((r) => setTimeout(r, 350));',
|
|
394
|
+
' }',
|
|
395
|
+
' return null;',
|
|
396
|
+
' };',
|
|
397
|
+
' let activeProf = fs.existsSync(c.profilePath) ? fs.readFileSync(c.profilePath, "utf8") : c.fallbackProfile;',
|
|
398
|
+
' let traceRes = await startWp(activeProf);',
|
|
399
|
+
' const eps = Array.isArray(c.cleanEndpoints) ? c.cleanEndpoints : ["engage.cloudflareclient.com:2408"];',
|
|
400
|
+
' for (let ei = 1; !traceRes && ei < Math.min(eps.length, 4); ei++) {',
|
|
401
|
+
' activeProf = rewriteEp(activeProf, eps[(c.port + ei) % eps.length]);',
|
|
402
|
+
' traceRes = await startWp(activeProf);',
|
|
403
|
+
' }',
|
|
404
|
+
' if (!traceRes && c.fallbackProfile) {',
|
|
405
|
+
' traceRes = await startWp(c.fallbackProfile);',
|
|
406
|
+
' for (let ei = 1; !traceRes && ei < Math.min(eps.length, 3); ei++) {',
|
|
407
|
+
' traceRes = await startWp(rewriteEp(c.fallbackProfile, eps[(c.port + ei) % eps.length]));',
|
|
408
|
+
' }',
|
|
409
|
+
' }',
|
|
410
|
+
' const finalPfx = traceRes?.prefix || profPrefix(activeProf);',
|
|
411
|
+
' if (finalPfx) { try { fs.writeFileSync(path.join(c.slotDir, "egress-prefix.txt"), finalPfx); } catch {} }',
|
|
412
|
+
'} catch {} finally {',
|
|
413
|
+
' const cleanupFiles = [path.join(c.slotDir, "burned.ts"), c.lockFile];',
|
|
414
|
+
' if (c.ownsGlobalLock) cleanupFiles.push(c.globalLock);',
|
|
415
|
+
' for (const f of cleanupFiles) {',
|
|
416
|
+
' try { fs.unlinkSync(f); } catch {}',
|
|
417
|
+
' }',
|
|
418
|
+
'}',
|
|
419
|
+
'process.exit(0);',
|
|
420
|
+
].join("\\n");
|
|
421
|
+
try {
|
|
422
|
+
const child = spawn(process.execPath, ["-e", workerScript, workerCfg], {
|
|
423
|
+
cwd: slotDir,
|
|
424
|
+
detached: true,
|
|
425
|
+
stdio: "ignore",
|
|
426
|
+
windowsHide: true,
|
|
427
|
+
});
|
|
428
|
+
child.unref();
|
|
429
|
+
} catch {
|
|
430
|
+
try { fs.unlinkSync(lockFile); } catch {}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
async function buildFreeWarpHopList(strictProxy = false) {
|
|
435
|
+
const warpPorts = [40191, 40192, 40193, 40194];
|
|
436
|
+
for (let i = warpPorts.length - 1; i > 0; i--) {
|
|
437
|
+
const j = Math.floor(Math.random() * (i + 1));
|
|
438
|
+
[warpPorts[i], warpPorts[j]] = [warpPorts[j], warpPorts[i]];
|
|
439
|
+
}
|
|
440
|
+
const alivePorts = [];
|
|
441
|
+
for (const p of warpPorts) {
|
|
442
|
+
if (isSlotAlive(p)) {
|
|
443
|
+
alivePorts.push(p);
|
|
444
|
+
} else {
|
|
445
|
+
triggerBackgroundMint(p);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
if (alivePorts.length === 0) {
|
|
449
|
+
const base = ["http://127.0.0.1:40191", "http://127.0.0.1:40192", "http://127.0.0.1:40193", "http://127.0.0.1:40194"];
|
|
450
|
+
return strictProxy ? base : [...base, undefined];
|
|
451
|
+
}
|
|
452
|
+
const burntMap = loadBurntPrefixes();
|
|
453
|
+
const freshLive = [];
|
|
454
|
+
const staleLive = [];
|
|
455
|
+
const burntLive = [];
|
|
456
|
+
const ctrls = new Map();
|
|
457
|
+
let graceResolve;
|
|
458
|
+
const gracePromise = new Promise((r) => { graceResolve = r; });
|
|
459
|
+
let graceStarted = false;
|
|
460
|
+
const checks = alivePorts.map(async (p) => {
|
|
461
|
+
const ctrl = new AbortController();
|
|
462
|
+
ctrls.set(p, ctrl);
|
|
463
|
+
const timer = setTimeout(() => ctrl.abort(), 1800);
|
|
464
|
+
try {
|
|
465
|
+
const r = await fetch("https://opencode.ai/cdn-cgi/trace", {
|
|
466
|
+
proxy: "http://127.0.0.1:" + p,
|
|
467
|
+
signal: ctrl.signal,
|
|
468
|
+
});
|
|
469
|
+
if (r.ok) {
|
|
470
|
+
const trace = parseWarpTrace(await r.text());
|
|
471
|
+
// Leak guard: never send OpenCode traffic over a slot that reports warp=off
|
|
472
|
+
if (!trace.isWarpActive) return;
|
|
473
|
+
const hopUrl = "http://127.0.0.1:" + p;
|
|
474
|
+
if (trace.prefix) {
|
|
475
|
+
slotPrefixes.set(p, trace.prefix);
|
|
476
|
+
try {
|
|
477
|
+
fs.writeFileSync(path.join(getPoolDir(), "port-" + p, "egress-prefix.txt"), trace.prefix);
|
|
478
|
+
} catch {}
|
|
479
|
+
}
|
|
480
|
+
const pfx = trace.prefix || getSlotSavedPrefix(p);
|
|
481
|
+
if (pfx && burntMap[pfx] > Date.now()) {
|
|
482
|
+
burntLive.push(hopUrl);
|
|
483
|
+
triggerBackgroundMint(p, true);
|
|
484
|
+
} else if (isSlotFresh(p)) {
|
|
485
|
+
freshLive.push(hopUrl);
|
|
486
|
+
} else {
|
|
487
|
+
staleLive.push(hopUrl);
|
|
488
|
+
}
|
|
489
|
+
if (!graceStarted && (freshLive.length > 0 || staleLive.length > 0)) {
|
|
490
|
+
graceStarted = true;
|
|
491
|
+
setTimeout(graceResolve, 250);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
} catch {} finally {
|
|
495
|
+
clearTimeout(timer);
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
await Promise.race([Promise.all(checks), gracePromise]);
|
|
499
|
+
const liveSet = new Set([...freshLive, ...staleLive, ...burntLive]);
|
|
500
|
+
for (const [p, ctrl] of ctrls.entries()) {
|
|
501
|
+
if (!liveSet.has("http://127.0.0.1:" + p)) {
|
|
502
|
+
ctrl.abort();
|
|
503
|
+
triggerBackgroundMint(p, false);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
const verified = [...freshLive, ...staleLive, ...burntLive];
|
|
507
|
+
if (verified.length > 0) return strictProxy ? verified : [...verified, undefined];
|
|
508
|
+
if (strictProxy) throw new Error("Strict proxy enabled: no healthy Free WARP hop available");
|
|
509
|
+
return [undefined];
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
function buildPaidProxyRotation(proxy, strictProxy = false) {
|
|
513
|
+
if (!proxy || !proxy.includes("gw.dataimpulse.com")) return strictProxy && proxy ? [proxy] : [proxy, undefined];
|
|
514
|
+
const base823 = proxy.replace(/:\\d+\\/?$/, ":823/");
|
|
515
|
+
const ccs = ["sg", "my", "id", "tw", "hk"];
|
|
516
|
+
const list = [base823];
|
|
517
|
+
for (let i = 0; i < 3; i++) {
|
|
518
|
+
const cc = ccs[(i + Math.floor(Math.random() * ccs.length)) % ccs.length];
|
|
519
|
+
list.push(base823.replace(/__cr\\.[a-z]+/i, "__cr." + cc));
|
|
520
|
+
}
|
|
521
|
+
list.push(proxy);
|
|
522
|
+
if (!strictProxy) list.push(undefined);
|
|
523
|
+
return list;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
function extractWarpPort(hopProxy) {
|
|
527
|
+
if (typeof hopProxy !== "string") return null;
|
|
528
|
+
try {
|
|
529
|
+
const u = new URL(hopProxy);
|
|
530
|
+
if (u.hostname === "127.0.0.1" && /^4019\\d$/.test(u.port)) return Number(u.port);
|
|
531
|
+
} catch {}
|
|
532
|
+
return null;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
let headerSent = false;
|
|
536
|
+
try {
|
|
537
|
+
const isOc = typeof input.url === "string" && input.url.includes("opencode.ai/inference/");
|
|
538
|
+
const strictProxy = input.strictProxy === true;
|
|
539
|
+
const useFreeWarp = isOc && (await isFreeWarpEnabled(input.proxy));
|
|
540
|
+
const proxies = !isOc
|
|
541
|
+
? [input.proxy]
|
|
542
|
+
: useFreeWarp
|
|
543
|
+
? await buildFreeWarpHopList(strictProxy)
|
|
544
|
+
: buildPaidProxyRotation(input.proxy, strictProxy);
|
|
545
|
+
let res = null;
|
|
546
|
+
let lastErr = null;
|
|
547
|
+
for (let i = 0; i < proxies.length; i++) {
|
|
548
|
+
const hopProxy = proxies[i];
|
|
549
|
+
const headers = { ...(input.headers || {}) };
|
|
550
|
+
if (isOc && (i > 0 || !headers["x-opencode-session"])) {
|
|
551
|
+
const ses = genSes(i + 1 + Math.floor(Math.random() * 10000));
|
|
552
|
+
headers["x-opencode-session"] = ses;
|
|
553
|
+
headers["x-opencode-session-id"] = ses;
|
|
554
|
+
headers["x-session-affinity"] = ses;
|
|
555
|
+
headers["x-session-id"] = ses;
|
|
556
|
+
}
|
|
557
|
+
const ctrl = new AbortController();
|
|
558
|
+
const timer = isOc ? setTimeout(() => ctrl.abort(new Error("hop timeout")), 75000) : null;
|
|
559
|
+
try {
|
|
560
|
+
res = await fetch(input.url, {
|
|
561
|
+
method: input.method,
|
|
562
|
+
headers,
|
|
563
|
+
body: input.body ?? undefined,
|
|
564
|
+
proxy: hopProxy ?? undefined,
|
|
565
|
+
signal: ctrl.signal,
|
|
566
|
+
});
|
|
567
|
+
clearTimeout(timer);
|
|
568
|
+
const isRetryable = isOc && (res.status === 429 || res.status === 502 || res.status === 503 || res.status === 504);
|
|
569
|
+
if (isRetryable) {
|
|
570
|
+
const warpPort = extractWarpPort(hopProxy);
|
|
571
|
+
if (warpPort) {
|
|
572
|
+
if (res.status === 429) {
|
|
573
|
+
const burntPfx = slotPrefixes.get(warpPort) || getSlotSavedPrefix(warpPort);
|
|
574
|
+
if (burntPfx) recordBurntPrefix(burntPfx);
|
|
575
|
+
}
|
|
576
|
+
triggerBackgroundMint(warpPort, res.status === 429);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if (!isRetryable || i === proxies.length - 1) {
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
await res.body?.cancel?.().catch(() => {});
|
|
583
|
+
} catch (e) {
|
|
584
|
+
clearTimeout(timer);
|
|
585
|
+
const warpPort = extractWarpPort(hopProxy);
|
|
586
|
+
if (warpPort) triggerBackgroundMint(warpPort, false);
|
|
587
|
+
lastErr = e;
|
|
588
|
+
if (!isOc || i === proxies.length - 1) throw e;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
if (!res && lastErr) throw lastErr;
|
|
592
|
+
out.write(JSON.stringify({ status: res.status, statusText: res.statusText, headers: [...res.headers.entries()] }) + "\\n");
|
|
593
|
+
headerSent = true;
|
|
594
|
+
await out.flush();
|
|
595
|
+
if (res.body) {
|
|
596
|
+
for await (const chunk of res.body) {
|
|
597
|
+
out.write(chunk);
|
|
598
|
+
await out.flush();
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
} catch (error) {
|
|
602
|
+
const msg = String(error?.message || error);
|
|
603
|
+
if (!headerSent) {
|
|
604
|
+
out.write(JSON.stringify({ error: msg }) + "\\n");
|
|
605
|
+
} else {
|
|
606
|
+
try { process.stderr.write(msg + "\\n"); } catch {}
|
|
607
|
+
await out.end();
|
|
608
|
+
process.exit(1);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
await out.end();
|
|
612
|
+
process.exit(0);
|
|
613
|
+
`,s=new Set(["content-encoding","content-length","transfer-encoding"]);function t(a){let b=a?.reason;if(b instanceof Error&&"AbortError"===b.name)return b;let c=Error(b instanceof Error?b.message:"Request aborted");return c.name="AbortError",c}var u=c(81667),v=c(39609),w=c(36942),x=c(41004);let y=new Set,z=/^opencode\/[a-z0-9-]+\/(\d+)\.\d+\.\d+\/[a-z0-9-]+$/i,A=0,B=0;function C(a){let b=Date.now();b!==A&&(A=b,B=0),B++;let c=4096n*BigInt(b)+BigInt(B),d=a?~c:c;return(a?"ses_":"msg_")+Array.from({length:6},(a,b)=>Number(d>>BigInt(40-8*b)&255n).toString(16).padStart(2,"0")).join("")+Array.from(e().getRandomValues(new Uint8Array(14)),a=>"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[a%62]).join("")}let D=/^ses_[0-9a-f]{12}[0-9A-Za-z]{14}$/,E=new Map,F=new Map;function G(a,b,c){return a.size>=1e3&&a.delete(a.keys().next().value),a.set(b,{sessionId:c,lastUsed:Date.now()}),c}function H(a,b){let c=a.get(b);return c?Date.now()-c.lastUsed>(x.v1?.sessionTtlMs||18e5)?(a.delete(b),null):(c.lastUsed=Date.now(),a.delete(b),a.set(b,c),c.sessionId):null}function I(a,b){if(!a||"object"!=typeof a)return null;for(let[c,d]of Object.entries(a))if(c.toLowerCase()===b&&"string"==typeof d&&d.trim())return d.trim();return null}function J(a,b){let c,d=I(b?.rawHeaders,"x-opencode-session");if(d&&D.test(d))return d;let f=d||("string"==typeof a?.session_id?a.session_id.trim():"")||("string"==typeof a?.conversation_id?a.conversation_id.trim():"")||("string"==typeof a?.metadata?.user_id?a.metadata.user_id.trim():"");return f?function(a,b=""){if("string"==typeof a&&D.test(a.trim()))return a.trim();let c=`opencode:ses:${b||"generic"}:${a||""}`;return H(E,c)||G(E,c,C(!0))}(f):H(F,c=function(a){let b=a?.connectionId||a?.id;if(b)return`opencode:conn:${String(b).slice(0,128)}`;let c=a?.apiKey||a?.accessToken;return c?`opencode:auth:${e().createHash("sha256").update(String(c)).digest("hex").slice(0,32)}`:"opencode:default"}(b))||G(F,c,C(!0))}let K=/^<openbot-developer-instructions>[\s\S]*?<\/openbot_saved_logins>\s*/,L=["path","filePath","file_path","command","pattern","query","url"];function M(a){let b={_omitted_bytes:Buffer.byteLength(a,"utf8")};try{let c=JSON.parse(a);if(c&&"object"==typeof c&&!Array.isArray(c))for(let a of L)"string"==typeof c[a]&&c[a]&&(b[a]=c[a].slice(0,180))}catch{}return JSON.stringify(b)}function N(a,b,c,d,e=!0){if("string"!=typeof a||a.length<=b)return a;if(d>0){let b=e?`${Buffer.byteLength(a,"utf8")-c-d} bytes`:"omitted";return`${a.slice(0,c)}
|
|
614
|
+
...[omitted ${b}]...
|
|
615
|
+
${a.slice(-d)}`}return`${a.slice(0,c)}
|
|
616
|
+
...[omitted]...`}function O(a,b,c,d,e=!0){if(!a)return!1;if("string"==typeof a.content){let f=N(a.content,b,c,d,e);return f!==a.content&&(a.content=f,!0)}if(Array.isArray(a.content)){let f=!1;return a.content=a.content.map(a=>a&&"object"==typeof a?"string"==typeof a.text&&a.text.length>b?(f=!0,{...a,text:N(a.text,b,c,d,e)}):"image_url"===a.type&&"string"==typeof a.image_url?.url&&a.image_url.url.startsWith("data:")&&a.image_url.url.length>512?(f=!0,{type:"text",text:"[historical image omitted during compaction]"}):a:a),f}return!1}class P extends f.Hv{constructor(){super("opencode",g.xq.opencode)}transformRequest(a,b){let c={...b};Array.isArray(c.messages)&&c.messages.some(a=>a&&"name"in a)&&(c.messages=c.messages.map(a=>{if(!a||!("name"in a))return a;let{name:b,...c}=a;return c}));let d=(0,j.Ke)(c,!1,{claude:y.has(a)});c.stream=!0,"none"===c.tool_choice&&delete c.tool_choice;let e=(0,h.Z)({provider:this.provider,model:a,body:(0,i.f)(a,c)});return!function(a,b=185e3){if(!Array.isArray(a?.messages)||0===a.messages.length)return;let c=!1,d=[];for(let b of a.messages){if(!b||"object"!=typeof b){d.push(b);continue}let a={...b};if("user"===a.role&&"string"==typeof a.content&&K.test(a.content))if(c){let b=a.content.replace(K,"").trim()||"continue";a.content=b}else c=!0;d.push(a)}a.messages=d;let e=Buffer.byteLength(JSON.stringify(a),"utf8");if(e<=b)return;let f=[];for(let b of a.messages){if(b?.role==="user"&&f.length>=2&&f[f.length-1]?.role==="user"&&"string"==typeof b.content&&b.content.length<256&&"string"==typeof f[f.length-1]?.content&&f[f.length-1].content.length<256&&b.content===f[f.length-1].content){f[f.length-1]=b;continue}f.push(b)}if(a.messages=f,(e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b||(!function(a){if(!Array.isArray(a?.tools)||0===a.tools.length)return;let b=new Set;if(Array.isArray(a.messages)){for(let c of a.messages)if(Array.isArray(c?.tool_calls))for(let a of c.tool_calls)a?.function?.name&&b.add(a.function.name)}a.tools=a.tools.filter(a=>{let c=a?.function?.name||a?.name||"";return!c.startsWith("computer_use_")||!!b.has(c)})}(a),(e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b))return;let g=Math.max(1,a.messages.length-24);for(let c=1;c<g&&e>b;c++){let b=a.messages[c];if(b?.role==="assistant"&&"string"==typeof b.reasoning_content&&b.reasoning_content.length>1){let a=Buffer.byteLength(b.reasoning_content,"utf8");b.reasoning_content=".",e-=Math.max(0,a-1)}}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;for(let c=1;c<g&&e>b;c++){let b=a.messages[c];b&&("tool"===b.role||"user"===b.role&&c>3)&&O(b,2400,1400,700,!0)}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;let h=Math.max(1,a.messages.length-14);for(let c=1;c<h&&e>b;c++){let b=a.messages[c];b&&"system"!==b.role&&(O(b,1400,850,400,!0),"assistant"===b.role&&Array.isArray(b.tool_calls)&&(b.tool_calls=b.tool_calls.map(a=>{let b=a?.function?.arguments;return"string"!=typeof b||b.length<=1200?a:{...a,function:{...a.function,arguments:M(b)}}})))}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;for(let c=1;c<h&&e>b;c++){let b=a.messages[c];b&&"system"!==b.role&&("tool"===b.role?O(b,650,420,180,!1):"assistant"===b.role&&O(b,500,320,0,!1))}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;let i=a.messages.findIndex(a=>a&&"system"!==a.role);i<0&&(i=1);let j=a.messages[i]?.role==="user"?i+1:i;for(;e>b&&j<a.messages.length;){let b=-1;for(let c=a.messages.length-1;c>=0;c--)if(a.messages[c]?.role==="user"){b=c;break}if(j===b&&b>i&&(j=b+1)>=a.messages.length)break;let c=function(a,b){let c=1;for("user"===a[b]?.role&&a[b+1]?.role==="assistant"&&c++;b+c<a.length&&a[b+c]?.role==="tool";)c++;return c}(a.messages,j);if(a.messages.length-(j+c)<2)break;b>j&&j+c>b?a.messages.splice(j,b-j):a.messages.splice(j,c),e=Buffer.byteLength(JSON.stringify(a),"utf8")}if(e>b)for(let[c,d,f]of[[4e3,2e3,1e3],[1e3,500,300],[300,150,80]]){for(let g=Math.max(1,a.messages.length-18);g<a.messages.length&&e>b;g++){let h=a.messages[g];h&&"system"!==h.role&&(O(h,c,d,f,!0)&&(e=Buffer.byteLength(JSON.stringify(a),"utf8")),e>b&&"assistant"===h.role&&Array.isArray(h.tool_calls)&&(h.tool_calls=h.tool_calls.map(a=>{let b=a?.function?.arguments;return"string"!=typeof b||b.length<=c?a:{...a,function:{...a.function,arguments:M(b)}}}),e=Buffer.byteLength(JSON.stringify(a),"utf8")))}if(e<=b)break}}(e),d?.size&&(0,j.sj)(e,d),e}buildUrl(a){let b="https://opencode.ai";return y.has(a)?`${b}/inference/v1/messages`:`${b}/inference/v1/chat/completions`}buildHeaders(a,b=!0,c){let d,e,f=J(c?.body,a);return{"Content-Type":"application/json",Authorization:"Bearer public","User-Agent":(e=(d=I(a?.rawHeaders,"user-agent")||"").match(z))&&Number(e[1])>=2?d:w.B,"x-opencode-client":I(a?.rawHeaders,"x-opencode-client")||"cli","x-opencode-session":f,"x-opencode-session-id":f,"x-session-affinity":f,"x-session-id":f,"x-opencode-project":I(a?.rawHeaders,"x-opencode-project")||"global",Accept:b?"text/event-stream":"*/*"}}async fetchUpstream(a,b,c){let d=(0,v.resolveProxyUrl)(a,c),e=c?.strictProxy===!0;(0,u.Mn)(d)&&await (0,u.QR)();let f=await function(a,{method:b="GET",headers:c={},body:d=null,signal:e=null}={},{proxyUrl:f=null,strictProxy:g=!1}={}){if(e?.aborted)return Promise.reject(t(e));let h=function(){let a=process.env.ZEVAI_BUN_BIN?.trim();if(a)return a;let b="win32"===process.platform,c=o().homedir(),d=b?"bun.exe":"bun",e=b?[q().join(c,".bun","bin",d),q().join(q().dirname(process.execPath),d)]:[q().join(c,".bun","bin",d),q().join(q().dirname(process.execPath),d),q().join(c,".local","bin",d),"/opt/homebrew/bin/bun","/usr/local/bin/bun","/usr/bin/bun",q().join(c,"Library","Application Support","OpenBot","provider-runtimes","bun","darwin-arm64","1.4.4","bin",d)],f=process.env.DATA_DIR||(b?q().join(process.env.APPDATA||c,"zevai"):q().join(c,".zevai")),g=q().join(f,"runtime","node_modules");for(let a of(e.push(q().join(g,"bun","bin","bun.exe"),q().join(g,".bin",d)),e))if(m().existsSync(a))return a;return d}(),i=JSON.stringify({url:String(a),method:b,headers:c instanceof Headers?Object.fromEntries(c.entries()):c,body:null==d?null:"string"==typeof d?d:d instanceof Uint8Array?Buffer.from(d).toString("utf8"):String(d),proxy:f||null,strictProxy:!!g});return new Promise((a,c)=>{let d=(0,k.spawn)(h,["-e",r],{stdio:["pipe","pipe","pipe"]}),f=!1,g=Buffer.alloc(0),j=null,l="",m=a=>{if(f){if(j){try{j.error(a)}catch{}j=null}}else f=!0,c(a)},n=()=>{d.killed||d.kill("SIGKILL"),m(t(e))};e?.addEventListener("abort",n,{once:!0});let o=()=>e?.removeEventListener("abort",n),p=new ReadableStream({start(a){j=a},pull(){d.stdout.resume()},cancel(){j=null,o(),d.killed||d.kill("SIGKILL")}},{highWaterMark:16}),q=a=>{j&&0!==a.length&&(j.enqueue(new Uint8Array(a)),null!==j.desiredSize&&j.desiredSize<=0&&d.stdout.pause())};d.stdout.on("data",c=>{if(f)return void q(c);let d=(g=Buffer.concat([g,c])).indexOf(10);if(-1===d)return;let e=g.subarray(0,d).toString("utf8"),h=g.subarray(d+1);g=Buffer.alloc(0),((c,d)=>{let e;try{e=JSON.parse(c)}catch{m(Error(`Bun fetch returned an invalid header: ${c.slice(0,200)}`));return}if(e.error)return m(Error(`Bun fetch failed: ${e.error}`));let g=new Headers;for(let[a,b]of e.headers||[])s.has(a.toLowerCase())||g.append(a,b);f=!0,a(new Response(![101,204,205,304].includes(e.status)&&"HEAD"!==b?p:null,{status:e.status,statusText:e.statusText||"",headers:g})),q(d)})(e,h)}),d.stderr.on("data",a=>{l=(l+a.toString("utf8")).slice(-2048)}),d.on("error",a=>{o(),m(Error("ENOENT"===a.code?`Bun runtime not found (${h}). Install Bun from https://bun.sh or set ZEVAI_BUN_BIN to its path.`:`Bun fetch could not start: ${a.message}`))}),d.on("close",a=>{(o(),f)?j&&(0===a?j.close():j.error(Error(`Bun fetch exited with code ${a} mid-response${l?`: ${l.trim()}`:""}`)),j=null):m(Error(`Bun fetch exited with code ${a} before responding${l?`: ${l.trim()}`:""}`))}),d.stdin.on("error",()=>{}),d.stdin.end(i)})}(a,b,{proxyUrl:d,strictProxy:e});if(429===f.status){var g=b?.headers?.["x-opencode-session"];if(g)for(let a of[E,F])for(let[b,c]of a.entries())c?.sessionId===g&&a.delete(b);if(f.headers?.has?.("retry-after")){let a=new Headers(f.headers);return a.set("retry-after","2"),new Response(f.body,{status:f.status,statusText:f.statusText,headers:a})}}return f}}}};
|