PageSourceSearch

https://prest0.ai/static/js/3845.91791456.chunk.js

js prest0.ai collected 2026-10-05 15:45:47 UTC 2,911 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcursor_ai_agents=self.webpackChunkcursor_ai_agents||[]).push([[3845],{23845:(e,n,t)=>{t.r(n),t.d(n,{__resetConnectWarmupForTests:()=>I,warmUpConnectIntent:()=>v});var a=t(67898),o=t(83846),c=t(16702),i=t(19481),r=t(74441),u=t(96200),s=t(99417),l=t(34849),d=t(29994);let p=!1;function v(){(async function(e){var n,v;p||(p=!0,t.e(7404).then(t.bind(t,37404)).catch((()=>{})));const I=Boolean(e.appName)&&null!==(0,o.X)(e.appName,e.signInUrl);e.appName&&!I&&Promise.resolve().then(t.bind(t,5435)).then((n=>n.resolveSignInDestination(e.appName,e.signInUrl))).catch((()=>{}));const m=(0,a.getAuth)().currentUser;if(!m||m.isAnonymous)return;const g=(0,d.l8)(e.workspaceAccountId);if(g&&Date.now()-g.startedAt<d.v6)return void(e.preCreateSession&&g.vm&&Date.now()-g.vm.verifiedAt<d.X5&&await w(g.vm,e));const k=(0,d.jK)(e.workspaceAccountId,Date.now());if(!e.workspaceAccountId&&(0,c.Pg)({uid:m.uid,email:null!==(n=m.email)&&void 0!==n?n:null})){var f;const e=await(0,i.u1)(m.uid).catch((()=>null)),n=null!==(f=null===e||void 0===e?void 0:e.accountId)&&void 0!==f?f:null;if(!n||n===c.k3)return}const h=await(0,r.Wr)(e.workspaceAccountId,{keepalive:!0});if(!h)return;if(k.gateAccountId="string"===typeof h.accountId&&h.accountId?h.accountId:null,"stopped"===h.state){if("billing"===String(h.stopReason||""))return;return(0,l.logConnectFunnel)({event:"intent_warmup",detail:"wake-kicked"}),void(0,r.LM)(e.workspaceAccountId,{keepalive:!0}).catch((()=>{}))}if("none"===h.state){var A;const n=null!==(A=e.workspaceAccountId)&&void 0!==A?A:k.gateAccountId&&k.gateAccountId.startsWith("co_")?k.gateAccountId:null;return void(n&&((0,l.logConnectFunnel)({event:"intent_warmup",detail:"provision-kicked"}),(0,r.rb)(n,{keepalive:!0}).catch((()=>{}))))}if("ready"!==h.state&&"unknown"!==h.state)return;k.gateReadyAt=Date.now();const _=null!==(v=e.workspaceAccountId)&&void 0!==v?v:k.gateAccountId&&k.gateAccountId.startsWith("co_")?k.gateAccountId:void 0,b=await(0,u.YD)({..._?{accountId:_}:{}}).catch((()=>null));if(!b)return;(0,s._2)(b.base,b.token,b.accountId);if(!await(0,u.kp)(b.base))return;k.vm={base:b.base,accountId:b.accountId,token:b.token,verifiedAt:Date.now()},(0,l.logConnectFunnel)({event:"intent_warmup",detail:"vm-verified"}),e.preCreateSession&&await w(k.vm,e)})(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catch((()=>{}))}async function w(e,n){try{const a=await Promise.resolve().then(t.bind(t,5435));if(n.appName&&(0,o.X)(n.appName,n.signInUrl))return;const c=n.appName?await a.resolveSignInDestination(n.appName,n.signInUrl).catch((()=>null)):null;if((0,o.X)("",null===c||void 0===c?void 0:c.url))return;await a.preCreateDesktopSession(e.base,null===c||void 0===c?void 0:c.url,n.appName?{app:n.appName}:{})&&(0,l.logConnectFunnel)({event:"intent_warmup",detail:"session-precreated"})}catch{}}function I(){p=!1}}}]);
2//# sourceMappingURL=3845.91791456.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.