sootsim 0.1.144 → 0.1.146
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-2OYPRNUE.js → agent-PNNXV6F3.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-LPKFMZBN.js → agent-wrapper-JTYAONCG.js} +2 -2
- package/dist-cli/chunks/{app-fonts-3F2X43ER.js → app-fonts-YGTRUUJT.js} +2 -2
- package/dist-cli/chunks/{assert-MUUX2DJC.js → assert-HDFDQLHK.js} +2 -2
- package/dist-cli/chunks/auto-bootstrap-S7SSJMD3.js +2 -0
- package/dist-cli/chunks/beta-E3MSUPWU.js +2 -0
- package/dist-cli/chunks/{camera-TBW2MKRE.js → camera-4B7OAHRD.js} +2 -2
- package/dist-cli/chunks/{chunk-IAWQFSZ2.js → chunk-2FYSNCRJ.js} +2 -2
- package/dist-cli/chunks/{chunk-AKHWKREF.js → chunk-2PYDOYIS.js} +1 -1
- package/dist-cli/chunks/{chunk-KF7TXHAG.js → chunk-35QJJ4MM.js} +3 -3
- package/dist-cli/chunks/chunk-3RPHEE3K.js +2 -0
- package/dist-cli/chunks/{chunk-73DPWPZU.js → chunk-4KNMAGC4.js} +1 -1
- package/dist-cli/chunks/{chunk-A3E5QVUN.js → chunk-A7JX3OQC.js} +1 -1
- package/dist-cli/chunks/chunk-AOPFT3S4.js +119 -0
- package/dist-cli/chunks/{chunk-UZO6PMW3.js → chunk-ATJRNMNA.js} +2 -2
- package/dist-cli/chunks/{chunk-2OWIXUFA.js → chunk-BBIN2U26.js} +2 -2
- package/dist-cli/chunks/{chunk-ZRVCZZCT.js → chunk-BE2ZDRIJ.js} +2 -2
- package/dist-cli/chunks/{chunk-S6OUYII6.js → chunk-C44OZFHJ.js} +2 -2
- package/dist-cli/chunks/{chunk-QHCI5TZ6.js → chunk-DP5FSZHW.js} +2 -2
- package/dist-cli/chunks/chunk-DRCRPS2N.js +1 -0
- package/dist-cli/chunks/{chunk-KABTL7PQ.js → chunk-ERAE4LJT.js} +36 -56
- package/dist-cli/chunks/{chunk-LEWUJGFD.js → chunk-FK2YXBKR.js} +1 -1
- package/dist-cli/chunks/{chunk-TJXJCYCS.js → chunk-G7JMTSF6.js} +1 -1
- package/dist-cli/chunks/{chunk-BBPSMK2D.js → chunk-GD473DHN.js} +2 -2
- package/dist-cli/chunks/{chunk-T5SF5UGY.js → chunk-H2EIYIRP.js} +1 -1
- package/dist-cli/chunks/{chunk-VFXS73Q6.js → chunk-H6LFGGJW.js} +2 -2
- package/dist-cli/chunks/{chunk-FQBF5HG6.js → chunk-HWB7DPXH.js} +1 -1
- package/dist-cli/chunks/{chunk-W4KCLE5O.js → chunk-HZHZY7N5.js} +2 -2
- package/dist-cli/chunks/{chunk-MX66P64S.js → chunk-IADMCPLZ.js} +1 -1
- package/dist-cli/chunks/{chunk-FZXVYC4D.js → chunk-IAO27BWC.js} +2 -2
- package/dist-cli/chunks/{chunk-YV6RWCPO.js → chunk-JFQXWAWN.js} +2 -2
- package/dist-cli/chunks/{chunk-AV2DSEYZ.js → chunk-JZW2R5D7.js} +2 -2
- package/dist-cli/chunks/{chunk-7R3BK6IY.js → chunk-K6X7LUFG.js} +1 -1
- package/dist-cli/chunks/{chunk-TONLJPNX.js → chunk-MIIAYBFL.js} +1 -1
- package/dist-cli/chunks/{chunk-TKMTONCA.js → chunk-MSQUL5BU.js} +3 -3
- package/dist-cli/chunks/{chunk-QMTPTQHG.js → chunk-MVLNHZMU.js} +2 -2
- package/dist-cli/chunks/chunk-OU42HTKN.js +1 -0
- package/dist-cli/chunks/{chunk-PN4QXNKU.js → chunk-PCW4TKI2.js} +2 -2
- package/dist-cli/chunks/{chunk-ZODKBHVK.js → chunk-Q6BHESL2.js} +2 -2
- package/dist-cli/chunks/{chunk-6KI36NXX.js → chunk-R7CMXY5T.js} +2 -2
- package/dist-cli/chunks/{chunk-A72YS45Y.js → chunk-RTD4RNZV.js} +2 -2
- package/dist-cli/chunks/{chunk-HVB4FNBH.js → chunk-SZNVNYEP.js} +2 -2
- package/dist-cli/chunks/{chunk-TE2SHQPT.js → chunk-TLFNO2L4.js} +1 -1
- package/dist-cli/chunks/{chunk-UGRHYJUA.js → chunk-TZXKFPBJ.js} +2 -2
- package/dist-cli/chunks/{chunk-HC43FXK7.js → chunk-UD4SYXDQ.js} +2 -2
- package/dist-cli/chunks/chunk-VKKWYLIZ.js +2 -0
- package/dist-cli/chunks/{chunk-BCIZZLCX.js → chunk-VZSXOG4N.js} +1 -1
- package/dist-cli/chunks/{chunk-XJVBNNIB.js → chunk-WFXLVOUA.js} +2 -2
- package/dist-cli/chunks/chunk-XO4VQYFP.js +2 -0
- package/dist-cli/chunks/{chunk-AJKVXCHV.js → chunk-XRQDMB2J.js} +2 -2
- package/dist-cli/chunks/chunk-Y76W7GZV.js +1 -0
- package/dist-cli/chunks/{chunk-4CPUNUJC.js → chunk-YBSNSFBX.js} +1 -1
- package/dist-cli/chunks/cli-version-AJWPSNS4.js +2 -0
- package/dist-cli/chunks/{compat-P64DATYR.js → compat-F4WAO62Y.js} +3 -3
- package/dist-cli/chunks/{config-TDDQXUS5.js → config-WAIORJNJ.js} +2 -2
- package/dist-cli/chunks/{control-SNZMPDL7.js → control-M54456XG.js} +2 -2
- package/dist-cli/chunks/{cpu-profile-FR47V42J.js → cpu-profile-NNMDXCWI.js} +2 -2
- package/dist-cli/chunks/{daemon-LHJUCC7B.js → daemon-UXSN6QDY.js} +2 -2
- package/dist-cli/chunks/{debug-26NR6JCY.js → debug-JAQVYKQG.js} +3 -3
- package/dist-cli/chunks/{detox-F2KTINZX.js → detox-QOL7PD62.js} +2 -2
- package/dist-cli/chunks/{device-O5COOPDN.js → device-WPAQY2ZH.js} +2 -2
- package/dist-cli/chunks/{diagnose-PQMLUCBO.js → diagnose-FKN4ALSH.js} +2 -2
- package/dist-cli/chunks/drivers-FTOUKVJ5.js +2 -0
- package/dist-cli/chunks/{electron-ZBL3TH2F.js → electron-YQKH55P6.js} +3 -3
- package/dist-cli/chunks/flow-EJXOH72E.js +2 -0
- package/dist-cli/chunks/help-ID6MSA6T.js +2 -0
- package/dist-cli/chunks/{hints-DWE4FKYR.js → hints-GIJN25JB.js} +2 -2
- package/dist-cli/chunks/{home-paths-N2S32DRH.js → home-paths-KIR4SAL4.js} +2 -2
- package/dist-cli/chunks/{inspect-J3BLUHGJ.js → inspect-YRP3UFG4.js} +3 -3
- package/dist-cli/chunks/install-S4YF4O3O.js +2 -0
- package/dist-cli/chunks/{install-desktop-73H4DAAH.js → install-desktop-INHP4VUQ.js} +3 -3
- package/dist-cli/chunks/{keys-R42T6X3W.js → keys-CBKA6IB7.js} +2 -2
- package/dist-cli/chunks/{launch-QGDSUNDW.js → launch-JZ463USO.js} +3 -3
- package/dist-cli/chunks/{login-BYCX25K6.js → login-VHP4DNC2.js} +4 -4
- package/dist-cli/chunks/{logout-TZJXACIH.js → logout-NRG4U6Z7.js} +2 -2
- package/dist-cli/chunks/{maestro-VPK6R5NN.js → maestro-KPNXHCFR.js} +2 -2
- package/dist-cli/chunks/optional-demo-registry-VXBG2NEH.js +2 -0
- package/dist-cli/chunks/{preview-GJ7MVSHM.js → preview-O44G7W2U.js} +2 -2
- package/dist-cli/chunks/{profile-2RAV3UZS.js → profile-RMYP6I2J.js} +2 -2
- package/dist-cli/chunks/{react-QE7UHEFS.js → react-CFUB2U76.js} +2 -2
- package/dist-cli/chunks/{record-YYL4A7DO.js → record-YSLIYV2X.js} +2 -2
- package/dist-cli/chunks/runtime-YVV2FMMD.js +2 -0
- package/dist-cli/chunks/{runtime-delivery-2G4PGXGK.js → runtime-delivery-DDUSKKTU.js} +2 -2
- package/dist-cli/chunks/{screenshot-BIVF76SC.js → screenshot-MH7JQVO7.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-OKAH3ZLK.js → screenshot-mode-JRRQPP37.js} +2 -2
- package/dist-cli/chunks/screenshots-32GEAUAF.js +74 -0
- package/dist-cli/chunks/{server-6SFAUUGK.js → server-ROXPXSIK.js} +3 -3
- package/dist-cli/chunks/setup-repo-E2IJJBCE.js +2 -0
- package/dist-cli/chunks/{skills-7APKWTBO.js → skills-T74U4JC7.js} +2 -2
- package/dist-cli/chunks/slides-OM25OBW3.js +46 -0
- package/dist-cli/chunks/{start-2GETTWND.js → start-NLHWSRC7.js} +4 -4
- package/dist-cli/chunks/store-EISWHA6H.js +2 -0
- package/dist-cli/chunks/telemetry-7AXVZMQT.js +2 -0
- package/dist-cli/chunks/{test-V5HHXSKL.js → test-RYMENNXC.js} +3 -3
- package/dist-cli/chunks/{three-mode-UVIEP3CE.js → three-mode-MK242N4J.js} +2 -2
- package/dist-cli/chunks/{timeline-HVEKSWHF.js → timeline-ANKR37NA.js} +2 -2
- package/dist-cli/chunks/{upgrade-FRHXNAYO.js → upgrade-ZANSK5HX.js} +2 -2
- package/dist-cli/chunks/upload-DWWZQMVH.js +2 -0
- package/dist-cli/chunks/{version-CBDBUHCC.js → version-DYXEOGY7.js} +2 -2
- package/dist-cli/chunks/{web-DMUBG5QR.js → web-LUMZCTLY.js} +2 -2
- package/dist-cli/chunks/{what-happened-3J4DEIRJ.js → what-happened-SIQGZLHO.js} +2 -2
- package/dist-cli/chunks/{whoami-BSPU6JP4.js → whoami-YI5RAQBT.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/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 +244 -26
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/screenshots/orchestrate.ts +7 -0
- package/src/screenshots/org-deck.ts +91 -0
- package/dist-cli/chunks/auto-bootstrap-EYENX7BT.js +0 -2
- package/dist-cli/chunks/beta-2JIATCYM.js +0 -2
- package/dist-cli/chunks/chunk-2WPNYDSO.js +0 -2
- package/dist-cli/chunks/chunk-3FFDAVGT.js +0 -119
- package/dist-cli/chunks/chunk-3LW4V4ZM.js +0 -2
- package/dist-cli/chunks/chunk-3ZNPJADG.js +0 -1
- package/dist-cli/chunks/chunk-GJR32NCU.js +0 -1
- package/dist-cli/chunks/chunk-TVLQMXWV.js +0 -1
- package/dist-cli/chunks/chunk-Z52XC4UA.js +0 -2
- package/dist-cli/chunks/cli-version-YEX2XZ7G.js +0 -2
- package/dist-cli/chunks/drivers-W4SBNM4V.js +0 -2
- package/dist-cli/chunks/flow-QREXGRFN.js +0 -2
- package/dist-cli/chunks/help-RE6HG3KD.js +0 -2
- package/dist-cli/chunks/install-NLKZNPCO.js +0 -2
- package/dist-cli/chunks/optional-demo-registry-UH3YM447.js +0 -2
- package/dist-cli/chunks/runtime-C4CLOL7U.js +0 -2
- package/dist-cli/chunks/screenshots-AVJANXAQ.js +0 -70
- package/dist-cli/chunks/setup-repo-CRCQPW3Y.js +0 -2
- package/dist-cli/chunks/store-YFAIUHAS.js +0 -2
- package/dist-cli/chunks/telemetry-LUP4L5RW.js +0 -2
- package/dist-cli/chunks/upload-NWHZULFU.js +0 -2
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*! sootsim v0.1.146 | (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-BBIN2U26.js";import"./chunk-YBSNSFBX.js";import"./chunk-FK2YXBKR.js";import"./chunk-IADMCPLZ.js";import"./chunk-TLFNO2L4.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
|
+
sootsim slides \u2014 compose App Store screenshots in the live sim
|
|
4
|
+
|
|
5
|
+
usage:
|
|
6
|
+
sootsim slides list slides (alias: slides list)
|
|
7
|
+
sootsim slides set <n> [fields] patch a slide's copy/colors
|
|
8
|
+
sootsim slides add append a blank slide (focuses it)
|
|
9
|
+
sootsim slides remove <n> delete a slide
|
|
10
|
+
sootsim slides focus <n> open a slide (device flips into it)
|
|
11
|
+
sootsim slides overview back to the gallery
|
|
12
|
+
sootsim slides capture [<n>] capture the live frame into a slide
|
|
13
|
+
sootsim slides export [<n>] [--out <dir>]
|
|
14
|
+
write composed App-Store PNG(s)
|
|
15
|
+
|
|
16
|
+
set fields:
|
|
17
|
+
--title <text> headline
|
|
18
|
+
--subtitle <text> subheadline
|
|
19
|
+
--bg-top <color> gradient top (white gray slate black cyan blue
|
|
20
|
+
--bg-bottom <color> gradient bottom teal green lime gold orange coral
|
|
21
|
+
--title-color <color> copy color override, or "auto" red berry magenta
|
|
22
|
+
--title-size <s> sm | md | lg | none gray-light
|
|
23
|
+
--underlay <s> black | white | none gray-dark \u2026)
|
|
24
|
+
--shadow <s> light | medium | strong | none
|
|
25
|
+
|
|
26
|
+
notes:
|
|
27
|
+
slides are addressed by 1-based index. screenshot mode is auto-enabled.
|
|
28
|
+
capture shoots whatever the sim currently shows \u2014 navigate the app first
|
|
29
|
+
(sootsim do tap-id \u2026), then capture.
|
|
30
|
+
|
|
31
|
+
examples:
|
|
32
|
+
sootsim slides set 1 --title "The ultimate MMA community." --bg-top cyan --bg-bottom black
|
|
33
|
+
sootsim slides capture 1
|
|
34
|
+
sootsim slides export --out ./exports
|
|
35
|
+
`,j={"--title":"title","--subtitle":"subtitle","--bg-top":"bgTop","--bg-bottom":"bgBottom","--title-color":"titleColor","--title-size":"titleSize","--underlay":"titleUnderlay","--shadow":"titleShadow","--out":"out"};function M(t){let e=[],a={},i=!1;for(let r=0;r<t.length;r+=1){let n=t[r];if(n==="--json"){i=!0;continue}let d=n.indexOf("="),o=d>0?n.slice(0,d):n,s=j[o];if(s){d>0?a[s]=n.slice(d+1):(a[s]=t[r+1]??"",r+=1);continue}e.push(n)}return{rest:e,values:a,json:i}}function U(t){if(!t)return;let e=Number(t);return Number.isInteger(e)&&e>0?e:t}async function A(t){if(!await v(t,`(async () => {
|
|
36
|
+
if (window.SootSim?.bridges?.settings?.get?.()?.screenshotMode) return true
|
|
37
|
+
window.dispatchEvent(new CustomEvent('sootsim:shell-command', {
|
|
38
|
+
detail: { type: 'fire-action', id: 'toggle-screenshot-mode' },
|
|
39
|
+
}))
|
|
40
|
+
const deadline = Date.now() + 2000
|
|
41
|
+
while (Date.now() < deadline) {
|
|
42
|
+
if (window.SootSim?.bridges?.settings?.get?.()?.screenshotMode) return true
|
|
43
|
+
await new Promise((r) => setTimeout(r, 40))
|
|
44
|
+
}
|
|
45
|
+
return false
|
|
46
|
+
})()`,{acquireLock:!0}))throw new Error("could not enable screenshot mode \u2014 is this a browser sim with the screenshot plugin? (electron has no screenshot mode)")}function N(t){console.log(` ${t.projectName} \u2014 canvas ${t.canvas} (${t.exportSize.width}\xD7${t.exportSize.height}), device ${t.deviceModel}`);for(let e of t.slides){let a=[e.focused?"focused":e.active?"active":null,e.captured?`captured${e.captureMode==="3d"?" 3d":""}`:"no capture"].filter(Boolean).join(", "),i=e.title?`"${e.title}"`:"(no title)",r=[`bg ${e.bgTop}\u2192${e.bgBottom}`,e.titleColor?`color ${e.titleColor}`:null,e.titleSize?`size ${e.titleSize}`:null,e.titleUnderlay?`underlay ${e.titleUnderlay}`:null,e.titleShadow?`shadow ${e.titleShadow}`:null].filter(Boolean).join(", ");console.log(` ${e.index}. ${i} \u2014 ${r} [${a}]`),e.subtitle&&console.log(` ${e.subtitle}`)}}function T(t){let e=t.match(/^data:[^;]+;base64,(.+)$/);if(!e)throw new Error("export returned an unexpected payload");return Buffer.from(e[1],"base64")}async function I(t,e){if(t.includes("--help")||t.includes("-h")){console.log(z);return}let{rest:a,values:i,json:r}=M(t),n=S(a,{port:e.port,commandTimeoutMs:45e3}),d=n.positional[0]??"list",o=U(n.positional[1]),s=y(n),c=l=>{r?console.log(JSON.stringify(l,null,2)):N(l)};try{switch(await A(s),d){case"list":{c(await b(s,"SootSim.bridges.screenshotControl.getState"));break}case"set":{if(o==null)throw new Error("usage: sootsim slides set <n> --title \u2026 (see --help)");let l={};for(let g of["title","subtitle","bgTop","bgBottom","titleColor","titleSize","titleUnderlay","titleShadow"])i[g]!=null&&(l[g]=i[g]);if(Object.keys(l).length===0)throw new Error("nothing to set \u2014 pass at least one field (see --help)");c(await u(s,"SootSim.bridges.screenshotControl.setSlide",o,l));break}case"add":{c(await u(s,"SootSim.bridges.screenshotControl.addSlide"));break}case"remove":{if(o==null)throw new Error("usage: sootsim slides remove <n>");c(await u(s,"SootSim.bridges.screenshotControl.removeSlide",o));break}case"focus":{if(o==null)throw new Error("usage: sootsim slides focus <n>");c(await u(s,"SootSim.bridges.screenshotControl.focusSlide",o));break}case"overview":{c(await u(s,"SootSim.bridges.screenshotControl.overview"));break}case"capture":{let l=await u(s,"SootSim.bridges.screenshotControl.capture",...o!=null?[o]:[]);c(l);break}case"export":{let l=i.out?B(i.out)?i.out:E(process.cwd(),i.out):C(process.cwd(),"screenshots"),g=await b(s,"SootSim.bridges.screenshotControl.getState"),f=o!=null?g.slides.filter(m=>m.index===o||m.id===o):g.slides.filter(m=>m.captured);if(f.length===0)throw new Error(o!=null?`no slide ${o}`:"no captured slides to export \u2014 capture first");let w=[];for(let m of f){let h=await b(s,"SootSim.bridges.screenshotControl.exportSlide",m.index),p=C(l,h.name);$(k(p),{recursive:!0}),x(p,T(h.dataUrl)),w.push(p),console.log(` saved: ${p} (${h.width}\xD7${h.height})`)}r&&console.log(JSON.stringify({written:w},null,2));break}default:throw new Error(`unknown subcommand "${d}" \u2014 see sootsim slides --help`)}}finally{s.close()}}export{I as runSlides};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.146 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-BBIN2U26.js";import{d as _}from"./chunk-A7JX3OQC.js";import"./chunk-YBSNSFBX.js";import"./chunk-FK2YXBKR.js";import{A as O,B as x,G as b,H as v,k as D}from"./chunk-IADMCPLZ.js";import"./chunk-TLFNO2L4.js";import{spawn as N}from"child_process";import{existsSync as F}from"fs";import{WebSocket as B}from"ws";var T=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];var A={reset:"\x1B[0m",dim:"\x1B[2m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",cyan:"\x1B[36m",bold:"\x1B[1m"};function k(){return process.stderr.isTTY===!0}function u(t,e){return k()?`${A[t]}${e}${A.reset}`:e}function L(t,e){switch(t){case"pending":return u("dim","\xB7");case"running":return u("cyan",e);case"done":return u("green","\u2713");case"fail":return u("red","\u2717");case"skip":return u("yellow","\u25CB")}}var E=class{constructor(e,s){this.stepper=e;this.data=s}start(e){this.data.state="running",e!==void 0&&(this.data.detail=e),this.stepper.render()}update(e){this.data.detail=e,this.stepper.render()}done(e){this.data.state="done",e!==void 0&&(this.data.detail=e),this.stepper.render()}fail(e){this.data.state="fail",e!==void 0&&(this.data.detail=e),this.stepper.render()}skip(e){this.data.state="skip",e!==void 0&&(this.data.detail=e),this.stepper.render()}},S=class{steps=[];bannerText="";frame=0;timer=null;lastLineCount=0;paused=!1;finished=!1;banner(e){this.bannerText=e}add(e){let s={label:e,state:"pending"};return this.steps.push(s),new E(this,s)}render(){this.paused||this.finished||(this.startSpinner(),this.draw())}pause(){this.paused||(this.paused=!0,this.stopSpinner(),this.eraseRendered(),this.lastLineCount=0)}resume(){this.paused&&(this.paused=!1,this.draw(),this.startSpinner())}finish(){this.finished||(this.finished=!0,this.stopSpinner(),this.draw())}startSpinner(){this.timer||!k()||this.steps.some(e=>e.state==="running")&&(this.timer=setInterval(()=>{this.frame=(this.frame+1)%T.length,this.draw()},80),this.timer?.unref?.())}stopSpinner(){this.timer&&(clearInterval(this.timer),this.timer=null)}draw(){if(!k()){this.drawForwardOnly();return}this.eraseRendered();let e=[];this.bannerText&&(e.push(u("bold",this.bannerText)),e.push(""));let s=T[this.frame],r=Math.max(...this.steps.map(i=>i.label.length),0);for(let i of this.steps){let n=L(i.state,s),c=i.label.padEnd(r),y=i.detail?` ${u("dim",i.detail)}`:"";e.push(` ${n} ${c}${y}`)}process.stderr.write(e.join(`
|
|
3
3
|
`)+`
|
|
4
4
|
`),this.lastLineCount=e.length,this.steps.some(i=>i.state==="running")||this.stopSpinner()}bannerPrinted=!1;lastEmitted=new Map;drawForwardOnly(){this.bannerText&&!this.bannerPrinted&&(process.stderr.write(this.bannerText+`
|
|
5
5
|
|
|
@@ -18,6 +18,6 @@ usage:
|
|
|
18
18
|
options:
|
|
19
19
|
--port <n> bridge port (default: ${7668})
|
|
20
20
|
--no-open don't open the browser at the end
|
|
21
|
-
`);return}O();let s=t.indexOf("--port"),r=s>=0&&t[s+1]?Number(t[s+1]):e.port??7668;Number.isNaN(r)&&(console.error(` invalid --port value: ${t[s+1]}`),process.exit(1));let i=t.includes("--no-open"),n=new S,{IS_BETA:c,BETA_TAGLINE:y}=await import("./beta-
|
|
21
|
+
`);return}O();let s=t.indexOf("--port"),r=s>=0&&t[s+1]?Number(t[s+1]):e.port??7668;Number.isNaN(r)&&(console.error(` invalid --port value: ${t[s+1]}`),process.exit(1));let i=t.includes("--no-open"),n=new S,{IS_BETA:c,BETA_TAGLINE:y}=await import("./beta-E3MSUPWU.js");n.banner(c?`sootsim \u2014 ${y}`:"sootsim \u2014 starting up");let m=n.add("runtime"),d=n.add("server"),$=n.add("ready"),f=n.add("open");n.render();let g=null;try{m.start("checking\u2026");let a=x();if(a&&F(D(a))){g=a;let l=await q();m.done(l?`v${a} \u2014 v${l} available, run \`sootsim upgrade\``:`v${a}`)}else{m.start("downloading engine (~6 MB)\u2026");let{runRuntime:l}=await import("./runtime-YVV2FMMD.js");n.pause(),await l(["install"],{}),n.resume(),g=x(),m.done(g?`v${g}`:"installed")}}catch(a){m.fail(h(a)),n.finish(),process.exit(1)}let o=r,p="standalone";try{d.start("checking\u2026");let a=b();if(v(a)&&await P(a.bridgePort,800))o=a.bridgePort,p="daemon-existing",d.done(`already running (port ${o})`);else if(process.platform==="darwin"||process.platform==="linux"){d.start("registering background daemon\u2026");try{let{daemonInstall:l}=await import("./daemon-UXSN6QDY.js");n.pause(),await l({port:r,force:!0}),n.resume();let R=b();o=v(R)?R.bridgePort:r,p="daemon-installed",d.done(`daemon registered (port ${o})`)}catch(l){n.resume(),d.start("daemon unavailable, starting standalone server\u2026"),o=await C(r),p="standalone",d.done(`standalone (port ${o}) \u2014 ${h(l)}`)}}else d.start("starting standalone server\u2026"),o=await C(r),p="standalone",d.done(`standalone (port ${o})`)}catch(a){d.fail(h(a)),n.finish(),process.exit(1)}try{if($.start("waiting for bridge\u2026"),!await V(o,U))throw new Error(`bridge never came online on port ${o}`);$.done(`ws://localhost:${o}`)}catch(a){$.fail(h(a)),n.finish(),process.exit(1)}let w=`http://localhost:${o}/`;if(i){f.skip(w),n.finish();return}try{f.start("launching browser\u2026"),await _(w),f.done(w)}catch(a){f.skip(`${w} (open it manually \u2014 ${h(a)})`)}n.finish(),p==="standalone"?(console.log(`
|
|
22
22
|
running in standalone mode. sootsim will exit when this process does.
|
|
23
|
-
press ctrl-c to stop.`),await new Promise(()=>{})):p==="daemon-installed"&&console.log("\n installed as a background daemon \u2014 it'll restart on login.\n manage it with `sootsim daemon status / restart / uninstall`.")}function P(t,e){return new Promise(s=>{let r=new B(`ws://127.0.0.1:${t}`,{handshakeTimeout:e}),i=!1,n=c=>{if(!i){i=!0;try{r.close()}catch{}s(c)}};r.once("open",()=>n(!0)),r.once("error",()=>n(!1)),setTimeout(()=>n(!1),e)})}async function V(t,e){let s=Date.now()+e;for(;Date.now()<s;){if(await P(t,500))return!0;await new Promise(r=>setTimeout(r,200))}return!1}async function C(t){let e=W();N(e,["server","--quiet","--port",String(t)],{detached:!0,stdio:"ignore",env:process.env}).unref();let r=Date.now()+I;for(;Date.now()<r;){let i=b();if(v(i))return i.bridgePort;await new Promise(n=>setTimeout(n,150))}if(await P(t,800))return t;throw new Error(`standalone server didn't come online within ${Math.round(I/1e3)}s`)}function W(){let t=process.argv[1];return t&&F(t)?t:"sootsim"}function h(t){return t instanceof Error?t.message:String(t)}async function q(){try{let{checkRuntimeUpToDate:t}=await import("./runtime-delivery-
|
|
23
|
+
press ctrl-c to stop.`),await new Promise(()=>{})):p==="daemon-installed"&&console.log("\n installed as a background daemon \u2014 it'll restart on login.\n manage it with `sootsim daemon status / restart / uninstall`.")}function P(t,e){return new Promise(s=>{let r=new B(`ws://127.0.0.1:${t}`,{handshakeTimeout:e}),i=!1,n=c=>{if(!i){i=!0;try{r.close()}catch{}s(c)}};r.once("open",()=>n(!0)),r.once("error",()=>n(!1)),setTimeout(()=>n(!1),e)})}async function V(t,e){let s=Date.now()+e;for(;Date.now()<s;){if(await P(t,500))return!0;await new Promise(r=>setTimeout(r,200))}return!1}async function C(t){let e=W();N(e,["server","--quiet","--port",String(t)],{detached:!0,stdio:"ignore",env:process.env}).unref();let r=Date.now()+I;for(;Date.now()<r;){let i=b();if(v(i))return i.bridgePort;await new Promise(n=>setTimeout(n,150))}if(await P(t,800))return t;throw new Error(`standalone server didn't come online within ${Math.round(I/1e3)}s`)}function W(){let t=process.argv[1];return t&&F(t)?t:"sootsim"}function h(t){return t instanceof Error?t.message:String(t)}async function q(){try{let{checkRuntimeUpToDate:t}=await import("./runtime-delivery-DDUSKKTU.js"),e,s=await Promise.race([t(),new Promise(r=>{e=setTimeout(()=>r(null),2500)})]);return e&&clearTimeout(e),s&&s.outdated?s.latest:null}catch{return null}}export{ee as runStart};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.146 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-TLFNO2L4.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-QOL7PD62.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-EJXOH72E.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 k}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.146 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as k}from"./chunk-2FYSNCRJ.js";import{c as u,e as g,i as y}from"./chunk-BBIN2U26.js";import"./chunk-YBSNSFBX.js";import"./chunk-FK2YXBKR.js";import"./chunk-IADMCPLZ.js";import"./chunk-TLFNO2L4.js";var m=12e3;async function C(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.146 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{c as m,e as d,h as s}from"./chunk-BBIN2U26.js";import"./chunk-YBSNSFBX.js";import"./chunk-FK2YXBKR.js";import"./chunk-IADMCPLZ.js";import"./chunk-TLFNO2L4.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.146 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as s}from"./chunk-35QJJ4MM.js";import"./chunk-BBIN2U26.js";import"./chunk-YBSNSFBX.js";import"./chunk-FK2YXBKR.js";import{a as e}from"./chunk-4KNMAGC4.js";import"./chunk-GD473DHN.js";import{E as i}from"./chunk-IADMCPLZ.js";import"./chunk-TLFNO2L4.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.146 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a,b,c}from"./chunk-JZW2R5D7.js";import"./chunk-HZHZY7N5.js";import"./chunk-MIIAYBFL.js";import"./chunk-BBIN2U26.js";import"./chunk-DRCRPS2N.js";import"./chunk-A7JX3OQC.js";import"./chunk-YBSNSFBX.js";import"./chunk-Q6BHESL2.js";import"./chunk-R7CMXY5T.js";import"./chunk-FK2YXBKR.js";import"./chunk-IADMCPLZ.js";import"./chunk-TLFNO2L4.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as u}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.146 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as u}from"./chunk-4KNMAGC4.js";import{e as f,j as g,n as v}from"./chunk-GD473DHN.js";import{B as m}from"./chunk-IADMCPLZ.js";import"./chunk-TLFNO2L4.js";async function d(a){let{IS_BETA:e,BETA_LABEL:t}=await import("./beta-E3MSUPWU.js"),n=e?` \xB7 ${t}`:"";console.log(`sootsim v${u()}${n}`);let i=m(),l=f();console.log(i?`runtime v${i} \xB7 ${l}`:"runtime not installed \u2014 run `sootsim runtime install`");let o=await v({channel:l});o.outdated&&o.latest&&console.log(`
|
|
3
3
|
\u2191 runtime v${o.latest} available \u2014 run \`sootsim upgrade\``);let c=[];try{c=await g()}catch{return}let r=c.find(s=>s.version===(o.latest||i));if(r){let s=R(r);s&&console.log(`
|
|
4
4
|
what's new in v${r.version}: ${s} \u2014 \`sootsim runtime notes\``)}}function R(a){let e=[];for(let t of a.sections){let n=t.items.length;n>0&&e.push(`${n} ${t.title.toLowerCase()}`)}return e.join(", ")}export{d as runVersion};
|