sootsim 0.1.225 → 0.1.227
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 +4 -4
- package/dist-cli/chunks/{agent-2QJNGCGQ.js → agent-HBVXCRJT.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-JFTDMNBA.js → agent-wrapper-X376DPV2.js} +2 -2
- package/dist-cli/chunks/{app-fonts-ZF73VQCZ.js → app-fonts-LIQTD5RP.js} +2 -2
- package/dist-cli/chunks/{assert-VOWVK5UT.js → assert-X6PPLN72.js} +2 -2
- package/dist-cli/chunks/{auth-RAUKHPE3.js → auth-INRWIM2C.js} +2 -2
- package/dist-cli/chunks/beta-WLLSIVLW.js +2 -0
- package/dist-cli/chunks/{camera-ZMQZISLH.js → camera-LGFHYCJ5.js} +2 -2
- package/dist-cli/chunks/{chunk-D74MZDQ5.js → chunk-2BQOZATN.js} +2 -2
- package/dist-cli/chunks/chunk-2XXPF6LP.js +3 -0
- package/dist-cli/chunks/{chunk-AWY3D6YY.js → chunk-35EAEAN4.js} +2 -2
- package/dist-cli/chunks/{chunk-UQKFXZT7.js → chunk-3L5EXWCP.js} +1 -1
- package/dist-cli/chunks/{chunk-NCJ6UORF.js → chunk-44Z2X5R4.js} +2 -2
- package/dist-cli/chunks/{chunk-OHEMKK3X.js → chunk-4BLOZ3AF.js} +2 -2
- package/dist-cli/chunks/{chunk-3W4H7IIQ.js → chunk-4J7BIXEB.js} +2 -2
- package/dist-cli/chunks/{chunk-3LZ4N33H.js → chunk-7K5K5NKB.js} +1 -1
- package/dist-cli/chunks/{chunk-HS2NYELS.js → chunk-7L5IKIHC.js} +1 -1
- package/dist-cli/chunks/{chunk-W67AEQ3C.js → chunk-7LDHOQ7B.js} +3 -3
- package/dist-cli/chunks/chunk-7RWDQCIT.js +1 -0
- package/dist-cli/chunks/{chunk-IP4QVK56.js → chunk-A4BOYB55.js} +2 -2
- package/dist-cli/chunks/chunk-BVD2JFOX.js +1 -0
- package/dist-cli/chunks/{chunk-EH5ATUDN.js → chunk-D42IRY2Y.js} +2 -2
- package/dist-cli/chunks/{chunk-WDDOFF3W.js → chunk-DB3GMVOH.js} +2 -2
- package/dist-cli/chunks/{chunk-FCWI4FXZ.js → chunk-E3DLUOFK.js} +2 -2
- package/dist-cli/chunks/{chunk-P73P4LEJ.js → chunk-E75EBS77.js} +1 -1
- package/dist-cli/chunks/chunk-ESK7B2BQ.js +13 -0
- package/dist-cli/chunks/{chunk-DOGQUNTS.js → chunk-F53C5HAB.js} +1 -1
- package/dist-cli/chunks/{chunk-NT7DIPF6.js → chunk-F5HOYUD2.js} +1 -1
- package/dist-cli/chunks/{chunk-TFNMU5WV.js → chunk-GUCFICA4.js} +1 -1
- package/dist-cli/chunks/{chunk-V4M52O5I.js → chunk-HBEEYWK5.js} +2 -2
- package/dist-cli/chunks/{chunk-XXDT7Q4C.js → chunk-HRYKZ5YY.js} +2 -2
- package/dist-cli/chunks/{chunk-TGRJ7ZJD.js → chunk-HTVB3FW2.js} +2 -2
- package/dist-cli/chunks/chunk-HXHB5A6R.js +8 -0
- package/dist-cli/chunks/{chunk-FHHD7KFS.js → chunk-HXSV263V.js} +1 -1
- package/dist-cli/chunks/{chunk-JI2BFZCM.js → chunk-J2JAOIMN.js} +2 -2
- package/dist-cli/chunks/{chunk-347KANFK.js → chunk-J7IFVTWX.js} +1 -1
- package/dist-cli/chunks/chunk-JNUGPBWC.js +118 -0
- package/dist-cli/chunks/{chunk-YWDWZW74.js → chunk-KBSJA7HK.js} +1 -1
- package/dist-cli/chunks/{chunk-6P4XXLDV.js → chunk-LCJSTEIR.js} +2 -2
- package/dist-cli/chunks/{chunk-B7IV5YY2.js → chunk-LM544J6V.js} +1 -1
- package/dist-cli/chunks/{chunk-ZPXGQH3V.js → chunk-MG6JE3AM.js} +2 -2
- package/dist-cli/chunks/{chunk-CRSULHXN.js → chunk-NHE3YHDU.js} +2 -2
- package/dist-cli/chunks/chunk-NIN75M5H.js +2 -0
- package/dist-cli/chunks/{chunk-LHI6SSKZ.js → chunk-NU755HCE.js} +1 -1
- package/dist-cli/chunks/{chunk-UZM7EU4D.js → chunk-Q4FB222M.js} +3 -3
- package/dist-cli/chunks/{chunk-UZWRZ3ND.js → chunk-QWRYD2QV.js} +1 -1
- package/dist-cli/chunks/{chunk-EWQMANOX.js → chunk-RNWJQ4UR.js} +1 -1
- package/dist-cli/chunks/{chunk-PUXJ6MG3.js → chunk-SBIAPF6E.js} +1 -1
- package/dist-cli/chunks/{chunk-DVK6PIUQ.js → chunk-T6MEERRI.js} +2 -2
- package/dist-cli/chunks/{chunk-NCJQISNJ.js → chunk-UGWURWHN.js} +1 -1
- package/dist-cli/chunks/{chunk-VIHFW4WT.js → chunk-XESYTWFM.js} +3 -3
- package/dist-cli/chunks/{chunk-3QKH7HQL.js → chunk-YB2LM6VB.js} +3 -3
- package/dist-cli/chunks/{chunk-QH5AHGSL.js → chunk-Z2E2DDIQ.js} +2 -2
- package/dist-cli/chunks/cli-version-NNBCIQKL.js +2 -0
- package/dist-cli/chunks/{compat-WQGSKB6D.js → compat-MH673TEJ.js} +3 -3
- package/dist-cli/chunks/{config-24NABZH5.js → config-SSCDV5ZJ.js} +2 -2
- package/dist-cli/chunks/{control-QN3OMNZB.js → control-54R2XDLV.js} +2 -2
- package/dist-cli/chunks/daemon-GL5GQTWB.js +2 -0
- package/dist-cli/chunks/{debug-3AWVNHV2.js → debug-PFP646II.js} +3 -3
- package/dist-cli/chunks/{desktop-2Y7TM6YZ.js → desktop-BPYYJ3EM.js} +3 -3
- package/dist-cli/chunks/{detox-I5LLQ7PW.js → detox-BIUVHXYH.js} +2 -2
- package/dist-cli/chunks/{device-4OJVHSRG.js → device-BNSPNIP6.js} +2 -2
- package/dist-cli/chunks/{diagnose-HUXZBMVI.js → diagnose-BPTDSGOB.js} +2 -2
- package/dist-cli/chunks/drivers-KBKJVF2Y.js +2 -0
- package/dist-cli/chunks/{film-MXZ444WR.js → film-ILA6VSOG.js} +3 -3
- package/dist-cli/chunks/flow-L247VVBM.js +2 -0
- package/dist-cli/chunks/help-QIZEANNK.js +2 -0
- package/dist-cli/chunks/hidden-runtime-alias-TD7IVAPF.js +2 -0
- package/dist-cli/chunks/{home-paths-RTMWY5WD.js → home-paths-H36JDTNO.js} +2 -2
- package/dist-cli/chunks/inspect-6OAVS27G.js +2 -0
- package/dist-cli/chunks/install-desktop-LKYAUUQY.js +2 -0
- package/dist-cli/chunks/{login-YBPCBEPD.js → login-5WGZX2ZD.js} +4 -4
- package/dist-cli/chunks/{logout-JR5ZSYLS.js → logout-V53WTVIZ.js} +2 -2
- package/dist-cli/chunks/{maestro-HHF4ISZI.js → maestro-HGKYRD54.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-HFAYZHUF.js → maestro-generate-6DNZSKDP.js} +3 -3
- package/dist-cli/chunks/{mode-KI5E5FWJ.js → mode-YFMKORE5.js} +2 -2
- package/dist-cli/chunks/optional-demo-registry-YGNESGBH.js +2 -0
- package/dist-cli/chunks/{perf-XJXFKHQ3.js → perf-EOIGFDWM.js} +2 -2
- package/dist-cli/chunks/{record-T7IKWLEV.js → record-2F54QS6Y.js} +3 -3
- package/dist-cli/chunks/runtime-FYVV4DCQ.js +2 -0
- package/dist-cli/chunks/{screenshot-command-VN42XKYN.js → screenshot-command-R535TYXY.js} +3 -3
- package/dist-cli/chunks/{screenshots-capture-IJM5ZESL.js → screenshots-capture-DIICN24R.js} +2 -2
- package/dist-cli/chunks/{serve-C4QC2HID.js → serve-66NC6PPZ.js} +2 -2
- package/dist-cli/chunks/{setup-7GKAB4SB.js → setup-ZYN4BTBR.js} +3 -3
- package/dist-cli/chunks/{skills-FHH2POMV.js → skills-MDBIER7U.js} +2 -2
- package/dist-cli/chunks/{storage-ZJMSMGT4.js → storage-AQ3SEO4Y.js} +2 -2
- package/dist-cli/chunks/store-6ZGLOTZI.js +2 -0
- package/dist-cli/chunks/telemetry-V76UPVDV.js +2 -0
- package/dist-cli/chunks/{timeline-NAMSRGWR.js → timeline-VEGHQZ36.js} +2 -2
- package/dist-cli/chunks/{upgrade-E7WMFJYM.js → upgrade-RNDCRPLJ.js} +2 -2
- package/dist-cli/chunks/upload-KRBS3Y7Q.js +2 -0
- package/dist-cli/chunks/{version-H54YADEJ.js → version-XUMPKQUM.js} +2 -2
- package/dist-cli/chunks/{web-U5F5O7TY.js → web-ESQGHVPD.js} +2 -2
- package/dist-cli/chunks/{what-happened-A42ORDPY.js → what-happened-6NJENKUF.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.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/dist-cli/chunks/beta-7TBS7VDG.js +0 -2
- package/dist-cli/chunks/chunk-AHQQF4W6.js +0 -8
- package/dist-cli/chunks/chunk-BI4VCL6Q.js +0 -13
- package/dist-cli/chunks/chunk-JHAL2K27.js +0 -1
- package/dist-cli/chunks/chunk-KW72IOGD.js +0 -2
- package/dist-cli/chunks/chunk-MOFL2C72.js +0 -119
- package/dist-cli/chunks/chunk-Q6HBPMI4.js +0 -1
- package/dist-cli/chunks/cli-version-I6MGYDFK.js +0 -2
- package/dist-cli/chunks/daemon-SCUUHMKS.js +0 -2
- package/dist-cli/chunks/drivers-SQFPFW7V.js +0 -2
- package/dist-cli/chunks/flow-P3IJ4VHB.js +0 -2
- package/dist-cli/chunks/help-GQY5VDRA.js +0 -2
- package/dist-cli/chunks/inspect-DETXTJUP.js +0 -2
- package/dist-cli/chunks/install-desktop-CHYTPRFO.js +0 -2
- package/dist-cli/chunks/optional-demo-registry-6VYITRX4.js +0 -2
- package/dist-cli/chunks/runtime-LXVX24LC.js +0 -2
- package/dist-cli/chunks/store-DU76KFTF.js +0 -2
- package/dist-cli/chunks/telemetry-PZGM7U27.js +0 -2
- package/dist-cli/chunks/upload-L2ZKQQMJ.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as se}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as se}from"./chunk-KBSJA7HK.js";import{a as oe,b as re,f as ne}from"./chunk-7LDHOQ7B.js";import"./chunk-J2JAOIMN.js";import{b as Z}from"./chunk-XESYTWFM.js";import{a as Q}from"./chunk-D42IRY2Y.js";import"./chunk-E3DLUOFK.js";import{a as ee,b as te}from"./chunk-4BLOZ3AF.js";import"./chunk-ESK7B2BQ.js";import"./chunk-4J7BIXEB.js";import"./chunk-BVD2JFOX.js";import"./chunk-HRYKZ5YY.js";import"./chunk-HXSV263V.js";import"./chunk-UGWURWHN.js";import"./chunk-7K5K5NKB.js";import"./chunk-3L5EXWCP.js";import"./chunk-LM544J6V.js";import"./chunk-DB3GMVOH.js";import{r as V}from"./chunk-QWRYD2QV.js";import{g as E,h as K,i as A,j as X,k as J,l as C,m as $}from"./chunk-35EAEAN4.js";import"./chunk-F53C5HAB.js";import"./chunk-44Z2X5R4.js";import"./chunk-2BQOZATN.js";import"./chunk-2XXPF6LP.js";import"./chunk-MG6JE3AM.js";import"./chunk-J7IFVTWX.js";import"./chunk-E75EBS77.js";import"./chunk-JNUGPBWC.js";import"./chunk-NU755HCE.js";import"./chunk-HTVB3FW2.js";import{a as x,b as _,c as j,d as I,e as L,f as N,g as F}from"./chunk-NIN75M5H.js";import"./chunk-F5HOYUD2.js";import{mkdirSync as ce,writeFileSync as ie}from"fs";import{dirname as le,resolve as ue}from"path";async function de(e,t){let o=Le(e);(o.includes("--help")||o.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim screenshot \u2014 capture the canvas as a PNG
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -148,4 +148,4 @@ examples:
|
|
|
148
148
|
await new Promise((r) => setTimeout(r, 40))
|
|
149
149
|
}
|
|
150
150
|
return false
|
|
151
|
-
})()`,{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 yt(e){console.log(` ${e.projectName} \u2014 canvas ${e.canvas} (${e.exportSize.width}\xD7${e.exportSize.height}), device ${e.deviceModel}`);for(let t of e.slides){let o=[t.focused?"focused":t.active?"active":null,t.captured?`captured${t.captureMode==="3d"?" 3d":""}`:"no capture"].filter(Boolean).join(", "),i=t.title?`"${t.title}"`:"(no title)",r=[`bg ${t.bgTop}\u2192${t.bgBottom}`,t.titleColor?`color ${t.titleColor}`:null,t.titleSize?`size ${t.titleSize}`:null,t.titleUnderlay?`underlay ${t.titleUnderlay}`:null,t.titleShadow?`shadow ${t.titleShadow}`:null].filter(Boolean).join(", ");console.log(` ${t.index}. ${i} \u2014 ${r} [${o}]`),t.subtitle&&console.log(` ${t.subtitle}`)}}function bt(e){let t=e.match(/^data:[^;]+;base64,(.+)$/);if(!t)throw new Error("export returned an unexpected payload");return Buffer.from(t[1],"base64")}async function Fe(e,t){if(e.includes("--help")||e.includes("-h")){console.log(mt);return}let{rest:o,values:i,json:r}=ft(e),s=E(o,{port:t.port,commandTimeoutMs:45e3}),n=s.positional[0]??"list",a=gt(s.positional[1]),c=A(s),l=u=>{r?console.log(JSON.stringify(u,null,2)):yt(u)};try{switch(await wt(c),n){case"list":{l(await C(c,"SootSim.bridges.screenshotControl.getState"));break}case"set":{if(a==null)throw new Error("usage: sootsim screenshot slides set <n> --title \u2026 (see --help)");let u={};for(let d of["title","subtitle","bgTop","bgBottom","titleColor","titleSize","titleUnderlay","titleShadow"])i[d]!=null&&(u[d]=i[d]);if(Object.keys(u).length===0)throw new Error("nothing to set \u2014 pass at least one field (see --help)");l(await $(c,"SootSim.bridges.screenshotControl.setSlide",a,u));break}case"add":{l(await $(c,"SootSim.bridges.screenshotControl.addSlide"));break}case"remove":{if(a==null)throw new Error("usage: sootsim screenshot slides remove <n>");l(await $(c,"SootSim.bridges.screenshotControl.removeSlide",a));break}case"focus":{if(a==null)throw new Error("usage: sootsim screenshot slides focus <n>");l(await $(c,"SootSim.bridges.screenshotControl.focusSlide",a));break}case"overview":{l(await $(c,"SootSim.bridges.screenshotControl.overview"));break}case"capture":{let u=await $(c,"SootSim.bridges.screenshotControl.capture",...a!=null?[a]:[]);l(u);break}case"export":{let u=i.out?dt(i.out)?i.out:pt(process.cwd(),i.out):Ne(process.cwd(),"screenshots"),d=await C(c,"SootSim.bridges.screenshotControl.getState"),p=a!=null?d.slides.filter(f=>f.index===a||f.id===a):d.slides.filter(f=>f.captured);if(p.length===0)throw new Error(a!=null?`no slide ${a}`:"no captured slides to export \u2014 capture first");let g=[];for(let f of p){let m=await C(c,"SootSim.bridges.screenshotControl.exportSlide",f.index),w=Ne(u,m.name);ct(ut(w),{recursive:!0}),lt(w,bt(m.dataUrl)),g.push(w),console.log(` saved: ${w} (${m.width}\xD7${m.height})`)}r&&console.log(JSON.stringify({written:g},null,2));break}default:throw new Error(`unknown subcommand "${n}" \u2014 see sootsim screenshot slides --help`)}}finally{c.close()}}var St=new Set(["--sim","--port","-p","--output","-o","--out","--plan","--app","--device","--org","--repo","--api-origin","--branch","--platform","--slides","--shell-origin","--timeout"]),xt=new Set(["capture","slides","appstore"]);function Ee(e){for(let t=0;t<e.length;t++){let o=e[t];if(o.startsWith("-")){St.has(o)&&t++;continue}return xt.has(o)?{name:o,index:t}:null}return null}function z(e,t){return[...e.slice(0,t),...e.slice(t+1)]}function Pt(e){let t=[];for(let o=0;o<e.length;o++){if(e[o]==="--sim"){o++;continue}t.push(e[o])}return t}async function So(e,t){let o=Ee(e);if(!o||o.name==="capture"){await de(o?z(e,o.index):e,t);return}if(o.name==="slides"){await Fe(z(e,o.index),t);return}let i=z(e,o.index),r=Ee(i);if(r?.name==="capture")try{let{runScreenshotsCapture:s}=await import("./screenshots-capture-
|
|
151
|
+
})()`,{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 yt(e){console.log(` ${e.projectName} \u2014 canvas ${e.canvas} (${e.exportSize.width}\xD7${e.exportSize.height}), device ${e.deviceModel}`);for(let t of e.slides){let o=[t.focused?"focused":t.active?"active":null,t.captured?`captured${t.captureMode==="3d"?" 3d":""}`:"no capture"].filter(Boolean).join(", "),i=t.title?`"${t.title}"`:"(no title)",r=[`bg ${t.bgTop}\u2192${t.bgBottom}`,t.titleColor?`color ${t.titleColor}`:null,t.titleSize?`size ${t.titleSize}`:null,t.titleUnderlay?`underlay ${t.titleUnderlay}`:null,t.titleShadow?`shadow ${t.titleShadow}`:null].filter(Boolean).join(", ");console.log(` ${t.index}. ${i} \u2014 ${r} [${o}]`),t.subtitle&&console.log(` ${t.subtitle}`)}}function bt(e){let t=e.match(/^data:[^;]+;base64,(.+)$/);if(!t)throw new Error("export returned an unexpected payload");return Buffer.from(t[1],"base64")}async function Fe(e,t){if(e.includes("--help")||e.includes("-h")){console.log(mt);return}let{rest:o,values:i,json:r}=ft(e),s=E(o,{port:t.port,commandTimeoutMs:45e3}),n=s.positional[0]??"list",a=gt(s.positional[1]),c=A(s),l=u=>{r?console.log(JSON.stringify(u,null,2)):yt(u)};try{switch(await wt(c),n){case"list":{l(await C(c,"SootSim.bridges.screenshotControl.getState"));break}case"set":{if(a==null)throw new Error("usage: sootsim screenshot slides set <n> --title \u2026 (see --help)");let u={};for(let d of["title","subtitle","bgTop","bgBottom","titleColor","titleSize","titleUnderlay","titleShadow"])i[d]!=null&&(u[d]=i[d]);if(Object.keys(u).length===0)throw new Error("nothing to set \u2014 pass at least one field (see --help)");l(await $(c,"SootSim.bridges.screenshotControl.setSlide",a,u));break}case"add":{l(await $(c,"SootSim.bridges.screenshotControl.addSlide"));break}case"remove":{if(a==null)throw new Error("usage: sootsim screenshot slides remove <n>");l(await $(c,"SootSim.bridges.screenshotControl.removeSlide",a));break}case"focus":{if(a==null)throw new Error("usage: sootsim screenshot slides focus <n>");l(await $(c,"SootSim.bridges.screenshotControl.focusSlide",a));break}case"overview":{l(await $(c,"SootSim.bridges.screenshotControl.overview"));break}case"capture":{let u=await $(c,"SootSim.bridges.screenshotControl.capture",...a!=null?[a]:[]);l(u);break}case"export":{let u=i.out?dt(i.out)?i.out:pt(process.cwd(),i.out):Ne(process.cwd(),"screenshots"),d=await C(c,"SootSim.bridges.screenshotControl.getState"),p=a!=null?d.slides.filter(f=>f.index===a||f.id===a):d.slides.filter(f=>f.captured);if(p.length===0)throw new Error(a!=null?`no slide ${a}`:"no captured slides to export \u2014 capture first");let g=[];for(let f of p){let m=await C(c,"SootSim.bridges.screenshotControl.exportSlide",f.index),w=Ne(u,m.name);ct(ut(w),{recursive:!0}),lt(w,bt(m.dataUrl)),g.push(w),console.log(` saved: ${w} (${m.width}\xD7${m.height})`)}r&&console.log(JSON.stringify({written:g},null,2));break}default:throw new Error(`unknown subcommand "${n}" \u2014 see sootsim screenshot slides --help`)}}finally{c.close()}}var St=new Set(["--sim","--port","-p","--output","-o","--out","--plan","--app","--device","--org","--repo","--api-origin","--branch","--platform","--slides","--shell-origin","--timeout"]),xt=new Set(["capture","slides","appstore"]);function Ee(e){for(let t=0;t<e.length;t++){let o=e[t];if(o.startsWith("-")){St.has(o)&&t++;continue}return xt.has(o)?{name:o,index:t}:null}return null}function z(e,t){return[...e.slice(0,t),...e.slice(t+1)]}function Pt(e){let t=[];for(let o=0;o<e.length;o++){if(e[o]==="--sim"){o++;continue}t.push(e[o])}return t}async function So(e,t){let o=Ee(e);if(!o||o.name==="capture"){await de(o?z(e,o.index):e,t);return}if(o.name==="slides"){await Fe(z(e,o.index),t);return}let i=z(e,o.index),r=Ee(i);if(r?.name==="capture")try{let{runScreenshotsCapture:s}=await import("./screenshots-capture-DIICN24R.js");return await s(Pt(z(i,r.index)))}catch(s){if(s instanceof Error&&"code"in s&&s.code==="ERR_MODULE_NOT_FOUND")return console.error("screenshot appstore capture is repo-only tooling \u2014 it needs the sootsim workspace (playwright is not shipped with the published CLI)."),1;throw s}return De(i,t)}export{So as runScreenshotCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as M}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as M}from"./chunk-KBSJA7HK.js";import{a as x}from"./chunk-4BLOZ3AF.js";import"./chunk-2BQOZATN.js";import"./chunk-NU755HCE.js";import"./chunk-F5HOYUD2.js";import{execSync as T}from"node:child_process";import{mkdirSync as D,mkdtempSync as O,rmSync as E,writeFileSync as j}from"node:fs";import{tmpdir as G}from"node:os";import{dirname as q,isAbsolute as B,join as U,resolve as L}from"node:path";import{chromium as W}from"playwright-core";var z=`
|
|
3
3
|
sootsim screenshot appstore capture \u2014 headlessly capture + upload App Store slides
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as le,c as H,d as de,e as F,f as ue,h as pe,i as C,j as me,k as he,l as fe,p as ge,s as v,t as Se,u as ye,v as ve,w as be}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as le,c as H,d as de,e as F,f as ue,h as pe,i as C,j as me,k as he,l as fe,p as ge,s as v,t as Se,u as ye,v as ve,w as be}from"./chunk-A4BOYB55.js";import"./chunk-RNWJQ4UR.js";import{a as ce}from"./chunk-E3DLUOFK.js";import"./chunk-4BLOZ3AF.js";import{h as ae}from"./chunk-Z2E2DDIQ.js";import{f as P,g as se}from"./chunk-4J7BIXEB.js";import"./chunk-UGWURWHN.js";import"./chunk-7K5K5NKB.js";import{d as oe}from"./chunk-3L5EXWCP.js";import"./chunk-LM544J6V.js";import"./chunk-35EAEAN4.js";import{a as ee,b as te}from"./chunk-44Z2X5R4.js";import"./chunk-2BQOZATN.js";import{a as re,b as ne}from"./chunk-J7IFVTWX.js";import"./chunk-E75EBS77.js";import{E as J,G as E,H as K,I as V,J as D,L as G,M as q,O as z,Q as X,R as Y,S as Z,T as U,U as Q,y as M,z as j}from"./chunk-NU755HCE.js";import{a as ie}from"./chunk-7L5IKIHC.js";import"./chunk-F5HOYUD2.js";import{spawn as ut}from"child_process";import I from"fs";import{createServer as pt}from"http";import S from"path";import{WebSocket as h,WebSocketServer as mt}from"ws";import Ie from"node:fs";import R from"node:path";import{spawn as Me}from"node:child_process";import De from"node:fs";import Ue from"node:os";import He from"node:path";var we=/^[A-Za-z0-9._:-]{1,160}$/;function W(o){if(!o?.startsWith("AGENTBUS_SESSION:"))return null;let e=o.slice(17).trim();return we.test(e)?e:null}function Ae(o){return we.test(o)}function Fe(o){return typeof o.text=="string"?o.text.trim():""}function We(o){let e=o?.trim();if(e)return e;let t=process.env.AGENTBUS_COMMAND?.trim();if(t)return t;let i=He.join(Ue.homedir(),".local","bin","agentbus");return De.existsSync(i)?i:"agentbus"}async function ke(o){let e=o.sessionId.trim();if(!Ae(e))throw new Error(`invalid agentbus session id: ${e||"<empty>"}`);let t=Fe(o.prompt);if(!t)throw new Error("prompt text is empty");let i=We(o.command),s=o.timeoutMs??15e3;await new Promise((n,a)=>{let r=Me(i,["send",e,t],{stdio:["ignore","ignore","pipe"],env:process.env}),c="",d=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",l=>{c.length<4e3&&(c+=String(l))}),r.on("error",l=>{clearTimeout(d),a(l)}),r.on("exit",(l,u)=>{if(clearTimeout(d),l===0){n();return}let p=c.trim();a(new Error(p||`agentbus send exited with ${u?`signal ${u}`:`code ${l??"unknown"}`}`))})})}var _=1;function $e(){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 x=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 fe()}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 pe(String(i.projectId)),{ok:!0};case"agent:auto-attach-for-url":return this.autoAttachForUrl(i.input??{});case"agent:list-sessions":return me(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 ye(n,r),this.notePromptAccepted(n,r,a.status==="working")}case"agent:end-session":this.dropSessionFanout(String(i.sessionId)),await ve(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 ke({sessionId:s,prompt:this.normalizePromptEnvelope(e)}),{ok:!0,routed:"agentbus",sessionId:s}}async doStartSession(e){if(!de(e.projectId))throw new v("NO_PROJECT",`no project: ${e.projectId}`);let i=await Se(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?.()??$e(),a=(await P({excludePorts:s})).find(l=>String(l.port)===i);if(!a||!a.cwd)return{project:null};let r=F().find(l=>l.cwd===a.cwd)??null,c=Array.from(new Set([...r?.knownBundleUrls??[],a.bundleUrl,t]));return{project:H({cwd:a.cwd,name:a.projectName??R.basename(a.cwd),preferredProvider:e.provider??r?.preferredProvider,sourceRoots:r?.sourceRoots??[a.cwd],knownBundleUrls:c,framework:r?.framework??je(a.framework),bundleId:a.bundleId??r?.bundleId})}}getTranscript(e){let t=ge(e);return Ie.existsSync(t)?Ie.readFileSync(t,"utf8"):{error:"transcript not found",code:"NO_TRANSCRIPT"}}getPaths(){let e=le();return{userDataDir:e,storeFile:R.join(e,"attached-projects.json"),sessionsDir:R.join(e,"sessions"),transcriptsDir:R.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=be(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{ue(c.projectId,{usd:a.costUsd,ts:a.ts})}catch(d){process.stderr.write(`[sootsim-agent] recordTurnTelemetry failed: ${d instanceof Error?d.message:String(d)}
|
|
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){he(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===_)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===_)try{i.send(t)}catch{}}respond(e,t,i){if(e.readyState===_)try{e.send(JSON.stringify({id:t,result:i}))}catch{}}respondError(e,t,i,s){if(e.readyState===_)try{e.send(JSON.stringify({id:t,error:i,...s?{code:s}:{}}))}catch{}}};function je(o){return o==="expo"?"expo":o==="one"||o==="vxrn"?"one":"unknown"}import Ve from"http";import Ge 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",Je=[{hostSuffix:"uniswap.org",headers:{origin:"https://app.uniswap.org",referer:"https://app.uniswap.org/"},suppressBrowserUserAgent:!0}];function Ke(o){let e=o.toLowerCase();for(let t of Je)if(e===t.hostSuffix||e.endsWith(`.${t.hostSuffix}`))return t}function Ce(o){let e=Ke(o.hostname);return{"accept-encoding":"identity",...e?.suppressBrowserUserAgent?{}:{"user-agent":$},...e?.headers}}var qe=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"]),ze={"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"},Xe=new Set(["host","origin","referer","sec-fetch-site","sec-fetch-mode","sec-fetch-dest"]);function T(o){for(let[e,t]of Object.entries(ze))o.setHeader(e,t)}function Ye(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 Ze(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 Qe(o,e){let t={};for(let[i,s]of Object.entries(o))s&&(qe.has(i.toLowerCase())||(t[i]=Array.isArray(s)?s.join(", "):s));return Object.assign(t,e?Ce(e):{"user-agent":$}),t}function et(o,e){let t={};for(let[i,s]of Object.entries(o))s&&(Xe.has(i.toLowerCase())||(t[i]=s));return t.host=e.host,t.origin=e.origin,t.referer=`${e.origin}/`,t}function Te(o){return o?.startsWith("/__fetch-proxy?")||o?.startsWith("/__proxy?")||!1}function Ee(o){return o?!!(o.startsWith("/__app-api?")||o.startsWith("/__app-api/")):!1}async function Pe(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=Qe(o.headers,s),a;if(o.method!=="GET"&&o.method!=="HEAD"){let l=[];for await(let u of o)l.push(Buffer.isBuffer(u)?u:Buffer.from(u));if(l.length>0){let u=Buffer.concat(l);a=Ze(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(l){T(e),e.writeHead(502,{"Content-Type":"text/plain"}),e.end(`fetch proxy error: ${Ye(s.href,l)}`);return}r.headers.forEach((l,u)=>{let p=u.toLowerCase();p==="content-encoding"||p==="transfer-encoding"||p==="content-length"||p==="set-cookie"||p.startsWith("access-control-")||e.setHeader(u,l)}),T(e);let c=r.headers.getSetCookie?.()??[];c.length>0&&e.setHeader("x-sootsim-set-cookie",c.join(", ")),e.statusCode=r.status;let d=Buffer.from(await r.arrayBuffer());e.end(d)}function Re(o,e){let t=o.url||"",i="",s="";if(t.startsWith("/__app-api?")){let d=new URL(t,"http://sootsim.local");i=d.searchParams.get("path")||"",s=d.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:"?Ge:Ve,r=et(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},d=>{let l=Object.keys(d.headers).filter(u=>{let p=u.toLowerCase();return!p.startsWith("access-control-")&&p!=="set-cookie"}).join(", ");e.writeHead(d.statusCode??502,{...d.headers,"access-control-allow-origin":o.headers.origin||"*","access-control-allow-credentials":"true","access-control-expose-headers":l}),d.pipe(e)});return c.on("error",d=>{e.statusCode=502,e.end(`app proxy error: ${d.message}`)}),o.pipe(c),!0}import{WebSocket as k,WebSocketServer as tt}from"ws";var it="/__websocket-proxy",rt=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{a as g,b as k}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as g,b as k}from"./chunk-GUCFICA4.js";import{b as S,c as x}from"./chunk-T6MEERRI.js";import{a as w}from"./chunk-44Z2X5R4.js";import"./chunk-2BQOZATN.js";import"./chunk-HXHB5A6R.js";import"./chunk-LCJSTEIR.js";import"./chunk-2XXPF6LP.js";import"./chunk-MG6JE3AM.js";import"./chunk-J7IFVTWX.js";import"./chunk-E75EBS77.js";import"./chunk-JNUGPBWC.js";import{H as v,M as f,O as m,l as b}from"./chunk-NU755HCE.js";import"./chunk-7L5IKIHC.js";import"./chunk-SBIAPF6E.js";import"./chunk-NIN75M5H.js";import"./chunk-F5HOYUD2.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
3
|
sootsim setup \u2014 set up this machine for SootSim
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -94,4 +94,4 @@ module.exports = {
|
|
|
94
94
|
4. inspect and drive it:
|
|
95
95
|
sootsim describe
|
|
96
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-
|
|
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-54R2XDLV.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.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-F5HOYUD2.js";import*as i from"fs";import*as I from"os";import*as a from"path";import{fileURLToPath as h}from"url";function $(){try{let t=h(import.meta.resolve("sootsim/package.json"));return a.join(a.dirname(t),"skills")}catch{let t=a.dirname(h(import.meta.url));return a.resolve(t,"../../skills")}}var d=$(),w=new Set(["all","codex","claude"]);function S(){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{k as f}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{k as f}from"./chunk-XESYTWFM.js";import"./chunk-D42IRY2Y.js";import"./chunk-ESK7B2BQ.js";import"./chunk-4J7BIXEB.js";import"./chunk-BVD2JFOX.js";import{a as t,b as n,c as l,d as c,e as a}from"./chunk-HRYKZ5YY.js";import"./chunk-HXSV263V.js";import"./chunk-UGWURWHN.js";import"./chunk-7K5K5NKB.js";import"./chunk-3L5EXWCP.js";import"./chunk-LM544J6V.js";import"./chunk-DB3GMVOH.js";import"./chunk-QWRYD2QV.js";import"./chunk-35EAEAN4.js";import"./chunk-F53C5HAB.js";import"./chunk-2XXPF6LP.js";import"./chunk-MG6JE3AM.js";import"./chunk-J7IFVTWX.js";import"./chunk-E75EBS77.js";import"./chunk-JNUGPBWC.js";import"./chunk-NU755HCE.js";import"./chunk-HTVB3FW2.js";import"./chunk-NIN75M5H.js";import"./chunk-F5HOYUD2.js";function p(){console.log(`
|
|
3
3
|
sootsim storage profile \u2014 manage isolated storage profiles
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{g as m,i as d,l as s}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{g as m,i as d,l as s}from"./chunk-35EAEAN4.js";import"./chunk-J7IFVTWX.js";import"./chunk-E75EBS77.js";import"./chunk-NU755HCE.js";import"./chunk-F5HOYUD2.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 d}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as d}from"./chunk-Q4FB222M.js";import{e as m}from"./chunk-Z2E2DDIQ.js";import"./chunk-35EAEAN4.js";import"./chunk-J7IFVTWX.js";import"./chunk-E75EBS77.js";import{K as a,g as r,h as l}from"./chunk-NU755HCE.js";import{a as c}from"./chunk-7L5IKIHC.js";import"./chunk-F5HOYUD2.js";import{spawn as g}from"node:child_process";import u from"node:fs";import p from"node:os";import e from"node:path";var f="https://registry.npmjs.org/sootsim/latest";async function j(o){let n=o.indexOf("--channel"),t=n>=0&&o[n+1]?o[n+1]:void 0;console.log(`sootsim upgrade
|
|
3
3
|
`),console.log("runtime:");let i=m();i&&(console.log(` pinned to ${i} \u2014 installing the pin, not channel latest`),console.log(" (run `sootsim runtime unpin` to follow latest again)")),await d(["install",...t?["--channel",t]:[]],{}),console.log(`
|
|
4
4
|
cli:`),await $()}function h(){if(l())return{kind:"dev"};let o=process.argv[1]??"";try{o=u.realpathSync(o)}catch{}let n=e.sep;if(o.includes(`${n}_npx${n}`)||o.includes(`${n}.bunx${n}`))return{kind:"npx"};if(o.includes(`${n}.bun${n}`))return{kind:"global",command:"bun",args:["add","-g","sootsim@latest"]};if(o.includes(`${n}pnpm${n}`))return{kind:"global",command:"pnpm",args:["add","-g","sootsim@latest"]};let t=e.join(r(),"cli");if(o.startsWith(`${t}${n}`))return{kind:"global",command:"npm",args:["i","-g","--prefix",t,"sootsim@latest"]};let i=e.resolve(process.env.SOOTSIM_CLI_PREFIX||e.join(p.homedir(),".local"));return o.startsWith(`${i}${n}`)?{kind:"global",command:"npm",args:["i","-g","--prefix",i,"sootsim@latest"]}:{kind:"global",command:"npm",args:["i","-g","sootsim@latest"]}}async function $(){let o=c(),n=await k();if(!n){console.log(` v${o} \u2014 couldn't reach the npm registry, skipped`);return}if(a(n,o)<=0){console.log(` v${o} (latest)`);return}let t=h();if(console.log(` v${o} \u2192 v${n}`),t.kind==="dev"){console.log(" running from the soot dev checkout \u2014 pull instead of upgrading");return}if(t.kind==="npx"){console.log(" running from the npx cache \u2014 get the latest with:"),console.log(" npx sootsim@latest");return}let i=`${t.command} ${t.args.join(" ")}`;console.log(` updating global install (${i})\u2026`),await v(t.command,t.args)?console.log(` updated to v${n}`):(console.log(" update failed \u2014 run it yourself:"),console.log(` ${i}`))}function v(o,n){return new Promise(t=>{let i=g(o,n,{stdio:"inherit"});i.on("error",()=>t(!1)),i.on("exit",s=>t(s===0))})}async function k(){try{let o=await fetch(f,{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}}export{j as runUpgrade};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a,b,c}from"./chunk-E3DLUOFK.js";import"./chunk-4BLOZ3AF.js";import"./chunk-UGWURWHN.js";import"./chunk-7K5K5NKB.js";import"./chunk-3L5EXWCP.js";import"./chunk-35EAEAN4.js";import"./chunk-44Z2X5R4.js";import"./chunk-2BQOZATN.js";import"./chunk-J7IFVTWX.js";import"./chunk-E75EBS77.js";import"./chunk-NU755HCE.js";import"./chunk-F5HOYUD2.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,i as r}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.227 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as s,d as l,i as r}from"./chunk-Z2E2DDIQ.js";import{a as i}from"./chunk-LCJSTEIR.js";import"./chunk-NU755HCE.js";import{a as t}from"./chunk-7L5IKIHC.js";import"./chunk-F5HOYUD2.js";async function f(c){let{IS_BETA:m,BETA_LABEL:a}=await import("./beta-WLLSIVLW.js"),u=m?` \xB7 ${a}`:"";console.log(`sootsim v${t()}${u}`);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.pinned&&console.log(` runtime pinned to v${n.pinned} (\`sootsim runtime unpin\` to follow latest)`),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{f as runVersion};
|