sootsim 0.1.120 → 0.1.121
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-JAQ76LFW.js → agent-NZ4A6JKO.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-UFBNAQR3.js → agent-wrapper-CYQ5L2YH.js} +2 -2
- package/dist-cli/chunks/{app-fonts-66WNE562.js → app-fonts-2DF4NW5D.js} +2 -2
- package/dist-cli/chunks/{assert-RXN5UUG3.js → assert-PASM5PLL.js} +2 -2
- package/dist-cli/chunks/auto-bootstrap-IPNK6GF7.js +2 -0
- package/dist-cli/chunks/beta-RG7JT6HD.js +2 -0
- package/dist-cli/chunks/chunk-2FTVPI7F.js +2 -0
- package/dist-cli/chunks/{chunk-E6MZZ2JK.js → chunk-2U4CGOD6.js} +1 -1
- package/dist-cli/chunks/{chunk-JHOXMDAW.js → chunk-3A7SRWSQ.js} +2 -2
- package/dist-cli/chunks/{chunk-KPNFYPCM.js → chunk-3DDNLPIH.js} +2 -2
- package/dist-cli/chunks/{chunk-SPNQRDT7.js → chunk-3WDN2S2A.js} +1 -1
- package/dist-cli/chunks/{chunk-3OXUZ4YW.js → chunk-4BXESMZ7.js} +1 -1
- package/dist-cli/chunks/{chunk-IGRECENR.js → chunk-4UQMPWDA.js} +1 -1
- package/dist-cli/chunks/{chunk-PISK5DP6.js → chunk-5OA35LZX.js} +2 -2
- package/dist-cli/chunks/{chunk-P3YMHC64.js → chunk-7CA63OS4.js} +1 -1
- package/dist-cli/chunks/{chunk-OJQCMP4V.js → chunk-7RXO4KKF.js} +1 -1
- package/dist-cli/chunks/{chunk-O2ZEDQRY.js → chunk-B77PWTHR.js} +2 -2
- package/dist-cli/chunks/chunk-BTWXWUDB.js +1 -0
- package/dist-cli/chunks/{chunk-527SSINQ.js → chunk-CGB6KRKN.js} +2 -2
- package/dist-cli/chunks/{chunk-QL5FA4KK.js → chunk-DORQQNP4.js} +2 -2
- package/dist-cli/chunks/{chunk-D4S3A7VQ.js → chunk-GU3MWKJY.js} +1 -1
- package/dist-cli/chunks/{chunk-6ECCKNU4.js → chunk-I26R4PE2.js} +1 -1
- package/dist-cli/chunks/{chunk-7IJSQITG.js → chunk-IQNZPHGD.js} +2 -2
- package/dist-cli/chunks/{chunk-LRAMRKPE.js → chunk-KTE2VIXH.js} +3 -3
- package/dist-cli/chunks/chunk-KXLYXKMA.js +1 -0
- package/dist-cli/chunks/{chunk-SLLX3SWM.js → chunk-KY6NY6WN.js} +1 -1
- package/dist-cli/chunks/{chunk-3RTBGCJF.js → chunk-LT2X5ISU.js} +2 -2
- package/dist-cli/chunks/{chunk-DLVWPEI4.js → chunk-MSU27JEW.js} +2 -2
- package/dist-cli/chunks/{chunk-O2M2AP7H.js → chunk-MUTDER75.js} +2 -2
- package/dist-cli/chunks/{chunk-WWFXKF3K.js → chunk-NQ4EDJV4.js} +2 -2
- package/dist-cli/chunks/{chunk-RKJS56NM.js → chunk-OBYYAT4F.js} +2 -2
- package/dist-cli/chunks/{chunk-S5UDIVJX.js → chunk-OEV7EOMC.js} +2 -2
- package/dist-cli/chunks/{chunk-FPRRNX2V.js → chunk-PMAKUYYK.js} +2 -2
- package/dist-cli/chunks/{chunk-4XZ4WY4A.js → chunk-QNQO5VHO.js} +9 -9
- package/dist-cli/chunks/chunk-QUEATUWT.js +1 -0
- package/dist-cli/chunks/{chunk-BPSFMOFQ.js → chunk-RVWJ3TAE.js} +2 -2
- package/dist-cli/chunks/{chunk-LK74SKOV.js → chunk-SA5RP334.js} +2 -2
- package/dist-cli/chunks/{chunk-V2UHENRM.js → chunk-SF6W3FRS.js} +1 -1
- package/dist-cli/chunks/{chunk-IGCYRC3B.js → chunk-SRA2TVCG.js} +1 -1
- package/dist-cli/chunks/{chunk-663EI6DT.js → chunk-VALW4SKE.js} +1 -1
- package/dist-cli/chunks/{chunk-52IG45RY.js → chunk-VJPN6DQU.js} +2 -2
- package/dist-cli/chunks/{chunk-PIMLP3CT.js → chunk-VSKLWCFM.js} +2 -2
- package/dist-cli/chunks/{chunk-25PXT5BN.js → chunk-VSRV5LFU.js} +1 -1
- package/dist-cli/chunks/{chunk-MB5HWJMY.js → chunk-VX5CAWLC.js} +2 -2
- package/dist-cli/chunks/{chunk-UMR6DJZG.js → chunk-W3FBNBTX.js} +2 -2
- package/dist-cli/chunks/{chunk-SPM7MIOO.js → chunk-WHL7FMLG.js} +73 -26
- package/dist-cli/chunks/{chunk-BJH7O6J6.js → chunk-X4LYRBLZ.js} +1 -1
- package/dist-cli/chunks/{chunk-7NLXLHEX.js → chunk-Y7ZMV3PG.js} +1 -1
- package/dist-cli/chunks/{chunk-ZYR5O6UT.js → chunk-YQIFU3PB.js} +3 -3
- package/dist-cli/chunks/{chunk-WTPKU4YG.js → chunk-Z47GWZMZ.js} +3 -3
- package/dist-cli/chunks/cli-version-DPV7EKFK.js +2 -0
- package/dist-cli/chunks/{compat-6HRSZHAI.js → compat-FMBQL2CX.js} +3 -3
- package/dist-cli/chunks/{config-AAHNHDGM.js → config-JD23SW7N.js} +2 -2
- package/dist-cli/chunks/control-IAHPU5HD.js +2 -0
- package/dist-cli/chunks/{cpu-profile-RBTXSQVS.js → cpu-profile-2Z4KGCAE.js} +2 -2
- package/dist-cli/chunks/{daemon-ZDL4HAJ6.js → daemon-NDO6JPDH.js} +2 -2
- package/dist-cli/chunks/{debug-GPCQOMPB.js → debug-RBVMEH33.js} +3 -3
- package/dist-cli/chunks/{detox-ZMUVIM6C.js → detox-TBJAZEBB.js} +2 -2
- package/dist-cli/chunks/{device-7U2WD3LH.js → device-26YM4HM7.js} +2 -2
- package/dist-cli/chunks/{diagnose-AHAABGO2.js → diagnose-PW7FGUOI.js} +2 -2
- package/dist-cli/chunks/drivers-L6UY2JC6.js +2 -0
- package/dist-cli/chunks/{electron-5MXNHIMP.js → electron-TBMZ3C5I.js} +3 -3
- package/dist-cli/chunks/flow-QSDMMKNZ.js +2 -0
- package/dist-cli/chunks/help-OC7HYZ5F.js +2 -0
- package/dist-cli/chunks/{hints-6E337RVS.js → hints-Q3I4PXMT.js} +2 -2
- package/dist-cli/chunks/{home-paths-CZ67HGJ7.js → home-paths-P5GMZADH.js} +2 -2
- package/dist-cli/chunks/{inspect-OFQEFD7A.js → inspect-UTHL2UK4.js} +55 -58
- package/dist-cli/chunks/install-3UWGXX6F.js +2 -0
- package/dist-cli/chunks/{install-desktop-AGDDOM5C.js → install-desktop-XQYE3QYC.js} +3 -3
- package/dist-cli/chunks/{keys-ILCZHN7X.js → keys-75OBQ7OF.js} +2 -2
- package/dist-cli/chunks/{launch-4BT4CF5H.js → launch-TFE3CZZ3.js} +3 -3
- package/dist-cli/chunks/{login-EBW5MZ7B.js → login-EIL5PLK4.js} +4 -4
- package/dist-cli/chunks/{logout-FACVEAU4.js → logout-2DXPOPWE.js} +2 -2
- package/dist-cli/chunks/{maestro-T5OJV4WN.js → maestro-Q27CNJGT.js} +2 -2
- package/dist-cli/chunks/{preview-OGUTDHGA.js → preview-ZGVCXKQZ.js} +2 -2
- package/dist-cli/chunks/{profile-OM32C3WD.js → profile-TCX6GYV5.js} +2 -2
- package/dist-cli/chunks/{react-BT3Q3HEE.js → react-24D26RLU.js} +2 -2
- package/dist-cli/chunks/{record-SDAASQC5.js → record-3MODR5RQ.js} +2 -2
- package/dist-cli/chunks/runtime-5MJPHLRZ.js +2 -0
- package/dist-cli/chunks/{runtime-delivery-2ET2INWI.js → runtime-delivery-NWSDCFAI.js} +2 -2
- package/dist-cli/chunks/{screenshot-GDNEA6ET.js → screenshot-4A6JTLUV.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-GX3PSJUV.js → screenshot-mode-KVMXLFJ4.js} +2 -2
- package/dist-cli/chunks/{screenshots-BHHQP5D4.js → screenshots-XGG6PNXW.js} +2 -2
- package/dist-cli/chunks/{server-SISUV3YX.js → server-MRLLYDV7.js} +2 -2
- package/dist-cli/chunks/setup-repo-OUMNEC36.js +2 -0
- package/dist-cli/chunks/{skills-2F6XJMFM.js → skills-COR2GQRN.js} +2 -2
- package/dist-cli/chunks/{start-AVNDR55O.js → start-SD27AJ7E.js} +4 -4
- package/dist-cli/chunks/store-JVV7G7VY.js +2 -0
- package/dist-cli/chunks/telemetry-BMJNBZT6.js +2 -0
- package/dist-cli/chunks/{test-X2EOPVCG.js → test-4N6K3C5R.js} +3 -3
- package/dist-cli/chunks/{three-mode-HOAKG3OJ.js → three-mode-PJQGXIP4.js} +2 -2
- package/dist-cli/chunks/{timeline-U5LB2UAV.js → timeline-C7JSMHCV.js} +2 -2
- package/dist-cli/chunks/{upgrade-JKGP376V.js → upgrade-SFUV6KPW.js} +2 -2
- package/dist-cli/chunks/upload-XQLVCUKI.js +2 -0
- package/dist-cli/chunks/{web-XC36Y7B2.js → web-GK27H4NM.js} +2 -2
- package/dist-cli/chunks/what-happened-GAY54LBV.js +22 -0
- package/dist-cli/chunks/{whoami-MA2TQQQL.js → whoami-C2WULTLS.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/demo-app-registry.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +132 -4
- package/dist-lib/sdk.mjs +127 -4
- package/dist-lib/skills.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/auto-bootstrap-WOBYOIE3.js +0 -2
- package/dist-cli/chunks/beta-TRSZJRLI.js +0 -2
- package/dist-cli/chunks/chunk-NUEWNRWO.js +0 -1
- package/dist-cli/chunks/chunk-O7HUOQQ7.js +0 -2
- package/dist-cli/chunks/chunk-PXMMDJOI.js +0 -1
- package/dist-cli/chunks/chunk-VCJ6CAP5.js +0 -1
- package/dist-cli/chunks/cli-version-IDCZT6SQ.js +0 -2
- package/dist-cli/chunks/control-2AGQ4GUN.js +0 -2
- package/dist-cli/chunks/drivers-RKCUWIKI.js +0 -2
- package/dist-cli/chunks/flow-NOT2JPAQ.js +0 -2
- package/dist-cli/chunks/help-HBLSAWHF.js +0 -2
- package/dist-cli/chunks/install-33SLF767.js +0 -2
- package/dist-cli/chunks/runtime-23HEVNFL.js +0 -2
- package/dist-cli/chunks/setup-repo-NU5MACBJ.js +0 -2
- package/dist-cli/chunks/store-IQBPTP5Z.js +0 -2
- package/dist-cli/chunks/telemetry-4ASKMD4D.js +0 -2
- package/dist-cli/chunks/upload-MSXXFBQA.js +0 -2
- package/dist-cli/chunks/what-happened-F7KIUJLJ.js +0 -22
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{g as u}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{g as u}from"./chunk-X4LYRBLZ.js";var S=52,l=18,h=42,x=96,g=54,E=1.5,$="inset 0 0 0 0.5px #000, inset 0 0 0 2px #757575, inset 0 0 0 5px #212121",w=1;function y(e){let t=u(e),r=t.scale,o=!t.dynamicIsland&&t.homeIndicatorHeight===0&&t.cornerRadius===0,n=t.width,i=t.height,a=o?t.width+l*2:t.width+28,d=o?t.height+h+x:t.height+28,c=9.5,b=w,p=a+c*2,m=d+w*2,f=c+(o?l:14),B=o?h:14,H=o?S:t.cornerRadius+14,v=[{side:"right",top:t.hardwareButtons.lock.top,height:t.hardwareButtons.lock.height,width:t.hardwareButtons.width},{side:"left",top:t.hardwareButtons.ringToggle.top,height:t.hardwareButtons.ringToggle.height,width:t.hardwareButtons.width},{side:"left",top:t.hardwareButtons.volumeUp.top,height:t.hardwareButtons.volumeUp.height,width:t.hardwareButtons.width},{side:"left",top:t.hardwareButtons.volumeDown.top,height:t.hardwareButtons.volumeDown.height,width:t.hardwareButtons.width}];return{model:e,renderScale:r,outerWidth:Math.round(p*r),outerHeight:Math.round(m*r),logicalOuterWidth:p,logicalOuterHeight:m,logicalFrameWidth:a,logicalFrameHeight:d,logicalFrameLeft:c,logicalFrameTop:b,logicalScreenWidth:n,logicalScreenHeight:i,logicalScreenLeft:f,logicalScreenTop:B,logicalScreenRadius:o?0:t.cornerRadius,logicalFrameRadius:H,frameBackground:o?"linear-gradient(180deg, #1b1c20 0%, #0f1012 42%, #050608 100%)":"#000000",frameOutline:o?"0 0 0 1px #1f2125":"0 0 0 1px #333",metallicRingShadow:o?null:$,buttons:v,legacyHomeButton:o?{top:h+t.height+(x-g)/2,left:t.width/2-g/2+l,size:g,ring:E}:null,showHomeIndicator:t.homeIndicatorHeight>0,logicalHomeIndicatorStripHeight:t.homeIndicatorHeight}}function L(e){let t=e.side==="right",r=t?"inset(-3px -3px -3px 0)":"inset(-3px 0 -3px -3px)";return`
|
|
3
3
|
<div
|
|
4
4
|
aria-hidden="true"
|
|
5
5
|
style="
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{i as n}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{i as n}from"./chunk-X4LYRBLZ.js";var i=[];for(let[t,e]of Object.entries(n))e.cliFlag&&i.push({name:`--${e.cliFlag}`,short:e.cliFlagShort?`-${e.cliFlagShort}`:void 0,key:t,type:e.type==="enum"?"string":e.type,description:e.description,options:e.options,default:e.default});var a=i;function g(){let t=[];for(let e of a){let s=e.short?`${e.short}, ${e.name}`:` ${e.name}`,o=e.options?` [${e.options.join("|")}]`:"",r=e.default!==void 0?` (default: ${e.default})`:"";t.push(` ${s.padEnd(24)}${e.description}${o}${r}`)}return t.join(`
|
|
3
3
|
`)}export{g as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
function
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
function N(t,e){let n=["--max-ms","--maxMs","--maxms","--max_ms"];for(let r of n){let s=t.indexOf(r);if(s>=0&&t[s+1]){let o=Number(t[s+1]);if(Number.isFinite(o))return Math.max(100,o)}}return e}var f=new Set(["tap","double-tap","tap-text","tap-id","long-press","touch"]);function h(t){return typeof t=="string"&&f.has(t)}async function w(t){return await t.send({type:"evaluate",code:"window.__sootsimEngineState?.inspectActive === true"})===!0}async function D(t,e){if(!h(e))return!1;try{return await w(t)}catch{return!1}}async function M(t){let e=await t.send({type:"evaluate",code:"(async () => await window.__sootsimTest.getNodeCount())()"});return{nodes:typeof e=="number"?e:0}}async function H(t,e=5){let n=await t.send({type:"evaluate",code:`(async () => await window.__sootsimTest.dumpTree(${e}))()`});return{depth:e,tree:n}}async function O(t){let e=await t.send({type:"evaluate",code:"window.location.href"});return{url:typeof e=="string"?e:""}}async function B(t,e){let n=`(async () => {
|
|
3
3
|
const t = window.__sootsimTest
|
|
4
4
|
const mainShell = window.SootSim?.bridges?.mainShell
|
|
5
5
|
const kb = window.__sootsimKeyboard
|
|
@@ -10,11 +10,11 @@ function A(e,t){let n=["--max-ms","--maxMs","--maxms","--max_ms"];for(let r of n
|
|
|
10
10
|
shell = typeof mainShell?.getState === 'function' ? await mainShell.getState() : null
|
|
11
11
|
} catch {}
|
|
12
12
|
|
|
13
|
-
const tree = await t.dumpTree(12, ${JSON.stringify(
|
|
13
|
+
const tree = await t.dumpTree(12, ${JSON.stringify(e)})
|
|
14
14
|
const nodeCount = (await t.getNodeCount?.()) || 0
|
|
15
15
|
const keyboard = kb && typeof kb.getLayout === 'function' ? kb.getLayout() : null
|
|
16
16
|
return { tree, shell, nodeCount, keyboard }
|
|
17
|
-
})()`;return await
|
|
17
|
+
})()`;return await t.send({type:"evaluate",code:n})??{}}var x=`(async () => {
|
|
18
18
|
const t = window.__sootsimTest
|
|
19
19
|
if (!t || typeof t.listInspectable !== 'function') return []
|
|
20
20
|
const list = await t.listInspectable({})
|
|
@@ -74,8 +74,8 @@ function A(e,t){let n=["--max-ms","--maxMs","--maxms","--max_ms"];for(let r of n
|
|
|
74
74
|
fontSize: fontSizeOf(style),
|
|
75
75
|
}
|
|
76
76
|
})
|
|
77
|
-
})()`;async function
|
|
78
|
-
`)}var
|
|
77
|
+
})()`;async function C(t){let e=await t.send({type:"evaluate",code:x});return Array.isArray(e)?e:[]}function W(t){return t.length===0?" no visible elements found":t.map(n=>{let s=[n.testID?`#${n.testID}`:n.selector?n.selector:n.role?`[${n.role}]`:`<${n.type}>`,`@(${n.box.x},${n.box.y})`,`${n.box.w}x${n.box.h}`];n.borderRadius>0&&s.push(`radius:${n.borderRadius}`);let o=n.padding;if(o.t||o.r||o.b||o.l){let i=o.t===o.r&&o.r===o.b&&o.b===o.l;s.push(i?`pad:${o.t}`:`pad:${o.t},${o.r},${o.b},${o.l}`)}if(n.fontSize>0&&s.push(`font:${n.fontSize}`),n.text){let i=n.text.length>40?`${n.text.slice(0,39)}\u2026`:n.text;s.push(`"${i}"`)}return` ${s.join(" ")}`}).join(`
|
|
78
|
+
`)}var S=`(async () => {
|
|
79
79
|
const t = window.__sootsimTest
|
|
80
80
|
if (!t) return []
|
|
81
81
|
|
|
@@ -148,7 +148,7 @@ function A(e,t){let n=["--max-ms","--maxMs","--maxms","--max_ms"];for(let r of n
|
|
|
148
148
|
return all
|
|
149
149
|
.filter(n => isVisibleTarget(n) && hasAccessibleSignal(n))
|
|
150
150
|
.map(normalize)
|
|
151
|
-
})()`;async function
|
|
151
|
+
})()`;async function F(t){let e=await t.send({type:"evaluate",code:S});return Array.isArray(e)?e:[]}var y=`
|
|
152
152
|
const fromInspectable = async () => {
|
|
153
153
|
if (typeof t.listInspectable !== 'function') return null
|
|
154
154
|
const list = await t.listInspectable({})
|
|
@@ -220,19 +220,19 @@ function A(e,t){let n=["--max-ms","--maxMs","--maxms","--max_ms"];for(let r of n
|
|
|
220
220
|
abs.y < screenH
|
|
221
221
|
)
|
|
222
222
|
}
|
|
223
|
-
`;function
|
|
223
|
+
`;function v(t){return t.testId?{mode:"testid",code:`(async () => {
|
|
224
224
|
const t = window.__sootsimTest
|
|
225
225
|
if (!t) return null
|
|
226
|
-
return (await t.findByTestId(${JSON.stringify(
|
|
227
|
-
})()`}:
|
|
226
|
+
return (await t.findByTestId(${JSON.stringify(t.testId)})) || (await t.findById(${JSON.stringify(t.testId)}))
|
|
227
|
+
})()`}:t.role?{mode:"role",code:`(async () => {
|
|
228
228
|
const t = window.__sootsimTest
|
|
229
229
|
if (!t) return []
|
|
230
|
-
return await t.queryAll({ hasRole: ${JSON.stringify(
|
|
231
|
-
})()`}:
|
|
230
|
+
return await t.queryAll({ hasRole: ${JSON.stringify(t.role)}, pruneHidden: true })
|
|
231
|
+
})()`}:t.type?{mode:"type",code:`(async () => {
|
|
232
232
|
const t = window.__sootsimTest
|
|
233
233
|
if (!t) return []
|
|
234
|
-
return await t.queryAll({ type: ${JSON.stringify(
|
|
235
|
-
})()`}:
|
|
234
|
+
return await t.queryAll({ type: ${JSON.stringify(t.type)}, pruneHidden: true })
|
|
235
|
+
})()`}:t.pressable?{mode:"pressable",code:`(async () => {
|
|
236
236
|
const t = window.__sootsimTest
|
|
237
237
|
if (!t) return []
|
|
238
238
|
${y}
|
|
@@ -240,7 +240,7 @@ ${y}
|
|
|
240
240
|
if (inspectable) return inspectable.filter(n => n.pressable && isVisibleTarget(n))
|
|
241
241
|
const all = await t.queryAll({ pruneHidden: true })
|
|
242
242
|
return all.filter(n => n.pressable && isVisibleTarget(n))
|
|
243
|
-
})()`}:
|
|
243
|
+
})()`}:t.interactive?{mode:"interactive-targets",code:`(async () => {
|
|
244
244
|
const t = window.__sootsimTest
|
|
245
245
|
if (!t) return []
|
|
246
246
|
${y}
|
|
@@ -250,16 +250,16 @@ ${y}
|
|
|
250
250
|
}
|
|
251
251
|
const all = await t.queryAll({ pruneHidden: true })
|
|
252
252
|
return all.filter(n => n.pressable && isVisibleTarget(n))
|
|
253
|
-
})()`}:
|
|
253
|
+
})()`}:t.visible?{mode:"visible",code:`(async () => {
|
|
254
254
|
const t = window.__sootsimTest
|
|
255
255
|
if (!t) return []
|
|
256
256
|
const all = await t.queryAll({ pruneHidden: true })
|
|
257
257
|
return all.filter(n => n.layout && n.layout.width > 0 && n.layout.height > 0)
|
|
258
|
-
})()`}:
|
|
258
|
+
})()`}:t.text?{mode:"text",code:`(async () => {
|
|
259
259
|
const t = window.__sootsimTest
|
|
260
260
|
if (!t) return null
|
|
261
|
-
return await t.findByText(${JSON.stringify(
|
|
262
|
-
})()`}:null}async function
|
|
261
|
+
return await t.findByText(${JSON.stringify(t.text)})
|
|
262
|
+
})()`}:null}async function z(t,e){let n=v(e);if(!n)return null;let r=await t.send({type:"evaluate",code:n.code});return{mode:n.mode,result:r}}function K(t){return[...t].sort((e,n)=>p(n)-p(e))}function p(t){let e=0;t.testID&&(e+=100),typeof t.text=="string"&&t.text.trim().length>0&&(e+=60),typeof t.accessibilityLabel=="string"&&t.accessibilityLabel.trim().length>0&&(e+=30),t.accessibilityRole&&(e+=15);let n=t.layout?.width??0,r=t.layout?.height??0,s=n*r;return s>=400&&s<=6e4?e+=25:s>6e4&&(e-=20),(t.absolutePosition?.y??0)<0&&(e-=30),e}function V(t){if(t.testID)return`sootsim do tap-id ${g(t.testID)}`;let e=typeof t.text=="string"?t.text.trim():"";if(e.length>0&&e.length<=80)return`sootsim do tap-text ${g(e)}`;let n=Math.round(((t.absolutePosition?.x??0)+(t.layout?.width??0)/2)*10)/10,r=Math.round(((t.absolutePosition?.y??0)+(t.layout?.height??0)/2)*10)/10;return`sootsim do tap ${n} ${r}`}function g(t){return/^[A-Za-z0-9_./@:-]+$/.test(t)?t:`'${t.replace(/'/g,"'\\''")}'`}var T=`(async () => {
|
|
263
263
|
const t = window.__sootsimTest
|
|
264
264
|
let nodes = 0
|
|
265
265
|
try { nodes = (await t?.getNodeCount?.()) || 0 } catch {}
|
|
@@ -354,11 +354,11 @@ ${y}
|
|
|
354
354
|
externalStatus,
|
|
355
355
|
externalError,
|
|
356
356
|
}
|
|
357
|
-
})()`,I=100,
|
|
357
|
+
})()`,I=100,k=750,_=2e3;function $(t){return t.targets>0||t.nodes>=I}function J(t){return t.externalError?`guest app errored: ${t.externalError}`:t.loadingText?`still showing "${t.loadingText}"`:t.externalReady===!1?"guest app is still loading":t.flag!==!0?"guest app has not emitted sootsim:externalAppReady":t.targets<=0?"ready flag emitted but no visible app content is inspectable yet":"node tree is still changing"}async function j(t,e=2e4,n={}){let r=Date.now(),s=r+e,o=n.progressIntervalMs??_,i=r+o,u=-1,c=r,a={flag:void 0,at:0,nodes:0,targets:0,errors:0,loadingText:"",externalReady:null,externalStatus:"",externalError:""};for(;Date.now()<s;){try{a=await t.send({type:"evaluate",code:T})??a}catch{}let l=Date.now(),d={ready:!1,elapsedMs:l-r,nodes:a.nodes,targets:a.targets,flag:a.flag,loadingText:a.loadingText,externalReady:a.externalReady,externalStatus:a.externalStatus,externalError:a.externalError,errors:a.errors};if(a.nodes!==u&&(u=a.nodes,c=l),a.flag===!0&&a.externalReady!==!1&&!a.externalError&&!a.loadingText&&$(a)&&l-c>=k)return{...d,ready:!0};if(n.onProgress&&o>0&&l>=i){n.onProgress(d);do i+=o;while(l>=i)}await new Promise(m=>setTimeout(m,150))}return{ready:!1,elapsedMs:Date.now()-r,nodes:a.nodes,targets:a.targets,flag:a.flag,loadingText:a.loadingText,externalReady:a.externalReady,externalStatus:a.externalStatus,externalError:a.externalError,errors:a.errors}}async function G(t,e,n=5e3,r={}){let s=r.gone===!0;return await t.send({type:"evaluate",code:`(async () => {
|
|
358
358
|
const start = Date.now()
|
|
359
359
|
const deadline = start + ${n}
|
|
360
360
|
const gone = ${s}
|
|
361
|
-
const ID = ${JSON.stringify(
|
|
361
|
+
const ID = ${JSON.stringify(e)}
|
|
362
362
|
const present = (node) => !!(node && node.layout && node.layout.width > 0 && node.layout.height > 0)
|
|
363
363
|
const find = async () => {
|
|
364
364
|
const t = window.__sootsimTest
|
|
@@ -397,17 +397,64 @@ ${y}
|
|
|
397
397
|
await new Promise((r) => setTimeout(r, 80))
|
|
398
398
|
}
|
|
399
399
|
return { found: false, elapsed: Date.now() - start }
|
|
400
|
-
})()`},{timeoutMs:n+1e3})??{found:!1,elapsed:n}}
|
|
400
|
+
})()`},{timeoutMs:n+1e3})??{found:!1,elapsed:n}}function b(t,e){return`(() => {
|
|
401
|
+
const out = []
|
|
402
|
+
const seen = new Set()
|
|
403
|
+
const norm = (s) => (typeof s === 'string' ? s : (() => { try { return JSON.stringify(s) } catch { return String(s) } })())
|
|
404
|
+
const key = (ts, args) => Math.round((ts || 0) / 250) + '|' + (Array.isArray(args) ? args.map(norm).join(' ') : norm(args))
|
|
405
|
+
const push = (e) => {
|
|
406
|
+
if (!e) return
|
|
407
|
+
const ts = typeof e.timestamp === 'number' ? e.timestamp : (typeof e.ts === 'number' ? e.ts : 0)
|
|
408
|
+
const k = key(ts, e.args)
|
|
409
|
+
if (seen.has(k)) return
|
|
410
|
+
seen.add(k)
|
|
411
|
+
out.push({ timestamp: ts, args: Array.isArray(e.args) ? e.args : [e.args], stack: e.stack || undefined, source: e.source || undefined })
|
|
412
|
+
}
|
|
413
|
+
// page-realm ws-bridge buffer first (richest stacks for page-origin errors)
|
|
414
|
+
try { for (const e of (window.__sootsimConsole?.${t==="error"?"getErrors":"getWarnings"}(${e}) || [])) push(e) } catch {}
|
|
415
|
+
// engine observability store \u2014 the always-on render-worker / forwarded path
|
|
416
|
+
try {
|
|
417
|
+
const obs = window.__sootsimObservability
|
|
418
|
+
const snap = obs && obs.logs && typeof obs.logs.getSnapshot === 'function' ? obs.logs.getSnapshot() : []
|
|
419
|
+
for (const e of snap) if (e && e.level === ${JSON.stringify(t)}) push(e)
|
|
420
|
+
} catch {}
|
|
421
|
+
return out.sort((a, b) => (a.timestamp || 0) - (b.timestamp || 0)).slice(-${e})
|
|
422
|
+
})()`}async function Q(t,e=20){let n=await t.send({type:"evaluate",code:b("error",e)});return Array.isArray(n)?n:[]}async function Y(t,e=20){let n=await t.send({type:"evaluate",code:b("warn",e)});return Array.isArray(n)?n:[]}var U=`(() => {
|
|
423
|
+
const norm = (s) => (typeof s === 'string' ? s : (() => { try { return JSON.stringify(s) } catch { return String(s) } })())
|
|
424
|
+
const key = (lvl, ts, args) => lvl + '|' + Math.round((ts || 0) / 250) + '|' + (Array.isArray(args) ? args.map(norm).join(' ') : norm(args))
|
|
425
|
+
const seen = new Set()
|
|
426
|
+
let errors = 0
|
|
427
|
+
let warnings = 0
|
|
428
|
+
const add = (lvl, ts, args) => {
|
|
429
|
+
if (lvl !== 'error' && lvl !== 'warn') return
|
|
430
|
+
const k = key(lvl, ts, args)
|
|
431
|
+
if (seen.has(k)) return
|
|
432
|
+
seen.add(k)
|
|
433
|
+
if (lvl === 'error') errors++
|
|
434
|
+
else warnings++
|
|
435
|
+
}
|
|
436
|
+
try {
|
|
437
|
+
const c = window.__sootsimConsole
|
|
438
|
+
for (const e of (c?.getErrors?.(200) || [])) add('error', e?.timestamp ?? e?.ts, e?.args)
|
|
439
|
+
for (const e of (c?.getWarnings?.(200) || [])) add('warn', e?.timestamp ?? e?.ts, e?.args)
|
|
440
|
+
} catch {}
|
|
441
|
+
try {
|
|
442
|
+
const obs = window.__sootsimObservability
|
|
443
|
+
const snap = obs && obs.logs && typeof obs.logs.getSnapshot === 'function' ? obs.logs.getSnapshot() : []
|
|
444
|
+
for (const e of snap) if (e) add(e.level, e.ts, e.args)
|
|
445
|
+
} catch {}
|
|
446
|
+
return { errors, warnings, total: errors + warnings }
|
|
447
|
+
})()`;async function q(t){await t.send({type:"evaluate",code:'window.__sootsimConsole?.clear(); window.__sootsimObservability?.logs?.clear?.(); "cleared"'})}async function X(t,e={}){let n=e.limit??20,r=e.failed===!1?"getRequests":"getFailedRequests",s=await t.send({type:"call",path:`__sootsimTest.${r}`,args:[n]});return Array.isArray(s)?s:[]}async function Z(t){await t.send({type:"call",path:"__sootsimTest.clearRequests",args:[]})}async function ee(t){let e=await t.send({type:"evaluate",code:`(() => {
|
|
401
448
|
const obs = window.__sootsimObservability;
|
|
402
449
|
if (!obs) return { ok: false };
|
|
403
450
|
return { ok: true, entries: obs.logs.getSnapshot() };
|
|
404
|
-
})()`});return!
|
|
451
|
+
})()`});return!e||!e.ok?[]:e.entries??[]}async function te(t){await t.send({type:"evaluate",code:'window.__sootsimObservability?.logs.clear(); "cleared"'})}function R(t,e){if(t.source===e.source||t.level!==e.level||Math.abs(t.ts-e.ts)>1e3||t.args.length!==e.args.length)return!1;let n=new Set([t.source,e.source]);return!n.has("sootsim-worker")||!n.has("render-worker")&&!n.has("forwarded-render-worker")?!1:t.args.every((r,s)=>r===e.args[s])}function ne(t,e={}){let n=[];for(let r of t)n.some(s=>R(s,r))||n.push(r);if(e.showInternal||(n=n.filter(r=>{let s=r.args[0];return!(typeof s=="string"&&s.startsWith("[sootsim]"))})),e.level&&(n=n.filter(r=>e.level.has(r.level))),e.filter){let r=e.filter.toLowerCase();n=n.filter(s=>s.args.join(" ").toLowerCase().includes(r))}return n}async function re(t,e){return await t.send({type:"call",path:"SootSim.bridges.timeline.summary",args:[e]})}async function se(t,e){return await t.send({type:"call",path:"SootSim.bridges.timeline.recent",args:[e]})}async function oe(t,e,n){await t.send({type:"call",path:"SootSim.bridges.timeline.cursorAdvance",args:[e,n]})}async function ae(t){return await t.send({type:"evaluate",code:`(() => {
|
|
405
452
|
const kb = window.__sootsimKeyboard
|
|
406
453
|
if (!kb || typeof kb.getLayout !== 'function') {
|
|
407
454
|
return { error: 'keyboard bridge getLayout() not available' }
|
|
408
455
|
}
|
|
409
456
|
return kb.getLayout()
|
|
410
|
-
})()`})??{error:"keyboard bridge returned no result"}}function E(
|
|
457
|
+
})()`})??{error:"keyboard bridge returned no result"}}function E(t){let e=t instanceof Error?t.message:String(t);return e.includes("call target not found: SootSim.bridges.mainShell")||e.includes("test bridge unavailable before app-in-worker boot")}async function A(t,e=0){let n=Date.now()+Math.max(0,e);for(;;)try{return await t.send({type:"call",path:"SootSim.bridges.mainShell.getState",args:[]})}catch(r){if(!E(r)||Date.now()>=n)throw r;await new Promise(s=>setTimeout(s,50))}}async function ie(t){let e=await t.send({type:"evaluate",code:`(async () => {
|
|
411
458
|
const test = window.__sootsimTest
|
|
412
459
|
const kb = window.__sootsimKeyboard
|
|
413
460
|
const navSnap =
|
|
@@ -431,7 +478,7 @@ ${y}
|
|
|
431
478
|
})()
|
|
432
479
|
: null
|
|
433
480
|
return { nav: navSnap, keyboard }
|
|
434
|
-
})()`});return{shell:await
|
|
481
|
+
})()`});return{shell:await A(t,500).catch(()=>null),nav:e?.nav??null,keyboard:e?.keyboard??null}}async function le(t){return t.send({type:"evaluate",code:"window.__sootsimDebug.status()"})}async function ue(t){return t.send({type:"evaluate",code:"window.__sootsimDebug.flags()"})}async function ce(t,e){let n=e==="sheets"?"findSheets":"findPortals";return t.send({type:"evaluate",code:`window.__sootsimDebug.${n}()`})}async function de(t,e,n=50){let r=e&&e!=="all"?`window.__sootsimDebug.recent(${JSON.stringify(e)}, ${n})`:`window.__sootsimDebug.recent(undefined, ${n})`;return t.send({type:"evaluate",code:r})}async function ye(t,e,n){let r=n.length>0?n.map(s=>JSON.stringify(s)).join(", "):e==="disable"?"'all'":"";return t.send({type:"evaluate",code:`window.__sootsimDebug.${e}(${r})`})}async function pe(t){return await t.send({type:"evaluate",code:`(async () => {
|
|
435
482
|
const host = window.__sootsimRenderHost
|
|
436
483
|
const stats = host?.queryStats ? await host.queryStats() : null
|
|
437
484
|
const hostMem = performance.memory
|
|
@@ -446,4 +493,4 @@ ${y}
|
|
|
446
493
|
workerHeap: stats?.memory?.workerHeap ?? null,
|
|
447
494
|
hostHeap: hostMem,
|
|
448
495
|
}
|
|
449
|
-
})()`})??{imageLoader:null,workerHeap:null,hostHeap:null}}function
|
|
496
|
+
})()`})??{imageLoader:null,workerHeap:null,hostHeap:null}}function ge(t){if(t.total===0)return"nothing recorded";let e=[],n=["error","warning","console","fetch","toast","alert","actionsheet","picker","notification","screen","route","keyboard","app-launch","shell","scroll","gesture","text-input","react-commit","animation","reanimated"],r=new Set;for(let s of n){let o=t.byKind[s];o&&(e.push(`${o} ${s}${o===1?"":"s"}`),r.add(s))}for(let[s,o]of Object.entries(t.byKind))!r.has(s)&&o&&e.push(`${o} ${s}${o===1?"":"s"}`);return e.join(" \xB7 ")}var be=new Set(["react-commit","layout","scroll"]);function P(t,e){if(e===null)return new Date(t).toLocaleTimeString();let n=(t-e)/1e3;return`${n>=0?"+":""}${n.toFixed(2)}s`}function L(t,e){switch(t){case"app-launch":return e.phase==="launch"?`launch ${e.appName??e.toAppId??""}`:`dismiss ${e.appName??e.fromAppId??""} \u2192 ${e.toAppId??""}`;case"toast":return`"${e.text??""}"${e.durationMs?` (${e.durationMs}ms)`:""}`;case"keyboard":return`${e.phase??"?"}${e.heightPx?` h=${e.heightPx}`:""}${e.mode?` ${e.mode}`:""}`;case"screen":return`${e.phase??"?"} ${e.name??e.activeName??""}`;case"route":return`${e.phase??"?"} ${e.path??e.pathname??""}`;case"alert":case"actionsheet":case"picker":return`${e.phase??"?"} ${e.title??e.message??""}`;case"notification":return`${e.title??""}${e.body?` \u2014 ${e.body}`:""}`;case"fetch":return`${e.method??"GET"} ${e.url??""}${e.status?` -> ${e.status}`:""}`;case"console":return`${e.level??"log"}: ${(e.message??"").toString().slice(0,120)}`;case"shell":return`${e.event??e.type??e.phase??""}`;case"scroll":return`${e.phase??"?"} ${e.target??""}`;case"gesture":return`${e.phase??"?"} ${e.type??""}`;case"text-input":return`${e.phase??"?"}${e.value!==void 0?` "${String(e.value).slice(0,40)}"`:""}`;case"layout":return`${e.kind??"?"} ${e.testID??e.type??""}${e.skipped?` skipped:${e.reason??"unknown"}`:""}`;case"react-commit":{let n=e.slowest;return`${e.fiberCount??"?"} fibers ${e.durationMs??"?"}ms${n?.displayName?` \xB7 ${n.displayName} ${n.durationMs??"?"}ms`:""}`}case"reanimated":case"animation":return`${e.kind??""} ${e.target??""}${e.durationMs?` ${e.durationMs}ms`:""}`}return""}function me(t,e){let n=P(t.t,e).padStart(8),r=t.context.padEnd(6),s=`[${t.kind}]`.padEnd(15),o=t.data,i=o&&typeof o=="object"?L(t.kind,o):"";return` ${n} ${r} ${s} ${i}`}export{N as a,D as b,M as c,H as d,O as e,B as f,C as g,W as h,F as i,z as j,K as k,V as l,T as m,k as n,$ as o,J as p,j as q,G as r,Q as s,Y as t,U as u,q as v,X as w,Z as x,ee as y,te as z,ne as A,re as B,se as C,oe as D,ae as E,E as F,A as G,ie as H,le as I,ue as J,ce as K,de as L,ye as M,pe as N,ge as O,be as P,me as Q};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var o={width:3,lock:{top:253,height:103},ringToggle:{top:152,height:32},volumeUp:{top:214,height:61},volumeDown:{top:290,height:61}},m={width:2.5,lock:{top:130,height:78},ringToggle:{top:94,height:22},volumeUp:{top:126,height:48},volumeDown:{top:188,height:48}},c={width:3,lock:{top:238,height:78},ringToggle:{top:-1e3,height:0},volumeUp:{top:336,height:62},volumeDown:{top:408,height:62}},p={width:3,lock:{top:248,height:72},ringToggle:{top:-1e3,height:0},volumeUp:{top:144,height:62},volumeDown:{top:216,height:62}},r=48;function t(e){return{...e,platform:"ios",navigationBarHeight:0,navigationBarMode:e.homeIndicatorHeight>0?"gesture":"none",displayCutout:{top:e.dynamicIsland?e.statusBarHeight:0,bottom:0,left:0,right:0},cameraCutout:null,osVersion:e.iosVersion,androidApiLevel:null,systemName:"iOS",manufacturer:"Apple",brand:"Apple",modelName:e.name}}var h={"iphone-se":t({name:"iPhone SE",width:375,height:667,scale:2,statusBarHeight:20,homeIndicatorHeight:0,cornerRadius:0,dynamicIsland:null,safeAreaInsets:{top:20,bottom:0,left:0,right:0},iosVersion:"15.8",physicalPPI:326,hardwareButtons:m}),"iphone-14":t({name:"iPhone 14",width:390,height:844,scale:3,statusBarHeight:47,homeIndicatorHeight:34,cornerRadius:55,dynamicIsland:null,safeAreaInsets:{top:47,bottom:34,left:0,right:0},iosVersion:"17.6",physicalPPI:460,hardwareButtons:o}),"iphone-15":t({name:"iPhone 15",width:393,height:852,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:37.3},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"17.6",physicalPPI:460,hardwareButtons:o}),"iphone-15-plus":t({name:"iPhone 15 Plus",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:37.3},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"17.6",physicalPPI:460,hardwareButtons:o}),"iphone-15-pro":t({name:"iPhone 15 Pro",width:393,height:852,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:38},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"18.2",physicalPPI:460,hardwareButtons:o}),"iphone-15-pro-max":t({name:"iPhone 15 Pro Max",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:38},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"18.2",physicalPPI:460,hardwareButtons:o}),"iphone-16":t({name:"iPhone 16",width:393,height:852,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:37.3},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:o}),"iphone-16-plus":t({name:"iPhone 16 Plus",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:37.3},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:o}),"iphone-16-pro":t({name:"iPhone 16 Pro",width:402,height:874,scale:3,statusBarHeight:62,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:38},safeAreaInsets:{top:62,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:o}),"iphone-16-pro-max":t({name:"iPhone 16 Pro Max",width:440,height:956,scale:3,statusBarHeight:62,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:38},safeAreaInsets:{top:62,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:o}),"iphone-17":t({name:"iPhone 17",width:402,height:874,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:37.3},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:o}),"iphone-17-air":t({name:"iPhone 17 Air",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:38},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:o}),"iphone-17-pro":t({name:"iPhone 17 Pro",width:402,height:874,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:38},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:o}),"iphone-17-pro-max":t({name:"iPhone 17 Pro Max",width:440,height:956,scale:3,statusBarHeight:62,homeIndicatorHeight:34,cornerRadius:58,dynamicIsland:{width:126,height:38},safeAreaInsets:{top:62,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:o}),"ipad-pro-13":t({name:'iPad Pro 13"',width:1032,height:1376,scale:2,statusBarHeight:24,homeIndicatorHeight:20,cornerRadius:18,dynamicIsland:null,safeAreaInsets:{top:24,bottom:20,left:0,right:0},iosVersion:"18.2",physicalPPI:264,hardwareButtons:o}),"pixel-8":{platform:"android",name:"Pixel 8",width:412,height:915,scale:2.625,statusBarHeight:40,homeIndicatorHeight:0,navigationBarHeight:r,navigationBarMode:"gesture",displayCutout:{top:40,bottom:0,left:0,right:0},cornerRadius:39,dynamicIsland:null,cameraCutout:{diameter:24},safeAreaInsets:{top:40,bottom:r,left:0,right:0},osVersion:"15",iosVersion:"",androidApiLevel:35,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 8",physicalPPI:428,hardwareButtons:c},"pixel-8-three-button":{platform:"android",name:"Pixel 8 (3-button)",width:412,height:915,scale:2.625,statusBarHeight:40,homeIndicatorHeight:0,navigationBarHeight:48,navigationBarMode:"three-button",displayCutout:{top:40,bottom:0,left:0,right:0},cornerRadius:39,dynamicIsland:null,cameraCutout:{diameter:24},safeAreaInsets:{top:40,bottom:48,left:0,right:0},osVersion:"15",iosVersion:"",androidApiLevel:35,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 8",physicalPPI:428,hardwareButtons:c},"pixel-9-pro-xl":{platform:"android",name:"Pixel 9 Pro XL",width:448,height:997,scale:3,statusBarHeight:40,homeIndicatorHeight:0,navigationBarHeight:r,navigationBarMode:"gesture",displayCutout:{top:40,bottom:0,left:0,right:0},cornerRadius:41,dynamicIsland:null,cameraCutout:{diameter:24},safeAreaInsets:{top:40,bottom:r,left:0,right:0},osVersion:"15",iosVersion:"",androidApiLevel:35,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 9 Pro XL",physicalPPI:486,hardwareButtons:c},"galaxy-s24":{platform:"android",name:"Galaxy S24",width:360,height:780,scale:3,statusBarHeight:36,homeIndicatorHeight:0,navigationBarHeight:r,navigationBarMode:"gesture",displayCutout:{top:36,bottom:0,left:0,right:0},cornerRadius:36,dynamicIsland:null,cameraCutout:{diameter:18},safeAreaInsets:{top:36,bottom:r,left:0,right:0},osVersion:"15",iosVersion:"",androidApiLevel:35,systemName:"Android",manufacturer:"Samsung",brand:"samsung",modelName:"SM-S921B",physicalPPI:416,hardwareButtons:p},"galaxy-s24-ultra":{platform:"android",name:"Galaxy S24 Ultra",width:384,height:824,scale:3.75,statusBarHeight:36,homeIndicatorHeight:0,navigationBarHeight:r,navigationBarMode:"gesture",displayCutout:{top:36,bottom:0,left:0,right:0},cornerRadius:24,dynamicIsland:null,cameraCutout:{diameter:18},safeAreaInsets:{top:36,bottom:r,left:0,right:0},osVersion:"15",iosVersion:"",androidApiLevel:35,systemName:"Android",manufacturer:"Samsung",brand:"samsung",modelName:"SM-S928B",physicalPPI:505,hardwareButtons:p}},u="iphone-17-pro";function S(e){return h[e]}function g(){return Object.keys(h)}var i={"iphone-6-9":{name:"iphone-6-9",label:'iPhone 6.7"',width:1284,height:2778,store:"apple"},"iphone-6-1":{name:"iphone-6-1",label:'iPhone 6.5"',width:1242,height:2688,store:"apple"},"ipad-13":{name:"ipad-13",label:'iPad 13"',width:2064,height:2752,store:"apple"},"android-phone":{name:"android-phone",label:"Google Play phone",width:1080,height:1920,store:"google"},"android-tablet-7":{name:"android-tablet-7",label:'Google Play 7" tablet',width:1200,height:1920,store:"google"},"android-tablet-10":{name:"android-tablet-10",label:'Google Play 10" tablet',width:1600,height:2560,store:"google"}},s={dark:{type:"gradient",direction:180,glow:"#4caeff",stops:[{offset:0,color:"#111827"},{offset:40,color:"#101725"},{offset:100,color:"#06080d"}]},cyan:{type:"gradient",direction:180,glow:"#25c3ec",stops:[{offset:0,color:"#1b465c"},{offset:32,color:"#122336"},{offset:100,color:"#05070b"}]},gold:{type:"gradient",direction:180,glow:"#ffc25a",stops:[{offset:0,color:"#3b2f1a"},{offset:34,color:"#18140d"},{offset:100,color:"#050505"}]},red:{type:"gradient",direction:180,glow:"#ff6178",stops:[{offset:0,color:"#3e1018"},{offset:35,color:"#17080c"},{offset:100,color:"#050405"}]}},P={color:"#25c3ec",blur:120,spread:52,opacity:.34},v="iphone-17-pro";var f=[{name:"white",value:"#ffffff"},{name:"gray-light",value:"#d1d5db"},{name:"gray",value:"#6b7280"},{name:"gray-dark",value:"#3b4350"},{name:"slate",value:"#2a3644"},{name:"black",value:"#000000"},{name:"cyan",value:"#25c3ec"},{name:"blue",value:"#3f7cff"},{name:"teal",value:"#1fc7b4"},{name:"green",value:"#42c95d"},{name:"lime",value:"#92d21b"},{name:"gold",value:"#f5c518"},{name:"orange",value:"#ff912e"},{name:"coral",value:"#ff6f5b"},{name:"red",value:"#ff4f6f"},{name:"berry",value:"#d054ff"},{name:"magenta",value:"#ff4eb8"}],x=Object.fromEntries(f.map(e=>[e.name,e.value]));function B(e){return Object.prototype.hasOwnProperty.call(i,e)?i[e]:null}function b(e){return{type:e.type,color:e.color,direction:e.direction,glow:e.glow,stops:e.stops?.map(n=>({...n}))}}function I(e){return Object.prototype.hasOwnProperty.call(s,e)?b(s[e]):null}var d={deviceModel:{type:"enum",default:u,description:"device model to simulate",cliFlag:"device",cliFlagShort:"d",options:g(),group:"device"},orientation:{type:"enum",default:"portrait",description:"screen orientation",cliFlag:"orientation",options:["portrait","landscape"],group:"device"},colorScheme:{type:"enum",default:"auto",description:"color scheme (auto follows system preference)",cliFlag:"theme",cliFlagShort:"t",options:["light","dark","auto"],group:"appearance"},reduceMotion:{type:"boolean",default:!1,description:"reduce motion",group:"appearance"},boldText:{type:"boolean",default:!1,description:"bold text",group:"appearance"},fontSize:{type:"number",default:1,description:"font size multiplier (1.0 = default)",group:"appearance",validate:e=>e>=.5&&e<=2},networkCondition:{type:"enum",default:"wifi",description:"simulated network condition",cliFlag:"network",options:["wifi","lte","fast-3g","slow-3g","offline"],group:"network"},language:{type:"string",default:"en",description:"language code (ISO 639-1)",cliFlag:"language",group:"locale"},region:{type:"string",default:"US",description:"region code (ISO 3166-1)",cliFlag:"region",group:"locale"},showTouches:{type:"boolean",default:!1,description:"show touch indicators",group:"simulator"},showFrame:{type:"boolean",default:!0,description:"show device frame",cliFlag:"frame",group:"simulator"},showTopBar:{type:"boolean",default:!0,description:"show simulator top bar",group:"simulator"},screenshotMode:{type:"boolean",default:!1,description:"show screenshot composition mode in the browser shell",group:"simulator"},threeMode:{type:"boolean",default:!1,description:"show the experimental 3d device stage in the browser shell",group:"simulator"},threeRecordingEditor:{type:"boolean",default:!1,description:"dock the 3d recording editor in the 3d stage (toggled from its rail)",group:"simulator"},screenshotCanvas:{type:"enum",default:"iphone-6-9",description:"target app-store canvas preset for screenshot mode",options:Object.keys(i),group:"simulator"},screenshotBackground:{type:"enum",default:"dark",description:"background preset rendered inside the screenshot canvas",options:Object.keys(s),group:"simulator"},screenshotText:{type:"enum",default:"bold-top",description:"text layout preset for the screenshot canvas",options:["bold-top","editorial-left","minimal-bottom","none"],group:"simulator"},screenshotPose:{type:"enum",default:"straight",description:"device pose preset inside the screenshot canvas",options:["straight","tilted-left","tilted-right","cut-bottom","cut-top"],group:"simulator"},screenshotDynamicSize:{type:"boolean",default:!1,description:"let the screenshot canvas rect fit available space (off = pin to exact preset pixels)",group:"simulator"},showStatusBar:{type:"boolean",default:!0,description:"show status bar",group:"simulator"},showHomeIndicator:{type:"boolean",default:!0,description:"show home indicator",group:"simulator"},a11yMode:{type:"enum",default:"delayed",description:"accessibility tree sync mode (off, delayed=100ms, active=30ms)",options:["off","delayed","active"],group:"simulator"},a11yDepth:{type:"enum",default:"deep",description:"accessibility tree structure depth (shallow or deep)",options:["shallow","deep"],group:"simulator"},inspectMode:{type:"boolean",default:!1,description:"inspect mode",group:"simulator"},errorReporting:{type:"boolean",default:!1,description:"send anonymous crash reports",group:"privacy"},agentProvider:{type:"enum",default:"codex",description:"ai agent used by the sootsim agent prompt bar",options:["codex","claude"],group:"agent"},onboardingComplete:{type:"boolean",default:!1,description:"first-run onboarding completed",group:"beta"},betaConsentVersion:{type:"number",default:0,description:"last accepted beta telemetry policy version",group:"beta"},detailedTelemetry:{type:"boolean",default:!0,description:"send detailed usage telemetry (sessions, perf samples)",group:"beta"}};function y(){if(typeof window>"u")return{};let e={};try{let n=new URLSearchParams(window.location.search),a=n.get("device");a&&d.deviceModel.options?.includes(a)&&(e.deviceModel=a);let l=n.get("colorScheme")??n.get("theme");l&&d.colorScheme.options?.includes(l)&&(e.colorScheme=l)}catch{}return e}function R(){let e={};for(let[n,a]of Object.entries(d))e[n]=a.default;return Object.assign(e,y()),e}export{P as a,v as b,B as c,b as d,I as e,h as f,S as g,g as h,d as i,y as j,R as k};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var t=!0,e="1.0.0",o="public beta",n=`${o} \xB7 free until ${e}`,r="free for everyone until 1.0 \u2014 we send anonymous error and dependency data while you use it";export{t as a,e as b,o as c,n as d,r as e};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as d}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as d}from"./chunk-NQ4EDJV4.js";import{a as p,d as w,h as $,j as y}from"./chunk-VJPN6DQU.js";import{A as g,B as f,i as h,y as m,z as a}from"./chunk-4BXESMZ7.js";import b from"fs";import{WebSocket as D}from"ws";async function P(n,e={}){let[o,...t]=n;if(!o||o==="--help"||o==="-h"){R();return}switch(o){case"install":return O(t,e);case"list":case"ls":return S(t);case"use":return T(t);case"remove":case"rm":return N(t);case"which":case"active":return F();default:console.error(` unknown runtime subcommand: ${o}`),R(),process.exit(1)}}function R(){console.log(`
|
|
3
3
|
sootsim runtime \u2014 manage engine runtimes under ~/.sootsim/runtimes/
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -22,4 +22,4 @@ examples:
|
|
|
22
22
|
sootsim runtime install 1.2.3
|
|
23
23
|
sootsim runtime install --channel beta
|
|
24
24
|
sootsim runtime use 1.2.3
|
|
25
|
-
`)}async function O(n,e){let{version:o,flags:t}=_(n),s=t.channel??e.channel??"stable",l=t.force===!0,c=t.setActive!==!1;m(),console.log("sootsim runtime install"),console.log(` cdn: ${w()}`);try{let i=await y({version:o,channel:s,force:l,setActive:c});console.log(` version: ${i.version} (channel: ${i.channel})`),i.installed?console.log(` installed ${i.version}`):console.log(` already installed at ${i.runtimeDir}`),c&&await k(i.version)}catch(i){console.error(` ${I(i)}`),process.exit(1)}}async function k(n){g(n),console.log(` active: ${n}`),await A(n)||console.log(` (no daemon running \u2014 next sootsim/electron launch will pick up ${n})`)}async function A(n){let{isDaemonLockfileFresh:e,readDaemonLockfile:o}=await import("./home-paths-
|
|
25
|
+
`)}async function O(n,e){let{version:o,flags:t}=_(n),s=t.channel??e.channel??"stable",l=t.force===!0,c=t.setActive!==!1;m(),console.log("sootsim runtime install"),console.log(` cdn: ${w()}`);try{let i=await y({version:o,channel:s,force:l,setActive:c});console.log(` version: ${i.version} (channel: ${i.channel})`),i.installed?console.log(` installed ${i.version}`):console.log(` already installed at ${i.runtimeDir}`),c&&await k(i.version)}catch(i){console.error(` ${I(i)}`),process.exit(1)}}async function k(n){g(n),console.log(` active: ${n}`),await A(n)||console.log(` (no daemon running \u2014 next sootsim/electron launch will pick up ${n})`)}async function A(n){let{isDaemonLockfileFresh:e,readDaemonLockfile:o}=await import("./home-paths-P5GMZADH.js"),t=o();if(!e(t))return!1;let s=d();return new Promise(l=>{let c=!1,i=!1,u=x=>{c||(c=!0,l(x))},r=new D(`ws://127.0.0.1:${s}`,{handshakeTimeout:800}),v=setTimeout(()=>{try{r.close()}catch{}u(i)},1500);r.on("open",()=>{try{r.send(JSON.stringify({type:"runtime:use",version:n,id:0})),i=!0}catch{}setTimeout(()=>{try{r.close()}catch{}},100)}),r.on("close",()=>{clearTimeout(v),u(i)}),r.on("error",()=>{clearTimeout(v),u(!1)})})}async function S(n){m();let e=f(),o=a();if(console.log("installed:"),e.length===0)console.log(" (none)");else for(let t of e)console.log(` ${t===o?"*":" "} ${t}`);try{let t=await $();console.log("available (latest per channel):");for(let[s,l]of Object.entries(t.channels))console.log(` ${s.padEnd(8)} ${l.latest}`)}catch(t){console.log(`available: (could not fetch manifest: ${I(t)})`)}}async function T(n){let e=n[0];e||(console.error(" usage: sootsim runtime use <version>"),process.exit(1));let o=f();o.includes(e)||(console.error(` version ${e} is not installed`),console.error(` installed: ${o.join(", ")||"(none)"}`),console.error(` run \`sootsim runtime install ${e}\` first`),process.exit(1)),await k(e)}async function N(n){let e=n[0];e||(console.error(" usage: sootsim runtime remove <version>"),process.exit(1)),a()===e&&(console.error(` cannot remove active runtime ${e}`),console.error(" switch with `sootsim runtime use <other>` first, or install another version"),process.exit(1));let t=h(e);if(!b.existsSync(t)){console.error(` ${e} is not installed`);return}b.rmSync(t,{recursive:!0,force:!0}),console.log(` removed ${e}`)}async function F(){let n=a();if(!n){console.log(" no active runtime");return}console.log(n)}function _(n){let e={},o=[];for(let t=0;t<n.length;t++){let s=n[t];if(s==="--channel"&&t+1<n.length){e.channel=n[t+1],t++;continue}if(s.startsWith("--channel=")){e.channel=s.slice(10);continue}if(s==="--force"){e.force=!0;continue}if(s==="--set-active=false"||s==="--no-set-active"){e.setActive=!1;continue}o.push(s)}return{version:o[0]??null,flags:e}}function I(n){return n instanceof Error?n.message:String(n)}export{P as a};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as l}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as l}from"./chunk-NQ4EDJV4.js";import{E as c,F as m,g as p,i as h,z as w}from"./chunk-4BXESMZ7.js";import{closeSync as v,existsSync as f,openSync as P,readSync as S,statSync as g}from"fs";import{homedir as k}from"os";import{resolve as T}from"path";import{WebSocket as D}from"ws";var E=6e4;async function L(){let t=w();if(t&&f(h(t)))return;console.log(" first run \u2014 installing sootsim engine runtime (~6 MB)...");let{runRuntime:e}=await import("./runtime-5MJPHLRZ.js");await e(["install"],{})}function I(t,e){return x(t)??e??l()}async function $(t=l(),e=E){if(await u(t,250)||await u(t,1500))return;let n=c();if(n&&m(n)){if(n.bootstrapping===!0&&(await b(e),await u(n.bridgePort,500)))return;throw new Error(`sootsim daemon lockfile is fresh (port ${n.bridgePort}) but the bridge is not reachable. run \`sootsim daemon restart\` or \`sootsim daemon uninstall\`.`)}if(p())throw new Error(`sootsim bridge daemon is not running on port ${t}.
|
|
3
3
|
dev checkouts skip the auto-install of the persistent launchd / systemd
|
|
4
4
|
agent. start the daemon manually in another shell with:
|
|
5
5
|
bun sootsim server
|
|
6
|
-
(set SOOTSIM_FORCE_DAEMON_INSTALL=1 to allow auto-install from this repo.)`);console.log(" registering sootsim bridge daemon...");let{daemonInstall:o}=await import("./daemon-
|
|
6
|
+
(set SOOTSIM_FORCE_DAEMON_INSTALL=1 to allow auto-install from this repo.)`);console.log(" registering sootsim bridge daemon...");let{daemonInstall:o}=await import("./daemon-NDO6JPDH.js");try{await o({port:t,force:!0})}catch(r){let s=r instanceof Error?r.message:String(r);throw new Error(`${s}
|
|
7
7
|
if this keeps failing, run \`sootsim daemon uninstall\` and retry, or run \`sootsim server\` in a persistent shell as a workaround.`)}console.log(" waiting for runtime to come online...");let i=process.platform==="darwin"?B():null;try{await b(e);let r=Date.now()+5e3;for(;Date.now()<r;){if(await u(t,500))return;await new Promise(s=>setTimeout(s,200))}throw new Error(`daemon registered but the bridge never bound on port ${t} \u2014 see ${d()} (mac) or \`journalctl --user -u sootsim-server\` (linux).`)}finally{i?.stop()}}async function C(t=l()){await L(),await $(t)}function x(t){for(let e=0;e<t.length;e++){let n=t[e];if((n==="--port"||n==="-p")&&t[e+1]){let o=Number(t[e+1]);return Number.isFinite(o)?o:void 0}if(n.startsWith("--port=")){let o=Number(n.slice(7));return Number.isFinite(o)?o:void 0}}}function u(t,e){return new Promise(n=>{let o=new D(`ws://127.0.0.1:${t}`,{handshakeTimeout:e}),i=!1,r=s=>{if(!i){i=!0;try{o.close()}catch{}n(s)}};o.once("open",()=>r(!0)),o.once("error",()=>r(!1)),setTimeout(()=>r(!1),e)})}async function b(t){let e=Date.now()+t,n;for(;Date.now()<e;){let o=c();if(o&&m(o)){if(o.bootstrapping!==!0)return;o.bootstrapping!==n&&(n=o.bootstrapping)}await new Promise(i=>setTimeout(i,250))}throw new Error(`daemon did not finish bootstrapping within ${Math.round(t/1e3)}s \u2014 check ${d()} (mac) or \`journalctl --user -u sootsim-server\` (linux).`)}function d(){return T(k(),"Library/Logs/sootsim/server.err.log")}function B(){let t=d(),e=0;try{f(t)&&(e=g(t).size)}catch{}let n=!1,o=()=>{if(!n){try{if(f(t)){let i=g(t).size;if(i>e){let r=Buffer.alloc(i-e),s=P(t,"r");try{S(s,r,0,r.length,e)}finally{v(s)}e=i;for(let y of r.toString("utf8").split(/\r?\n/)){let a=y.trim();a&&(a.startsWith("sootsim:")||a.startsWith("sootsim "))&&console.log(` ${a}`)}}else i<e&&(e=i)}}catch{}setTimeout(o,250)}};return o(),{stop:()=>{n=!0}}}export{L as a,I as b,$ as c,C as d};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-SRA2TVCG.js";import{existsSync as x,readFileSync as j}from"fs";import{resolve as g}from"path";async function P(s){(s.includes("--help")||s.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim compat \u2014 check package compatibility
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -20,7 +20,7 @@ examples:
|
|
|
20
20
|
sootsim compat react-native-reanimated
|
|
21
21
|
sootsim compat --json
|
|
22
22
|
sootsim compat --brief
|
|
23
|
-
`),process.exit(0));let c=s.includes("--json"),e=s.includes("--brief"),l=s.indexOf("--app"),n=l!==-1&&s[l+1]?g(s[l+1]):process.cwd(),k=s.filter((o,a)=>!o.startsWith("-")&&(l===-1||a!==l+1))[0];if(c||e){let{scanDeps:o}=await import("./web-
|
|
23
|
+
`),process.exit(0));let c=s.includes("--json"),e=s.includes("--brief"),l=s.indexOf("--app"),n=l!==-1&&s[l+1]?g(s[l+1]):process.cwd(),k=s.filter((o,a)=>!o.startsWith("-")&&(l===-1||a!==l+1))[0];if(c||e){let{scanDeps:o}=await import("./web-GK27H4NM.js"),a=g(n,"package.json");x(a)||(console.error(" no package.json found in",n),process.exit(1));let u=JSON.parse(j(a,"utf8")),r=o(u);if(c){console.log(JSON.stringify(r,null,2));return}if(r.packages.length===0){console.log(" no RN ecosystem packages detected");return}let T=Math.round(r.overallScore*100),v=r.packages.filter(i=>i.status==="full").length,$=r.packages.filter(i=>i.status==="partial"||i.status==="auto-stub").length,w=r.packages.filter(i=>i.status==="unsupported").length,p=[];v&&p.push(`${v} fully supported`),$&&p.push(`${$} partial`),w&&p.push(`${w} unsupported`),console.log(` ${p.join(", ")} \u2014 ${T}% compatible`);return}let{POLYFILL_REGISTRY:d}=await import("./web-GK27H4NM.js");if(k){W(k,d);return}let b=g(n,"package.json");x(b)||(console.error(" no package.json found in",n),process.exit(1));let m=JSON.parse(j(b,"utf8")),S={...m.dependencies,...m.devDependencies},t={full:[],partial:[],autoStub:[],unsupported:[],justWorks:[],unknown:[]};for(let o of Object.keys(S)){let a=d[o];if(a){let u=a.stubType==="native"?"full":a.stubType==="works"?"not-relevant":a.stubType;if(a.stubType!=="native"&&a.versions?.length){let r=Math.max(...a.versions.map(y=>y.coverage||0));u=r>=.8?"full":r>=.3?"partial":"auto-stub"}switch(u){case"full":t.full.push(o);break;case"partial":t.partial.push(o);break;case"auto-stub":t.autoStub.push(o);break;case"unsupported":t.unsupported.push(o);break;case"not-relevant":t.justWorks.push(o);break;default:f(o)&&t.unknown.push(o)}}else f(o)&&t.unknown.push(o)}console.log(`
|
|
24
24
|
sootsim compatibility report
|
|
25
25
|
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
26
26
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-SRA2TVCG.js";import{existsSync as i,writeFileSync as n,readFileSync as c}from"fs";import{resolve as t}from"path";async function a(s){let e=s[0];switch((!e||s.includes("--help")||s.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim config \u2014 manage sootsim configuration
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q,u as r,v as s}from"./chunk-MSU27JEW.js";import"./chunk-RVWJ3TAE.js";import"./chunk-QNQO5VHO.js";import"./chunk-WHL7FMLG.js";import"./chunk-4UQMPWDA.js";import"./chunk-NQ4EDJV4.js";import"./chunk-LT2X5ISU.js";import"./chunk-VALW4SKE.js";import"./chunk-QUEATUWT.js";import"./chunk-3A7SRWSQ.js";import"./chunk-VSRV5LFU.js";import"./chunk-SF6W3FRS.js";import"./chunk-2FTVPI7F.js";import"./chunk-KY6NY6WN.js";import"./chunk-4BXESMZ7.js";import"./chunk-SRA2TVCG.js";export{e as buildOpenUrl,d as buildShellUrl,q as closeSimsBulk,r as planBulkCloseTargets,i as playwrightHostPidForSim,g as printConnectedSims,b as resolveBundleTarget,c as resolveDefaultShellBaseUrl,a as resolveDriverConnectWaitOptions,p as runClaimCommand,s as runCloseCommand,o as runFocusCommand,l as runListCommand,m as runOpenCommand,n as runUseCommand,j as signalDriverLaunchConnected,f as summarizeSimUrl,k as terminatePlaywrightHostsForSims,h as waitForSimMatch};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-SRA2TVCG.js";import{mkdirSync as $,writeFileSync as P}from"fs";import{dirname as S,resolve as O}from"path";import{WebSocket as C}from"ws";var v=e=>new Promise(i=>setTimeout(i,e)),w=class{ws;nextId=1;pending=new Map;listeners=new Set;ready;constructor(i){this.ws=new C(i,{maxPayload:1<<28}),this.ready=new Promise((t,r)=>{this.ws.once("open",()=>t()),this.ws.once("error",r)}),this.ws.on("message",t=>{let r=JSON.parse(t.toString());if(r.id&&this.pending.has(r.id)){let{res:o,rej:s}=this.pending.get(r.id);this.pending.delete(r.id),r.error?s(new Error(JSON.stringify(r.error))):o(r.result)}else if(r.method)for(let o of this.listeners)o(r.method,r.params)})}waitOpen(){return this.ready}on(i){this.listeners.add(i)}send(i,t={},r){let o=this.nextId++;return new Promise((s,p)=>{this.pending.set(o,{res:s,rej:p}),this.ws.send(JSON.stringify({id:o,method:i,params:t,...r?{sessionId:r}:{}}))})}close(){try{this.ws.close()}catch{}}};async function D(e,i){let t=Number(d(e,"--duration")??"5");if(!Number.isFinite(t)||t<=0)return console.error(" --duration must be a positive number (seconds)"),1;let r=Number(d(e,"--sample-interval")??"0.1"),o=Number(d(e,"--cdp-port")??process.env.SOOTSIM_CDP_PORT??"9222"),s=d(e,"--match")??"/rn/",p=d(e,"--output")??d(e,"-o"),u=O(process.cwd(),p??"/tmp/sootsim.cpuprofile"),g=[];try{g=await(await fetch(`http://localhost:${o}/json/list`)).json()}catch{return T(o),1}let y=g.find(a=>a.type==="page"&&a.url.includes(s));if(!y)return console.error(` no page target matching "${s}" on CDP :${o}`),console.error(` open targets: ${g.map(a=>a.url).join(", ")||"(none)"}`),1;let c=new w(y.webSocketDebuggerUrl);await c.waitOpen();try{let a=new Map;if(c.on((n,l)=>{n==="Target.attachedToTarget"&&l.targetInfo?.type==="worker"&&a.set(l.sessionId,l.targetInfo.url),n==="Target.detachedFromTarget"&&a.delete(l.sessionId)}),await c.send("Target.setAutoAttach",{autoAttach:!0,waitForDebuggerOnStart:!1,flatten:!0}),await v(500),a.size===0)return console.error(" no worker targets attached \u2014 is the app loaded in this tab?"),1;for(let n of a.keys())await c.send("Profiler.enable",{},n),await c.send("Profiler.setSamplingInterval",{interval:r*1e3},n),await c.send("Profiler.start",{},n);console.log(` recording ${t}s across ${a.size} worker(s) \u2014 interact now\u2026`),await v(t*1e3);let m=[];for(let[n,l]of a){let{profile:f}=await c.send("Profiler.stop",{},n);m.push({url:l,profile:f})}return m.sort((n,l)=>l.profile.samples.length-n.profile.samples.length),$(S(u),{recursive:!0}),m.forEach((n,l)=>{let f=l===0?u:u.replace(/(\.[^.]+)?$/,`.worker${l}$1`);if(P(f,JSON.stringify(n.profile)),console.log(` ${b(n.url)}: ${n.profile.samples.length} samples \u2192 ${f}`),i.verbose&&n.profile.samples.length>0)for(let h of k(n.profile,12))console.log(` ${h.pct.toFixed(1).padStart(5)}% ${h.name} ${h.url}`)}),console.log(" open in chrome devtools \u2192 Performance \u2192 Load profile to inspect."),0}finally{c.close()}}function T(e){console.error(` cpu-profile needs a CDP-enabled browser on :${e}.`),console.error(" the tenant worker can't be profiled via the JS Self-Profiler API (F28),"),console.error(" so the sim must expose Chrome remote debugging. easiest path \u2014"),console.error(" open the sim with a CDP port (it stays driveable over the bridge,"),console.error(" so you can scroll/navigate while profiling):"),console.error(""),console.error(` sootsim open <metro-port> --new --driver playwright --cdp-port ${e}`),console.error(` sootsim cpu-profile --cdp-port ${e} --match <metro-port>`),console.error(""),console.error(" or launch a standalone CDP Chrome (not bridge-driveable):"),console.error(""),console.error(' "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \\'),console.error(` --remote-debugging-port=${e} --user-data-dir=/tmp/sootsim-cdp \\`),console.error(" --no-sandbox --disable-gpu-sandbox --in-process-gpu \\"),console.error(" --use-gl=angle --use-angle=swiftshader --enable-unsafe-swiftshader \\"),console.error(' "http://localhost:5173/rn/<metro-port>" &'),console.error(""),console.error(" override the port with --cdp-port or $SOOTSIM_CDP_PORT.")}function b(e){return e?e.replace(/^https?:\/\/[^/]+/,"").replace(/\?.*$/,"").slice(-50):"(native)"}function k(e,i){let t=e.samples.length||1,r=new Map;for(let o of e.nodes){let s=o.callFrame,p=`${s.functionName||"(anonymous)"}@${b(s.url)}:${s.lineNumber}`,u=r.get(p)??{self:0,name:s.functionName||"(anonymous)",url:`${b(s.url)}:${s.lineNumber}`};u.self+=o.hitCount??0,r.set(p,u)}return[...r.values()].map(o=>({...o,pct:o.self/t*100})).sort((o,s)=>s.self-o.self).slice(0,i)}function d(e,i){let t=e.indexOf(i);if(!(t<0||t===e.length-1))return e[t+1]}export{D as runCpuProfile};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as T,b as N}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as T,b as N}from"./chunk-OBYYAT4F.js";import"./chunk-SA5RP334.js";import{c as O}from"./chunk-IQNZPHGD.js";import"./chunk-W3FBNBTX.js";import"./chunk-2U4CGOD6.js";import"./chunk-2FTVPI7F.js";import"./chunk-KY6NY6WN.js";import"./chunk-GU3MWKJY.js";import"./chunk-Y7ZMV3PG.js";import"./chunk-X4LYRBLZ.js";import{g as I,o as C,p as w,q as B}from"./chunk-4BXESMZ7.js";import{a as W}from"./chunk-SRA2TVCG.js";import{execFileSync as et,spawnSync as s}from"child_process";import{existsSync as c,mkdirSync as v,readFileSync as rt,rmSync as S,writeFileSync as U}from"fs";import{homedir as $}from"os";import{dirname as M,resolve as m}from"path";import{execFileSync as Y}from"child_process";import{chmodSync as K,mkdirSync as E,rmSync as X,writeFileSync as L}from"fs";import{dirname as D}from"path";var Q="dev.sootsim.daemon",_="SootSim Daemon",R="0.1.36";function F(t,e,r){let o=w(),n=B(),a=D(D(n)),y=D(n),u=`${a}/Resources`;X(o,{recursive:!0,force:!0}),E(C(),{recursive:!0}),E(y,{recursive:!0}),E(u,{recursive:!0}),L(`${a}/Info.plist`,z()),L(`${a}/PkgInfo`,"APPL????"),L(n,J(t,e,r)),K(n,493);try{Y("codesign",["--force","--sign","-","--deep",o],{stdio:"pipe"})}catch(i){let d=i instanceof Error?i.message:String(i);console.warn(` warning: ad-hoc codesign of ${o} failed: ${d}
|
|
3
3
|
the daemon will still run, but Login Items may show a generic name.`)}return{bundlePath:o,launcherPath:n}}function z(){return`<?xml version="1.0" encoding="UTF-8"?>
|
|
4
4
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
5
5
|
<plist version="1.0">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{f,m as T}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{f,m as T}from"./chunk-QNQO5VHO.js";import{I as A,J as D,K as O,L as x,M as v}from"./chunk-WHL7FMLG.js";import{c as S,e as $,g as N}from"./chunk-NQ4EDJV4.js";import"./chunk-SF6W3FRS.js";import"./chunk-KY6NY6WN.js";import"./chunk-4BXESMZ7.js";import"./chunk-SRA2TVCG.js";var H=["portals","sheets","layout","onlayout","animated","render","touch","yoga","all"],R="__sootsimShellAnimationTrace",q="__sootsimDebugAnimation";function L(){console.log(`
|
|
3
3
|
sootsim debug \u2014 drive __sootsimDebug from the terminal
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -167,7 +167,7 @@ examples:
|
|
|
167
167
|
} : null,
|
|
168
168
|
samples,
|
|
169
169
|
}
|
|
170
|
-
})()`}async function c(i,l){return N(i,l)}async function Y(i,l){let g=S(i,{port:l.port,stripBooleanFlags:["--pretty","--json","--help","-h"]}),u=g.positional;(!u[0]||i.includes("--help")||i.includes("-h"))&&(L(),process.exit(0));let P=g.wsPort,_=g.simId,n=!i.includes("--json"),y=_?` --sim ${_}`:"",k=u[0],r=u.slice(1);if(new Set(["state","js","eval","perf","sample-color"]).has(k)){let{runInspect:e}=await import("./inspect-
|
|
170
|
+
})()`}async function c(i,l){return N(i,l)}async function Y(i,l){let g=S(i,{port:l.port,stripBooleanFlags:["--pretty","--json","--help","-h"]}),u=g.positional;(!u[0]||i.includes("--help")||i.includes("-h"))&&(L(),process.exit(0));let P=g.wsPort,_=g.simId,n=!i.includes("--json"),y=_?` --sim ${_}`:"",k=u[0],r=u.slice(1);if(new Set(["state","js","eval","perf","sample-color"]).has(k)){let{runInspect:e}=await import("./inspect-UTHL2UK4.js");await e(["debug",...i],{port:l.port,verbose:l.verbose});return}let t=$(g);try{switch(k){case"enable":{let e=B(r[0]);e.length===0&&(console.error(` usage: sootsim debug enable <channel[,channel,...]>
|
|
171
171
|
known: ${H.join(", ")}`),process.exit(1));let o=await v(t,"enable",e);console.log(a({active:o},n));break}case"disable":{let e=B(r[0]),o=await v(t,"disable",e);console.log(a({active:o},n));break}case"toggle":{let e=r[0];e||(console.error(" usage: sootsim debug toggle <channel>"),process.exit(1));let o=await c(t,`window.__sootsimDebug.toggle(${JSON.stringify(e)})`);console.log(a({[e]:o},n));break}case"status":{let e=await A(t);console.log(a(e,n));break}case"channels":{let e=await c(t,"window.__sootsimDebug.channels()");console.log(a(e,n));break}case"flags":{let e=await D(t);console.log(a(e,n));break}case"snapshot":{let e=r[0],o=e?`window.__sootsimDebug.snapshot(${JSON.stringify(e)})`:"window.__sootsimDebug.snapshot()",s=await c(t,`(() => { const s = ${o}; if (!s) return null; return { label: s.label, at: s.at, size: s.nodes.size }; })()`);console.log(a(s,n));break}case"snapshots":{let e=await c(t,"window.__sootsimDebug.snapshots()");console.log(a(e,n));break}case"diff":{let e=r[0],o=r[1];(!e||!o)&&(console.error(" usage: sootsim debug diff <labelA> <labelB>"),process.exit(1));let s=`(() => {
|
|
172
172
|
const d = window.__sootsimDebug.diff(${JSON.stringify(e)}, ${JSON.stringify(o)});
|
|
173
173
|
if (!d) return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as S}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as S}from"./chunk-KTE2VIXH.js";import"./chunk-VX5CAWLC.js";import"./chunk-KXLYXKMA.js";import"./chunk-MUTDER75.js";import"./chunk-5OA35LZX.js";import"./chunk-OEV7EOMC.js";import"./chunk-CGB6KRKN.js";import"./chunk-MSU27JEW.js";import"./chunk-RVWJ3TAE.js";import"./chunk-QNQO5VHO.js";import"./chunk-WHL7FMLG.js";import"./chunk-4UQMPWDA.js";import"./chunk-NQ4EDJV4.js";import"./chunk-LT2X5ISU.js";import"./chunk-VALW4SKE.js";import"./chunk-QUEATUWT.js";import"./chunk-3A7SRWSQ.js";import"./chunk-VSRV5LFU.js";import"./chunk-SF6W3FRS.js";import"./chunk-OBYYAT4F.js";import"./chunk-SA5RP334.js";import"./chunk-W3FBNBTX.js";import"./chunk-2FTVPI7F.js";import"./chunk-KY6NY6WN.js";import"./chunk-PMAKUYYK.js";import"./chunk-X4LYRBLZ.js";import"./chunk-4BXESMZ7.js";import"./chunk-SRA2TVCG.js";import{spawn as D}from"child_process";import{existsSync as u,mkdirSync as _,writeFileSync as f,unlinkSync as I}from"fs";import{tmpdir as P}from"os";import{dirname as $,resolve as n,join as M}from"path";function E(){try{let e=import.meta.resolve("sootsim/detox");return $(e.startsWith("file://")?e.slice(7):e)}catch{return n(import.meta.dirname,"..","..","detox")}}var F=`
|
|
3
3
|
sootsim detox \u2014 run detox-style tests against a sootsim shell
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-KXLYXKMA.js";import{c as d,e as l,h as a}from"./chunk-NQ4EDJV4.js";import"./chunk-SF6W3FRS.js";import"./chunk-W3FBNBTX.js";import"./chunk-KY6NY6WN.js";import"./chunk-PMAKUYYK.js";import{f as c,g as r,h as g}from"./chunk-X4LYRBLZ.js";import"./chunk-4BXESMZ7.js";import"./chunk-SRA2TVCG.js";function h(){console.log(`
|
|
3
3
|
sootsim device \u2014 inspect or change the live device preset for a sim
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{c as E,e as R,h as b}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{c as E,e as R,h as b}from"./chunk-NQ4EDJV4.js";import{b as v}from"./chunk-SF6W3FRS.js";import"./chunk-KY6NY6WN.js";import"./chunk-4BXESMZ7.js";import"./chunk-SRA2TVCG.js";function F(e){return e.ts??e.t??0}function W(e){return typeof e.message=="string"&&e.message.length>0?e.message:Array.isArray(e.args)?e.args.map(s=>typeof s=="string"?s:JSON.stringify(s)).join(" "):""}var B=new Set(["timeline","network","react","console","screen"]);function P(){console.log(`
|
|
3
3
|
sootsim diagnose \u2014 compact "what just went wrong?" report
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-BTWXWUDB.js";import{a,b,c,d,e,f,g,h,i}from"./chunk-LT2X5ISU.js";import"./chunk-VALW4SKE.js";import"./chunk-QUEATUWT.js";import"./chunk-3A7SRWSQ.js";import"./chunk-VSRV5LFU.js";import"./chunk-SF6W3FRS.js";import"./chunk-4BXESMZ7.js";import"./chunk-SRA2TVCG.js";export{e as ALL_DRIVERS,i as buildDriverListRows,a as chromiumDriver,b as electronDriver,f as getAllDrivers,g as getDriver,c as playwrightDriver,h as resolveDriver,d as systemDriver};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as g}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as g}from"./chunk-I26R4PE2.js";import"./chunk-BTWXWUDB.js";import{a as v,g as h}from"./chunk-MSU27JEW.js";import"./chunk-RVWJ3TAE.js";import"./chunk-QNQO5VHO.js";import"./chunk-WHL7FMLG.js";import"./chunk-4UQMPWDA.js";import"./chunk-NQ4EDJV4.js";import{b as f,g as u}from"./chunk-LT2X5ISU.js";import{a as p}from"./chunk-VALW4SKE.js";import"./chunk-QUEATUWT.js";import{c as m}from"./chunk-3A7SRWSQ.js";import"./chunk-VSRV5LFU.js";import"./chunk-SF6W3FRS.js";import"./chunk-2FTVPI7F.js";import"./chunk-KY6NY6WN.js";import"./chunk-4BXESMZ7.js";import"./chunk-SRA2TVCG.js";function b(e){let r=e.indexOf("--port");if(r<0)return;let o=e[r+1],i=o?Number(o):Number.NaN;return(!Number.isInteger(i)||i<=0)&&(console.error(` invalid --port value: ${o||"(missing)"}`),process.exit(1)),i}async function O(e,r){let o=b(e)??r.port;return o?h(String(o)):void 0}async function $(e,r){(e.includes("--help")||e.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim electron \u2014 launch the desktop companion
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -15,4 +15,4 @@ examples:
|
|
|
15
15
|
sootsim electron
|
|
16
16
|
sootsim electron --port 5173
|
|
17
17
|
sootsim electron --profile qa
|
|
18
|
-
`),process.exit(0));let o=e.indexOf("--driver"),i=o>=0?e[o+1]:void 0,t=e.find((n,a)=>e[a-1]==="--profile"),d=e.includes("--ephemeral");t&&d&&(console.error(" sootsim electron: --profile cannot be combined with --ephemeral"),process.exit(1));let x=t?m(t).id:void 0,s=i||r.driver,l=f;if(s){let n=u(s);n||(console.error(` unknown driver "${s}" \u2014 run \`sootsim list --drivers\``),process.exit(1)),l=n}if(l.id==="electron"){let n=p();if(!n){if(v(),process.stdin.isTTY&&process.env.CI!=="1"&&process.env.SOOTSIM_NO_PROMPT!=="1"&&await g("run sootsim install-desktop now?",!0)){console.log();let{runInstallDesktop:I}=await import("./install-desktop-
|
|
18
|
+
`),process.exit(0));let o=e.indexOf("--driver"),i=o>=0?e[o+1]:void 0,t=e.find((n,a)=>e[a-1]==="--profile"),d=e.includes("--ephemeral");t&&d&&(console.error(" sootsim electron: --profile cannot be combined with --ephemeral"),process.exit(1));let x=t?m(t).id:void 0,s=i||r.driver,l=f;if(s){let n=u(s);n||(console.error(` unknown driver "${s}" \u2014 run \`sootsim list --drivers\``),process.exit(1)),l=n}if(l.id==="electron"){let n=p();if(!n){if(v(),process.stdin.isTTY&&process.env.CI!=="1"&&process.env.SOOTSIM_NO_PROMPT!=="1"&&await g("run sootsim install-desktop now?",!0)){console.log();let{runInstallDesktop:I}=await import("./install-desktop-XQYE3QYC.js");await I(["--yes"]),n=p()}n||process.exit(1)}console.log(` launching ${n.path}`)}let w=await O(e,r),c=await l.launch({url:w,device:r.device,profileId:x,ephemeralProfile:d});c.launched||(console.error(` ${c.message}`),process.exit(1)),console.log(` ${c.message}`)}export{O as resolveElectronLaunchUrl,$ as runElectron};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as c,b as d,c as e,d as f}from"./chunk-KTE2VIXH.js";import"./chunk-VX5CAWLC.js";import"./chunk-KXLYXKMA.js";import"./chunk-MUTDER75.js";import"./chunk-5OA35LZX.js";import"./chunk-OEV7EOMC.js";import{d as a,e as b}from"./chunk-CGB6KRKN.js";import"./chunk-MSU27JEW.js";import"./chunk-RVWJ3TAE.js";import"./chunk-QNQO5VHO.js";import"./chunk-WHL7FMLG.js";import"./chunk-4UQMPWDA.js";import"./chunk-NQ4EDJV4.js";import"./chunk-LT2X5ISU.js";import"./chunk-VALW4SKE.js";import"./chunk-QUEATUWT.js";import"./chunk-3A7SRWSQ.js";import"./chunk-VSRV5LFU.js";import"./chunk-SF6W3FRS.js";import"./chunk-OBYYAT4F.js";import"./chunk-SA5RP334.js";import"./chunk-W3FBNBTX.js";import"./chunk-2FTVPI7F.js";import"./chunk-KY6NY6WN.js";import"./chunk-PMAKUYYK.js";import"./chunk-X4LYRBLZ.js";import"./chunk-4BXESMZ7.js";import"./chunk-SRA2TVCG.js";export{c as discoverSootsimUrl,e as hoistLeadingSimFlag,a as parseFlowFile,f as runFlow,d as runFlowPlayback,b as validateFlowFile};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a,b,c}from"./chunk-IQNZPHGD.js";import"./chunk-W3FBNBTX.js";import"./chunk-2U4CGOD6.js";import"./chunk-2FTVPI7F.js";import"./chunk-KY6NY6WN.js";import"./chunk-GU3MWKJY.js";import"./chunk-Y7ZMV3PG.js";import"./chunk-X4LYRBLZ.js";import"./chunk-4BXESMZ7.js";import"./chunk-SRA2TVCG.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as n,c as r,d as l}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.121 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as n,c as r,d as l}from"./chunk-VSKLWCFM.js";import"./chunk-SF6W3FRS.js";import"./chunk-SRA2TVCG.js";function a(t){let s=t[0]??"list";if(s==="reset"){t[1]==="global"?(r(),console.log(" cleared global hint state")):(n(),console.log(" cleared hint state for this CLI identity"));return}if(s==="list"){let e=l();if(!e.length){console.log(" no hints registered");return}let i=Math.max(...e.map(o=>o.id.length));console.log(" registered hints:");for(let o of e){let c=typeof o.frequency=="string"?o.frequency:`cooldown ${o.frequency.cooldownMs}ms`;console.log(` ${o.id.padEnd(i)} ${c}`)}console.log(""),console.log(" env overrides:"),console.log(" SOOTSIM_HINTS=off suppress all hints"),console.log(" SOOTSIM_HINTS=always show every hint every time");return}console.error(` unknown subcommand: ${s}`),console.error(" usage:"),console.error(" sootsim hints list show registered hints"),console.error(" sootsim hints reset [global] clear shown-state"),process.exit(1)}export{a as runHints};
|