sootsim 0.1.180 → 0.1.182
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/dist-cli/bin.js +3 -3
- package/dist-cli/chunks/{agent-TWCD6VWU.js → agent-JVF4KRD5.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-Z47AOSU4.js → agent-wrapper-4ZCPWILQ.js} +2 -2
- package/dist-cli/chunks/{app-fonts-NJDS2WKC.js → app-fonts-7MTZNQJN.js} +2 -2
- package/dist-cli/chunks/{assert-E4M3BGYV.js → assert-QUII5KZD.js} +2 -2
- package/dist-cli/chunks/beta-DSVWVBUT.js +2 -0
- package/dist-cli/chunks/{camera-AGZ365WS.js → camera-6OPDZY3P.js} +2 -2
- package/dist-cli/chunks/{chunk-QXRIMG3C.js → chunk-2CLPGOAC.js} +2 -2
- package/dist-cli/chunks/{chunk-EJP4NI3Q.js → chunk-4J2BNSK5.js} +1 -1
- package/dist-cli/chunks/{chunk-FGRK5LV4.js → chunk-5NWXOIKZ.js} +2 -2
- package/dist-cli/chunks/{chunk-T56KIOK2.js → chunk-5TEBVNSH.js} +2 -2
- package/dist-cli/chunks/{chunk-7FVSMP3H.js → chunk-6BSBIS6H.js} +1 -1
- package/dist-cli/chunks/{chunk-DFOQT3FH.js → chunk-6UEE5SGS.js} +1 -1
- package/dist-cli/chunks/{chunk-6YPP7ICO.js → chunk-7VU3YG3I.js} +2 -2
- package/dist-cli/chunks/{chunk-5UNOKZOH.js → chunk-BI3LQWFJ.js} +1 -1
- package/dist-cli/chunks/chunk-CWUQZGDS.js +118 -0
- package/dist-cli/chunks/{chunk-6W55QHRB.js → chunk-DHALDKJR.js} +2 -2
- package/dist-cli/chunks/{chunk-6FPNI2NJ.js → chunk-E7COXON3.js} +2 -2
- package/dist-cli/chunks/{chunk-RVH34DLB.js → chunk-ENBC2CBL.js} +2 -2
- package/dist-cli/chunks/{chunk-A3DQXEQJ.js → chunk-EPYUJWRX.js} +2 -2
- package/dist-cli/chunks/{chunk-C3H3HNZU.js → chunk-GGIATYOM.js} +1 -1
- package/dist-cli/chunks/chunk-GOXGNGTF.js +1 -0
- package/dist-cli/chunks/{chunk-3R532UY6.js → chunk-HVCUXVTL.js} +2 -2
- package/dist-cli/chunks/chunk-IKIHQ4RB.js +1 -0
- package/dist-cli/chunks/{chunk-ZBS233ZK.js → chunk-J4G763OR.js} +2 -2
- package/dist-cli/chunks/{chunk-AKVADO4S.js → chunk-K5XREVFN.js} +1 -1
- package/dist-cli/chunks/{chunk-X2S7O732.js → chunk-KNMWUV5H.js} +2 -2
- package/dist-cli/chunks/{chunk-7HOX5AAM.js → chunk-KTBP6IDE.js} +2 -2
- package/dist-cli/chunks/{chunk-WJMSITGC.js → chunk-LMP3GS2H.js} +1 -1
- package/dist-cli/chunks/{chunk-Y7PV4536.js → chunk-LSVJ3NND.js} +2 -2
- package/dist-cli/chunks/{chunk-7EYSKUGC.js → chunk-MWREISAE.js} +2 -2
- package/dist-cli/chunks/{chunk-FQ6FCKBQ.js → chunk-NAZ6A4UL.js} +1 -1
- package/dist-cli/chunks/{chunk-W2JS7ZCS.js → chunk-NIWZJV5W.js} +2 -2
- package/dist-cli/chunks/{chunk-PJ46BMD3.js → chunk-PP7PACYK.js} +2 -2
- package/dist-cli/chunks/{chunk-O3P4GCIC.js → chunk-Q663VZYT.js} +2 -2
- package/dist-cli/chunks/{chunk-NNEKSG7J.js → chunk-Q75UTFKH.js} +2 -2
- package/dist-cli/chunks/{chunk-5S5TI2OL.js → chunk-QE5SNIDX.js} +3 -3
- package/dist-cli/chunks/{chunk-ZU3YA54Y.js → chunk-QOOBQ6HM.js} +1 -1
- package/dist-cli/chunks/{chunk-SSTY3FZ7.js → chunk-RCRWF4N5.js} +1 -1
- package/dist-cli/chunks/{chunk-TPTEYOPH.js → chunk-RQO5HYDO.js} +2 -2
- package/dist-cli/chunks/{chunk-GKC4WAAU.js → chunk-RYITW4MR.js} +1 -1
- package/dist-cli/chunks/{chunk-EC6TIZVO.js → chunk-S2RJCI3F.js} +3 -3
- package/dist-cli/chunks/{chunk-WNBED3UT.js → chunk-TM22UZS6.js} +2 -2
- package/dist-cli/chunks/chunk-U3O67O6Z.js +2 -0
- package/dist-cli/chunks/{chunk-SC3LMYOI.js → chunk-UNQ4TTPS.js} +1 -1
- package/dist-cli/chunks/{chunk-DPYI7WHO.js → chunk-UPXGNI3W.js} +1 -1
- package/dist-cli/chunks/{chunk-6LLHL4Z4.js → chunk-USRV336W.js} +2 -2
- package/dist-cli/chunks/chunk-WTKLDWWH.js +2 -0
- package/dist-cli/chunks/{chunk-DPZ5NOVM.js → chunk-XHHL3CXD.js} +1 -1
- package/dist-cli/chunks/{chunk-ZFKPEBUY.js → chunk-YBJAGDCL.js} +1 -1
- package/dist-cli/chunks/{chunk-J7ECVBNV.js → chunk-YOV2FYD5.js} +2 -2
- package/dist-cli/chunks/{chunk-5Z3IK75L.js → chunk-ZOPFNFMP.js} +2 -2
- package/dist-cli/chunks/cli-version-IHTGZWXG.js +2 -0
- package/dist-cli/chunks/{compat-I4K6EHFH.js → compat-X3LHC4W2.js} +3 -3
- package/dist-cli/chunks/{control-FSW56XA7.js → control-JO3KISFJ.js} +2 -2
- package/dist-cli/chunks/{cpu-profile-TS44ELSM.js → cpu-profile-LIQOLCAT.js} +2 -2
- package/dist-cli/chunks/daemon-72F26UYR.js +2 -0
- package/dist-cli/chunks/{debug-WJBAZTDZ.js → debug-QHYRAXS7.js} +3 -3
- package/dist-cli/chunks/{detox-NTJCZT7Y.js → detox-46I6X6WF.js} +2 -2
- package/dist-cli/chunks/{device-VZMWYTH6.js → device-OBGFMETI.js} +3 -3
- package/dist-cli/chunks/{diagnose-VJFAE25R.js → diagnose-2LVRWQTE.js} +2 -2
- package/dist-cli/chunks/drivers-2SW6KTMT.js +2 -0
- package/dist-cli/chunks/{electron-BUS5EZZB.js → electron-6XS5Z44T.js} +3 -3
- package/dist-cli/chunks/flow-DYLR2KXX.js +2 -0
- package/dist-cli/chunks/help-KHTYNHBI.js +2 -0
- package/dist-cli/chunks/{hints-WVYOKMAB.js → hints-JPD3DTKW.js} +2 -2
- package/dist-cli/chunks/{home-paths-5G3GDTLX.js → home-paths-64XGV6LX.js} +2 -2
- package/dist-cli/chunks/{inspect-YZPQT6PV.js → inspect-AFCVLO3G.js} +3 -3
- package/dist-cli/chunks/{install-desktop-KPIFQ5BJ.js → install-desktop-PVTWRZ2P.js} +3 -3
- package/dist-cli/chunks/{keys-XMLWEKT7.js → keys-LHFQNKA4.js} +2 -2
- package/dist-cli/chunks/{login-4KYXIZE3.js → login-442SXS7W.js} +4 -4
- package/dist-cli/chunks/{logout-GWXYQJKY.js → logout-QRS2CU5B.js} +2 -2
- package/dist-cli/chunks/{maestro-73XTB4TQ.js → maestro-33I2FVO2.js} +2 -2
- package/dist-cli/chunks/optional-demo-registry-674KCCRU.js +2 -0
- package/dist-cli/chunks/{preview-UO77YODM.js → preview-Y4NIE6DT.js} +2 -2
- package/dist-cli/chunks/{profile-ZGTZRSKI.js → profile-6B63XSO4.js} +2 -2
- package/dist-cli/chunks/{react-77P2ZPKP.js → react-CTZDC5J4.js} +2 -2
- package/dist-cli/chunks/{record-TYTQTISM.js → record-FCX5NSPY.js} +2 -2
- package/dist-cli/chunks/runtime-OQSESXYD.js +2 -0
- package/dist-cli/chunks/{screenshot-YQAQIKID.js → screenshot-MZU3WMZX.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-2YK7P2A5.js → screenshot-mode-IFIJCGY4.js} +2 -2
- package/dist-cli/chunks/{screenshots-RFAXUO6J.js → screenshots-DLBGZB3H.js} +4 -4
- package/dist-cli/chunks/{screenshots-capture-5V4VLZ46.js → screenshots-capture-XDIENEIZ.js} +2 -2
- package/dist-cli/chunks/{serve-YKQNVYB3.js → serve-EQROWG7B.js} +2 -2
- package/dist-cli/chunks/{setup-4VBJPQEG.js → setup-4VOKFGMB.js} +2 -2
- package/dist-cli/chunks/{skills-35JKCOHO.js → skills-HIYKCNT5.js} +2 -2
- package/dist-cli/chunks/{slides-TE5ZRF32.js → slides-YCSSVMRF.js} +2 -2
- package/dist-cli/chunks/store-MVQYU3TC.js +2 -0
- package/dist-cli/chunks/telemetry-QYQZR3XG.js +2 -0
- package/dist-cli/chunks/telemetry-RUW7S4RI.js +2 -0
- package/dist-cli/chunks/{test-ZQCKRCMQ.js → test-EA5OUQZJ.js} +3 -3
- package/dist-cli/chunks/{three-mode-MXI6TY4F.js → three-mode-PNIMEW5B.js} +2 -2
- package/dist-cli/chunks/{timeline-J4XMTY73.js → timeline-FJRCFCJG.js} +2 -2
- package/dist-cli/chunks/{upgrade-4YYUPYWA.js → upgrade-52W5H3YL.js} +2 -2
- package/dist-cli/chunks/upload-BWIBZC7S.js +2 -0
- package/dist-cli/chunks/{version-SNWXESVB.js → version-UIBJN43T.js} +2 -2
- package/dist-cli/chunks/{web-V5EIIUBC.js → web-5QNTEXZD.js} +2 -2
- package/dist-cli/chunks/{what-happened-DTF62KF5.js → what-happened-XNHLVLK2.js} +2 -2
- package/dist-cli/chunks/{whoami-LXD6FRWT.js → whoami-YSWN3MZU.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/skills/soot.md +3 -0
- package/src/screenshots/compose.ts +2 -5
- package/dist-cli/chunks/beta-6DYJAYMR.js +0 -2
- package/dist-cli/chunks/chunk-655RAZI6.js +0 -1
- package/dist-cli/chunks/chunk-BTV37XIX.js +0 -1
- package/dist-cli/chunks/chunk-KOVONBG5.js +0 -2
- package/dist-cli/chunks/chunk-LTLDMMVO.js +0 -2
- package/dist-cli/chunks/chunk-YTE645KB.js +0 -118
- package/dist-cli/chunks/cli-version-3PTODKAG.js +0 -2
- package/dist-cli/chunks/daemon-XD4ETUFL.js +0 -2
- package/dist-cli/chunks/drivers-AXQDZXVN.js +0 -2
- package/dist-cli/chunks/flow-O3SCW6BQ.js +0 -2
- package/dist-cli/chunks/help-X32RDYQI.js +0 -2
- package/dist-cli/chunks/optional-demo-registry-VJQAN5S5.js +0 -2
- package/dist-cli/chunks/runtime-YG4DSIZR.js +0 -2
- package/dist-cli/chunks/store-HKZGF2VP.js +0 -2
- package/dist-cli/chunks/telemetry-MZO7LCBJ.js +0 -2
- package/dist-cli/chunks/upload-BULXFLG3.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as ae,c as H,d as ce,e as F,f as de,h as le,i as C,j as ue,k as pe,l as me,p as he,s as v,t as fe,u as ge,v as Se,w as ye}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as ae,c as H,d as ce,e as F,f as de,h as le,i as C,j as ue,k as pe,l as me,p as he,s as v,t as fe,u as ge,v as Se,w as ye}from"./chunk-NIWZJV5W.js";import"./chunk-6UEE5SGS.js";import{g as se}from"./chunk-MWREISAE.js";import{f as P}from"./chunk-7VU3YG3I.js";import"./chunk-YBJAGDCL.js";import{a as oe}from"./chunk-Q663VZYT.js";import"./chunk-PP7PACYK.js";import"./chunk-LMP3GS2H.js";import"./chunk-6BSBIS6H.js";import"./chunk-TM22UZS6.js";import{d as ne}from"./chunk-K5XREVFN.js";import{a as Q,b as ee}from"./chunk-J4G763OR.js";import"./chunk-Q75UTFKH.js";import{a as ie,b as re}from"./chunk-RCRWF4N5.js";import"./chunk-BI3LQWFJ.js";import{C as E,D as J,E as K,F as D,H as V,I as G,K as q,M as z,N as X,O as Y,P as U,Q as Z,y as M,z as j}from"./chunk-NAZ6A4UL.js";import{a as te}from"./chunk-UPXGNI3W.js";import"./chunk-UNQ4TTPS.js";import{spawn as dt}from"child_process";import I from"fs";import{createServer as lt}from"http";import S from"path";import{WebSocket as h,WebSocketServer as ut}from"ws";import Ae from"node:fs";import _ from"node:path";import{spawn as Be}from"node:child_process";import Ne from"node:fs";import Me from"node:os";import De from"node:path";var ve=/^[A-Za-z0-9._:-]{1,160}$/;function W(o){if(!o?.startsWith("AGENTBUS_SESSION:"))return null;let e=o.slice(17).trim();return ve.test(e)?e:null}function be(o){return ve.test(o)}function Ue(o){return typeof o.text=="string"?o.text.trim():""}function He(o){let e=o?.trim();if(e)return e;let t=process.env.AGENTBUS_COMMAND?.trim();if(t)return t;let i=De.join(Me.homedir(),".local","bin","agentbus");return Ne.existsSync(i)?i:"agentbus"}async function we(o){let e=o.sessionId.trim();if(!be(e))throw new Error(`invalid agentbus session id: ${e||"<empty>"}`);let t=Ue(o.prompt);if(!t)throw new Error("prompt text is empty");let i=He(o.command),s=o.timeoutMs??15e3;await new Promise((n,a)=>{let r=Be(i,["send",e,t],{stdio:["ignore","ignore","pipe"],env:process.env}),c="",l=setTimeout(()=>{try{r.kill("SIGTERM")}catch{}a(new Error(`agentbus send timed out after ${Math.round(s/1e3)}s`))},s);r.stderr?.setEncoding("utf8"),r.stderr?.on("data",d=>{c.length<4e3&&(c+=String(d))}),r.on("error",d=>{clearTimeout(l),a(d)}),r.on("exit",(d,u)=>{if(clearTimeout(l),d===0){n();return}let p=c.trim();a(new Error(p||`agentbus send exited with ${u?`signal ${u}`:`code ${d??"unknown"}`}`))})})}var x=1;function Fe(){return[Number(process.env.VITE_PORT_WEB||process.env.PORT||3e3),Number(process.env.VITE_PORT_ZERO||7849),Number(process.env.VITE_PORT_POSTGRES||7432),Number(process.env.VITE_PORT_R2||9500)].filter(o=>Number.isFinite(o)&&o>0)}var R=class{subscriptions=new Map;sessionsBySocket=new Map;allSockets=new Set;pendingPromptEchoes=new Map;pendingTurns=new Map;opts;constructor(e={}){this.opts=e}registerSocket(e){this.allSockets.add(e)}unregisterSocket(e){let t=this.sessionsBySocket.get(e);if(t){for(let i of t)this.decrementSubscription(i);this.sessionsBySocket.delete(e)}this.allSockets.delete(e)}async handleMessage(e,t){let i=t?.type;if(typeof i!="string"||!i.startsWith("agent:"))return!1;let s=t.id;try{let n=await this.dispatch(e,i,t);this.respond(e,s,n)}catch(n){n instanceof v?this.respondError(e,s,n.message,n.code):this.respondError(e,s,n instanceof Error?n.message:String(n))}return!0}async seedOnBoot(){try{await me()}catch(e){process.stderr.write(`[sootsim-agent] seedFromDemoAppRegistry failed: ${e instanceof Error?e.message:String(e)}
|
|
3
3
|
`)}}close(){for(let e of this.subscriptions.values())try{e.unsubscribe()}catch{}this.subscriptions.clear(),this.sessionsBySocket.clear(),this.allSockets.clear()}async dispatch(e,t,i){switch(t){case"agent:list-projects":return F();case"agent:upsert-project":return H(i.input??{});case"agent:delete-project":return le(String(i.projectId)),{ok:!0};case"agent:auto-attach-for-url":return this.autoAttachForUrl(i.input??{});case"agent:list-sessions":return ue(i.projectId?String(i.projectId):void 0);case"agent:start-session":return this.doStartSession(i.input??{});case"agent:send-claimed-prompt":return this.sendClaimedPrompt(i);case"agent:send-prompt":{let n=String(i.sessionId),a=C(n);if(!a)throw new v("NO_SESSION",`no session: ${n}`);let r=this.normalizePromptEnvelope(i);return await ge(n,r),this.notePromptAccepted(n,r,a.status==="working")}case"agent:end-session":this.dropSessionFanout(String(i.sessionId)),await Se(String(i.sessionId));let s=C(String(i.sessionId));return s&&this.broadcastSessionStatus(s),{ok:!0};case"agent:get-transcript":return this.getTranscript(String(i.sessionId));case"agent:get-paths":return this.getPaths();case"agent:subscribe-events":return this.subscribeSocket(e,String(i.sessionId));case"agent:unsubscribe-events":return this.unsubscribeSocket(e,String(i.sessionId));default:throw new v("UNKNOWN_AGENT_MSG",`unknown agent message: ${t}`)}}async sendClaimedPrompt(e){let t=typeof e.simId=="string"?e.simId.trim():"";if(!t)throw new v("NO_SIM","agent:send-claimed-prompt requires simId");let i=this.opts.resolveCliLease?.(t)??null;if(!i||i.kind!=="cli"||i.expiresAt<=Date.now())throw new v("NO_CLAIM",`sim ${t} has no active CLI claim`);let s=W(i.cliIdentityKey);if(!s)throw new v("UNSUPPORTED_CLAIM",`sim ${t} is claimed by a CLI identity that is not promptable`);return await we({sessionId:s,prompt:this.normalizePromptEnvelope(e)}),{ok:!0,routed:"agentbus",sessionId:s}}async doStartSession(e){if(!ce(e.projectId))throw new v("NO_PROJECT",`no project: ${e.projectId}`);let i=await fe(e);return this.broadcastSessionStatus(i.session),i}async autoAttachForUrl(e){let t=e.bundleUrl??"",i=(()=>{try{return new URL(t).port||null}catch{return null}})();if(!i)return{project:null};let s=this.opts.getExcludePorts?.()??Fe(),a=(await P({excludePorts:s})).find(d=>String(d.port)===i);if(!a||!a.cwd)return{project:null};let r=F().find(d=>d.cwd===a.cwd)??null,c=Array.from(new Set([...r?.knownBundleUrls??[],a.bundleUrl,t]));return{project:H({cwd:a.cwd,name:a.projectName??_.basename(a.cwd),preferredProvider:e.provider??r?.preferredProvider,sourceRoots:r?.sourceRoots??[a.cwd],knownBundleUrls:c,framework:r?.framework??We(a.framework),bundleId:a.bundleId??r?.bundleId})}}getTranscript(e){let t=he(e);return Ae.existsSync(t)?Ae.readFileSync(t,"utf8"):{error:"transcript not found",code:"NO_TRANSCRIPT"}}getPaths(){let e=ae();return{userDataDir:e,storeFile:_.join(e,"attached-projects.json"),sessionsDir:_.join(e,"sessions"),transcriptsDir:_.join(e,"transcripts")}}subscribeSocket(e,t){let i=this.sessionsBySocket.get(e);if(i||(i=new Set,this.sessionsBySocket.set(e,i)),i.has(t))return{ok:!0,refCount:this.subscriptions.get(t)?.refCount??1};i.add(t);let s=this.subscriptions.get(t);if(s)return s.refCount++,{ok:!0,refCount:s.refCount};let n=ye(t,a=>{let r=this.coalescePromptEcho(t,a);if(r&&(this.applySessionEvent(t,r),this.fanOutEvent(t,r)),a.type==="turn-completed"){let c=C(t);if(c)try{de(c.projectId,{usd:a.costUsd,ts:a.ts})}catch(l){process.stderr.write(`[sootsim-agent] recordTurnTelemetry failed: ${l instanceof Error?l.message:String(l)}
|
|
4
4
|
`)}}});return this.subscriptions.set(t,{unsubscribe:n,refCount:1}),{ok:!0,refCount:1}}unsubscribeSocket(e,t){let i=this.sessionsBySocket.get(e);return!i||!i.has(t)?{ok:!0,refCount:0}:(i.delete(t),this.decrementSubscription(t))}decrementSubscription(e){let t=this.subscriptions.get(e);if(!t)return{ok:!0,refCount:0};if(t.refCount--,t.refCount<=0){try{t.unsubscribe()}catch{}return this.subscriptions.delete(e),{ok:!0,refCount:0}}return{ok:!0,refCount:t.refCount}}dropSessionFanout(e){let t=this.subscriptions.get(e);if(t){try{t.unsubscribe()}catch{}this.subscriptions.delete(e)}for(let i of this.sessionsBySocket.values())i.delete(e);this.clearPromptTracking(e)}normalizePromptEnvelope(e){if(e?.prompt&&typeof e.prompt=="object"){let t=e.prompt;return{text:String(t.text??""),...typeof t.displayText=="string"?{displayText:t.displayText}:{},...typeof t.inspectSummary=="string"?{inspectSummary:t.inspectSummary}:{},...typeof t.inspectTrace=="string"?{inspectTrace:t.inspectTrace}:{}}}return{text:String(e?.text??""),...typeof e?.displayText=="string"?{displayText:e.displayText}:{},...typeof e?.inspectSummary=="string"?{inspectSummary:e.inspectSummary}:{},...typeof e?.inspectTrace=="string"?{inspectTrace:e.inspectTrace}:{}}}notePromptAccepted(e,t,i){let s=Date.now(),n=this.pendingPromptEchoes.get(e)??[];n.push({sentAt:s}),this.pendingPromptEchoes.set(e,n);let a=Math.max(this.pendingTurns.get(e)??0,i?1:0)+1;this.pendingTurns.set(e,a);let r=t.displayText??t.text;return this.patchSession(e,{lastPrompt:r,status:"working",needsAttention:!1}),this.fanOutEvent(e,{type:"prompt-received",text:r,...t.inspectSummary?{inspectSummary:t.inspectSummary}:{},...t.inspectTrace?{inspectTrace:t.inspectTrace}:{},ts:s}),{ok:!0,queued:a>1,pendingTurns:a,queueDepth:Math.max(0,a-1)}}applySessionEvent(e,t){switch(t.type){case"prompt-received":case"turn-started":this.patchSession(e,{status:"working",needsAttention:!1});return;case"turn-completed":{let i=this.consumeSettledTurn(e);this.patchSession(e,{status:i>0?"working":"idle",needsAttention:!1,lastTurnFiles:t.filesTouched,currentlyEditing:void 0});return}case"approval-needed":this.patchSession(e,{status:"needs-attention",needsAttention:!0});return;case"error":{let i=this.consumeSettledTurn(e);this.patchSession(e,{status:i>0?"working":"needs-attention",needsAttention:i<=0,currentlyEditing:void 0});return}case"exited":this.clearPromptTracking(e),this.patchSession(e,{status:"ended",needsAttention:!1,wrapperPid:void 0,currentlyEditing:void 0});return;case"ready":case"turn-reasoning":case"turn-message":case"turn-plan":case"tool-call":case"file-edited":case"file-diff-delta":return}}patchSession(e,t){pe(e,t);let i=C(e);i&&this.broadcastSessionStatus(i)}coalescePromptEcho(e,t){if(t.type!=="prompt-received")return t;let i=this.pendingPromptEchoes.get(e);if(!i||i.length===0)return t;for(;i.length>0&&Date.now()-i[0].sentAt>15e3;)i.shift();return i.length===0?(this.pendingPromptEchoes.delete(e),t):(i.shift(),i.length===0?this.pendingPromptEchoes.delete(e):this.pendingPromptEchoes.set(e,i),null)}consumeSettledTurn(e){let t=Math.max(0,(this.pendingTurns.get(e)??1)-1);return t>0?this.pendingTurns.set(e,t):this.pendingTurns.delete(e),t}clearPromptTracking(e){this.pendingPromptEchoes.delete(e),this.pendingTurns.delete(e)}fanOutEvent(e,t){let i=JSON.stringify({type:"agent:event",sessionId:e,event:t});for(let[s,n]of this.sessionsBySocket)if(n.has(e)&&s.readyState===x)try{s.send(i)}catch{}}broadcastSessionStatus(e){let t=JSON.stringify({type:"agent:session-status",session:e});for(let i of this.allSockets)if(i.readyState===x)try{i.send(t)}catch{}}respond(e,t,i){if(e.readyState===x)try{e.send(JSON.stringify({id:t,result:i}))}catch{}}respondError(e,t,i,s){if(e.readyState===x)try{e.send(JSON.stringify({id:t,error:i,...s?{code:s}:{}}))}catch{}}};function We(o){return o==="expo"?"expo":o==="one"||o==="vxrn"?"one":"unknown"}import Je from"http";import Ke from"https";var $="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36",$e=[{hostSuffix:"uniswap.org",headers:{origin:"https://app.uniswap.org",referer:"https://app.uniswap.org/"},suppressBrowserUserAgent:!0}];function je(o){let e=o.toLowerCase();for(let t of $e)if(e===t.hostSuffix||e.endsWith(`.${t.hostSuffix}`))return t}function ke(o){let e=je(o.hostname);return{"accept-encoding":"identity",...e?.suppressBrowserUserAgent?{}:{"user-agent":$},...e?.headers}}var Ve=new Set(["host","origin","referer","user-agent","accept-encoding","cookie","connection","keep-alive","transfer-encoding","upgrade","content-length","sec-fetch-site","sec-fetch-mode","sec-fetch-dest","sec-ch-ua","sec-ch-ua-mobile","sec-ch-ua-platform"]),Ge={"access-control-allow-origin":"*","access-control-allow-methods":"GET,POST,PUT,DELETE,PATCH,OPTIONS","access-control-allow-headers":"*","access-control-expose-headers":"*","access-control-max-age":"3600"},qe=new Set(["host","origin","referer","sec-fetch-site","sec-fetch-mode","sec-fetch-dest"]);function T(o){for(let[e,t]of Object.entries(Ge))o.setHeader(e,t)}function ze(o,e){let t=[],i=e;i?.code&&t.push(i.code),i?.message&&t.push(i.message),i?.cause?.code&&t.push(i.cause.code),i?.cause?.message&&t.push(i.cause.message);let n=[...new Set(t.filter(Boolean))].join(" | ")||String(e);return o.includes("stored-in-.env.local")?`${n} | upstream url still contains placeholder env values`:n}function Xe(o){let t=(Array.isArray(o)?o[0]:o)?.split(";",1)[0]?.trim().toLowerCase();return t?t.startsWith("text/")||t==="application/json"||t.endsWith("+json")||t==="application/x-www-form-urlencoded"||t==="application/xml"||t.endsWith("+xml")||t==="application/javascript"||t==="application/graphql":!1}function Ye(o,e){let t={};for(let[i,s]of Object.entries(o))s&&(Ve.has(i.toLowerCase())||(t[i]=Array.isArray(s)?s.join(", "):s));return Object.assign(t,e?ke(e):{"user-agent":$}),t}function Ze(o,e){let t={};for(let[i,s]of Object.entries(o))s&&(qe.has(i.toLowerCase())||(t[i]=s));return t.host=e.host,t.origin=e.origin,t.referer=`${e.origin}/`,t}function Ie(o){return o?.startsWith("/__fetch-proxy?")||o?.startsWith("/__proxy?")||!1}function Ce(o){return o?!!(o.startsWith("/__app-api?")||o.startsWith("/__app-api/")):!1}async function Te(o,e){if(o.method==="OPTIONS"){T(e),e.writeHead(204),e.end();return}let i=new URLSearchParams((o.url||"").split("?")[1]||"").get("url");if(!i){T(e),e.writeHead(400,{"Content-Type":"text/plain"}),e.end("missing url param");return}let s;try{s=new URL(i)}catch{T(e),e.writeHead(400,{"Content-Type":"text/plain"}),e.end("invalid url param");return}let n=Ye(o.headers,s),a;if(o.method!=="GET"&&o.method!=="HEAD"){let d=[];for await(let u of o)d.push(Buffer.isBuffer(u)?u:Buffer.from(u));if(d.length>0){let u=Buffer.concat(d);a=Xe(o.headers["content-type"])?u.toString("utf8"):u}}let r;try{r=await fetch(s.href,{method:o.method,headers:n,body:a,redirect:"follow"})}catch(d){T(e),e.writeHead(502,{"Content-Type":"text/plain"}),e.end(`fetch proxy error: ${ze(s.href,d)}`);return}r.headers.forEach((d,u)=>{let p=u.toLowerCase();p==="content-encoding"||p==="transfer-encoding"||p==="content-length"||p==="set-cookie"||p.startsWith("access-control-")||e.setHeader(u,d)}),T(e);let c=r.headers.getSetCookie?.()??[];c.length>0&&e.setHeader("x-sootsim-set-cookie",c.join(", ")),e.statusCode=r.status;let l=Buffer.from(await r.arrayBuffer());e.end(l)}function Ee(o,e){let t=o.url||"",i="",s="";if(t.startsWith("/__app-api?")){let l=new URL(t,"http://sootsim.local");i=l.searchParams.get("path")||"",s=l.searchParams.get("origin")?.trim()||""}else if(t.startsWith("/__app-api/"))i=t.slice(10);else return!1;if(!s)return e.writeHead(400,{"Content-Type":"text/plain"}),e.end("app-api: missing origin query param"),!0;if(o.method==="OPTIONS")return e.writeHead(204,{"Access-Control-Allow-Origin":o.headers.origin||"*","Access-Control-Allow-Methods":"GET,POST,PUT,PATCH,DELETE,OPTIONS","Access-Control-Allow-Headers":o.headers["access-control-request-headers"]||"*","Access-Control-Allow-Credentials":"true","Access-Control-Max-Age":"86400"}),e.end(),!0;let n;try{n=new URL(i,s)}catch{return e.writeHead(400,{"Content-Type":"text/plain"}),e.end("app-api: invalid origin or path"),!0}let a=n.protocol==="https:"?Ke:Je,r=Ze(o.headers,n),c=a.request({hostname:n.hostname,port:n.port||(n.protocol==="https:"?443:80),path:n.pathname+n.search,method:o.method,headers:r},l=>{let d=Object.keys(l.headers).filter(u=>{let p=u.toLowerCase();return!p.startsWith("access-control-")&&p!=="set-cookie"}).join(", ");e.writeHead(l.statusCode??502,{...l.headers,"access-control-allow-origin":o.headers.origin||"*","access-control-allow-credentials":"true","access-control-expose-headers":d}),l.pipe(e)});return c.on("error",l=>{e.statusCode=502,e.end(`app proxy error: ${l.message}`)}),o.pipe(c),!0}import{WebSocket as k,WebSocketServer as Qe}from"ws";var et="/__websocket-proxy",tt=new Set(["host","connection","upgrade","transfer-encoding","content-length","sec-websocket-accept","sec-websocket-extensions","sec-websocket-key","sec-websocket-protocol","sec-websocket-version"]);function A(o,e,t){try{o.write(`HTTP/1.1 ${e} ${t}\r
|
|
5
5
|
Connection: close\r
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as M,c as $}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as M,c as $}from"./chunk-5TEBVNSH.js";import{a as j,b as D}from"./chunk-QOOBQ6HM.js";import{a as P}from"./chunk-J4G763OR.js";import"./chunk-Q75UTFKH.js";import"./chunk-2CLPGOAC.js";import"./chunk-ZOPFNFMP.js";import"./chunk-CWUQZGDS.js";import"./chunk-5NWXOIKZ.js";import"./chunk-LSVJ3NND.js";import"./chunk-WTKLDWWH.js";import"./chunk-RCRWF4N5.js";import"./chunk-BI3LQWFJ.js";import{I as b,K as v}from"./chunk-NAZ6A4UL.js";import"./chunk-UPXGNI3W.js";import"./chunk-XHHL3CXD.js";import"./chunk-U3O67O6Z.js";import"./chunk-UNQ4TTPS.js";import{execSync as H}from"child_process";import{existsSync as g,readFileSync as I,writeFileSync as w}from"fs";import{join as K,relative as h,resolve as m}from"path";import{existsSync as c,readFileSync as d,readdirSync as W,statSync as A}from"fs";import{basename as N,dirname as V,join as i}from"path";function O(e){let o=e;for(;;){if(c(i(o,"turbo.json"))||c(i(o,"nx.json"))||c(i(o,"lerna.json"))||c(i(o,"pnpm-workspace.yaml")))return o;let n=i(o,"package.json");if(c(n))try{if(JSON.parse(d(n,"utf8")).workspaces)return o}catch{}let t=V(o);if(t===o)break;o=t}return e}function J(e){return c(i(e,"bun.lock"))||c(i(e,"bun.lockb"))?"bun":c(i(e,"pnpm-lock.yaml"))?"pnpm":c(i(e,"yarn.lock"))?"yarn":"npm"}function B(e){if(c(i(e,"turbo.json")))return"turbo";if(c(i(e,"nx.json")))return"nx";if(c(i(e,"pnpm-workspace.yaml")))return"pnpm";let o=i(e,"package.json");if(c(o))try{if(JSON.parse(d(o,"utf8")).workspaces)return"npm-workspaces"}catch{}return"single"}function G(e){return e.one?"one":e.expo?"expo":e["react-native"]?"bare":"unknown"}function S(e){let o=i(e,"package.json");if(!c(o))return null;let n;try{n=JSON.parse(d(o,"utf8"))}catch{return null}let t={...n.dependencies,...n.devDependencies},r=G(t);return r==="unknown"?null:{dir:e,name:n.name||N(e),framework:r,hasViteConfig:c(i(e,"vite.config.ts"))||c(i(e,"vite.config.js")),hasMetroConfig:c(i(e,"metro.config.js"))||c(i(e,"metro.config.ts")),hasSootsimDependency:!!t.sootsim,devCommand:n.scripts?.dev||null}}function U(e){let o=[],n=i(e,"pnpm-workspace.yaml");if(c(n)){let s=d(n,"utf8").match(/packages:\s*\n((?:\s+-\s+.+\n?)+)/);if(s){let p=s[1].split(`
|
|
3
3
|
`).filter(Boolean);for(let u of p){let a=u.replace(/^\s*-\s*['"]?/,"").replace(/['"]?\s*$/,"");a&&o.push(...C(e,a))}}return o}let t=i(e,"package.json");if(c(t))try{let r=JSON.parse(d(t,"utf8")),s=Array.isArray(r.workspaces)?r.workspaces:r.workspaces?.packages||[];for(let p of s)o.push(...C(e,p))}catch{}return o}function C(e,o){let n=o.replace(/\/\*\*?$/,"").replace(/\*$/,""),t=i(e,n);if(!c(t))return[];try{return W(t).map(s=>i(t,s)).filter(s=>{try{return A(s).isDirectory()&&c(i(s,"package.json"))}catch{return!1}})}catch{return[]}}function _(e){let o=B(e),n=J(e);if(o==="single"){let p=S(e);return{root:e,type:o,packageManager:n,apps:p?[p]:[]}}let t=U(e),r=[],s=S(e);s&&r.push(s);for(let p of t){if(p===e)continue;let u=S(p);u&&r.push(u)}return{root:e,type:o,packageManager:n,apps:r}}function R(e){switch(e){case"bun":return"bun add -d sootsim";case"pnpm":return"pnpm add -D sootsim";case"yarn":return"yarn add -D sootsim";case"npm":return"npm install -D sootsim"}}async function xe(e){(e.includes("--help")||e.includes("-h"))&&(console.log(`
|
|
4
4
|
sootsim setup \u2014 set up this machine and, optionally, this repo
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-UNQ4TTPS.js";import*as r from"fs";import*as x from"os";import*as a from"path";import{fileURLToPath as p}from"url";function L(){try{let t=p(import.meta.resolve("sootsim/package.json"));return a.join(a.dirname(t),"skills")}catch{let t=a.dirname(p(import.meta.url));return a.resolve(t,"../../skills")}}var d=L(),w=new Set(["all","codex","claude"]);function h(){console.log(`sootsim skill
|
|
3
3
|
|
|
4
4
|
install and inspect bundled SootSim agent skills.
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{c as S,e as y,g as v,h as b,i as u}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{c as S,e as y,g as v,h as b,i as u}from"./chunk-TM22UZS6.js";import"./chunk-RCRWF4N5.js";import"./chunk-BI3LQWFJ.js";import"./chunk-NAZ6A4UL.js";import"./chunk-UNQ4TTPS.js";import{mkdirSync as $,writeFileSync as x}from"node:fs";import{dirname as k,isAbsolute as B,join as C,resolve as E}from"node:path";var z=`
|
|
3
3
|
sootsim slides \u2014 compose App Store screenshots in the live sim
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{A as n,B as s,x as o}from"./chunk-NAZ6A4UL.js";import"./chunk-UNQ4TTPS.js";function l(){let t=n();console.log(` telemetry is ${t?"ON":"OFF"}`),console.log(` config: ${o()}`);let e=process.env.DO_NOT_TRACK;(e==="1"||e==="true")&&console.log(` note: DO_NOT_TRACK=${e} is set \u2014 telemetry is off for this run`)}async function i(t){let e=t.find(r=>!r.startsWith("-"))?.toLowerCase();switch(e){case void 0:case"status":l();return;case"on":case"enable":s(!0),console.log(" telemetry ON"),console.log(` config: ${o()}`);return;case"off":case"disable":s(!1),console.log(" telemetry OFF"),console.log(` config: ${o()}`);return;default:console.error(` unknown telemetry action: ${e}`),console.error(" usage: sootsim telemetry [on|off|status]"),process.exit(1)}}export{i as runTelemetry};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-UNQ4TTPS.js";import{spawn as m}from"child_process";import{existsSync as h,readdirSync as w}from"fs";import{resolve as u,dirname as x}from"path";import{fileURLToPath as y}from"url";var d=x(y(import.meta.resolve("sootsim-engine/package.json")));async function v(t,r){let l=t.includes("--flows"),f=t.includes("--detox"),c=t.includes("--parallel"),i=t.includes("--watch"),a=t.find((e,o)=>t[o-1]==="--reporter")||"console";if((t.includes("--help")||t.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim test \u2014 run tests against sootsim
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -26,6 +26,6 @@ examples:
|
|
|
26
26
|
notes:
|
|
27
27
|
playwright is best for smoke and package-local debugging
|
|
28
28
|
--detox is the preferred parity lane for behavior that should match real RN
|
|
29
|
-
`),process.exit(0)),l)await b(t,r,c,a);else if(f){let{runDetox:e}=await import("./detox-
|
|
29
|
+
`),process.exit(0)),l)await b(t,r,c,a);else if(f){let{runDetox:e}=await import("./detox-46I6X6WF.js");await e(t.filter(o=>o!=="--detox"),r)}else await g(t,r)}async function g(t,r){let l=["playwright","test"],f=t.find((e,o)=>t[o-1]==="-t")||t.find((e,o)=>t[o-1]==="--testNamePattern")||t.find((e,o)=>t[o-1]==="--grep");f&&l.push("-g",f),t.includes("--watch")&&l.push("--ui");let c=new Set(["--flows","--detox","--parallel","--watch","--reporter","-t","--testNamePattern","--grep"]);for(let e=0;e<t.length;e++){if(c.has(t[e])){(t[e]==="-t"||t[e]==="--testNamePattern"||t[e]==="--grep"||t[e]==="--reporter")&&e++;continue}l.push(t[e])}console.log(` running: npx ${l.join(" ")}`);let i=m("npx",l,{cwd:d,stdio:"inherit",env:{...process.env}}),a=await new Promise(e=>{i.on("exit",o=>e(o||0))});process.exit(a)}async function b(t,r,l,f){let c=["flows","test/flows","e2e/flows",".maestro","maestro"],i=[];for(let o of c){let s=u(d,o);if(h(s)){let p=w(s).filter(n=>n.endsWith(".yaml")||n.endsWith(".yml"));for(let n of p)i.push(u(s,n))}}for(let o of c){let s=u(process.cwd(),o);if(!s.startsWith(d)&&h(s)){let p=w(s).filter(n=>n.endsWith(".yaml")||n.endsWith(".yml"));for(let n of p)i.push(u(s,n))}}i.length===0&&(console.log(" no flow files found in flows/, test/flows/, or e2e/flows/"),process.exit(0)),console.log(` found ${i.length} flow(s)`);let a=0,e=0;for(let o of i)try{let{runFlowPlayback:s}=await import("./flow-DYLR2KXX.js"),p=r.port?`http://localhost:${r.port}`:"http://localhost:5173";if(await s([o,"--url",p,"--new"])!==0){e++;continue}a++}catch{e++}console.log(`
|
|
30
30
|
results: ${a} passed, ${e} failed (${i.length} total)
|
|
31
31
|
`),process.exit(e>0?1:0)}export{v as runTest};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as $}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as $}from"./chunk-ENBC2CBL.js";import{c as p,e as h,i as R}from"./chunk-TM22UZS6.js";import"./chunk-RCRWF4N5.js";import"./chunk-BI3LQWFJ.js";import"./chunk-NAZ6A4UL.js";import"./chunk-UNQ4TTPS.js";var b=12e3;async function j(e,o){if((e.includes("--help")||e.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim three-mode \u2014 toggle the 3d device stage
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{c as m,e as d,h as s}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{c as m,e as d,h as s}from"./chunk-TM22UZS6.js";import"./chunk-RCRWF4N5.js";import"./chunk-BI3LQWFJ.js";import"./chunk-NAZ6A4UL.js";import"./chunk-UNQ4TTPS.js";import{writeFileSync as g}from"fs";function u(){console.log(`
|
|
3
3
|
sootsim timeline \u2014 control the semantic event timeline
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as s}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as s}from"./chunk-S2RJCI3F.js";import"./chunk-MWREISAE.js";import"./chunk-TM22UZS6.js";import"./chunk-RCRWF4N5.js";import"./chunk-BI3LQWFJ.js";import{G as i}from"./chunk-NAZ6A4UL.js";import{a as e}from"./chunk-UPXGNI3W.js";import"./chunk-UNQ4TTPS.js";import{spawn as r}from"node:child_process";var a="https://registry.npmjs.org/sootsim/latest";async function h(o){let n=o.indexOf("--channel"),t=n>=0&&o[n+1]?o[n+1]:void 0;console.log(`sootsim upgrade
|
|
3
3
|
`),await c(),console.log(`
|
|
4
4
|
runtime:`),await s(["install",...t?["--channel",t]:[]],{})}async function c(){let o=e(),n=await u();if(!n){console.log(` cli: v${o} \u2014 couldn't reach the npm registry, skipped`);return}if(i(n,o)<=0){console.log(` cli: v${o} (latest)`);return}console.log(` cli: v${o} \u2192 v${n} \u2014 installing globally\u2026`),await m(n)?console.log(` cli: installed v${n} \u2014 restart any running \`sootsim\` process to pick it up`):(console.log(" cli: automatic install failed \u2014 upgrade it yourself with:"),console.log(" npm install -g sootsim@latest"))}async function u(){try{let o=await fetch(a,{headers:{accept:"application/json"},signal:AbortSignal.timeout(8e3)});if(!o.ok)return null;let n=await o.json();return typeof n.version=="string"&&n.version?n.version:null}catch{return null}}function m(o){return new Promise(n=>{let t=r("npm",["install","-g",`sootsim@${o}`],{stdio:"inherit",shell:!0});t.on("error",()=>n(!1)),t.on("exit",l=>n(l===0))})}export{h as runUpgrade};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a,b,c}from"./chunk-Q663VZYT.js";import"./chunk-PP7PACYK.js";import"./chunk-LMP3GS2H.js";import"./chunk-6BSBIS6H.js";import"./chunk-TM22UZS6.js";import"./chunk-K5XREVFN.js";import"./chunk-J4G763OR.js";import"./chunk-Q75UTFKH.js";import"./chunk-RCRWF4N5.js";import"./chunk-BI3LQWFJ.js";import"./chunk-NAZ6A4UL.js";import"./chunk-UNQ4TTPS.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as s,d as l,h as r}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.182 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as s,d as l,h as r}from"./chunk-MWREISAE.js";import{a as i}from"./chunk-ZOPFNFMP.js";import"./chunk-NAZ6A4UL.js";import{a as t}from"./chunk-UPXGNI3W.js";import"./chunk-UNQ4TTPS.js";async function d(u){let{IS_BETA:a,BETA_LABEL:m}=await import("./beta-DSVWVBUT.js"),c=a?` \xB7 ${m}`:"";console.log(`sootsim v${t()}${c}`);let o=i(),e=l();o.isDevBridge?(console.log(o.primary),o.installedRuntime&&console.log(`${o.installedRuntime} \xB7 ${e}`)):o.primary==="runtime not installed"?console.log("runtime not installed \u2014 run `sootsim runtime install`"):console.log(`${o.primary} \xB7 ${e}`);let n=await r({channel:e});n.outdated&&n.latest&&console.log(`
|
|
3
3
|
\u2191 runtime v${n.latest} available \u2014 run \`sootsim upgrade\``),console.log(`
|
|
4
4
|
what's new: ${s}`)}export{d as runVersion};
|