sootsim 0.1.182 → 0.1.184
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 +23 -18
- package/dist-cli/bin.js +6 -6
- package/dist-cli/chunks/{agent-JVF4KRD5.js → agent-KSX5D27X.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-4ZCPWILQ.js → agent-wrapper-MS6TJF5Y.js} +2 -2
- package/dist-cli/chunks/{app-fonts-7MTZNQJN.js → app-fonts-HHN6X2VJ.js} +2 -2
- package/dist-cli/chunks/{assert-QUII5KZD.js → assert-XHVSQZOE.js} +2 -2
- package/dist-cli/chunks/beta-JS4JTDFC.js +2 -0
- package/dist-cli/chunks/{camera-6OPDZY3P.js → camera-7L7D4XUO.js} +2 -2
- package/dist-cli/chunks/chunk-3KK3YZQ3.js +62 -0
- package/dist-cli/chunks/{chunk-6UEE5SGS.js → chunk-3S5BOWO5.js} +1 -1
- package/dist-cli/chunks/{chunk-NAZ6A4UL.js → chunk-53KKDNCU.js} +1 -1
- package/dist-cli/chunks/{chunk-PP7PACYK.js → chunk-6GC57KRY.js} +2 -2
- package/dist-cli/chunks/{chunk-UPXGNI3W.js → chunk-6MPD3QXA.js} +1 -1
- package/dist-cli/chunks/{chunk-TM22UZS6.js → chunk-7C6RC3BU.js} +2 -2
- package/dist-cli/chunks/{chunk-RYITW4MR.js → chunk-7DHLNDOA.js} +1 -1
- package/dist-cli/chunks/{chunk-RQO5HYDO.js → chunk-7DKGX746.js} +2 -2
- package/dist-cli/chunks/{chunk-E7COXON3.js → chunk-AKQWG57K.js} +2 -2
- package/dist-cli/chunks/chunk-BB432MX4.js +1 -0
- package/dist-cli/chunks/{chunk-KTBP6IDE.js → chunk-C3WRMMUM.js} +2 -2
- package/dist-cli/chunks/{chunk-S2RJCI3F.js → chunk-FAB5CDE7.js} +3 -3
- package/dist-cli/chunks/{chunk-7VU3YG3I.js → chunk-FD4BKULK.js} +2 -2
- package/dist-cli/chunks/{chunk-6BSBIS6H.js → chunk-ID25RWPE.js} +1 -1
- package/dist-cli/chunks/{chunk-QOOBQ6HM.js → chunk-IG7F7DTQ.js} +1 -1
- package/dist-cli/chunks/{chunk-UNQ4TTPS.js → chunk-IHH3JCV5.js} +1 -1
- package/dist-cli/chunks/{chunk-K5XREVFN.js → chunk-IZMNFZXZ.js} +1 -1
- package/dist-cli/chunks/{chunk-4J2BNSK5.js → chunk-JFCJIRX6.js} +1 -1
- package/dist-cli/chunks/{chunk-DHALDKJR.js → chunk-M6RZYHFK.js} +2 -2
- package/dist-cli/chunks/chunk-MFL73VJG.js +2 -0
- package/dist-cli/chunks/{chunk-KNMWUV5H.js → chunk-MXXD5U6B.js} +2 -2
- package/dist-cli/chunks/{chunk-Q75UTFKH.js → chunk-N5LA5G7V.js} +2 -2
- package/dist-cli/chunks/{chunk-Q663VZYT.js → chunk-NBF2SXAH.js} +4 -4
- package/dist-cli/chunks/{chunk-2CLPGOAC.js → chunk-NWNFGZSI.js} +2 -2
- package/dist-cli/chunks/{chunk-U3O67O6Z.js → chunk-OGLOOKK6.js} +1 -1
- package/dist-cli/chunks/{chunk-RCRWF4N5.js → chunk-Q2S6VBXK.js} +1 -1
- package/dist-cli/chunks/{chunk-GGIATYOM.js → chunk-Q6EHTP4Q.js} +1 -1
- package/dist-cli/chunks/{chunk-NIWZJV5W.js → chunk-QQ4JDVR6.js} +2 -2
- package/dist-cli/chunks/{chunk-XHHL3CXD.js → chunk-QZW44BMW.js} +1 -1
- package/dist-cli/chunks/{chunk-ZOPFNFMP.js → chunk-S5XWFD5C.js} +2 -2
- package/dist-cli/chunks/{chunk-LSVJ3NND.js → chunk-T4XAQ7VQ.js} +2 -2
- package/dist-cli/chunks/{chunk-YOV2FYD5.js → chunk-T5YWTSGG.js} +2 -2
- package/dist-cli/chunks/{chunk-ENBC2CBL.js → chunk-U636Z2JZ.js} +2 -2
- package/dist-cli/chunks/{chunk-BI3LQWFJ.js → chunk-V36X7TNR.js} +1 -1
- package/dist-cli/chunks/chunk-VGTPGXKM.js +1 -0
- package/dist-cli/chunks/chunk-VVACMCCE.js +118 -0
- package/dist-cli/chunks/{chunk-5NWXOIKZ.js → chunk-WAZCQ5UO.js} +3 -3
- package/dist-cli/chunks/{chunk-QE5SNIDX.js → chunk-WDMIABUY.js} +30 -30
- package/dist-cli/chunks/chunk-WLDAMCQK.js +13 -0
- package/dist-cli/chunks/{chunk-LMP3GS2H.js → chunk-WMLFWLD7.js} +1 -1
- package/dist-cli/chunks/{chunk-USRV336W.js → chunk-WNUF6LJX.js} +2 -2
- package/dist-cli/chunks/{chunk-HVCUXVTL.js → chunk-WSN7MF4E.js} +2 -2
- package/dist-cli/chunks/{chunk-MWREISAE.js → chunk-XSWATK6S.js} +2 -2
- package/dist-cli/chunks/{chunk-J4G763OR.js → chunk-YQNX7JK6.js} +2 -2
- package/dist-cli/chunks/{chunk-YBJAGDCL.js → chunk-YYS2ITHH.js} +1 -1
- package/dist-cli/chunks/cli-version-L6NDSEVW.js +2 -0
- package/dist-cli/chunks/{compat-X3LHC4W2.js → compat-EGXOXW5F.js} +3 -3
- package/dist-cli/chunks/control-LUH3EQQG.js +2 -0
- package/dist-cli/chunks/{cpu-profile-LIQOLCAT.js → cpu-profile-7LF5VVWE.js} +2 -2
- package/dist-cli/chunks/daemon-NGDXMG6R.js +2 -0
- package/dist-cli/chunks/{debug-QHYRAXS7.js → debug-3J74TASS.js} +3 -3
- package/dist-cli/chunks/{detox-46I6X6WF.js → detox-PHLGST7G.js} +2 -2
- package/dist-cli/chunks/{device-OBGFMETI.js → device-CBGLBSS6.js} +2 -2
- package/dist-cli/chunks/{diagnose-2LVRWQTE.js → diagnose-BXUHKEVI.js} +2 -2
- package/dist-cli/chunks/drivers-QX77DPCG.js +2 -0
- package/dist-cli/chunks/{electron-6XS5Z44T.js → electron-UYJPUPAG.js} +4 -3
- package/dist-cli/chunks/flow-KDVDRUEN.js +2 -0
- package/dist-cli/chunks/help-4L6UVSAZ.js +2 -0
- package/dist-cli/chunks/{hints-JPD3DTKW.js → hints-7A4UIZZL.js} +2 -2
- package/dist-cli/chunks/{home-paths-64XGV6LX.js → home-paths-THYEF54Y.js} +2 -2
- package/dist-cli/chunks/{inspect-AFCVLO3G.js → inspect-QULPTQ5V.js} +13 -13
- package/dist-cli/chunks/{install-desktop-PVTWRZ2P.js → install-desktop-X7G7VTBV.js} +4 -4
- package/dist-cli/chunks/{keys-LHFQNKA4.js → keys-JLP4YC4T.js} +2 -2
- package/dist-cli/chunks/{login-442SXS7W.js → login-VB4HG5WR.js} +4 -4
- package/dist-cli/chunks/{logout-QRS2CU5B.js → logout-TIVYUTTD.js} +2 -2
- package/dist-cli/chunks/{maestro-33I2FVO2.js → maestro-C2WVLDFM.js} +2 -2
- package/dist-cli/chunks/optional-demo-registry-WV2BZJ5T.js +2 -0
- package/dist-cli/chunks/{preview-Y4NIE6DT.js → preview-YBV54B2S.js} +2 -2
- package/dist-cli/chunks/{profile-6B63XSO4.js → profile-67C256LQ.js} +2 -2
- package/dist-cli/chunks/{react-CTZDC5J4.js → react-HJ3WPDNO.js} +2 -2
- package/dist-cli/chunks/{record-FCX5NSPY.js → record-FD4QYCBW.js} +2 -2
- package/dist-cli/chunks/runtime-BY3EB4G7.js +2 -0
- package/dist-cli/chunks/{screenshot-MZU3WMZX.js → screenshot-UTVYF7F4.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-IFIJCGY4.js → screenshot-mode-WPSK6REL.js} +2 -2
- package/dist-cli/chunks/{screenshots-DLBGZB3H.js → screenshots-OXRAQXWN.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-XDIENEIZ.js → screenshots-capture-KDNNRKDL.js} +2 -2
- package/dist-cli/chunks/{serve-EQROWG7B.js → serve-ZKEXM2U5.js} +2 -2
- package/dist-cli/chunks/setup-A5RLMR3I.js +97 -0
- package/dist-cli/chunks/{skills-HIYKCNT5.js → skills-FSJFEKNP.js} +2 -2
- package/dist-cli/chunks/{slides-YCSSVMRF.js → slides-UU3DFZDY.js} +2 -2
- package/dist-cli/chunks/store-TZH6LKFH.js +2 -0
- package/dist-cli/chunks/telemetry-AHIQ3SS5.js +2 -0
- package/dist-cli/chunks/{telemetry-QYQZR3XG.js → telemetry-TOTJDY6O.js} +2 -2
- package/dist-cli/chunks/{test-EA5OUQZJ.js → test-D6T7Z4XS.js} +3 -3
- package/dist-cli/chunks/{three-mode-PNIMEW5B.js → three-mode-CAKEPRJQ.js} +2 -2
- package/dist-cli/chunks/{timeline-FJRCFCJG.js → timeline-D6NKNKNS.js} +2 -2
- package/dist-cli/chunks/upgrade-DBT6E6DD.js +4 -0
- package/dist-cli/chunks/upload-JR2B3YT7.js +2 -0
- package/dist-cli/chunks/{version-UIBJN43T.js → version-4PLJ73Q3.js} +2 -2
- package/dist-cli/chunks/{web-5QNTEXZD.js → web-O6QWIX3V.js} +2 -2
- package/dist-cli/chunks/{what-happened-XNHLVLK2.js → what-happened-67DBMM4S.js} +2 -2
- package/dist-cli/chunks/{whoami-YSWN3MZU.js → whoami-PSQRCMUL.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 +29 -7
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.cjs +1 -1
- package/skills/soot.md +3 -2
- package/skills/sootsim-setup.md +7 -6
- package/dist-cli/chunks/beta-DSVWVBUT.js +0 -2
- package/dist-cli/chunks/chunk-5TEBVNSH.js +0 -62
- package/dist-cli/chunks/chunk-CWUQZGDS.js +0 -118
- package/dist-cli/chunks/chunk-EPYUJWRX.js +0 -13
- package/dist-cli/chunks/chunk-GOXGNGTF.js +0 -1
- package/dist-cli/chunks/chunk-IKIHQ4RB.js +0 -1
- package/dist-cli/chunks/chunk-WTKLDWWH.js +0 -2
- package/dist-cli/chunks/cli-version-IHTGZWXG.js +0 -2
- package/dist-cli/chunks/control-JO3KISFJ.js +0 -2
- package/dist-cli/chunks/daemon-72F26UYR.js +0 -2
- package/dist-cli/chunks/drivers-2SW6KTMT.js +0 -2
- package/dist-cli/chunks/flow-DYLR2KXX.js +0 -2
- package/dist-cli/chunks/help-KHTYNHBI.js +0 -2
- package/dist-cli/chunks/optional-demo-registry-674KCCRU.js +0 -2
- package/dist-cli/chunks/runtime-OQSESXYD.js +0 -2
- package/dist-cli/chunks/setup-4VOKFGMB.js +0 -77
- package/dist-cli/chunks/store-MVQYU3TC.js +0 -2
- package/dist-cli/chunks/telemetry-RUW7S4RI.js +0 -2
- package/dist-cli/chunks/upgrade-52W5H3YL.js +0 -4
- package/dist-cli/chunks/upload-BWIBZC7S.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as s,c as i,d as t,e as n,f as c}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as s,c as i,d as t,e as n,f as c}from"./chunk-WNUF6LJX.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.js";function f(){console.log(`
|
|
3
3
|
sootsim profile \u2014 manage isolated storage profiles
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{c as w,e as b,h as m,i as f}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{c as w,e as b,h as m,i as f}from"./chunk-7C6RC3BU.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.js";function h(){console.log(`
|
|
3
3
|
sootsim react \u2014 inspect React component render cost in the tenant worker
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as P}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as P}from"./chunk-MXXD5U6B.js";import"./chunk-NBF2SXAH.js";import{d as Z,f as ee}from"./chunk-6GC57KRY.js";import"./chunk-WMLFWLD7.js";import"./chunk-ID25RWPE.js";import{c as b,e as v,f as Q}from"./chunk-7C6RC3BU.js";import{d as Y}from"./chunk-IZMNFZXZ.js";import"./chunk-YQNX7JK6.js";import"./chunk-N5LA5G7V.js";import"./chunk-Q2S6VBXK.js";import{b as X}from"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.js";import{existsSync as we,mkdirSync as E,readdirSync as he,readFileSync as be,rmSync as J,writeFileSync as I}from"fs";import{homedir as ve,tmpdir as ye}from"os";import{dirname as W,extname as oe,join as N,resolve as Se}from"path";var z=24e4,Re=9e4,$e=3e4;async function D(e,r,o,i){let t=Math.max(2e4,i+$e);try{return await e.send({type:"evaluate",code:r},{timeoutMs:t})}catch(n){let s=n instanceof Error?n.message:String(n);/^command timed out after \d+s$/.test(s)&&(console.error(` ${o} stalled \u2014 the render host did not finish within ${Math.round(t/1e3)}s; it is likely contended or wedged.
|
|
3
3
|
the capture lock auto-releases, so simply retry the recording.
|
|
4
4
|
if it persists, recover the sim with \`sootsim close --sim <id>\`.`),process.exit(1)),/render host not available|already streaming|already recording|lock already held/i.test(s)&&(console.error(` ${o} failed: ${s}
|
|
5
5
|
a prior recording was abandoned and its capture is still
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a}from"./chunk-FAB5CDE7.js";import"./chunk-XSWATK6S.js";import"./chunk-7C6RC3BU.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.js";export{a as runRuntime};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as E}from"./chunk-C3WRMMUM.js";import"./chunk-VGTPGXKM.js";import{a as R}from"./chunk-Q6EHTP4Q.js";import{r as y}from"./chunk-7DHLNDOA.js";import{c as x,d as v,e as S,f as b,h as _}from"./chunk-7C6RC3BU.js";import"./chunk-WSN7MF4E.js";import"./chunk-T4XAQ7VQ.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import{g as w}from"./chunk-OGLOOKK6.js";import"./chunk-IHH3JCV5.js";import{mkdirSync as $,writeFileSync as A}from"fs";import{dirname as M,resolve as F}from"path";async function Q(t,o){let e=q(t);(e.includes("--help")||e.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim screenshot \u2014 capture the canvas as a PNG
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as o}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as o}from"./chunk-U636Z2JZ.js";import"./chunk-7C6RC3BU.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.js";async function n(e,s){(e.includes("--help")||e.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim screenshot-mode \u2014 toggle the screenshot-mode chrome overlay
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as q}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as q}from"./chunk-WDMIABUY.js";import{b as L}from"./chunk-C3WRMMUM.js";import"./chunk-VGTPGXKM.js";import"./chunk-MXXD5U6B.js";import"./chunk-NBF2SXAH.js";import{d as U,e as K}from"./chunk-6GC57KRY.js";import{b as H}from"./chunk-T5YWTSGG.js";import"./chunk-WLDAMCQK.js";import"./chunk-FD4BKULK.js";import"./chunk-7DKGX746.js";import"./chunk-7DHLNDOA.js";import"./chunk-WMLFWLD7.js";import"./chunk-ID25RWPE.js";import"./chunk-YYS2ITHH.js";import"./chunk-7C6RC3BU.js";import"./chunk-AKQWG57K.js";import"./chunk-JFCJIRX6.js";import"./chunk-IZMNFZXZ.js";import"./chunk-WNUF6LJX.js";import"./chunk-WSN7MF4E.js";import"./chunk-YQNX7JK6.js";import"./chunk-N5LA5G7V.js";import"./chunk-T4XAQ7VQ.js";import"./chunk-MFL73VJG.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import{a as y,b as A,c as v,d as E,e as O,f as C,g as _}from"./chunk-OGLOOKK6.js";import"./chunk-IHH3JCV5.js";import{mkdirSync as I,readFileSync as ye,writeFileSync as se}from"fs";import{tmpdir as We}from"os";import F from"path";import{mkdirSync as W,readFileSync as ae,writeFileSync as X}from"fs";import B from"path";function V(e){return e.replace(/\\/g,"/").replace(/\.png$/i,"").trim().split("/").filter(Boolean).join("--").replace(/[^A-Za-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")||"slide"}function T(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""")}function ce(e){let t=e.trim();return/^#[0-9a-f]{3}$/i.test(t)?`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`:t}function D(e,t){let o=ce(e),i=Math.max(0,Math.min(1,t)),n=o.match(/^#([0-9a-f]{6})$/i);if(n){let s=n[1],r=Number.parseInt(s.slice(0,2),16),a=Number.parseInt(s.slice(2,4),16),c=Number.parseInt(s.slice(4,6),16);return`rgba(${r}, ${a}, ${c}, ${i})`}return o.startsWith("rgb(")?o.replace(/^rgb\((.+)\)$/i,`rgba($1, ${i})`):o}function le(e){if(e.type==="solid")return e.color||"#000000";let t=e.direction??180,o=e.stops?.map(i=>`${i.color} ${i.offset}%`).join(", ")||"#000000 0%, #111111 100%";return`linear-gradient(${t}deg, ${o})`}function pe(e){let t=e.glow;return t?`radial-gradient(circle at 50% 24%, ${D(t,.46)} 0%, ${D(t,.2)} 24%, rgba(0,0,0,0) 62%)`:"none"}function R(e){switch(e){case"tilted-left":return"perspective(2400px) rotateY(10deg) rotateZ(-2deg)";case"tilted-right":return"perspective(2400px) rotateY(-10deg) rotateZ(2deg)";case"cut-bottom":return"translateY(10%) scale(1.08)";case"cut-top":return"translateY(-16%) scale(1.08)";case"straight":default:return"none"}}function G(...e){let t=e.map(o=>o.trim()).filter(o=>o.length>0&&o!=="none");return t.length>0?t.join(" "):"none"}function j(e){let t=D(e.color,e.opacity),o=D(e.color,e.opacity*.52);return`drop-shadow(0 34px ${e.spread}px ${o}) drop-shadow(0 0 ${e.blur}px ${t})`}function Y(e,t){return!t.glow||e.color&&e.color!==y.color?e:{...e,color:t.glow}}function ue(e,t){if(e==="editorial-left"){let n=Math.round(t.height*.056),s=Math.round(t.height*.022);return{copyStyle:["position:absolute",`top:${Math.round(t.height*.12)}px`,`left:${Math.round(t.width*.085)}px`,`width:${Math.round(t.width*.42)}px`,"text-align:left","z-index:3"].join(";"),titleStyle:`font-size:${n}px;line-height:0.92;`,subStyle:`font-size:${s}px;line-height:1.36;max-width:${Math.round(t.width*.36)}px;`,eyebrowStyle:"align-items:flex-start;",deviceStyle:(r,a,c)=>{let p=Math.round(t.width*.68*(a.scale??r.scale)),l=Math.round(t.height*(.03+r.offsetY+(a.offsetY??0))),m=a.pose||r.pose||"tilted-right",h=Y(r.shadow,c);return["position:absolute",`top:${Math.round(t.height*.18)+l}px`,`left:${Math.round(t.width*.56)}px`,`width:${p}px`,"transform-origin:center center",`transform:${R(m)}`,`filter:${j(h)}`,"z-index:2"].join(";")}}}if(e==="minimal-bottom"){let n=Math.round(t.height*.041),s=Math.round(t.height*.019);return{copyStyle:["position:absolute",`left:${Math.round(t.width*.12)}px`,`right:${Math.round(t.width*.12)}px`,`bottom:${Math.round(t.height*.085)}px`,"text-align:center","z-index:3"].join(";"),titleStyle:`font-size:${n}px;line-height:0.96;`,subStyle:`font-size:${s}px;line-height:1.34;max-width:${Math.round(t.width*.56)}px;margin:0 auto;`,eyebrowStyle:"align-items:center;",deviceStyle:(r,a,c)=>{let p=Math.round(t.width*.84*(a.scale??r.scale)),l=Math.round(t.height*(r.offsetY+(a.offsetY??0))),m=a.pose||r.pose,h=Y(r.shadow,c);return["position:absolute",`top:${Math.round(t.height*.075)+l}px`,"left:50%",`width:${p}px`,"transform-origin:center center",`transform:${G("translateX(-50%)",R(m))}`,`filter:${j(h)}`,"z-index:2"].join(";")}}}let o=Math.round(t.height*.04),i=Math.round(t.height*.019);return{copyStyle:["position:absolute",`top:${Math.round(t.height*.084)}px`,"left:50%",`width:${Math.round(t.width*.88)}px`,"transform:translateX(-50%)","text-align:center","z-index:3"].join(";"),titleStyle:`font-size:${o}px;line-height:0.92;`,subStyle:`font-size:${i}px;line-height:1.34;max-width:${Math.round(t.width*.6)}px;margin:0 auto;`,eyebrowStyle:"align-items:center;",deviceStyle:(n,s,r)=>{let a=Math.round(t.width*.64*(s.scale??n.scale)),c=Math.round(t.height*(n.offsetY+(s.offsetY??0))),p=s.pose||n.pose,l=Y(n.shadow,r);return["position:absolute",`top:${Math.round(t.height*.28)+c}px`,"left:50%",`width:${a}px`,"transform-origin:center top",`transform:${G("translateX(-50%)",R(p))}`,`filter:${j(l)}`,"z-index:2"].join(";")}}}function de({canvas:e,compose:t,slide:o,imageDataUrl:i}){let n=o.background??t.background,s=ue(t.text.preset,e),r=t.text.preset!=="none"&&!!(o.eyebrow||o.headline||o.subheadline),a=s.deviceStyle(t.frame,o,n),c=o.headline?`<div style="font-weight:780;white-space:pre-line;text-wrap:balance;${s.titleStyle}">${T(o.headline)}</div>`:"",p=o.subheadline?`<div style="margin-top:${Math.round(e.height*.018)}px;color:${t.text.subColor};white-space:pre-line;text-wrap:balance;${s.subStyle}">${T(o.subheadline)}</div>`:"",l=o.eyebrow?`<div style="display:flex;${s.eyebrowStyle}margin-bottom:${Math.round(e.height*.016)}px;"><div style="font-size:${Math.round(e.height*.014)}px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;color:${t.text.eyebrowColor};">${T(o.eyebrow)}</div></div>`:"";return`<!doctype html>
|
|
3
3
|
<html>
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8" />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{d as I}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{d as I}from"./chunk-6GC57KRY.js";import"./chunk-N5LA5G7V.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.js";import{execSync as E}from"node:child_process";import{mkdirSync as L,mkdtempSync as W,rmSync as q,writeFileSync as z}from"node:fs";import{tmpdir as H}from"node:os";import{dirname as J,isAbsolute as K,join as A,resolve as V}from"node:path";import{chromium as Y}from"playwright-core";import{execSync as j}from"node:child_process";function N(o){let e=o;if(e&&typeof e.process=="function")try{let t=e.process();if(t&&typeof t.pid=="number"&&t.pid>0)return t.pid}catch{}if(e&&typeof e.browser=="function")try{let t=e.browser();if(t)return N(t)}catch{}return null}function x(o){let e=[];try{e=j(`pgrep -P ${o} || true`).toString().split(`
|
|
3
3
|
`).filter(Boolean)}catch{}for(let t of e)x(Number(t));try{process.kill(o,"SIGKILL")}catch{}}var C=new Set,M=!1;function B(){if(M)return;M=!0;let o=()=>{for(let e of C)x(e)};process.on("SIGTERM",()=>{o(),process.exit(0)}),process.on("SIGINT",()=>{o(),process.exit(0)}),process.on("exit",o)}async function U(o){let e=await o(),t=N(e),n=new Set;t!=null&&(n.add(t),C.add(t),B());let i=e;return typeof i.on=="function"&&i.on("disconnected",()=>{for(let c of n)C.delete(c)}),{browser:e,reapNow:()=>{for(let c of n)x(c),C.delete(c);n.clear()}}}var Q=`
|
|
4
4
|
sootsim screenshots capture \u2014 headlessly capture + upload App Store slides
|
|
5
5
|
|
|
@@ -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.184 | (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-QQ4JDVR6.js";import"./chunk-3S5BOWO5.js";import{a as oe}from"./chunk-NBF2SXAH.js";import"./chunk-6GC57KRY.js";import{g as se}from"./chunk-XSWATK6S.js";import{f as P}from"./chunk-FD4BKULK.js";import"./chunk-WMLFWLD7.js";import"./chunk-ID25RWPE.js";import"./chunk-YYS2ITHH.js";import"./chunk-7C6RC3BU.js";import{d as ne}from"./chunk-IZMNFZXZ.js";import{a as Q,b as ee}from"./chunk-YQNX7JK6.js";import"./chunk-N5LA5G7V.js";import{a as ie,b as re}from"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.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-53KKDNCU.js";import{a as te}from"./chunk-6MPD3QXA.js";import"./chunk-IHH3JCV5.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
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as g,b as k}from"./chunk-IG7F7DTQ.js";import{b as S,c as x}from"./chunk-3KK3YZQ3.js";import{a as w}from"./chunk-YQNX7JK6.js";import"./chunk-N5LA5G7V.js";import"./chunk-NWNFGZSI.js";import"./chunk-S5XWFD5C.js";import"./chunk-T4XAQ7VQ.js";import"./chunk-VVACMCCE.js";import"./chunk-WAZCQ5UO.js";import"./chunk-MFL73VJG.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import{D as v,I as f,K as m,l as b}from"./chunk-53KKDNCU.js";import"./chunk-6MPD3QXA.js";import"./chunk-QZW44BMW.js";import"./chunk-OGLOOKK6.js";import"./chunk-IHH3JCV5.js";import{existsSync as r,mkdirSync as j,readFileSync as d,readdirSync as I,writeFileSync as D}from"fs";import{basename as p,dirname as y,join as i,relative as c,resolve as h}from"path";var T=["bun","pnpm","npm"];async function pe(n){(n.includes("--help")||n.includes("-h"))&&(console.log(`
|
|
3
|
+
sootsim setup \u2014 set up this machine for SootSim
|
|
4
|
+
|
|
5
|
+
usage:
|
|
6
|
+
sootsim setup
|
|
7
|
+
sootsim setup --app <dir>
|
|
8
|
+
sootsim setup --yes
|
|
9
|
+
sootsim setup --dry-run
|
|
10
|
+
|
|
11
|
+
what it checks:
|
|
12
|
+
1. preferred package manager for app commands (bun, pnpm, or npm)
|
|
13
|
+
2. repo-pinned Node versions (mise, nvm, .node-version, package engines)
|
|
14
|
+
3. background daemon; recommended because it keeps CLI commands fast
|
|
15
|
+
4. app config scaffold; emits sootsim.config.js for plain JS apps or
|
|
16
|
+
sootsim.config.ts for TypeScript apps when the file is missing
|
|
17
|
+
|
|
18
|
+
SootSim does not need to be installed in each app, and it does not need an iOS
|
|
19
|
+
native build. Start Metro/Expo/One the way you already do, then run
|
|
20
|
+
\`sootsim open\`.
|
|
21
|
+
|
|
22
|
+
If you do not have the CLI installed yet, bootstrap with \`npx sootsim\` and
|
|
23
|
+
follow the guided setup.
|
|
24
|
+
`),process.exit(0));let e=_(n);r(e.appDir)||(console.error(` directory not found: ${e.appDir}`),process.exit(1)),V(e);let o=await L(e),t=await F(e);q(e.appDir);let s=await Z(e);return ee(o),w({event:"cli_setup_guided",properties:{package_manager:o,config_created_now:t,daemon_installed_now:s,node_pin_count:M(e.appDir).length,from_welcome:e.fromWelcome}}),await te(e,s),{daemonInstalledNow:s}}function E(){let n=S(),e=f(),o=v();return{daemonSupported:n.supported,daemonInstalled:n.installed,daemonRunning:!!(e&&m(e)),runtimeInstalled:!!(o&&r(b(o)))}}function de(n=E()){return!n.daemonInstalled}function _(n){let e=n.indexOf("--app");return{dryRun:n.includes("--dry-run"),yes:n.includes("--yes")||n.includes("-y"),fromWelcome:n.includes("--from-welcome"),appDir:e!==-1&&n[e+1]?h(n[e+1]):process.cwd()}}function V(n){let e=n.fromWelcome?"welcome to sootsim":"sootsim setup";console.log(`
|
|
25
|
+
${e}
|
|
26
|
+
|
|
27
|
+
Recommended install path:
|
|
28
|
+
npx sootsim
|
|
29
|
+
|
|
30
|
+
Then install the global CLI so you can use bare \`sootsim\` everywhere:
|
|
31
|
+
bun add -g sootsim
|
|
32
|
+
pnpm add -g sootsim
|
|
33
|
+
npm i -g sootsim
|
|
34
|
+
|
|
35
|
+
If this app needs a config scaffold, setup will write \`sootsim.config.js\`
|
|
36
|
+
for plain JS apps or \`sootsim.config.ts\` for TypeScript apps.
|
|
37
|
+
|
|
38
|
+
No per-app install is needed. Do not add SootSim to every package.json just
|
|
39
|
+
to open a simulator.
|
|
40
|
+
|
|
41
|
+
No iOS native build is needed. Run Metro, Expo, or One normally; SootSim
|
|
42
|
+
loads that dev server directly.
|
|
43
|
+
`)}async function L(n){let e=W(n.appDir),o=A(e);if(console.log(" package manager:"),n.yes)return console.log(` ${e} (detected)`),e;let t=await k("preferred package manager for app commands?",o.map(a=>a===e?`${a} (detected)`:a)),s=o[t]??e;return console.log(` using ${s} for examples only; SootSim stays outside the app`),s}function W(n){let e=h(n);for(;;){if(r(i(e,"bun.lock"))||r(i(e,"bun.lockb")))return"bun";if(r(i(e,"pnpm-lock.yaml")))return"pnpm";if(r(i(e,"package-lock.json")))return"npm";let o=y(e);if(o===e)return"npm";e=o}}function A(n){return[n,...T.filter(e=>e!==n)]}async function F(n){let e=B(n.appDir);if(e)return console.log(`
|
|
44
|
+
config:`),console.log(` already present: ${c(process.cwd(),e)||e}`),!1;let o=J(n.appDir),t=i(n.appDir,`sootsim.config.${o}`);return console.log(`
|
|
45
|
+
config:`),console.log(` recommended scaffold: ${c(process.cwd(),t)||t}`),console.log(` emits ${o==="ts"?"TypeScript":"plain JS"} so blank Expo apps do not need extra TypeScript dependencies.`),n.dryRun?(console.log(" would create the config scaffold"),!1):await R("create the config scaffold?",!0,n)?(K(t,o),console.log(` created ${c(process.cwd(),t)||t}`),!0):!1}function B(n){for(let e of["ts","js"]){let o=i(n,`sootsim.config.${e}`);if(r(o))return o}return null}function J(n){return G(n)?"ts":"js"}function G(n){let e=Y(n);if(e&&U(e))return!0;for(let o of["tsconfig.json","tsconfig.app.json","tsconfig.node.json","app.config.ts","app.config.tsx","metro.config.ts","metro.config.tsx","vite.config.ts","vite.config.tsx","babel.config.ts","expo-env.d.ts","index.ts","index.tsx","App.ts","App.tsx"])if(r(i(n,o)))return!0;for(let o of["app","src","pages"])if(C(i(n,o)))return!0;return!1}function Y(n){let e=i(n,"package.json");if(!r(e))return null;try{let o=JSON.parse(d(e,"utf8"));return o&&typeof o=="object"?o:null}catch{return null}}function U(n){return[l(n,"dependencies"),l(n,"devDependencies"),l(n,"peerDependencies")].some(o=>!!(u(o,"typescript")||u(o,"@types/react")||u(o,"@types/react-native")))}function C(n){if(!r(n))return!1;try{for(let e of I(n,{withFileTypes:!0})){let o=i(n,e.name);if(e.isDirectory()){if(e.name==="node_modules"||e.name.startsWith("."))continue;if(C(o))return!0;continue}if(e.isFile()&&(e.name.endsWith(".ts")||e.name.endsWith(".tsx")))return!0}}catch{return!1}return!1}function K(n,e){let o=e==="ts"?`import { defineConfig } from 'sootsim/config'
|
|
46
|
+
|
|
47
|
+
export default defineConfig({
|
|
48
|
+
// module resolution overrides
|
|
49
|
+
modules: {},
|
|
50
|
+
|
|
51
|
+
// environment variables
|
|
52
|
+
env: {},
|
|
53
|
+
|
|
54
|
+
// simulator settings
|
|
55
|
+
settings: {},
|
|
56
|
+
|
|
57
|
+
// initial app state
|
|
58
|
+
initialState: {},
|
|
59
|
+
})
|
|
60
|
+
`:`/** @type {import('sootsim/config').SootSimConfig} */
|
|
61
|
+
module.exports = {
|
|
62
|
+
// module resolution overrides
|
|
63
|
+
modules: {},
|
|
64
|
+
|
|
65
|
+
// environment variables
|
|
66
|
+
env: {},
|
|
67
|
+
|
|
68
|
+
// simulator settings
|
|
69
|
+
settings: {},
|
|
70
|
+
|
|
71
|
+
// initial app state
|
|
72
|
+
initialState: {},
|
|
73
|
+
}
|
|
74
|
+
`;j(y(n),{recursive:!0}),D(n,o)}function q(n){let e=M(n);if(console.log(`
|
|
75
|
+
node versions:`),e.length===0)console.log(` no mise/nvm/package Node pin detected near ${c(process.cwd(),n)||"."}`);else for(let o of e)console.log(` ${o.source}: ${o.value}`);console.log(" SootSim sidesteps per-repo Node installs: it is not added to this app.\n Your repo's Node pin only needs to run Metro/Expo/One; `sootsim open` attaches to the running server."),e.length>0&&X(process.execPath)&&console.log(` daemon note: setup is currently running on ${process.execPath}.
|
|
76
|
+
The daemon records that Node executable so launchd/systemd can start without shell init.
|
|
77
|
+
If this is a throwaway project-specific Node, rerun \`sootsim setup\` from your normal user Node shell.`)}function M(n){let e=[],o=new Set,t=h(n);for(;;){P(e,o,i(t,".nvmrc")),P(e,o,i(t,".node-version")),z(e,o,i(t,".tool-versions")),$(e,o,i(t,"mise.toml")),$(e,o,i(t,".mise.toml")),H(e,o,i(t,"package.json"));let s=y(t);if(s===t)break;t=s}return e}function P(n,e,o){if(!r(o)||e.has(o))return;e.add(o);let t=Q(o);t&&n.push({source:c(process.cwd(),o)||p(o),value:t})}function z(n,e,o){if(!r(o)||e.has(o))return;e.add(o);let t=d(o,"utf8");for(let s of t.split(`
|
|
78
|
+
`)){let a=s.trim().match(/^(nodejs|node)\s+(.+)$/);a&&n.push({source:`${c(process.cwd(),o)||p(o)}:${a[1]}`,value:a[2].trim()})}}function $(n,e,o){if(!r(o)||e.has(o))return;e.add(o);let s=d(o,"utf8").match(/^\s*(node|nodejs)\s*=\s*["']?([^"'\n#]+)["']?/m);s&&n.push({source:`${c(process.cwd(),o)||p(o)}:${s[1]}`,value:s[2].trim()})}function H(n,e,o){if(!(!r(o)||e.has(o))){e.add(o);try{let t=JSON.parse(d(o,"utf8")),s=u(l(t,"engines"),"node");s&&n.push({source:`${c(process.cwd(),o)||p(o)}:engines.node`,value:s});let a=u(l(t,"volta"),"node");a&&n.push({source:`${c(process.cwd(),o)||p(o)}:volta.node`,value:a})}catch{}}}function l(n,e){if(!n||typeof n!="object")return null;let o=Object.getOwnPropertyDescriptor(n,e)?.value;return o&&typeof o=="object"?o:null}function u(n,e){let o=n?.[e];return typeof o=="string"&&o.trim()?o.trim():null}function Q(n){return d(n,"utf8").split(`
|
|
79
|
+
`).map(o=>o.trim()).find(o=>o&&!o.startsWith("#"))??null}function X(n){let e=n.toLowerCase();return e.includes("/.nvm/")||e.includes("/mise/")||e.includes("/fnm/")||e.includes("/volta/")||e.includes("/asdf/")}async function Z(n){let e=S(),o=f(),t=!!(o&&m(o));return console.log(`
|
|
80
|
+
daemon:`),e.supported?e.installed?(console.log(` installed${t&&o?`, running on port ${o.bridgePort}`:""}`),!1):(console.log(" not installed"),console.log(` recommended: installs a background bridge so every CLI command is much faster.
|
|
81
|
+
Without it, commands may need to spin up a local server before they can talk to the sim.`),n.dryRun?(console.log(" would install the background daemon"),!1):await R("install the background daemon?",!0,n)?(await x({port:7668,force:!1}),!0):!1):(console.log(` unavailable on ${process.platform}`),console.log(" `sootsim open` can still start a local bridge when needed"),!1)}function ee(n){console.log(`
|
|
82
|
+
basic usage:
|
|
83
|
+
1. start your app dev server normally:
|
|
84
|
+
${N(n,"expo start --port 8081")}
|
|
85
|
+
${N(n,"react-native start --port 8081")}
|
|
86
|
+
${ne(n,"dev")}
|
|
87
|
+
|
|
88
|
+
2. install and use the global CLI:
|
|
89
|
+
${oe(n)}
|
|
90
|
+
|
|
91
|
+
3. open it in SootSim:
|
|
92
|
+
sootsim open 8081
|
|
93
|
+
|
|
94
|
+
4. inspect and drive it:
|
|
95
|
+
sootsim describe
|
|
96
|
+
sootsim do tap-text "Sign in"
|
|
97
|
+
`)}function N(n,e){switch(n){case"bun":return`bunx ${e}`;case"pnpm":return`pnpm exec ${e}`;case"npm":return`npx ${e}`}}function ne(n,e){switch(n){case"bun":return`bun run ${e}`;case"pnpm":return`pnpm run ${e}`;case"npm":return`npm run ${e}`}}function oe(n){switch(n){case"bun":return"bun add -g sootsim";case"pnpm":return"pnpm add -g sootsim";case"npm":return"npm i -g sootsim"}}async function te(n,e){if(!e||n.dryRun)return;if(console.log(" last step:"),!process.stdin.isTTY){console.log(" run `sootsim open` after your Metro/Expo/One server is up");return}if(!await g("I'll run `sootsim open` for you now?",!0)){console.log(" later: sootsim open");return}let{runOpenCommand:o}=await import("./control-LUH3EQQG.js");await o([],{port:7668})}async function R(n,e,o){return o.yes?!0:process.stdin.isTTY?g(n,e):(console.log(` ${n} ${e?"[Y/n]":"[y/N]"} n (non-interactive; pass --yes to accept)`),!1)}export{J as detectConfigScaffoldExt,M as detectNodeVersionPins,W as detectPreferredPackageManager,E as readMachineSetupStatus,pe as runSetup,de as shouldRunSetupForBareCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-IHH3JCV5.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.184 | (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-7C6RC3BU.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.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:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{A as n,B as s,x as o}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{A as n,B as s,x as o}from"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.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.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-IHH3JCV5.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-PHLGST7G.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-KDVDRUEN.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.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as $}from"./chunk-U636Z2JZ.js";import{c as p,e as h,i as R}from"./chunk-7C6RC3BU.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.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.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{c as m,e as d,h as s}from"./chunk-7C6RC3BU.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.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:
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as i}from"./chunk-FAB5CDE7.js";import"./chunk-XSWATK6S.js";import"./chunk-7C6RC3BU.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import{G as e}from"./chunk-53KKDNCU.js";import{a as s}from"./chunk-6MPD3QXA.js";import"./chunk-IHH3JCV5.js";var r="https://registry.npmjs.org/sootsim/latest";async function g(n){let o=n.indexOf("--channel"),t=o>=0&&n[o+1]?n[o+1]:void 0;console.log(`sootsim upgrade
|
|
3
|
+
`),await l(),console.log(`
|
|
4
|
+
runtime:`),await i(["install",...t?["--channel",t]:[]],{})}async function l(){let n=s(),o=await c();if(!o){console.log(` cli: v${n} \u2014 couldn't reach the npm registry, skipped`);return}if(e(o,n)<=0){console.log(` cli: v${n} (latest)`);return}console.log(` cli: v${n} \u2192 v${o}`),console.log(" cli: use the latest CLI with:"),console.log(" sootsim@latest")}async function c(){try{let n=await fetch(r,{headers:{accept:"application/json"},signal:AbortSignal.timeout(8e3)});if(!n.ok)return null;let o=await n.json();return typeof o.version=="string"&&o.version?o.version:null}catch{return null}}export{g as runUpgrade};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a,b,c}from"./chunk-NBF2SXAH.js";import"./chunk-6GC57KRY.js";import"./chunk-WMLFWLD7.js";import"./chunk-ID25RWPE.js";import"./chunk-7C6RC3BU.js";import"./chunk-IZMNFZXZ.js";import"./chunk-YQNX7JK6.js";import"./chunk-N5LA5G7V.js";import"./chunk-Q2S6VBXK.js";import"./chunk-V36X7TNR.js";import"./chunk-53KKDNCU.js";import"./chunk-IHH3JCV5.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.184 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as s,d as l,h as r}from"./chunk-XSWATK6S.js";import{a as i}from"./chunk-S5XWFD5C.js";import"./chunk-53KKDNCU.js";import{a as t}from"./chunk-6MPD3QXA.js";import"./chunk-IHH3JCV5.js";async function d(u){let{IS_BETA:a,BETA_LABEL:m}=await import("./beta-JS4JTDFC.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};
|