@rabbi696/ezrouter 0.6.14 → 0.6.15
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/README.md +18 -0
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +5 -4
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/react-loadable-manifest.json +1 -1
- package/app/.next-cli-build/routes-manifest.json +8 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +18 -18
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +8 -8
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +8 -8
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js +2 -2
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -0
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +3 -3
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +14 -14
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +2 -2
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +2 -2
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +2 -2
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +2 -2
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +5 -4
- package/app/.next-cli-build/server/chunks/1253.js +1 -1
- package/app/.next-cli-build/server/chunks/1522.js +1 -1
- package/app/.next-cli-build/server/chunks/1733.js +1 -1
- package/app/.next-cli-build/server/chunks/1847.js +1 -1
- package/app/.next-cli-build/server/chunks/2269.js +1 -1
- package/app/.next-cli-build/server/chunks/2348.js +1 -1
- package/app/.next-cli-build/server/chunks/2898.js +1 -1
- package/app/.next-cli-build/server/chunks/290.js +1 -0
- package/app/.next-cli-build/server/chunks/3216.js +1 -1
- package/app/.next-cli-build/server/chunks/3245.js +1 -1
- package/app/.next-cli-build/server/chunks/3252.js +1 -1
- package/app/.next-cli-build/server/chunks/3267.js +1 -1
- package/app/.next-cli-build/server/chunks/3275.js +1 -0
- package/app/.next-cli-build/server/chunks/3547.js +1 -1
- package/app/.next-cli-build/server/chunks/3583.js +2 -2
- package/app/.next-cli-build/server/chunks/369.js +12 -12
- package/app/.next-cli-build/server/chunks/3794.js +1 -1
- package/app/.next-cli-build/server/chunks/3886.js +1 -1
- package/app/.next-cli-build/server/chunks/3977.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +2 -2
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4378.js +3 -3
- package/app/.next-cli-build/server/chunks/4646.js +1 -1
- package/app/.next-cli-build/server/chunks/4704.js +4 -4
- package/app/.next-cli-build/server/chunks/4768.js +1 -0
- package/app/.next-cli-build/server/chunks/4807.js +1 -1
- package/app/.next-cli-build/server/chunks/4811.js +1 -1
- package/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/app/.next-cli-build/server/chunks/4878.js +1 -1
- package/app/.next-cli-build/server/chunks/4882.js +1 -1
- package/app/.next-cli-build/server/chunks/5130.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6420.js +1 -0
- package/app/.next-cli-build/server/chunks/6707.js +1 -1
- package/app/.next-cli-build/server/chunks/7218.js +1 -0
- package/app/.next-cli-build/server/chunks/73.js +1 -1
- package/app/.next-cli-build/server/chunks/7594.js +16 -16
- package/app/.next-cli-build/server/chunks/7663.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/7775.js +1 -1
- package/app/.next-cli-build/server/chunks/7828.js +1 -1
- package/app/.next-cli-build/server/chunks/8129.js +1 -1
- package/app/.next-cli-build/server/chunks/823.js +1 -1
- package/app/.next-cli-build/server/chunks/8231.js +1 -1
- package/app/.next-cli-build/server/chunks/8243.js +3 -3
- package/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/app/.next-cli-build/server/chunks/8421.js +1 -1
- package/app/.next-cli-build/server/chunks/8450.js +254 -0
- package/app/.next-cli-build/server/chunks/8459.js +1 -1
- package/app/.next-cli-build/server/chunks/8644.js +1 -1
- package/app/.next-cli-build/server/chunks/8772.js +1 -0
- package/app/.next-cli-build/server/chunks/8976.js +1 -1
- package/app/.next-cli-build/server/chunks/9026.js +17 -17
- package/app/.next-cli-build/server/chunks/9143.js +1 -1
- package/app/.next-cli-build/server/chunks/9303.js +1 -1
- package/app/.next-cli-build/server/chunks/9485.js +1 -1
- package/app/.next-cli-build/server/chunks/9843.js +1 -1
- package/app/.next-cli-build/server/chunks/9865.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +4 -4
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/{1321-c3d563d8c76a4dac.js → 1321-043afc56cba448b8.js} +1 -1
- package/app/.next-cli-build/static/chunks/5497-8766958582f95dc7.js +17 -0
- package/app/.next-cli-build/static/chunks/{6808-42c5cc62f0d2662b.js → 6808-93e2068e37a63896.js} +1 -1
- package/app/.next-cli-build/static/chunks/8105-9dfc2c5ffef6e778.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-fa195b4f7348e2d6.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-a31d9ca05cc3d528.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/page-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/enabled/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-4c5cfa991861ba1b.js +1 -0
- package/app/.next-cli-build/static/chunks/{webpack-1f254f36f822e458.js → webpack-ac71f993743961ad.js} +1 -1
- package/app/.next-cli-build/static/css/76821f2171e21e80.css +1 -0
- package/app/CHANGELOG.md +46 -37
- package/app/package.json +1 -1
- package/app/public/CHANGELOG.md +46 -37
- package/app/public/providers/muse.png +0 -0
- package/app/public/providers/tinyfish.png +0 -0
- package/app/public/providers/v1m.png +0 -0
- package/cli.js +25 -14
- package/hooks/postinstall.js +4 -0
- package/node_modules/confbox/LICENSE +27 -0
- package/node_modules/confbox/README.md +191 -0
- package/node_modules/confbox/dist/THIRD-PARTY-LICENSES.md +171 -0
- package/node_modules/confbox/dist/_chunks/_format.d.mts +25 -0
- package/node_modules/confbox/dist/_chunks/_format.mjs +1 -0
- package/node_modules/confbox/dist/_chunks/json.mjs +1 -0
- package/node_modules/confbox/dist/_chunks/libs/detect-indent.mjs +1 -0
- package/node_modules/confbox/dist/_chunks/libs/ini.mjs +3 -0
- package/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +33 -0
- package/node_modules/confbox/dist/_chunks/libs/json5.mjs +14 -0
- package/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +7 -0
- package/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +249 -0
- package/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +1 -0
- package/node_modules/confbox/dist/index.d.mts +34 -0
- package/node_modules/confbox/dist/index.mjs +1 -0
- package/node_modules/confbox/dist/ini.d.mts +62 -0
- package/node_modules/confbox/dist/ini.mjs +1 -0
- package/node_modules/confbox/dist/json5.d.mts +59 -0
- package/node_modules/confbox/dist/json5.mjs +1 -0
- package/node_modules/confbox/dist/jsonc.d.mts +41 -0
- package/node_modules/confbox/dist/jsonc.mjs +1 -0
- package/node_modules/confbox/dist/toml.d.mts +23 -0
- package/node_modules/confbox/dist/toml.mjs +1 -0
- package/node_modules/confbox/dist/yaml.d.mts +96 -0
- package/node_modules/confbox/dist/yaml.mjs +1 -0
- package/node_modules/confbox/package.json +67 -0
- package/package.json +5 -3
- package/src/cli/commands/connect.js +269 -0
- package/src/cli/commands/connectTools.js +338 -0
- package/src/cli/menus/providers.js +3 -2
- package/src/cli/tray/tray.js +11 -11
- package/src/cli/utils/modelSelector.js +1 -1
- package/app/.next-cli-build/server/chunks/2767.js +0 -1
- package/app/.next-cli-build/server/chunks/3960.js +0 -254
- package/app/.next-cli-build/server/chunks/4327.js +0 -1
- package/app/.next-cli-build/server/chunks/4722.js +0 -1
- package/app/.next-cli-build/server/chunks/7528.js +0 -1
- package/app/.next-cli-build/server/chunks/8670.js +0 -1
- package/app/.next-cli-build/server/chunks/8946.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-ffaf8dc7c7c8f95c.js +0 -17
- package/app/.next-cli-build/static/chunks/8105-1a9e02e4d5a17e44.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-cfa303b120846bf8.js +0 -27
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-6369f894b65720dd.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/enabled/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-1c11060ffc33d4ad.js +0 -1
- package/app/.next-cli-build/static/css/14f3f7e420fa2785.css +0 -1
- /package/app/.next-cli-build/static/{BkbAW6wqVq3TFwhDZSKXi → zQapcWqcr7oLVi5jh7t01}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{BkbAW6wqVq3TFwhDZSKXi → zQapcWqcr7oLVi5jh7t01}/_ssgManifest.js +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";exports.id=369,exports.ids=[369],exports.modules={2735:(a,b,c)=>{c.d(b,{c:()=>i});var d=c(17717),e=c(26502),f=c(19956),g=c(60290),h=c(6755);function i(a,b,c="",e=!1){if(!c.includes("claude-cli")||!a.messages?.length)return null;let f=a.messages,h=a=>"string"==typeof a?a:Array.isArray(a)?a.filter(a=>"text"===a.type).map(a=>a.text).join(" "):"",j=!1,m=!1,n=f[f.length-1];if(n?.role==="assistant"&&n.content?.[0]?.text==="{"&&(j=!0),j||"Warmup"===h(f[0]?.content)&&(j=!0),j||1!==f.length||f[0]?.role!=="user"||"count"===h(f[0]?.content)&&(j=!0),!j&&g.C8?.length){let a=f.filter(a=>"user"===a.role).map(a=>h(a.content)).join(" ");g.C8.some(b=>a.includes(b))&&(j=!0)}if(!j&&e){let b=f.find(a=>"system"===a.role),c=h(b?.content),d=Array.isArray(a.system)?a.system.filter(a=>"text"===a.type).map(a=>a.text).join(" "):"string"==typeof a.system?a.system:"";(c||d).includes("isNewTopic")&&(j=!0,m=!0)}if(!j)return null;let o=(0,d.Tz)(a),p=!1!==a.stream;if(m){let a=f.find(a=>"user"===a.role),c=JSON.stringify({isNewTopic:!0,title:h(a?.content).trim().split(/\s+/).slice(0,3).join(" ")});return p?l(o,b,c):k(o,b,c)}return p?l(o,b):k(o,b)}function j(a,b="CLI Command Execution: Clear Terminal"){return{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a,choices:[{index:0,message:{role:"assistant",content:b},finish_reason:"stop"}],usage:{prompt_tokens:1,completion_tokens:1,total_tokens:2}}}function k(a,b,c){let d=j(b,c);if(a===f.h.OPENAI)return{success:!0,response:new Response(JSON.stringify(d),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})};let g=(0,e.Ws)(a);g.model=b;let h=m(d),i=[];for(let b of h){let c=(0,e.Y8)(f.h.OPENAI,a,b,g);c?.length>0&&i.push(...c)}let k=(0,e.Y8)(f.h.OPENAI,a,null,g);return k?.length>0&&i.push(...k),{success:!0,response:new Response(JSON.stringify(function(a,b){if(!a||0===a.length)return j("unknown");let c=a[a.length-1];if(b===f.h.CLAUDE&&a.find(a=>"message_stop"===a.type)){a.find(a=>"content_block_delta"===a.type);let b=a.find(a=>"message_delta"===a.type),d=a.find(a=>"message_start"===a.type);if(d?.message){c=d.message;let a=d.message.usage,e=b?.usage;(a||e)&&(c.usage={...a||{},...e||{},...a?.cache_read_input_tokens!==void 0?{cache_read_input_tokens:a.cache_read_input_tokens}:{},...a?.cache_creation_input_tokens!==void 0?{cache_creation_input_tokens:a.cache_creation_input_tokens}:{},...a?.input_tokens!==void 0?{input_tokens:a.input_tokens}:{}})}}return c}(i,a)),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}function l(a,b,c){let d=j(b,c),g=(0,e.Ws)(a);g.model=b;let i=m(d),k=[];for(let b of i){let c=(0,e.Y8)(f.h.OPENAI,a,b,g);if(c?.length>0)for(let b of c)k.push((0,h.v8)(b,a))}let l=(0,e.Y8)(f.h.OPENAI,a,null,g);if(l?.length>0)for(let b of l)k.push((0,h.v8)(b,a));return k.push("data: [DONE]\n\n"),{success:!0,response:new Response(k.join(""),{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive","Access-Control-Allow-Origin":"*"}})}}function m(a){let{id:b,created:c,model:d,choices:e}=a;return[{id:b,object:"chat.completion.chunk",created:c,model:d,choices:[{index:0,delta:{role:"assistant",content:e[0].message.content},finish_reason:null}]},{id:b,object:"chat.completion.chunk",created:c,model:d,choices:[{index:0,delta:{},finish_reason:"stop"}],usage:a.usage}]}},6755:(a,b,c)=>{c.d(b,{i5:()=>
|
|
2
|
-
`,
|
|
3
|
-
`,c=!0}else(
|
|
4
|
-
`,c=!0)}catch{continue}c||(b=a.startsWith("data:")&&!a.startsWith("data: ")?"data: "+a.slice(5)+"\n":a+"\n"),
|
|
1
|
+
"use strict";exports.id=369,exports.ids=[369],exports.modules={2735:(a,b,c)=>{c.d(b,{c:()=>i});var d=c(17717),e=c(26502),f=c(19956),g=c(60290),h=c(6755);function i(a,b,c="",e=!1){if(!c.includes("claude-cli")||!a.messages?.length)return null;let f=a.messages,h=a=>"string"==typeof a?a:Array.isArray(a)?a.filter(a=>"text"===a.type).map(a=>a.text).join(" "):"",j=!1,m=!1,n=f[f.length-1];if(n?.role==="assistant"&&n.content?.[0]?.text==="{"&&(j=!0),j||"Warmup"===h(f[0]?.content)&&(j=!0),j||1!==f.length||f[0]?.role!=="user"||"count"===h(f[0]?.content)&&(j=!0),!j&&g.C8?.length){let a=f.filter(a=>"user"===a.role).map(a=>h(a.content)).join(" ");g.C8.some(b=>a.includes(b))&&(j=!0)}if(!j&&e){let b=f.find(a=>"system"===a.role),c=h(b?.content),d=Array.isArray(a.system)?a.system.filter(a=>"text"===a.type).map(a=>a.text).join(" "):"string"==typeof a.system?a.system:"";(c||d).includes("isNewTopic")&&(j=!0,m=!0)}if(!j)return null;let o=(0,d.Tz)(a),p=!1!==a.stream;if(m){let a=f.find(a=>"user"===a.role),c=JSON.stringify({isNewTopic:!0,title:h(a?.content).trim().split(/\s+/).slice(0,3).join(" ")});return p?l(o,b,c):k(o,b,c)}return p?l(o,b):k(o,b)}function j(a,b="CLI Command Execution: Clear Terminal"){return{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a,choices:[{index:0,message:{role:"assistant",content:b},finish_reason:"stop"}],usage:{prompt_tokens:1,completion_tokens:1,total_tokens:2}}}function k(a,b,c){let d=j(b,c);if(a===f.h.OPENAI)return{success:!0,response:new Response(JSON.stringify(d),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})};let g=(0,e.Ws)(a);g.model=b;let h=m(d),i=[];for(let b of h){let c=(0,e.Y8)(f.h.OPENAI,a,b,g);c?.length>0&&i.push(...c)}let k=(0,e.Y8)(f.h.OPENAI,a,null,g);return k?.length>0&&i.push(...k),{success:!0,response:new Response(JSON.stringify(function(a,b){if(!a||0===a.length)return j("unknown");let c=a[a.length-1];if(b===f.h.CLAUDE&&a.find(a=>"message_stop"===a.type)){a.find(a=>"content_block_delta"===a.type);let b=a.find(a=>"message_delta"===a.type),d=a.find(a=>"message_start"===a.type);if(d?.message){c=d.message;let a=d.message.usage,e=b?.usage;(a||e)&&(c.usage={...a||{},...e||{},...a?.cache_read_input_tokens!==void 0?{cache_read_input_tokens:a.cache_read_input_tokens}:{},...a?.cache_creation_input_tokens!==void 0?{cache_creation_input_tokens:a.cache_creation_input_tokens}:{},...a?.input_tokens!==void 0?{input_tokens:a.input_tokens}:{}})}}return c}(i,a)),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}function l(a,b,c){let d=j(b,c),g=(0,e.Ws)(a);g.model=b;let i=m(d),k=[];for(let b of i){let c=(0,e.Y8)(f.h.OPENAI,a,b,g);if(c?.length>0)for(let b of c)k.push((0,h.v8)(b,a))}let l=(0,e.Y8)(f.h.OPENAI,a,null,g);if(l?.length>0)for(let b of l)k.push((0,h.v8)(b,a));return k.push("data: [DONE]\n\n"),{success:!0,response:new Response(k.join(""),{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive","Access-Control-Allow-Origin":"*"}})}}function m(a){let{id:b,created:c,model:d,choices:e}=a;return[{id:b,object:"chat.completion.chunk",created:c,model:d,choices:[{index:0,delta:{role:"assistant",content:e[0].message.content},finish_reason:null}]},{id:b,object:"chat.completion.chunk",created:c,model:d,choices:[{index:0,delta:{},finish_reason:"stop"}],usage:a.usage}]}},6755:(a,b,c)=>{c.d(b,{i5:()=>p,l2:()=>q,lm:()=>h.lm,v8:()=>i.v8});var d=c(26502),e=c(19956),f=c(22208),g=c(47370),h=c(67677),i=c(45894),j=c(48330),k=c(12828);c(4905);let l=new TextEncoder,m="translate",n="passthrough";function o(a={}){let{mode:b=m,targetFormat:c,sourceFormat:p,provider:q=null,reqLogger:r=null,toolNameMap:s=null,customToolNames:t=null,model:u=null,connectionId:v=null,body:w=null,onStreamComplete:x=null,apiKey:y=null,credentials:z=null,responseModel:A=null}=a,B="",C=null,D=new TextDecoder("utf-8",{fatal:!1}),E=b===m?{...(0,d.Ws)(p),provider:q,toolNameMap:s,customToolNames:new Set(t||[]),model:u,responseModel:A,body:w,sessionId:z?._clientSessionId||null,targetFormat:c}:null,F=0,G="",H="",I=null,J=0,K=0,L={},M=null,N=!1,O=!1,P=!1,Q=!1,R=!1,S=null,T=()=>{if(S&&(clearTimeout(S),S=null),R)return;R=!0;let a=b===n,d=a?C:E?.usage;!(0,h.Gh)(d)&&F>0&&(d=(0,h.OF)(w,F,a?e.h.OPENAI:p,{buffer:!1}),a?C=d:E.usage=d),(0,h.Gh)(d)?(0,h.IF)(a?q:E?.provider||c,d,u,v,y):(0,g.E5)({model:u,provider:q,connectionId:v,tokens:null,status:"200 OK"}).catch(()=>{}),x&&x({content:G,thinking:H},d,I)},U=a=>{for(let b of(0,d.Y8)(c,p,null,E)||[]){if(null==b)continue;let c=(0,i.v8)(b,p);r?.appendConvertedChunk?.(c),a.enqueue(l.encode(c)),K++}T()};return new TransformStream({transform(a,g){I||(I=Date.now());let o=D.decode(a,{stream:!0});B+=o,r?.appendProviderChunk?.(o);let s=B.split("\n");for(let a of(B=s.pop()||"",s)){let o=a.trim();if(k.T&&o&&(J++,o.startsWith("event:"))){let a=o.slice(6).trim();L[a]=(L[a]||0)+1}if(b===m&&c===e.h.OPENAI_RESPONSES&&o.startsWith("event:")&&(M=o.slice(6).trim()),b===n){let b,c=!1,d=!1;if(o.startsWith("data:")&&"[DONE]"!==o.slice(5).trim())try{let a=JSON.parse(o.slice(5).trim()),k=(0,i.A4)(a),l=!1;if(void 0!==a.choices&&(a.object||(a.object="chat.completion.chunk",l=!0),a.created||(a.created=Math.floor(Date.now()/1e3),l=!0)),void 0!==a.prompt_filter_results&&(delete a.prompt_filter_results,l=!0),a?.choices)for(let b of a.choices)void 0!==b.content_filter_results&&(delete b.content_filter_results,l=!0);if(a?.choices)for(let b of a.choices)b.delta?.tool_calls&&Array.isArray(b.delta.tool_calls)&&0===b.delta.tool_calls.length&&(delete b.delta.tool_calls,l=!0);if(!(0,i.c2)(a,e.h.OPENAI))continue;let m=a.choices?.[0]?.delta,n=m?.content,p=(0,f.V)(m);n&&"string"==typeof n&&(F+=n.length,G+=n),p&&"string"==typeof p&&(F+=p.length,H+=p);let r=(0,h.f5)(a);r&&(C=(0,h._L)(C,r)),d=(0,j.nu)(M,a);let s=a.choices?.[0]?.finish_reason,t=a.choices?.[0]?.native_finish_reason;if(s&&t&&["network_error","error","server_error","timeout"].includes(t)&&0===F)return void g.error(Error(`Upstream stream failed: ${t}`));if(s&&Q)continue;if(s&&(Q=!0),s&&!(0,h.Gh)(a.usage)){let d=(0,h.OF)(w,F,e.h.OPENAI,{buffer:!1});a.usage=(0,h.q7)((0,h.WL)((0,h.O9)(d),e.h.OPENAI),q,u),b=`data: ${JSON.stringify(a)}
|
|
2
|
+
`,C=d,c=!0}else if(s&&C){let d=(0,h.O9)(C);a.usage=(0,h.q7)((0,h.WL)(d,e.h.OPENAI),q,u),b=`data: ${JSON.stringify(a)}
|
|
3
|
+
`,c=!0}else(k||l)&&(b=`data: ${JSON.stringify(a)}
|
|
4
|
+
`,c=!0)}catch{continue}c||(b=a.startsWith("data:")&&!a.startsWith("data: ")?"data: "+a.slice(5)+"\n":a+"\n"),r?.appendConvertedChunk?.(b),g.enqueue(l.encode(b)),d&&T();continue}if(!o)continue;if(58===o.charCodeAt(0)){g.enqueue(l.encode(": keepalive\n\n"));continue}let s=(0,i.tV)(o,c);if(!s)continue;let t=c===e.h.OPENAI_RESPONSES,v=t&&p===e.h.OPENAI_RESPONSES,x=t?(0,j.yx)(M,s):null;if(t&&(0,j.nu)(x,s)&&(N=!0),s&&s.done&&c!==e.h.OLLAMA){if(c===e.h.OPENAI&&p===e.h.OPENAI_RESPONSES&&E.completionPending&&!E.completedSent&&U(g),v&&!N){let a=(0,j.u9)();r?.appendConvertedChunk?.(a),g.enqueue(l.encode(a)),N=!0,K++}if(v&&!P){let a="data: [DONE]\n\n";r?.appendConvertedChunk?.(a),g.enqueue(l.encode(a))}P=!0,v&&(O=!0);continue}s.delta?.text&&(F+=s.delta.text.length,G+=s.delta.text),s.delta?.thinking&&(F+=s.delta.thinking.length,H+=s.delta.thinking),s.choices?.[0]?.delta?.content&&(F+=s.choices[0].delta.content.length,G+=s.choices[0].delta.content);let y=(0,f.V)(s.choices?.[0]?.delta);if(y&&(F+=y.length,H+=y),"string"==typeof s.delta&&"string"==typeof s.type&&("response.output_text.delta"===s.type?(F+=s.delta.length,G+=s.delta):("response.reasoning_summary_text.delta"===s.type||"response.reasoning_text.delta"===s.type)&&(F+=s.delta.length,H+=s.delta)),s.candidates?.[0]?.content?.parts)for(let a of s.candidates[0].content.parts)a.text&&"string"==typeof a.text&&(F+=a.text.length,!0===a.thought?H+=a.text:G+=a.text);let z=(0,h.f5)(s);if(z&&(E.usage=(0,h._L)(E.usage,z)),v&&x){let a=(0,i.v8)({event:x,data:s},p);r?.appendConvertedChunk?.(a),g.enqueue(l.encode(a)),M=null,K++,N&&T();continue}M=null;let A=(0,d.Y8)(c,p,s,E);if(A?._openaiIntermediate)for(let a of A._openaiIntermediate){let b=(0,i.v8)(a,e.h.OPENAI);r?.appendOpenAIChunk?.(b)}if(A?.length>0)for(let a of A){if(null==a||!(0,i.c2)(a,p))continue;let b="message_delta"===a.type||a.choices?.[0]?.finish_reason;if(E.finishReason&&b&&!(0,h.Gh)(a.usage)&&F>0){let b=(0,h.OF)(w,F,p,{buffer:!1});a.usage=(0,h.q7)((0,h.WL)((0,h.O9)(b),p),q,u),E.usage=b}else if(E.finishReason&&b&&E.usage){let b=(0,h.O9)(E.usage);a.usage=(0,h.q7)((0,h.WL)(b,p),q,u)}let c=(0,i.v8)(a,p);r?.appendConvertedChunk?.(c),g.enqueue(l.encode(c)),K++}c===e.h.OPENAI&&p===e.h.OPENAI_RESPONSES&&E?.completionPending&&!E?.completedSent&&!S&&(S=setTimeout(()=>{if(S=null,!E?.completedSent)try{U(g)}catch{}},3e3))}},flush(a){let f=Object.entries(L).map(([a,b])=>`${a}=${b}`).join(",")||"none";(0,k.s)("SSE",`flush | provider=${q} | model=${u} | recvLines=${J} | emitted=${K} | events=[${f}]`),(0,g.uw)(u,q,v,!1);try{let f=D.decode();if(f&&(B+=f),b===n){if(B){let b=B;B.startsWith("data:")&&!B.startsWith("data: ")&&(b="data: "+B.slice(5)),r?.appendConvertedChunk?.(b),a.enqueue(l.encode(b))}let b="antigravity"===q||"gemini"===q||"vertex"===q;if(!P&&!b){let b="data: [DONE]\n\n";r?.appendConvertedChunk?.(b),a.enqueue(l.encode(b))}T();return}if(B.trim()){let b=(0,i.tV)(B.trim(),c),f=b?.done&&c!==e.h.OLLAMA;if(b&&!f){let f=(0,h.f5)(b);f&&(E.usage=(0,h._L)(E.usage,f));let g=(0,d.Y8)(c,p,b,E);if(g?._openaiIntermediate)for(let a of g._openaiIntermediate){let b=(0,i.v8)(a,e.h.OPENAI);r?.appendOpenAIChunk?.(b)}if(g?.length>0)for(let b of g){if(null==b)continue;let c=(0,i.v8)(b,p);r?.appendConvertedChunk?.(c),a.enqueue(l.encode(c))}}}let g=(0,d.Y8)(c,p,null,E);if(g?._openaiIntermediate)for(let a of g._openaiIntermediate){let b=(0,i.v8)(a,e.h.OPENAI);r?.appendOpenAIChunk?.(b)}if(g?.length>0)for(let b of g){if(null==b)continue;let c=(0,i.v8)(b,p);r?.appendConvertedChunk?.(c),a.enqueue(l.encode(c))}let k=c===e.h.OPENAI_RESPONSES&&p===e.h.OPENAI_RESPONSES;if(k&&!N){let b=(0,j.u9)();r?.appendConvertedChunk?.(b),a.enqueue(l.encode(b)),N=!0}if((p===e.h.OPENAI||k)&&!O&&!P){let b="data: [DONE]\n\n";r?.appendConvertedChunk?.(b),a.enqueue(l.encode(b)),O=!0,P=!0}T()}catch(a){console.log("Error in flush:",a),T()}},cancel(){try{T()}catch(a){console.log("Error in cancel:",a)}}})}function p(a,b,c=null,d=null,e=null,f=null,g=null,h=null,i=null,j=null,k=null,l=null,n=null){return o({mode:m,targetFormat:a,sourceFormat:b,provider:c,reqLogger:d,toolNameMap:e,customToolNames:k,model:f,connectionId:g,body:h,onStreamComplete:i,apiKey:j,credentials:l,responseModel:n})}function q(a=null,b=null,c=null,d=null,e=null,f=null,g=null){return o({mode:n,provider:a,reqLogger:b,model:c,connectionId:d,body:e,onStreamComplete:f,apiKey:g})}},15575:(a,b,c)=>{c.d(b,{Jb:()=>g,jd:()=>f});var d=c(60290),e=c(12828);function f({onDisconnect:a,onError:b,log:c,provider:d,model:g,reqTag:h=""}={}){let i=new AbortController,j=Date.now(),k=!1,l=null,m=(a,b,e=!1)=>{let f=Date.now()-j,i=e?c?.errorLine:c?.line;i?i(h,a,`${b} \xb7 ${d}/${g} \xb7 ${f}ms`):console.log(`[${new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}] ${a} ${d}/${g} \xb7 ${b} \xb7 ${f}ms`)};return{signal:i.signal,startTime:j,isConnected:()=>!k,handleDisconnect:(b="client_closed")=>{k||(k=!0,(0,e.s)("CTRL",`${d}/${g} | disconnect=${b} | dur=${Date.now()-j}ms`),l=setTimeout(()=>{i.abort()},500),a?.({reason:b,duration:Date.now()-j}))},handleComplete:()=>{!k&&(k=!0,l&&(clearTimeout(l),l=null))},handleError:a=>{if(!k){if(k=!0,l&&(clearTimeout(l),l=null),"AbortError"===a.name)return void m("⚡","ABORTED");m("✗",`ERROR: ${a.message}${a.stack?`
|
|
5
5
|
${a.stack}`:""}`,!0),b?.(a)}},abort:()=>i.abort()}}function g(a,b,c,f=null,h=d.xM,i=d.UH,j=d.Z1,k=null,l=15e3){let m=null,n=null,o=null,p=0,q=0,r=Date.now(),s="upstream connection lost",t=Date.now(),u="STREAM",v=d.UH,w=d.Z1,x=null,y=15e3;i instanceof Uint8Array||i&&"object"==typeof i&&"buffer"in i||null===i&&"number"==typeof j&&15e3===j?(x=i,y="number"==typeof j?j:15e3):("number"==typeof i&&(v=i),"number"==typeof j&&(w=j),k&&(x=k),"number"==typeof l&&(y=l));let z=()=>{o&&(clearTimeout(o),o=null)},A=()=>{m&&(clearTimeout(m),m=null)},B=()=>{n&&(clearInterval(n),n=null)},C=()=>{A(),m=setTimeout(()=>{m=null,B(),s="stream stall timeout",(0,e.s)(u,`STALL TIMEOUT ${h}ms | chunks=${p} | bytes=${q} | sinceLast=${Date.now()-r}ms`),c.handleError?.(Error("stream stall timeout")),c.abort?.()},h)},D={signal:c.signal,startTime:c.startTime,isConnected:()=>c.isConnected(),handleComplete:()=>{(0,e.s)(u,`complete | chunks=${p} | bytes=${q} | dur=${Date.now()-t}ms`),z(),A(),B(),c.handleComplete()},handleError:a=>{(0,e.s)(u,`error: ${a?.message} | chunks=${p} | bytes=${q} | dur=${Date.now()-t}ms`),z(),A(),B(),c.handleError(a)},handleDisconnect:a=>{(0,e.s)(u,`disconnect: ${a} | chunks=${p} | bytes=${q} | dur=${Date.now()-t}ms`),z(),A(),B(),c.handleDisconnect(a)},abort:()=>{z(),A(),B(),c.abort()}};z(),o=setTimeout(()=>{o=null,(0,e.s)(u,`TTFT TIMEOUT ${w}ms | no bytes received`),c.handleError?.(Error(`stream ttft timeout (${w}ms)`)),c.abort?.()},w),C(),(0,e.s)(u,`pipe start | ttftTimeout=${w}ms | stallTimeout=${h}ms | keepalive=${v}ms`);let E=new TextEncoder().encode("event: ping\ndata: {}\n\n"),F=new TransformStream({start(a){v>0&&(n=setInterval(()=>{if(0===p&&c.isConnected()){(0,e.s)(u,`keepalive ping sent (silence=${Date.now()-t}ms)`);try{a.enqueue(E)}catch{B()}}else B()},v))},transform(a,b){p++,B();let c=a?.byteLength||a?.length||0;q+=c;let d=Date.now(),f=d-r;r=d,e.T&&(p<=5||p%20==0||f>5e3)&&(0,e.s)(u,`chunk #${p} | size=${c}B | gap=${f}ms | total=${q}B`),z(),C(),b.enqueue(a)},flush(){(0,e.s)(u,`upstream EOF | chunks=${p} | bytes=${q} | dur=${Date.now()-t}ms`),A(),B()}}),G=0,H=new TransformStream({transform(a,b){G+=a?.byteLength||a?.length||0,b.enqueue(a)},flush(a){if(G>0)return;(0,e.s)(u,`EMPTY STREAM — upstream chunks=${p} bytes=${q}; emitting error frame`);let b=JSON.stringify({error:{message:"Upstream returned an empty stream — no content was produced. The provider connection may be unauthenticated or unavailable.",type:"upstream_empty_response",code:"empty_stream"}});a.enqueue(new TextEncoder().encode(`data: ${b}
|
|
6
6
|
|
|
7
7
|
data: [DONE]
|
|
8
8
|
|
|
9
|
-
`))}});return function(a,b,c=null,d=null,e=15e3){let f=a.readable.getReader(),g=a.writable.getWriter(),h=!1,i=null,j=Date.now(),k=!1,l=()=>{i&&(clearInterval(i),i=null)},m=a=>{if(!h&&c){h=!0;try{let b=c();b&&null!==a.desiredSize&&a.enqueue(b)}catch{}}};return new ReadableStream({start(a){d&&e>0&&(i=setInterval(()=>{if(k||!b.isConnected()||null===a.desiredSize)return void l();if(Date.now()-j>=e)try{a.enqueue(d),j=Date.now()}catch{l()}},Math.min(e,5e3)))},async pull(a){if(!b.isConnected()){l(),m(a),a.close();return}try{let{done:c,value:d}=await f.read();if(c){l(),k=!0,b.handleComplete(),a.close();return}j=Date.now(),a.enqueue(d)}catch(n){l(),k=!0;let d=b.isConnected(),e=n?.message||"";e.includes("already closed")||e.includes("Invalid state")||b.handleError(n),f.cancel().catch(()=>{}),g.abort().catch(()=>{});let h=n?.message||"",i=n?.code||n?.cause?.code||"",j="AbortError"===n.name||h.includes("aborted")||h.includes("socket hang up")||h.includes("ECONNRESET")||h.includes("ETIMEDOUT")||h.includes("EPIPE")||"ECONNRESET"===i||"ETIMEDOUT"===i||"EPIPE"===i||"UND_ERR_SOCKET"===i;try{!d||j||c?(m(a),a.close()):a.error(n)}catch(a){}}},cancel(a){l(),k=!0,b.handleDisconnect(a||"cancelled"),f.cancel(),g.abort()}})}({readable:a.body.pipeThrough(F).pipeThrough(b).pipeThrough(H),writable:{getWriter:()=>({abort:()=>Promise.resolve()})}},D,f?()=>f(s):null,x,y)}},21148:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(39141);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},30369:(a,b,c)=>{c.d(b,{SB:()=>d.SB}),c(89843),c(4630),c(28730),c(60290),c(29485),c(19956),c(26502),c(17717),c(66451),c(49263),c(85640),c(18129),c(
|
|
9
|
+
`))}});return function(a,b,c=null,d=null,e=15e3){let f=a.readable.getReader(),g=a.writable.getWriter(),h=!1,i=null,j=Date.now(),k=!1,l=()=>{i&&(clearInterval(i),i=null)},m=a=>{if(!h&&c){h=!0;try{let b=c();b&&null!==a.desiredSize&&a.enqueue(b)}catch{}}};return new ReadableStream({start(a){d&&e>0&&(i=setInterval(()=>{if(k||!b.isConnected()||null===a.desiredSize)return void l();if(Date.now()-j>=e)try{a.enqueue(d),j=Date.now()}catch{l()}},Math.min(e,5e3)))},async pull(a){if(!b.isConnected()){l(),m(a),a.close();return}try{let{done:c,value:d}=await f.read();if(c){l(),k=!0,b.handleComplete(),a.close();return}j=Date.now(),a.enqueue(d)}catch(n){l(),k=!0;let d=b.isConnected(),e=n?.message||"";e.includes("already closed")||e.includes("Invalid state")||b.handleError(n),f.cancel().catch(()=>{}),g.abort().catch(()=>{});let h=n?.message||"",i=n?.code||n?.cause?.code||"",j="AbortError"===n.name||h.includes("aborted")||h.includes("socket hang up")||h.includes("ECONNRESET")||h.includes("ETIMEDOUT")||h.includes("EPIPE")||"ECONNRESET"===i||"ETIMEDOUT"===i||"EPIPE"===i||"UND_ERR_SOCKET"===i;try{!d||j||c?(m(a),a.close()):a.error(n)}catch(a){}}},cancel(a){l(),k=!0,b.handleDisconnect(a||"cancelled"),f.cancel(),g.abort()}})}({readable:a.body.pipeThrough(F).pipeThrough(b).pipeThrough(H),writable:{getWriter:()=>({abort:()=>Promise.resolve()})}},D,f?()=>f(s):null,x,y)}},21148:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(39141);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},30369:(a,b,c)=>{c.d(b,{SB:()=>d.SB}),c(89843),c(4630),c(28730),c(60290),c(29485),c(19956),c(26502),c(17717),c(66451),c(49263),c(85640),c(18129),c(49738),c(15575);var d=c(79026);c(89865),c(6755)},48330:(a,b,c)=>{c.d(b,{Hr:()=>k,nu:()=>i,u9:()=>l,yx:()=>h});var d=c(19956),e=c(89568),f=c(45894);let g=new Set(["response.completed","response.done","response.incomplete","response.failed","response.error","error"]);function h(a,b){return a||(b&&"string"==typeof b.type?b.type:null)}function i(a,b){let c=h(a,b);if(g.has(c))return!0;let d=b?.response?.status;return"completed"===d||"failed"===d}let j=new TextEncoder;function k(a=null){let b=l(a);return b?(a&&(a.doneSent=!0),j.encode(`${b}data: [DONE]
|
|
10
10
|
|
|
11
|
-
`)):a?.finalized&&!a.doneSent?(a.doneSent=!0,j.encode("data: [DONE]\n\n")):null}function l(a=null){let b=a||(0,e.lJ)(),c=(0,e.Hd)(b,{error:{type:"stream_error",code:"stream_disconnected",message:"stream closed before response.completed"}});return c.accepted?(0,f.v8)({event:"response.failed",data:{type:"response.failed",response:c.response}},d.h.OPENAI_RESPONSES):""}},62662:(a,b,c)=>{c.d(b,{d:()=>e});let d=new Set(["retry-after","x-should-retry"]);function e(a){let b={};return"function"!=typeof a?.forEach||a.forEach((a,c)=>{let e=c.toLowerCase();(d.has(e)||e.startsWith("anthropic-ratelimit-"))&&(b[e]=a)}),b}},85604:(a,b,c)=>{c.d(b,{wk:()=>bW});var d=c(17717),e=c(26502),f=c(94454),g=c(19956),h=c(25830),i=c(50186);let j=new Set([g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX,g.h.ANTIGRAVITY,g.h.OLLAMA,g.h.KIRO]);function k(a){return"string"==typeof a&&(a.startsWith("http://")||a.startsWith("https://"))}async function l(a,b,c,d={}){if(!a||!j.has(c))return 0;let e=function(a,b){let c=[],d=a=>{for(let b of a||[])if(Array.isArray(b.content)){for(let a of b.content)if(a?.type==="image_url"){let b="string"==typeof a.image_url?a.image_url:a.image_url?.url;k(b)&&c.push({get:()=>b,set:b=>{"string"==typeof a.image_url?a.image_url=b:a.image_url.url=b}})}}},e=a=>{for(let b of a||[])for(let a of b.parts||[]){let b=a?.fileData?.fileUri;k(b)&&c.push({get:()=>b,part:a})}};switch(b){case g.h.OPENAI:case g.h.OLLAMA:case g.h.KIRO:case g.h.CURSOR:case g.h.COMMANDCODE:d(a.messages);break;case g.h.CLAUDE:for(let b of a.messages||[])if(Array.isArray(b.content))for(let a of b.content)a?.type==="image"&&a.source?.type==="url"&&k(a.source.url)&&c.push({get:()=>a.source.url,claudeBlock:a});break;case g.h.GEMINI:case g.h.GEMINI_CLI:case g.h.VERTEX:e(a.contents);break;case g.h.ANTIGRAVITY:e(a?.request?.contents);break;default:d(a.messages)}return c}(a,b);if(!e.length)return 0;let f=0;for(let a of e){let b=a.get();if((0,i.W$)(b))continue;let c=await (0,i.ni)(b,d);c&&(a.set?a.set(c.url):a.part?(delete a.part.fileData,a.part.inlineData={mimeType:c.mimeType,data:c.url.split(",")[1]}):a.claudeBlock&&(a.claudeBlock.source={type:"base64",media_type:c.mimeType,data:c.url.split(",")[1]}),f++)}return f}var m=c(15575),n=c(85640);let o="u">typeof process&&process.versions?.node&&!0,p="u">typeof process&&process.env?.ENABLE_REQUEST_LOGS==="true",q=null,r=null,s=null;async function t(){if(o&&p&&!q)try{q=await Promise.resolve().then(c.t.bind(c,29021,19)),s=(r=await Promise.resolve().then(c.t.bind(c,33873,19))).join("u">typeof process&&process.cwd?process.cwd():".","logs")}catch{}}async function u(a,b,c){if(await t(),!q||!s)return null;try{q.existsSync(s)||q.mkdirSync(s,{recursive:!0,mode:448});let d=function(a=new Date){let b=a=>String(a).padStart(2,"0"),c=a.getFullYear(),d=b(a.getMonth()+1),e=b(a.getDate()),f=b(a.getHours()),g=b(a.getMinutes()),h=b(a.getSeconds()),i=String(a.getMilliseconds()).padStart(3,"0");return`${c}${d}${e}_${f}${g}${h}_${i}`}(),e=(c||"unknown").replace(/[/:]/g,"-"),f=`${a}_${b}_${e}_${d}`,g=r.join(s,f);return q.mkdirSync(g,{recursive:!0,mode:448}),g}catch(a){return console.log("[LOG] Failed to create log session:",a.message),null}}function v(a,b,c){if(q&&a)try{let d=r.join(a,b);q.writeFileSync(d,JSON.stringify(c,null,2),{mode:384})}catch(a){console.log(`[LOG] Failed to write ${b}:`,a.message)}}let w=["authorization","api-key","cookie","token","secret"];function x(a){if(!a)return{};let b="function"==typeof a.entries?a.entries():Object.entries(a),c={};for(let[a,d]of b){let b=a.toLowerCase();if(w.some(a=>b.includes(a))){if(null==d)continue;let b=String(d);c[a]=b.length>20?b.slice(0,10)+"..."+b.slice(-5):"***"}else c[a]=d}return c}async function y(a,b,c){if(!p)return{sessionPath:null,logClientRawRequest(){},logRawRequest(){},logOpenAIRequest(){},logTargetRequest(){},logProviderResponse(){},appendProviderChunk(){},appendOpenAIChunk(){},logConvertedResponse(){},appendConvertedChunk(){},logError(){}};let d=await u(a,b,c);return{get sessionPath(){return d},logClientRawRequest(a,b,c={}){v(d,"1_req_client.json",{timestamp:new Date().toISOString(),endpoint:a,headers:x(c),body:b})},logRawRequest(a,b={}){v(d,"2_req_source.json",{timestamp:new Date().toISOString(),headers:x(b),body:a})},logOpenAIRequest(a){v(d,"3_req_openai.json",{timestamp:new Date().toISOString(),body:a})},logTargetRequest(a,b,c){v(d,"4_req_target.json",{timestamp:new Date().toISOString(),url:a,headers:x(b),body:c})},logProviderResponse(a,b,c,e){v(d,"5_res_provider.json",{timestamp:new Date().toISOString(),status:a,statusText:b,headers:x(c),body:e})},appendProviderChunk(a){if(q&&d)try{let b=r.join(d,"5_res_provider.txt");q.appendFileSync(b,a,{mode:384})}catch(a){}},appendOpenAIChunk(a){if(q&&d)try{let b=r.join(d,"6_res_openai.txt");q.appendFileSync(b,a,{mode:384})}catch(a){}},logConvertedResponse(a){v(d,"7_res_client.json",{timestamp:new Date().toISOString(),body:a})},appendConvertedChunk(a){if(q&&d)try{let b=r.join(d,"7_res_client.txt");q.appendFileSync(b,a,{mode:384})}catch(a){}},logError(a,b=null){v(d,"6_error.json",{timestamp:new Date().toISOString(),error:a?.message||String(a),stack:a?.stack,requestBody:b})}}}var z=c(29485),A=c(4630),B=c(89865),C=c(62662),D=c(60290),E=c(2735),F=c(47370),G=c(79026),H=c(13247),I=c(6755),J=c(67677);let K=["temperature","top_p","top_k","max_tokens","max_completion_tokens","thinking","reasoning","enable_thinking","presence_penalty","frequency_penalty","seed","stop","tools","tool_choice","response_format","prediction","store","metadata","n","logprobs","top_logprobs","logit_bias","user","parallel_tool_calls"];function L(a,b){let c={messages:a.messages||[],model:a.model,stream:b};for(let b of K)void 0!==a[b]&&(c[b]=a[b]);return c}function M(a,b={}){return{provider:a.provider||"unknown",model:a.model||"unknown",connectionId:a.connectionId||void 0,timestamp:new Date().toISOString(),latency:a.latency||{ttft:0,total:0},tokens:a.tokens||{prompt_tokens:0,completion_tokens:0},request:a.request,providerRequest:a.providerRequest||null,providerResponse:a.providerResponse||null,response:a.response||{},pxpipe:a.pxpipe||void 0,status:a.status||"success",...b}}function N({usage:a,latency:b}){let c=a||{},d=c.prompt_tokens??c.input_tokens??0,e=c.completion_tokens??c.output_tokens??0,f=c.cache_read_input_tokens??c.cached_tokens??c.prompt_tokens_details?.cached_tokens??0,g=c.cache_creation_input_tokens??0,h=`IN ${d}`;if(f||g){let a=[];f&&a.push(`↻${f}`),g&&a.push(`+${g}`),h+=` (CACHE ${a.join(" ")})`}let i=b?.ttft?` \xb7 TTFT ${b.ttft}ms`:"";return`DONE ${b?.total??0}ms${i} \xb7 ${h} \xb7 OUT ${e}`}function O({provider:a,model:b,tokens:c,connectionId:d,apiKey:e,endpoint:f,requestedModel:g,status:h,pricingMultiplier:i=1,label:j="USAGE",silent:k=!1}){if(!c||"object"!=typeof c)return;let l=c.input_tokens??c.prompt_tokens??0,m=c.output_tokens??c.completion_tokens??0;if(0===l&&0===m)return;if(!k){let b=new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),c=d?` | account=${d.slice(0,8)}...`:"";console.log(`${I.lm.green}[${b}] 📊 [${j}] ${a.toUpperCase()} | in=${l} | out=${m}${c}${I.lm.reset}`)}let n=(0,J._6)(c)||{prompt_tokens:c.prompt_tokens??c.input_tokens??0,completion_tokens:c.completion_tokens??c.output_tokens??0};1!==i&&(n.pricing_multiplier=i),(0,F.sZ)({provider:a||"unknown",model:b||"unknown",tokens:n,timestamp:new Date().toISOString(),connectionId:d||void 0,apiKey:e||void 0,endpoint:f||null,requestedModel:g||void 0,status:h||"ok"}).catch(()=>{})}var P=c(89568);function Q(a,b){let c;if(!a.trim())return;let d=a.match(/^event:\s*(.+)$/m),e=a.match(/^data:\s*(.+)$/m);if(!e)return;let f=e[1].trim();if("[DONE]"!==f){try{c=JSON.parse(f)}catch{return}(0,P.rY)(b,{event:d?.[1]?.trim()||c.type,data:c})}}let R={input_tokens:0,output_tokens:0,total_tokens:0};async function S(a){let b=(0,P.lJ)();if(!a||"function"!=typeof a.getReader)return{...(0,P.Hd)(b,{error:T("invalid_stream","response stream is unavailable")}).response,usage:{...R}};let c=a.getReader(),d=new TextDecoder,e="",f=null;try{for(;;){let{done:a,value:f}=await c.read();if(a)break;let g=(e+=d.decode(f,{stream:!0})).split("\n\n");for(let a of(e=g.pop()||"",g))Q(a,b)}e.trim()&&Q(e,b)}catch(a){f=a}finally{c.releaseLock()}b.finalized||(0,P.Hd)(b,{error:T(f?"stream_read_error":"stream_disconnected",f?.message||"stream closed before a terminal response event")});let g=b.terminalResponse;return{...g,usage:g.usage||{...R}}}function T(a,b){return{type:"stream_error",code:a,message:b}}var U=c(69656),V=c(18226),W=c(98173),X=c(45136),Y=c(6499);function Z(a){if(!a||"message"===a.type&&Array.isArray(a.content)||!a.choices?.[0])return a;let b=a.choices[0],c=b.message||{},d=[],e=c.reasoning_content||c.provider_specific_fields?.reasoning_content||"";for(let a of(e&&d.push({type:"thinking",thinking:e,signature:Y.xr}),"string"==typeof c.content&&c.content.length>0&&d.push({type:"text",text:c.content}),c.tool_calls||[])){let b=a.function||{};d.push({type:"tool_use",id:a.id||`toolu_${Date.now()}_${d.length}`,name:b.name||a.name||"",input:function(a){if(!a)return{};if("object"==typeof a)return a;try{return JSON.parse(a)}catch{return{}}}(b.arguments||a.arguments)})}0===d.length&&d.push({type:"text",text:""});let f=a.usage||{},h={input_tokens:f.prompt_tokens||f.input_tokens||0,output_tokens:f.completion_tokens||f.output_tokens||0},i=f.cache_read_input_tokens||f.cached_tokens;return"number"==typeof i&&i>0&&(h.cache_read_input_tokens=i),"number"==typeof f.cache_creation_input_tokens&&f.cache_creation_input_tokens>0&&(h.cache_creation_input_tokens=f.cache_creation_input_tokens),{id:String(a.id||`msg_${Date.now()}`).replace(/^chatcmpl-/,""),type:"message",role:"assistant",model:a.model||"unknown",content:d,stop_reason:(0,W.Q)(b.finish_reason,g.h.CLAUDE),stop_sequence:null,usage:h}}let $=a=>A.xq[a]?.format===g.h.OPENAI_RESPONSES;function _(a){if(!a?.content||!Array.isArray(a.content))return"";let b=a.content.find(a=>"output_text"===a.type);if("string"==typeof b?.text)return b.text;let c=a.content.find(a=>"string"==typeof a.text);return"string"==typeof c?.text?c.text:""}function aa(a){if(!Array.isArray(a))return{msgItem:null,textContent:null};let b=a.filter(a=>a?.type==="message");if(0===b.length)return{msgItem:null,textContent:null};for(let a=b.length-1;a>=0;a--){let c=_(b[a]);if(c.length>0)return{msgItem:b[a],textContent:c}}let c=b[b.length-1];return{msgItem:c,textContent:_(c)}}function ab(a,b=null){let c=a?.choices?.[0];if(!c)return a;let d=c.message||{},e=[],f=d.reasoning_content||d.reasoning;"string"==typeof f&&f.length>0&&e.push({type:V.Du.REASONING,summary:[{type:V.Du.SUMMARY_TEXT,text:f}]});let g="string"==typeof d.content?d.content:"";for(let a of(g.length>0&&e.push({type:V.Du.MESSAGE,role:V.z7.ASSISTANT,content:[{type:V.Du.OUTPUT_TEXT,text:g,annotations:[]}]}),d.tool_calls||[])){let c=a.function||{},d=b?.has(c.name);e.push({type:d?V.Du.CUSTOM_TOOL_CALL:V.Du.FUNCTION_CALL,id:`${d?"ctc":"fc"}_${a.id||""}`,call_id:a.id||"",name:c.name||"",...d?{input:function(a){let b="string"==typeof a?a:JSON.stringify(a||{});try{let a=JSON.parse(b);if(a&&"object"==typeof a&&"string"==typeof a.input)return a.input}catch{}return b}(c.arguments)}:{arguments:"string"==typeof c.arguments?c.arguments:JSON.stringify(c.arguments||{})}})}let h=a.usage||{};return{id:`resp_${a.id||""}`.replace(/^resp_chatcmpl-/,"resp_"),object:"response",created_at:a.created||Math.floor(Date.now()/1e3),model:a.model||"unknown",status:"completed",background:!1,error:null,output:e,usage:{input_tokens:h.prompt_tokens||h.input_tokens||0,output_tokens:h.completion_tokens||h.output_tokens||0,total_tokens:h.total_tokens||(h.prompt_tokens||0)+(h.completion_tokens||0)}}}function ac(a,b){let c=[],d=null;for(let b of String(a||"").split("\n")){let a=b.trim();if(!a.startsWith("data:"))continue;let e=a.slice(5).trim();if(e&&"[DONE]"!==e)try{let a=JSON.parse(e);a?.error?d=a.error:c.push(a)}catch{}}if(d)return{error:d};if(0===c.length)return null;let e=c[0],f=[],g=[],h=new Map,i="stop",j=null;for(let a of c){let b=a?.choices?.[0],c=b?.delta||{};if("string"==typeof c.content&&c.content.length>0&&f.push(c.content),"string"==typeof c.reasoning_content&&c.reasoning_content.length>0&&g.push(c.reasoning_content),b?.finish_reason&&(i=b.finish_reason),a?.usage&&"object"==typeof a.usage&&(j=a.usage),Array.isArray(c.tool_calls))for(let a of c.tool_calls){let b=a.index??0;h.has(b)||h.set(b,{id:a.id||"",type:"function",function:{name:"",arguments:""}});let c=h.get(b);a.id&&(c.id=a.id),a.function?.name&&(c.function.name+=a.function.name),a.function?.arguments&&(c.function.arguments+=a.function.arguments)}}let k={role:"assistant",content:f.join("")||(h.size>0?null:"")};g.length>0&&(k.reasoning_content=g.join("")),h.size>0&&(k.tool_calls=[...h.entries()].sort((a,b)=>a[0]-b[0]).map(([,a])=>a));let l=c[c.length-1]?.choices?.[0],m=l?.native_finish_reason;if(m&&["network_error","error","server_error","timeout"].includes(m)&&0===f.length&&0===h.size)return{error:{message:`Upstream stream failed: ${m}`,code:m}};let n={id:e.id||`chatcmpl-${Date.now()}`,object:"chat.completion",created:e.created||Math.floor(Date.now()/1e3),model:e.model||b||"unknown",choices:[{index:0,message:k,finish_reason:i}]};return j&&(n.usage=j),n}function ad(a,b){let c={},d=[],e=null;for(let b of String(a||"").split("\n")){let a=b.trim();if(!a.startsWith("data:"))continue;let f=a.slice(5).trim();if(f&&"[DONE]"!==f)try{let a=JSON.parse(f);if(a?.error)e=a.error;else{let b=(0,X.o)(a,c);b&&d.push(...b)}}catch{}}if(e)return{error:e};if(0===d.length)return null;let f=ac(d.map(a=>`data: ${JSON.stringify(a)}`).join("\n"),b);return f&&c.usage&&!f.usage&&(f.usage=c.usage),f}async function ae({providerResponse:a,sourceFormat:b,targetFormat:c,provider:d,model:e,statisticsModel:f,body:h,stream:i,translatedBody:j,finalBody:k,requestStartTime:l,connectionId:m,apiKey:n,clientRawRequest:o,onRequestSuccess:p,customToolNames:q,toolNameMap:r,trackDone:s,appendLog:t,reqTag:u,log:v,pricingMultiplier:w}){let x=f||e,y=a.headers.get("content-type")||"";if(!(y.includes("text/event-stream")||""===y&&$(d)))return null;s();let z={provider:d,model:x,connectionId:m,request:L(h,i),providerRequest:k||j||null},C=[g.h.ANTIGRAVITY,g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX].includes(c)||[g.h.ANTIGRAVITY,g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX].includes(A.xq[d]?.format);if($(d)||c===g.h.OPENAI_RESPONSES||C)try{let c,f;if(C){let b=ad(await a.text(),e);if(!b)return(0,B.A1)(D.gx.BAD_GATEWAY,"Invalid Gemini SSE response for non-streaming request");if(b.error)return(0,B.A1)(D.gx.BAD_GATEWAY,b.error.message||"Upstream SSE stream failed");c=ab(b,q)}else c=await S(a.body);p&&await p();let h=c.usage||{};t({tokens:h,status:"200 OK"}),O({provider:d,model:x,tokens:h,connectionId:m,apiKey:n,endpoint:o?.endpoint,pricingMultiplier:w,silent:!0}),v?.line&&v.line(u,"\uD83D\uDCCA",N({usage:h,latency:{total:Date.now()-l}}));let i=(h.input_tokens||0)+(h.cache_read_input_tokens||h.cached_tokens||0)+(h.cache_creation_input_tokens||0),{msgItem:j,textContent:k}=aa(c.output),s=Date.now()-l;if((0,F.ox)(M({...z,latency:{ttft:s,total:s},tokens:{prompt_tokens:i,completion_tokens:h.output_tokens||0},response:{content:k,thinking:null,finish_reason:c.status||"unknown"},status:"success"},{endpoint:o?.endpoint||null})).catch(()=>{}),b===g.h.OPENAI_RESPONSES){let a=new Response(JSON.stringify((0,U.HR)(c,r)),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});return a.success=!0,a.response=a,a}let y=h.cache_read_input_tokens||h.cached_tokens||0,A=h.cache_creation_input_tokens||0,E=(h.input_tokens||0)+y+A,G=h.output_tokens||0,H=y>0||A>0?{prompt_tokens_details:{...y>0?{cached_tokens:y}:{},...A>0?{cache_creation_tokens:A}:{}}}:{},I=(c.output||[]).filter(a=>"function_call"===a.type).map((a,b)=>({id:a.call_id||`call_${a.name}_${Date.now()}_${b}`,type:"function",function:{name:a.name,arguments:"string"==typeof a.arguments?a.arguments:JSON.stringify(a.arguments||{})}})),J=I.length>0;if(b===g.h.ANTIGRAVITY||b===g.h.GEMINI||b===g.h.GEMINI_CLI)f={response:{candidates:[{content:{role:"model",parts:[{text:k||""}]},finishReason:"STOP",index:0}],usageMetadata:{promptTokenCount:E,candidatesTokenCount:G,totalTokenCount:E+G},modelVersion:e,responseId:c.id||`resp_${Date.now()}`}};else if(b===g.h.CLAUDE){let a={role:"assistant",content:k||(J?null:"")};J&&(a.tool_calls=I);let b=(c.output||[]).filter(a=>a?.type==="reasoning").map(a=>(a.summary||[]).map(a=>a.text||"").join("")).join("");b&&(a.reasoning_content=b);let d="completed"===c.status||"done"===c.status,g=J?"tool_calls":d?"stop":c.status||"stop",h={id:c.id||`chatcmpl-${Date.now()}`,object:"chat.completion",created:c.created_at||Math.floor(Date.now()/1e3),model:c.model||e,choices:[{index:0,message:a,finish_reason:g}],usage:{prompt_tokens:E,completion_tokens:G,total_tokens:E+G,...H}};f=Z(h)}else{let a={role:"assistant",content:k||(J?null:"")};J&&(a.tool_calls=I);let b="completed"===c.status||"done"===c.status,d=J?"tool_calls":b?"stop":c.status||"stop";f={id:c.id||`chatcmpl-${Date.now()}`,object:"chat.completion",created:c.created_at||Math.floor(Date.now()/1e3),model:c.model||e,choices:[{index:0,message:a,finish_reason:d}],usage:{prompt_tokens:E,completion_tokens:G,total_tokens:E+G,...H}}}let K=new Response(JSON.stringify((0,U.HR)(f,r)),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});return K.success=!0,K.response=K,K}catch(a){return console.error("[ChatCore] Responses API SSE→JSON failed:",a),(0,B.A1)(D.gx.BAD_GATEWAY,"Failed to convert streaming response to JSON")}try{let c=await a.text(),f=ac(c,e);if(!f)return(0,B.A1)(D.gx.BAD_GATEWAY,"Invalid SSE response for non-streaming request");if(f.error){let a=Number(f.error.status),b=Number.isInteger(a)&&a>=400&&a<=599?a:D.gx.BAD_GATEWAY;return(0,B.A1)(b,f.error.message||"Upstream SSE stream failed")}p&&await p();let h=f.usage||{};t({tokens:h,status:"200 OK"}),O({provider:d,model:x,tokens:h,connectionId:m,apiKey:n,endpoint:o?.endpoint,pricingMultiplier:w,silent:!0}),v?.line&&v.line(u,"\uD83D\uDCCA",N({usage:h,latency:{total:Date.now()-l}}));let i=Date.now()-l;if((0,F.ox)(M({...z,latency:{ttft:i,total:i},tokens:h,response:{content:f.choices?.[0]?.message?.content||null,thinking:f.choices?.[0]?.message?.reasoning_content||null,finish_reason:f.choices?.[0]?.finish_reason||"unknown"},status:"success"},{endpoint:o?.endpoint||null})).catch(()=>{}),h&&Object.keys(h).length>0&&(f.usage=h),f?.choices)for(let a of f.choices)a?.message?.reasoning_content&&a.message.content&&delete a.message.reasoning_content;let j=f;b===g.h.OPENAI_RESPONSES?j=ab(f,q):b===g.h.CLAUDE&&(j=Z(f));let k=new Response(JSON.stringify((0,U.HR)(j,r)),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});return k.success=!0,k.response=k,k}catch(a){return console.error("[ChatCore] Chat Completions SSE→JSON failed:",a),(0,B.A1)(D.gx.BAD_GATEWAY,"Failed to convert streaming response to JSON")}}var af=c(68057);c(66451),c(87252);var ag=c(21148),ah=c(10089);function ai(a,b=null){let c=a?.choices?.[0];if(!c)return a;let d=c.message||{},e=[],f=d.reasoning_content||d.reasoning;"string"==typeof f&&f.length>0&&e.push({type:V.Du.REASONING,summary:[{type:V.Du.SUMMARY_TEXT,text:f}]});let g="string"==typeof d.content?d.content:"";for(let a of(g.length>0&&e.push({type:V.Du.MESSAGE,role:V.z7.ASSISTANT,content:[{type:V.Du.OUTPUT_TEXT,text:g,annotations:[]}]}),d.tool_calls||[])){let c=a.function||{},d=b?.has(c.name);e.push({type:d?V.Du.CUSTOM_TOOL_CALL:V.Du.FUNCTION_CALL,id:`${d?"ctc":"fc"}_${a.id||""}`,call_id:a.id||"",name:c.name||"",...d?{input:function(a){let b="string"==typeof a?a:JSON.stringify(a||{});try{let a=JSON.parse(b);if(a&&"object"==typeof a&&"string"==typeof a.input)return a.input}catch{}return b}(c.arguments)}:{arguments:"string"==typeof c.arguments?c.arguments:JSON.stringify(c.arguments||{})}})}let h=a?.usage||{};return{id:String(a?.id||`resp_${Date.now()}`).replace(/^chatcmpl-/,"resp_"),object:"response",created_at:a?.created||Math.floor(Date.now()/1e3),model:a?.model||"unknown",status:"completed",output:e,usage:{input_tokens:h.prompt_tokens||h.input_tokens||0,output_tokens:h.completion_tokens||h.output_tokens||0,total_tokens:h.total_tokens||(h.prompt_tokens||h.input_tokens||0)+(h.completion_tokens||h.output_tokens||0)}}}async function aj({body:a,modelInfo:b,provider:c,model:d,connectionId:f,apiKey:h,clientRawRequest:i,credentials:j,providerResponse:k,sourceFormat:l,targetFormat:m,reqLogger:n,toolNameMap:o,trackDone:p,appendLog:q,reqTag:r="",log:s=null,customToolNames:t=null,stream:u=!1,finalBody:v=null,translatedBody:w=null,pxpipe:x=null,onRequestSuccess:y=null,pricingMultiplier:z=1,statisticsModel:E=null}){let G=b?.provider||c,H=b?.model||d,I=E||H,K=j?.connectionId||f,P=j?.apiKey||h,Q=Date.now();try{let b;if(k?.headers?.get?.("content-type")?.includes("text/event-stream"))if(m===g.h.OPENAI_RESPONSES){let a=await S(k.body),{textContent:c}=aa(a.output),d=a.usage||{},e=a.status||"stop";b={id:a.id||`chatcmpl-${Date.now()}`,object:"chat.completion",created:a.created_at||Math.floor(Date.now()/1e3),model:a.model||H,choices:[{index:0,message:{role:"assistant",content:c||""},finish_reason:"completed"===e||"done"===e?"stop":"incomplete"===e?"length":e}],usage:{prompt_tokens:d.input_tokens||0,completion_tokens:d.output_tokens||0,total_tokens:d.total_tokens||(d.input_tokens||0)+(d.output_tokens||0)}}}else{let a=await k.text(),c=[g.h.ANTIGRAVITY,g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX].includes(m)||[g.h.ANTIGRAVITY,g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX].includes(A.xq[G]?.format)?ad(a,H):ac(a,H);if(!c)return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),(0,B.A1)(D.gx.BAD_GATEWAY,"Invalid SSE response for non-streaming request");if(c.error)return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),(0,B.A1)(D.gx.BAD_GATEWAY,c.error.message||"Upstream SSE stream failed");b=c}else try{b=await k.json()}catch(a){return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),console.error(`[ChatCore] Failed to parse JSON from ${G}:`,a.message),(0,B.A1)(D.gx.BAD_GATEWAY,`Invalid JSON response from ${G}`)}b=(0,ag.x)(b,G),n?.logProviderResponse?.(k?.status,k?.statusText,k?.headers,b);let c=b?.choices?.[0],d=c?.native_finish_reason,f=c?.message||{},h="string"==typeof f.content&&f.content.length>0||Array.isArray(f.tool_calls)&&f.tool_calls.length>0;if(d&&["network_error","error","server_error","timeout"].includes(d)&&!h)return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),(0,B.A1)(D.gx.BAD_GATEWAY,`Upstream provider error: ${d}`);y&&Promise.resolve().then(y).catch(a=>{console.error("[ChatCore] onRequestSuccess failed:",a?.message||a)}),b=(0,ah.kR)(b,o);let j=function(a){if(!a||"object"!=typeof a)return null;if(a.usage?.input_tokens!==void 0)return{prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cached_tokens:a.usage.cached_tokens??a.usage.input_tokens_details?.cached_tokens,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks};if(a.usage?.prompt_tokens!==void 0)return{prompt_tokens:a.usage.prompt_tokens||0,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.cached_tokens??a.usage.prompt_tokens_details?.cached_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks};let b=a.usageMetadata||a.response?.usageMetadata;return b?{prompt_tokens:b.promptTokenCount||0,completion_tokens:b.candidatesTokenCount||0,cached_tokens:b.cachedContentTokenCount||0,reasoning_tokens:b.thoughtsTokenCount||0}:null}(b);q?.({tokens:j,status:"200 OK"}),O({provider:G,model:I,tokens:j,connectionId:K,apiKey:P,endpoint:i?.endpoint,pricingMultiplier:z,silent:!0}),s?.line&&s.line(r,"\uD83D\uDCCA",N({usage:j,latency:{total:Date.now()-Q}}));let E=(0,e.nZ)(m,l)?function(a,b,c,d=null){if(!a||"object"!=typeof a)return a;if(b===c){if(b===g.h.OPENAI)for(let b of a?.choices||[]){let a=b?.message;a?.reasoning&&"string"==typeof a.reasoning&&!a.reasoning_content&&(a.reasoning_content=a.reasoning,delete a.reasoning)}return a}if(b===g.h.OPENAI_RESPONSES&&c!==g.h.OPENAI_RESPONSES){let b=function(a){let b=Array.isArray(a?.output)?a.output:[],c="",d="",e=[];for(let a of b)if(a?.type===V.Du.MESSAGE)for(let b of a.content||[])b?.type===V.Du.OUTPUT_TEXT&&"string"==typeof b.text&&(c+=b.text);else if(a?.type===V.Du.REASONING)for(let b of a.summary||[])b?.type===V.Du.SUMMARY_TEXT&&"string"==typeof b.text&&(d+=b.text);else if(a?.type===V.Du.FUNCTION_CALL||a?.type===V.Du.CUSTOM_TOOL_CALL){let b=a.type===V.Du.CUSTOM_TOOL_CALL;e.push({id:a.call_id||a.id||`call_${e.length}`,type:"function",function:{name:a.name||"",arguments:b?JSON.stringify({input:a.input||""}):"string"==typeof a.arguments?a.arguments:JSON.stringify(a.arguments||{})}})}let f={role:"assistant"};c&&(f.content=c),d&&(f.reasoning_content=d),e.length>0&&(f.tool_calls=e),f.content||f.tool_calls||(f.content="");let g=a?.usage||{};return{id:String(a?.id||`chatcmpl-${Date.now()}`).replace(/^resp_/,"chatcmpl-"),object:"chat.completion",created:a?.created_at||Math.floor(Date.now()/1e3),model:a?.model||"unknown",choices:[{index:0,message:f,finish_reason:e.length>0?"tool_calls":"stop"}],usage:{prompt_tokens:g.prompt_tokens||g.input_tokens||0,completion_tokens:g.completion_tokens||g.output_tokens||0,total_tokens:g.total_tokens||(g.prompt_tokens||g.input_tokens||0)+(g.completion_tokens||g.output_tokens||0)}}}(a);if(c===g.h.OPENAI)return b;if(c===g.h.CLAUDE)return Z(b)}if(b===g.h.OPENAI&&c===g.h.OPENAI_RESPONSES)return ai(a,d);if(b===g.h.OPENAI&&c===g.h.CLAUDE)return Z(a);if(b===g.h.OPENAI)return a;if(b===g.h.GEMINI||b===g.h.ANTIGRAVITY||b===g.h.GEMINI_CLI||b===g.h.VERTEX){let b=a.response||a;if(!b?.candidates?.[0])return a;let e=b.candidates[0],f=e.content,h=b.usageMetadata||a.usageMetadata,i="",j="",k=[];if(f?.parts)for(let a of f.parts){!0===a.thought&&a.text?j+=a.text:void 0!==a.text&&(i+=a.text),a.functionCall&&k.push({id:`call_${a.functionCall.name}_${Date.now()}_${k.length}`,type:"function",function:{name:a.functionCall.name,arguments:JSON.stringify(a.functionCall.args||{})}});let b=a.inlineData||a.inline_data;if(b?.data){let a=b.mimeType||b.mime_type||"image/png";i+=`
|
|
11
|
+
`)):a?.finalized&&!a.doneSent?(a.doneSent=!0,j.encode("data: [DONE]\n\n")):null}function l(a=null){let b=a||(0,e.lJ)(),c=(0,e.Hd)(b,{error:{type:"stream_error",code:"stream_disconnected",message:"stream closed before response.completed"}});return c.accepted?(0,f.v8)({event:"response.failed",data:{type:"response.failed",response:c.response}},d.h.OPENAI_RESPONSES):""}},49738:(a,b,c)=>{c.d(b,{wk:()=>bW});var d=c(17717),e=c(26502),f=c(94454),g=c(19956),h=c(25830),i=c(50186);let j=new Set([g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX,g.h.ANTIGRAVITY,g.h.OLLAMA,g.h.KIRO]);function k(a){return"string"==typeof a&&(a.startsWith("http://")||a.startsWith("https://"))}async function l(a,b,c,d={}){if(!a||!j.has(c))return 0;let e=function(a,b){let c=[],d=a=>{for(let b of a||[])if(Array.isArray(b.content)){for(let a of b.content)if(a?.type==="image_url"){let b="string"==typeof a.image_url?a.image_url:a.image_url?.url;k(b)&&c.push({get:()=>b,set:b=>{"string"==typeof a.image_url?a.image_url=b:a.image_url.url=b}})}}},e=a=>{for(let b of a||[])for(let a of b.parts||[]){let b=a?.fileData?.fileUri;k(b)&&c.push({get:()=>b,part:a})}};switch(b){case g.h.OPENAI:case g.h.OLLAMA:case g.h.KIRO:case g.h.CURSOR:case g.h.COMMANDCODE:d(a.messages);break;case g.h.CLAUDE:for(let b of a.messages||[])if(Array.isArray(b.content))for(let a of b.content)a?.type==="image"&&a.source?.type==="url"&&k(a.source.url)&&c.push({get:()=>a.source.url,claudeBlock:a});break;case g.h.GEMINI:case g.h.GEMINI_CLI:case g.h.VERTEX:e(a.contents);break;case g.h.ANTIGRAVITY:e(a?.request?.contents);break;default:d(a.messages)}return c}(a,b);if(!e.length)return 0;let f=0;for(let a of e){let b=a.get();if((0,i.W$)(b))continue;let c=await (0,i.ni)(b,d);c&&(a.set?a.set(c.url):a.part?(delete a.part.fileData,a.part.inlineData={mimeType:c.mimeType,data:c.url.split(",")[1]}):a.claudeBlock&&(a.claudeBlock.source={type:"base64",media_type:c.mimeType,data:c.url.split(",")[1]}),f++)}return f}var m=c(15575),n=c(85640);let o="u">typeof process&&process.versions?.node&&!0,p="u">typeof process&&process.env?.ENABLE_REQUEST_LOGS==="true",q=null,r=null,s=null;async function t(){if(o&&p&&!q)try{q=await Promise.resolve().then(c.t.bind(c,29021,19)),s=(r=await Promise.resolve().then(c.t.bind(c,33873,19))).join("u">typeof process&&process.cwd?process.cwd():".","logs")}catch{}}async function u(a,b,c){if(await t(),!q||!s)return null;try{q.existsSync(s)||q.mkdirSync(s,{recursive:!0,mode:448});let d=function(a=new Date){let b=a=>String(a).padStart(2,"0"),c=a.getFullYear(),d=b(a.getMonth()+1),e=b(a.getDate()),f=b(a.getHours()),g=b(a.getMinutes()),h=b(a.getSeconds()),i=String(a.getMilliseconds()).padStart(3,"0");return`${c}${d}${e}_${f}${g}${h}_${i}`}(),e=(c||"unknown").replace(/[/:]/g,"-"),f=`${a}_${b}_${e}_${d}`,g=r.join(s,f);return q.mkdirSync(g,{recursive:!0,mode:448}),g}catch(a){return console.log("[LOG] Failed to create log session:",a.message),null}}function v(a,b,c){if(q&&a)try{let d=r.join(a,b);q.writeFileSync(d,JSON.stringify(c,null,2),{mode:384})}catch(a){console.log(`[LOG] Failed to write ${b}:`,a.message)}}let w=["authorization","api-key","cookie","token","secret"];function x(a){if(!a)return{};let b="function"==typeof a.entries?a.entries():Object.entries(a),c={};for(let[a,d]of b){let b=a.toLowerCase();if(w.some(a=>b.includes(a))){if(null==d)continue;let b=String(d);c[a]=b.length>20?b.slice(0,10)+"..."+b.slice(-5):"***"}else c[a]=d}return c}async function y(a,b,c){if(!p)return{sessionPath:null,logClientRawRequest(){},logRawRequest(){},logOpenAIRequest(){},logTargetRequest(){},logProviderResponse(){},appendProviderChunk(){},appendOpenAIChunk(){},logConvertedResponse(){},appendConvertedChunk(){},logError(){}};let d=await u(a,b,c);return{get sessionPath(){return d},logClientRawRequest(a,b,c={}){v(d,"1_req_client.json",{timestamp:new Date().toISOString(),endpoint:a,headers:x(c),body:b})},logRawRequest(a,b={}){v(d,"2_req_source.json",{timestamp:new Date().toISOString(),headers:x(b),body:a})},logOpenAIRequest(a){v(d,"3_req_openai.json",{timestamp:new Date().toISOString(),body:a})},logTargetRequest(a,b,c){v(d,"4_req_target.json",{timestamp:new Date().toISOString(),url:a,headers:x(b),body:c})},logProviderResponse(a,b,c,e){v(d,"5_res_provider.json",{timestamp:new Date().toISOString(),status:a,statusText:b,headers:x(c),body:e})},appendProviderChunk(a){if(q&&d)try{let b=r.join(d,"5_res_provider.txt");q.appendFileSync(b,a,{mode:384})}catch(a){}},appendOpenAIChunk(a){if(q&&d)try{let b=r.join(d,"6_res_openai.txt");q.appendFileSync(b,a,{mode:384})}catch(a){}},logConvertedResponse(a){v(d,"7_res_client.json",{timestamp:new Date().toISOString(),body:a})},appendConvertedChunk(a){if(q&&d)try{let b=r.join(d,"7_res_client.txt");q.appendFileSync(b,a,{mode:384})}catch(a){}},logError(a,b=null){v(d,"6_error.json",{timestamp:new Date().toISOString(),error:a?.message||String(a),stack:a?.stack,requestBody:b})}}}var z=c(29485),A=c(4630),B=c(89865),C=c(62662),D=c(60290),E=c(2735),F=c(47370),G=c(79026),H=c(13247),I=c(6755),J=c(67677);let K=["temperature","top_p","top_k","max_tokens","max_completion_tokens","thinking","reasoning","enable_thinking","presence_penalty","frequency_penalty","seed","stop","tools","tool_choice","response_format","prediction","store","metadata","n","logprobs","top_logprobs","logit_bias","user","parallel_tool_calls"];function L(a,b){let c={messages:a.messages||[],model:a.model,stream:b};for(let b of K)void 0!==a[b]&&(c[b]=a[b]);return c}function M(a,b={}){return{provider:a.provider||"unknown",model:a.model||"unknown",connectionId:a.connectionId||void 0,timestamp:new Date().toISOString(),latency:a.latency||{ttft:0,total:0},tokens:a.tokens||{prompt_tokens:0,completion_tokens:0},request:a.request,providerRequest:a.providerRequest||null,providerResponse:a.providerResponse||null,response:a.response||{},pxpipe:a.pxpipe||void 0,status:a.status||"success",...b}}function N({usage:a,latency:b}){let c=a||{},d=c.prompt_tokens??c.input_tokens??0,e=c.completion_tokens??c.output_tokens??0,f=c.cache_read_input_tokens??c.cached_tokens??c.prompt_tokens_details?.cached_tokens??0,g=c.cache_creation_input_tokens??0,h=`IN ${d}`;if(f||g){let a=[];f&&a.push(`↻${f}`),g&&a.push(`+${g}`),h+=` (CACHE ${a.join(" ")})`}let i=b?.ttft?` \xb7 TTFT ${b.ttft}ms`:"";return`DONE ${b?.total??0}ms${i} \xb7 ${h} \xb7 OUT ${e}`}function O({provider:a,model:b,tokens:c,connectionId:d,apiKey:e,endpoint:f,requestedModel:g,status:h,pricingMultiplier:i=1,label:j="USAGE",silent:k=!1}){if(!c||"object"!=typeof c)return;let l=c.input_tokens??c.prompt_tokens??0,m=c.output_tokens??c.completion_tokens??0;if(0===l&&0===m)return;if(!k){let b=new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),c=d?` | account=${d.slice(0,8)}...`:"";console.log(`${I.lm.green}[${b}] 📊 [${j}] ${a.toUpperCase()} | in=${l} | out=${m}${c}${I.lm.reset}`)}let n=(0,J._6)(c)||{prompt_tokens:c.prompt_tokens??c.input_tokens??0,completion_tokens:c.completion_tokens??c.output_tokens??0};1!==i&&(n.pricing_multiplier=i),(0,F.sZ)({provider:a||"unknown",model:b||"unknown",tokens:n,timestamp:new Date().toISOString(),connectionId:d||void 0,apiKey:e||void 0,endpoint:f||null,requestedModel:g||void 0,status:h||"ok"}).catch(()=>{})}var P=c(89568);function Q(a,b){let c;if(!a.trim())return;let d=a.match(/^event:\s*(.+)$/m),e=a.match(/^data:\s*(.+)$/m);if(!e)return;let f=e[1].trim();if("[DONE]"!==f){try{c=JSON.parse(f)}catch{return}(0,P.rY)(b,{event:d?.[1]?.trim()||c.type,data:c})}}let R={input_tokens:0,output_tokens:0,total_tokens:0};async function S(a){let b=(0,P.lJ)();if(!a||"function"!=typeof a.getReader)return{...(0,P.Hd)(b,{error:T("invalid_stream","response stream is unavailable")}).response,usage:{...R}};let c=a.getReader(),d=new TextDecoder,e="",f=null;try{for(;;){let{done:a,value:f}=await c.read();if(a)break;let g=(e+=d.decode(f,{stream:!0})).split("\n\n");for(let a of(e=g.pop()||"",g))Q(a,b)}e.trim()&&Q(e,b)}catch(a){f=a}finally{c.releaseLock()}b.finalized||(0,P.Hd)(b,{error:T(f?"stream_read_error":"stream_disconnected",f?.message||"stream closed before a terminal response event")});let g=b.terminalResponse;return{...g,usage:g.usage||{...R}}}function T(a,b){return{type:"stream_error",code:a,message:b}}var U=c(69656),V=c(45136),W=c(18226),X=c(98173);function Y(a){if(!a)return{};if("object"==typeof a)return a;try{return JSON.parse(a)}catch{return{}}}function Z(a){if(!a?.choices?.[0])return a;let b=a.choices[0],c=b.message||{},d=[],e=c.reasoning_content||c.provider_specific_fields?.reasoning_content||"";for(let a of(e&&d.push({type:"thinking",thinking:e}),"string"==typeof c.content&&c.content.length>0&&d.push({type:"text",text:c.content}),c.tool_calls||[])){let b=a.function||{};d.push({type:"tool_use",id:a.id||`toolu_${Date.now()}_${d.length}`,name:b.name||a.name||"",input:Y(b.arguments||a.arguments)})}0===d.length&&d.push({type:"text",text:""});let f=a.usage||{};return{id:String(a.id||`msg_${Date.now()}`).replace(/^chatcmpl-/,""),type:"message",role:"assistant",model:a.model||"unknown",content:d,stop_reason:(0,X.Q)(b.finish_reason,g.h.CLAUDE),stop_sequence:null,usage:{input_tokens:f.prompt_tokens||f.input_tokens||0,output_tokens:f.completion_tokens||f.output_tokens||0}}}function $(a,b=null){let c=a?.choices?.[0];if(!c)return a;let d=c.message||{},e=[],f=d.reasoning_content||d.reasoning;"string"==typeof f&&f.length>0&&e.push({type:W.Du.REASONING,summary:[{type:W.Du.SUMMARY_TEXT,text:f}]});let g="string"==typeof d.content?d.content:"";for(let a of(g.length>0&&e.push({type:W.Du.MESSAGE,role:W.z7.ASSISTANT,content:[{type:W.Du.OUTPUT_TEXT,text:g,annotations:[]}]}),d.tool_calls||[])){let c=a.function||{},d=b?.has(c.name);e.push({type:d?W.Du.CUSTOM_TOOL_CALL:W.Du.FUNCTION_CALL,id:`${d?"ctc":"fc"}_${a.id||""}`,call_id:a.id||"",name:c.name||"",...d?{input:function(a){let b="string"==typeof a?a:JSON.stringify(a||{});try{let a=JSON.parse(b);if(a&&"object"==typeof a&&"string"==typeof a.input)return a.input}catch{}return b}(c.arguments)}:{arguments:"string"==typeof c.arguments?c.arguments:JSON.stringify(c.arguments||{})}})}let h=a.usage||{},i="tool_calls"===c.finish_reason||"stop"===c.finish_reason?"completed":c.finish_reason||"completed";return{id:`resp_${a.id||""}`.replace(/^resp_chatcmpl-/,"resp_"),object:"response",created_at:a.created||Math.floor(Date.now()/1e3),model:a.model||"unknown",status:i,background:!1,error:null,output:e,usage:{input_tokens:h.prompt_tokens||h.input_tokens||0,output_tokens:h.completion_tokens||h.output_tokens||0,total_tokens:h.total_tokens||(h.prompt_tokens||0)+(h.completion_tokens||0)}}}let _=a=>A.xq[a]?.format===g.h.OPENAI_RESPONSES;function aa(a){if(!a?.content||!Array.isArray(a.content))return"";let b=a.content.find(a=>"output_text"===a.type);if("string"==typeof b?.text)return b.text;let c=a.content.find(a=>"string"==typeof a.text);return"string"==typeof c?.text?c.text:""}function ab(a){if(!Array.isArray(a))return{msgItem:null,textContent:null};let b=a.filter(a=>a?.type==="message");if(0===b.length)return{msgItem:null,textContent:null};for(let a=b.length-1;a>=0;a--){let c=aa(b[a]);if(c.length>0)return{msgItem:b[a],textContent:c}}let c=b[b.length-1];return{msgItem:c,textContent:aa(c)}}function ac(a,b){let c=[],d=null;for(let b of String(a||"").split("\n")){let a=b.trim();if(!a.startsWith("data:"))continue;let e=a.slice(5).trim();if(e&&"[DONE]"!==e)try{let a=JSON.parse(e);a?.error?d=a.error:c.push(a)}catch{}}if(d)return{error:d};if(0===c.length)return null;let e=c[0],f=[],g=[],h=new Map,i="stop",j=null;for(let a of c){let b=a?.choices?.[0],c=b?.delta||{};if("string"==typeof c.content&&c.content.length>0&&f.push(c.content),"string"==typeof c.reasoning_content&&c.reasoning_content.length>0&&g.push(c.reasoning_content),b?.finish_reason&&(i=b.finish_reason),a?.usage&&"object"==typeof a.usage&&(j=a.usage),Array.isArray(c.tool_calls))for(let a of c.tool_calls){let b=a.index??0;h.has(b)||h.set(b,{id:a.id||"",type:"function",function:{name:"",arguments:""}});let c=h.get(b);a.id&&(c.id=a.id),a.function?.name&&(c.function.name+=a.function.name),a.function?.arguments&&(c.function.arguments+=a.function.arguments)}}let k={role:"assistant",content:f.join("")||(h.size>0?null:"")};g.length>0&&(k.reasoning_content=g.join("")),h.size>0&&(k.tool_calls=[...h.entries()].sort((a,b)=>a[0]-b[0]).map(([,a])=>a));let l=c[c.length-1]?.choices?.[0],m=l?.native_finish_reason;if(m&&["network_error","error","server_error","timeout"].includes(m)&&0===f.length&&0===h.size)return{error:{message:`Upstream stream failed: ${m}`,code:m}};let n={id:e.id||`chatcmpl-${Date.now()}`,object:"chat.completion",created:e.created||Math.floor(Date.now()/1e3),model:e.model||b||"unknown",choices:[{index:0,message:k,finish_reason:i}]};return j&&(n.usage=j),n}function ad(a,b){let c={},d=[],e=null;for(let b of String(a||"").split("\n")){let a=b.trim();if(!a.startsWith("data:"))continue;let f=a.slice(5).trim();if(f&&"[DONE]"!==f)try{let a=JSON.parse(f);if(a?.error)e=a.error;else{let b=(0,V.o)(a,c);b&&d.push(...b)}}catch{}}if(e)return{error:e};if(0===d.length)return null;let f=ac(d.map(a=>`data: ${JSON.stringify(a)}`).join("\n"),b);return f&&c.usage&&!f.usage&&(f.usage=c.usage),f}async function ae({providerResponse:a,sourceFormat:b,targetFormat:c,provider:d,model:e,statisticsModel:f,body:h,stream:i,translatedBody:j,finalBody:k,requestStartTime:l,connectionId:m,apiKey:n,clientRawRequest:o,onRequestSuccess:p,customToolNames:q,toolNameMap:r,trackDone:s,appendLog:t,reqTag:u,log:v,pricingMultiplier:w}){let x=f||e,y=a.headers.get("content-type")||"";if(!(y.includes("text/event-stream")||""===y&&_(d)))return null;s();let z={provider:d,model:x,connectionId:m,request:L(h,i),providerRequest:k||j||null},C=[g.h.ANTIGRAVITY,g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX].includes(c)||[g.h.ANTIGRAVITY,g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX].includes(A.xq[d]?.format);if(_(d)||c===g.h.OPENAI_RESPONSES||C)try{let c,f;if(C){let b=ad(await a.text(),e);if(!b)return(0,B.A1)(D.gx.BAD_GATEWAY,"Invalid Gemini SSE response for non-streaming request");if(b.error)return(0,B.A1)(D.gx.BAD_GATEWAY,b.error.message||"Upstream SSE stream failed");c=$(b,q)}else c=await S(a.body);p&&await p();let h=c.usage||{};t({tokens:h,status:"200 OK"}),O({provider:d,model:x,tokens:h,connectionId:m,apiKey:n,endpoint:o?.endpoint,pricingMultiplier:w,silent:!0}),v?.line&&v.line(u,"\uD83D\uDCCA",N({usage:h,latency:{total:Date.now()-l}}));let i=(h.input_tokens||0)+(h.cache_read_input_tokens||h.cached_tokens||0)+(h.cache_creation_input_tokens||0),{msgItem:j,textContent:k}=ab(c.output),s=Date.now()-l;if((0,F.ox)(M({...z,latency:{ttft:s,total:s},tokens:{prompt_tokens:i,completion_tokens:h.output_tokens||0},response:{content:k,thinking:null,finish_reason:c.status||"unknown"},status:"success"},{endpoint:o?.endpoint||null})).catch(()=>{}),b===g.h.OPENAI_RESPONSES){let a=new Response(JSON.stringify((0,U.HR)(c,r)),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});return a.success=!0,a.response=a,a}let y=h.cache_read_input_tokens||h.cached_tokens||0,A=h.cache_creation_input_tokens||0,E=(h.input_tokens||0)+y+A,G=h.output_tokens||0,H=y>0||A>0?{prompt_tokens_details:{...y>0?{cached_tokens:y}:{},...A>0?{cache_creation_tokens:A}:{}}}:{},I=(c.output||[]).filter(a=>"function_call"===a.type).map((a,b)=>({id:a.call_id||`call_${a.name}_${Date.now()}_${b}`,type:"function",function:{name:a.name,arguments:"string"==typeof a.arguments?a.arguments:JSON.stringify(a.arguments||{})}})),J=I.length>0;if(b===g.h.ANTIGRAVITY||b===g.h.GEMINI||b===g.h.GEMINI_CLI)f={response:{candidates:[{content:{role:"model",parts:[{text:k||""}]},finishReason:"STOP",index:0}],usageMetadata:{promptTokenCount:E,candidatesTokenCount:G,totalTokenCount:E+G},modelVersion:e,responseId:c.id||`resp_${Date.now()}`}};else if(b===g.h.CLAUDE)f=function(a,b,c,d,e,f,g){let h=[],i=(a.output||[]).filter(a=>a?.type===W.Du.REASONING).flatMap(a=>a.summary||[]).map(a=>a?.text||"").join("");for(let a of(i&&h.push({type:W.R4.THINKING,thinking:i}),c&&h.push({type:W.R4.TEXT,text:c}),d||[])){let b=a.function||{};h.push({type:W.R4.TOOL_USE,id:a.id||`toolu_${Date.now()}_${h.length}`,name:b.name||"",input:Y(b.arguments)})}return 0===h.length&&h.push({type:W.R4.TEXT,text:""}),{id:String(a.id||`msg_${Date.now()}`).replace(/^resp_/,"msg_").replace(/^chatcmpl-/,""),type:"message",role:W.z7.ASSISTANT,model:a.model||b||"unknown",content:h,stop_reason:g?"tool_use":"end_turn",stop_sequence:null,usage:{input_tokens:e||0,output_tokens:f||0}}}(c,e,k,I,E,G,J);else{let a={role:"assistant",content:k||(J?null:"")};J&&(a.tool_calls=I);let b="completed"===c.status||"done"===c.status,d=J?"tool_calls":b?"stop":c.status||"stop";f={id:c.id||`chatcmpl-${Date.now()}`,object:"chat.completion",created:c.created_at||Math.floor(Date.now()/1e3),model:c.model||e,choices:[{index:0,message:a,finish_reason:d}],usage:{prompt_tokens:E,completion_tokens:G,total_tokens:E+G,...H}}}let K=new Response(JSON.stringify((0,U.HR)(f,r)),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});return K.success=!0,K.response=K,K}catch(a){return console.error("[ChatCore] Responses API SSE→JSON failed:",a),(0,B.A1)(D.gx.BAD_GATEWAY,"Failed to convert streaming response to JSON")}try{let c=await a.text(),f=ac(c,e);if(!f)return(0,B.A1)(D.gx.BAD_GATEWAY,"Invalid SSE response for non-streaming request");if(f.error){let a=Number(f.error.status),b=Number.isInteger(a)&&a>=400&&a<=599?a:D.gx.BAD_GATEWAY;return(0,B.A1)(b,f.error.message||"Upstream SSE stream failed")}p&&await p();let h=f.usage||{};t({tokens:h,status:"200 OK"}),O({provider:d,model:x,tokens:h,connectionId:m,apiKey:n,endpoint:o?.endpoint,pricingMultiplier:w,silent:!0}),v?.line&&v.line(u,"\uD83D\uDCCA",N({usage:h,latency:{total:Date.now()-l}}));let i=Date.now()-l;if((0,F.ox)(M({...z,latency:{ttft:i,total:i},tokens:h,response:{content:f.choices?.[0]?.message?.content||null,thinking:f.choices?.[0]?.message?.reasoning_content||null,finish_reason:f.choices?.[0]?.finish_reason||"unknown"},status:"success"},{endpoint:o?.endpoint||null})).catch(()=>{}),h&&Object.keys(h).length>0&&(f.usage=h),f?.choices)for(let a of f.choices)a?.message?.reasoning_content&&a.message.content&&delete a.message.reasoning_content;let j=f;b===g.h.OPENAI_RESPONSES?j=$(f,q):b===g.h.CLAUDE&&(j=Z(f));let k=new Response(JSON.stringify((0,U.HR)(j,r)),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});return k.success=!0,k.response=k,k}catch(a){return console.error("[ChatCore] Chat Completions SSE→JSON failed:",a),(0,B.A1)(D.gx.BAD_GATEWAY,"Failed to convert streaming response to JSON")}}var af=c(68057);c(66451),c(87252);var ag=c(21148),ah=c(10089);async function ai({body:a,modelInfo:b,provider:c,model:d,connectionId:f,apiKey:h,clientRawRequest:i,credentials:j,providerResponse:k,sourceFormat:l,targetFormat:m,reqLogger:n,toolNameMap:o,trackDone:p,appendLog:q,reqTag:r="",log:s=null,customToolNames:t=null,stream:u=!1,finalBody:v=null,translatedBody:w=null,pxpipe:x=null,onRequestSuccess:y=null,pricingMultiplier:z=1,statisticsModel:E=null}){let G=b?.provider||c,H=b?.model||d,I=E||H,K=j?.connectionId||f,P=j?.apiKey||h,Q=Date.now();try{let b;if(k?.headers?.get?.("content-type")?.includes("text/event-stream"))if(m===g.h.OPENAI_RESPONSES){let a=await S(k.body),{textContent:c}=ab(a.output),d=a.usage||{},e=a.status||"stop";b={id:a.id||`chatcmpl-${Date.now()}`,object:"chat.completion",created:a.created_at||Math.floor(Date.now()/1e3),model:a.model||H,choices:[{index:0,message:{role:"assistant",content:c||""},finish_reason:"completed"===e||"done"===e?"stop":"incomplete"===e?"length":e}],usage:{prompt_tokens:d.input_tokens||0,completion_tokens:d.output_tokens||0,total_tokens:d.total_tokens||(d.input_tokens||0)+(d.output_tokens||0)}}}else{let a=await k.text(),c=[g.h.ANTIGRAVITY,g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX].includes(m)||[g.h.ANTIGRAVITY,g.h.GEMINI,g.h.GEMINI_CLI,g.h.VERTEX].includes(A.xq[G]?.format)?ad(a,H):ac(a,H);if(!c)return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),(0,B.A1)(D.gx.BAD_GATEWAY,"Invalid SSE response for non-streaming request");if(c.error)return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),(0,B.A1)(D.gx.BAD_GATEWAY,c.error.message||"Upstream SSE stream failed");b=c}else try{b=await k.json()}catch(a){return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),console.error(`[ChatCore] Failed to parse JSON from ${G}:`,a.message),(0,B.A1)(D.gx.BAD_GATEWAY,`Invalid JSON response from ${G}`)}b=(0,ag.x)(b,G),n?.logProviderResponse?.(k?.status,k?.statusText,k?.headers,b);let c=b?.choices?.[0],d=c?.native_finish_reason,f=c?.message||{},h="string"==typeof f.content&&f.content.length>0||Array.isArray(f.tool_calls)&&f.tool_calls.length>0;if(d&&["network_error","error","server_error","timeout"].includes(d)&&!h)return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),(0,B.A1)(D.gx.BAD_GATEWAY,`Upstream provider error: ${d}`);y&&Promise.resolve().then(y).catch(a=>{console.error("[ChatCore] onRequestSuccess failed:",a?.message||a)}),b=(0,ah.kR)(b,o);let j=function(a){if(!a||"object"!=typeof a)return null;if(a.usage?.input_tokens!==void 0)return{prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cached_tokens:a.usage.cached_tokens??a.usage.input_tokens_details?.cached_tokens,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks};if(a.usage?.prompt_tokens!==void 0)return{prompt_tokens:a.usage.prompt_tokens||0,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.cached_tokens??a.usage.prompt_tokens_details?.cached_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks};let b=a.usageMetadata||a.response?.usageMetadata;return b?{prompt_tokens:b.promptTokenCount||0,completion_tokens:b.candidatesTokenCount||0,cached_tokens:b.cachedContentTokenCount||0,reasoning_tokens:b.thoughtsTokenCount||0}:null}(b);q?.({tokens:j,status:"200 OK"}),O({provider:G,model:I,tokens:j,connectionId:K,apiKey:P,endpoint:i?.endpoint,pricingMultiplier:z,silent:!0}),s?.line&&s.line(r,"\uD83D\uDCCA",N({usage:j,latency:{total:Date.now()-Q}}));let E=(0,e.nZ)(m,l)?function(a,b,c,d=null){if(!a||"object"!=typeof a)return a;if(b===c){if(b===g.h.OPENAI)for(let b of a?.choices||[]){let a=b?.message;a?.reasoning&&"string"==typeof a.reasoning&&!a.reasoning_content&&(a.reasoning_content=a.reasoning,delete a.reasoning)}return a}if(b===g.h.OPENAI_RESPONSES&&c!==g.h.OPENAI_RESPONSES){let b=function(a){let b=Array.isArray(a?.output)?a.output:[],c="",d="",e=[];for(let a of b)if(a?.type===W.Du.MESSAGE)for(let b of a.content||[])b?.type===W.Du.OUTPUT_TEXT&&"string"==typeof b.text&&(c+=b.text);else if(a?.type===W.Du.REASONING)for(let b of a.summary||[])b?.type===W.Du.SUMMARY_TEXT&&"string"==typeof b.text&&(d+=b.text);else if(a?.type===W.Du.FUNCTION_CALL||a?.type===W.Du.CUSTOM_TOOL_CALL){let b=a.type===W.Du.CUSTOM_TOOL_CALL;e.push({id:a.call_id||a.id||`call_${e.length}`,type:"function",function:{name:a.name||"",arguments:b?JSON.stringify({input:a.input||""}):"string"==typeof a.arguments?a.arguments:JSON.stringify(a.arguments||{})}})}let f={role:"assistant"};c&&(f.content=c),d&&(f.reasoning_content=d),e.length>0&&(f.tool_calls=e),f.content||f.tool_calls||(f.content="");let g=a?.usage||{};return{id:String(a?.id||`chatcmpl-${Date.now()}`).replace(/^resp_/,"chatcmpl-"),object:"chat.completion",created:a?.created_at||Math.floor(Date.now()/1e3),model:a?.model||"unknown",choices:[{index:0,message:f,finish_reason:e.length>0?"tool_calls":"stop"}],usage:{prompt_tokens:g.prompt_tokens||g.input_tokens||0,completion_tokens:g.completion_tokens||g.output_tokens||0,total_tokens:g.total_tokens||(g.prompt_tokens||g.input_tokens||0)+(g.completion_tokens||g.output_tokens||0)}}}(a);if(c===g.h.OPENAI)return b;if(c===g.h.CLAUDE)return chatCompletionToClaudeMessage(b)}if(b===g.h.OPENAI&&c===g.h.OPENAI_RESPONSES)return $(a,d);if(b===g.h.OPENAI&&c===g.h.CLAUDE)return Z(a);if(b===g.h.OPENAI)return a;if(b===g.h.GEMINI||b===g.h.ANTIGRAVITY||b===g.h.GEMINI_CLI||b===g.h.VERTEX){let b=a.response||a;if(!b?.candidates?.[0])return a;let e=b.candidates[0],f=e.content,h=b.usageMetadata||a.usageMetadata,i="",j="",k=[];if(f?.parts)for(let a of f.parts){!0===a.thought&&a.text?j+=a.text:void 0!==a.text&&(i+=a.text),a.functionCall&&k.push({id:`call_${a.functionCall.name}_${Date.now()}_${k.length}`,type:"function",function:{name:a.functionCall.name,arguments:JSON.stringify(a.functionCall.args||{})}});let b=a.inlineData||a.inline_data;if(b?.data){let a=b.mimeType||b.mime_type||"image/png";i+=`
|
|
12
12
|

|
|
13
|
-
`}}let l={role:"assistant"};i&&(l.content=i),j&&(l.reasoning_content=j),k.length>0&&(l.tool_calls=k),l.content||l.tool_calls||(l.content="");let m=(e.finishReason||"stop").toLowerCase();"stop"===m&&k.length>0&&(m="tool_calls");let n={id:`chatcmpl-${b.responseId||Date.now()}`,object:"chat.completion",created:Math.floor(new Date(b.createTime||Date.now()).getTime()/1e3),model:b.modelVersion||"gemini",choices:[{index:0,message:l,finish_reason:m}]};if(h){let a=(h.promptTokenCount||0)+(h.thoughtsTokenCount||0),b=h.candidatesTokenCount||0;n.usage={prompt_tokens:a,completion_tokens:b,total_tokens:h.totalTokenCount||a+b},h.thoughtsTokenCount>0&&(n.usage.completion_tokens_details={reasoning_tokens:h.thoughtsTokenCount})}return c===g.h.OPENAI_RESPONSES
|
|
14
|
-
${f}`):console.warn(`[STREAM] ${b} | ${c} | blocked pipe: ${f} [${g}]`),w?.handleError?.(Error(`upstream non-SSE: ${g}`)),{success:!1,response:new Response(JSON.stringify({error:{message:`[${g}]: ${f}`}}),{status:g,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}let K=function({provider:a,sourceFormat:b,targetFormat:c,userAgent:d,reqLogger:f,toolNameMap:h,customToolNames:i,model:j,connectionId:k,body:l,onStreamComplete:m,apiKey:n,credentials:o}){let
|
|
13
|
+
`}}let l={role:"assistant"};i&&(l.content=i),j&&(l.reasoning_content=j),k.length>0&&(l.tool_calls=k),l.content||l.tool_calls||(l.content="");let m=(e.finishReason||"stop").toLowerCase();"stop"===m&&k.length>0&&(m="tool_calls");let n={id:`chatcmpl-${b.responseId||Date.now()}`,object:"chat.completion",created:Math.floor(new Date(b.createTime||Date.now()).getTime()/1e3),model:b.modelVersion||"gemini",choices:[{index:0,message:l,finish_reason:m}]};if(h){let a=(h.promptTokenCount||0)+(h.thoughtsTokenCount||0),b=h.candidatesTokenCount||0;n.usage={prompt_tokens:a,completion_tokens:b,total_tokens:h.totalTokenCount||a+b},h.thoughtsTokenCount>0&&(n.usage.completion_tokens_details={reasoning_tokens:h.thoughtsTokenCount})}return c===g.h.OPENAI_RESPONSES?$(n,d):c===g.h.CLAUDE?chatCompletionToClaudeMessage(n):n}if(b===g.h.CLAUDE){if(a.choices||a.content&&!Array.isArray(a.content))return a;let b="",e="",f=[];if(Array.isArray(a.content))for(let c of a.content)"text"===c.type?b+=c.text||"":"thinking"===c.type?e+=c.thinking||"":"tool_use"===c.type&&f.push({id:c.id,type:"function",function:{name:c.name,arguments:JSON.stringify(c.input||{})}});let h={role:"assistant"};b&&(h.content=b),e&&(h.reasoning_content=e),f.length>0&&(h.tool_calls=f),h.content||h.tool_calls||(h.content="");let i=a.usage||{},j={id:`chatcmpl-${a.id||Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a.model||"claude",choices:[{index:0,message:h,finish_reason:fromOpenAIFinish(a.stop_reason,g.h.OPENAI)||"stop"}],usage:{prompt_tokens:i.input_tokens||0,completion_tokens:i.output_tokens||0,total_tokens:(i.input_tokens||0)+(i.output_tokens||0)}};return c===g.h.OPENAI_RESPONSES?$(j,d):j}if(b===g.h.OLLAMA){let b=(0,af._)(a);return c===g.h.OPENAI_RESPONSES?$(b,d):c===g.h.CLAUDE?chatCompletionToClaudeMessage(b):b}return a}(b,m,l,t):b;if(!E||"object"!=typeof E)return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),(0,B.A1)(D.gx.BAD_GATEWAY,"Invalid response from upstream provider");let R=l===g.h.CLAUDE&&E?.type==="message",T=l===g.h.OPENAI_RESPONSES&&E?.object==="response";if(E?.choices?.[0]){let a=E.choices[0],b=a.message;Array.isArray(b?.tool_calls)&&b.tool_calls.length>0&&"tool_calls"!==a.finish_reason&&(a.finish_reason="tool_calls")}if(R||T||(E.object||(E.object="chat.completion"),E.created||(E.created=Math.floor(Date.now()/1e3))),!R&&!T&&(delete E.prompt_filter_results,Array.isArray(E?.choices)))for(let a of E.choices)a&&delete a.content_filter_results;if(E?.usage&&(E.usage=(0,J.q7)((0,J.WL)(E.usage,l),G,H)),!R&&!T&&Array.isArray(E?.choices))for(let a of E.choices)a?.message?.reasoning_content&&a.message.content&&delete a.message.reasoning_content;n?.logConvertedResponse?.(E);let V=Date.now()-Q;(0,F.ox)(M({provider:G,model:I,connectionId:K,latency:{ttft:V,total:V},tokens:j||{prompt_tokens:0,completion_tokens:0},request:L(a,u),providerRequest:v||w||null,providerResponse:b||null,response:{content:E?.choices?.[0]?.message?.content||E?.content||null,thinking:E?.choices?.[0]?.message?.reasoning_content||E?.reasoning_content||null,finish_reason:E?.choices?.[0]?.finish_reason||"unknown"},pxpipe:x,status:"success"},{endpoint:i?.endpoint||null})).catch(a=>{console.error("[RequestDetail] Failed to save:",a.message)}),p?.();let X=new Response(JSON.stringify((0,U.HR)(E,o)),{status:D.gx.OK,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*",...(0,C.d)(k?.headers)}});return X.success=!0,X.response=X,X}catch(a){return p?.(),q?.({status:`FAILED ${D.gx.BAD_GATEWAY}`}),console.error(`[ChatCore] Error in handleNonStreamingResponse (${G}/${H}):`,a?.message||a),(0,B.A1)(D.gx.BAD_GATEWAY,`Failed to process non-streaming response: ${a?.message||"unknown"}`)}}var aj=c(48330),ak=c(45894),al=c(4905);let am=new TextEncoder().encode('event: ping\ndata: {"type": "ping"}\n\n'),an={[g.h.OPENAI_RESPONSES]:g.h.OPENAI_RESPONSES,[g.h.CLAUDE]:g.h.CLAUDE,[g.h.ANTIGRAVITY]:g.h.ANTIGRAVITY,[g.h.GEMINI]:g.h.ANTIGRAVITY,[g.h.GEMINI_CLI]:g.h.ANTIGRAVITY},ao={[g.h.OLLAMA]:["application/x-ndjson"]};async function ap({providerResponse:a,provider:b,model:c,statisticsModel:d,sourceFormat:f,targetFormat:h,userAgent:i,body:j,stream:k,translatedBody:l,finalBody:n,requestStartTime:o,connectionId:p,apiKey:q,clientRawRequest:r,onRequestSuccess:s,reqLogger:t,toolNameMap:u,customToolNames:v,streamController:w,onStreamComplete:x,streamDetailId:y,pxpipe:z,reqTag:B,log:E,credentials:G}){let H=d||c;s&&Promise.resolve().then(s).catch(a=>{console.error("[ChatCore] onRequestSuccess failed:",a?.message||a)});let J=(a.headers.get("content-type")||"").toLowerCase();if(J&&!(J.includes("text/event-stream")||J.includes("application/json")||(ao[h]||[]).some(a=>J.includes(a)))){let d=await a.text().catch(()=>""),e=d.match(/<title>([^<]+)<\/title>/i),f=(e?.[1]||"").replace(/<[^>]*>/g,"").replace(/[\r\n]+/g," ").trim().slice(0,160)||(d.length<200?d.replace(/<[^>]*>/g,"").trim().slice(0,160):`Upstream returned non-SSE response (${J})`),g=a.status||502;return E?.errorLine?E.errorLine(B,"✗",`BLOCKED ${g} \xb7 ${b}/${c} \xb7 non-SSE (${J})
|
|
14
|
+
${f}`):console.warn(`[STREAM] ${b} | ${c} | blocked pipe: ${f} [${g}]`),w?.handleError?.(Error(`upstream non-SSE: ${g}`)),{success:!1,response:new Response(JSON.stringify({error:{message:`[${g}]: ${f}`}}),{status:g,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}let K=function({provider:a,sourceFormat:b,targetFormat:c,userAgent:d,reqLogger:f,toolNameMap:h,customToolNames:i,model:j,connectionId:k,body:l,onStreamComplete:m,apiKey:n,credentials:o,responseModel:p}){let q=d?.toLowerCase().includes("droid")||d?.toLowerCase().includes("codex-cli");if(A.xq[a]?.format===g.h.OPENAI_RESPONSES&&c===g.h.OPENAI_RESPONSES&&!q){let c=an[b]||g.h.OPENAI;return(0,I.i5)(g.h.OPENAI_RESPONSES,c,a,f,h,j,k,l,m,n,i,o,p)}return(0,e.nZ)(c,b)||h?.size>0?(0,I.i5)(c,b,a,f,h,j,k,l,m,n,i,o,p):(0,I.l2)(a,f,j,k,l,m,n)}({provider:b,sourceFormat:f,targetFormat:h,userAgent:i,reqLogger:t,toolNameMap:u,customToolNames:v,model:c,connectionId:p,body:j,onStreamComplete:x,apiKey:q,credentials:G,responseModel:r?.body?.model}),N=f===g.h.OPENAI_RESPONSES&&h===g.h.OPENAI_RESPONSES?aj.Hr:a=>(0,ak.mb)(D.gx.GATEWAY_TIMEOUT,a,f),O=A.xq[b]?.stallTimeoutMs||D.xM,P=f===g.h.CLAUDE?am:null,Q=(0,m.Jb)(a,K,w,N,O,P,15e3);return(0,F.ox)(M({provider:b,model:H,connectionId:p,latency:{ttft:0,total:Date.now()-o},tokens:{prompt_tokens:0,completion_tokens:0},request:L(j,k),providerRequest:n||l||null,providerResponse:"[Streaming - raw response not captured]",response:{content:"[Streaming in progress...]",thinking:null,type:"streaming"},pxpipe:z,status:"success"},{id:y})).catch(a=>{console.error("[RequestDetail] Failed to save streaming request:",a.message)}),{success:!0,response:new Response(Q,{headers:{...al.RK,...(0,C.d)(a.headers)}})}}let aq={claude:["claude","anthropic"],"gemini-cli":["gemini-cli"],antigravity:["antigravity"],codex:["codex"]};var ar=c(8382);let as=[{triggers:["mcp__exa__web_search_exa","mcp__exa__web_fetch_exa"],strip:["WebSearch","WebFetch","mcp__workspace__web_fetch"]},{triggers:["mcp__tavily__tavily_search","mcp__tavily__tavily_extract"],strip:["WebSearch","WebFetch","mcp__workspace__web_fetch"]},{triggers:[/^mcp__browsermcp__/],strip:[/^mcp__Claude_in_Chrome__/]}];function at(a){return a?.name||a?.function?.name||""}function au(a,b){return"string"==typeof b?a===b:b instanceof RegExp&&b.test(a)}function av(a,b){return b.endsWith("*")?a.startsWith(b.slice(0,-1)):b.includes("__")?a===b||a.startsWith(b+"__"):a.startsWith(`mcp__${b}__`)}var aw=c(98076),ax=c(87694),ay=c(4739);function az(a,b,c){try{if(!a||!c||"object"!=typeof a)return;if(function(a){if(!a||"object"!=typeof a)return!1;let b=a.conversationState;return!!b&&"object"==typeof b&&(Array.isArray(b.history)&&b.history.some(a=>a&&(a.userInputMessage||a.assistantResponseMessage))||!!(b.currentMessage&&b.currentMessage.userInputMessage))}(a)||b===g.h.KIRO)return void function(a,b){try{let c=a.conversationState,d=null,e=Array.isArray(c?.history)?c.history:null;if(e){for(let a of e)if(a&&a.userInputMessage){d=a.userInputMessage;break}}if(!d&&c?.currentMessage?.userInputMessage&&(d=c.currentMessage.userInputMessage),!d)return;let f="string"==typeof d.content?d.content:"",g=aB(f,b);if(g===f)return;try{d.content=g}catch(a){}}catch(a){}}(a,c);if(b===g.h.CLAUDE)return void function(a,b){try{let c=a.system;if("string"==typeof c){if(aA(c,b))return;let d=c.length>0?`${c}
|
|
15
15
|
|
|
16
16
|
${b}`:b;try{a.system=d}catch(a){}return}if(Array.isArray(c)){try{if(c.some(a=>a&&a.text===b))return}catch(a){}let a={type:ax.R4.TEXT,text:b},d=-1;try{for(let a=c.length-1;a>=0;a--)if(c[a]?.cache_control){d=a;break}}catch(a){}try{d>=0?c.splice(d,0,a):c.push(a)}catch(a){}return}try{a.system=b}catch(a){}}catch(a){}}(a,c);if(b===g.h.GEMINI||b===g.h.GEMINI_CLI||b===g.h.VERTEX||b===g.h.ANTIGRAVITY)return void function(a,b){try{let c,d=a;try{a.request&&"object"==typeof a.request&&(d=a.request)}catch(a){}let e=!1;try{e=Object.prototype.hasOwnProperty.call(d,"system_instruction")}catch(a){}let f=e?"system_instruction":"systemInstruction";try{c=d[f]}catch(a){c=void 0}if(c&&Array.isArray(c.parts)){try{if(c.parts.some(a=>a&&a.text===b))return}catch(a){}try{c.parts.push({text:b})}catch(a){}return}try{d[f]={parts:[{text:b}]}}catch(a){}}catch(a){}}(a,c);if("string"==typeof a.instructions)return void function(a,b){try{let c=a.instructions;if("string"!=typeof c||aA(c,b))return;let d=c?`${c}
|
|
17
17
|
|
|
@@ -67,8 +67,8 @@ ${e.length} files in ${g.length} dirs:
|
|
|
67
67
|
|
|
68
68
|
${a.slice(-d)}`}function bD(a,b,c){if(!Array.isArray(a)||0===a.length)return;for(let d of a)if(d){if("tool"===d.role&&"string"==typeof d.content){if(d.content.length>b.maxCharsPerResult){let a=d.content.length;d.content=bC(d.content,b.maxCharsPerResult),c.bytesSaved+=a-d.content.length}else if(Array.isArray(d.content)){for(let a of d.content)if(a?.type==="text"&&"string"==typeof a.text&&a.text.length>b.maxCharsPerResult){let d=a.text.length;a.text=bC(a.text,b.maxCharsPerResult),c.bytesSaved+=d-a.text.length}}}if(Array.isArray(d.content)&&(c.bytesSaved+=function(a,b,c){let d=0;for(let e of a)if(e&&"tool_result"===e.type&&!(c&&bB(e))){if("string"==typeof e.content){if(e.content.length>b){let a=e.content.length;e.content=bC(e.content,b),d+=a-e.content.length}}else if(Array.isArray(e.content)){for(let a of e.content)if(a?.type==="text"&&"string"==typeof a.text&&a.text.length>b){let c=a.text.length;a.text=bC(a.text,b),d+=c-a.text.length}}}return d}(d.content,b.maxCharsPerResult,b.preserveErrors)),"function_call_output"===d.type){if("string"==typeof d.output&&d.output.length>b.maxCharsPerResult){let a=d.output.length;d.output=bC(d.output,b.maxCharsPerResult),c.bytesSaved+=a-d.output.length}else if(Array.isArray(d.output)){for(let a of d.output)if(a?.type==="input_text"&&"string"==typeof a.text&&a.text.length>b.maxCharsPerResult){let d=a.text.length;a.text=bC(a.text,b.maxCharsPerResult),c.bytesSaved+=d-a.text.length}}}}let d=[];if(a.forEach((a,b)=>{bA(a)&&d.push(b)}),d.length<=b.maxToolTurns)return;let e=d.length-b.maxToolTurns,f=0,g=new Set;for(let c of d){if(f>=e)break;let d=a[c];!(b.preserveErrors&&(Array.isArray(d.content)&&d.content.some(bB)||"tool"===d.role&&"string"==typeof d.content&&d.content.toLowerCase().includes("error")))&&(g.add(c),f++)}if(f<e)for(let a of d){if(f>=e)break;!g.has(a)&&(g.add(a),f++)}for(let b of[...g].sort((a,b)=>b-a)){let d=JSON.stringify(a[b]||"").length;c.bytesSaved+=d,c.prunedCount++,a.splice(b,1)}if(b.maxTotalChars&&b.maxTotalChars>0){let d=JSON.stringify(a).length,e=0;for(;d>b.maxTotalChars&&e<a.length;){let b=a[e];if(bA(b)&&!g.has(e)){let a="[Tool output pruned: exceeded context budget]";if("tool"===b.role&&"string"==typeof b.content){if(b.content.length>200){let e=b.content.length;b.content=`${b.content.slice(0,200)}
|
|
69
69
|
${a}`;let f=e-b.content.length;c.bytesSaved+=f,d-=f}}else if(Array.isArray(b.content)){for(let e of b.content)if(e?.type==="tool_result"&&"string"==typeof e.content&&e.content.length>200){let b=e.content.length;e.content=`${e.content.slice(0,200)}
|
|
70
|
-
${a}`;let f=b-e.content.length;c.bytesSaved+=f,d-=f}}}if(++e>=a.length)break}}}var bE=c(11847),bF=c(9460);let bG=new Map,bH=0,bI=null;async function bJ(){let a=await (0,bF.uv)(),b=new Map;for(let c of a){let a=String(c?.id??"").trim();a&&c?.caps&&"object"==typeof c.caps&&b.set(a,c.caps)}return bG=b,bH=Date.now(),bG}async function bK(a,b){let c="string"==typeof b?b.includes("/")?b.split("/").pop():b:"";if(c){if(!(Date.now()-bH<3e4)){bI||=bJ().finally(()=>{bI=null});try{await bI}catch{return}}return bG.get(c)}}let bL={vision:"[image omitted: model has no vision support]",audioInput:"[audio omitted: model has no audio support]",pdf:"[file omitted: model has no document support]"},bM={vision:"[Previous image omitted from context.]",audioInput:"[Previous audio omitted from context.]",pdf:"[Previous file omitted from context.]"},bN=(a,b)=>(b?bL:bM)[a];function bO(a){let b=a?.type;return"image_url"===b||"image"===b?"vision":"input_audio"===b||"audio_url"===b?"audioInput":"file"===b?"pdf":null}function bP(a){let b=a?.type;return"image"===b?"vision":"document"===b?"pdf":null}function bQ(a,b,c,d,e){let f=[];for(let e of a){let a=b(e);if(a&&!1===c[a]){d.add(a);continue}f.push(e)}for(let a of d)f.push({type:"text",text:bN(a,e)});return f}function bR(a,b){if(!Array.isArray(a.messages))return;let c=a.messages.length-1;a.messages.forEach((a,d)=>{if(!1===b.vision&&(Array.isArray(a.images)&&delete a.images,Array.isArray(a.experimental_attachments)&&(a.experimental_attachments=a.experimental_attachments.filter(a=>!(a?.contentType?.startsWith("image/")||"string"==typeof a?.url&&a.url.startsWith("data:image/")))),Array.isArray(a.attachments)&&(a.attachments=a.attachments.filter(a=>!(a?.contentType?.startsWith("image/")||"string"==typeof a?.url&&a.url.startsWith("data:image/"))))),!Array.isArray(a.content))return;let e=new Set;a.content=bQ(a.content,bO,b,e,d===c)})}function bS(a,b){if(!Array.isArray(a))return;let c=a.length-1;a.forEach((a,d)=>{if(!Array.isArray(a.parts))return;let e=new Set;for(let f of(a.parts=a.parts.filter(a=>{var c;let d="string"!=typeof(c=a?.inlineData?.mimeType||a?.fileData?.mimeType)?null:c.startsWith("image/")?"vision":c.startsWith("audio/")?"audioInput":"application/pdf"===c?"pdf":null;return!d||!1!==b[d]||(e.add(d),!1)}),e))a.parts.push({text:bN(f,d===c)})})}let bT=/"type"\s*:\s*"(?:image|document|image_url|input_image|input_file|input_audio|audio_url|file)"|"inlineData"|"fileData"/;var bU=c(10640),bV=c(91576);async function bW({body:a,modelInfo:b,credentials:c,log:i,onCredentialsRefreshed:j,onRequestSuccess:k,onEmptyStream:o,onDisconnect:p,clientRawRequest:q,connectionId:r,userAgent:s,apiKey:t,ccFilterNaming:u,rtkEnabled:v,headroomEnabled:w,headroomUrl:x,headroomCompressUserMessages:I,headroomTimeoutMs:J,cavemanEnabled:K,cavemanLevel:P,ponytailEnabled:Q,ponytailLevel:R,pxpipeEnabled:S,pxpipeMinChars:T,pxpipeTimeoutMs:V,pxpipeTransform:W,onPxpipeEvent:X,toolHistoryPruning:Y,translationCache:Z,sourceFormatOverride:$,providerThinking:_,toolDisclosure:aa}){var ab;let ac,ad,af,ag,ah,ai,ak,{provider:al,model:am}=b,an=Date.now(),ao=(()=>{try{return(0,bV.oV)({headers:q?.headers,body:a,connectionId:r,scope:al})}catch{return r||""}})(),ap=i?.tagForSession?i.tagForSession(ao):i?.nextTag?i.nextTag():"",ax=$||(0,d.Tz)(a),ay=(0,E.c)(a,am,s,u);if(ay)return ay;let aA=z.Xg[al]||al,aB=("opencode"===al||"oc"===aA)&&/muse/i.test(am)?g.h.OPENAI_RESPONSES:null,{targetFormat:aC,transport:aD}=function({provider:a,alias:b,model:c,sourceFormat:e,credentials:f}){let g=(0,z.ux)(b,c),h=(0,z.ez)(b,c),i=(0,d.oF)(a,e),j=!h||h.includes(e)?i:null;return{targetFormat:g||j?.format||(0,d.jJ)(a,f),transport:g?(0,d.oF)(a,g):j}}({provider:al,alias:aA,model:am,sourceFormat:ax,credentials:c}),aE=aB||aC;aD&&c&&(c.runtimeTransport=aD);let aF=(0,z.cY)(aA,am),aG=(0,z.kt)(aA,am),aH=function(a={},b={}){let c=(a["user-agent"]||"").toLowerCase(),d=(a["x-app"]||"").toLowerCase(),e=(a["openai-intent"]||"").toLowerCase(),f=(a["x-initiator"]||a["X-Initiator"]||"").toLowerCase();return"antigravity"===b.userAgent?"antigravity":c.includes("githubcopilotchat")||"conversation-panel"===e||"user"===f?"github-copilot":c.includes("claude-cli")||c.includes("claude-code")||"cli"===d?"claude":c.includes("gemini-cli")?"gemini-cli":c.includes("codex-cli")||c.includes("codex_cli_rs")||c.includes("codex_exec")?"codex":c.includes("deepseek-tui")?"deepseek-tui":null}(q?.headers||{},a),aI=function(a,b){if(!a)return!1;let c=ar[a];if(!c)return!1;let d=b.startsWith("anthropic-compatible")?"anthropic":b;return c.includes(d)}(aH,al);if(_?.mode&&"auto"!==_.mode){let b=_.mode;if("on"!==b||a.thinking)if("off"!==b||a.thinking){if("on"!==b&&"off"!==b){let c=(0,f.sS)(a);(null==c||"auto"===c.mode)&&(a={...a,reasoning_effort:b},aI||delete a.thinking)}}else a={...a,thinking:{type:"disabled"}};else a={...a,thinking:{type:"enabled",budget_tokens:1e4}}}let aJ=q?.headers?.[D.SA]?.toLowerCase()!=="off",aL="cursor"===al?bi(a,aJ&&v):null,aM=bk(aL);aM&&console.log(aM);let aN=!0===a._compact,aO=!aN&&(ab=a,ax===g.h.ANTIGRAVITY||ax===g.h.GEMINI||ax===g.h.GEMINI_CLI||ab?.stream===!0),aP=!aN&&A.xq[al]?.forceStream===!0,aQ=!aN&&(!!aP||aO);("imageGen"===(0,z.OA)(aA,am)||/image|imagen|image-generation/i.test(am))&&("antigravity"===al||"gemini-cli"===al)&&(aQ=!1),"deepseek-tui"===aH&&!0!==a.stream&&(aQ=!1);let aS=q?.headers?.accept||"",aT=aS.includes("application/json"),aU=aS.includes("text/event-stream");!aT||aU||!0===a.stream||aP||(aQ=!1);let aV=await y(ax,aE,am);if(q&&aV.logClientRawRequest(q.endpoint,q.body,q.headers),aV.logRawRequest(a),i?.debug?.("FORMAT",`${ax} → ${aE} | stream=${aQ}`),c&&(c.rawHeaders=q?.headers||{}),!aI){let b=await bK(al,am),c=(0,bE.withDeclaredCapabilities)((0,bE.getCapabilitiesForModel)(al,am),b);(function(a,b,c){if(!a||!c||!1!==c.vision&&!1!==c.audioInput&&!1!==c.pdf)return!1;switch(b){case g.h.OPENAI:case g.h.OLLAMA:case g.h.KIRO:case g.h.CURSOR:case g.h.COMMANDCODE:bR(a,c);break;case g.h.CLAUDE:!function(a,b){if(!Array.isArray(a.messages))return;let c=a.messages.length-1;a.messages.forEach((a,d)=>{if(!Array.isArray(a.content))return;let e=new Set;a.content=bQ(a.content,bP,b,e,d===c)})}(a,c);break;case g.h.OPENAI_RESPONSES:case g.h.OPENAI_RESPONSE:case g.h.CODEX:!function(a,b){if(!Array.isArray(a.input))return;let c=a.input.length-1;a.input.forEach((a,d)=>{if(!Array.isArray(a.content))return;let e=new Set;for(let f of(a.content=a.content.filter(a=>{let c=a?.type==="input_image"?"vision":a?.type==="input_file"?"pdf":null;return!c||!1!==b[c]||(e.add(c),!1)}),e))a.content.push({type:"input_text",text:bN(f,d===c)})})}(a,c);break;case g.h.GEMINI:case g.h.GEMINI_CLI:case g.h.VERTEX:bS(a.contents,c);break;case g.h.ANTIGRAVITY:bS(a?.request?.contents,c);break;default:bR(a,c)}return!0})(a,ax,c)&&i?.debug?.("MODALITY",`stripped unsupported media for ${al}/${am}`);try{let b=await l(a,ax,aE,{signal:void 0});b>0&&i?.debug?.("MODALITY",`prefetched ${b} remote image(s) for ${aE}`)}catch(a){i?.warn?.("MODALITY",`image prefetch failed: ${a.message}`)}}let aW=null,aX=!1;if(Z&&!aI&&Array.isArray(a.messages))try{let{model:b,...c}=a;aW=`${al}|${aE}|${JSON.stringify(c)}`;let d=Z.get(aW);d&&(i?.debug?.("CACHE",`translation hit for ${al}/${am}`),ac=d.translatedBody,ad=d.toolNameMap,af=d.customToolNames,aX=!0,ac.model=(0,f.kD)(aG))}catch{}if(!ac)if(aI){if(i?.debug?.("PASSTHROUGH",`${aH} → ${al} | native lossless`),(ac={...structuredClone(a),model:(0,f.kD)(aG)}).stream!==aQ&&(ac.stream=aQ),"codex"===al){let a={};if((0,f.z)(ax,aG,a,al),a.reasoning_effort){let b=ac.reasoning;ac.reasoning={...b&&"object"==typeof b&&!Array.isArray(b)?b:{},effort:a.reasoning_effort},delete ac.reasoning_effort}}"claude"===aH&&(0,h.ui)(ac,ac.model,q?.headers||null),"claude"===aH&&"anthropic"!==al&&ac.output_config?.format&&(delete ac.output_config.format,0===Object.keys(ac.output_config).length&&delete ac.output_config)}else{if(!(ac=(0,e.GH)(ax,aE,aG,a,aQ,c,al,aV,aF,r,aH)))return(0,F.uw)(am,al,r,!1,!0),(0,B.A1)(D.gx.BAD_REQUEST,`Failed to translate request for ${ax} → ${aE}`);ad=ac._toolNameMap,delete ac._toolNameMap,af=ac._customToolNames,delete ac._customToolNames,ac.model=(0,f.kD)(aG),function(a){if(a&&Array.isArray(a.messages))for(let b of a.messages)b&&"object"==typeof b&&(delete b.encrypted_content,delete b.reasoning_encrypted_content)}(ac),aE!==g.h.GEMINI&&aE!==g.h.GEMINI_CLI&&aE!==g.h.ANTIGRAVITY&&aE!==g.h.VERTEX?ac.stream!==aQ&&(ac.stream=aQ):(delete ac.stream,delete ac.stream_options)}if(Array.isArray(ac.tools)){let{tools:a,stripped:b}=function(a,b={}){if(!Array.isArray(a)||0===a.length)return{tools:a,stripped:[]};let c=b.clientTool??null,d=b.model??null,e=[],f=a;if("claude"===c){let a=f.map(at),b=new Set;for(let c of as)if(a.some(a=>c.triggers.some(b=>au(a,b))))for(let d of a)c.strip.some(a=>au(d,a))&&b.add(d);b.size>0&&(f=f.filter(a=>!b.has(at(a))),e.push(...b))}if("string"==typeof d&&/^deepseek-/.test(d.replace(/\([^()]+\)\s*$/,"").trim())){let a=new Set,b=[];for(let c of f){let d=at(c);if(!d){b.push(c);continue}if(a.has(d)){e.push(d);continue}a.add(d),b.push(c)}f=b}return{tools:f,stripped:e}}(ac.tools,{clientTool:aH,model:am});b.length>0&&(ac.tools=a,i?.debug?.("TOOLDEDUP",`stripped ${b.length}: ${b.slice(0,3).join(", ")}${b.length>3?"...":""}`))}if(Array.isArray(ac.tools)&&ac.tools.length>0){let b=ac.tools.length,c=JSON.stringify(ac.tools).length;if(aa?.filterEnabled){let a=function(a,b){if(!Array.isArray(a)||0===a.length||!b)return a;let{excludeServers:c=[],excludeTools:d=[],includeOnlyServers:e=[],includeOnlyTools:f=[],alwaysInclude:g=[],excludeDescriptionPattern:h=null,includeOnlyDescriptionPattern:i=null}=b,j=new Set(g),k=new Set(d),l=new Set(f),m=h?RegExp(h,"i"):null,n=i?RegExp(i,"i"):null,o=e.length>0,p=f.length>0;return a.filter(a=>{let b=a?.name||a?.function?.name||"",d=a?.description||a?.function?.description||"";if(j.has(b))return!0;if(k.has(b)||c.some(a=>av(b,a))||m&&m.test(d))return!1;if(o||p){let a=o&&e.some(a=>av(b,a)),c=p&&l.has(b);if(!a&&!c)return!1}return!n||!!n.test(d)})}(ac.tools,aa);a.length<ac.tools.length&&(i?.debug?.("TOOLDISCLOSE",`filter: ${ac.tools.length}→${a.length} tools`),ac.tools=a)}if(aa?.disclosureEnabled){let{tools:b,stats:c}=(0,aw.Lg)(ac.tools,a,r,aa);c&&(i?.debug?.("TOOLDISCLOSE",`bm25: ${c.before}→${c.after} tools (-${c.stripped})`),ac.tools=b)}if(ac.tools.length>0&&b!==ac.tools.length){for(let a of ac.tools)delete a.cache_control;ac.tools[ac.tools.length-1].cache_control={type:"ephemeral",ttl:"1h"}}let d=ac.tools.length,e=JSON.stringify(ac.tools).length;i?.debug?.("TOOLDISCLOSE",`measure: ${b}tools ${c}B → ${d}tools ${e}B`)}let aY=aI?ax:aE;if(i?.line){let b=q?.body?.model||`${al}/${am}`,d=ac.messages?.length||ac.input?.length||ac.contents?.length||a.messages?.length||a.input?.length||0,e=ac.tools?.length||a.tools?.length||0,g=aI?`FMT: ${ax} (passthrough)`:`FMT: ${ax}→${aE}`,h="grok-cli"!==al||(0,H.Au)(am)?i.fmtThink?.((0,f.sS)(ac)):null,j=c?.connectionName||c?.connectionId?.slice(0,8)||"-",k=[`POST ${b} → ${al}/${am}`,g,aQ?"STREAM":"JSON",`${d} MSG`];e&&k.push(`${e} TOOL`),h&&k.push(`THINK:${h}`),k.push(`ACC:${j}`),i.line(ap,"▶",k.join(" \xb7 "))}"tts"===(0,z.OA)(aA,am)&&ac.messages&&(ac.messages=ac.messages.filter(a=>"tool"!==a.role),delete ac.tools),(0,bU.dV)(al,aY,ac.tools,A.xq)&&(ac.tools=(0,bU.C5)(ac.tools));let aZ=null,a$=null,a_=null,a0={},a1=null,a2=[];if(!(aX&&ac)){let a=aL||bi(ac,aJ&&v);(aZ=bk(a))&&console.log(aZ),a?.hits?.length&&a2.push(`RTK:${a.hits.length}`),(a$=function(a){if(!a||!a.prunedCount&&a.bytesSaved<500)return null;let b=a.beforeChars>0?(a.bytesSaved/a.beforeChars*100).toFixed(1):"0";return`[PRUNER] pruned ${a.prunedCount} tool turns, saved ${a.bytesSaved}B / ${a.beforeChars}B (${b}%)`}(aJ?function(a,b){if(!a||"object"!=typeof a)return null;let c={...bz,...b||{}};if(!c.enabled)return null;try{let b=JSON.stringify(a).length,d={prunedCount:0,bytesSaved:0};if(a.conversationState&&"object"==typeof a.conversationState)!function(a,b,c){let d=[...Array.isArray(a?.history)?a.history:[]];for(let e of(a?.currentMessage&&d.push(a.currentMessage),d)){let a=e?.userInputMessage?.userInputMessageContext?.toolResults;if(Array.isArray(a)){for(let d of a)if((!b.preserveErrors||"error"!==d.status)&&Array.isArray(d.content)){for(let a of d.content)if("string"==typeof a?.text&&a.text.length>b.maxCharsPerResult){let d=a.text.length;a.text=bC(a.text,b.maxCharsPerResult),c.bytesSaved+=d-a.text.length}}}}let e=[],f=a.history||[];if(f.forEach((a,b)=>{a?.userInputMessage?.userInputMessageContext?.toolResults?.length&&e.push(b)}),e.length>b.maxToolTurns){let a=e.length-b.maxToolTurns,d=0;for(let c of e){if(d>=a)break;let e=f[c],g=e?.userInputMessage?.userInputMessageContext?.toolResults?.some(a=>"error"===a.status);(!b.preserveErrors||!g)&&d++}if(d<a)for(let b=d;b<a;b++){let a=e[b],g=f[a];c.bytesSaved+=JSON.stringify(g||"").length,c.prunedCount++,f.splice(a-(b-d),1)}else{let a=new Set(e.slice(0,d)),b=0;for(let d=0;d<f.length;)if(a.has(d+b)){let a=f[d];c.bytesSaved+=JSON.stringify(a||"").length,c.prunedCount++,f.splice(d,1),b++}else d++}}}(a.conversationState,c,d);else if(Array.isArray(a.messages))bD(a.messages,c,d);else if(Array.isArray(a.input))bD(a.input,c,d);else{if(!Array.isArray(a.contents))return null;bD(a.contents,c,d)}let e=JSON.stringify(a).length,f={prunedCount:d.prunedCount,bytesSaved:Math.max(0,b-e),beforeChars:b,afterChars:e};return f.prunedCount>0||f.bytesSaved>500?f:null}catch(a){return console.warn("[pruner] error:",a.message),null}}(ac,Y):null))&&(console.log(a$),i?.info?.("PRUNER",a$)),a0={};let b=await bt(ac,{enabled:aJ&&w,url:x,model:aG,format:aY,compressUserMessages:I,timeoutMs:J,diagnostics:a0});a_=function(a,b=null){if(!a)return null;let c=a.tokens_before||0,d=a.tokens_after||0,e=a.tokens_saved||0,f=c>0?(e/c*100).toFixed(1):"0",g=bu(b);return`reported token delta=${e} before=${c}${d?` after=${d}`:""} (${f}%)${g?` | ${g}`:""}`.trim()}(b);let c=bu(a0);if(a_?(i?.info?.("HEADROOM",`${a_}${c?` | ${c}`:""}`),function(a,b,c=.05){if(!a?.tokens_saved||a.tokens_saved<=0)return!1;let d=b?.before?.bodyBytes||0,e=b?.after?.bodyBytes||0;return!(d<=0)&&!(e<=0)&&e>=d*(1-c)}(b,a0)&&i?.warn?.("HEADROOM",`reported token delta, but outbound JSON shrank <5%; provider may bill near-original payload | ${bu(a0)}`)):aJ&&w&&i?.warn?.("HEADROOM",`skipped: ${a0.reason||"compression unavailable"}${a0.endpoint?` (${a0.endpoint})`:""}`),aJ&&K&&P&&(az(ac,aY,aK[P]),a2.push(`CAVEMAN:${P}`)),aJ&&Q&&R&&!function(a){if(!a||"object"!=typeof a)return!1;try{return bT.test(JSON.stringify(a))}catch{return!1}}(ac)&&(az(ac,aY,aR[R]),a2.push(`PONYTAIL:${R}`)),S){let a=await by(ac,{enabled:aJ,format:aY,model:aG,minChars:T,timeoutMs:V,transform:W});a1=a.summary,a.body&&(ac=a.body),a1?.applied&&a2.push(`PXPIPE:${a1.imageCount}img`);try{X?.({provider:al,model:am,...a1})}catch{}}}if(a2.length&&i?.line&&i.line(ap,"⚙",a2.join(" \xb7 ")),aI&&"claude"===aH&&(0,h._W)(ac),Z&&aW&&!aI)try{aX||Z.set(aW,{translatedBody:ac,toolNameMap:ad,customToolNames:af})}catch{}let a3=(0,G.SB)(al);(0,F.uw)(am,al,r,!0),(0,F.E5)({model:am,provider:al,connectionId:r,status:"PENDING"}).catch(()=>{});let a4=ac.messages?.length||ac.input?.length||ac.contents?.length||ac.request?.contents?.length||0;i?.debug?.("REQUEST",`${al.toUpperCase()} | ${am} | ${a4} msgs`);let a5=(0,m.jd)({onDisconnect:a=>{(0,F.uw)(am,al,r,!1),(0,F.sZ)({provider:al||"unknown",model:am||"unknown",tokens:{prompt_tokens:0,completion_tokens:0},timestamp:new Date().toISOString(),connectionId:r||void 0,apiKey:t||void 0,endpoint:q?.endpoint||null,requestedModel:q?.body?.model||void 0,status:"aborted"}).catch(()=>{}),p&&p(a)},onError:()=>(0,F.uw)(am,al,r,!1),log:i,provider:al,model:am,reqTag:ap}),a6={connectionProxyEnabled:c?.providerSpecificData?.connectionProxyEnabled===!0,connectionProxyUrl:c?.providerSpecificData?.connectionProxyUrl||"",connectionNoProxy:c?.providerSpecificData?.connectionNoProxy||"",strictProxy:c?.providerSpecificData?.strictProxy===!0,vercelRelayUrl:c?.providerSpecificData?.vercelRelayUrl||""};if(a6.vercelRelayUrl){let a=c?.connectionName||c?.connectionId||"unknown",b=c?.providerSpecificData?.connectionProxyPoolId||"none";i?.info?.("PROXY",`${al.toUpperCase()} | ${am} | conn=${a} | pool=${b} | vercel-relay=${a6.vercelRelayUrl}`)}else if(a6.connectionProxyEnabled&&a6.connectionProxyUrl){let a=a6.connectionProxyUrl;try{let b=new URL(a6.connectionProxyUrl),c=b.hostname||"",d=b.port?`:${b.port}`:"",e=b.protocol||"http:";a=`${e}//${c}${d}`}catch{}let b=c?.providerSpecificData?.connectionProxyPoolId||"none",d=c?.connectionName||c?.connectionId||"unknown";i?.info?.("PROXY",`${al.toUpperCase()} | ${am} | conn=${d} | pool=${b} | url=${a}`)}if(a6.connectionProxyEnabled&&a6.connectionNoProxy){let a=c?.connectionName||c?.connectionId||"unknown";i?.debug?.("PROXY",`${al.toUpperCase()} | ${am} | conn=${a} | no_proxy=${a6.connectionNoProxy}`)}let a7=am,a8=aE,a9=aG||am;try{let a=await a3.execute({model:a9,body:ac,stream:aQ,credentials:c,signal:a5.signal,log:i,proxyOptions:a6});ag=a.response,ah=a.url,ai=a.headers,ak=a.transformedBody,a8=a.responseFormat||aE,a7=a.resolvedModel||am;let b=(0,U.g4)(ac);b?.size&&(ad=new Map([...ad||[],...b])),aV.logTargetRequest(ah,ai,ak)}catch(c){if((0,F.uw)(am,al,r,!1,!0),(0,F.E5)({model:am,provider:al,connectionId:r,status:`FAILED ${"AbortError"===c.name?499:D.gx.BAD_GATEWAY}`}).catch(()=>{}),(0,F.ox)(M({provider:al,model:am,connectionId:r,latency:{ttft:0,total:Date.now()-an},tokens:{prompt_tokens:0,completion_tokens:0},request:L(a,aQ),providerRequest:ac||null,response:{error:c.message||String(c),status:"AbortError"===c.name?499:502,thinking:null},pxpipe:a1,status:"error"})).catch(()=>{}),"AbortError"===c.name)return a5.handleError(c),(0,B.A1)(499,"Request aborted");let b=(0,B.lR)(c,al,am,D.gx.BAD_GATEWAY);return i?.errorLine&&i.errorLine(ap,"✗",`ERROR 502 \xb7 ${al}/${am} \xb7 ${Date.now()-an}ms
|
|
70
|
+
${a}`;let f=b-e.content.length;c.bytesSaved+=f,d-=f}}}if(++e>=a.length)break}}}var bE=c(11847),bF=c(9460);let bG=new Map,bH=0,bI=null;async function bJ(){let a=await (0,bF.uv)(),b=new Map;for(let c of a){let a=String(c?.id??"").trim();a&&c?.caps&&"object"==typeof c.caps&&b.set(a,c.caps)}return bG=b,bH=Date.now(),bG}async function bK(a,b){let c="string"==typeof b?b.includes("/")?b.split("/").pop():b:"";if(c){if(!(Date.now()-bH<3e4)){bI||=bJ().finally(()=>{bI=null});try{await bI}catch{return}}return bG.get(c)}}let bL={vision:"[image omitted: model has no vision support]",audioInput:"[audio omitted: model has no audio support]",pdf:"[file omitted: model has no document support]"},bM={vision:"[Previous image omitted from context.]",audioInput:"[Previous audio omitted from context.]",pdf:"[Previous file omitted from context.]"},bN=(a,b)=>(b?bL:bM)[a];function bO(a){let b=a?.type;return"image_url"===b||"image"===b?"vision":"input_audio"===b||"audio_url"===b?"audioInput":"file"===b?"pdf":null}function bP(a){let b=a?.type;return"image"===b?"vision":"document"===b?"pdf":null}function bQ(a,b,c,d,e){let f=[];for(let e of a){let a=b(e);if(a&&!1===c[a]){d.add(a);continue}f.push(e)}for(let a of d)f.push({type:"text",text:bN(a,e)});return f}function bR(a,b){if(!Array.isArray(a.messages))return;let c=a.messages.length-1;a.messages.forEach((a,d)=>{if(!1===b.vision&&(Array.isArray(a.images)&&delete a.images,Array.isArray(a.experimental_attachments)&&(a.experimental_attachments=a.experimental_attachments.filter(a=>!(a?.contentType?.startsWith("image/")||"string"==typeof a?.url&&a.url.startsWith("data:image/")))),Array.isArray(a.attachments)&&(a.attachments=a.attachments.filter(a=>!(a?.contentType?.startsWith("image/")||"string"==typeof a?.url&&a.url.startsWith("data:image/"))))),!Array.isArray(a.content))return;let e=new Set;a.content=bQ(a.content,bO,b,e,d===c)})}function bS(a,b){if(!Array.isArray(a))return;let c=a.length-1;a.forEach((a,d)=>{if(!Array.isArray(a.parts))return;let e=new Set;for(let f of(a.parts=a.parts.filter(a=>{var c;let d="string"!=typeof(c=a?.inlineData?.mimeType||a?.fileData?.mimeType)?null:c.startsWith("image/")?"vision":c.startsWith("audio/")?"audioInput":"application/pdf"===c?"pdf":null;return!d||!1!==b[d]||(e.add(d),!1)}),e))a.parts.push({text:bN(f,d===c)})})}let bT=/"type"\s*:\s*"(?:image|document|image_url|input_image|input_file|input_audio|audio_url|file)"|"inlineData"|"fileData"/;var bU=c(10640),bV=c(91576);async function bW({body:a,modelInfo:b,credentials:c,log:i,onCredentialsRefreshed:j,onRequestSuccess:k,onEmptyStream:o,onDisconnect:p,clientRawRequest:q,connectionId:r,userAgent:s,apiKey:t,ccFilterNaming:u,rtkEnabled:v,headroomEnabled:w,headroomUrl:x,headroomCompressUserMessages:I,headroomTimeoutMs:J,cavemanEnabled:K,cavemanLevel:P,ponytailEnabled:Q,ponytailLevel:R,pxpipeEnabled:S,pxpipeMinChars:T,pxpipeTimeoutMs:V,pxpipeTransform:W,onPxpipeEvent:X,toolHistoryPruning:Y,translationCache:Z,sourceFormatOverride:$,providerThinking:_,toolDisclosure:aa,providerOverrides:ab}){var ac;let ad,af,ag,ah,aj,ak,al,{provider:am,model:an}=b,ao=Date.now(),ax=(()=>{try{return(0,bV.oV)({headers:q?.headers,body:a,connectionId:r,scope:am})}catch{return r||""}})(),ay=i?.tagForSession?i.tagForSession(ax):i?.nextTag?i.nextTag():"",aA=$||(0,d.Tz)(a),aB=(0,E.c)(a,an,s,u);if(aB)return aB;let aC=z.Xg[am]||am,aD=("opencode"===am||"oc"===aC)&&/muse/i.test(an)?g.h.OPENAI_RESPONSES:null,{targetFormat:aE,transport:aF}=function({provider:a,alias:b,model:c,sourceFormat:e,credentials:f}){let g=(0,z.ux)(b,c),h=(0,z.ez)(b,c),i=(0,d.oF)(a,e),j=!h||h.includes(e)?i:null;return{targetFormat:g||j?.format||(0,d.jJ)(a,f),transport:g?(0,d.oF)(a,g):j}}({provider:am,alias:aC,model:an,sourceFormat:aA,credentials:c}),aG=aD||aE;aF&&c&&(c.runtimeTransport=aF);let aH=(0,z.cY)(aC,an),aI=(0,z.kt)(aC,an),aJ=function(a={},b={}){let c=(a["user-agent"]||"").toLowerCase(),d=(a["x-app"]||"").toLowerCase(),e=(a["openai-intent"]||"").toLowerCase(),f=(a["x-initiator"]||a["X-Initiator"]||"").toLowerCase();return"antigravity"===b.userAgent?"antigravity":c.includes("githubcopilotchat")||"conversation-panel"===e||"user"===f?"github-copilot":c.includes("claude-cli")||c.includes("claude-code")||"cli"===d?"claude":c.includes("gemini-cli")?"gemini-cli":c.includes("codex-cli")||c.includes("codex_cli_rs")||c.includes("codex_exec")?"codex":c.includes("deepseek-tui")?"deepseek-tui":null}(q?.headers||{},a),aL=function(a,b){if(!a)return!1;let c=aq[a];if(!c)return!1;let d=b.startsWith("anthropic-compatible")?"anthropic":b;return c.includes(d)}(aJ,am);if(_?.mode&&"auto"!==_.mode){let b=_.mode;if("on"!==b||a.thinking)if("off"!==b||a.thinking){if("on"!==b&&"off"!==b){let c=(0,f.sS)(a);(null==c||"auto"===c.mode)&&(a={...a,reasoning_effort:b},aL||delete a.thinking)}}else a={...a,thinking:{type:"disabled"}};else a={...a,thinking:{type:"enabled",budget_tokens:1e4}}}let aM=q?.headers?.[D.SA]?.toLowerCase()!=="off",aN="cursor"===am?bi(a,aM&&v):null,aO=bk(aN);aO&&console.log(aO);let aP=!0===a._compact,aQ=!aP&&(ac=a,aA===g.h.ANTIGRAVITY||aA===g.h.GEMINI||aA===g.h.GEMINI_CLI||ac?.stream===!0),aS=!aP&&A.xq[am]?.forceStream===!0,aT=!aP&&(!!aS||aQ);("imageGen"===(0,z.OA)(aC,an)||/image|imagen|image-generation/i.test(an))&&("antigravity"===am||"gemini-cli"===am)&&(aT=!1),"deepseek-tui"===aJ&&!0!==a.stream&&(aT=!1);let aU=q?.headers?.accept||"",aV=aU.includes("application/json"),aW=aU.includes("text/event-stream");!aV||aW||!0===a.stream||aS||(aT=!1);let aX=await y(aA,aG,an);if(q&&aX.logClientRawRequest(q.endpoint,q.body,q.headers),aX.logRawRequest(a),i?.debug?.("FORMAT",`${aA} → ${aG} | stream=${aT}`),c&&(c.rawHeaders=q?.headers||{}),!aL){let b=await bK(am,an),c=(0,bE.withDeclaredCapabilities)((0,bE.getCapabilitiesForModel)(am,an),b);(function(a,b,c){if(!a||!c||!1!==c.vision&&!1!==c.audioInput&&!1!==c.pdf)return!1;switch(b){case g.h.OPENAI:case g.h.OLLAMA:case g.h.KIRO:case g.h.CURSOR:case g.h.COMMANDCODE:bR(a,c);break;case g.h.CLAUDE:!function(a,b){if(!Array.isArray(a.messages))return;let c=a.messages.length-1;a.messages.forEach((a,d)=>{if(!Array.isArray(a.content))return;let e=new Set;a.content=bQ(a.content,bP,b,e,d===c)})}(a,c);break;case g.h.OPENAI_RESPONSES:case g.h.OPENAI_RESPONSE:case g.h.CODEX:!function(a,b){if(!Array.isArray(a.input))return;let c=a.input.length-1;a.input.forEach((a,d)=>{if(!Array.isArray(a.content))return;let e=new Set;for(let f of(a.content=a.content.filter(a=>{let c=a?.type==="input_image"?"vision":a?.type==="input_file"?"pdf":null;return!c||!1!==b[c]||(e.add(c),!1)}),e))a.content.push({type:"input_text",text:bN(f,d===c)})})}(a,c);break;case g.h.GEMINI:case g.h.GEMINI_CLI:case g.h.VERTEX:bS(a.contents,c);break;case g.h.ANTIGRAVITY:bS(a?.request?.contents,c);break;default:bR(a,c)}return!0})(a,aA,c)&&i?.debug?.("MODALITY",`stripped unsupported media for ${am}/${an}`);try{let b=await l(a,aA,aG,{signal:void 0});b>0&&i?.debug?.("MODALITY",`prefetched ${b} remote image(s) for ${aG}`)}catch(a){i?.warn?.("MODALITY",`image prefetch failed: ${a.message}`)}}let aY=null,aZ=!1;if(Z&&!aL&&Array.isArray(a.messages))try{let{model:b,...c}=a;aY=`${am}|${aG}|${JSON.stringify(c)}`;let d=Z.get(aY);d&&(i?.debug?.("CACHE",`translation hit for ${am}/${an}`),ad=d.translatedBody,af=d.toolNameMap,ag=d.customToolNames,aZ=!0,ad.model=(0,f.kD)(aI))}catch{}if(!ad)if(aL){if(i?.debug?.("PASSTHROUGH",`${aJ} → ${am} | native lossless`),(ad={...structuredClone(a),model:(0,f.kD)(aI)}).stream!==aT&&(ad.stream=aT),"codex"===am){let a={};if((0,f.z)(aA,aI,a,am),a.reasoning_effort){let b=ad.reasoning;ad.reasoning={...b&&"object"==typeof b&&!Array.isArray(b)?b:{},effort:a.reasoning_effort},delete ad.reasoning_effort}}"claude"===aJ&&(0,h.ui)(ad,ad.model,q?.headers||null),"claude"===aJ&&"anthropic"!==am&&ad.output_config?.format&&(delete ad.output_config.format,0===Object.keys(ad.output_config).length&&delete ad.output_config)}else{if(!(ad=(0,e.GH)(aA,aG,aI,a,aT,c,am,aX,aH,r,aJ)))return(0,F.uw)(an,am,r,!1,!0),(0,B.A1)(D.gx.BAD_REQUEST,`Failed to translate request for ${aA} → ${aG}`);af=ad._toolNameMap,delete ad._toolNameMap,ag=ad._customToolNames,delete ad._customToolNames,ad.model=(0,f.kD)(aI),function(a){if(a&&Array.isArray(a.messages))for(let b of a.messages)b&&"object"==typeof b&&(delete b.encrypted_content,delete b.reasoning_encrypted_content)}(ad),aG!==g.h.GEMINI&&aG!==g.h.GEMINI_CLI&&aG!==g.h.ANTIGRAVITY&&aG!==g.h.VERTEX?ad.stream!==aT&&(ad.stream=aT):(delete ad.stream,delete ad.stream_options)}if(Array.isArray(ad.tools)){let{tools:a,stripped:b}=function(a,b={}){if(!Array.isArray(a)||0===a.length)return{tools:a,stripped:[]};let c=a.map(at),d=new Set,e=new Set;if("claude"===b.clientTool){for(let a of as)if(c.some(b=>a.triggers.some(a=>au(b,a))))for(let b of c)a.strip.some(a=>au(b,a))&&d.add(b)}if((0,ar.wR)(b.model)){let b=new Set;for(let c=0;c<a.length;c++){let d=at(a[c]);d&&(b.has(d)?e.add(c):b.add(d))}}return 0===d.size&&0===e.size?{tools:a,stripped:[]}:{tools:a.filter((a,b)=>!e.has(b)&&!d.has(at(a))),stripped:Array.from(e).map(b=>at(a[b])).concat(Array.from(d))}}(ad.tools,{clientTool:aJ,model:an});b.length>0&&(ad.tools=a,i?.debug?.("TOOLDEDUP",`stripped ${b.length}: ${b.slice(0,3).join(", ")}${b.length>3?"...":""}`))}if(Array.isArray(ad.tools)&&ad.tools.length>0){let b=ad.tools.length,c=JSON.stringify(ad.tools).length;if(aa?.filterEnabled){let a=function(a,b){if(!Array.isArray(a)||0===a.length||!b)return a;let{excludeServers:c=[],excludeTools:d=[],includeOnlyServers:e=[],includeOnlyTools:f=[],alwaysInclude:g=[],excludeDescriptionPattern:h=null,includeOnlyDescriptionPattern:i=null}=b,j=new Set(g),k=new Set(d),l=new Set(f),m=h?RegExp(h,"i"):null,n=i?RegExp(i,"i"):null,o=e.length>0,p=f.length>0;return a.filter(a=>{let b=a?.name||a?.function?.name||"",d=a?.description||a?.function?.description||"";if(j.has(b))return!0;if(k.has(b)||c.some(a=>av(b,a))||m&&m.test(d))return!1;if(o||p){let a=o&&e.some(a=>av(b,a)),c=p&&l.has(b);if(!a&&!c)return!1}return!n||!!n.test(d)})}(ad.tools,aa);a.length<ad.tools.length&&(i?.debug?.("TOOLDISCLOSE",`filter: ${ad.tools.length}→${a.length} tools`),ad.tools=a)}if(aa?.disclosureEnabled){let{tools:b,stats:c}=(0,aw.Lg)(ad.tools,a,r,aa);c&&(i?.debug?.("TOOLDISCLOSE",`bm25: ${c.before}→${c.after} tools (-${c.stripped})`),ad.tools=b)}if(ad.tools.length>0&&b!==ad.tools.length){for(let a of ad.tools)delete a.cache_control;ad.tools[ad.tools.length-1].cache_control={type:"ephemeral",ttl:"1h"}}let d=ad.tools.length,e=JSON.stringify(ad.tools).length;i?.debug?.("TOOLDISCLOSE",`measure: ${b}tools ${c}B → ${d}tools ${e}B`)}let a$=aL?aA:aG;if(i?.line){let b=q?.body?.model||`${am}/${an}`,d=ad.messages?.length||ad.input?.length||ad.contents?.length||a.messages?.length||a.input?.length||0,e=ad.tools?.length||a.tools?.length||0,g=aL?`FMT: ${aA} (passthrough)`:`FMT: ${aA}→${aG}`,h="grok-cli"!==am||(0,H.Au)(an)?i.fmtThink?.((0,f.sS)(ad)):null,j=c?.connectionName||c?.connectionId?.slice(0,8)||"-",k=[`POST ${b} → ${am}/${an}`,g,aT?"STREAM":"JSON",`${d} MSG`];e&&k.push(`${e} TOOL`),h&&k.push(`THINK:${h}`),k.push(`ACC:${j}`),i.line(ay,"▶",k.join(" \xb7 "))}"tts"===(0,z.OA)(aC,an)&&ad.messages&&(ad.messages=ad.messages.filter(a=>"tool"!==a.role),delete ad.tools),(0,bU.dV)(am,a$,ad.tools,A.xq)&&(ad.tools=(0,bU.C5)(ad.tools));let a_=null,a0=null,a1=null,a2={},a3=null,a4=[];if(!(aZ&&ad)){let a=aN||bi(ad,aM&&v);(a_=bk(a))&&console.log(a_),a?.hits?.length&&a4.push(`RTK:${a.hits.length}`),(a0=function(a){if(!a||!a.prunedCount&&a.bytesSaved<500)return null;let b=a.beforeChars>0?(a.bytesSaved/a.beforeChars*100).toFixed(1):"0";return`[PRUNER] pruned ${a.prunedCount} tool turns, saved ${a.bytesSaved}B / ${a.beforeChars}B (${b}%)`}(aM?function(a,b){if(!a||"object"!=typeof a)return null;let c={...bz,...b||{}};if(!c.enabled)return null;try{let b=JSON.stringify(a).length,d={prunedCount:0,bytesSaved:0};if(a.conversationState&&"object"==typeof a.conversationState)!function(a,b,c){let d=[...Array.isArray(a?.history)?a.history:[]];for(let e of(a?.currentMessage&&d.push(a.currentMessage),d)){let a=e?.userInputMessage?.userInputMessageContext?.toolResults;if(Array.isArray(a)){for(let d of a)if((!b.preserveErrors||"error"!==d.status)&&Array.isArray(d.content)){for(let a of d.content)if("string"==typeof a?.text&&a.text.length>b.maxCharsPerResult){let d=a.text.length;a.text=bC(a.text,b.maxCharsPerResult),c.bytesSaved+=d-a.text.length}}}}let e=[],f=a.history||[];if(f.forEach((a,b)=>{a?.userInputMessage?.userInputMessageContext?.toolResults?.length&&e.push(b)}),e.length>b.maxToolTurns){let a=e.length-b.maxToolTurns,d=0;for(let c of e){if(d>=a)break;let e=f[c],g=e?.userInputMessage?.userInputMessageContext?.toolResults?.some(a=>"error"===a.status);(!b.preserveErrors||!g)&&d++}if(d<a)for(let b=d;b<a;b++){let a=e[b],g=f[a];c.bytesSaved+=JSON.stringify(g||"").length,c.prunedCount++,f.splice(a-(b-d),1)}else{let a=new Set(e.slice(0,d)),b=0;for(let d=0;d<f.length;)if(a.has(d+b)){let a=f[d];c.bytesSaved+=JSON.stringify(a||"").length,c.prunedCount++,f.splice(d,1),b++}else d++}}}(a.conversationState,c,d);else if(Array.isArray(a.messages))bD(a.messages,c,d);else if(Array.isArray(a.input))bD(a.input,c,d);else{if(!Array.isArray(a.contents))return null;bD(a.contents,c,d)}let e=JSON.stringify(a).length,f={prunedCount:d.prunedCount,bytesSaved:Math.max(0,b-e),beforeChars:b,afterChars:e};return f.prunedCount>0||f.bytesSaved>500?f:null}catch(a){return console.warn("[pruner] error:",a.message),null}}(ad,Y):null))&&(console.log(a0),i?.info?.("PRUNER",a0)),a2={};let b=await bt(ad,{enabled:aM&&w,url:x,model:aI,format:a$,compressUserMessages:I,timeoutMs:J,diagnostics:a2});a1=function(a,b=null){if(!a)return null;let c=a.tokens_before||0,d=a.tokens_after||0,e=a.tokens_saved||0,f=c>0?(e/c*100).toFixed(1):"0",g=bu(b);return`reported token delta=${e} before=${c}${d?` after=${d}`:""} (${f}%)${g?` | ${g}`:""}`.trim()}(b);let c=bu(a2);if(a1?(i?.info?.("HEADROOM",`${a1}${c?` | ${c}`:""}`),function(a,b,c=.05){if(!a?.tokens_saved||a.tokens_saved<=0)return!1;let d=b?.before?.bodyBytes||0,e=b?.after?.bodyBytes||0;return!(d<=0)&&!(e<=0)&&e>=d*(1-c)}(b,a2)&&i?.warn?.("HEADROOM",`reported token delta, but outbound JSON shrank <5%; provider may bill near-original payload | ${bu(a2)}`)):aM&&w&&i?.warn?.("HEADROOM",`skipped: ${a2.reason||"compression unavailable"}${a2.endpoint?` (${a2.endpoint})`:""}`),aM&&K&&P&&(az(ad,a$,aK[P]),a4.push(`CAVEMAN:${P}`)),aM&&Q&&R&&!function(a){if(!a||"object"!=typeof a)return!1;try{return bT.test(JSON.stringify(a))}catch{return!1}}(ad)&&(az(ad,a$,aR[R]),a4.push(`PONYTAIL:${R}`)),S){let a=await by(ad,{enabled:aM,format:a$,model:aI,minChars:T,timeoutMs:V,transform:W});a3=a.summary,a.body&&(ad=a.body),a3?.applied&&a4.push(`PXPIPE:${a3.imageCount}img`);try{X?.({provider:am,model:an,...a3})}catch{}}}if(a4.length&&i?.line&&i.line(ay,"⚙",a4.join(" \xb7 ")),aL&&"claude"===aJ&&(0,h._W)(ad),Z&&aY&&!aL)try{aZ||Z.set(aY,{translatedBody:ad,toolNameMap:af,customToolNames:ag})}catch{}let a5=(0,G.SB)(am);(0,F.uw)(an,am,r,!0),(0,F.E5)({model:an,provider:am,connectionId:r,status:"PENDING"}).catch(()=>{});let a6=ad.messages?.length||ad.input?.length||ad.contents?.length||ad.request?.contents?.length||0;i?.debug?.("REQUEST",`${am.toUpperCase()} | ${an} | ${a6} msgs`);let a7=(0,m.jd)({onDisconnect:a=>{(0,F.uw)(an,am,r,!1),(0,F.sZ)({provider:am||"unknown",model:an||"unknown",tokens:{prompt_tokens:0,completion_tokens:0},timestamp:new Date().toISOString(),connectionId:r||void 0,apiKey:t||void 0,endpoint:q?.endpoint||null,requestedModel:q?.body?.model||void 0,status:"aborted"}).catch(()=>{}),p&&p(a)},onError:()=>(0,F.uw)(an,am,r,!1),log:i,provider:am,model:an,reqTag:ay}),a8={connectionProxyEnabled:c?.providerSpecificData?.connectionProxyEnabled===!0,connectionProxyUrl:c?.providerSpecificData?.connectionProxyUrl||"",connectionNoProxy:c?.providerSpecificData?.connectionNoProxy||"",strictProxy:c?.providerSpecificData?.strictProxy===!0,vercelRelayUrl:c?.providerSpecificData?.vercelRelayUrl||""};if(a8.vercelRelayUrl){let a=c?.connectionName||c?.connectionId||"unknown",b=c?.providerSpecificData?.connectionProxyPoolId||"none";i?.info?.("PROXY",`${am.toUpperCase()} | ${an} | conn=${a} | pool=${b} | vercel-relay=${a8.vercelRelayUrl}`)}else if(a8.connectionProxyEnabled&&a8.connectionProxyUrl){let a=a8.connectionProxyUrl;try{let b=new URL(a8.connectionProxyUrl),c=b.hostname||"",d=b.port?`:${b.port}`:"",e=b.protocol||"http:";a=`${e}//${c}${d}`}catch{}let b=c?.providerSpecificData?.connectionProxyPoolId||"none",d=c?.connectionName||c?.connectionId||"unknown";i?.info?.("PROXY",`${am.toUpperCase()} | ${an} | conn=${d} | pool=${b} | url=${a}`)}if(a8.connectionProxyEnabled&&a8.connectionNoProxy){let a=c?.connectionName||c?.connectionId||"unknown";i?.debug?.("PROXY",`${am.toUpperCase()} | ${an} | conn=${a} | no_proxy=${a8.connectionNoProxy}`)}let a9=an,ba=aG,bb=aI||an;try{let a=await a5.execute({model:bb,body:ad,stream:aT,credentials:c,signal:a7.signal,log:i,proxyOptions:a8,providerOverrides:ab});ah=a.response,aj=a.url,ak=a.headers,al=a.transformedBody,ba=a.responseFormat||aG,a9=a.resolvedModel||an;let b=(0,U.g4)(ad);b?.size&&(af=new Map([...af||[],...b])),aX.logTargetRequest(aj,ak,al)}catch(c){if((0,F.uw)(an,am,r,!1,!0),(0,F.E5)({model:an,provider:am,connectionId:r,status:`FAILED ${"AbortError"===c.name?499:D.gx.BAD_GATEWAY}`}).catch(()=>{}),(0,F.ox)(M({provider:am,model:an,connectionId:r,latency:{ttft:0,total:Date.now()-ao},tokens:{prompt_tokens:0,completion_tokens:0},request:L(a,aT),providerRequest:ad||null,response:{error:c.message||String(c),status:"AbortError"===c.name?499:502,thinking:null},pxpipe:a3,status:"error"})).catch(()=>{}),"AbortError"===c.name)return a7.handleError(c),(0,B.A1)(499,"Request aborted");let b=(0,B.lR)(c,am,an,D.gx.BAD_GATEWAY);return i?.errorLine&&i.errorLine(ay,"✗",`ERROR 502 \xb7 ${am}/${an} \xb7 ${Date.now()-ao}ms
|
|
71
71
|
${b}${c.stack?`
|
|
72
|
-
${c.stack}`:""}`),(0,B.A1)(D.gx.BAD_GATEWAY,b)}if(!
|
|
73
|
-
URL: ${
|
|
74
|
-
${e}`)}return aV.logError(Error(c),ak||ac),(0,B.A1)(b,e,d,(0,B.Yg)(b,c),null,(0,C.d)(ag?.headers))}let ba=c?.providerSpecificData?.fastMode===!0&&a3.config.fastMode?.pricingMultiplier||1,bb={provider:al,model:am,statisticsModel:a7,body:a,stream:aQ,translatedBody:ac,finalBody:ak,requestStartTime:an,connectionId:r,apiKey:t,clientRawRequest:q,onRequestSuccess:k,onEmptyStream:o,pxpipe:a1,reqTag:ap,log:i,targetFormat:a8||aE,pricingMultiplier:ba},bc=a=>(0,F.E5)({model:a7,provider:al,connectionId:r,...a}).catch(()=>{}),bd=()=>(0,F.uw)(am,al,r,!1);if(!aO&&aP){let a=await ae({...bb,providerResponse:ag,sourceFormat:ax,targetFormat:a8,customToolNames:af,toolNameMap:ad,trackDone:bd,appendLog:bc});if(a)return a5.handleComplete(),a}if(!aQ){let a=await aj({...bb,providerResponse:ag,sourceFormat:ax,targetFormat:a8,reqLogger:aV,toolNameMap:ad,trackDone:bd,appendLog:bc});return a5.handleComplete(),a}let{onStreamComplete:be,onStreamAborted:bf,streamDetailId:bg}=function({provider:a,model:b,statisticsModel:c,connectionId:d,apiKey:e,requestStartTime:f,body:g,stream:h,finalBody:i,translatedBody:j,clientRawRequest:k,pxpipe:l,reqTag:m,log:n,pricingMultiplier:o}){let p=c||b,q=`${Date.now()}-${Math.random().toString(36).slice(2,11)}`;return{onStreamComplete:(b,c,r,{aborted:s=!1}={})=>{let t={ttft:r?r-f:Date.now()-f,total:Date.now()-f},u=b?.content||(s?"[Aborted streaming response]":"[Empty streaming response]"),v=b?.thinking||null;(0,F.ox)(M({provider:a,model:p,connectionId:d,latency:t,tokens:c||{prompt_tokens:0,completion_tokens:0},request:L(g,h),providerRequest:i||j||null,providerResponse:u,response:{content:u,thinking:v,type:"streaming"},pxpipe:l,status:s?"aborted":"success"},{id:q})).catch(a=>{console.error("[RequestDetail] Failed to update streaming content:",a.message)}),O({provider:a,model:p,tokens:c,connectionId:d,apiKey:e,endpoint:k?.endpoint,pricingMultiplier:o,label:s?"STREAM USAGE (aborted)":"STREAM USAGE",silent:!0}),n?.line&&n.line(m,"\uD83D\uDCCA",N({usage:c,latency:t}))},streamDetailId:q}}({...bb});return aq({...bb,providerResponse:ag,sourceFormat:ax,targetFormat:a8,userAgent:s,reqLogger:aV,toolNameMap:ad,customToolNames:af,streamController:a5,onStreamComplete:be,onStreamAborted:bf,streamDetailId:bg,credentials:c})}},89568:(a,b,c)=>{c.d(b,{Hd:()=>t,lJ:()=>s,rY:()=>u});let d={"response.completed":"completed","response.done":"completed","response.incomplete":"incomplete","response.failed":"failed","response.error":"failed",error:"failed"},e=new Set(["function_call","custom_tool_call"]);function f(a){if(void 0!==a)return JSON.parse(JSON.stringify(a))}function g(a){return Number.isInteger(a)&&a>=0?a:null}function h(a,b){return"string"!=typeof b||""===b?a||"":!a||b.startsWith(a)?b:a.startsWith(b)?a:b}function i(a,b,c){if(!b||"object"!=typeof b)return a;let d={...a||{},...f(b)};return c&&!d.type&&(d.type=c),"string"==typeof b.text&&(d.text=h(a?.text,b.text)),d}function j(a,b,c,d,e){a[d].push(...b[d]),a[d].sort((a,b)=>a.order-b.order),a[c]=h(a[c],b[c]);let f=a[d].map(a=>a.value).join("");a[e]=h(f,a[c])}function k(a,b,c,d,e,f){let g=new Set([...a[c].keys(),...b[c].keys(),...a[d].keys(),...b[d].keys(),...a[e].keys(),...b[e].keys()]);for(let[c,e]of b[d]){let b=a[d].get(c)||[];b.push(...e),a[d].set(c,b)}for(let[c,d]of b[e])a[e].set(c,i(a[e].get(c),d,f));for(let b of g)!function(a,b,c,d,e,f){let g=a[c].get(e)||[];g.sort((a,b)=>a.order-b.order);let j=g.map(a=>a.value).join(""),k=a[d].get(e),l=i(a[b].get(e),k,f)||{type:f};l.text=h(j,k?.text),a[b].set(e,l)}(a,c,d,e,b,f)}function l(a,b,c=null){let d,e=(d=b?.item,{outputIndex:g(b?.output_index),itemId:b?.item_id||d?.id||null,callId:b?.call_id||d?.call_id||null}),f=[],h=[],i=a=>{a&&!f.includes(a)&&f.push(a)},m=a=>{a&&!h.includes(a)&&h.push(a)};e.itemId&&(m(a.itemsById.get(e.itemId)),m(a.itemsByCallId.get(e.itemId))),e.callId&&(m(a.itemsByCallId.get(e.callId)),m(a.itemsById.get(e.callId)));let n=null!==e.outputIndex?a.itemsByOutputIndex.get(e.outputIndex):null;for(let b of(n&&(e.itemId&&n.id&&e.itemId!==n.id||e.callId&&n.callId&&e.callId!==n.callId)?a.outputOrderConflict=!0:i(n),h))i(b);let o=null!==e.outputIndex||e.itemId||e.callId;0===f.length&&c&&!o&&i(a.implicitItemsByType.get(c));let p=f[0]||function(a,b=null){let c=a.nextItemOrder++,d={order:c,aliasOrders:new Set([c]),outputIndex:null,id:null,callId:null,type:b,name:"",role:null,status:null,arguments:"",input:"",argumentFragments:[],inputFragments:[],argumentsSnapshot:"",inputSnapshot:"",content:new Map,summary:new Map,contentFragments:new Map,summaryFragments:new Map,contentSnapshots:new Map,summarySnapshots:new Map,raw:{}};return a.items.push(d),d}(a,c);for(let b=1;b<f.length;b++)p=function(a,b,c){if(!c||c===b)return b;for(let a of(b.outputIndex??=c.outputIndex,b.id||=c.id,b.callId||=c.callId,b.type||=c.type,b.name||=c.name,b.role||=c.role,b.status||=c.status,c.aliasOrders))b.aliasOrders.add(a);j(b,c,"argumentsSnapshot","argumentFragments","arguments"),j(b,c,"inputSnapshot","inputFragments","input"),b.raw={...c.raw,...b.raw},k(b,c,"content","contentFragments","contentSnapshots","output_text"),k(b,c,"summary","summaryFragments","summarySnapshots","summary_text");for(let[d,e]of a.itemsByOutputIndex)e===c&&a.itemsByOutputIndex.set(d,b);for(let[d,e]of a.itemsById)e===c&&a.itemsById.set(d,b);for(let[d,e]of a.itemsByCallId)e===c&&a.itemsByCallId.set(d,b);for(let[d,e]of a.implicitItemsByType)e===c&&a.implicitItemsByType.set(d,b);return a.items=a.items.filter(a=>a!==c),b}(a,p,f[b]);return null!==e.outputIndex&&(p.outputIndex??=e.outputIndex,a.itemsByOutputIndex.set(e.outputIndex,p)),e.itemId&&(p.id||=e.itemId,a.itemsById.set(e.itemId,p)),e.callId&&(p.callId||=e.callId,a.itemsByCallId.set(e.callId,p)),p.type||=c,c&&a.implicitItemsByType.set(c,p),p}function m(a,b,c=null,d=null,e=!1){if(!b||"object"!=typeof b)return null;let i=d?.item_id||b.id,j=d?.call_id||b.call_id,k=i&&(a.itemsById.get(i)||a.itemsByCallId.get(i))||j&&(a.itemsByCallId.get(j)||a.itemsById.get(j))||null,n=g(c),p=l(a,{output_index:e?k?.outputIndex??n:n,item_id:i,call_id:j,item:b},b.type||null),{content:q,summary:r,arguments:s,input:t,...u}=f(b);return p.raw={...p.raw,...u},p.type=b.type||p.type,p.id=b.id||p.id,p.callId=b.call_id||p.callId,p.name=b.name||p.name,p.role=b.role||p.role,p.status=b.status||p.status,Array.isArray(q)?q.forEach((a,b)=>{o(p,p.content,p.contentFragments,p.contentSnapshots,b,a,"output_text")}):"string"==typeof q&&o(p,p.content,p.contentFragments,p.contentSnapshots,0,{type:"output_text",text:q},"output_text"),Array.isArray(r)&&r.forEach((a,b)=>{o(p,p.summary,p.summaryFragments,p.summarySnapshots,b,a,"summary_text")}),"string"==typeof s&&s&&(p.argumentsSnapshot=h(p.argumentsSnapshot,s),p.arguments=h(p.arguments,p.argumentsSnapshot)),"string"==typeof t&&t&&(p.inputSnapshot=h(p.inputSnapshot,t),p.input=h(p.input,p.inputSnapshot)),p}function n(a,b){b&&"object"==typeof b&&(b.id&&(a.id=b.id),b.object&&(a.object=b.object),b.created_at&&(a.createdAt=b.created_at),b.model&&(a.model=b.model),b.usage&&"object"==typeof b.usage&&(a.usage=function(a,b){let c={...f(a)||{}};for(let[a,d]of Object.entries(b||{}))null!=d&&("object"!=typeof d||Array.isArray(d)?c[a]=d:c[a]={...c[a]||{},...f(d)});return"number"==typeof c.input_tokens&&"number"==typeof c.output_tokens&&void 0===b.total_tokens&&(c.total_tokens=c.input_tokens+c.output_tokens),c}(a.usage,b.usage)),Array.isArray(b.output)&&b.output.forEach((b,c)=>m(a,b,c,null,!0)))}function o(a,b,c,d,e,f,g){d.set(e,i(d.get(e),f,g));let j=(c.get(e)||[]).sort((a,b)=>a.order-b.order).map(a=>a.value).join(""),k=d.get(e),l=i(b.get(e),k,g)||{type:g};l.text=h(j,k?.text),b.set(e,l)}function p(a,b,c,d,e,f){return o(a,b,c,d,g(e.content_index??e.summary_index)??0,e.part||{type:f,text:e.text},f),a}function q(a,b,c,d,e,f,j){let k=g(f.content_index??f.summary_index)??0;if("string"!=typeof f.delta||!f.delta)return b;let l=d.get(k)||[];l.push({order:a.nextDeltaOrder++,value:f.delta}),d.set(k,l);let m=l.sort((a,b)=>a.order-b.order).map(a=>a.value).join(""),n=e.get(k),o=i(c.get(k),n,j)||{type:j};return o.text=h(m,n?.text),c.set(k,o),b}function r(a){return[...a.entries()].sort((a,b)=>a[0]-b[0]).map(([,a])=>f(a))}function s({id:a="",createdAt:b=0,model:c=""}={}){return{id:a,object:"response",createdAt:b,model:c,usage:null,items:[],itemsByOutputIndex:new Map,itemsById:new Map,itemsByCallId:new Map,implicitItemsByType:new Map,nextItemOrder:0,nextDeltaOrder:0,outputOrderConflict:!1,sawEvent:!1,finalized:!1,terminalType:null,terminalResponse:null,doneSent:!1}}function t(a,{eventType:b="response.failed",response:c=null,status:g=null,error:h=null,incompleteDetails:i=null}={}){if(!a||a.finalized)return{accepted:!1,type:a?.terminalType||b,response:a?.terminalResponse||null};n(a,c);let j=g||c?.status||d[b]||"failed",k={...f(c)||{},id:c?.id||a.id||`resp_${Date.now()}`,object:c?.object||a.object||"response",created_at:c?.created_at||a.createdAt||Math.floor(Date.now()/1e3),status:j,output:function(a,b=null){return a?[...a.items].sort((a,b)=>null!==a.outputIndex&&null!==b.outputIndex?a.outputIndex-b.outputIndex:null!==a.outputIndex?-1:null!==b.outputIndex?1:a.order-b.order).map(a=>(function(a,b=null){let c=f(a.raw)||{};return a.type&&(c.type=a.type),(a.id||e.has(a.type))&&(c.id=a.id||(a.id?a.id:a.callId?`fc_${a.callId}`:null!==a.outputIndex?`fc_output_${a.outputIndex}`:`fc_${a.order}`)),a.role&&(c.role=a.role),a.status&&(c.status=a.status),b&&(!c.status||"in_progress"===c.status)&&(c.status="completed"===b?"completed":"incomplete"),"message"===a.type?(c.role||="assistant",c.content=r(a.content)):"reasoning"===a.type?(c.summary=r(a.summary),a.content.size>0&&(c.content=r(a.content))):"function_call"===a.type?(a.callId||=c.call_id||a.id||`call_output_${a.outputIndex??a.order}`,c.call_id=a.callId,c.name=a.name||c.name||"",c.arguments=a.arguments||c.arguments||""):"custom_tool_call"===a.type&&(a.callId||=c.call_id||a.id||`call_output_${a.outputIndex??a.order}`,c.call_id=a.callId,c.name=a.name||c.name||"",c.input=a.input||c.input||""),c})(a,b)):[]}(a,j)};return a.model&&!k.model&&(k.model=a.model),a.usage&&(k.usage=f(a.usage)),h&&!k.error&&(k.error=f(h)),"failed"!==j||k.error||(k.error={type:"server_error",code:"response_failed",message:"response failed without error details"}),i&&!k.incomplete_details&&(k.incomplete_details=f(i)),a.finalized=!0,a.terminalType=b,a.terminalResponse=k,{accepted:!0,type:b,response:k}}function u(a,b){let{type:c,data:e}=function(a){if(!a||"object"!=typeof a)return{type:null,data:null};let b=a.data&&"object"==typeof a.data?a.data:a;return{type:b.type||a.type||a.event||null,data:b}}(b);if(!a||!c||!e)return{accepted:!1,type:c,data:e};if(a.finalized)return{accepted:!1,type:c,data:e,response:a.terminalResponse};a.sawEvent=!0,e.response&&n(a,e.response);let g=null;switch(c){case"response.output_item.added":case"response.output_item.done":g=m(a,e.item,e.output_index,e);break;case"response.content_part.added":case"response.content_part.done":case"response.output_text.done":p(g=l(a,e,"message"),g.content,g.contentFragments,g.contentSnapshots,e,"output_text");break;case"response.output_text.delta":g=l(a,e,"message"),q(a,g,g.content,g.contentFragments,g.contentSnapshots,e,"output_text");break;case"response.reasoning_summary_part.added":case"response.reasoning_summary_part.done":case"response.reasoning_summary_text.done":p(g=l(a,e,"reasoning"),g.summary,g.summaryFragments,g.summarySnapshots,e,"summary_text");break;case"response.reasoning_summary_text.delta":g=l(a,e,"reasoning"),q(a,g,g.summary,g.summaryFragments,g.summarySnapshots,e,"summary_text");break;case"response.reasoning_text.delta":g=l(a,e,"reasoning"),q(a,g,g.content,g.contentFragments,g.contentSnapshots,e,"reasoning_text");break;case"response.reasoning_text.done":p(g=l(a,e,"reasoning"),g.content,g.contentFragments,g.contentSnapshots,e,"reasoning_text");break;case"response.function_call_arguments.delta":if(g=l(a,e,"function_call"),"string"==typeof e.delta&&e.delta){g.argumentFragments.push({order:a.nextDeltaOrder++,value:e.delta});let b=g.argumentFragments.map(a=>a.value).join("");g.arguments=h(b,g.argumentsSnapshot)}break;case"response.function_call_arguments.done":g=l(a,e,"function_call"),"string"==typeof e.name&&e.name&&(g.name=e.name),g.argumentsSnapshot=h(g.argumentsSnapshot,e.arguments),g.arguments=h(g.arguments,g.argumentsSnapshot);break;case"response.custom_tool_call_input.delta":if(g=l(a,e,"custom_tool_call"),"string"==typeof e.delta&&e.delta){g.inputFragments.push({order:a.nextDeltaOrder++,value:e.delta});let b=g.inputFragments.map(a=>a.value).join("");g.input=h(b,g.inputSnapshot)}break;case"response.custom_tool_call_input.done":(g=l(a,e,"custom_tool_call")).inputSnapshot=h(g.inputSnapshot,e.input),g.input=h(g.input,g.inputSnapshot)}if(Object.hasOwn(d,c)){let b="error"===c?{type:"server_error",code:e.code||"response_error",message:e.message||"response stream error",...void 0!==e.param?{param:e.param}:{}}:null,h=t(a,{eventType:c,response:e.response,status:"response.done"===c&&e.response?.status||d[c],error:e.error||e.response?.error||b,incompleteDetails:e.response?.incomplete_details});return{...h,data:h.accepted?{...f(e),type:c,response:h.response}:e,item:g}}return{accepted:!0,type:c,data:e,item:g}}},98076:(a,b,c)=>{c.d(b,{Lg:()=>i,vC:()=>k});let d=new Set(["a","an","the","is","it","in","on","at","to","for","of","and","or","but","with","from","by","as","this","that","can","will","be","are","was","were","has","have","had","do","does","did","not","no","if","its","your","my","get","set","use","via"]);function e(a){return a?a.toLowerCase().replace(/[^a-z0-9\s_]/g," ").split(/\s+/).filter(a=>a.length>1&&!d.has(a)):[]}function f(a){return a?.name||a?.function?.name||""}function g(a,b=[]){let c=new Set(b);for(let b of(c.add("ToolSearch"),a?.messages||[])){for(let a of b?.tool_calls||[]){let b=a?.function?.name||a?.name;b&&c.add(b)}for(let a of Array.isArray(b?.content)?b.content:[])a?.type==="tool_use"&&a.name&&c.add(a.name)}let d=a?.tool_choice?.name||a?.tool_choice?.function?.name;return d&&c.add(d),c}let h=new Map;function i(a,b,c,d={}){var k;let l;if(!Array.isArray(a)||0===a.length)return{tools:a,stats:null};let m=d.maxTools??20,n=d.minScore??0,o=d.alwaysInclude||[];if(a.length<=m)return{tools:a,stats:null};if(!c){let c=g(b,o),d=[...a.filter(a=>c.has(f(a))),...a.filter(a=>!c.has(f(a)))].slice(0,m);return{tools:d,stats:{before:a.length,after:d.length,stripped:a.length-d.length}}}let{index:p}=function(a,b){let c=b.map(f).sort().join("|"),d=h.get(a);if(d&&d.toolSetId===c)return d.lastSeen=Date.now(),d;!function(){if(h.size<500)return;let a=Date.now()-72e5;for(let[b,c]of h)c.lastSeen<a&&h.delete(b);if(h.size>=500){let a=[...h.entries()].sort((a,b)=>a[1].lastSeen-b[1].lastSeen);for(let b=0;b<a.length/2;b++)h.delete(a[b][0])}}();let g={toolSetId:c,index:function(a){let b=a.map((a,b)=>{let c,d,g,h,i,j=e((c=f(a),d=a?.description||a?.function?.description||"",g=a?.input_schema||a?.function?.parameters||{},h=Object.keys(g?.properties||{}),[...i=c.replace(/^mcp__[^_]+__/,"").split(/_+/).filter(Boolean),...i,...i,...c.match(/^mcp__([^_]+)__/)?.[1]?.split(/_+/)||[],d,...h].join(" "))),k={};for(let a of j)k[a]=(k[a]||0)+1;return{i:b,tf:k,dl:j.length}}),c={};for(let a of b)for(let b of Object.keys(a.tf))c[b]=(c[b]||0)+1;let d=b.length,g=d?b.reduce((a,b)=>a+b.dl,0)/d:1;return{docs:b,df:c,N:d,avgdl:g}}(b),tools:b,lastSeen:Date.now()};return h.set(a,g),g}(c,a),q=g(b,o),r=e(function(a){let b=Array.isArray(a?.messages)?a.messages:[];for(let a=b.length-1;a>=0;a--){let c=b[a];if(c?.role==="user"){if("string"==typeof c.content)return c.content;if(Array.isArray(c.content))return c.content.filter(a=>a?.type==="text"||"string"==typeof a?.text).map(a=>a.text||"").join(" ")}}return""}(b)),s=[],t=[];for(let b=0;b<a.length;b++)q.has(f(a[b]))?s.push({tool:a[b],score:1/0}):t.push({tool:a[b],i:b});let u=Math.max(0,m-s.length);if(0===r.length)l=t.slice(0,u).map(a=>a.tool);else{let a=function(a,b){let{docs:c,df:d,N:e,avgdl:f}=a,g=Array(e).fill(0);for(let a of b){let b=d[a]||0;if(0===b)continue;let h=Math.log((e-b+.5)/(b+.5)+1);for(let b of c){let c=b.tf[a]||0;0!==c&&(g[b.i]+=2.5*c*h/(c+1.5*(.25+.75*b.dl/f)))}}return g}(p,r);t.sort((b,c)=>(a[c.i]||0)-(a[b.i]||0)),l=t.filter(b=>(a[b.i]||0)>=n).slice(0,u).map(a=>a.tool)}let v=[...s.map(a=>a.tool),...l],w=new Set(v.map(f)),x={before:a.length,after:v.length,stripped:a.length-v.length,keptNames:v.map(f),strippedNames:a.filter(a=>!w.has(f(a))).map(f)};return k={connectionId:c,...x},j.unshift({ts:Date.now(),...k}),j.length>50&&(j.length=50),{tools:v,stats:x}}let j=[];function k(){return j.slice()}}};
|
|
72
|
+
${c.stack}`:""}`),(0,B.A1)(D.gx.BAD_GATEWAY,b)}if(!a5.noAuth&&(ah.status===D.gx.UNAUTHORIZED||ah.status===D.gx.FORBIDDEN))try{let a=await (0,n.qZ)(async()=>{let a=await a5.refreshCredentials(c,i);return a?.refreshToken&&a.refreshToken!==c.refreshToken&&(a.accessToken&&(c.accessToken=a.accessToken),c.refreshToken=a.refreshToken),a},3,i);if(a?.accessToken||a?.copilotToken){if(i?.line&&i.line(ay,"\uD83D\uDD11",`TOKEN REFRESHED \xb7 ${am}/${an}`),Object.assign(c,a),j)try{await j(a)}catch(a){i?.warn?.("TOKEN",`onCredentialsRefreshed failed: ${a.message}`)}try{let a=await a5.execute({model:an,body:ad,stream:aT,credentials:c,providerSessionId:ax,clientTool:aJ,signal:a7.signal,log:i,proxyOptions:a8,providerOverrides:ab});a.response.ok&&(ah=a.response,aj=a.url,ba=a.responseFormat||aG,a9=a.resolvedModel||a9)}catch{i?.warn?.("TOKEN",`${am.toUpperCase()} | retry after refresh failed`)}}else i?.warn?.("TOKEN",`${am.toUpperCase()} | refresh failed`)}catch(a){i?.warn?.("TOKEN",`${am.toUpperCase()} | refresh threw: ${a.message}`)}if(!ah.ok){(0,F.uw)(an,am,r,!1,!0);let{statusCode:b,message:c,resetsAtMs:d}=await (0,B.zL)(ah,a5);(0,F.E5)({model:a9,provider:am,connectionId:r,status:`FAILED ${b}`}).catch(()=>{}),(0,F.ox)(M({provider:am,model:a9,connectionId:r,latency:{ttft:0,total:Date.now()-ao},tokens:{prompt_tokens:0,completion_tokens:0},request:L(a,aT),providerRequest:al||ad||null,response:{error:c,status:b,thinking:null},pxpipe:a3,status:"error"})).catch(()=>{});let e=(0,B.lR)(Error(c),am,a9,b);if(i?.errorLine){let a=aj?`
|
|
73
|
+
URL: ${aj}`:"";i.errorLine(ay,"✗",`ERROR ${b} \xb7 ${am}/${a9} \xb7 ${Date.now()-ao}ms${a}
|
|
74
|
+
${e}`)}return aX.logError(Error(c),al||ad),(0,B.A1)(b,e,d,(0,B.Yg)(b,c),null,(0,C.d)(ah?.headers))}let bc=c?.providerSpecificData?.fastMode===!0&&a5.config.fastMode?.pricingMultiplier||1,bd={provider:am,model:an,statisticsModel:a9,body:a,stream:aT,translatedBody:ad,finalBody:al,requestStartTime:ao,connectionId:r,apiKey:t,clientRawRequest:q,onRequestSuccess:k,onEmptyStream:o,pxpipe:a3,reqTag:ay,log:i,targetFormat:ba||aG,pricingMultiplier:bc},be=a=>(0,F.E5)({model:a9,provider:am,connectionId:r,...a}).catch(()=>{}),bf=()=>(0,F.uw)(an,am,r,!1);if(!aQ&&aS){let a=await ae({...bd,providerResponse:ah,sourceFormat:aA,targetFormat:ba,customToolNames:ag,toolNameMap:af,trackDone:bf,appendLog:be});if(a)return a7.handleComplete(),a}if(!aT){let a=await ai({...bd,providerResponse:ah,sourceFormat:aA,targetFormat:ba,reqLogger:aX,toolNameMap:af,trackDone:bf,appendLog:be});return a7.handleComplete(),a}let{onStreamComplete:bg,onStreamAborted:bh,streamDetailId:bj}=function({provider:a,model:b,statisticsModel:c,connectionId:d,apiKey:e,requestStartTime:f,body:g,stream:h,finalBody:i,translatedBody:j,clientRawRequest:k,pxpipe:l,reqTag:m,log:n,pricingMultiplier:o}){let p=c||b,q=`${Date.now()}-${Math.random().toString(36).slice(2,11)}`;return{onStreamComplete:(b,c,r,{aborted:s=!1}={})=>{let t={ttft:r?r-f:Date.now()-f,total:Date.now()-f},u=b?.content||(s?"[Aborted streaming response]":"[Empty streaming response]"),v=b?.thinking||null;(0,F.ox)(M({provider:a,model:p,connectionId:d,latency:t,tokens:c||{prompt_tokens:0,completion_tokens:0},request:L(g,h),providerRequest:i||j||null,providerResponse:u,response:{content:u,thinking:v,type:"streaming"},pxpipe:l,status:s?"aborted":"success"},{id:q})).catch(a=>{console.error("[RequestDetail] Failed to update streaming content:",a.message)}),O({provider:a,model:p,tokens:c,connectionId:d,apiKey:e,endpoint:k?.endpoint,pricingMultiplier:o,label:s?"STREAM USAGE (aborted)":"STREAM USAGE",silent:!0}),n?.line&&n.line(m,"\uD83D\uDCCA",N({usage:c,latency:t}))},streamDetailId:q}}({...bd});return ap({...bd,providerResponse:ah,sourceFormat:aA,targetFormat:ba,userAgent:s,reqLogger:aX,toolNameMap:af,customToolNames:ag,streamController:a7,onStreamComplete:bg,onStreamAborted:bh,streamDetailId:bj,credentials:c})}},62662:(a,b,c)=>{c.d(b,{d:()=>e});let d=new Set(["retry-after","x-should-retry"]);function e(a){let b={};return"function"!=typeof a?.forEach||a.forEach((a,c)=>{let e=c.toLowerCase();(d.has(e)||e.startsWith("anthropic-ratelimit-"))&&(b[e]=a)}),b}},89568:(a,b,c)=>{c.d(b,{Hd:()=>t,lJ:()=>s,rY:()=>u});let d={"response.completed":"completed","response.done":"completed","response.incomplete":"incomplete","response.failed":"failed","response.error":"failed",error:"failed"},e=new Set(["function_call","custom_tool_call"]);function f(a){if(void 0!==a)return JSON.parse(JSON.stringify(a))}function g(a){return Number.isInteger(a)&&a>=0?a:null}function h(a,b){return"string"!=typeof b||""===b?a||"":!a||b.startsWith(a)?b:a.startsWith(b)?a:b}function i(a,b,c){if(!b||"object"!=typeof b)return a;let d={...a||{},...f(b)};return c&&!d.type&&(d.type=c),"string"==typeof b.text&&(d.text=h(a?.text,b.text)),d}function j(a,b,c,d,e){a[d].push(...b[d]),a[d].sort((a,b)=>a.order-b.order),a[c]=h(a[c],b[c]);let f=a[d].map(a=>a.value).join("");a[e]=h(f,a[c])}function k(a,b,c,d,e,f){let g=new Set([...a[c].keys(),...b[c].keys(),...a[d].keys(),...b[d].keys(),...a[e].keys(),...b[e].keys()]);for(let[c,e]of b[d]){let b=a[d].get(c)||[];b.push(...e),a[d].set(c,b)}for(let[c,d]of b[e])a[e].set(c,i(a[e].get(c),d,f));for(let b of g)!function(a,b,c,d,e,f){let g=a[c].get(e)||[];g.sort((a,b)=>a.order-b.order);let j=g.map(a=>a.value).join(""),k=a[d].get(e),l=i(a[b].get(e),k,f)||{type:f};l.text=h(j,k?.text),a[b].set(e,l)}(a,c,d,e,b,f)}function l(a,b,c=null){let d,e=(d=b?.item,{outputIndex:g(b?.output_index),itemId:b?.item_id||d?.id||null,callId:b?.call_id||d?.call_id||null}),f=[],h=[],i=a=>{a&&!f.includes(a)&&f.push(a)},m=a=>{a&&!h.includes(a)&&h.push(a)};e.itemId&&(m(a.itemsById.get(e.itemId)),m(a.itemsByCallId.get(e.itemId))),e.callId&&(m(a.itemsByCallId.get(e.callId)),m(a.itemsById.get(e.callId)));let n=null!==e.outputIndex?a.itemsByOutputIndex.get(e.outputIndex):null;for(let b of(n&&(e.itemId&&n.id&&e.itemId!==n.id||e.callId&&n.callId&&e.callId!==n.callId)?a.outputOrderConflict=!0:i(n),h))i(b);let o=null!==e.outputIndex||e.itemId||e.callId;0===f.length&&c&&!o&&i(a.implicitItemsByType.get(c));let p=f[0]||function(a,b=null){let c=a.nextItemOrder++,d={order:c,aliasOrders:new Set([c]),outputIndex:null,id:null,callId:null,type:b,name:"",role:null,status:null,arguments:"",input:"",argumentFragments:[],inputFragments:[],argumentsSnapshot:"",inputSnapshot:"",content:new Map,summary:new Map,contentFragments:new Map,summaryFragments:new Map,contentSnapshots:new Map,summarySnapshots:new Map,raw:{}};return a.items.push(d),d}(a,c);for(let b=1;b<f.length;b++)p=function(a,b,c){if(!c||c===b)return b;for(let a of(b.outputIndex??=c.outputIndex,b.id||=c.id,b.callId||=c.callId,b.type||=c.type,b.name||=c.name,b.role||=c.role,b.status||=c.status,c.aliasOrders))b.aliasOrders.add(a);j(b,c,"argumentsSnapshot","argumentFragments","arguments"),j(b,c,"inputSnapshot","inputFragments","input"),b.raw={...c.raw,...b.raw},k(b,c,"content","contentFragments","contentSnapshots","output_text"),k(b,c,"summary","summaryFragments","summarySnapshots","summary_text");for(let[d,e]of a.itemsByOutputIndex)e===c&&a.itemsByOutputIndex.set(d,b);for(let[d,e]of a.itemsById)e===c&&a.itemsById.set(d,b);for(let[d,e]of a.itemsByCallId)e===c&&a.itemsByCallId.set(d,b);for(let[d,e]of a.implicitItemsByType)e===c&&a.implicitItemsByType.set(d,b);return a.items=a.items.filter(a=>a!==c),b}(a,p,f[b]);return null!==e.outputIndex&&(p.outputIndex??=e.outputIndex,a.itemsByOutputIndex.set(e.outputIndex,p)),e.itemId&&(p.id||=e.itemId,a.itemsById.set(e.itemId,p)),e.callId&&(p.callId||=e.callId,a.itemsByCallId.set(e.callId,p)),p.type||=c,c&&a.implicitItemsByType.set(c,p),p}function m(a,b,c=null,d=null,e=!1){if(!b||"object"!=typeof b)return null;let i=d?.item_id||b.id,j=d?.call_id||b.call_id,k=i&&(a.itemsById.get(i)||a.itemsByCallId.get(i))||j&&(a.itemsByCallId.get(j)||a.itemsById.get(j))||null,n=g(c),p=l(a,{output_index:e?k?.outputIndex??n:n,item_id:i,call_id:j,item:b},b.type||null),{content:q,summary:r,arguments:s,input:t,...u}=f(b);return p.raw={...p.raw,...u},p.type=b.type||p.type,p.id=b.id||p.id,p.callId=b.call_id||p.callId,p.name=b.name||p.name,p.role=b.role||p.role,p.status=b.status||p.status,Array.isArray(q)?q.forEach((a,b)=>{o(p,p.content,p.contentFragments,p.contentSnapshots,b,a,"output_text")}):"string"==typeof q&&o(p,p.content,p.contentFragments,p.contentSnapshots,0,{type:"output_text",text:q},"output_text"),Array.isArray(r)&&r.forEach((a,b)=>{o(p,p.summary,p.summaryFragments,p.summarySnapshots,b,a,"summary_text")}),"string"==typeof s&&s&&(p.argumentsSnapshot=h(p.argumentsSnapshot,s),p.arguments=h(p.arguments,p.argumentsSnapshot)),"string"==typeof t&&t&&(p.inputSnapshot=h(p.inputSnapshot,t),p.input=h(p.input,p.inputSnapshot)),p}function n(a,b){b&&"object"==typeof b&&(b.id&&(a.id=b.id),b.object&&(a.object=b.object),b.created_at&&(a.createdAt=b.created_at),b.model&&(a.model=b.model),b.usage&&"object"==typeof b.usage&&(a.usage=function(a,b){let c={...f(a)||{}};for(let[a,d]of Object.entries(b||{}))null!=d&&("object"!=typeof d||Array.isArray(d)?c[a]=d:c[a]={...c[a]||{},...f(d)});return"number"==typeof c.input_tokens&&"number"==typeof c.output_tokens&&void 0===b.total_tokens&&(c.total_tokens=c.input_tokens+c.output_tokens),c}(a.usage,b.usage)),Array.isArray(b.output)&&b.output.forEach((b,c)=>m(a,b,c,null,!0)))}function o(a,b,c,d,e,f,g){d.set(e,i(d.get(e),f,g));let j=(c.get(e)||[]).sort((a,b)=>a.order-b.order).map(a=>a.value).join(""),k=d.get(e),l=i(b.get(e),k,g)||{type:g};l.text=h(j,k?.text),b.set(e,l)}function p(a,b,c,d,e,f){return o(a,b,c,d,g(e.content_index??e.summary_index)??0,e.part||{type:f,text:e.text},f),a}function q(a,b,c,d,e,f,j){let k=g(f.content_index??f.summary_index)??0;if("string"!=typeof f.delta||!f.delta)return b;let l=d.get(k)||[];l.push({order:a.nextDeltaOrder++,value:f.delta}),d.set(k,l);let m=l.sort((a,b)=>a.order-b.order).map(a=>a.value).join(""),n=e.get(k),o=i(c.get(k),n,j)||{type:j};return o.text=h(m,n?.text),c.set(k,o),b}function r(a){return[...a.entries()].sort((a,b)=>a[0]-b[0]).map(([,a])=>f(a))}function s({id:a="",createdAt:b=0,model:c=""}={}){return{id:a,object:"response",createdAt:b,model:c,usage:null,items:[],itemsByOutputIndex:new Map,itemsById:new Map,itemsByCallId:new Map,implicitItemsByType:new Map,nextItemOrder:0,nextDeltaOrder:0,outputOrderConflict:!1,sawEvent:!1,finalized:!1,terminalType:null,terminalResponse:null,doneSent:!1}}function t(a,{eventType:b="response.failed",response:c=null,status:g=null,error:h=null,incompleteDetails:i=null}={}){if(!a||a.finalized)return{accepted:!1,type:a?.terminalType||b,response:a?.terminalResponse||null};n(a,c);let j=g||c?.status||d[b]||"failed",k={...f(c)||{},id:c?.id||a.id||`resp_${Date.now()}`,object:c?.object||a.object||"response",created_at:c?.created_at||a.createdAt||Math.floor(Date.now()/1e3),status:j,output:function(a,b=null){return a?[...a.items].sort((a,b)=>null!==a.outputIndex&&null!==b.outputIndex?a.outputIndex-b.outputIndex:null!==a.outputIndex?-1:null!==b.outputIndex?1:a.order-b.order).map(a=>(function(a,b=null){let c=f(a.raw)||{};return a.type&&(c.type=a.type),(a.id||e.has(a.type))&&(c.id=a.id||(a.id?a.id:a.callId?`fc_${a.callId}`:null!==a.outputIndex?`fc_output_${a.outputIndex}`:`fc_${a.order}`)),a.role&&(c.role=a.role),a.status&&(c.status=a.status),b&&(!c.status||"in_progress"===c.status)&&(c.status="completed"===b?"completed":"incomplete"),"message"===a.type?(c.role||="assistant",c.content=r(a.content)):"reasoning"===a.type?(c.summary=r(a.summary),a.content.size>0&&(c.content=r(a.content))):"function_call"===a.type?(a.callId||=c.call_id||a.id||`call_output_${a.outputIndex??a.order}`,c.call_id=a.callId,c.name=a.name||c.name||"",c.arguments=a.arguments||c.arguments||""):"custom_tool_call"===a.type&&(a.callId||=c.call_id||a.id||`call_output_${a.outputIndex??a.order}`,c.call_id=a.callId,c.name=a.name||c.name||"",c.input=a.input||c.input||""),c})(a,b)):[]}(a,j)};return a.model&&!k.model&&(k.model=a.model),a.usage&&(k.usage=f(a.usage)),h&&!k.error&&(k.error=f(h)),"failed"!==j||k.error||(k.error={type:"server_error",code:"response_failed",message:"response failed without error details"}),i&&!k.incomplete_details&&(k.incomplete_details=f(i)),a.finalized=!0,a.terminalType=b,a.terminalResponse=k,{accepted:!0,type:b,response:k}}function u(a,b){let{type:c,data:e}=function(a){if(!a||"object"!=typeof a)return{type:null,data:null};let b=a.data&&"object"==typeof a.data?a.data:a;return{type:b.type||a.type||a.event||null,data:b}}(b);if(!a||!c||!e)return{accepted:!1,type:c,data:e};if(a.finalized)return{accepted:!1,type:c,data:e,response:a.terminalResponse};a.sawEvent=!0,e.response&&n(a,e.response);let g=null;switch(c){case"response.output_item.added":case"response.output_item.done":g=m(a,e.item,e.output_index,e);break;case"response.content_part.added":case"response.content_part.done":case"response.output_text.done":p(g=l(a,e,"message"),g.content,g.contentFragments,g.contentSnapshots,e,"output_text");break;case"response.output_text.delta":g=l(a,e,"message"),q(a,g,g.content,g.contentFragments,g.contentSnapshots,e,"output_text");break;case"response.reasoning_summary_part.added":case"response.reasoning_summary_part.done":case"response.reasoning_summary_text.done":p(g=l(a,e,"reasoning"),g.summary,g.summaryFragments,g.summarySnapshots,e,"summary_text");break;case"response.reasoning_summary_text.delta":g=l(a,e,"reasoning"),q(a,g,g.summary,g.summaryFragments,g.summarySnapshots,e,"summary_text");break;case"response.reasoning_text.delta":g=l(a,e,"reasoning"),q(a,g,g.content,g.contentFragments,g.contentSnapshots,e,"reasoning_text");break;case"response.reasoning_text.done":p(g=l(a,e,"reasoning"),g.content,g.contentFragments,g.contentSnapshots,e,"reasoning_text");break;case"response.function_call_arguments.delta":if(g=l(a,e,"function_call"),"string"==typeof e.delta&&e.delta){g.argumentFragments.push({order:a.nextDeltaOrder++,value:e.delta});let b=g.argumentFragments.map(a=>a.value).join("");g.arguments=h(b,g.argumentsSnapshot)}break;case"response.function_call_arguments.done":g=l(a,e,"function_call"),"string"==typeof e.name&&e.name&&(g.name=e.name),g.argumentsSnapshot=h(g.argumentsSnapshot,e.arguments),g.arguments=h(g.arguments,g.argumentsSnapshot);break;case"response.custom_tool_call_input.delta":if(g=l(a,e,"custom_tool_call"),"string"==typeof e.delta&&e.delta){g.inputFragments.push({order:a.nextDeltaOrder++,value:e.delta});let b=g.inputFragments.map(a=>a.value).join("");g.input=h(b,g.inputSnapshot)}break;case"response.custom_tool_call_input.done":(g=l(a,e,"custom_tool_call")).inputSnapshot=h(g.inputSnapshot,e.input),g.input=h(g.input,g.inputSnapshot)}if(Object.hasOwn(d,c)){let b="error"===c?{type:"server_error",code:e.code||"response_error",message:e.message||"response stream error",...void 0!==e.param?{param:e.param}:{}}:null,h=t(a,{eventType:c,response:e.response,status:"response.done"===c&&e.response?.status||d[c],error:e.error||e.response?.error||b,incompleteDetails:e.response?.incomplete_details});return{...h,data:h.accepted?{...f(e),type:c,response:h.response}:e,item:g}}return{accepted:!0,type:c,data:e,item:g}}},98076:(a,b,c)=>{c.d(b,{Lg:()=>i,vC:()=>k});let d=new Set(["a","an","the","is","it","in","on","at","to","for","of","and","or","but","with","from","by","as","this","that","can","will","be","are","was","were","has","have","had","do","does","did","not","no","if","its","your","my","get","set","use","via"]);function e(a){return a?a.toLowerCase().replace(/[^a-z0-9\s_]/g," ").split(/\s+/).filter(a=>a.length>1&&!d.has(a)):[]}function f(a){return a?.name||a?.function?.name||""}function g(a,b=[]){let c=new Set(b);for(let b of(c.add("ToolSearch"),a?.messages||[])){for(let a of b?.tool_calls||[]){let b=a?.function?.name||a?.name;b&&c.add(b)}for(let a of Array.isArray(b?.content)?b.content:[])a?.type==="tool_use"&&a.name&&c.add(a.name)}let d=a?.tool_choice?.name||a?.tool_choice?.function?.name;return d&&c.add(d),c}let h=new Map;function i(a,b,c,d={}){var k;let l;if(!Array.isArray(a)||0===a.length)return{tools:a,stats:null};let m=d.maxTools??20,n=d.minScore??0,o=d.alwaysInclude||[];if(a.length<=m)return{tools:a,stats:null};if(!c){let c=g(b,o),d=[...a.filter(a=>c.has(f(a))),...a.filter(a=>!c.has(f(a)))].slice(0,m);return{tools:d,stats:{before:a.length,after:d.length,stripped:a.length-d.length}}}let{index:p}=function(a,b){let c=b.map(f).sort().join("|"),d=h.get(a);if(d&&d.toolSetId===c)return d.lastSeen=Date.now(),d;!function(){if(h.size<500)return;let a=Date.now()-72e5;for(let[b,c]of h)c.lastSeen<a&&h.delete(b);if(h.size>=500){let a=[...h.entries()].sort((a,b)=>a[1].lastSeen-b[1].lastSeen);for(let b=0;b<a.length/2;b++)h.delete(a[b][0])}}();let g={toolSetId:c,index:function(a){let b=a.map((a,b)=>{let c,d,g,h,i,j=e((c=f(a),d=a?.description||a?.function?.description||"",g=a?.input_schema||a?.function?.parameters||{},h=Object.keys(g?.properties||{}),[...i=c.replace(/^mcp__[^_]+__/,"").split(/_+/).filter(Boolean),...i,...i,...c.match(/^mcp__([^_]+)__/)?.[1]?.split(/_+/)||[],d,...h].join(" "))),k={};for(let a of j)k[a]=(k[a]||0)+1;return{i:b,tf:k,dl:j.length}}),c={};for(let a of b)for(let b of Object.keys(a.tf))c[b]=(c[b]||0)+1;let d=b.length,g=d?b.reduce((a,b)=>a+b.dl,0)/d:1;return{docs:b,df:c,N:d,avgdl:g}}(b),tools:b,lastSeen:Date.now()};return h.set(a,g),g}(c,a),q=g(b,o),r=e(function(a){let b=Array.isArray(a?.messages)?a.messages:[];for(let a=b.length-1;a>=0;a--){let c=b[a];if(c?.role==="user"){if("string"==typeof c.content)return c.content;if(Array.isArray(c.content))return c.content.filter(a=>a?.type==="text"||"string"==typeof a?.text).map(a=>a.text||"").join(" ")}}return""}(b)),s=[],t=[];for(let b=0;b<a.length;b++)q.has(f(a[b]))?s.push({tool:a[b],score:1/0}):t.push({tool:a[b],i:b});let u=Math.max(0,m-s.length);if(0===r.length)l=t.slice(0,u).map(a=>a.tool);else{let a=function(a,b){let{docs:c,df:d,N:e,avgdl:f}=a,g=Array(e).fill(0);for(let a of b){let b=d[a]||0;if(0===b)continue;let h=Math.log((e-b+.5)/(b+.5)+1);for(let b of c){let c=b.tf[a]||0;0!==c&&(g[b.i]+=2.5*c*h/(c+1.5*(.25+.75*b.dl/f)))}}return g}(p,r);t.sort((b,c)=>(a[c.i]||0)-(a[b.i]||0)),l=t.filter(b=>(a[b.i]||0)>=n).slice(0,u).map(a=>a.tool)}let v=[...s.map(a=>a.tool),...l],w=new Set(v.map(f)),x={before:a.length,after:v.length,stripped:a.length-v.length,keptNames:v.map(f),strippedNames:a.filter(a=>!w.has(f(a))).map(f)};return k={connectionId:c,...x},j.unshift({ts:Date.now(),...k}),j.length>50&&(j.length=50),{tools:v,stats:x}}let j=[];function k(){return j.slice()}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=3794,exports.ids=[3794],exports.modules={73794:(a,b,c)=>{c.r(b),c.d(b,{DIRECT_KEEP_ALIVE_MAX_TIMEOUT_MS:()=>j,DIRECT_KEEP_ALIVE_TIMEOUT_MS:()=>i,default:()=>
|
|
1
|
+
"use strict";exports.id=3794,exports.ids=[3794],exports.modules={73794:(a,b,c)=>{c.r(b),c.d(b,{DIRECT_KEEP_ALIVE_MAX_TIMEOUT_MS:()=>j,DIRECT_KEEP_ALIVE_TIMEOUT_MS:()=>i,default:()=>D,getDirectDispatcher:()=>l,isLoopbackTarget:()=>v,isStaleSocketError:()=>n,proxyAwareFetch:()=>B,resetDirectDispatcherForTests:()=>m});var d=c(27910),e=c(19874);let f=globalThis.fetch,g=new Map;function h(a,b){let c=process.env[a];if(null==c||""===c)return b;let d=parseInt(c,10);return Number.isFinite(d)&&d>0?d:b}let i=h("FETCH_KEEP_ALIVE_TIMEOUT_MS",3e4),j=h("FETCH_KEEP_ALIVE_MAX_TIMEOUT_MS",3e4),k=null;async function l(){if(k)return k;try{let{Agent:a}=await c.e(7995).then(c.t.bind(c,17995,19));k=new a({keepAliveTimeout:i,keepAliveMaxTimeout:j})}catch(a){a?.message,k=null}return k}function m(){k=null}function n(a){let b=a?.cause?.code||a?.code;return"UND_ERR_SOCKET"===b||"ECONNRESET"===b||"EPIPE"===b}let o=new Map,p=new Set(["SELF_SIGNED_CERT_IN_CHAIN","DEPTH_ZERO_SELF_SIGNED_CERT","UNABLE_TO_VERIFY_LEAF_SIGNATURE","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","CERT_HAS_EXPIRED","ERR_TLS_CERT_ALTNAME_INVALID"]),q=["cloudcode-pa.googleapis.com","daily-cloudcode-pa.googleapis.com","api.individual.githubcopilot.com","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com","api2.cursor.sh"],r=["8.8.8.8","8.8.4.4"];function s(a){return null==a?"":String(a).trim()}function t(a,b){let c=s(process.env[a]);if(!/^[1-9]\d*$/.test(c))return b;let d=Number(c);return Number.isSafeInteger(d)?d:b}async function u(a){let b=o.get(a);if(b&&Date.now()<b.expiry)return b.ip;try{let b=await Promise.resolve().then(c.t.bind(c,14985,19)),{promisify:d}=await Promise.resolve().then(c.t.bind(c,28354,19)),f=new b.Resolver;f.setServers(r);let g=d(f.resolve4.bind(f)),h=await g(a);return o.set(a,{ip:h[0],expiry:Date.now()+e.v1.dnsCacheTtlMs}),h[0]}catch(b){return console.warn(`[ProxyFetch] DNS resolve failed for ${a}:`,b.message),null}}function v(a){let b;try{b=new URL(a).hostname.toLowerCase()}catch{return!1}let c=b.startsWith("[")&&b.endsWith("]")?b.slice(1,-1):b;if("localhost"===c||c.endsWith(".localhost")||"::1"===c||"0:0:0:0:0:0:0:1"===c)return!0;let d=/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i.exec(c);if(d)return(parseInt(d[1],16)>>8&255)==127;let e=/^::ffff:(\d{1,3}(?:\.\d{1,3}){3})$/i.exec(c),f=e?e[1]:c;return/^127(?:\.\d{1,3}){3}$/.test(f)}function w(a,b){let c,d=s(b);if(!d)return!1;try{c=new URL(a).hostname.toLowerCase()}catch{return!1}return d.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean).some(a=>"*"===a||(a.startsWith(".")?c.endsWith(a)||c===a.slice(1):c===a||c.endsWith(`.${a}`)))}function x(a){let b=s(a);if(!b)return null;try{return new URL(b),b}catch{return`http://${b}`}}async function y(a,b=!1){let d=x(a);if(!d&&!b)return null;let f=`${d||"direct"}::${b?"insecure":"secure"}`;if(!g.has(f)){g.size>=e.v1.proxyDispatchersMaxSize&&g.delete(g.keys().next().value);let{Agent:a,ProxyAgent:h}=await c.e(7995).then(c.t.bind(c,17995,19)),i=t("PROXY_CONNECT_TIMEOUT_MS",9e4),j=t("PROXY_HEADERS_TIMEOUT_MS",3e5),k=b?{rejectUnauthorized:!1}:void 0,l=d?new h({uri:d,connectTimeout:i,headersTimeout:j,bodyTimeout:0,...b?{requestTls:k}:{}}):new a({connect:k});g.set(f,l)}return g.get(f)}async function z(a,b,c){let d="string"==typeof a?a:a.toString();try{if(c){let d=await y(c);return await f(a,d?{...b,dispatcher:d}:b)}let d=await l(),e=d?{...b,dispatcher:d}:{...b};try{return await f(a,e)}catch(c){if(!d||!n(c))throw c;let b={...e.headers||{},Connection:"close"};return await f(a,{...e,headers:b})}}catch(e){let d;if("true"!==process.env.STRICT_SSL&&"1"!==process.env.STRICT_SSL&&(d=e?.cause?.code||e?.code,p.has(d))){if(b.body&&"function"==typeof b.body.getReader&&b.body.locked)throw e;console.warn(`[ProxyFetch] TLS cert verification failed (${e.cause?.code||e.code}), retrying with insecure TLS: ${a}`);let d=await y(c,!0);return await f(a,{...b,dispatcher:d})}throw e}}async function A(a,b,e){let f=await Promise.resolve().then(c.t.bind(c,55591,19)),g=await Promise.resolve().then(c.t.bind(c,91645,19)),h=f.default??f,i=g.default??g;return new Promise((c,f)=>{let g=new i.Socket;g.connect(443,b,()=>{let b={socket:g,servername:a.hostname,path:a.pathname+a.search,method:e.method||"POST",headers:{...e.headers,Host:a.hostname}},i=h.request(b,a=>{let b={ok:a.statusCode>=200&&a.statusCode<300,status:a.statusCode,statusText:a.statusMessage,headers:new Map(Object.entries(a.headers)),body:d.Readable.toWeb(a),text:async()=>{let b=[];for await(let c of a)b.push(c);return Buffer.concat(b).toString()},json:async()=>JSON.parse(await b.text())};c(b)});i.on("error",f),e.body&&i.write("string"==typeof e.body?e.body:JSON.stringify(e.body)),i.end()}),g.on("error",f)})}async function B(a,b={},c=null){let d="string"==typeof a?a:a.toString(),e=s(c?.vercelRelayUrl);if(e){let a=new URL(d),c={...b.headers instanceof Headers?Object.fromEntries(b.headers.entries()):{...b.headers||{}},"x-relay-target":`${a.protocol}//${a.host}`,"x-relay-path":`${a.pathname}${a.search}`};return f(e,{...b,headers:c})}let g=function(a,b){if(b?.enabled!==!0&&b?.connectionProxyEnabled!==!0||v(a))return null;let c=s(b?.url??b?.connectionProxyUrl);if(!c)return null;let d=s(b?.noProxy??b?.connectionNoProxy);return d&&w(a,d)?null:x(c)}(d,c),h=g?null:x(function(a){let b;if(v(a)||w(a,process.env.NO_PROXY||process.env.no_proxy))return null;try{b=new URL(a).protocol}catch{return null}return"https:"===b?process.env.HTTPS_PROXY||process.env.https_proxy||process.env.ALL_PROXY||process.env.all_proxy:process.env.HTTP_PROXY||process.env.http_proxy||process.env.ALL_PROXY||process.env.all_proxy}(d)),i=g||h;if(function(a){try{let b=new URL(a).hostname;return q.some(a=>b.includes(a))}catch{return!1}}(d)){if(i)try{return await z(a,b,i)}catch(a){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${a.message}`);console.warn(`[ProxyFetch] Proxy failed, falling back to direct bypass: ${a.message}`)}try{let a=new URL(d),c=await u(a.hostname);if(c)return await A(a,c,b)}catch(a){console.warn(`[ProxyFetch] MITM bypass failed: ${a.message}`)}}if(i)try{return await z(a,b,i)}catch(d){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${d.message}`);return console.warn(`[ProxyFetch] Proxy failed, falling back to direct: ${d.message}`),z(a,b,null)}let j=c?.proxyPoolId||c?.enabled===!0||c?.connectionProxyEnabled===!0||!!s(c?.url??c?.connectionProxyUrl);if(c?.strictProxy===!0&&j)throw Error("[ProxyFetch] Proxy required but none resolved (strictProxy=true)");return z(a,b,null)}async function C(a,b={}){return B(a,b,null)}globalThis.fetch!==C&&(globalThis.fetch=C);let D=C}};
|