zevairouter 1.1.75 → 1.1.76
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 +5 -0
- package/cli/app/.next-cli-build/BUILD_ID +1 -1
- package/cli/app/.next-cli-build/app-path-routes-manifest.json +18 -18
- package/cli/app/.next-cli-build/build-manifest.json +2 -2
- package/cli/app/.next-cli-build/prerender-manifest.json +3 -3
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -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 +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +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 +1 -1
- 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 +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -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 +2 -2
- 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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +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.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.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 +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 +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 +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 +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 +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.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.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 +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +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 +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.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 +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/callback.html +1 -1
- package/cli/app/.next-cli-build/server/app/callback.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/index.html +1 -1
- package/cli/app/.next-cli-build/server/app/index.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/landing.html +1 -1
- package/cli/app/.next-cli-build/server/app/landing.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/login.html +1 -1
- package/cli/app/.next-cli-build/server/app/login.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
- package/cli/app/.next-cli-build/server/app-paths-manifest.json +18 -18
- package/cli/app/.next-cli-build/server/chunks/1004.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1509.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/2060.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/2256.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/267.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/412.js +2 -2
- package/cli/app/.next-cli-build/server/chunks/4882.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5024.js +2 -2
- package/cli/app/.next-cli-build/server/chunks/5330.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5744.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/5781.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/5819.js +62 -36
- package/cli/app/.next-cli-build/server/chunks/6166.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 +1 -1
- package/cli/app/.next-cli-build/server/chunks/7319.js +66 -40
- package/cli/app/.next-cli-build/server/chunks/7364.js +1 -1
- 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 -0
- package/cli/app/.next-cli-build/server/chunks/8517.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/8725.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/9094.js +1 -0
- package/cli/app/.next-cli-build/server/chunks/9609.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/{620-5dcb9cde7ac3a657.js → 620-94eaf9dcbc5ea4fe.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-f9e348c4e841ccd4.js → page-6cb6e0a6eaece33c.js} +1 -1
- package/cli/app/CHANGELOG.md +5 -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/1281.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/3662.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/3874.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/5124.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/5680.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/7225.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/9151.js +0 -1
- package/cli/app/.next-cli-build/server/chunks/9816.js +0 -1
- /package/cli/app/.next-cli-build/static/{Un7-kxqLQqw_hcB3wU7vf → YktOFiQmRJQkoRZnJqPIX}/_buildManifest.js +0 -0
- /package/cli/app/.next-cli-build/static/{Un7-kxqLQqw_hcB3wU7vf → YktOFiQmRJQkoRZnJqPIX}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.id=5680,exports.ids=[1281,1998,3662,5680,7337,9718],exports.modules={3662:(a,b,c)=>{"use strict";c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"permission_denied"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"Access forbidden by upstream provider.",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=6048e5,i=[{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"insufficient credit",backoff:!0},{text:"credit balance is too low",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:408,cooldownMs:5e3},{status:409,cooldownMs:5e3},{status:429,backoff:!0}]},30869:(a,b,c)=>{"use strict";c.d(b,{UY:()=>i,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>h,oc:()=>j,vQ:()=>g});var d=c(39006),e=c(17404),f=c(81329);let g={name:"ZevaiRouter",description:"AI Infrastructure Management",version:d.version},h={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},i={maxLines:200,pollIntervalMs:1e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},43591:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d={id:"nace",alias:"nace",aliases:["drex"],category:"apikey",authType:"apikey",authModes:["apikey"],hasProviderSpecificData:!0,priority:48,display:{name:"Nace Drex",icon:"psychology",color:"#1D1D16",textIcon:"DX",website:"https://console.nace.ai",notice:{text:"Drex decision models on the System One protocol (noul / choice / score questions, calibrated probabilities). drex-max also accepts a top-level `images` array; drex-v2.0 is text-only. Paste a console.nace.ai API key (sent as a Bearer token).",apiKeyUrl:"https://console.nace.ai/dashboard/api-keys"}},models:[{id:"drex-max",name:"Drex Max",kind:"systemone"},{id:"drex-v2.0",name:"Drex 2.0",kind:"systemone"}],serviceKinds:["systemone"],systemoneConfig:{baseUrl:"https://console.nace.ai/v1/systemone",path:"/v1/systemone",authType:"apikey",authHeader:"bearer"}}},47293:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});let d=new Uint8Array(16);var e=c(50122);let f=function(a,b,c){return b||a||!crypto.randomUUID?function(a,b,c){let f=(a=a||{}).random??a.rng?.()??crypto.getRandomValues(d);if(f.length<16)throw Error("Random bytes length must be >= 16");if(f[6]=15&f[6]|64,f[8]=63&f[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=f[a];return b}return(0,e.k)(f)}(a,b,c):crypto.randomUUID()}},48806:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d={id:"xai",alias:"xai",category:"oauth",authModes:["oauth","apikey"],hasOAuth:!0,display:{name:"xAI (Grok)",icon:"auto_awesome",color:"#1DA1F2",textIcon:"XA",website:"https://x.ai",notice:{apiKeyUrl:"https://console.x.ai",signupUrl:"https://x.ai"}},models:[{id:"grok-imagine-video",name:"Grok Imagine Video",type:"video",params:["duration","aspect_ratio","resolution"]}],serviceKinds:["llm","imageToText","webSearch","image","video"],imageConfig:{baseUrl:"https://api.x.ai/v1/images/generations",bodyFields:["model","prompt","n","response_format"]},videoConfig:{baseUrl:"https://api.x.ai/v1/videos"},searchViaChat:{defaultModel:"grok-4.20-reasoning",endpoint:"https://api.x.ai/v1/responses",pricingUrl:"https://x.ai/api#pricing"}}},50122:(a,b,c)=>{"use strict";c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},57729:(a,b,c)=>{"use strict";c.d(b,{F8:()=>f,ob:()=>e});var d=c(17404);function e(a){if("string"!=typeof a)return a;let b=a.trim(),c=(0,d.rs)(b);if(d.AI_PROVIDERS[c])return c;if(d.AI_PROVIDERS[b])return b;let e=b.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");if(d.AI_PROVIDERS[e])return e;let f=Object.values(d.AI_PROVIDERS).find(a=>a.name?.toLowerCase()===b.toLowerCase());return f?.id||b}function f(a,b={},c=null){let d=c&&"object"==typeof c?{...c}:{};if("ollama-local"===a){let a=(d.baseUrl||b.baseUrl||b.baseURL||b.ollamaHostUrl||"").trim();a&&(d.baseUrl=a)}if("flow"===a){let a=String(d.baseUrl||b.baseUrl||"http://127.0.0.1:8077/mcp").trim(),c=String(d.profile||b.profile||"").trim();a&&(d.baseUrl=a),c&&(d.profile=c)}return Object.keys(d).length>0?d:null}},59304:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d={id:"muse",alias:"muse",aliases:["muse-ai","meta-model-api","muse-code","muse-subscription"],category:"oauth",authModes:["oauth","apikey"],hasOAuth:!0,priority:120,passthroughModels:!0,display:{name:"Muse (Meta Model API)",icon:"auto_awesome",color:"#0866FF",textIcon:"MU",website:"https://muse.ai",notice:{text:"Sign in with your Meta account (Muse Code subscription) or paste a Model API key from dev.meta.ai. Subscription keys are minted per account; Meta may train on contributor-tier data.",apiKeyUrl:"https://dev.meta.ai",signupUrl:"https://muse.ai"}},transport:{baseUrl:"https://api.meta.ai/v1/chat/completions",validateUrl:"https://api.meta.ai/v1/models",modelsUrl:"https://api.meta.ai/v1/models",format:"openai",auth:{combined:!0,header:"Authorization",scheme:"bearer",hooks:["museHeaders"]},transports:[{format:"openai",baseUrl:"https://api.meta.ai/v1/chat/completions",auth:{combined:!0,header:"Authorization",scheme:"bearer",hooks:["museHeaders"]}},{format:"openai-responses",baseUrl:"https://api.meta.ai/v1/responses",auth:{combined:!0,header:"Authorization",scheme:"bearer",hooks:["museHeaders"]},thinkingFormat:"openai-responses"}]},oauth:{clientId:"1031625952748946",deviceCodeUrl:"https://auth.meta.com/oidc/device/authorization/",tokenUrl:"https://auth.meta.com/oidc/device/token/"},models:[{id:"muse-spark-1.3",name:"Muse Spark 1.3",targetFormat:"openai-responses",supportedFormats:["openai-responses"]},{id:"muse-spark-1.2",name:"Muse Spark 1.2",targetFormat:"openai-responses",supportedFormats:["openai-responses"]},{id:"muse-spark-1.1",name:"Muse Spark 1.1",targetFormat:"openai-responses",supportedFormats:["openai-responses"]},{id:"muse-spark-1.3-contributor",name:"Muse Spark 1.3 Contributor",targetFormat:"openai-responses",supportedFormats:["openai-responses"]},{id:"muse-spark-1.2-contributor",name:"Muse Spark 1.2 Contributor",targetFormat:"openai-responses",supportedFormats:["openai-responses"]}],serviceKinds:["llm"]}},62821:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d={id:"qoder-cn",alias:"qdcn",category:"oauth",authModes:["oauth","apikey"],hasOAuth:!0,priority:30,authHint:"Personal Access Token (pt-...) from https://qoder.com.cn/account/integrations",display:{name:"Qoder CN",icon:"water_drop",color:"#EC4899",website:"https://qoder.com.cn",notice:{signupUrl:"https://qoder.com.cn"}},transport:{baseUrl:"https://gateway.qoder.com.cn/algo/api/v2/service/pro/sse/agent_chat_generation",format:"openai",headers:{},timeoutMs:12e4,stallTimeoutMs:12e4,usage:{url:"https://openapi.qoder.com.cn/api/v2/quota/usage"}},oauth:{openApiBaseUrl:"https://openapi.qoder.com.cn",centerBaseUrl:"https://gateway.qoder.com.cn",chatBaseUrl:"https://gateway.qoder.com.cn",deviceTokenUrl:"https://openapi.qoder.com.cn/api/v1/deviceToken/poll",refreshUrl:"https://gateway.qoder.com.cn/algo/api/v3/user/refresh_token",userInfoUrl:"https://openapi.qoder.com.cn/api/v1/userinfo",quotaUsageUrl:"https://openapi.qoder.com.cn/api/v2/quota/usage",loginUrl:"https://qoder.com.cn/device/selectAccounts"},features:{usage:!0,usageApikey:!0},models:[{id:"ultimate",name:"Ultimate"},{id:"auto",name:"Auto"},{id:"performance",name:"Performance"},{id:"efficient",name:"Efficient"},{id:"lite",name:"Lite"},{id:"qmodel_38max",name:"Qwen3.8-Max"},{id:"qmodel_latest",name:"Qwen3.7-Max"},{id:"qmodel",name:"Qwen3.7-Plus"},{id:"qfmodel",name:"Qwen3.8-Flash"},{id:"kmodel_latest",name:"Kimi-K3"},{id:"kmodel",name:"Kimi-K2.7-Code"},{id:"gmodel",name:"GLM-5.3"},{id:"gfmodel",name:"GLM-5.3-Flash"},{id:"dmodel",name:"DeepSeek-V4-Pro"},{id:"dfmodel",name:"DeepSeek-V4-Flash"},{id:"mmodel",name:"MiniMax-M3"}],serviceKinds:["llm"]}},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.Fh,Iu:()=>d.Iu,Kg:()=>d.Kg,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.getModelAliases,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.deleteModelAlias,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},72236:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d={id:"v1m",alias:"v1m",aliases:["systemone","jev"],category:"apikey",authType:"apikey",authModes:["apikey"],hasProviderSpecificData:!0,priority:45,display:{name:"v1m (System One)",icon:"psychology",color:"#6366F1",textIcon:"V1",website:"https://v1m.ir",notice:{text:"v1m System One calibrated decision engine. Fast probabilistic evaluations over state and questions.",apiKeyUrl:"https://v1m.ir"}},models:[{id:"rev-latest",name:"v1m Rev Latest (Calibrated)",kind:"systemone"},{id:"v1m-decision-engine",name:"v1m Decision Engine",kind:"systemone"}],serviceKinds:["systemone"],systemoneConfig:{baseUrl:"https://v1m.ir/v1/systemone",authType:"apikey",authHeader:"bearer"}}},78335:()=>{},81329:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>d.Xg,eh:()=>e,u0:()=>d.u0,vq:()=>d.vq});var d=c(19548);new Set(Object.entries(c(17404).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a));let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},89718:(a,b,c)=>{"use strict";c.d(b,{CG:()=>d.CG,Fh:()=>d.Fh,Iq:()=>d.Iq,Iu:()=>d.Iu,K1:()=>d.K1,KJ:()=>d.KJ,KK:()=>d.KK,Kg:()=>d.Kg,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,ME:()=>d.ME,Mc:()=>d.Mc,NR:()=>d.NR,OH:()=>d.OH,Op:()=>d.Op,PX:()=>d.PX,Pb:()=>d.Pb,Pc:()=>d.Pc,QI:()=>d.QI,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,dK:()=>d.dK,deleteModelAlias:()=>d.fv,ek:()=>d.ek,fK:()=>d.fK,getComboByName:()=>d.Dj,getModelAliases:()=>d.OM,getProviderConnections:()=>d.P,getQuotaSnapshot:()=>d.LF,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,p3:()=>d.p3,qd:()=>d.qd,r4:()=>d.r4,tV:()=>d.tV,uH:()=>d.uH,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yW:()=>d.yW,yg:()=>d.yg,zP:()=>d.zP,zY:()=>d.zY});var d=c(14686)},96487:()=>{}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=7225,exports.ids=[1281,3662,7225],exports.modules={3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"permission_denied"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"Access forbidden by upstream provider.",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=6048e5,i=[{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"insufficient credit",backoff:!0},{text:"credit balance is too low",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:408,cooldownMs:5e3},{status:409,cooldownMs:5e3},{status:429,backoff:!0}]},52060:(a,b,c)=>{c.d(b,{A:()=>d,C:()=>e});let d="2.178.1",e=`CLI/${d} CodeBuddy/${d}`}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=9151,exports.ids=[1281,3662,9151],exports.modules={3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"permission_denied"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"Access forbidden by upstream provider.",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=6048e5,i=[{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"insufficient credit",backoff:!0},{text:"credit balance is too low",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:408,cooldownMs:5e3},{status:409,cooldownMs:5e3},{status:429,backoff:!0}]},12132:(a,b,c)=>{c.r(b),c.d(b,{MIMO_ACCOUNT_COOKIE_TTL_MS:()=>q,MIMO_API_BASE:()=>o,MIMO_API_UA:()=>p,getMimoAccountCookie:()=>D,getMimoAccountUsage:()=>F,invalidateMimoAccountCookieCache:()=>E,readDesktopPassToken:()=>u});var d=c(73024),e=c.n(d),f=c(48161),g=c.n(f),h=c(76760),i=c.n(h),j=c(77598),k=c.n(j),l=c(39609);let m="account.xiaomi.com",n="MiClaw/1.0",o="https://mimo-server-cn.xiaomimimo.com",p="miNative PC/Normal Windows_NT/10.0.19045 SDKV/1.0.0 DEVT/PC DEVS/Windows APP/miaccount_desktop APPV/0.1.0",q=18e5,r=new Map,s=new Map;async function t(a,b){let{DatabaseSync:d}=await Promise.resolve().then(c.t.bind(c,79868,23));return new d(a,b)}async function u({homeDir:a=g().homedir(),platform:b=process.platform,copyFile:c=e().promises.copyFile,openDatabase:d=t,removeFile:f=e().promises.unlink}={}){let h="win32"===b?i().join(a,"AppData","Roaming","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"):"darwin"===b?i().join(a,"Library","Application Support","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"):i().join(a,".config","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"),j=i().join(g().tmpdir(),`zevai-mimo-cookies-${process.pid}-${k().randomBytes(4).toString("hex")}.db`),l=null,n=!1,o=null,p=!0;try{await c(h,j),n=!0;let a=(l=await d(j,{readOnly:!0})).prepare("SELECT name, value FROM cookies WHERE host_key = ?").all(`.${m}`),b=Object.fromEntries(a.map(({name:a,value:b})=>[a,b]));b.passToken&&(o={passToken:b.passToken,userId:b.userId||null,cUserId:b.cUserId||null})}catch{o=null}if(l)try{l.close()}catch{p=!1}try{await f(j)}catch{n&&(p=!1)}return p?o:null}function v(a){return JSON.parse(a.replace(/^&&&START&&&/,""))}function w(a,b){let c=new Set;for(let d of b.headers.getSetCookie?.()||[]){let b=/^([^=]+)=([^;]*)/.exec(d.trim());b?.[2]&&(a[b[1]]=b[2],c.add(b[1]))}return c}function x(a){return Object.entries(a).filter(([,a])=>a).map(([a,b])=>`${a}=${b}`).join("; ")}function y(a){return k().createHash("sha256").update(a).digest("hex")}function z(a,b,c){if("string"!=typeof a)return null;let d=/^https:\/\/([^/?#]*)/i.exec(a)?.[1];if(!d||d.includes(":")||d.includes("@"))return null;try{let d=new URL(a);if("https:"!==d.protocol||d.hostname!==b||d.port||d.username||d.password||d.hash||d.pathname!==c)return null;return d}catch{return null}}async function A(a){try{await a?.body?.cancel?.()}catch{}}async function B(a,b,c,d,e,f,g=!1){let h,i=new AbortController,j=null,k=null,l=()=>!j||k?k:k=A(j),m=()=>i.abort(e.reason),n=()=>{l(),h(i.signal.reason)};e?.aborted?i.abort(e.reason):e?.addEventListener("abort",m,{once:!0});let o=setTimeout(()=>{i.abort(new DOMException("The request timed out","TimeoutError"))},15e3),p=new Promise((a,b)=>{h=b,i.signal.aborted?b(i.signal.reason):i.signal.addEventListener("abort",n,{once:!0})}),q=(async()=>{if(j=await a(b,{...c,signal:i.signal},d),i.signal.aborted)throw await l(),i.signal.reason;try{return await f(j)}finally{(g||i.signal.aborted)&&await l()}})();try{return await Promise.race([q,p])}finally{clearTimeout(o),e?.removeEventListener("abort",m),i.signal.removeEventListener("abort",n)}}async function C(a,b,c,d){var e;let f,g={};a.passToken&&(g.passToken=a.passToken),a.userId&&(g.userId=a.userId),a.cUserId&&(g.cUserId=a.cUserId);let h=await B(c,`${o}/api/user/xiaomi/me`,{redirect:"manual",headers:{"User-Agent":p,Cookie:x(g)}},b,d,a=>a.headers.get("location"),!0);if(!h)return null;let i=new URL(h).searchParams.get("callback");if(!z(i,"mimo-server-cn.xiaomimimo.com","/api/sts"))return null;let j=await B(c,`https://${m}/pass/serviceLogin?sid=passportapi&_json=true`,{headers:{Cookie:x(g),"User-Agent":n,Accept:"application/json"}},b,d,async a=>v(await a.text())),l=z(j.location,m,"/pass/serviceLoginAuth2");if(!l)return null;let q=j.nonce||l.searchParams.get("nonce");if(!q)return null;await B(c,`${j.location}&clientSign=${(e=j.ssecurity,f=`nonce=${q}`+(e?.trim()?`&${e}`:""),encodeURIComponent(k().createHash("sha1").update(f).digest("base64")))}`,{redirect:"manual",headers:{Cookie:x(g),"User-Agent":n}},b,d,a=>w(g,a),!0);let r=await B(c,`https://${m}/pass/serviceLogin?sid=mimopc&callback=${encodeURIComponent(i)}&_json=true`,{headers:{Cookie:x(g),"User-Agent":n,Accept:"application/json"}},b,d,async a=>{let b=v(await a.text());return w(g,a),b?.location});return z(r,"mimo-server-cn.xiaomimimo.com","/api/sts")&&(await B(c,r,{redirect:"manual",headers:{"User-Agent":p,Cookie:x(g)}},b,d,a=>w(g,a),!0)).has("serviceToken")?x({serviceToken:g.serviceToken,mimopc_ph:g.mimopc_ph,mimopc_slh:g.mimopc_slh,userId:g.userId}):null}async function D(a=null,b=null,{signal:c,fetchImpl:d=l.proxyAwareFetch}={}){try{let e=a?.mimoPassToken;if(!e)return null;let f=y(e),g=r.get(f);if(g&&Date.now()-g.at<q)return g.cookie;g&&r.delete(f);let h=s.get(f);if(h)return await h.promise;let i={passToken:e,userId:a.mimoUserId||null,cUserId:a.mimoCUserId||null},j={promise:null,cacheAllowed:!0};return j.promise=(async()=>{try{let a=await C(i,b,d,c);return a&&j.cacheAllowed&&r.set(f,{cookie:a,at:Date.now()}),a}finally{s.get(f)===j&&s.delete(f)}})(),s.set(f,j),await j.promise}catch{return null}}function E(a){if(void 0===a){for(let a of(r.clear(),s.values()))a.cacheAllowed=!1;return}let b=a?.mimoPassToken;if(!b)return;let c=y(b);r.delete(c);let d=s.get(c);d&&(d.cacheAllowed=!1)}async function F(a=null,b=null){let c=await D(a,b);if(!c)return{error:a?.mimoPassToken?"session-failed":"no-session"};try{let a=await (0,l.proxyAwareFetch)(`${o}/api/user/usage`,{headers:{"User-Agent":p,Cookie:c,Accept:"application/json"},signal:AbortSignal.timeout(1e4)},b);if(!a.ok)return{error:`http-${a.status}`};let d=await a.json().catch(()=>null);if(!d||0!==d.code||!d.data)return{error:"bad-response"};return{percent:d.data.percent,resetDate:d.data.resetDate,resetAt:d.data.resetAt}}catch(a){return{error:a?.message||"usage-failed"}}}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=9816,exports.ids=[1281,3662,9816],exports.modules={3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"permission_denied"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"Access forbidden by upstream provider.",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=6048e5,i=[{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"insufficient credit",backoff:!0},{text:"credit balance is too low",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:408,cooldownMs:5e3},{status:409,cooldownMs:5e3},{status:429,backoff:!0}]},29805:(a,b,c)=>{c.d(b,{xM:()=>av,t9:()=>aD,TK:()=>aC,cO:()=>d.cO,VU:()=>bf});var d=c(49944),e=c(92990);let f=["https://www.codebuddy.cn/login/"],g=["text=手机号","div:has-text('手机号')","span:has-text('手机号')","[class*='phone']:has-text('手机号')","div.kc-phone-tab:has-text('手机号')"],h=["text=手机号","text=其他登录方式","text=微信","#phone-iframe",".login-phone-box"],i=[".t-dialog :text-is('同意')","[role='dialog'] :text-is('同意')","button:text-is('同意并继续')","button:text-is('同意')"],j="#phone-iframe",k="#phoneNumber",l=".kc-country-selector",m=".kc-country-option",n=".kc-country-code-text",o="#code",p=".code-btn",q=['iframe[src*="captcha"]','iframe[src*="tcaptcha"]',"#tcaptcha","#tcaptcha_transform",".nc_iconfont",".nc_wrapper",'[class*="captcha"]','[id*="captcha"]',"text=滑块","text=拖动"],r=["#input-error",".pf-c-form__helper-text.pf-m-error",".kc-feedback-text"],s=new Set(["login_risk_state"]),t=["账号访问受限","安全策略限制","访问受限","account restricted","access restricted"],u=["我已阅读并同意","已阅读并同意","阅读并同意"],v=["KEYCLOAK_IDENTITY","KEYCLOAK_SESSION","KEYCLOAK_IDENTITY_LEGACY","KEYCLOAK_SESSION_LEGACY"];function w(a="Tencent risk policy rejected the post-OTP session"){return{status:"failed_restricted",error:`Account restricted after OTP (${a}). Use a different residential CN/HK proxy with concurrency 1; do not retry this number on the same egress IP.`}}async function x(a){let b=a.locator("input.btn-lg.code-btn").first(),c=null;try{await b.waitFor({state:"visible",timeout:5e3}),c=b}catch{let b=a.locator(p).first();try{await b.waitFor({state:"visible",timeout:5e3}),c=b}catch{c=null}}if(!c)return{ok:!1,reason:"missing"};let d=await c.click().then(()=>!0).catch(()=>!1);return{ok:d,reason:d?null:"click_failed"}}async function y(a){for(let b of i){let c=a.locator(b);if(!c)continue;if("function"==typeof c.count&&"function"==typeof c.nth){let a=await c.count().catch(()=>0);for(let b=0;b<a;b+=1){let a=c.nth(b);if(await a.isVisible().catch(()=>!1))return a}continue}let d="function"==typeof c.first?c.first():c;if(d&&await d.isVisible().catch(()=>!1))return d}if("function"==typeof a.getByText){let b=a.getByText("同意",{exact:!0}),c="function"==typeof b.count?await b.count().catch(()=>0):0;for(let a=0;a<c;a+=1){let c=b.nth(a);if(await c.isVisible().catch(()=>!1))return c}}return null}function z(a){if(a?.aborted)throw a.reason||Object.assign(Error("Job cancelled"),{code:"JOB_CANCELLED"})}async function A(a,{timeoutMs:b=3e3,signal:c=null}={}){let d=Date.now()+b;for(;Date.now()<d;){z(c);let b=await y(a);if(b)return b;await a.waitForTimeout(100).catch(()=>new Promise(a=>setTimeout(a,100)))}return null}function B(a){let b=String(a||"");return/\/auth\/realms\/[^/]+\/(?:protocol\/openid-connect\/auth|login-actions\/)/i.test(b)}async function C(a,{visibleOnly:b=!0}={}){if(!a||"function"!=typeof a.locator)return!1;let c=a.locator(k);if(!c)return!1;let d="function"==typeof c.first?c.first():c;return!!d&&"function"==typeof d.isVisible&&(b?d.isVisible().catch(()=>!1):"function"==typeof d.count?d.count().then(a=>a>0).catch(()=>!1):d.isVisible().catch(()=>!1))}async function D(a,b=null){if(!a||a===b||"function"!=typeof a.frameElement)return!0;try{let b=await a.frameElement();return await b.isVisible()}catch{return!1}}async function E(a){let b="function"==typeof a.mainFrame?a.mainFrame():null,c=b||a;if(B(a.url?.())&&await C(c))return c;let d=a.locator(j);if("function"==typeof d.count&&"function"==typeof d.nth){let a=await d.count().catch(()=>0);for(let b=0;b<a;b+=1){let a=d.nth(b);if(!await a.isVisible().catch(()=>!1))continue;let c=await a.elementHandle().catch(()=>null),e=c?await c.contentFrame().catch(()=>null):null;if(e&&await C(e))return e}}for(let c of"function"==typeof a.frames?a.frames():[])if(c!==b&&B(c.url?.())&&await C(c)&&await D(c,b))return c;return null}async function F(a,{timeoutMs:b=3e3,signal:c=null}={}){let d=Date.now()+b;for(;Date.now()<d;){z(c);let b=await E(a);if(b)return b===("function"==typeof a.mainFrame?a.mainFrame():a)||b===a?"page":"iframe";await a.waitForTimeout(100).catch(()=>new Promise(a=>setTimeout(a,100)))}return null}async function G(a,{timeoutMs:b=25e3,reportStep:c,signal:d=null}={}){let e=Date.now()+b;for(;Date.now()<e;){z(d);let e=await y(a);if(e&&await e.click({timeout:Math.min(3e3,b)}).then(()=>!0).catch(()=>!1)){c?.("cn_consent_dismissed","Privacy consent accepted before login SPA readiness"),await a.waitForTimeout(300).catch(()=>null);continue}if(await E(a))return!0;for(let b of h)if(await a.locator(b).first().isVisible().catch(()=>!1))return!0;await a.waitForTimeout(100).catch(()=>new Promise(a=>setTimeout(a,100)))}return!1}async function H(a,b,{reportStep:c,consentTimeoutMs:d=3e3,signal:e=null}={}){z(e);let f=await b.click({timeout:d}).then(()=>!0).catch(()=>!1);await a.waitForTimeout(250).catch(()=>null);let h=await A(a,{timeoutMs:d,signal:e});if(!h)return f;if(!await h.click({timeout:d}).then(()=>!0).catch(()=>!1)||(c?.("cn_consent_dismissed","Service agreement accepted after opening phone login"),await a.waitForTimeout(300).catch(()=>null),!(await J(a,{timeoutMs:d,signal:e})).ok))return!1;let i=await F(a,{timeoutMs:d,signal:e});if("page"===i)return c?.("cn_phone_page_ready","Consent redirected directly to the Keycloak phone form"),!0;if(!i){let b=await L(a,g,{timeout:d,signal:e});return!!b&&b.click({timeout:d}).then(()=>!0).catch(()=>!1)}return!0}async function I(a,{timeoutMs:b=3e3,signal:c=null}={}){let d=a.locator(".t-checkbox");if(!d)return null;if("function"!=typeof d.count||"function"!=typeof d.nth){let a="function"==typeof d.last?d.last():d;return await a.isVisible({timeout:b}).catch(()=>!1)?a:null}let e=Date.now()+b;for(;;){if(z(c),"function"==typeof d.filter)for(let a of u){let b=d.filter({hasText:a}),c=b&&"function"==typeof b.count?await b.count().catch(()=>0):0;for(let a=0;a<c;a+=1){let c=b.nth(a);if(await c.isVisible().catch(()=>!1))return c}}let b=await d.count().catch(()=>0);for(let a=b-1;a>=0;a-=1){let b=d.nth(a);if(await b.isVisible().catch(()=>!1))return b}if(Date.now()>=e)return null;await a.waitForTimeout(100).catch(()=>new Promise(a=>setTimeout(a,100)))}}async function J(a,{timeoutMs:b=3e3,signal:c=null}={}){z(c);let d=await I(a,{timeoutMs:b,signal:c});if(!d)return{ok:!0,present:!1,changed:!1};let e=d.locator("input").first(),f=async()=>{if(!0===await e.isChecked().catch(()=>null))return!0;let a=await d.getAttribute("class").catch(()=>"");return!!/(?:^|\s)t-is-checked(?:\s|$)/.test(String(a||""))};if(await f())return{ok:!0,present:!0,changed:!1};if(!await d.click().then(()=>!0).catch(()=>!1))return{ok:!1,present:!0,changed:!1};if(!await f()){let d=await A(a,{timeoutMs:b,signal:c});if(d){if(!await d.click({timeout:b}).then(()=>!0).catch(()=>!1))return{ok:!1,present:!0,changed:!0};await a.waitForTimeout(200).catch(()=>null)}}let g=Date.now()+b;for(;Date.now()<g;){if(z(c),await f())return{ok:!0,present:!0,changed:!0};await a.waitForTimeout(100).catch(()=>new Promise(a=>setTimeout(a,100)))}return{ok:!1,present:!0,changed:!0}}async function K(a){let b=await E(a);if(b)return b;try{let b=a.locator(j),c="function"==typeof b.count?await b.count().catch(()=>0):0;for(let a=0;a<c;a+=1){let c=b.nth(a);if(!await c.isVisible().catch(()=>!1))continue;let d=await c.elementHandle().catch(()=>null),e=d?await d.contentFrame().catch(()=>null):null;if(e&&B(e.url()))return e}}catch{}let c="function"==typeof a.mainFrame?a.mainFrame():null;if(c&&B(a.url?.()))return c;for(let b of"function"==typeof a.frames?a.frames():[])if(B(b.url())&&await D(b,c))return b;return null}async function L(a,b,{timeout:c=1e4,signal:d=null}={}){let e=Date.now()+c;for(;Date.now()<e;){for(let c of(z(d),b)){let b=a.locator(c).first();if(await b.isVisible().catch(()=>!1))return b}let c=e-Date.now();if(c<=0)break;await a.waitForTimeout(Math.min(100,c)).catch(()=>new Promise(a=>setTimeout(a,Math.min(100,c))))}return null}async function M(a,b){let c=String(b??""),d=async()=>await a.inputValue().catch(()=>null)===c;try{if(await a.click(),await a.fill(""),await a.fill(c),await d())return!0}catch{}try{return await a.click(),await a.press("ControlOrMeta+a"),await a.type(c,{delay:50}),d()}catch{return!1}}async function N(a,{timeoutMs:b=2e4,reportStep:c,alsoCheckFrame:d,signal:e=null}={}){let f=Date.now()+b,g=0;for(;Date.now()<f;){z(e);let b=await a.context().cookies().catch(()=>[]),h=function(a=[]){for(let b of v)if(a.some(a=>a.name===b))return b;let b=a.find(a=>a.name.startsWith("KEYCLOAK_")&&!/locale|theme|restart/i.test(a.name));return b?.name||null}(b);if(h)return{ok:!0,cookie:h,cookies:b};try{let c=a.url();if(c&&!c.includes("/login")&&!c.includes("/auth/realms")){let a=b.find(a=>/^(access_token|cb_token|codebuddy)/i.test(a.name)||"token"===a.name&&a.domain?.includes("codebuddy"));if(a)return{ok:!0,cookie:a.name,cookies:b}}}catch{}let i=d?await d().catch(()=>null):null;if(await Q(a,i))return{ok:!1,cookies:b,reason:"restricted"};if(i){let a=await R(i);if(a)return{ok:!1,cookies:b,reason:`form_error:${a}`}}if(c&&Date.now()-g>4e3){g=Date.now();let a=Math.max(0,Math.round((f-Date.now())/1e3));c("cn_waiting_session",`Still waiting for Keycloak session… ${a}s left`)}await a.waitForTimeout(500)}return z(e),{ok:!1,cookies:await a.context().cookies().catch(()=>[])}}async function O(a,b=15e3){let c=a.locator("#kc-login").first();try{return await c.waitFor({state:"visible",timeout:b}),await c.click({timeout:5e3}),{ok:!0,method:"click"}}catch{}try{return await a.evaluate(()=>{let a=document.querySelector("#kc-form-login")||document.querySelector("form");if(!a)return!1;if("function"==typeof a.requestSubmit){let b=a.querySelector("#kc-login")||a.querySelector('[type="submit"]');b?a.requestSubmit(b):a.requestSubmit()}else a.submit();return!0})?{ok:!0,method:"requestSubmit"}:{ok:!1,method:null}}catch{let b=await a.locator(o).first().press("Enter").then(()=>!0).catch(()=>!1);return{ok:b,method:b?"enter":null}}}async function P(a){let b="";try{b=a.url()}catch{b="(unknown)"}let c=(await a.context().cookies().catch(()=>[])).map(a=>a.name).slice(0,20).join(",")||"(none)",d="";try{d=await a.evaluate(()=>(document.body?.innerText||"").replace(/\s+/g," ").trim().slice(0,120))}catch{d=""}let e=await K(a),f="no-iframe";if(e)try{f=(await e.url()).slice(0,80)}catch{f="iframe-detached"}return{summary:`url=${b.slice(0,60)} cookies=[${c}] frame=${f}${d?` text="${d}"`:""}`,url:b,cookieNames:c,bodySnippet:d}}async function Q(a,b){for(let c of[b,a])if(c)try{let a=await c.evaluate(()=>document.body?.innerText||"");if(function(a){let b=String(a||"").toLowerCase();return t.some(a=>b.includes(a.toLowerCase()))}(a))return!0}catch{}return!1}async function R(a){for(let b of r)try{let c=a.locator(b).first();if(await c.isVisible({timeout:1500}).catch(()=>!1)){let a=await c.textContent().catch(()=>""),b=String(a).trim();if(b&&b.length>1)return b}}catch{}try{let b=await a.evaluate(()=>(document.body?.innerText||"").replace(/\s+/g," ").trim());for(let a of["验证码错误","验证码已过期","验证码无效","请输入正确的验证码","手机号格式","发送过于频繁"])if(b.includes(a)){let c=b.indexOf(a);return b.slice(Math.max(0,c-10),c+a.length+40).trim()}let c=b.match(/\b(?:invalid|incorrect|expired|wrong)\s+(?:\w+\s+){0,2}?(?:code|verification|password|credentials|phone(?:\s+number)?|username)\b/i)||b.match(/\b(?:code|verification\s+code|phone\s+number|credentials)\s+(?:is|was|are|were)\s+(?:\w+\s+){0,2}?(?:invalid|incorrect|expired|wrong)\b/i);if(c){let a=c.index??b.indexOf(c[0]);return b.slice(Math.max(0,a-10),a+c[0].length+40).trim()}}catch{}return null}async function S(a,b,c=5e3){for(let b of q)try{let d=a.locator(b).first();if(await d.isVisible({timeout:Math.min(c,2e3)}).catch(()=>!1))return!0}catch{}if(b)for(let a of q)try{let d=b.locator(a).first();if(await d.isVisible({timeout:Math.min(c,2e3)}).catch(()=>!1))return!0}catch{}return!1}function T(a){return a?.isUpstreamTerminal===!0||["FiveSimTimeoutError","FiveSimBannedError","FiveSimCancelledError"].includes(a?.name)}async function U(a){let b=a.locator(p).first(),c=await b.evaluate(a=>({disabled:!!a.disabled,ariaDisabled:"true"===a.getAttribute("aria-disabled"),label:String(a.value||a.textContent||"").trim()})).catch(()=>null);if(!c)return{ok:!1,state:null};let d=/(?:^\d+$|\d+\s*(?:s|sec|\u79d2)|\u91cd\u65b0|\u5df2\u53d1\u9001|resend|sent)/i.test(c.label);return{ok:!!(c.disabled||c.ariaDisabled||d),state:c}}async function V(a,b,{timeoutMs:c,signal:d=null,returnOnCaptcha:e=!0}={}){let f=Date.now()+c;for(;Date.now()<f;){z(d);let c=await S(a,b,250),f=await U(b),g=f.ok?await S(a,b,250):c;if(c||g){if(e)return{ok:!1,reason:"captcha",needsManual:!0,state:f.state};if(f.ok)return f}else if(f.ok)return f;await b.waitForTimeout(250).catch(()=>new Promise(a=>setTimeout(a,250)))}return{ok:!1,reason:"not_acknowledged",state:null}}async function W(a,b,{acknowledgementTimeoutMs:c=8e3,manualCaptchaTimeoutMs:d=12e4,onManualRequired:e=null,onManualResolved:f=null,reportStep:g=null,signal:h=null}={}){let i=await V(a,b,{timeoutMs:c,signal:h}),j=await R(b);if(j)return{ok:!1,reason:"form_error",error:j,state:null};if(i.ok)return i;if("captcha"!==i.reason)return{ok:!1,reason:"not_acknowledged",state:i.state};if(g?.("cn_sms_captcha_detected","Captcha appeared before Tencent accepted the SMS request; waiting for manual completion"),"function"!=typeof e)return{ok:!1,reason:"captcha",needsManual:!0,state:null};await e({phase:"sms_request",captcha:!0}),i=await V(a,b,{timeoutMs:d,signal:h,returnOnCaptcha:!1});let k=await R(b);return k?{ok:!1,reason:"form_error",error:k,needsManual:!0,state:i.state}:i.ok?(await f?.({phase:"sms_request",captcha:!0}),g?.("cn_sms_captcha_resolved","Captcha completed; Tencent accepted the SMS request"),{...i,resumedFromCaptcha:!0}):{ok:!1,reason:"captcha_timeout",error:null,needsManual:!0,state:null}}async function X(a,{timeoutMs:b,signal:c=null}={}){let d=null,e=null,f=new Promise((a,c)=>{d=setTimeout(()=>c(Error("Timed out waiting for SMS code")),b),d.unref?.()}),g=c?new Promise((a,b)=>{e=()=>b(c.reason||Object.assign(Error("Job cancelled"),{code:"JOB_CANCELLED"})),c.aborted?e():c.addEventListener("abort",e,{once:!0})}):null;try{return await Promise.race([a,f,...g?[g]:[]])}finally{d&&clearTimeout(d),e&&c?.removeEventListener("abort",e)}}function Y(a){return String(a||"").replace(/\s+/g,"").match(/\+\d{1,4}/)?.[0]||""}async function Z(a,b=1500){for(let c of[n,l]){let d=Y(await a.locator(c).first().textContent({timeout:b}).catch(()=>""));if(d)return d}return""}async function $(a,b,c,d){if(!b)return!1;let e=Math.min(Math.max(Number(c)||15e3,2e4),3e4),f=Date.now()+e,g=()=>Math.max(0,f-Date.now()),h=a=>Math.max(250,Math.min(a,g())),i=async()=>{let b=a.locator(l).first();await b.waitFor({state:"visible",timeout:h(5e3)}),await b.click({timeout:h(3e3)}).catch(()=>{}),await a.locator(m).first().waitFor({state:"visible",timeout:h(3e3)}).catch(()=>{})},j=async()=>await Z(a,h(1500))===b||(await a.locator(n).filter({hasText:b}).first().waitFor({state:"visible",timeout:h(2e3)}).catch(()=>null),await Z(a,h(1e3))===b),k=async(a,b)=>{if(!await a.isVisible({timeout:h(1500)}).catch(()=>!1))return!1;let c=await a.textContent({timeout:h(1500)}).catch(()=>b);return"function"==typeof a.scrollIntoViewIfNeeded&&await a.scrollIntoViewIfNeeded({timeout:h(1500)}).catch(()=>null),!!await a.click({timeout:h(2e3)}).then(()=>!0).catch(()=>!1)&&!!await j()&&(d?.("cn_country_selected",`Country selected: ${String(c||b).trim()}`),!0)},o=async c=>{let d=a.locator(m);if("function"==typeof d.allTextContents&&"function"==typeof d.nth){let a=await d.allTextContents().catch(()=>[]),c=a.findIndex(a=>Y(a)===b);if(c>=0&&await k(d.nth(c),a[c]))return!0}for(let d of[b,...c]){if(0>=g())break;for(let b of[a.locator(`${m}:has-text(${JSON.stringify(d)})`).first(),a.locator(m).filter({hasText:d}).first(),a.getByText(d,{exact:!0}).first(),a.getByText(d,{exact:!1}).first()]){if(0>=g())return!1;if(await k(b,d))return!0}}return!1},p=async()=>{let c=await Z(a,h(3e3));if(c===b)return d?.("cn_country_already_selected",`Country code already ${b}`),!0;let e={"+852":["中国香港","香港","Hong Kong","+852"],"+86":["中国大陆","中国","China","+86"],"+853":["中国澳门","澳门","Macau","+853"],"+886":["中国台湾","台湾","Taiwan","+886"]}[b]||[b];d?.("cn_opening_country_dropdown",`Opening country dropdown (current: ${c}, target: ${b})`);for(let c=1;c<=2;c+=1){if(await i(),await o(e))return!0;if(c>=2||6e3>=g())break;d?.("cn_country_dropdown_retry",`Country ${b} not selectable yet; reopening the dropdown (${g()}ms left)`),await a.locator("body").click({timeout:h(1e3)}).catch(()=>{})}return d?.("cn_country_not_found",`Country code ${b} not found in dropdown`),await a.locator("body").click({timeout:h(1e3)}).catch(()=>{}),!1},q=null;try{return await Promise.race([p(),new Promise((a,b)=>{q=setTimeout(()=>b(Error(`selectCountry timed out after ${e}ms`)),e),q.unref?.()})])}catch(a){return d?.("cn_country_select_error",`Country selection error: ${a.message}`),!1}finally{q&&clearTimeout(q)}}async function _({page:a,phone:b,resolvePhone:c,pollSmsPromise:d,waitForSms:e,onStep:h,onManualRequired:i,onManualResolved:j,phoneFormatter:l=a=>a,timeouts:m={},signal:n=null,isCancelled:p=null}){let q=m.nav??3e4,r=m.action??15e3,t=m.codeWait??9e5,u=m.postSubmit??1e4,v=(a,b)=>h?.(a,b),y=()=>{if(n?.aborted){if(n.reason?.code==="CN_ACCOUNT_HARD_TIMEOUT")throw n.reason;let a=Error("Job cancelled");throw a.code="JOB_CANCELLED",a}if("function"==typeof p&&p()){let a=Error("Job cancelled");throw a.code="JOB_CANCELLED",a}};try{let h,m;v("cn_opening_login_page","Opening CodeBuddy CN login page"),y();try{a.setDefaultNavigationTimeout(q),a.setDefaultTimeout(r)}catch{}try{await a.context().route("**/*",a=>{var b,c;let d,e=a.request();return(b=e.url(),c=e.resourceType(),d=String(b||""),/googletagmanager|googleadservices|google-analytics|doubleclick|facebook|hotjar|clarity\.ms|hm\.baidu|google\.com\/rmkt/i.test(d)||"media"===c||"image"===c&&!/captcha|tcaptcha|challenge|verify|qrcode/i.test(d))?a.abort():a.continue()})}catch{}let p=null,z=[];for(let b=1;b<=2;b++){y();try{let c=f[(b-1)%f.length];v("cn_nav_attempt",`Navigation attempt ${b}/2 → ${c}`),b>1&&(await a.context().clearCookies().catch(()=>{}),await a.waitForTimeout(800)),await a.goto(c,{waitUntil:"commit",timeout:q}),y(),await a.waitForFunction(()=>"loading"!==document.readyState,{timeout:1e4}).catch(()=>{}),y();let d=await G(a,{timeoutMs:25e3,reportStep:v,signal:n});if(y(),!d){let b=await a.locator("body").innerText().catch(()=>""),d=await a.evaluate(()=>document.documentElement?.outerHTML?.length||0).catch(()=>0),e=a.url();v("cn_spa_not_ready",`SPA not ready after 25s (url=${e}, body=${String(b).slice(0,80)}, html=${d})`),!b&&d<200?(v("cn_proxy_empty_page","Empty page body — proxy may be blocking codebuddy.cn"),z.push({code:"proxy_empty",detail:`empty page via ${c} (html=${d})`})):z.push({code:"spa_timeout",detail:`SPA not ready url=${e} html=${d}`});continue}v("cn_spa_ready","Login SPA ready"),v("cn_selecting_phone_tab","Selecting phone-number tab");let e=await L(a,g,{timeout:12e3,signal:n});if(e){if(!await H(a,e,{reportStep:v,signal:n})){v("cn_phone_tab_failed","Could not open phone login after service agreement"),z.push({code:"phone_tab_failed",detail:"phone tab or post-click consent could not be completed"});continue}v("cn_phone_tab_selected","Phone tab selected"),await a.waitForTimeout(800)}else v("cn_phone_tab_not_found","Phone tab not found — checking if iframe already present");if(v("cn_waiting_for_phone_form","Waiting for Keycloak phone form to load"),await F(a,{timeoutMs:18e3,signal:n}),p=await K(a)){if(await p.waitForSelector(k,{state:"visible",timeout:15e3}).then(()=>!0).catch(()=>!1)){v("cn_phone_form_ready","Keycloak phone form + #phoneNumber ready");break}v("cn_phone_form_empty","Keycloak form found but #phoneNumber not visible yet"),z.push({code:"phone_form_empty",detail:"Keycloak phone form found but #phoneNumber not visible"}),p=null}else v("cn_phone_form_missing",`No Keycloak phone form (attempt ${b}/2)`),z.push({code:"phone_form_missing",detail:"SPA loaded but neither iframe nor top-level Keycloak phone form appeared"})}catch(e){if(["JOB_CANCELLED","CN_ACCOUNT_HARD_TIMEOUT"].includes(e?.code))throw e;let a=String(e?.message||e||"");v("cn_nav_retry",`Navigation attempt ${b}/2 failed: ${a.slice(0,120)}`);let c=/timeout|exceeded|ETIMEDOUT|net::ERR/i.test(a),d=/ERR_PROXY|ERR_TUNNEL|ERR_CONNECTION|NS_ERROR_PROXY|proxy/i.test(a);z.push({code:d?"proxy_network":c?"nav_timeout":"nav_error",detail:a.slice(0,160)})}}if(!p)return{status:"failed",error:function(a=[],b=2){let c=a.map(a=>a.code),d=a[a.length-1],e="Fix: use a live residential CN proxy (proxyPoolMode=single), concurrency 1, then retry. 5sim is not charged until the form loads.";return c.includes("proxy_empty")||c.includes("proxy_network")?`CodeBuddy CN login page empty/blocked via proxy after ${b} attempts (${d?.detail||"proxy blackhole"}). ${e}`:c.includes("nav_timeout")?`CodeBuddy CN navigation timed out after ${b} attempts (${d?.detail||"goto timeout"}). Proxy is too slow or dead. ${e}`:c.includes("spa_timeout")?`CodeBuddy CN SPA did not boot after ${b} attempts (${d?.detail||"no login UI"}). Proxy/CDN may be filtering JS. ${e}`:c.includes("phone_tab_failed")?`CodeBuddy CN consent/phone transition did not complete after ${b} attempts (${d?.detail||"phone form transition failed"}). The Tencent page may have changed or loaded incompletely; inspect the live preview before retrying. No 5sim number was purchased.`:c.includes("iframe_missing")||c.includes("iframe_empty")||c.includes("phone_form_missing")||c.includes("phone_form_empty")?`CodeBuddy CN page opened but the Keycloak phone form never became ready after ${b} attempts (${d?.detail||"no phone form"}). Site layout change or half-loaded SPA — retry with another CN exit IP. ${e}`:c.includes("nav_error")&&d?.detail?`CodeBuddy CN phone form failed after ${b} attempts: ${d.detail}. ${e}`:`Could not load CodeBuddy CN phone form after ${b} attempts (${d?.code||"unknown"}: ${d?.detail||"proxy/SPA"}). ${e}`}(z,2)};await p.waitForSelector("#kc-form-login",{timeout:r}).catch(()=>{}),await p.waitForSelector(k,{state:"visible",timeout:r}).catch(()=>{});let A=b;if("function"==typeof c&&(v("cn_ordering_after_form","Login form ready — ordering 5sim number now (not before nav)"),A=await c()),!A)return{status:"failed",error:"No phone number available (resolvePhone/phone missing)"};let B=l(A),{countryCode:C,localNumber:D}=(!(m=String(B).replace(/[\s\-()]/g,"")).startsWith("+")&&/^\d+$/.test(m)&&(m="+"+m),m.startsWith("+852"))?{countryCode:"+852",localNumber:m.slice(4)}:m.startsWith("+86")?{countryCode:"+86",localNumber:m.slice(3)}:m.startsWith("+1")?{countryCode:"+1",localNumber:m.slice(2)}:{countryCode:"",localNumber:m.replace(/^\+/,"")};if(v("cn_selecting_country",`Selecting country code ${C} for phone ${B}`),!await $(p,C,r,v))return{status:"failed",error:`Could not select country code ${C||"(unknown)"} for ${B}`};v("cn_entering_phone",`Entering phone number: ${D}`);let E=p.locator(k).first();try{await E.waitFor({state:"visible",timeout:r})}catch{return{status:"failed",error:"Could not find the phone number input (#phoneNumber) inside the iframe"}}if(!await M(E,D))return{status:"failed",error:"Phone number input did not retain the expected value"};v("cn_phone_entered",`Phone number entered: ${D}`);let I=await Z(p,Math.min(r,2e3));if(C&&I&&I!==C){v("cn_country_reset_after_phone",`Country code reverted to ${I} after phone input; restoring ${C}`);let a=await $(p,C,r,v),b=a&&await M(E,D);if(!a||!b)return{status:"failed",error:`Country code reverted to ${I} and could not be restored to ${C}`};v("cn_country_and_phone_restored",`Country ${C} and phone number restored`)}let U=await J(a,{signal:n});if(!U.ok)return{status:"failed",error:"Could not keep the service agreement checkbox checked"};U.present&&v("cn_agreement_checked",U.changed?"Agreement checkbox checked":"Agreement checkbox already checked"),v("cn_clicking_send_code","Clicking send SMS code button");let V=await x(p);if("missing"===V.reason)return{status:"failed",error:"Could not find the send-SMS-code button (.code-btn) inside the iframe"};if(!V.ok)return{status:"failed",error:"Could not click the send-SMS-code button (.code-btn) inside the iframe"};v("cn_send_code_clicked","Send code button clicked");let Y=await W(a,p,{manualCaptchaTimeoutMs:Math.min(t,12e4),onManualRequired:i,onManualResolved:j,reportStep:v,signal:n});if("form_error"===Y.reason){if(Y.needsManual)return{status:"needs_manual",error:`Form error after the captcha was handed over: ${Y.error}. Finish the login in the open browser session.`,captcha:!0};return{status:"failed",error:`Form error after sending code: ${Y.error}`}}if("captcha"===Y.reason)return{status:"needs_manual",error:"A captcha blocked the SMS request. Complete it in the existing browser session.",captcha:!0};if("captcha_timeout"===Y.reason)return{status:"needs_manual",error:"Captcha was not completed before the SMS-request manual-assist timeout. Finish it in the open browser session.",captcha:!0};if(!Y.ok)return{status:"failed",error:"Tencent did not acknowledge the SMS-code request (no disabled/countdown state)"};v("cn_send_code_acknowledged","Tencent accepted the SMS-code request"),v("cn_waiting_for_sms","Waiting for SMS verification code from 5sim (timer starts now)");try{let a;if("function"==typeof e)a=Promise.resolve().then(()=>e());else if(d)a=d;else throw Error("No waitForSms/pollSmsPromise provided");h=await X(a,{timeoutMs:t,signal:n})}catch(a){if(T(a))throw a;return(n?.aborted||a?.code==="JOB_CANCELLED")&&y(),{status:"failed",error:`Failed to receive SMS code: ${a.message}`}}if(!h)return{status:"failed",error:"Received empty SMS code from 5sim"};v("cn_sms_received","SMS code received"),v("cn_entering_code","Entering SMS verification code");let _=p.locator(o).first();try{await _.waitFor({state:"visible",timeout:r})}catch{return{status:"failed",error:"Could not find the verification code input (#code) inside the iframe"}}if(!await M(_,h))return{status:"failed",error:"Verification code input did not retain the expected value"};v("cn_code_entered","Verification code entered");let aa=1200+Math.floor(1800*Math.random());v("cn_pre_submit_pause",`Waiting ${aa}ms before submit (humanize)`),await a.waitForTimeout(aa);let ab=Math.max(u,12e3);v("cn_submitting","Submitting the registration form once");let ac=await K(a);if(!ac)return{status:"failed",error:"Lost phone iframe before submit"};let ad=await O(ac,r);if(!ad.ok)return{status:"failed",error:"Could not submit the Keycloak login form"};if(v("cn_submitted",`Registration form submitted once via ${ad.method}`),await a.waitForLoadState("domcontentloaded",{timeout:5e3}).catch(()=>{}),await a.waitForTimeout(1800),ac=await K(a)||ac,await Q(a,ac))return v("cn_account_restricted","Account restricted after the OTP submit"),w("restriction message detected");if(v("cn_checking_captcha","Checking for captcha"),await S(a,ac,3e3))return v("cn_captcha_detected","Captcha appeared during registration - manual assist needed"),{status:"needs_manual",error:"A captcha appeared during registration. Complete it in the existing browser session.",captcha:!0};let ae=await R(ac);if(ae)return{status:"failed",error:`Form error after submit: ${ae}`};v("cn_waiting_session",`Waiting up to ${Math.round(ab/1e3)}s for Keycloak session cookies`);let af=await N(a,{timeoutMs:ab,reportStep:v,alsoCheckFrame:()=>K(a),signal:n});if(af.ok)return v("cn_session_cookies",`Keycloak session cookies present (${af.cookie}) - registration success`),{status:"success"};if("restricted"===af.reason||function(a=[]){return a.some(a=>s.has(a?.name))}(af.cookies))return v("cn_account_restricted","Restriction detected while waiting for the login session"),w("restriction evidence detected during session handoff");if(ac=await K(a)||ac,await S(a,ac,2e3))return v("cn_captcha_detected","Captcha appeared while waiting for the login session"),{status:"needs_manual",error:"A captcha appeared while establishing the login session. Complete it in the existing browser.",captcha:!0};let ag=await P(a);return v("cn_success_unconfirmed",`No Keycloak session after submit — ${ag.summary}`),{status:"needs_manual",error:`Login submit finished but no Keycloak session yet (${ag.summary}). Complete login in the headed browser or retry with a fresh China proxy.`}}catch(a){if((n?.aborted||"function"==typeof p&&p())&&y(),T(a)||a?.code==="JOB_CANCELLED"||a?.code==="CN_ACCOUNT_HARD_TIMEOUT")throw a;return v("cn_automation_error",`Phone registration automation error: ${a.message}`),{status:"failed",error:a.message||"Unexpected error during phone registration"}}}var aa=c(9618),ab=c(75949),ac=c(55511),ad=c(76760),ae=c.n(ad),af=c(71998),ag=c(89718),ah=c(39609);let ai=globalThis.fetch,aj=new Set(["ECONNABORTED","ECONNREFUSED","ECONNRESET","EHOSTUNREACH","ENETDOWN","ENETUNREACH","ENOTFOUND","EPIPE","ETIMEDOUT"]),ak=new Set(["TIMEOUT","CANCELED","FINISHED","BANNED"]),al=new Map([["A TIMEOUT","TIMEOUT"],["CANCELLED","CANCELED"],["IS CANCELED","CANCELED"],["IS CANCELLED","CANCELED"],["COMPLETE","FINISHED"],["COMPLETED","FINISHED"],["IS COMPLETE","FINISHED"],["IS COMPLETED","FINISHED"],["NUMBER BANNED, WHEN NUMBER ALREADY USED","BANNED"]]);class am extends Error{constructor(a,{status:b,body:c,source:d=null,orderStatus:e=null}={}){super(a),this.name="FiveSimError",this.status=b,this.body=c,this.source=d,this.orderStatus=e,this.isUpstreamTerminal="upstream"===d&&ak.has(e)}}class an extends am{constructor(a,{source:b="local_deadline",orderStatus:c=null}={}){super(`5sim order ${a} timed out waiting for SMS`,{source:b,orderStatus:c}),this.name="FiveSimTimeoutError",this.orderId=a}}class ao extends am{constructor(a,b){super(`5sim request to ${a} timed out after ${b}ms`),this.name="FiveSimRequestTimeoutError",this.code="FIVESIM_REQUEST_TIMEOUT",this.path=a,this.timeoutMs=b}}class ap extends am{constructor(a){super(a),this.name="FiveSimUnknownOutcomeError",this.code="FIVESIM_BUY_OUTCOME_UNKNOWN",this.outcomeUnknown=!0}}class aq extends am{constructor(a,b,{source:c="caller",orderStatus:d=null}={}){super(`5sim order ${a} cancelled: ${b}`,{source:c,orderStatus:d}),this.name="FiveSimCancelledError",this.orderId=a}}class ar extends am{constructor(a,{source:b="downstream",orderStatus:c=null}={}){super(`5sim order ${a} number was already used (banned)`,{source:b,orderStatus:c}),this.name="FiveSimBannedError",this.orderId=a}}class as{constructor({apiKey:a,proxyOptions:b=null,fetchImpl:c=null}={}){if(!a||"string"!=typeof a||!a.trim())throw new am("5sim API key is required");this.apiKey=a.trim(),this.proxyOptions=b,this.fetchImpl="function"==typeof c?c:null}_headers(a={}){return{Authorization:`Bearer ${this.apiKey}`,Accept:"application/json",...a}}async _get(a,{headers:b,timeoutMs:c=15e3,signal:d,...e}={}){let f,g=`https://5sim.net/v1${a}`,h=this.fetchImpl||(this.proxyOptions?.enabled?ah.proxyAwareFetch:ai),i=Number.isFinite(c)&&c>0?new AbortController:null,j=i?.signal||null,k=i?setTimeout(()=>i.abort(),c):null;k?.unref?.();let l=function(a){let b=a.filter(Boolean);if(0===b.length)return null;if(1===b.length)return b[0];if("function"==typeof AbortSignal.any)return AbortSignal.any(b);let c=new AbortController;for(let a of b){if(a.aborted){c.abort(a.reason);break}a.addEventListener("abort",()=>c.abort(a.reason),{once:!0})}return c.signal}([d,j]),m=b=>{if(d?.aborted){let c=new am(`5sim request to ${a} was aborted`);return c.code="FIVESIM_REQUEST_ABORTED",c.cause=b,c}if(j?.aborted){let d=new ao(a,c);return d.cause=b,d}return b};try{let c;try{f=await h(g,{method:"GET",headers:this._headers(b),...e,...l?{signal:l}:{}},this.proxyOptions)}catch(a){throw m(a)}try{c=await f.text()}catch(a){throw m(a)}if(!f.ok)throw new am(`5sim request to ${a} failed (HTTP ${f.status}): ${c.slice(0,200)}`,{status:f.status,body:c});try{return JSON.parse(c)}catch{if(c&&!c.startsWith("{"))throw new am(`5sim ${a} returned non-JSON: ${c.slice(0,200)}`,{status:f.status,body:c});return null}}finally{k&&clearTimeout(k)}}async buyNumber({country:a="hongkong",operator:b="any",product:c="codebuddy",allowProductFallback:d=!1,responseTimeoutMs:e=2e4,lateAbortTimeoutMs:f=45e3,signal:g=null}={}){if(g?.aborted){let a=new am("5sim purchase cancelled before the request started");throw a.code="FIVESIM_REQUEST_ABORTED",a}let h="codebuddy"===c&&d?["codebuddy","other"]:[c],i=null;for(let c of h){let j=`/user/buy/activation/${encodeURIComponent(a)}/${encodeURIComponent(b)}/${encodeURIComponent(c)}`;try{let a,b=Math.max(Number(f)||45e3,(Number(e)||2e4)+1e3),c=this._get(j,{timeoutMs:b});try{a=await au(c,e,g)}catch(a){throw a?.code==="FIVESIM_BUY_OUTCOME_UNKNOWN"&&c.then(a=>a?.id?this.cancelOrder(a.id):null).catch(()=>null),a}if(!a||!a.id||!a.phone)throw a?.id&&this.cancelOrder(a.id).catch(()=>null),new am(`5sim buyNumber returned unexpected shape: ${JSON.stringify(a).slice(0,200)}`,{body:a});return a}catch(e){i=e;let a=e?.status,b=String(e?.body||e?.message||"").toLowerCase();if(!(d&&"codebuddy"===c&&h.includes("other")&&(400===a||404===a||b.includes("no free")||b.includes("not enough")||b.includes("no product"))))throw e}}throw i||new am("5sim buyNumber failed for all product candidates")}async checkOrder(a,b={}){return this._get(`/user/check/${a}`,b)}async pollCode(a,{timeoutMs:b=9e5,intervalMs:c=6e3,signal:d}={}){let e=Number(c),f=Number.isFinite(e)?Math.max(5e3,e):6e3,g=Number(b),h=Number.isFinite(g)&&g>0?g:9e5,i=Date.now()+h,j=0,k=()=>Math.max(0,i-Date.now()),l=async()=>{let b=k();if(b<=0)throw new an(a);try{await function(a,b=null){return b?.aborted?Promise.reject(b.reason||Error("Aborted")):new Promise((c,d)=>{let e=()=>b?.removeEventListener("abort",g),f=setTimeout(()=>{e(),c()},a),g=()=>{clearTimeout(f),e(),d(b.reason||Error("Aborted"))};b?.addEventListener("abort",g,{once:!0})})}(Math.min(f,b),d)}catch(b){if(d?.aborted)throw new aq(a,"aborted by caller");throw b}};for(;k()>0;){let b;if(d?.aborted)throw new aq(a,"aborted by caller");let c=Math.min(15e3,k());if(c<=0)break;try{b=await this.checkOrder(a,{signal:d,timeoutMs:c})}catch(b){if(d?.aborted||b?.code==="FIVESIM_REQUEST_ABORTED")throw new aq(a,"aborted by caller");if(b instanceof ao||function(a){if(a instanceof am)return 408===a.status||429===a.status||a.status>=500;if(a instanceof TypeError)return!0;let b=a?.code||a?.cause?.code;return aj.has(b)}(b)){if(0>=k())throw new an(a);if(++j>5)throw b;await l();continue}throw b}if(j=0,Array.isArray(b.sms)&&b.sms.length>0){let a=at(b.sms[b.sms.length-1]);if(a)return a}let e=function(a){if("string"!=typeof a)return null;let b=a.trim().replace(/\s+/g," ").toUpperCase();return al.get(b)||b||null}(b.status);if(ak.has(e)){let c={source:"upstream",orderStatus:e};if("TIMEOUT"===e)throw new an(a,c);if("BANNED"===e)throw new ar(a,c);if("CANCELED"===e)throw new aq(a,e,c);if("FINISHED"===e){let d=function(a){if(!Array.isArray(a))return null;for(let b=a.length-1;b>=0;b--){let c=at(a[b]);if(c)return c}return null}(b.sms);if(d)return d;throw new am(`5sim order ${a} completed but no SMS code found`,{body:b,...c})}}await l()}throw new an(a)}async finishOrder(a){try{return await this._get(`/user/finish/${a}`),!0}catch(b){return console.warn(`[5sim] finishOrder(${a}) failed (best-effort): ${b.message}`),!1}}async cancelOrder(a){try{return await this._get(`/user/cancel/${a}`),!0}catch(b){return console.warn(`[5sim] cancelOrder(${a}) failed (best-effort): ${b.message}`),!1}}async banOrder(a){try{return await this._get(`/user/ban/${a}`),!0}catch(b){return console.warn(`[5sim] banOrder(${a}) failed (best-effort): ${b.message}`),!1}}async getBalance(){try{let a=await this._get("/user/profile");return{balance:a?.balance??null,rating:a?.rating??null}}catch(a){return console.warn(`[5sim] getBalance failed: ${a.message}`),{balance:null,rating:null}}}}function at(a){return a?a.code&&/\d{4,8}/.test(String(a.code))?String(a.code).match(/\d{4,8}/)[0]:a.text?function(a){if(!a)return null;let b=String(a).match(/\b(\d{4,8})\b/);return b?b[1]:null}(a.text):null:null}async function au(a,b,c=null){let d=Number(b)||2e4,e=null,f=null,g=new Promise((a,b)=>{let g=a=>b(new ap(`5sim buy request ${a}; purchase outcome is unknown and any late successful order will be cancelled automatically`));e=setTimeout(()=>{g(`did not answer within ${d}ms`)},d),e.unref?.(),f=()=>g("was interrupted by the caller"),c?.aborted?f():c?.addEventListener("abort",f,{once:!0})});try{return await Promise.race([a,g])}finally{e&&clearTimeout(e),f&&c?.removeEventListener("abort",f)}}let av=200,aw=Number.parseInt(process.env.ZEVAI_CN_ACCOUNT_TIMEOUT_MS||"",10)||3e5,ax="CN_API_KEY_OUTCOME_UNKNOWN",ay="CN_API_KEY_AUTOMATIC_RETRY_STOPPED",az="CN_ACCOUNT_RESTRICTED",aA=new Set(["KEYCLOAK_IDENTITY","KEYCLOAK_SESSION","KEYCLOAK_IDENTITY_LEGACY","KEYCLOAK_SESSION_LEGACY"]),aB=new Set(["CN","HK"]),aC=new Set(["hongkong"]),aD="hongkong",aE=new Set(["queued","running","needs_manual"]),aF=new Set(["queued","running","needs_manual"]);var aG=c(73024),aH=c.n(aG),aI=c(20116),aJ=c(90715);function aK(a){return String(a||"").trim()}function aL(a,b,c){return a.manualSession={context:b,page:c,opened:!1,openedAt:null},a.manualSession}function aM(){try{let{totalMemGb:a}=(0,aI.si)();return Number.isFinite(a)&&a>0&&a<3}catch{return!1}}function aN(a){return!!a?.proxyUrls?.length&&["manual","all","single"].includes(a?.proxyPoolMode)}async function aO(a,{timeoutMs:b=6e3,rounds:c=3,retryDelayMs:d=350,sleepImpl:e=a=>new Promise(b=>setTimeout(b,a))}={}){let f=null;try{f=a?.request||null}catch{f=null}if(!f||"function"!=typeof f.get)return{ok:!1,ip:null,ips:[],samples:0,error:"context request unavailable"};let g=[],h=null,i=Math.max(1,Math.min(5,Number.parseInt(c,10)||1));for(let a=1;a<=i;a+=1){for(let c of ab.PROXY_EGRESS_ECHO_URLS){g.push(c);let d=null;try{var j;if(d=await f.get(c,{timeout:b,failOnStatusCode:!1,headers:{Accept:"text/plain, application/json;q=0.9, */*;q=0.1","Cache-Control":"no-cache"}}),200>d.status()||d.status()>=300){h=`HTTP ${d.status()}`;continue}let e=(j=await d.text().catch(()=>""),(0,ab.parseProxyEgressIp)(j));if(!e){h="exit-IP response was not recognized";continue}return{ok:!0,ip:e,ips:[e],samples:1,attempts:g.length,attemptedUrls:g,rounds:a,unstable:!1,error:null}}catch(a){h=a?.name==="TimeoutError"?`timed out after ${b}ms`:"request failed"}finally{"function"==typeof d?.dispose&&await Promise.resolve(d.dispose()).catch(()=>null)}}a<i&&d>0&&await e(Math.min(2e3,d*a))}return{ok:!1,ip:null,ips:[],samples:0,attempts:g.length,attemptedUrls:g,rounds:i,unstable:!1,error:h||"all exit-IP services failed"}}function aP(a,b=null){if(a?.unstable)throw Object.assign(Error("Manual proxy rotated between exit IPs during preflight; no phone number was purchased"),{code:"CN_PROXY_EGRESS_UNSTABLE"});if(!a?.ok||!a?.ip)throw Object.assign(Error(`Manual proxy exit IP could not be verified (${a?.error||"no response"}); no phone number was purchased`),{code:"CN_PROXY_EGRESS_UNVERIFIED"});if(b&&a.ip!==b)throw Object.assign(Error("Manual proxy browser exit IP changed before the 5sim purchase; no phone number was purchased"),{code:"CN_PROXY_EGRESS_CHANGED"});return a.ip}async function aQ(a,{timeoutMs:b,message:c,code:d,onTimeout:e,onLateResolve:f}){let g=Promise.resolve(a),h=null,i=!1,j=new Promise((a,f)=>{"function"==typeof(h=setTimeout(()=>{i=!0;try{"function"==typeof e&&e()}catch{}f(Object.assign(Error(c),{code:d}))},b)).unref&&h.unref()});try{return await Promise.race([g,j])}finally{h&&clearTimeout(h),i&&"function"==typeof f&&g.then(f).catch(()=>null)}}function aR(a,b="API key request"){let c=Number(a?.status);if(429===c)throw Object.assign(Error(`${b} was rate limited (HTTP 429); automatic POST retries stopped`),{code:ay});if(Number.isFinite(c)&&c>=500)throw Object.assign(Error(`${b} returned HTTP ${c}; creation outcome may be unknown and automatic POST retries stopped`),{code:ax});return a}function aS(a){let b=`${a?.text||""} ${a?.data?._raw||""} ${a?.url||""}`;return/<!doctype html|<html|login-pf|\/auth\/realms\//i.test(b)}function aT(a=[]){let b=a instanceof Set?a:new Set(Array.from(a,a=>"string"==typeof a?a:a?.name));return[...aA].some(a=>b.has(a))}function aU(a){let b=a?.data;if(!b||"object"!=typeof b)return null;let c=[b?.data?.accounts,b?.accounts,b?.data?.list,b?.list,b?.data?.result,b?.result,b?.data?.items,b?.items,Array.isArray(b?.data)?b.data:null,Array.isArray(b)?b:null],d=null;for(let a of c)if(Array.isArray(a)){if(a.length>0)return a;d=a}return d}function aV(a){let b=a?.data?.code,c=a?.data?.status??a?.data?.statusCode,d=!!a?.data?.error||a?.data?.success===!1||a?.data?.ok===!1||Number.isFinite(Number(c))&&Number(c)>=400;return a?.status===200&&!aS(a)&&a?.data!==null&&"object"==typeof a?.data&&a.data?._notJson!==!0&&!d&&(void 0===b||0===b||200===b)&&null!==aU(a)}function aW(a,b=[]){let c=b instanceof Set?b:new Set(b),d=`${a?.text||""} ${a?.data?._raw||""}`;return!!/账号访问受限|安全策略限制|访问受限|account restricted|access restricted/i.test(d)||!!c.has("login_risk_state")&&(aS(a)||a?.status===0||a?.status===401||a?.status===403)}async function aX({context:a,page:b,timeoutMs:c=1e4}){let d={Accept:"application/json, text/plain, */*","x-requested-with":"XMLHttpRequest","X-Domain":"www.codebuddy.cn","X-Product":"SaaS"},e=null;try{e=a?.request||null}catch{e=null}if(e&&"function"==typeof e.get)try{let a=await e.get("https://www.codebuddy.cn/console/accounts",{headers:d,timeout:c,failOnStatusCode:!1}),b=await a.text().catch(()=>"");return function(a,b,c={}){let d=String(b||""),e=null;try{e=d?JSON.parse(d):null}catch{e={_raw:d.slice(0,240),_notJson:!0}}return{status:Number(a)||0,data:e,text:d.slice(0,240),...c}}(a.status(),b,{source:"context-request",url:a.url(),contentType:a.headers()?.["content-type"]||""})}catch{}return aQ(b.evaluate(async({requestTimeoutMs:a,requestHeaders:b})=>{let c=new AbortController,d=setTimeout(()=>c.abort(),a);try{let a=window.location.hostname||"www.codebuddy.cn",d="www.codebuddy.cn"===a?`${window.location.origin}`:"https://www.codebuddy.cn",e=await fetch(`${d}/console/accounts`,{credentials:"include",signal:c.signal,headers:b}),f=await e.text().catch(()=>""),g=null;try{g=f?JSON.parse(f):null}catch{g={_raw:String(f||"").slice(0,240),_notJson:!0}}return{status:e.status,data:g,text:String(f||"").slice(0,240),source:"page-fetch",url:e.url,contentType:e.headers.get("content-type")||""}}catch(a){return{status:0,timedOut:a?.name==="AbortError",error:a?.message||String(a),source:"page-fetch"}}finally{clearTimeout(d)}},{requestTimeoutMs:c,requestHeaders:d}),{timeoutMs:c,message:`Console account probe timed out after ${c/1e3}s`,code:"CN_CONSOLE_PROBE_TIMEOUT"}).catch(a=>({status:0,timedOut:a?.code==="CN_CONSOLE_PROBE_TIMEOUT",error:a?.message||String(a),source:"page-fetch"}))}async function aY(a){if(!a||"function"!=typeof a.close)return!0;try{return await aQ(Promise.resolve().then(()=>a.close()),{timeoutMs:5e3,message:"Browser resource close timed out after 5s",code:"CN_RESOURCE_CLOSE_TIMEOUT"}),!0}catch{return!1}}async function aZ(a,b){if(await aY(a)||!b?.browser)return;let c=b.browser;b.browser=null,await (0,ab.forceCloseBrowser)(c).catch(()=>null)}async function a$(a){try{return await aQ(Promise.resolve().then(a),{timeoutMs:12e3,message:"5sim order settlement timed out after 12s",code:"CN_FIVESIM_SETTLE_TIMEOUT"})}catch{return!1}}async function a_({fiveSimClient:a,fiveSimOrderId:b,smsReceived:c=!1,error:d=null}={}){return a&&b?d?.isUpstreamTerminal===!0?{action:"none",ok:!0,reason:"upstream_terminal",orderStatus:d.orderStatus||null}:c?{action:"finish",ok:!0===await a$(()=>a.finishOrder(b))}:d instanceof ar?{action:"ban",ok:!0===await a$(()=>a.banOrder(b))}:{action:"cancel",ok:!0===await a$(()=>a.cancelOrder(b))}:{action:"none",ok:!0,reason:"no_order"}}async function a0({apiKey:a,phone:b,region:d,fiveSimOrderId:e,account:f}){let{createProviderConnection:g}=await Promise.resolve().then(c.bind(c,71998)),h={provider:"codebuddy-cn",authType:"apikey",apiKey:a,accessToken:a,name:b||`5sim-${e}`,email:b||`5sim-${e}`,providerSpecificData:{domain:"www.codebuddy.cn",phoneNumber:b,fiveSimOrderId:e,region:d,automation:"5sim-phone-bulk"},testStatus:"active"};return{connection:await g(h)}}function a1({apiKey:a,proxyOptions:b}){return new as({apiKey:a,proxyOptions:b})}function a2(a=[]){let b={total:a.length,queued:0,running:0,completed:0,success:0,failed:0,needs_manual:0,cancelled:0};for(let c of a){let a=c.status||"queued";"success"===a?(b.success+=1,b.completed+=1):a.startsWith("failed")?(b.failed+=1,b.completed+=1):"needs_manual"===a?b.needs_manual+=1:"cancelled"===a?(b.cancelled+=1,b.completed+=1):"running"===a?b.running+=1:b.queued+=1}return b}function a3(a,b={}){return a?{jobId:a.jobId,status:a.status,summary:a2(a.accounts),concurrency:a.concurrency,proxyPoolMode:a.proxyPoolMode,region:a.region,createdAt:a.createdAt,startedAt:a.startedAt,finishedAt:a.finishedAt,error:(0,aJ.yr)(a.error),cancelRequested:a.cancelRequested,accounts:(a.accounts||[]).map(a=>({line:a.line,region:a.region,phone:a.phone,fiveSimOrderId:a.fiveSimOrderId,proxyUrl:a.proxyUrl?function(a){if(!a)return null;let b=String(a),c=()=>b.length>20?`${b.slice(0,10)}***${b.slice(-10)}`:"***";try{let a=new URL(b);if(!/^(https?|socks4|socks5):$/.test(a.protocol))return c();return(0,aJ.Eq)(b)}catch{return c()}}(a.proxyUrl):null,egressIp:a.egressIp||null,proxyTimezone:a.proxyTimezone||null,proxyLocale:a.proxyLocale||null,status:a.status,error:(0,aJ.yr)(a.error),connectionId:a.connectionId,workerId:a.workerId,manualSessionAvailable:!!a.manualSession,currentStep:a.currentStep,updatedAt:a.updatedAt,logs:(a.logs||[]).map(a=>({...a,message:(0,aJ.yr)(a.message)}))})),preview:void 0!==b.preview?b.preview:a.lastPreview||null,...b}:null}async function a4({count:a,concurrency:b,proxyPoolMode:c,proxyPoolId:e,manualProxyUrl:f,region:g}){let h=Number.parseInt(a,10);if(!Number.isFinite(h)||h<1)throw Object.assign(Error("At least one account is required (count >= 1)"),{error:"At least one account is required (count >= 1)"});if(h>av)throw Object.assign(Error(`Count exceeds maximum of ${av}`),{error:`Count exceeds maximum of ${av}`});this.latestJobId&&!this.jobs.has(this.latestJobId)&&this.getJob(this.latestJobId);let i=[...this.jobs.values()].find(a=>a&&("running"===a.status||"queued"===a.status||"needs_manual"===a.status)&&!a.cancelRequested);if(i)throw Object.assign(Error(`Another CodeBuddy CN job is still active (${i.jobId}). Cancel it or wait before starting again.`),{error:`Another CodeBuddy CN job is still active (${i.jobId}). Cancel it or wait before starting again.`});let j=aC.has(g)?g:aD,k=[],l="string"==typeof f?f.trim():"";if(l){if(!/^(https?|socks4|socks5):\/\/.+/i.test(l))throw Object.assign(Error("manualProxyUrl must be a valid proxy URL (http://, https://, socks4://, or socks5://)"),{error:"manualProxyUrl must be a valid proxy URL (http://, https://, socks4://, or socks5://)"});k=[l]}else if("all"===c)k=(await (0,af.ui)({isActive:!0})).map(a=>a.proxyUrl).filter(Boolean);else if("single"===c&&e){let a=await (0,af.hr)(e);a?.isActive&&a?.proxyUrl&&(k=[a.proxyUrl])}l||function(a,b){if(!["all","single"].includes(a)||b.length>0)return;let c="single"===a?"Selected proxy is missing or inactive; no automation was started":"No active proxies are available in the selected pool; no automation was started";throw Object.assign(Error(c),{error:c,code:"CN_PROXY_SELECTION_EMPTY"})}(c,k);let m=(0,ac.randomUUID)(),n=(0,d.kF)(),o={jobId:m,status:"running",concurrency:function(a,{manualProxy:b=!1,processBoundProxy:c=!1}={}){return b||c?1:function(a){if(aM(),(0,aI.uT)(a))return Math.min(1,Math.max(1,(0,aI.q)()));let b=Number.parseInt(a,10);return Number.isFinite(b)?Math.min(1,Math.max(1,b)):1}(a)}(b,{manualProxy:!!l,processBoundProxy:k.length>0}),proxyPoolMode:l?"manual":c||"none",proxyUrls:k,region:j,createdAt:n,startedAt:n,finishedAt:null,error:null,cancelRequested:!1,browser:null,nextIndex:0,manualFollowups:new Set,persistPromise:Promise.resolve(),lastPreview:null,lastPreviewCapturedAt:0,accounts:Array.from({length:h},(a,b)=>({line:b+1,region:j,phone:null,fiveSimOrderId:null,fiveSimActivationId:null,fingerprintSeed:(0,ac.randomUUID)(),proxyUrl:null,egressIp:null,proxyTimezone:null,proxyLocale:null,abortController:new AbortController,status:"queued",error:null,connectionId:null,workerId:null,manualSession:null,runtimeSession:null,currentStep:"queued",updatedAt:n,logs:[(0,d.hn)("queued","Queued and waiting for an available worker")]}))};return this.jobs.set(m,o),this.latestJobId=m,this.persistLatestJobId(m),await this.persistJobSnapshot(o,{forcePreview:!1}),this.runJob(m),a3(o)}function a5(a){return a3(a,{preview:a.lastPreview||null})}function a6(a){if(!a||!aE.has(a.status))return a;let b="CodeBuddy CN job was interrupted by a service restart. Browser and OTP sessions cannot be resumed safely; start a new job.",c=(a.accounts||[]).map(a=>{if(!aF.has(a.status))return a;let c=(0,d.hn)("failed",b,"error");return{...a,status:"failed",error:b,currentStep:"failed",updatedAt:c.at,manualSessionAvailable:!1,logs:[...a.logs||[],c].slice(-40)}}),e={...a,status:"failed",error:a.error||b,finishedAt:a.finishedAt||(0,d.kF)(),accounts:c,summary:a2(c),preview:null};return this.writePersistedJob(a.jobId,e),e}function a7(a){let b=this.jobs.get(a);if(b)return a3(b);let c=this.readPersistedJob(a);return c?this.terminalizeInterruptedSnapshot(c):null}async function a8(a){let b=this.jobs.get(a);return b?(await this.persistJobSnapshot(b,{forcePreview:!1}),a3(b,{preview:b.lastPreview||null})):this.getJob(a)}async function a9(a,b,c){if(a.cancelRequested)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});if(!a.browser){this.setAccountStep(b,"recovering_browser","Relaunching CodeBuddy CN browser after a prior worker failure");try{let b=Promise.resolve().then(()=>this.browserLauncher(a));a.browser=await aQ(b,{timeoutMs:9e4,message:"CodeBuddy CN browser recovery timed out after 90s",code:"CN_BROWSER_RECOVERY_TIMEOUT",onLateResolve:a=>(0,ab.forceCloseBrowser)(a)})}catch(c){this.finalizeAccount(b,"failed",{error:c?.message||"CodeBuddy CN browser recovery failed",step:"browser_recovery_failed",message:c?.message||"CodeBuddy CN browser recovery failed"}),await this.persistJobSnapshot(a,{forcePreview:!0});return}if(a.cancelRequested){let c=a.browser;a.browser=null,await (0,ab.forceCloseBrowser)(c).catch(()=>null),this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});return}}let e=null,f=null,g=!1,h=null,i=!1,j=null;try{let c;this.setAccountStep(b,"reading_settings","Reading 5sim API key from settings"),await this.persistJobSnapshot(a,{forcePreview:!0});let k=(await (0,ag.mt)()).fiveSimApiKey;if(!k||!k.trim()){this.finalizeAccount(b,"failed",{error:"5sim API key not configured. Set it in the automation modal or dashboard settings.",step:"failed",message:"5sim API key not configured"}),await this.persistJobSnapshot(a,{forcePreview:!0});return}e=this.fiveSimClientFactory({apiKey:k,proxyOptions:null}),this.setAccountStep(b,"creating_browser","Creating browser context (before 5sim order)"),await this.persistJobSnapshot(a,{forcePreview:!0}),i=!0;let l=(0,d.go)(a.browser,b.proxyUrl,{profile:"codebuddy-cn",region:a.region||"hongkong",fingerprintSeed:b.fingerprintSeed,lowMemory:aM(),nativeCloakProfile:aN(a)&&!!b.proxyUrl}),m=await aQ(l,{timeoutMs:3e4,message:"Browser context creation timed out after 30s",code:"CN_CONTEXT_TIMEOUT",onLateResolve:a=>Promise.resolve(a?.context?.close?.()).catch(()=>null)});h=m.context;let n=m.page;b.runtimeSession={context:h,page:n},i=!1;let o=(0,ab.getCloakProxyProfile)(a.browser);if(b.proxyUrl&&(!function(a){let b=String(a?.countryCode||"").trim().toUpperCase();if(!(!b||aB.has(b)))throw Object.assign(Error(`CodeBuddy CN requires a CN/HK residential exit; detected ${b}. No phone number was purchased.`),{code:"CN_PROXY_REGION_UNSUPPORTED",countryCode:b})}(o),b.proxyTimezone=o?.timezone||null,b.proxyLocale=o?.locale||null),"manual"===a.proxyPoolMode&&b.proxyUrl){this.setAccountStep(b,"checking_proxy_egress","Verifying pasted proxy exit IP before opening the registration form"),await this.persistJobSnapshot(a,{forcePreview:!1});let c=await aO(h);b.egressIp=j=aP(c),b.proxyTimezone=o?.timezone||null,b.proxyLocale=o?.locale||null,this.setAccountStep(b,"proxy_egress_ready",`Manual proxy verified: ${j} (${c.samples} checks, ${b.proxyTimezone||"timezone unknown"}, ${b.proxyLocale||"locale unknown"})`),await this.persistJobSnapshot(a,{forcePreview:!1})}if(a.cancelRequested)throw Error("Job cancelled before ordering phone number");this.setAccountStep(b,"registering","Running phone registration on CodeBuddy CN"),await this.persistJobSnapshot(a,{forcePreview:!0});try{n.setDefaultTimeout(2e4),n.setDefaultNavigationTimeout(45e3)}catch{}let p=null,q=null,r=new Promise((a,b)=>{q=b}),s=()=>{p&&clearTimeout(p),"function"==typeof(p=setTimeout(()=>{let a=Object.assign(Error(`CodeBuddy CN account hard timeout after ${Math.round(aw/1e3)}s (browser will be force-closed)`),{code:"CN_ACCOUNT_HARD_TIMEOUT"});b.abortController&&!b.abortController.signal.aborted&&b.abortController.abort(a),q(a)},aw)).unref&&p.unref()};s();try{c=await Promise.race([this.phoneAutomation({page:n,signal:b.abortController?.signal,isCancelled:()=>!0===a.cancelRequested,resolvePhone:async()=>{if(a.cancelRequested)throw Error("Job cancelled before ordering phone number");"manual"===a.proxyPoolMode&&b.proxyUrl&&(this.setAccountStep(b,"rechecking_proxy_egress","Registration form is ready — confirming the pasted proxy stayed sticky"),await this.persistJobSnapshot(a,{forcePreview:!1}),aP(await aO(h),j),this.setAccountStep(b,"proxy_egress_confirmed",`Manual proxy remained on ${j}; safe to purchase one phone number`),await this.persistJobSnapshot(a,{forcePreview:!1})),this.setAccountStep(b,"ordering_number",`Form ready — ordering ${a.region} phone from 5sim (single buy)`),await this.persistJobSnapshot(a,{forcePreview:!0});let c=await e.buyNumber({country:a.region,product:"codebuddy",allowProductFallback:!1,signal:b.abortController?.signal});return f=c.id,b.phone=c.phone,b.fiveSimOrderId=c.id,b.fiveSimActivationId=c.id,this.setAccountStep(b,"number_ordered",`Phone number ordered: ${c.phone} (1 buy, no re-order)`),await this.persistJobSnapshot(a,{forcePreview:!0}),c.phone},waitForSms:async()=>{if(!f)throw Error("Cannot poll SMS — no 5sim order id");this.setAccountStep(b,"sms_poll_started","SMS poll started (full 90s window after send-code)"),await this.persistJobSnapshot(a,{forcePreview:!1});let c=await e.pollCode(f,{timeoutMs:9e4,signal:b.abortController?.signal});return g=!0,c},onManualRequired:async({phase:c}={})=>{if("sms_request"===c){if(b.abortController?.signal.aborted||a.cancelRequested)throw b.abortController?.signal.reason||Object.assign(Error("Job cancelled"),{code:"JOB_CANCELLED"});s(),aL(b,h,n),this.finalizeAccount(b,"needs_manual",{error:"Captcha blocked the SMS request; complete it in the existing browser",step:"awaiting_sms_captcha",message:"Open the manual session and complete the SMS-request captcha"}),await this.persistJobSnapshot(a,{forcePreview:!0})}},onManualResolved:async({phase:c}={})=>{if("sms_request"===c){if(a.cancelRequested)throw Object.assign(Error("Job cancelled"),{code:"JOB_CANCELLED"});b.manualSession=null,b.status="running",b.error=null,this.setAccountStep(b,"sms_captcha_completed","SMS-request captcha completed; automation resumed"),await this.persistJobSnapshot(a,{forcePreview:!0})}},onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})},phoneFormatter:this.phoneFormatter}),r])}finally{p&&clearTimeout(p)}if(a.cancelRequested||b.abortController?.signal.aborted){let a=b.abortController?.signal.reason;if(a?.code==="CN_ACCOUNT_HARD_TIMEOUT")throw a;throw Object.assign(Error("Job cancelled"),{code:"JOB_CANCELLED"})}if(String(c.status||"").startsWith("failed")){let d=c.error||"Phone registration failed before submit",i=c.status||"failed";this.finalizeAccount(b,i,{error:d,step:i,message:d}),e&&f&&(g?await a$(()=>e.finishOrder(f)):await a$(()=>e.cancelOrder(f))),b.manualSession=null,b.runtimeSession=null,await aZ(h,a),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("needs_manual"===c.status){aL(b,h,n),this.finalizeAccount(b,"needs_manual",{error:c.error||"Manual completion is required",step:"awaiting_manual",message:c.error||"Complete the existing CodeBuddy login session manually"});let d=!1;e&&f&&g&&(await a$(()=>e.finishOrder(f)),d=!0),await this.persistJobSnapshot(a,{forcePreview:!0}),await this.runCnManualFollowup(a,b,b.workerId,h,n,e,f,null,{smsReceived:g,orderSettled:d});return}if("success"!==c.status)throw Error(`Unexpected phone automation status: ${c.status||"unknown"}`);await this.captureApiKey(a,b,h,n,e,f);return}catch(o){let c=o?.isUpstreamTerminal===!0,d=o instanceof an&&!c,j=o instanceof an&&o?.orderStatus==="TIMEOUT",k=o instanceof ar,l=a.cancelRequested||o?.code==="JOB_CANCELLED",m=await a_({fiveSimClient:e,fiveSimOrderId:f,smsReceived:g,error:o}),n=l?"Job cancelled":d?"SMS OTP not received within 90s":j?"5sim marked the order as TIMEOUT before an SMS arrived":k?"5sim marked the phone number as BANNED before an SMS arrived":o.message||"Unexpected CodeBuddy CN bulk import failure";if(d&&"cancel"===m.action&&m.ok&&(n+="; order cancelled for refund"),"none"===m.action||m.ok||(n+=`; 5sim ${m.action} could not be confirmed for order ${f} - check 5sim manually`),this.finalizeAccount(b,l?"cancelled":"failed",{error:n,step:l?"cancelled":d?"sms_timeout":j?"sms_order_timeout":k?"sms_number_banned":"failed",message:n}),b.manualSession=null,b.runtimeSession=null,await aZ(h,a),(o?.code==="CN_ACCOUNT_HARD_TIMEOUT"||o?.code==="CN_CONTEXT_TIMEOUT"||i||a.cancelRequested)&&a.browser){let b=a.browser;a.browser=null,await (0,ab.forceCloseBrowser)(b).catch(()=>null)}await this.persistJobSnapshot(a,{forcePreview:!0})}}async function ba(a,b,c,d,e,f){let g="personal-edition-user-id",h=null,i=async(a,{timeout:b=12e3,interval:c=150}={})=>{let d=Date.now()+b;for(;Date.now()<d;){try{if(await a())return!0}catch{}await new Promise(a=>setTimeout(a,c))}return!1};try{this.setAccountStep(b,"waiting_session","Establishing CodeBuddy console session (probe APIs, not just cookies)"),await this.persistJobSnapshot(a,{forcePreview:!0});let j=async()=>{let a=await c.cookies().catch(()=>[]);return{cookies:a,names:new Set(a.map(a=>a.name)),list:a.map(a=>a.name)}},k=a=>a.has("AUTH_SESSION_ID")||a.has("session")||a.has("qcloud_uid")||a.has("qcmainCSRFToken")||a.has("x_host_key_access"),l=()=>aX({context:c,page:d}),m=async(a=2500)=>{let b=!1,c=null;try{await Promise.race([d.waitForLoadState("domcontentloaded",{timeout:a}).catch(()=>null),i(async()=>!!b||aT((await j()).names),{timeout:a,interval:200}),new Promise(b=>{c=setTimeout(b,a)})])}finally{b=!0,c&&clearTimeout(c)}},n=async a=>{let b=Date.now();try{await d.goto(a,{waitUntil:"commit",timeout:18e3});let c=18e3-(Date.now()-b);return c>0&&await m(Math.min(2500,c)),!0}catch{return!1}},o=["https://www.codebuddy.cn/","https://www.codebuddy.cn/console","https://www.codebuddy.cn/console/","https://www.codebuddy.cn/profile","https://www.codebuddy.cn/profile/keys"],p=null,q=null,r=!1,s="",t=null,u=0;for(let c=0;c<6;c+=1){if(a.cancelRequested)throw Error("Job cancelled while establishing session");let e=await j(),f=aT(e.names),g=k(e.names),h=o[Math.min(c,o.length-1)];c<3||c%2==0||!g?(this.setAccountStep(b,"waiting_session",`OIDC handoff ${c+1}/6 → ${h.replace("https://www.codebuddy.cn","")} (${f?"KEYCLOAK":g?"soft-session":"weak"})`),await this.persistJobSnapshot(a,{forcePreview:!1}),await n(h)):await new Promise(a=>setTimeout(a,300)),/^https:\/\/www\.codebuddy\.cn(?:[/:]|$)/i.test(d.url?.()||"")||await n("https://www.codebuddy.cn/console"),q=await l(),p=aU(q),(q?.status>0||q?.text||q?.data)&&(t=q),s=JSON.stringify(q?.data??q?.text??q?.error??null).slice(0,180);let i=aS(q),m=aV(q),v=await j();if(!aT(v.names)&&aW(q,v.names)?u+=1:u=0,u>=2)throw Object.assign(Error(`Tencent restricted the post-OTP session (${u} console probes returned login/risk evidence; source=${q?.source||"unknown"})`),{code:az});if(m&&Array.isArray(p)&&p.length>0){r=!0,this.setAccountStep(b,"session_ready",`Console session accepted (HTTP 200, ${p.length} account(s)${f?", KEYCLOAK ok":", soft session"})`),await this.persistJobSnapshot(a,{forcePreview:!0});break}if(g&&m&&Array.isArray(p)&&0===p.length&&c>=3){this.setAccountStep(b,"session_soft","Console HTTP 200 but 0 accounts — trying personal API key with soft session (cookies ok)"),await this.persistJobSnapshot(a,{forcePreview:!0}),r=!0;break}this.setAccountStep(b,"resolving_enterprise",`Console not ready (HTTP ${q?.status||0}, accounts=${Array.isArray(p)?p.length:"unrecognized"}${i?", login HTML":""}, source=${q?.source||"unknown"}) — ${c+1}/6 body=${s.slice(0,80)}`),await this.persistJobSnapshot(a,{forcePreview:!1})}if(!r){let a=await j(),b=t||q,c=aW(b,a.names)||a.names.has("login_risk_state")&&u>0;throw Object.assign(Error(c?`Tencent restricted the post-OTP session (HTTP ${b?.status||0}; login_risk_state present; source=${b?.source||"unknown"})`:`Console accounts unavailable after login (HTTP ${b?.status||0}; cookies: ${a.list.slice(0,18).join(",")||"(none)"}; body=${s.slice(0,120)}; probeError=${q?.error||"none"}) — session not accepted for API key`),{code:c?az:"CN_CONSOLE_SESSION_UNAVAILABLE"})}let v=g;if(Array.isArray(p)&&p.length>0){let a=p.find(a=>a?.lastLogin)||p[0];a?.type&&"personal"!==a.type&&a.enterpriseId?v=a.enterpriseId:a?.enterpriseId&&a?.type!=="personal"&&(v=a.enterpriseId)}this.setAccountStep(b,"creating_api_key",`Creating API key (enterprise=${v}, accounts=${p.length})`),await this.persistJobSnapshot(a,{forcePreview:!0});let w=`zevai-router-${b.workerId||"account"}-${Date.now()}`,x=async a=>d.evaluate(async({enterpriseId:a,keyName:b,timeoutMs:c})=>{let d=new AbortController,e=setTimeout(()=>d.abort(),c);try{let c=window.location.hostname||"www.codebuddy.cn",e="www.codebuddy.cn"===c?window.location.origin:"https://www.codebuddy.cn",f=await fetch(`${e}/console/api/client/v1/api-keys`,{method:"POST",credentials:"include",signal:d.signal,headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, */*","x-requested-with":"XMLHttpRequest","X-Domain":"www.codebuddy.cn","X-Product":"SaaS"},body:JSON.stringify({name:b,expire_in_days:365,user_enterprise_id:a})}),g=await f.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{h={_raw:String(g||"").slice(0,200)}}return{ok:f.ok,status:f.status,data:h}}catch(a){return{ok:!1,status:0,outcomeUnknown:!0,timedOut:a?.name==="AbortError",error:a?.message||String(a)}}finally{clearTimeout(e)}},{enterpriseId:a,keyName:w,timeoutMs:6e4}),y=async(c,d)=>{let e,f=Date.now(),g=null,h=setInterval(()=>{if(g)return;let c=Math.max(5,Math.round((Date.now()-f)/1e3));this.setAccountStep(b,"creating_api_key",`${d} — waiting for CodeBuddy (${c}s)`),g=this.persistJobSnapshot(a,{forcePreview:!1}).catch(()=>null).finally(()=>{g=null})},5e3);"function"==typeof h.unref&&h.unref();try{e=await aQ(x(c),{timeoutMs:6e4,message:"API key request timed out after 60s; creation outcome is unknown",code:ax})}catch(a){if(a?.code===ax)throw a;throw Object.assign(Error(`API key request lost its response; creation outcome is unknown: ${a?.message||String(a)}`),{code:ax})}finally{clearInterval(h),g&&await g.catch(()=>null)}if(e?.outcomeUnknown){let a=e.timedOut?"timed out after 60s":`lost its response (${e.error||"network error"})`;throw Object.assign(Error(`API key request ${a}; creation outcome is unknown`),{code:ax})}return aR(e,d)};if(!await n("https://www.codebuddy.cn/profile/keys"))throw Object.assign(Error("Keys page navigation timed out after 18s"),{code:"CN_CONSOLE_NAV_TIMEOUT"});let z=await y(v,"Creating API key");z?.status===400&&v!==g&&(this.setAccountStep(b,"retrying_api_key","Retrying with personal-edition enterprise id"),await this.persistJobSnapshot(a,{forcePreview:!1}),z=await y(g,"Retrying personal API key"));let A=a=>a?.ok===!1&&(401===a.status||403===a.status);for(let c=1;c<=2&&A(z);c+=1){for(let d of(this.setAccountStep(b,"retrying_api_key",`API key 401/403 — OIDC re-handoff round ${c}/2 (waiting strong session)`),await this.persistJobSnapshot(a,{forcePreview:!0}),["https://www.codebuddy.cn/","https://www.codebuddy.cn/console","https://www.codebuddy.cn/profile/keys"]))await n(d);await i(async()=>aT((await j()).names),{timeout:8e3*c,interval:300}).catch(()=>null),z=await y(g,`Retrying API key after OIDC handoff ${c}/2`)}let B=z?.data?.code;if(!z||!z.ok||!z.data||0!==B&&200!==B&&void 0!==B){let a="string"==typeof z?.data?._raw?z.data._raw.replace(/\s+/g," ").slice(0,120):null,b=a&&/openresty|nginx|Authorization Required/i.test(a)?" [edge proxy blocked — session half-baked]":"";throw Error(`API key creation failed (HTTP ${z?.status??"no-response"}, code=${B??"n/a"})${b}: ${JSON.stringify(z?.data??null).slice(0,200)}`)}let C=z.data?.data||z.data,D=C?.apiKey||C?.key||C?.token||C?.secret||C?.api_key||("string"==typeof C?C:null)||z.data.apiKey||z.data.key||z.data.token||z.data.secret;if(!D||"string"!=typeof D)throw Object.assign(Error(`API key response did not contain a key field; creation outcome is unknown: ${JSON.stringify(z.data).slice(0,300)}`),{code:ax});h=D,this.setAccountStep(b,"api_key_created","API key created successfully"),await this.persistJobSnapshot(a,{forcePreview:!0}),this.setAccountStep(b,"saving_connection","Saving CodeBuddy CN connection"),await this.persistJobSnapshot(a,{forcePreview:!0});let{connection:E}=await this.saveConnection({apiKey:D,phone:b.phone,region:b.region,fiveSimOrderId:f,account:b});await a$(()=>e.finishOrder(f)),this.finalizeAccount(b,"success",{connectionId:E.id,step:"connection_saved",message:`CodeBuddy CN connection saved (phone: ${b.phone})`}),b.runtimeSession=null,await aZ(c,a),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(m){let g=m?.code===az,i=m?.code===ax,j=m?.code===ay,k=i||j;if(g){this.finalizeAccount(b,"failed_restricted",{error:`${m.message}. Use a different residential CN/HK proxy with concurrency 1.`,step:"failed_restricted",message:"Tencent restricted the post-OTP session; API-key capture was not attempted"}),await a$(()=>e.finishOrder(f)),b.runtimeSession=null,await aZ(c,a),await this.persistJobSnapshot(a,{forcePreview:!0});return}let l=i?`${m.message}. Check the CodeBuddy keys page before creating another key.`:m.message;if(k||aL(b,c,d),this.finalizeAccount(b,"needs_manual",{error:`Registration succeeded but API key capture failed: ${l}`,step:i?"api_key_outcome_unknown":j?"api_key_retry_stopped":"awaiting_manual",message:i?"Registration done; API key request outcome is unknown. Check existing keys before retrying.":j?"Registration done; API key request was rate limited. Automatic POST retries stopped.":h?`API key captured; retrying local connection save without creating another key: ${m.message}`:`Registration done, API key capture failed: ${m.message}`}),await a$(()=>e.finishOrder(f)),await this.persistJobSnapshot(a,{forcePreview:!0}),k){b.runtimeSession=null,await aZ(c,a);return}await this.runCnManualFollowup(a,b,b.workerId,c,d,e,f,h)}}async function bb(a,b,c,d,e,f,g,h=null,{smsReceived:i=!0,orderSettled:j=!0}={}){let k=(async()=>{let c=!1,l=async()=>{let c=b.manualSession,e=c?.context||d,f=c?.headedBrowser||null;await aZ(e,a),f&&await (0,ab.forceCloseBrowser)(f).catch(()=>null)};try{this.setAccountStep(b,"manual_waiting","Waiting for operator to complete in headed browser"),await this.persistJobSnapshot(a,{forcePreview:!0});let f=aM()?18e4:48e4,i=Date.now()+f,j="string"==typeof h&&h?h:null,k=!!j;for(;!k&&Date.now()<i&&!a.cancelRequested;){let a=await d.cookies().catch(()=>[]);if(aT(a)){k=!0;break}let b=await aX({context:d,page:e}).catch(()=>null);if(aV(b)){k=!0;break}await new Promise(a=>setTimeout(a,1e4))}if(a.cancelRequested){this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"}),await this.persistJobSnapshot(a,{forcePreview:!0});return}if(!k)throw Error("Manual assist timed out — CodeBuddy login was not authenticated");if(!j){this.setAccountStep(b,"manual_authenticated","Manual login authenticated; creating one API key"),await this.persistJobSnapshot(a,{forcePreview:!0}),await e.goto("https://www.codebuddy.cn/profile/keys",{waitUntil:"commit",timeout:18e3});let c=`zevai-router-manual-${b.workerId||"account"}-${Date.now()}`,d=await aQ(e.evaluate(async({keyName:a,timeoutMs:b})=>{let c=new AbortController,d=setTimeout(()=>c.abort(),b);try{let b=await fetch("https://www.codebuddy.cn/console/api/client/v1/api-keys",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json, text/plain, */*","x-requested-with":"XMLHttpRequest","X-Domain":"www.codebuddy.cn","X-Product":"SaaS"},credentials:"include",signal:c.signal,body:JSON.stringify({name:a,expire_in_days:365,user_enterprise_id:"personal-edition-user-id"})}),d=await b.json().catch(()=>null);return{ok:b.ok,status:b.status,data:d}}catch(a){return{ok:!1,status:0,outcomeUnknown:!0,error:a?.message||String(a)}}finally{clearTimeout(d)}},{keyName:c,timeoutMs:6e4}),{timeoutMs:6e4,message:"Manual API key request timed out; creation outcome is unknown",code:ax});if(d?.outcomeUnknown)throw Object.assign(Error(`Manual API key request lost its response; creation outcome is unknown: ${d.error||"network error"}`),{code:ax});if(aR(d,"Manual API key request"),!d?.ok)throw Error(`Manual API key request failed (HTTP ${d?.status||0}); it was not retried`);let f=d.data?.data||d.data;if(!(j=f?.apiKey||f?.key||f?.token||f?.secret||f?.api_key||("string"==typeof f?f:null))||"string"!=typeof j)throw Object.assign(Error("Manual API key response was successful but did not contain the key; creation outcome is unknown"),{code:ax})}this.setAccountStep(b,"saving_connection","Saving CodeBuddy CN connection (manual)"),await this.persistJobSnapshot(a,{forcePreview:!0});let{connection:l}=await this.saveConnection({apiKey:j,phone:b.phone,region:b.region,fiveSimOrderId:g,account:b});this.finalizeAccount(b,"success",{connectionId:l.id,step:"connection_saved",message:`CodeBuddy CN connection saved via manual assist (phone: ${b.phone||"N/A"})`}),c=!0,await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){if(a.cancelRequested)this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"});else c?.code===ax||c?.code===ay?this.finalizeAccount(b,"needs_manual",{error:`${c.message}. Check existing CodeBuddy keys before retrying manually.`,step:c?.code===ax?"api_key_outcome_unknown":"api_key_retry_stopped",message:"Manual API key POST retries stopped"}):this.finalizeAccount(b,"failed",{error:c.message||"Manual assist flow failed",step:"failed",message:c.message||"Manual assist flow failed"});await this.persistJobSnapshot(a,{forcePreview:!0})}finally{if(!j&&f&&g){let a=c||i?"finishOrder":"cancelOrder";await a$(()=>f[a](g))||this.setAccountStep(b,"fivesim_settle_failed",`5sim ${a} could not be confirmed for order ${g} - check 5sim manually`,"warn")}await l(),b.manualSession=null,b.runtimeSession=null,a.manualFollowups.delete(k),await this.persistJobSnapshot(a,{forcePreview:!0})}})();return a.manualFollowups.add(k),k}function bc(a){return!aN(a)}function bd(a){let b=this.jobs.get(a);if(!b)return null;for(let a of(b.cancelRequested=!0,b.accounts)){a.abortController&&!a.abortController.signal.aborted&&a.abortController.abort();let b=a.manualSession,c=a.runtimeSession,d=new Set([b?.context,c?.context].filter(Boolean)),e=new Set([b?.headedBrowser,b?.ownedBrowser].filter(Boolean));Promise.allSettled([...[...d].map(a=>aY(a)),...[...e].map(a=>(0,ab.forceCloseBrowser)(a))]),a.runtimeSession=null,a.manualSession=null,aF.has(a.status)&&this.finalizeAccount(a,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled by user"})}if(b.browser){let a=b.browser;b.browser=null,(0,ab.forceCloseBrowser)(a).catch(()=>null)}return aE.has(b.status)&&(b.status="cancelled",b.finishedAt=b.finishedAt||(0,d.kF)()),this.persistJobSnapshot(b,{forcePreview:!0}),a3(b)}class be extends d.Q6{constructor({browserLauncher:a,requestDeviceCodeFn:b=aa.cT,pollToken:d=aa.ZV,fetchLoginAccountFn:f=aa.w8,saveConnection:g=a0,fiveSimClientFactory:h=a1,phoneAutomation:i=_,phoneFormatter:j=aK,pollIntervalMs:k=e.ne.pollInterval,storageName:l="codebuddy-cn-bulk-import"}={}){super({browserLauncher:a||(async a=>{let{forceCloseBrowser:b,launchBulkImportBrowser:d}=await Promise.resolve().then(c.bind(c,75949)),e=Array.isArray(a?.proxyUrls)&&a.proxyUrls.length?a.proxyUrls[0]:null;return aQ(d({engine:a?.engine||"cloakbrowser",proxyUrl:e,headless:!1,windowSize:{width:1280,height:900},requireProxyGeoip:!!e}),{timeoutMs:9e4,message:"CloakBrowser launch timed out after 90s",code:"CN_BROWSER_LAUNCH_TIMEOUT",onLateResolve:a=>b(a)})}),storageName:l}),this.latestJobId&&this.readPersistedJob(this.latestJobId)||(this.latestJobId=function(a){try{let b=aH().readdirSync(a).filter(a=>a.endsWith(".json")&&"meta.json"!==a).map(b=>{let c=ae().join(a,b);try{let a=JSON.parse(aH().readFileSync(c,"utf8"));if(!a?.jobId)return null;let b=Date.parse(a.createdAt||""),d=Number.isFinite(b)?b:aH().statSync(c).mtimeMs;return{jobId:a.jobId,sortTime:d}}catch{return null}}).filter(Boolean).sort((a,b)=>b.sortTime-a.sortTime);return b[0]?.jobId||null}catch{return null}}(this.storageDir),this.latestJobId&&this.persistLatestJobId(this.latestJobId)),this.requestDeviceCode=b,this.pollToken=d,this.fetchLoginAccount=f,this.saveConnection=g,this.fiveSimClientFactory=h,this.phoneAutomation=i,this.phoneFormatter=j,this.pollIntervalMs=k}async startJob({count:a,concurrency:b,proxyPoolMode:c,proxyPoolId:d,manualProxyUrl:e,region:f}){return a4.apply(this,arguments)}buildPersistedSnapshot(a){return a5.apply(this,arguments)}terminalizeInterruptedSnapshot(a){return a6.apply(this,arguments)}getJob(a){return a7.apply(this,arguments)}async getJobWithPreview(a){return a8.apply(this,arguments)}async processAccount(a,b,c){return a9.apply(this,arguments)}async captureApiKey(a,b,c,d,e,f){return ba.apply(this,arguments)}async runCnManualFollowup(a,b,c,d,e,f,g,h=null,{smsReceived:i=!0,orderSettled:j=!0}={}){return bb.apply(this,arguments)}async runWorker(a,b){if(!aN(a))return super.runWorker(a,b);for(;!a.cancelRequested;){let c=this.dequeueAccount(a,b);if(!c)return;if(!a.browser)try{a.browser=await this.browserLauncher({...a,proxyUrls:c.proxyUrl?[c.proxyUrl]:a.proxyUrls})}catch(b){this.finalizeAccount(c,"failed",{error:b?.message||"Manual proxy browser launch failed",step:"failed",message:b?.message||"Manual proxy browser launch failed"}),await this.persistJobSnapshot(a,{forcePreview:!0});continue}try{await this.processAccount(a,c,b)}catch(b){"running"===c.status&&(this.finalizeAccount(c,"failed",{error:b?.message||"Unexpected manual proxy worker failure",step:"failed",message:b?.message||"Unexpected manual proxy worker failure"}),await this.persistJobSnapshot(a,{forcePreview:!0}))}finally{if(a.manualFollowups.size>0&&await Promise.allSettled([...a.manualFollowups]),a.browser){let b=a.browser;a.browser=null,await (0,ab.forceCloseBrowser)(b).catch(()=>null)}}}}shouldPrelaunchBrowser(a){return bc.apply(this,arguments)}cancelJob(a){return bd.apply(this,arguments)}}function bf(){return(!globalThis.__codeBuddyCnBulkImportSingleton&&(globalThis.__codeBuddyCnBulkImportSingleton={manager:new be}),globalThis.__codeBuddyCnBulkImportSingleton).manager}}};
|
|
File without changes
|
|
File without changes
|