9router-proxy 0.6.24 → 0.6.25
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/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +16 -16
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- 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_client-reference-manifest.js +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_client-reference-manifest.js +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/endpoint/page_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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/skills/page_client-reference-manifest.js +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_client-reference-manifest.js +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_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/_tree.segment.rsc +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 +2 -2
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- 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/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +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/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +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/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +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/forge-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +3 -3
- 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/jcode-settings/route.js +2 -2
- 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/omp-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- 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/pi-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/models/route.js +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/providers/route.js +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/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +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/update/route.js +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 +2 -2
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- 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 +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +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 +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +2 -2
- 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/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +2 -2
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +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 +2 -2
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +16 -16
- package/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/app/.next-cli-build/server/chunks/1757.js +1 -1
- package/app/.next-cli-build/server/chunks/341.js +1 -1
- package/app/.next-cli-build/server/chunks/3835.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/4478.js +1 -1
- package/app/.next-cli-build/server/chunks/5026.js +1 -1
- package/app/.next-cli-build/server/chunks/778.js +1 -1
- package/app/.next-cli-build/server/chunks/8238.js +1 -1
- package/app/.next-cli-build/server/chunks/8591.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- 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/server/preview-props.json +3 -3
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/{1321-48747172a83bfc92.js → 1321-3a69a854a444fcd0.js} +1 -1
- package/app/.next-cli-build/static/chunks/9057-5cc83b08fdf10b7c.js +1 -0
- package/app/package.json +1 -1
- package/package.json +1 -1
- package/app/.next-cli-build/static/chunks/9057-7d59411792d52341.js +0 -1
- /package/app/.next-cli-build/static/{bbVVRdeQBpx9JWmvf1SHZ → GqCiYVA1XNTqU43gq2Fhm}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{bbVVRdeQBpx9JWmvf1SHZ → GqCiYVA1XNTqU43gq2Fhm}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9057],{5539:(e,t,s)=>{s.d(t,{A:()=>p,w:()=>c});var l=s(95155),i=s(12115),r=s(14051),n=s.n(r),a=s(35497),o=s(73006);let c=new Set(["grok-web","chatgpt-web","muse-web","deepseek-web","uc-web","joyagent"]),d={default:"person",grok:"bolt",work:"work",personal:"home"},u=[{key:"opening",label:"Opening browser window",icon:"open_in_new"},{key:"waiting",label:"Waiting for you to log in",icon:"hourglass_top"},{key:"saving",label:"Saving connection",icon:"save"}];function p({providerId:e,onConnected:t,size:s="sm"}){let[r,n]=(0,i.useState)(!1),[c,m]=(0,i.useState)("idle"),[x,g]=(0,i.useState)(""),[f,h]=(0,i.useState)(["default"]),[b,w]=(0,i.useState)("default"),[y,j]=(0,i.useState)(""),k=(0,i.useRef)(null),v=(0,i.useRef)(null),N=(0,i.useCallback)(()=>{k.current&&(clearInterval(k.current),k.current=null)},[]);(0,i.useEffect)(()=>()=>{N(),v.current&&clearTimeout(v.current)},[N]),(0,i.useEffect)(()=>{if(!r)return;let t=!1;return fetch("/api/providers/web-login",{cache:"no-store"}).then(e=>e.json()).then(s=>{if(t||!Array.isArray(s.profiles))return;let l=window.localStorage.getItem(`weblogin:profile:${e}`),i=s.profiles.includes("default")?s.profiles:["default",...s.profiles];h(i),w(l&&i.includes(l)?l:"default");let r=window.localStorage.getItem(`weblogin:proxy:${e}`);r&&j(r)}).catch(()=>{}),()=>{t=!0}},[r,e]);let C=(0,i.useCallback)(t=>{j(t),window.localStorage.setItem(`weblogin:proxy:${e}`,t)},[e]),T=(0,i.useCallback)(t=>{w(t),window.localStorage.setItem(`weblogin:profile:${e}`,t)},[e]),S="opening"===c||"waiting"===c,$=(0,i.useCallback)(()=>{S||(N(),n(!1),"error"===c&&(m("idle"),g("")))},[S,c,N]),_=(0,i.useCallback)(()=>{N(),k.current=setInterval(async()=>{try{let s=await fetch(`/api/providers/web-login?provider=${encodeURIComponent(e)}`,{cache:"no-store"}),l=await s.json();"success"===l.status?(N(),m("success"),g(l.email?`${(0,o.Tl)("Signed in as")} ${l.email}`:"Connection saved"),"function"==typeof t&&t(),v.current=setTimeout(()=>{n(!1),g("")},1500)):"error"===l.status||"timeout"===l.status||"cancelled"===l.status?(N(),m("error"),g(l.error||(0,o.Tl)("Login failed"))):m(e=>"opening"===e?"waiting":e)}catch{}},2e3)},[e,t,N]),O=(0,i.useCallback)(async()=>{m("opening"),g("");try{let t=await fetch("/api/providers/web-login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:e,profile:b,proxyUrl:y.trim()})}),s=await t.json();if(!t.ok){m("error"),g(s.error||(0,o.Tl)("Failed to start login"));return}m("waiting"),g((0,o.Tl)("A browser window has opened — log in there, this page updates itself.")),_()}catch(e){m("error"),g(e?.message||(0,o.Tl)("Failed to start login"))}},[e,b,y,_]),I=(0,i.useCallback)(()=>{fetch(`/api/providers/web-login?provider=${encodeURIComponent(e)}`,{method:"DELETE"}).catch(()=>{}),N(),m("idle"),g("")},[e,N]),A=(0,i.useCallback)(()=>{let e=window.prompt((0,o.Tl)("New browser profile name (e.g. work, personal):"),"");if(!e)return;let t=e.trim().replace(/[^a-zA-Z0-9_-]/g,"-").slice(0,40);t&&(h(e=>e.includes(t)?e:[...e,t]),T(t))},[T]),L="opening"===c?0:"waiting"===c?1:"success"===c?2:-1;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.$n,{size:s,icon:"success"===c?"check_circle":"language",variant:"secondary",onClick:()=>{m("idle"),g(""),n(!0)},title:(0,o.Tl)("Open a browser window, log in by hand — the cookie is captured automatically"),children:"success"===c?(0,o.Tl)("Connected"):(0,o.Tl)("Login via Browser")}),(0,l.jsx)(a.aF,{isOpen:r,onClose:$,title:(0,o.Tl)("Login via Browser"),size:"sm",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("p",{className:"text-xs text-text-muted",children:(0,o.Tl)("A Chrome window opens on a shared browser profile. Log in there — the session is captured automatically. One Google login in a profile makes every other provider a single “Continue with Google” click.")}),(0,l.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:(0,o.Tl)("Proxy (optional)")}),(0,l.jsx)("input",{type:"text",value:y,disabled:S,onChange:e=>C(e.target.value),placeholder:"http://127.0.0.1:7890",className:"rounded border border-accent/30 bg-sidebar px-2 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-50"}),(0,l.jsx)("span",{className:"text-[11px] text-text-muted",children:(0,o.Tl)("The login window and its requests use this proxy. Set it before logging in — a sign-in page that cannot load directly needs it.")})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,l.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:(0,o.Tl)("Browser profile")}),(0,l.jsxs)("button",{type:"button",onClick:A,disabled:S,className:"flex items-center gap-1 text-xs text-primary hover:underline disabled:opacity-50",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"add"}),(0,o.Tl)("New profile")]})]}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-2",children:f.map(e=>{let t=e===b;return(0,l.jsxs)("button",{type:"button",disabled:S,onClick:()=>T(e),className:`flex items-center gap-2 rounded border border-accent/30 bg-sidebar p-2 text-left text-sm transition-colors focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-50 ${t?"border-primary ring-1 ring-primary":"hover:border-accent/60"}`,children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px] text-text-muted",children:function(e){let t=String(e).toLowerCase();for(let[e,s]of Object.entries(d))if(t.includes(e))return s;return"folder_shared"}(e)}),(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e}),t&&(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check_circle"})]},e)})})]}),"idle"!==c&&(0,l.jsx)("div",{className:"rounded border border-accent/20 bg-sidebar/50 p-3",children:"success"===c?(0,l.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium text-green-400",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"check_circle"}),"✓ ",x||(0,o.Tl)("Connection saved")]}):"error"===c?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium text-yellow-400",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"error"}),(0,o.Tl)("Login failed")]}),x&&(0,l.jsx)("p",{className:"pl-6 text-xs text-red-500 break-words",children:x})]}):(0,l.jsxs)("ol",{className:"flex flex-col gap-2",children:[u.map((e,t)=>{let s=t<L,i=t===L;return(0,l.jsxs)("li",{className:`flex items-center gap-2 text-sm ${s?"text-green-400":i?"text-primary":"text-text-muted opacity-50"}`,children:[(0,l.jsx)("span",{className:`material-symbols-outlined text-[18px] ${i?"animate-pulse":""}`,children:s?"check_circle":e.icon}),(0,o.Tl)(e.label)]},e.key)}),x&&(0,l.jsx)("li",{className:"pl-6 text-xs text-text-muted",children:x})]})}),(0,l.jsx)("div",{className:"flex gap-2",children:"success"===c?(0,l.jsx)(a.$n,{onClick:$,fullWidth:!0,children:(0,o.Tl)("Done")}):S?(0,l.jsx)(a.$n,{onClick:I,variant:"ghost",fullWidth:!0,children:(0,o.Tl)("Cancel")}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.$n,{onClick:O,fullWidth:!0,disabled:"error"===c&&!x,children:(0,o.Tl)("Open Browser & Login")}),(0,l.jsx)(a.$n,{onClick:$,variant:"ghost",fullWidth:!0,disabled:S,children:(0,o.Tl)("Close")})]})})]})})]})}p.propTypes={providerId:n().string.isRequired,onConnected:n().func,size:n().oneOf(["sm","md","lg"])}},81231:(e,t,s)=>{function l(e={}){let t={};for(let[s,l]of Object.entries(e))"string"==typeof l&&(t[l]??=[]).push(s);return t}function i({customModels:e=[],modelAliases:t={},providerAlias:s,builtInModels:l=[],type:r="llm",includeLegacyAliases:n=!0}){let a=new Set(l.map(e=>e.id)),o=new Set,c=[];for(let t of e){if(!t?.id||t.providerAlias!==s)continue;let e=t?.kind||t?.type||"llm";if(r&&e!==r||a.has(t.id))continue;let l=`${s}/${t.id}`;o.has(l)||(o.add(l),c.push({id:t.id,name:t.name||t.id,fullModel:l,source:"custom",type:e}))}if(!n)return c;let d=`${s}/`;for(let[e,s]of Object.entries(t||{})){if("string"!=typeof s||!s.startsWith(d))continue;let t=s.slice(d.length);!t||a.has(t)||o.has(s)||(o.add(s),c.push({id:t,alias:e,fullModel:s,source:"legacyAlias",type:r||"llm"}))}return c}s.d(t,{R:()=>i,o:()=>l})}}]);
|
package/app/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9057],{5539:(e,t,s)=>{s.d(t,{A:()=>p,w:()=>c});var l=s(95155),i=s(12115),r=s(14051),n=s.n(r),a=s(35497),o=s(73006);let c=new Set(["grok-web","chatgpt-web","muse-web","deepseek-web","uc-web"]),d={default:"person",grok:"bolt",work:"work",personal:"home"},u=[{key:"opening",label:"Opening browser window",icon:"open_in_new"},{key:"waiting",label:"Waiting for you to log in",icon:"hourglass_top"},{key:"saving",label:"Saving connection",icon:"save"}];function p({providerId:e,onConnected:t,size:s="sm"}){let[r,n]=(0,i.useState)(!1),[c,m]=(0,i.useState)("idle"),[x,g]=(0,i.useState)(""),[f,h]=(0,i.useState)(["default"]),[b,w]=(0,i.useState)("default"),[y,j]=(0,i.useState)(""),k=(0,i.useRef)(null),v=(0,i.useRef)(null),N=(0,i.useCallback)(()=>{k.current&&(clearInterval(k.current),k.current=null)},[]);(0,i.useEffect)(()=>()=>{N(),v.current&&clearTimeout(v.current)},[N]),(0,i.useEffect)(()=>{if(!r)return;let t=!1;return fetch("/api/providers/web-login",{cache:"no-store"}).then(e=>e.json()).then(s=>{if(t||!Array.isArray(s.profiles))return;let l=window.localStorage.getItem(`weblogin:profile:${e}`),i=s.profiles.includes("default")?s.profiles:["default",...s.profiles];h(i),w(l&&i.includes(l)?l:"default");let r=window.localStorage.getItem(`weblogin:proxy:${e}`);r&&j(r)}).catch(()=>{}),()=>{t=!0}},[r,e]);let C=(0,i.useCallback)(t=>{j(t),window.localStorage.setItem(`weblogin:proxy:${e}`,t)},[e]),T=(0,i.useCallback)(t=>{w(t),window.localStorage.setItem(`weblogin:profile:${e}`,t)},[e]),S="opening"===c||"waiting"===c,$=(0,i.useCallback)(()=>{S||(N(),n(!1),"error"===c&&(m("idle"),g("")))},[S,c,N]),_=(0,i.useCallback)(()=>{N(),k.current=setInterval(async()=>{try{let s=await fetch(`/api/providers/web-login?provider=${encodeURIComponent(e)}`,{cache:"no-store"}),l=await s.json();"success"===l.status?(N(),m("success"),g(l.email?`${(0,o.Tl)("Signed in as")} ${l.email}`:"Connection saved"),"function"==typeof t&&t(),v.current=setTimeout(()=>{n(!1),g("")},1500)):"error"===l.status||"timeout"===l.status||"cancelled"===l.status?(N(),m("error"),g(l.error||(0,o.Tl)("Login failed"))):m(e=>"opening"===e?"waiting":e)}catch{}},2e3)},[e,t,N]),O=(0,i.useCallback)(async()=>{m("opening"),g("");try{let t=await fetch("/api/providers/web-login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:e,profile:b,proxyUrl:y.trim()})}),s=await t.json();if(!t.ok){m("error"),g(s.error||(0,o.Tl)("Failed to start login"));return}m("waiting"),g((0,o.Tl)("A browser window has opened — log in there, this page updates itself.")),_()}catch(e){m("error"),g(e?.message||(0,o.Tl)("Failed to start login"))}},[e,b,y,_]),I=(0,i.useCallback)(()=>{fetch(`/api/providers/web-login?provider=${encodeURIComponent(e)}`,{method:"DELETE"}).catch(()=>{}),N(),m("idle"),g("")},[e,N]),A=(0,i.useCallback)(()=>{let e=window.prompt((0,o.Tl)("New browser profile name (e.g. work, personal):"),"");if(!e)return;let t=e.trim().replace(/[^a-zA-Z0-9_-]/g,"-").slice(0,40);t&&(h(e=>e.includes(t)?e:[...e,t]),T(t))},[T]),L="opening"===c?0:"waiting"===c?1:"success"===c?2:-1;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.$n,{size:s,icon:"success"===c?"check_circle":"language",variant:"secondary",onClick:()=>{m("idle"),g(""),n(!0)},title:(0,o.Tl)("Open a browser window, log in by hand — the cookie is captured automatically"),children:"success"===c?(0,o.Tl)("Connected"):(0,o.Tl)("Login via Browser")}),(0,l.jsx)(a.aF,{isOpen:r,onClose:$,title:(0,o.Tl)("Login via Browser"),size:"sm",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("p",{className:"text-xs text-text-muted",children:(0,o.Tl)("A Chrome window opens on a shared browser profile. Log in there — the session is captured automatically. One Google login in a profile makes every other provider a single “Continue with Google” click.")}),(0,l.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:(0,o.Tl)("Proxy (optional)")}),(0,l.jsx)("input",{type:"text",value:y,disabled:S,onChange:e=>C(e.target.value),placeholder:"http://127.0.0.1:7890",className:"rounded border border-accent/30 bg-sidebar px-2 py-1.5 text-sm focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-50"}),(0,l.jsx)("span",{className:"text-[11px] text-text-muted",children:(0,o.Tl)("The login window and its requests use this proxy. Set it before logging in — a sign-in page that cannot load directly needs it.")})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,l.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:(0,o.Tl)("Browser profile")}),(0,l.jsxs)("button",{type:"button",onClick:A,disabled:S,className:"flex items-center gap-1 text-xs text-primary hover:underline disabled:opacity-50",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"add"}),(0,o.Tl)("New profile")]})]}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-2",children:f.map(e=>{let t=e===b;return(0,l.jsxs)("button",{type:"button",disabled:S,onClick:()=>T(e),className:`flex items-center gap-2 rounded border border-accent/30 bg-sidebar p-2 text-left text-sm transition-colors focus:outline-none focus:ring-1 focus:ring-primary disabled:opacity-50 ${t?"border-primary ring-1 ring-primary":"hover:border-accent/60"}`,children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px] text-text-muted",children:function(e){let t=String(e).toLowerCase();for(let[e,s]of Object.entries(d))if(t.includes(e))return s;return"folder_shared"}(e)}),(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e}),t&&(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check_circle"})]},e)})})]}),"idle"!==c&&(0,l.jsx)("div",{className:"rounded border border-accent/20 bg-sidebar/50 p-3",children:"success"===c?(0,l.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium text-green-400",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"check_circle"}),"✓ ",x||(0,o.Tl)("Connection saved")]}):"error"===c?(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium text-yellow-400",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"error"}),(0,o.Tl)("Login failed")]}),x&&(0,l.jsx)("p",{className:"pl-6 text-xs text-red-500 break-words",children:x})]}):(0,l.jsxs)("ol",{className:"flex flex-col gap-2",children:[u.map((e,t)=>{let s=t<L,i=t===L;return(0,l.jsxs)("li",{className:`flex items-center gap-2 text-sm ${s?"text-green-400":i?"text-primary":"text-text-muted opacity-50"}`,children:[(0,l.jsx)("span",{className:`material-symbols-outlined text-[18px] ${i?"animate-pulse":""}`,children:s?"check_circle":e.icon}),(0,o.Tl)(e.label)]},e.key)}),x&&(0,l.jsx)("li",{className:"pl-6 text-xs text-text-muted",children:x})]})}),(0,l.jsx)("div",{className:"flex gap-2",children:"success"===c?(0,l.jsx)(a.$n,{onClick:$,fullWidth:!0,children:(0,o.Tl)("Done")}):S?(0,l.jsx)(a.$n,{onClick:I,variant:"ghost",fullWidth:!0,children:(0,o.Tl)("Cancel")}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.$n,{onClick:O,fullWidth:!0,disabled:"error"===c&&!x,children:(0,o.Tl)("Open Browser & Login")}),(0,l.jsx)(a.$n,{onClick:$,variant:"ghost",fullWidth:!0,disabled:S,children:(0,o.Tl)("Close")})]})})]})})]})}p.propTypes={providerId:n().string.isRequired,onConnected:n().func,size:n().oneOf(["sm","md","lg"])}},81231:(e,t,s)=>{function l(e={}){let t={};for(let[s,l]of Object.entries(e))"string"==typeof l&&(t[l]??=[]).push(s);return t}function i({customModels:e=[],modelAliases:t={},providerAlias:s,builtInModels:l=[],type:r="llm",includeLegacyAliases:n=!0}){let a=new Set(l.map(e=>e.id)),o=new Set,c=[];for(let t of e){if(!t?.id||t.providerAlias!==s)continue;let e=t?.kind||t?.type||"llm";if(r&&e!==r||a.has(t.id))continue;let l=`${s}/${t.id}`;o.has(l)||(o.add(l),c.push({id:t.id,name:t.name||t.id,fullModel:l,source:"custom",type:e}))}if(!n)return c;let d=`${s}/`;for(let[e,s]of Object.entries(t||{})){if("string"!=typeof s||!s.startsWith(d))continue;let t=s.slice(d.length);!t||a.has(t)||o.has(s)||(o.add(s),c.push({id:t,alias:e,fullModel:s,source:"legacyAlias",type:r||"llm"}))}return c}s.d(t,{R:()=>i,o:()=>l})}}]);
|
|
File without changes
|
/package/app/.next-cli-build/static/{bbVVRdeQBpx9JWmvf1SHZ → GqCiYVA1XNTqU43gq2Fhm}/_ssgManifest.js
RENAMED
|
File without changes
|