sootsim 0.1.295 → 0.1.296

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.
Files changed (182) hide show
  1. package/README.md +13 -4
  2. package/dist-cli/bin.js +5 -5
  3. package/dist-cli/chunks/{agent-ASAYE5YY.js → agent-3F4K6MQK.js} +2 -2
  4. package/dist-cli/chunks/{agent-wrapper-K2D4Q5AA.js → agent-wrapper-5LLVCQRZ.js} +2 -2
  5. package/dist-cli/chunks/app-fonts-LPTY7A5G.js +4 -0
  6. package/dist-cli/chunks/{assert-4FKHHDY7.js → assert-R2ZUXEMS.js} +2 -2
  7. package/dist-cli/chunks/{auth-BQPOPEFK.js → auth-CA62Q6IS.js} +2 -2
  8. package/dist-cli/chunks/{beta-3LNYONDF.js → beta-4AXSOQLU.js} +2 -2
  9. package/dist-cli/chunks/{camera-Y5MZ5V4L.js → camera-Y4RBIONE.js} +2 -2
  10. package/dist-cli/chunks/{chunk-L7V46673.js → chunk-222Y7NQA.js} +1 -1
  11. package/dist-cli/chunks/{chunk-6VF477QO.js → chunk-2LQOLMRK.js} +1 -1
  12. package/dist-cli/chunks/{chunk-S6BEA6OC.js → chunk-2XUKWIAL.js} +1 -1
  13. package/dist-cli/chunks/{chunk-XQRUWC3F.js → chunk-3PAZJSIG.js} +2 -2
  14. package/dist-cli/chunks/{chunk-UAZ3NVKO.js → chunk-4MDLYOEI.js} +2 -2
  15. package/dist-cli/chunks/{chunk-MEYVMDZR.js → chunk-4NFGOGB7.js} +2 -2
  16. package/dist-cli/chunks/chunk-54TQ3ZGI.js +30 -0
  17. package/dist-cli/chunks/chunk-5FNPAMP4.js +125 -0
  18. package/dist-cli/chunks/{chunk-FH7DQ2HB.js → chunk-6C24WCDK.js} +2 -2
  19. package/dist-cli/chunks/{chunk-T2DHHOWE.js → chunk-74FOMZP7.js} +2 -2
  20. package/dist-cli/chunks/{chunk-K7LQB4IF.js → chunk-7GQWF7HE.js} +1 -1
  21. package/dist-cli/chunks/{chunk-RNW36VM5.js → chunk-7V3JNANH.js} +4 -4
  22. package/dist-cli/chunks/{chunk-SU5WQ4SQ.js → chunk-7YQXQSG7.js} +1 -1
  23. package/dist-cli/chunks/{chunk-DKS75M2I.js → chunk-AUBP44CY.js} +2 -2
  24. package/dist-cli/chunks/chunk-B2FB6IYX.js +4 -0
  25. package/dist-cli/chunks/{chunk-E6DZD6JD.js → chunk-B2LDO55K.js} +1 -1
  26. package/dist-cli/chunks/{chunk-XCCDO6I2.js → chunk-BVWIR4CD.js} +1 -1
  27. package/dist-cli/chunks/{chunk-UBIGBHUM.js → chunk-C462URRQ.js} +2 -2
  28. package/dist-cli/chunks/{chunk-CVDC2ER2.js → chunk-CAAADPRH.js} +2 -2
  29. package/dist-cli/chunks/{chunk-ETDZQUGI.js → chunk-CDCVWGNU.js} +3 -3
  30. package/dist-cli/chunks/{chunk-JPPGM6RZ.js → chunk-CS23DQB2.js} +2 -2
  31. package/dist-cli/chunks/chunk-DUYKBCM7.js +4 -0
  32. package/dist-cli/chunks/chunk-EISE56VD.js +6 -0
  33. package/dist-cli/chunks/{chunk-TNKZWHD2.js → chunk-EJ6BAJKX.js} +1 -1
  34. package/dist-cli/chunks/chunk-F2MS365Z.js +4 -0
  35. package/dist-cli/chunks/{chunk-I4QJVACX.js → chunk-FROCFR77.js} +1 -1
  36. package/dist-cli/chunks/{chunk-RV67EC7L.js → chunk-FUPQIX4U.js} +2 -2
  37. package/dist-cli/chunks/{chunk-U2QPKFOY.js → chunk-G2SO5FPN.js} +2 -2
  38. package/dist-cli/chunks/chunk-GG5PWLGC.js +4 -0
  39. package/dist-cli/chunks/chunk-GG6XOQ5P.js +15 -0
  40. package/dist-cli/chunks/chunk-HSGS2U7P.js +6 -0
  41. package/dist-cli/chunks/{chunk-7GZ6XF2B.js → chunk-IR3DUBRF.js} +2 -2
  42. package/dist-cli/chunks/chunk-LHUY46GE.js +4 -0
  43. package/dist-cli/chunks/{chunk-WFYQNZTT.js → chunk-MDBR4XTV.js} +3 -3
  44. package/dist-cli/chunks/{chunk-UWFAWMPE.js → chunk-MQ6QX46T.js} +2 -2
  45. package/dist-cli/chunks/chunk-N3FZRJT7.js +4 -0
  46. package/dist-cli/chunks/{chunk-QPA44BZC.js → chunk-NEARYPSC.js} +11 -11
  47. package/dist-cli/chunks/chunk-P7HBJBHH.js +4 -0
  48. package/dist-cli/chunks/{chunk-7FYIMLU4.js → chunk-PEUWZRXA.js} +17 -17
  49. package/dist-cli/chunks/{chunk-X5FTDIHQ.js → chunk-QIDFGREY.js} +1 -1
  50. package/dist-cli/chunks/{chunk-4NJIXTVJ.js → chunk-R65XMN4D.js} +1 -1
  51. package/dist-cli/chunks/{chunk-Y6FJ5FCY.js → chunk-S5Z4HKWX.js} +1 -1
  52. package/dist-cli/chunks/chunk-SUJSGGSS.js +23 -0
  53. package/dist-cli/chunks/{chunk-BX2NUJGR.js → chunk-TIOPG6QZ.js} +1 -1
  54. package/dist-cli/chunks/chunk-WJVBD2UL.js +9 -0
  55. package/dist-cli/chunks/{chunk-3WQISFAK.js → chunk-X7B5KJ6N.js} +1 -1
  56. package/dist-cli/chunks/{chunk-2RI6RC6I.js → chunk-XMVVZCIM.js} +2 -2
  57. package/dist-cli/chunks/chunk-ZIBKGZJD.js +4 -0
  58. package/dist-cli/chunks/chunk-ZPBIHFQW.js +12 -0
  59. package/dist-cli/chunks/cleanup-4RSKYPQ7.js +25 -0
  60. package/dist-cli/chunks/{cli-version-I6BOBK57.js → cli-version-VZFF7GGM.js} +2 -2
  61. package/dist-cli/chunks/compat-FABLN4UI.js +20 -0
  62. package/dist-cli/chunks/config-74J37LKC.js +13 -0
  63. package/dist-cli/chunks/control-VBK32Y7F.js +4 -0
  64. package/dist-cli/chunks/daemon-VFO7LRR4.js +4 -0
  65. package/dist-cli/chunks/{debug-VG2JOF6H.js → debug-AOYA2CLR.js} +3 -3
  66. package/dist-cli/chunks/{desktop-GH2POW6X.js → desktop-G7XWDCTM.js} +3 -3
  67. package/dist-cli/chunks/{detox-X6T265L5.js → detox-QXJ3L2ZI.js} +2 -2
  68. package/dist-cli/chunks/{device-VDOOSAXO.js → device-NZZ5ZT3Q.js} +2 -2
  69. package/dist-cli/chunks/{diagnose-6D6WNAGL.js → diagnose-5CAEJ42M.js} +2 -2
  70. package/dist-cli/chunks/disk-cleanup-GZSUZJ6Y.js +4 -0
  71. package/dist-cli/chunks/drivers-OLJCUSPO.js +4 -0
  72. package/dist-cli/chunks/{film-UZWYISAB.js → film-C25VRUNC.js} +3 -3
  73. package/dist-cli/chunks/flow-IW3WUF5D.js +4 -0
  74. package/dist-cli/chunks/help-GEVJF2DA.js +4 -0
  75. package/dist-cli/chunks/{hidden-runtime-alias-UGMJ4LJX.js → hidden-runtime-alias-NSLIK6XT.js} +2 -2
  76. package/dist-cli/chunks/home-paths-OC6JZXIM.js +4 -0
  77. package/dist-cli/chunks/inspect-KXJNI7CU.js +4 -0
  78. package/dist-cli/chunks/install-desktop-IYWPRFPB.js +4 -0
  79. package/dist-cli/chunks/{login-K43TRKUC.js → login-LB4TMM4T.js} +4 -4
  80. package/dist-cli/chunks/{logout-L43CR6M2.js → logout-33IOBD4X.js} +2 -2
  81. package/dist-cli/chunks/{maestro-7VZFYLNS.js → maestro-EEVXX536.js} +3 -3
  82. package/dist-cli/chunks/{maestro-generate-PMYHUVH4.js → maestro-generate-ICPWVXGA.js} +3 -3
  83. package/dist-cli/chunks/{mode-QQS5XFFX.js → mode-6IXOZDK3.js} +2 -2
  84. package/dist-cli/chunks/{optional-demo-registry-2V327HDG.js → optional-demo-registry-KBMC7SNI.js} +2 -2
  85. package/dist-cli/chunks/{perf-CL5P3JVP.js → perf-CTTJSAIJ.js} +2 -2
  86. package/dist-cli/chunks/{permissions-RGVCEC2B.js → permissions-BFQS4DIY.js} +2 -2
  87. package/dist-cli/chunks/{record-ASW6UFQT.js → record-MJR5ELHE.js} +3 -3
  88. package/dist-cli/chunks/report-issue-FMJRNDKH.js +29 -0
  89. package/dist-cli/chunks/runtime-PV4HH2OB.js +4 -0
  90. package/dist-cli/chunks/{screenshot-command-FEJGQMQF.js → screenshot-command-MGNASAXR.js} +3 -3
  91. package/dist-cli/chunks/{screenshots-capture-3JPZ5WMX.js → screenshots-capture-N6PANAVT.js} +2 -2
  92. package/dist-cli/chunks/serve-RS6TIO7U.js +44 -0
  93. package/dist-cli/chunks/setup-MFYGYR2F.js +32 -0
  94. package/dist-cli/chunks/{skills-T6EEX5P6.js → skills-TD35LDKK.js} +2 -2
  95. package/dist-cli/chunks/{storage-ZFUK4EQA.js → storage-VCFXDJNO.js} +2 -2
  96. package/dist-cli/chunks/store-VNSTKYBQ.js +4 -0
  97. package/dist-cli/chunks/telemetry-GPNHSYFF.js +4 -0
  98. package/dist-cli/chunks/{timeline-EIURYQVC.js → timeline-UJCZAWJV.js} +2 -2
  99. package/dist-cli/chunks/upgrade-S24NH4YG.js +7 -0
  100. package/dist-cli/chunks/upload-CCKAO2M5.js +4 -0
  101. package/dist-cli/chunks/version-IVPWT2ZQ.js +6 -0
  102. package/dist-cli/chunks/web-6BMWAWJL.js +4 -0
  103. package/dist-cli/chunks/{what-happened-L5ZN7S5G.js → what-happened-HRHB6ETL.js} +2 -2
  104. package/dist-lib/agent-daemon-client.cjs +1 -1
  105. package/dist-lib/agent-events.cjs +1 -1
  106. package/dist-lib/agent-identity.cjs +1 -1
  107. package/dist-lib/agent-sessions.cjs +1 -1
  108. package/dist-lib/attached-projects.cjs +1 -1
  109. package/dist-lib/auth/shared-session.cjs +1 -1
  110. package/dist-lib/backend-origin.cjs +1 -1
  111. package/dist-lib/beta.cjs +1 -1
  112. package/dist-lib/beta.mjs +1 -1
  113. package/dist-lib/bridge-constants.cjs +1 -1
  114. package/dist-lib/cli-constants.cjs +1 -1
  115. package/dist-lib/config.cjs +3 -2
  116. package/dist-lib/detox/index.cjs +1 -1
  117. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  118. package/dist-lib/home-paths.cjs +41 -14
  119. package/dist-lib/host/bridge-host.cjs +215 -84
  120. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  121. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  122. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  123. package/dist-lib/host/websocket-proxy.cjs +1 -1
  124. package/dist-lib/index.cjs +2 -2
  125. package/dist-lib/jump-to-source-babel.cjs +1 -1
  126. package/dist-lib/menu.cjs +2 -3
  127. package/dist-lib/menu.mjs +2 -3
  128. package/dist-lib/metro.cjs +1 -1
  129. package/dist-lib/profiles.cjs +1 -1
  130. package/dist-lib/render-mode.cjs +1 -1
  131. package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
  132. package/dist-lib/sdk.cjs +1 -1
  133. package/dist-lib/sdk.mjs +1 -1
  134. package/dist-lib/skills.cjs +366 -154
  135. package/dist-lib/vite.cjs +2 -2
  136. package/package.json +2 -1
  137. package/scripts/postinstall.cjs +2 -78
  138. package/skills/contrast/SKILL.md +1 -0
  139. package/skills/sootsim-setup/SKILL.md +25 -0
  140. package/src/config.ts +4 -0
  141. package/src/disk-cleanup.ts +5 -26
  142. package/src/home-paths.ts +58 -23
  143. package/src/host/bridge-host.ts +152 -57
  144. package/src/menu.ts +0 -1
  145. package/src/runtime-assets.ts +35 -0
  146. package/src/runtime-delivery.ts +5 -8
  147. package/src/skills/builtin/compat-check.ts +32 -65
  148. package/dist-cli/chunks/app-fonts-36N7AVQ3.js +0 -4
  149. package/dist-cli/chunks/chunk-4ODQVUBH.js +0 -6
  150. package/dist-cli/chunks/chunk-4V2KYK5T.js +0 -4
  151. package/dist-cli/chunks/chunk-7GVBNEQ3.js +0 -9
  152. package/dist-cli/chunks/chunk-COEKUTWV.js +0 -4
  153. package/dist-cli/chunks/chunk-D2DU3ROC.js +0 -6
  154. package/dist-cli/chunks/chunk-DXCQP3VE.js +0 -12
  155. package/dist-cli/chunks/chunk-HT6WYHQL.js +0 -6
  156. package/dist-cli/chunks/chunk-I7AWRAXM.js +0 -125
  157. package/dist-cli/chunks/chunk-OQ7SSRYK.js +0 -4
  158. package/dist-cli/chunks/chunk-QKZVANQG.js +0 -31
  159. package/dist-cli/chunks/chunk-TGYZYSDB.js +0 -15
  160. package/dist-cli/chunks/chunk-TXURXDZN.js +0 -4
  161. package/dist-cli/chunks/chunk-ZJZYGLJ2.js +0 -4
  162. package/dist-cli/chunks/cleanup-SMCA44QC.js +0 -25
  163. package/dist-cli/chunks/compat-FCM2ZQLV.js +0 -35
  164. package/dist-cli/chunks/config-PZSANSAI.js +0 -13
  165. package/dist-cli/chunks/control-PM554MHE.js +0 -4
  166. package/dist-cli/chunks/daemon-5KXEZZLJ.js +0 -4
  167. package/dist-cli/chunks/disk-cleanup-HTOIDDKK.js +0 -4
  168. package/dist-cli/chunks/drivers-CKLBQDXG.js +0 -4
  169. package/dist-cli/chunks/flow-VOS3RKB3.js +0 -4
  170. package/dist-cli/chunks/help-LVMDERFQ.js +0 -4
  171. package/dist-cli/chunks/home-paths-3LYT47SY.js +0 -4
  172. package/dist-cli/chunks/inspect-FHCSOWGQ.js +0 -4
  173. package/dist-cli/chunks/install-desktop-KLMCVDGZ.js +0 -4
  174. package/dist-cli/chunks/runtime-GB3ZE27C.js +0 -4
  175. package/dist-cli/chunks/serve-SYXRHRQO.js +0 -44
  176. package/dist-cli/chunks/setup-QLGL6MC6.js +0 -99
  177. package/dist-cli/chunks/store-WCDTSWJC.js +0 -4
  178. package/dist-cli/chunks/telemetry-D7SL4WW7.js +0 -4
  179. package/dist-cli/chunks/upgrade-Q7ZGWMCJ.js +0 -6
  180. package/dist-cli/chunks/upload-7XEICYJX.js +0 -4
  181. package/dist-cli/chunks/version-PDG4V26R.js +0 -6
  182. package/dist-cli/chunks/web-AMW2TRWB.js +0 -4
@@ -1,7 +1,7 @@
1
- /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.296 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a as de}from"./chunk-JPPGM6RZ.js";import{b as Et,c as Pt,k as At}from"./chunk-TGYZYSDB.js";import{a as oe,b as D,c as A,d as Ie,e as ae,f as X,g as pe,h as ye,i as Ft,j as Ot,k as Te,l as Rt}from"./chunk-UBIGBHUM.js";import{A as bt,B as wt,C as $t,F as xt,H as St,J as ue,K as vt,Q as Le,a as ke,b as nt,c as rt,d as it,e as at,f as lt,g as ct,h as dt,i as ut,j as pt,k as Be,l as Ce,r as je,s as mt,t as ft,u as ge,v as gt,w as _e,x as qe,y as yt,z as ht}from"./chunk-S6BEA6OC.js";import{a as kt,f as _t,h as It,j as Tt,k as Mt,l as Nt,m as ce}from"./chunk-7GZ6XF2B.js";import{a as ot}from"./chunk-ZJZYGLJ2.js";import{a as Q}from"./chunk-FH7DQ2HB.js";import{c as st}from"./chunk-K7LQB4IF.js";import{c as Ae,e as De}from"./chunk-I7AWRAXM.js";function We(e){return`(async () => {
4
+ import{a as de}from"./chunk-CS23DQB2.js";import{b as Et,c as Pt,l as At}from"./chunk-GG6XOQ5P.js";import{a as oe,b as D,c as A,d as Ie,e as ae,f as X,g as pe,h as ye,i as Ft,j as Ot,k as Te,l as Rt}from"./chunk-C462URRQ.js";import{A as wt,B as $t,C as xt,F as St,H as vt,J as ue,K as kt,Q as Le,a as ke,b as rt,c as it,d as at,e as lt,f as ct,g as dt,h as ut,i as pt,j as mt,k as Be,l as Ce,r as je,s as ft,t as gt,u as ge,v as yt,w as _e,x as qe,y as ht,z as bt}from"./chunk-2XUKWIAL.js";import{a as nt,f as _t,h as It,j as Tt,k as Mt,l as Nt,m as ce}from"./chunk-IR3DUBRF.js";import{a as ot}from"./chunk-DUYKBCM7.js";import{a as Q}from"./chunk-6C24WCDK.js";import{c as st}from"./chunk-7GQWF7HE.js";import{c as Ae,e as De}from"./chunk-5FNPAMP4.js";function We(e){return`(async () => {
5
5
  const bridge = globalThis.SootSim && globalThis.SootSim.bridges && globalThis.SootSim.bridges.hotRemount
6
6
  if (!bridge || typeof bridge.reloadExternalApp !== 'function') return false
7
7
  await bridge.reloadExternalApp({ resetStorage: ${e?"true":"false"} })
@@ -459,15 +459,15 @@ import{a as de}from"./chunk-JPPGM6RZ.js";import{b as Et,c as Pt,k as At}from"./c
459
459
  }
460
460
  }
461
461
  return { strategy: 'none' }
462
- })()`});if(!c||!("node"in c))return c;let l=c.node,f=l.absolutePosition.x+l.layout.width/2,p=l.absolutePosition.y+l.layout.height/2,h=c.screen??null,$=!!h&&(f<0||p<0||f>h.width||p>h.height);return{...c,cx:f,cy:p,...$?{offscreen:!0,screen:h}:{},target:{id:l.id,testID:l.testID,text:c.strategy==="text"?t:l.text,type:l.type}}}})}async function zt(e,t={args:[]}){let s=await rt(e);if(D(t.args)){A(s);return}console.log(` nodes: ${s.nodes}`)}function ze(e,t){let s=e.indexOf(t);return s>=0&&s+1<e.length?e[s+1]:null}async function Xt(e){let{bridge:t,args:s,positional:i}=e,c=s.includes("--verbose")||s.includes("-v"),l=D(s),f=c&&!l,p=s.includes("--watch")||s.includes("-w"),h=1e3,$=s.includes("--compact"),b=s.includes("--no-xy"),k=s.includes("--no-clipped"),N=s.includes("--include-occluded"),M=ze(s,"--testid-like"),j=ze(s,"--only"),O=ze(s,"--subtree"),d=i[1]&&!i[1].startsWith("-")?i[1]:void 0,q=d?/[*?]/.test(d):!1,R=!q&&!j?d:void 0,P=j??(q?d:void 0),J=async()=>{await pe(t,{verbose:f});let _=await lt(t,{describe:!0,verbose:c,filter:R||"",testIdLike:M||void 0,onlyGlob:P||void 0,subtreeRoot:O||void 0,compact:$,hideXy:b,includeOccluded:N}),F=_?.tree,H=_?.shell,K=_?.keyboard;if(l){A({shell:H,tree:F??"",keyboard:K});return}if(H&&typeof H=="object"){let C=[H.state?`state=${H.state}`:null,H.activeApp?`app=${H.activeApp}`:null,H.showSwitcher?"switcher":null,H.switcherPhase&&H.switcherPhase!=="idle"?`phase=${H.switcherPhase}`:null].filter(Boolean);C.length>0&&console.log(` shell: ${C.join(" ")}`)}if(typeof F=="string"&&F.startsWith("__SUBTREE_NOT_FOUND__:")){let C=F.slice(22);console.log(` subtree root not found: ${C}`),Q("subtree-root-not-found",C);return}if(!F){let C=_?.nodeCount??0;console.log(" no matching nodes found"),!(R||M||P||O)&&C<10&&Q("app-still-loading",C);return}let ee=F,te=0;if(k&&typeof ee=="string"){let C=ee.split(`
462
+ })()`});if(!c||!("node"in c))return c;let l=c.node,f=l.absolutePosition.x+l.layout.width/2,p=l.absolutePosition.y+l.layout.height/2,h=c.screen??null,$=!!h&&(f<0||p<0||f>h.width||p>h.height);return{...c,cx:f,cy:p,...$?{offscreen:!0,screen:h}:{},target:{id:l.id,testID:l.testID,text:c.strategy==="text"?t:l.text,type:l.type}}}})}async function zt(e,t={args:[]}){let s=await it(e);if(D(t.args)){A(s);return}console.log(` nodes: ${s.nodes}`)}function ze(e,t){let s=e.indexOf(t);return s>=0&&s+1<e.length?e[s+1]:null}async function Xt(e){let{bridge:t,args:s,positional:i}=e,c=s.includes("--verbose")||s.includes("-v"),l=D(s),f=c&&!l,p=s.includes("--watch")||s.includes("-w"),h=1e3,$=s.includes("--compact"),b=s.includes("--no-xy"),k=s.includes("--no-clipped"),N=s.includes("--include-occluded"),M=ze(s,"--testid-like"),j=ze(s,"--only"),O=ze(s,"--subtree"),d=i[1]&&!i[1].startsWith("-")?i[1]:void 0,q=d?/[*?]/.test(d):!1,R=!q&&!j?d:void 0,P=j??(q?d:void 0),J=async()=>{await pe(t,{verbose:f});let _=await ct(t,{describe:!0,verbose:c,filter:R||"",testIdLike:M||void 0,onlyGlob:P||void 0,subtreeRoot:O||void 0,compact:$,hideXy:b,includeOccluded:N}),F=_?.tree,H=_?.shell,K=_?.keyboard;if(l){A({shell:H,tree:F??"",keyboard:K});return}if(H&&typeof H=="object"){let C=[H.state?`state=${H.state}`:null,H.activeApp?`app=${H.activeApp}`:null,H.showSwitcher?"switcher":null,H.switcherPhase&&H.switcherPhase!=="idle"?`phase=${H.switcherPhase}`:null].filter(Boolean);C.length>0&&console.log(` shell: ${C.join(" ")}`)}if(typeof F=="string"&&F.startsWith("__SUBTREE_NOT_FOUND__:")){let C=F.slice(22);console.log(` subtree root not found: ${C}`),Q("subtree-root-not-found",C);return}if(!F){let C=_?.nodeCount??0;console.log(" no matching nodes found"),!(R||M||P||O)&&C<10&&Q("app-still-loading",C);return}let ee=F,te=0;if(k&&typeof ee=="string"){let C=ee.split(`
463
463
  `),le=[];for(let Se of C){if(Se.includes("(clipped:")){te+=1;continue}le.push(Se)}ee=le.join(`
464
464
  `)}console.log(ee),te>0&&console.log(` ${te} clipped row(s) hidden (omit --no-clipped to see)`);let ie=R||M||P||O;if((R||M||P)&&!p&&Q("describe-filter-context"),!ie&&!p&&F.split(`
465
465
  `).length>=80&&Q("describe-use-filters"),K&&K.visible){let C=K.spec,le=[C?.keyboardType?`type=${C.keyboardType}`:null,C?.returnKeyType&&C.returnKeyType!=="default"?`return=${C.returnKeyType}`:null,K.mode!=="letters"?`mode=${K.mode}`:null,K.shifted?"shift":null,K.capsLock?"caps":null,C?.autoCapitalize&&C.autoCapitalize!=="sentences"?`autoCap=${C.autoCapitalize}`:null,K.accessoryBarId?`accessory=${K.accessoryBarId}`:null].filter(Boolean);console.log(`
466
466
  keyboard: ${le.join(" ")||"visible"}`)}};if(p)for(console.log(` watching... (Ctrl+C to stop)
467
- `);;)console.clear(),await J(),await oe(h);else await J()}var rs=["SOOTSIM_AGENT","TM_SESSION","CLAUDECODE","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_SESSION_ID","CODEX_THREAD_ID","CURSOR_TRACE_ID","AIDER_MODEL"];function fe(){if(process.env.SOOTSIM_AGENT==="0")return!1;for(let e of rs){let t=process.env[e];if(t&&t.trim()&&t!=="0")return!0}return!1}async function Vt(e){let{bridge:t,args:s,effectiveArgs:i,positional:c,inspectUsage:l}=e,f=_=>{let F=i.indexOf(_);return F>=0&&F+1<i.length?i[F+1]:null},p=_=>i.includes(_),h=f("--testid")||f("--test-id"),$=f("--role"),b=f("--type"),k=f("--text"),N=p("--pressable"),M=p("--visible"),j=p("--interactive-targets")||p("--actions"),O=!h&&!$&&!b&&!k&&!N&&!M&&!j?c[1]:null,d=k??O,q=await pt(t,{testId:h,role:$,type:b,text:d,pressable:N,visible:M,interactive:j});q||(console.error(l("find","<text> | --text <t> | --testid <id> | --role <r> | --type <t> | --pressable | --visible | --interactive-targets")),process.exit(1));let{mode:R,result:P}=q,J=D(s),U=s.includes("--verbose")||s.includes("--dump");if(J)R==="interactive-targets"&&Array.isArray(P)?A(Be(P).map(_=>({..._,tap:Ce(_)}))):A(P??null);else if(Array.isArray(P))if(P.length===0){console.log(` no ${R} nodes found`);let _=await t.send({type:"evaluate",code:"(async () => (await window.__sootsimTest?.getNodeCount?.()) || 0)()"});typeof _=="number"&&_<10&&Q("app-still-loading",_)}else if(R==="interactive-targets"){let _=Be(P);console.log(` found ${_.length} interactive target${_.length===1?"":"s"} (sorted by score):`);for(let F of _.slice(0,20)){let H=F.absolutePosition?`@(${Math.round(F.absolutePosition.x)},${Math.round(F.absolutePosition.y)})`:"",K=F.layout?`${Math.round(F.layout.width)}x${Math.round(F.layout.height)}`:"?x?",ee=F.text?` "${F.text.slice(0,30)}"`:"",te=F.testID?` #${F.testID}`:"",ie=F.accessibilityLabel?` \u24D8"${String(F.accessibilityLabel).slice(0,24)}"`:"",xe=F.accessibilityRole?`[${F.accessibilityRole}]`:F.type,C=Ce(F);console.log(` ${xe}${ee}${ie}${te} ${K} ${H}`),console.log(` \u2192 ${C}`),U&&console.log(Xe(JSON.stringify(F,null,2)," "))}_.length>20&&console.log(` ... and ${_.length-20} more`)}else{console.log(` found ${P.length} node${P.length===1?"":"s"} (${R}):`);for(let _ of P.slice(0,20)){let F=_.absolutePosition?`@(${Math.round(_.absolutePosition.x)},${Math.round(_.absolutePosition.y)})`:"",H=_.layout?`${Math.round(_.layout.width)}x${Math.round(_.layout.height)}`:"?x?",K=_.text?` "${_.text.slice(0,30)}"`:"",ee=_.testID?` #${_.testID}`:"",te=_.pressable?" (tap)":"",ie=_.accessibilityRole?`[${_.accessibilityRole}]`:_.type;console.log(` ${ie}${K}${ee} ${H} ${F}${te}`),U&&console.log(Xe(JSON.stringify(_,null,2)," "))}P.length>20&&console.log(` ... and ${P.length-20} more`)}else if(P==null)console.log(` not found: ${d||h||$||b||""||R}`),h&&Q("wait-selector-for-missing-testid",h);else{let _=P;if(_.type&&_.absolutePosition){let F=`@(${Math.round(_.absolutePosition.x)},${Math.round(_.absolutePosition.y)})`,H=_.layout?`${Math.round(_.layout.width)}x${Math.round(_.layout.height)}`:"?x?",K=_.text?` "${_.text.slice(0,40)}"`:"",ee=_.testID?` #${_.testID}`:"",te=_.pressable?" (tap)":"",ie=_.accessibilityRole?`[${_.accessibilityRole}]`:_.type;console.log(` ${ie}${K}${ee} ${H} ${F}${te}`),U&&console.log(Xe(JSON.stringify(_,null,2)," "))}else console.log(JSON.stringify(P,null,2))}}function Xe(e,t){return e.split(`
467
+ `);;)console.clear(),await J(),await oe(h);else await J()}var rs=["SOOTSIM_AGENT","TM_SESSION","CLAUDECODE","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_SESSION_ID","CODEX_THREAD_ID","CURSOR_TRACE_ID","AIDER_MODEL"];function fe(){if(process.env.SOOTSIM_AGENT==="0")return!1;for(let e of rs){let t=process.env[e];if(t&&t.trim()&&t!=="0")return!0}return!1}async function Vt(e){let{bridge:t,args:s,effectiveArgs:i,positional:c,inspectUsage:l}=e,f=_=>{let F=i.indexOf(_);return F>=0&&F+1<i.length?i[F+1]:null},p=_=>i.includes(_),h=f("--testid")||f("--test-id"),$=f("--role"),b=f("--type"),k=f("--text"),N=p("--pressable"),M=p("--visible"),j=p("--interactive-targets")||p("--actions"),O=!h&&!$&&!b&&!k&&!N&&!M&&!j?c[1]:null,d=k??O,q=await mt(t,{testId:h,role:$,type:b,text:d,pressable:N,visible:M,interactive:j});q||(console.error(l("find","<text> | --text <t> | --testid <id> | --role <r> | --type <t> | --pressable | --visible | --interactive-targets")),process.exit(1));let{mode:R,result:P}=q,J=D(s),U=s.includes("--verbose")||s.includes("--dump");if(J)R==="interactive-targets"&&Array.isArray(P)?A(Be(P).map(_=>({..._,tap:Ce(_)}))):A(P??null);else if(Array.isArray(P))if(P.length===0){console.log(` no ${R} nodes found`);let _=await t.send({type:"evaluate",code:"(async () => (await window.__sootsimTest?.getNodeCount?.()) || 0)()"});typeof _=="number"&&_<10&&Q("app-still-loading",_)}else if(R==="interactive-targets"){let _=Be(P);console.log(` found ${_.length} interactive target${_.length===1?"":"s"} (sorted by score):`);for(let F of _.slice(0,20)){let H=F.absolutePosition?`@(${Math.round(F.absolutePosition.x)},${Math.round(F.absolutePosition.y)})`:"",K=F.layout?`${Math.round(F.layout.width)}x${Math.round(F.layout.height)}`:"?x?",ee=F.text?` "${F.text.slice(0,30)}"`:"",te=F.testID?` #${F.testID}`:"",ie=F.accessibilityLabel?` \u24D8"${String(F.accessibilityLabel).slice(0,24)}"`:"",xe=F.accessibilityRole?`[${F.accessibilityRole}]`:F.type,C=Ce(F);console.log(` ${xe}${ee}${ie}${te} ${K} ${H}`),console.log(` \u2192 ${C}`),U&&console.log(Xe(JSON.stringify(F,null,2)," "))}_.length>20&&console.log(` ... and ${_.length-20} more`)}else{console.log(` found ${P.length} node${P.length===1?"":"s"} (${R}):`);for(let _ of P.slice(0,20)){let F=_.absolutePosition?`@(${Math.round(_.absolutePosition.x)},${Math.round(_.absolutePosition.y)})`:"",H=_.layout?`${Math.round(_.layout.width)}x${Math.round(_.layout.height)}`:"?x?",K=_.text?` "${_.text.slice(0,30)}"`:"",ee=_.testID?` #${_.testID}`:"",te=_.pressable?" (tap)":"",ie=_.accessibilityRole?`[${_.accessibilityRole}]`:_.type;console.log(` ${ie}${K}${ee} ${H} ${F}${te}`),U&&console.log(Xe(JSON.stringify(_,null,2)," "))}P.length>20&&console.log(` ... and ${P.length-20} more`)}else if(P==null)console.log(` not found: ${d||h||$||b||""||R}`),h&&Q("wait-selector-for-missing-testid",h);else{let _=P;if(_.type&&_.absolutePosition){let F=`@(${Math.round(_.absolutePosition.x)},${Math.round(_.absolutePosition.y)})`,H=_.layout?`${Math.round(_.layout.width)}x${Math.round(_.layout.height)}`:"?x?",K=_.text?` "${_.text.slice(0,40)}"`:"",ee=_.testID?` #${_.testID}`:"",te=_.pressable?" (tap)":"",ie=_.accessibilityRole?`[${_.accessibilityRole}]`:_.type;console.log(` ${ie}${K}${ee} ${H} ${F}${te}`),U&&console.log(Xe(JSON.stringify(_,null,2)," "))}else console.log(JSON.stringify(P,null,2))}}function Xe(e,t){return e.split(`
468
468
  `).map(s=>t+s).join(`
469
- `)}async function Qt(e){let{bridge:t,args:s}=e,i=D(s);await pe(t,{verbose:!i});let c=s.includes("--styling"),l=s.indexOf("--filter"),f=l>=0?s[l+1]:void 0,p=await ct(t,{styling:c,filter:f});if(i){A({count:p.length,elements:p});return}console.log(` layout (${p.length} element${p.length===1?"":"s"}):
470
- `),console.log(dt(p,{styling:c}))}async function Zt(e,t={}){let s=await St(e);if("error"in s&&(console.error(s.error),process.exit(1)),t.json){console.log(JSON.stringify(s,null,2));return}let{visible:i,spec:c,mode:l,shifted:f,capsLock:p,accessoryBarId:h}=s,$=[];$.push(`keyboard: ${i?"visible":"hidden"}`),c?($.push(` type: ${c.keyboardType}`),$.push(` returnKey: ${c.returnKeyType}`),$.push(` autoCap: ${c.autoCapitalize}`),$.push(` autoCorrect: ${c.autoCorrect?"on":"off"}`),$.push(` appearance: ${c.keyboardAppearance}`),c.secureTextEntry&&$.push(" secureTextEntry: true"),c.enablesReturnKeyAutomatically&&$.push(` return: ${c.currentTextIsEmpty?"disabled (empty)":"enabled"}`)):$.push(" spec: <none> (shown via dev-tools with no TextInput)"),$.push(` mode: ${l}${f?" (shifted)":""}${p?" (caps)":""}`),h&&$.push(` accessoryBar: ${h}`),console.log($.join(`
469
+ `)}async function Qt(e){let{bridge:t,args:s}=e,i=D(s);await pe(t,{verbose:!i});let c=s.includes("--styling"),l=s.indexOf("--filter"),f=l>=0?s[l+1]:void 0,p=await dt(t,{styling:c,filter:f});if(i){A({count:p.length,elements:p});return}console.log(` layout (${p.length} element${p.length===1?"":"s"}):
470
+ `),console.log(ut(p,{styling:c}))}async function Zt(e,t={}){let s=await vt(e);if("error"in s&&(console.error(s.error),process.exit(1)),t.json){console.log(JSON.stringify(s,null,2));return}let{visible:i,spec:c,mode:l,shifted:f,capsLock:p,accessoryBarId:h}=s,$=[];$.push(`keyboard: ${i?"visible":"hidden"}`),c?($.push(` type: ${c.keyboardType}`),$.push(` returnKey: ${c.returnKeyType}`),$.push(` autoCap: ${c.autoCapitalize}`),$.push(` autoCorrect: ${c.autoCorrect?"on":"off"}`),$.push(` appearance: ${c.keyboardAppearance}`),c.secureTextEntry&&$.push(" secureTextEntry: true"),c.enablesReturnKeyAutomatically&&$.push(` return: ${c.currentTextIsEmpty?"disabled (empty)":"enabled"}`)):$.push(" spec: <none> (shown via dev-tools with no TextInput)"),$.push(` mode: ${l}${f?" (shifted)":""}${p?" (caps)":""}`),h&&$.push(` accessoryBar: ${h}`),console.log($.join(`
471
471
  `))}async function eo(e){let t=await e.bridge.listSims(),s=e.args.includes("--all"),i=e.args.find((p,h)=>e.args[h-1]==="--bundle"),c=e.args.find((p,h)=>e.args[h-1]==="--app-port"),l=e.args.includes("--primary"),f=t.filter(p=>!(l&&!p.isPrimary||i&&!(p.url??"").includes(i)||c&&!(p.url??"").includes(`/rn/${c}`)||!s&&!i&&!c&&!l&&!(p.url&&(p.url.includes("bundle=")||p.url.includes("/index.bundle")))&&p.id!==e.simId));if(D(e.args)){A(f.map(p=>({...p,active:p.id===e.simId})));return}At(f,e.simId),f.length<t.length&&!D(e.args)&&console.log(` (${t.length-f.length} more hidden \u2014 pass --all to show)`)}function re(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`}function is(e,t){return t<=0?"?":`${(e/t*100).toFixed(0)}%`}function as(e){let t={},s=(i,c)=>{c&&(c.nodesRegistered!=null&&(t[`${i}.nodes`]=c.nodesRegistered),c.nodesDetached!=null&&(t[`${i}.detached`]=c.nodesDetached),c.objects&&(t[`${i}.paragraphs`]=c.objects.paragraphs,t[`${i}.yogaNodes`]=c.objects.yogaNodes,t[`${i}.pictures`]=c.objects.pictures,t[`${i}.rasterImages`]=c.objects.rasterImages),c.imageLoader&&(t[`${i}.imageCacheEntries`]=c.imageLoader.cacheEntries,t[`${i}.imagePixelBytes`]=c.imageLoader.cachePixelBytes),c.workerHeap&&(t[`${i}.heapBytes`]=c.workerHeap.usedJSHeapSize),c.wasmHeapBytes!=null&&(t[`${i}.wasmHeapBytes`]=c.wasmHeapBytes))};return s("tenant",e.tenant),s("shell",e.shell),s("compositor",e.compositor),e.hostHeap&&(t["host.heapBytes"]=e.hostHeap.usedJSHeapSize),t}function to(e,t){return e.endsWith("Bytes")?re(t):String(t)}function Ve(e,t){if(!t){console.log(` ${e}: not available`);return}let s=t.objects;if(console.log(` ${e}`),t.nodesRegistered!=null&&console.log(` nodes registered: ${t.nodesRegistered}`),t.nodesDetached!=null){let i=Object.entries(t.detachedTypes??{}).map(([c,l])=>`${c}:${l}`).join(" ");console.log(` nodes detached: ${t.nodesDetached}${i?` (${i})`:""}`)}if(s&&(console.log(` paragraphs: ${s.paragraphs}`),console.log(` yoga nodes: ${s.yogaNodes}`),console.log(` pictures: ${s.pictures}`),console.log(` raster images: ${s.rasterImages}`)),t.activeNativeAnimations!=null&&console.log(` native anims: ${t.activeNativeAnimations}`),t.imageLoader){let i=t.imageLoader;console.log(` image cache: ${i.cacheEntries}/${i.cacheMaxEntries} entries, ${re(i.cachePixelBytes)}/${re(i.cachePixelBudget)} (${is(i.cachePixelBytes,i.cachePixelBudget)})`)}t.workerHeap&&console.log(` js heap: ${re(t.workerHeap.usedJSHeapSize)} used / ${re(t.workerHeap.totalJSHeapSize)} total`),t.wasmHeapBytes!=null&&console.log(` canvaskit wasm: ${re(t.wasmHeapBytes)}`)}function ls(e){console.log(" memory:"),Ve("tenant worker",e.tenant),Ve("shell worker",e.shell),Ve("compositor worker",e.compositor),e.hostHeap?(console.log(" host"),console.log(` js heap: ${re(e.hostHeap.usedJSHeapSize)} used / ${re(e.hostHeap.totalJSHeapSize)} total`)):console.log(" host js heap: not available (chrome only)")}function cs(e,t,s){let i=e.indexOf(t);if(i===-1)return s;let c=Number(e[i+1]);return Number.isFinite(c)&&c>0?c:s}async function oo(e,t={args:[]}){let s=D(t.args),i=t.args.indexOf("--watch");if(i===-1){let O=await Le(e);if(s){A(O);return}ls(O);return}let c=Number(t.args[i+1]),l=Number.isFinite(c)&&c>0?c:60,f=cs(t.args,"--interval",5),p=[],h=Date.now(),$=null;for(s||console.log(` sampling every ${f}s for ${l}s \u2014 deltas per tick:`);;){let O=await Le(e),d=(Date.now()-h)/1e3,q=as(O);if(p.push({tSec:d,counters:q}),!s){let R=[];for(let[P,J]of Object.entries(q)){let U=$&&P in $?J-$[P]:null;if(U===null||U===0)continue;let _=U>0?"+":"-",F=P.endsWith("Bytes")?`${_}${re(Math.abs(U))}`:`${_}${Math.abs(U)}`;R.push(`${P} ${to(P,J)} (${F})`)}console.log(` t+${d.toFixed(0)}s ${R.length?R.join(" "):$?"no change":Object.entries(q).map(([P,J])=>`${P} ${to(P,J)}`).join(" ")}`)}if($=q,d>=l)break;await new Promise(R=>setTimeout(R,f*1e3))}let b=p[0],k=p[p.length-1],N=Math.max(k.tSec-b.tSec,.001),M={};for(let O of Object.keys(k.counters))O in b.counters&&(M[O]=(k.counters[O]-b.counters[O])/N);if(s){A({samples:p,perSecond:M,elapsedSec:N});return}console.log(`
472
472
  slope over ${N.toFixed(0)}s:`);let j=Object.entries(M).filter(([,O])=>O!==0).sort((O,d)=>Math.abs(d[1])-Math.abs(O[1]));if(j.length===0){console.log(" all counters flat");return}for(let[O,d]of j){let q=O.endsWith("Bytes")?`${re(Math.abs(d))}/s${d<0?" (shrinking)":""}`:`${d>0?"+":""}${d.toFixed(2)}/s`;console.log(` ${O.padEnd(28)}${q}`)}}var Z="<redacted secure text>";function we(e){let t=e?.layout?.spec??e?.spec??null;return!!t?.secureTextEntry&&t.keyboardType!=="visible-password"}function Qe(e,t){return we(t)?Z:e}function Ze(e){if(!e||!we(e))return e;let t=e.focusedInput;return!t||typeof t!="object"?e:{...e,focusedInput:{...t,secureTextEntry:!0,text:typeof t.text=="string"?Z:t.text}}}function $e(e){let t=e.indexOf("--testid");if(t>=0&&e[t+1])return{mode:"testid",value:e[t+1]};let s=e.indexOf("--test-id");if(s>=0&&e[s+1])return{mode:"testid",value:e[s+1]};let i=e.indexOf("--text");return i>=0&&e[i+1]?{mode:"text",value:e[i+1]}:null}async function Oe(e,t){let s=JSON.stringify(t.value),i=t.mode==="testid"?`(await t.findByTestId(${s})) || (await t.findById(${s}))`:`await t.findByText(${s})`;return await e.send({type:"evaluate",code:`(async () => {
473
473
  const t = window.__sootsimTest
@@ -494,12 +494,12 @@ import{a as de}from"./chunk-JPPGM6RZ.js";import{b as Et,c as Pt,k as At}from"./c
494
494
  text: ${JSON.stringify(t.mode==="text")} ? ${s} : (n.text ?? n.accessibilityLabel ?? null),
495
495
  type: n.type ?? null,
496
496
  }
497
- })()`})??null}async function so(e,t={}){let{nav:s,route:i,keyboard:c,shell:l}=await vt(e);if(t.json){console.log(JSON.stringify({shell:l??null,nav:s,route:i,keyboard:c},null,2));return}let f=[];if(l){let p=l.activeApp??l.state??"<none>",h=l.showSwitcher?" (app switcher open)":"",$=typeof l.launchProgress=="number"&&l.launchProgress<.98?` launching (${Math.round(l.launchProgress*100)}%)`:"";f.push(`shell: ${p}${h}${$}`)}else f.push("shell: <unavailable>");if(s){let p=s.transitionPhase!=="idle"?` (${s.transitionPhase}, ${s.activeTransitionCount} active)`:"";if(f.push(`nav: phase=${s.transitionPhase}${p}`),s.screens.length===0)f.push(" <no registered screens \u2014 app may not use react-native-screens>");else for(let h of s.screens){let $=h.isActive?"\u25B6":" ",b=h.routeName?` ${h.routeName}`:"",k=h.headerHeight>0?` header=${h.headerHeight}`:"",N=h.largeTitleState&&h.largeTitleState!=="expanded"?` large-title=${h.largeTitleState}`:"";f.push(` ${$} #${h.id}${b}${k}${N}`)}}else f.push("nav: <runtime not available>");if(f.push(`route: ${i?.currentPath??"<unavailable>"}`),i?.coveringPath&&f.push(`covered: a presented screen (${i.coveringPath}) is above this route`),c&&c.visible){let p=c.spec?.keyboardType??"default",h=c.spec?.returnKeyType??"default";f.push(`keyboard: visible (${p}, return=${h}, mode=${c.mode??"?"})`)}else f.push("keyboard: hidden");console.log(f.join(`
498
- `))}async function no(e){let{bridge:t,args:s,positional:i}=e,c=i[1]?Number(i[1])*1e3:3e3,l=s.includes("--strict"),{elapsed:f,settled:p}=await se({bridge:t,maxMs:c,strict:l});console.log(p?` settled in ${f}ms`:` timed out after ${f}ms (may still be animating)`)}async function ro(e){let t=e.positional[1]?Number(e.positional[1]):.5;(!Number.isFinite(t)||t<0)&&(console.error(e.inspectUsage("sleep","[seconds]")),process.exit(1)),await oe(t*1e3),console.log(` slept ${t}s`)}async function io(e){let{bridge:t,args:s,positional:i}=e,c=s.includes("--boxes"),l=i[1]?Number(i[1]):c?50:5,{tree:f}=await it(t,l,c?{format:"boxes"}:void 0);if(D(s)){A({depth:l,tree:f??null});return}console.log(typeof f=="string"?f:JSON.stringify(f,null,2))}async function ao(e,t={args:[]}){let s=await at(e);if(D(t.args)){A(s);return}console.log(s.url)}async function lo(e){let{wsPort:t,commandTimeoutMs:s,simId:i,simIdSource:c,positional:l}=e,f=l[1]?Number(l[1]):30,p=Math.max(1e3,(Number.isFinite(f)?f:30)*1e3),h=Math.max(1,Math.ceil(p/500));console.log(" waiting for sim reconnect...");let $=await Ft(t,s,i,{attempts:h,simIdSource:c});$||(console.error(" timed out waiting for sim reconnect"),process.exit(1)),$.bridge.close(),Fe({source:"inspect wait",step:{wait:p},summary:`wait ${Math.round(p/1e3)}s`}),console.log(` ready: ${$.count} nodes`)}var co=new Set(["app-launch","toast","keyboard","screen","flow-step","route","alert","actionsheet","picker","notification","fetch","console","shell","scroll","gesture","text-input","react-commit","animation","reanimated"]);function Re(e,t){let s=e.indexOf(t);if(s>=0&&s+1<e.length)return e[s+1]}function ds(e,t){if(!t.filter&&!t.equals)return!0;let s=e.data,i=[];if(s&&typeof s=="object")for(let l of["url","displayUrl","message","name","activeName","path","pathname","title","phase","event","type","kind"]){let f=s[l];typeof f=="string"&&f.length>0&&i.push(f)}let c=i.join(" ");return t.equals?i.some(l=>l===t.equals):t.filter?c.toLowerCase().includes(t.filter.toLowerCase()):!0}async function uo(e){let{bridge:t,args:s,positional:i,inspectUsage:c}=e,l=i[1];l||(console.error(c("wait event","<kind> [--max-ms 5000] [--filter <substring>] [--equals <exact>] [--since now|cursor]")),process.exit(1)),co.has(l)||console.error(` warning: '${l}' is not a known timeline kind \u2014 waiting anyway. known: ${[...co].sort().join(", ")}`);let f=Re(s,"--max-ms"),p=f&&Number.isFinite(Number(f))?Math.max(100,Number(f)):5e3,h=Re(s,"--filter"),$=Re(s,"--equals"),b=Re(s,"--since")??"now",k=s.includes("--json"),N=Date.now(),M=N+p,j=200,O=N;for(;Date.now()<M;){let q={kinds:[l],since:b==="cursor"?void 0:O,limit:50},R=await t.send({type:"evaluate",code:`(async () => {
497
+ })()`})??null}async function so(e,t={}){let{nav:s,route:i,keyboard:c,shell:l}=await kt(e);if(t.json){console.log(JSON.stringify({shell:l??null,nav:s,route:i,keyboard:c},null,2));return}let f=[];if(l){let p=l.activeApp??l.state??"<none>",h=l.showSwitcher?" (app switcher open)":"",$=typeof l.launchProgress=="number"&&l.launchProgress<.98?` launching (${Math.round(l.launchProgress*100)}%)`:"";f.push(`shell: ${p}${h}${$}`)}else f.push("shell: <unavailable>");if(s){let p=s.transitionPhase!=="idle"?` (${s.transitionPhase}, ${s.activeTransitionCount} active)`:"";if(f.push(`nav: phase=${s.transitionPhase}${p}`),s.screens.length===0)f.push(" <no registered screens \u2014 app may not use react-native-screens>");else for(let h of s.screens){let $=h.isActive?"\u25B6":" ",b=h.routeName?` ${h.routeName}`:"",k=h.headerHeight>0?` header=${h.headerHeight}`:"",N=h.largeTitleState&&h.largeTitleState!=="expanded"?` large-title=${h.largeTitleState}`:"";f.push(` ${$} #${h.id}${b}${k}${N}`)}}else f.push("nav: <runtime not available>");if(f.push(`route: ${i?.currentPath??"<unavailable>"}`),i?.coveringPath&&f.push(`covered: a presented screen (${i.coveringPath}) is above this route`),c&&c.visible){let p=c.spec?.keyboardType??"default",h=c.spec?.returnKeyType??"default";f.push(`keyboard: visible (${p}, return=${h}, mode=${c.mode??"?"})`)}else f.push("keyboard: hidden");console.log(f.join(`
498
+ `))}async function no(e){let{bridge:t,args:s,positional:i}=e,c=i[1]?Number(i[1])*1e3:3e3,l=s.includes("--strict"),{elapsed:f,settled:p}=await se({bridge:t,maxMs:c,strict:l});console.log(p?` settled in ${f}ms`:` timed out after ${f}ms (may still be animating)`)}async function ro(e){let t=e.positional[1]?Number(e.positional[1]):.5;(!Number.isFinite(t)||t<0)&&(console.error(e.inspectUsage("sleep","[seconds]")),process.exit(1)),await oe(t*1e3),console.log(` slept ${t}s`)}async function io(e){let{bridge:t,args:s,positional:i}=e,c=s.includes("--boxes"),l=i[1]?Number(i[1]):c?50:5,{tree:f}=await at(t,l,c?{format:"boxes"}:void 0);if(D(s)){A({depth:l,tree:f??null});return}console.log(typeof f=="string"?f:JSON.stringify(f,null,2))}async function ao(e,t={args:[]}){let s=await lt(e);if(D(t.args)){A(s);return}console.log(s.url)}async function lo(e){let{wsPort:t,commandTimeoutMs:s,simId:i,simIdSource:c,positional:l}=e,f=l[1]?Number(l[1]):30,p=Math.max(1e3,(Number.isFinite(f)?f:30)*1e3),h=Math.max(1,Math.ceil(p/500));console.log(" waiting for sim reconnect...");let $=await Ft(t,s,i,{attempts:h,simIdSource:c});$||(console.error(" timed out waiting for sim reconnect"),process.exit(1)),$.bridge.close(),Fe({source:"inspect wait",step:{wait:p},summary:`wait ${Math.round(p/1e3)}s`}),console.log(` ready: ${$.count} nodes`)}var co=new Set(["app-launch","toast","keyboard","screen","flow-step","route","alert","actionsheet","picker","notification","fetch","console","shell","scroll","gesture","text-input","react-commit","animation","reanimated"]);function Re(e,t){let s=e.indexOf(t);if(s>=0&&s+1<e.length)return e[s+1]}function ds(e,t){if(!t.filter&&!t.equals)return!0;let s=e.data,i=[];if(s&&typeof s=="object")for(let l of["url","displayUrl","message","name","activeName","path","pathname","title","phase","event","type","kind"]){let f=s[l];typeof f=="string"&&f.length>0&&i.push(f)}let c=i.join(" ");return t.equals?i.some(l=>l===t.equals):t.filter?c.toLowerCase().includes(t.filter.toLowerCase()):!0}async function uo(e){let{bridge:t,args:s,positional:i,inspectUsage:c}=e,l=i[1];l||(console.error(c("wait event","<kind> [--max-ms 5000] [--filter <substring>] [--equals <exact>] [--since now|cursor]")),process.exit(1)),co.has(l)||console.error(` warning: '${l}' is not a known timeline kind \u2014 waiting anyway. known: ${[...co].sort().join(", ")}`);let f=Re(s,"--max-ms"),p=f&&Number.isFinite(Number(f))?Math.max(100,Number(f)):5e3,h=Re(s,"--filter"),$=Re(s,"--equals"),b=Re(s,"--since")??"now",k=s.includes("--json"),N=Date.now(),M=N+p,j=200,O=N;for(;Date.now()<M;){let q={kinds:[l],since:b==="cursor"?void 0:O,limit:50},R=await t.send({type:"evaluate",code:`(async () => {
499
499
  const t = window.SootSim?.bridges?.timeline
500
500
  if (!t) return { ok: false, error: 'timeline bridge missing' }
501
501
  return { ok: true, result: await t.recent(${JSON.stringify(q)}) }
502
- })()`});(!R||!R.ok)&&(console.error(` could not query timeline: ${R&&"error"in R?R.error:"unknown"}`),process.exit(1));let P=R.result.events??[];for(let J of P)if(ds(J,{filter:h,equals:$})){let U=Date.now()-N;console.log(k?JSON.stringify({found:!0,elapsedMs:U,event:J}):` ${l} event after ${U}ms${h?` (filter: ${h})`:""}${$?` (equals: ${$})`:""}`);return}R.result.watermark&&R.result.watermark>O&&(O=R.result.watermark),await new Promise(J=>setTimeout(J,j))}let d=Date.now()-N;k?console.log(JSON.stringify({found:!1,elapsedMs:d,kind:l,filter:h,equals:$})):console.error(` \u26A0 wait event ${l} timed out after ${d}ms${h?` (filter: ${h})`:""}${$?` (equals: ${$})`:""}`),process.exit(1)}async function po(e){let{bridge:t,args:s}=e,i=s.includes("--strict"),c=ke(s,3e3),{elapsed:l,settled:f}=await se({bridge:t,maxMs:c,strict:i});f?console.log(` idle in ${l}ms`):(console.error(` \u26A0 wait idle timed out after ${l}ms (may still be animating)`),process.exit(1))}async function mo(e){let{bridge:t,args:s}=e,i=ke(s,2e4),{ready:c,elapsedMs:l,nodes:f,targets:p,liveFrameActive:h,liveFrameChannels:$,flag:b,loadingText:k,externalReady:N,externalError:M,suppressedEntryError:j,errors:O,bridgeError:d}=await mt(t,i,{onProgress(R){console.error(` still waiting after ${R.elapsedMs}ms \u2014 ${je(R)} (nodes: ${R.nodes}, targets: ${R.targets}, live surfaces: ${R.liveFrameActive?R.liveFrameChannels:0}, errors: ${R.errors})`)}});if(c){let R=i-l,P=Math.max(100,Math.min(1e4,R)),J=await se({bridge:t,maxMs:P,pollMs:32,stablePolls:2});J.settled||(console.error(` \u26A0 wait ready timed out after ${l+J.elapsed}ms \u2014 app mounted but did not settle (nodes: ${f}, targets: ${p})`),process.exit(1)),console.log(` ready in ${l+J.elapsed}ms: ${f} nodes, ${p} targets${h?`, ${$} live surfaces`:""}`);return}let q=je({externalError:M,loadingText:k,externalReady:N,flag:b,targets:p,suppressedEntryError:j,bridgeError:d});console.error(` \u26A0 wait ready timed out after ${l}ms \u2014 ${q} (nodes: ${f}, targets: ${p}, live surfaces: ${h?$:0}, errors: ${O})`),process.exit(1)}async function fo(e){let{bridge:t,args:s,positional:i,inspectUsage:c}=e,l=i[1];l||(console.error(c("wait selector","<testid> [--max-ms 5000] [--gone]")),process.exit(1));let f=s.indexOf("--max-ms"),p=f>=0&&s[f+1]?Math.max(100,Number(s[f+1])):5e3,h=s.includes("--gone"),{found:$,node:b,elapsed:k}=await ft(t,l,p,{gone:h});if(h){$?console.log(` #${l} gone after ${k}ms`):(console.error(` \u26A0 wait selector #${l} --gone timed out after ${k??p}ms (still present)`),process.exit(1));return}if($&&b){let N=b.absolutePosition?`@(${Math.round(b.absolutePosition.x)},${Math.round(b.absolutePosition.y)})`:"",M=b.layout?`${Math.round(b.layout.width)}x${Math.round(b.layout.height)}`:"?x?";console.log(` found #${l} in ${k}ms ${M} ${N}`)}else console.error(` \u26A0 wait selector #${l} timed out after ${k??p}ms`),process.exit(1)}function _o(e){return e==null?"\u2014":e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}K`:`${(e/1024/1024).toFixed(1)}M`}function Io(e){return e==null?" \u2026":e<1e3?`${e}ms`.padStart(5):`${(e/1e3).toFixed(2)}s`.padStart(5)}function go(){process.stderr.write(` the sim is not responding. recover it with:
502
+ })()`});(!R||!R.ok)&&(console.error(` could not query timeline: ${R&&"error"in R?R.error:"unknown"}`),process.exit(1));let P=R.result.events??[];for(let J of P)if(ds(J,{filter:h,equals:$})){let U=Date.now()-N;console.log(k?JSON.stringify({found:!0,elapsedMs:U,event:J}):` ${l} event after ${U}ms${h?` (filter: ${h})`:""}${$?` (equals: ${$})`:""}`);return}R.result.watermark&&R.result.watermark>O&&(O=R.result.watermark),await new Promise(J=>setTimeout(J,j))}let d=Date.now()-N;k?console.log(JSON.stringify({found:!1,elapsedMs:d,kind:l,filter:h,equals:$})):console.error(` \u26A0 wait event ${l} timed out after ${d}ms${h?` (filter: ${h})`:""}${$?` (equals: ${$})`:""}`),process.exit(1)}async function po(e){let{bridge:t,args:s}=e,i=s.includes("--strict"),c=ke(s,3e3),{elapsed:l,settled:f}=await se({bridge:t,maxMs:c,strict:i});f?console.log(` idle in ${l}ms`):(console.error(` \u26A0 wait idle timed out after ${l}ms (may still be animating)`),process.exit(1))}async function mo(e){let{bridge:t,args:s}=e,i=ke(s,2e4),{ready:c,elapsedMs:l,nodes:f,targets:p,liveFrameActive:h,liveFrameChannels:$,flag:b,loadingText:k,externalReady:N,externalError:M,suppressedEntryError:j,errors:O,bridgeError:d}=await ft(t,i,{onProgress(R){console.error(` still waiting after ${R.elapsedMs}ms \u2014 ${je(R)} (nodes: ${R.nodes}, targets: ${R.targets}, live surfaces: ${R.liveFrameActive?R.liveFrameChannels:0}, errors: ${R.errors})`)}});if(c){let R=i-l,P=Math.max(100,Math.min(1e4,R)),J=await se({bridge:t,maxMs:P,pollMs:32,stablePolls:2});J.settled||(console.error(` \u26A0 wait ready timed out after ${l+J.elapsed}ms \u2014 app mounted but did not settle (nodes: ${f}, targets: ${p})`),process.exit(1)),console.log(` ready in ${l+J.elapsed}ms: ${f} nodes, ${p} targets${h?`, ${$} live surfaces`:""}`);return}let q=je({externalError:M,loadingText:k,externalReady:N,flag:b,targets:p,suppressedEntryError:j,bridgeError:d});console.error(` \u26A0 wait ready timed out after ${l}ms \u2014 ${q} (nodes: ${f}, targets: ${p}, live surfaces: ${h?$:0}, errors: ${O})`),process.exit(1)}async function fo(e){let{bridge:t,args:s,positional:i,inspectUsage:c}=e,l=i[1];l||(console.error(c("wait selector","<testid> [--max-ms 5000] [--gone]")),process.exit(1));let f=s.indexOf("--max-ms"),p=f>=0&&s[f+1]?Math.max(100,Number(s[f+1])):5e3,h=s.includes("--gone"),{found:$,node:b,elapsed:k}=await gt(t,l,p,{gone:h});if(h){$?console.log(` #${l} gone after ${k}ms`):(console.error(` \u26A0 wait selector #${l} --gone timed out after ${k??p}ms (still present)`),process.exit(1));return}if($&&b){let N=b.absolutePosition?`@(${Math.round(b.absolutePosition.x)},${Math.round(b.absolutePosition.y)})`:"",M=b.layout?`${Math.round(b.layout.width)}x${Math.round(b.layout.height)}`:"?x?";console.log(` found #${l} in ${k}ms ${M} ${N}`)}else console.error(` \u26A0 wait selector #${l} timed out after ${k??p}ms`),process.exit(1)}function _o(e){return e==null?"\u2014":e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}K`:`${(e/1024/1024).toFixed(1)}M`}function Io(e){return e==null?" \u2026":e<1e3?`${e}ms`.padStart(5):`${(e/1e3).toFixed(2)}s`.padStart(5)}function go(){process.stderr.write(` the sim is not responding. recover it with:
503
503
  sootsim close --sim <id> # force-close the wedged sim
504
504
  sootsim list # confirm it's gone
505
505
  `)}async function ps(e){try{return await e.send({type:"evaluate",code:"1"},{timeoutMs:3e3}),!0}catch{return!1}}async function ms(e,t){try{let s=await e.send({type:"evaluate",code:`(async () => {
@@ -583,14 +583,14 @@ import{a as de}from"./chunk-JPPGM6RZ.js";import{b as Et,c as Pt,k as At}from"./c
583
583
  })()`}):e.send({type:"evaluate",code:`(async () => {
584
584
  window.dispatchEvent(new CustomEvent('sootsim:shake'))
585
585
  return { ok: true, action: 'shake' }
586
- })()`})}function vs(e){let t={Enter:"return",NumpadEnter:"return",Backspace:"delete",Delete:"delete",Space:"space",ShiftLeft:"shift",ShiftRight:"shift"};if(t[e])return t[e];let s=e.match(/^Digit([0-9])$/);if(s)return s[1];let i=e.match(/^Key([A-Z])$/);return i?i[1].toLowerCase():null}function ks(e){if(typeof e!="string")return null;let t=e.replace(/\s+/g," ").trim();return t?t.slice(0,80):null}function To(...e){for(let t of e){if(typeof t!="string")continue;let s=t.trim();if(s)return s}return null}function _s(e){let t=e.indexOf("--node-id");if(t<0)return null;let s=e[t+1];if(!s)return null;let i=Number(s);return Number.isInteger(i)&&i>0?i:null}async function W(e,t,s){let i=Fe({source:e,step:t,summary:s});i.active&&(i.replaced?console.error(` draft: replaced unkept action "${i.replaced.summary}" \u2014 \`maestro keep\` commits one action at a time`):console.error(" draft: action pending \u2014 `sootsim maestro keep` to commit"))}function ko(e,t,s){if(!s||s.hit===!1)return null;let i=To(s.responderTestID,s.testID);if(i)return{step:{tapOn:{id:i}},summary:`tap #${i}`};let c=ks(s.text);return c?{step:{tapOn:c},summary:`tap "${c}"`}:{step:{tapAtCoords:{x:e,y:t}},summary:`tap @${Math.round(e)},${Math.round(t)}`}}function et(e,t,s){let i=To(t?.testID,t?.id);return i?{step:{tapOn:{id:i}},summary:`tap #${i}`}:s==="id"?{step:{tapOn:{id:e}},summary:`tap #${e}`}:{step:{tapOn:e},summary:`tap "${e}"`}}async function Rr(e,t){let s=e[0]==="get"||e[0]==="do"||e[0]==="debug"||e[0]==="wait"?e[0]:null,i=s?e.slice(1):e,c=It(i,{port:t.port,commandTimeoutMs:t.timeoutMs,stripBooleanFlags:["--verbose","-v","--help","-h","--clear-state","--json","--all","--watch","-w","--strict","--no-wait","--dump","--failed","--slow","--tail","-f","--interactive-targets","--actions","--internal","--compact","--no-xy","--no-clipped","--include-occluded"],stripValueFlags:["--output","--nth","--index","--testid","--test-id","--text","--node-id","--max-ms","--filter","--limit","--level","--threshold","--equals","--since","--testid-like","--only","--subtree"]}),l=c.positional,f=l[0],p=s==="get"||s==="do"||s==="debug"||s==="wait"?s:"inspect",h=typeof i[0]=="string"&&ot.has(i[0]),$=h?i[0]:null,b=x=>t.internalPerfCommand&&x==="perf"?`sootsim perf ${t.internalPerfCommand}`:h&&x===i[0]?`sootsim ${x}`:`sootsim ${p} ${x}`,k=(x,o)=>` usage: ${b(x)}${o?` ${o}`:""}`;if(!f||e.includes("--help")||e.includes("-h")){let x={bridgePort:7668,defaultShellUrl:kt};if(p==="do"||p==="get"||p==="debug"||p==="wait"){let r=Ae(p,x);r&&(console.log(`${r}
586
+ })()`})}function vs(e){let t={Enter:"return",NumpadEnter:"return",Backspace:"delete",Delete:"delete",Space:"space",ShiftLeft:"shift",ShiftRight:"shift"};if(t[e])return t[e];let s=e.match(/^Digit([0-9])$/);if(s)return s[1];let i=e.match(/^Key([A-Z])$/);return i?i[1].toLowerCase():null}function ks(e){if(typeof e!="string")return null;let t=e.replace(/\s+/g," ").trim();return t?t.slice(0,80):null}function To(...e){for(let t of e){if(typeof t!="string")continue;let s=t.trim();if(s)return s}return null}function _s(e){let t=e.indexOf("--node-id");if(t<0)return null;let s=e[t+1];if(!s)return null;let i=Number(s);return Number.isInteger(i)&&i>0?i:null}async function W(e,t,s){let i=Fe({source:e,step:t,summary:s});i.active&&(i.replaced?console.error(` draft: replaced unkept action "${i.replaced.summary}" \u2014 \`maestro keep\` commits one action at a time`):console.error(" draft: action pending \u2014 `sootsim maestro keep` to commit"))}function ko(e,t,s){if(!s||s.hit===!1)return null;let i=To(s.responderTestID,s.testID);if(i)return{step:{tapOn:{id:i}},summary:`tap #${i}`};let c=ks(s.text);return c?{step:{tapOn:c},summary:`tap "${c}"`}:{step:{tapAtCoords:{x:e,y:t}},summary:`tap @${Math.round(e)},${Math.round(t)}`}}function et(e,t,s){let i=To(t?.testID,t?.id);return i?{step:{tapOn:{id:i}},summary:`tap #${i}`}:s==="id"?{step:{tapOn:{id:e}},summary:`tap #${e}`}:{step:{tapOn:e},summary:`tap "${e}"`}}async function Rr(e,t){let s=e[0]==="get"||e[0]==="do"||e[0]==="debug"||e[0]==="wait"?e[0]:null,i=s?e.slice(1):e,c=It(i,{port:t.port,commandTimeoutMs:t.timeoutMs,stripBooleanFlags:["--verbose","-v","--help","-h","--clear-state","--json","--all","--watch","-w","--strict","--no-wait","--dump","--failed","--slow","--tail","-f","--interactive-targets","--actions","--internal","--compact","--no-xy","--no-clipped","--include-occluded"],stripValueFlags:["--output","--nth","--index","--testid","--test-id","--text","--node-id","--max-ms","--filter","--limit","--level","--threshold","--equals","--since","--testid-like","--only","--subtree"]}),l=c.positional,f=l[0],p=s==="get"||s==="do"||s==="debug"||s==="wait"?s:"inspect",h=typeof i[0]=="string"&&ot.has(i[0]),$=h?i[0]:null,b=x=>t.internalPerfCommand&&x==="perf"?`sootsim perf ${t.internalPerfCommand}`:h&&x===i[0]?`sootsim ${x}`:`sootsim ${p} ${x}`,k=(x,o)=>` usage: ${b(x)}${o?` ${o}`:""}`;if(!f||e.includes("--help")||e.includes("-h")){let x={bridgePort:7668,defaultShellUrl:nt};if(p==="do"||p==="get"||p==="debug"||p==="wait"){let r=Ae(p,x);r&&(console.log(`${r}
587
587
  `),process.exit(0))}if($==="shell"){let r=De("shell",x);r&&(console.log(`${r}
588
588
  `),process.exit(0))}let o=De("inspect",x),n=["do","get","debug","wait"].map(r=>Ae(r,x)).filter(r=>r!=null).join(`
589
589
 
590
590
  `);console.log(`${o??""}
591
591
 
592
592
  ${n}
593
- `),process.exit(0)}let N=c.wsPort,M=c.simId,j=c.simIdSource,O=c.commandTimeoutMs;if(p==="get"&&f==="diagnosis"){let x=i.indexOf("diagnosis"),o=x>=0?[...i.slice(0,x),...i.slice(x+1)]:i,{runDiagnose:n}=await import("./diagnose-6D6WNAGL.js"),r=await n(["recent",...o],t);process.exitCode=r;return}if(p==="do"&&f==="scan"){let{runCamera:x}=await import("./camera-Y5MZ5V4L.js");await x(i,{port:t.port});return}if(f==="list"&&i.some(x=>x==="--drivers"||x==="-D")){let{buildDriverListRows:x}=await import("./drivers-CKLBQDXG.js"),o=x();console.log(` available drivers (${o.length}):
593
+ `),process.exit(0)}let N=c.wsPort,M=c.simId,j=c.simIdSource,O=c.commandTimeoutMs;if(p==="get"&&f==="diagnosis"){let x=i.indexOf("diagnosis"),o=x>=0?[...i.slice(0,x),...i.slice(x+1)]:i,{runDiagnose:n}=await import("./diagnose-5CAEJ42M.js"),r=await n(["recent",...o],t);process.exitCode=r;return}if(p==="do"&&f==="scan"){let{runCamera:x}=await import("./camera-Y4RBIONE.js");await x(i,{port:t.port});return}if(f==="list"&&i.some(x=>x==="--drivers"||x==="-D")){let{buildDriverListRows:x}=await import("./drivers-OLJCUSPO.js"),o=x();console.log(` available drivers (${o.length}):
594
594
  `);let n=Math.max(...o.map(a=>a.id.length),6),r=Math.max(...o.map(a=>a.kind.length),4);for(let a of o){let u=a.available?"\u2713":"\u2717",m=a.id.padEnd(n),g=a.kind.padEnd(r);console.log(` ${u} ${m} ${g} ${a.description}`),a.available&&a.detail?console.log(` ${a.detail}`):!a.available&&a.reason&&console.log(` unavailable: ${a.reason}`)}return}let d=Tt(c),q=M||"default",R=new Set(["errors","warnings","requests","js","eval","reload","globals","perf","storage-clear","list","wait","sleep"]),P=200;function J(x){let o=x.replace(/\s+/g," ").trim();if(!o)return"";if(/^<(!doctype html|html|\?xml)|<body[\s>]/i.test(o)){let r=/<title[^>]*>([^<]+)<\/title>/i.exec(x)?.[1]?.trim(),a=/<body[^>]*>([\s\S]*?)<\//i.exec(x)?.[1]?.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim().slice(0,80),u=r||a||"html error page";return`<html ${x.length}B> "${u}" (body elided \u2014 add --json for the full payload)`}return o.length<=P?o:`${o.slice(0,P)}\u2026 (+${o.length-P} more bytes)`}function U(x){let o=x.displayUrl||x.url;return x.status!=null?`${x.method} ${o} -> ${x.status}${x.statusText?` ${x.statusText}`:""}`:x.error?`${x.method} ${o} -> ${x.error}`:`${x.method} ${o}`}async function _(x){let o=fe()?400:200;try{let{settled:n,elapsed:r}=await se({bridge:x,maxMs:o,pollMs:32,stablePolls:2});n||process.stderr.write(` \u26A0 auto-wait timed out after ${r??o}ms \u2014 next command may see mid-animation state. use \`sootsim do settle\` for a longer wait.
595
595
  `)}catch{}}function F(x,o){if(o.result?.reason==="offscreen"){let{x:n,y:r,screen:a}=o.result;console.error(` tap failed: ${x} resolved to (${Math.round(n)},${Math.round(r)}), outside the ${a?.width}x${a?.height} screen`),console.error(" the node exists but is scrolled out of view \u2014 scroll it on-screen first (sootsim do scroll / swipe), then tap.");return}console.error(` tap failed: ${x} stayed visible but did not receive a hittable press after ${o.attempts} attempt${o.attempts===1?"":"s"}`),o.result&&console.error(` last result: ${JSON.stringify(o.result)}`)}async function H(){try{return await d.send({type:"evaluate",code:`(() => ({
596
596
  console: ${_e},
@@ -619,7 +619,7 @@ ${n}
619
619
  }
620
620
  return summary ? { summary, consoleSplit } : null
621
621
  })()`)}catch{return}if(!n||!n.summary||!n.summary.total)return;let r=n.summary.byKind??{},a=[],u=new Set;for(let m of ie){let g=r[m];if(g)if(u.add(m),m==="console"&&n.consoleSplit){let{error:w,warn:y}=n.consoleSplit;w>0&&a.push(`${w} error${w===1?"":"s"}`),y>0&&a.push(`${y} warning${y===1?"":"s"}`)}else a.push(`${g} ${m}${g===1?"":"s"}`)}for(let[m,g]of Object.entries(r))!u.has(m)&&g&&a.push(`${g} ${m}${g===1?"":"s"}`);if(a.length!==0&&(console.error(`
622
- since last: ${a.join(" \xB7 ")} \u2014 sootsim what-happened`),n.summary.lastAt))try{await ce(x,"SootSim.bridges.timeline.cursorAdvance",o,n.summary.lastAt)}catch{}}let C=new Set(["tap","double-tap","tap-text","tap-id","type","type-into","key","key-sequence","keycode","drag","swipe","long-press","touch","gesture","pinch","scroll","shell","storage-clear"]),le=new Set(["a11y","capture","count","double-tap","drag","find","gesture","layout","long-press","node","pinch","sample-color","scroll","screenshot","swipe","tap","tap-id","tap-text","touch","tree","type-into"]),Se=(e.includes("--verbose")||e.includes("-v"))&&!e.includes("--json");p==="do"&&f==="shell"&&(console.error(" `sootsim do shell` was removed. use `sootsim shell ...` instead."),process.exit(1)),C.has(f)&&await Mt(d),le.has(f)&&await pe(d,{verbose:Se});try{let x=C.has(f)?await xt(d):[];switch(f){case"list":{_t(c.wsPort),await eo({bridge:d,simId:M,args:i});break}case"tree":{await io({bridge:d,args:i,positional:l});break}case"a11y":{let o=await ut(d);if(!Array.isArray(o)||o.length===0){console.log(" no accessible nodes found");break}if(e.includes("--json"))console.log(JSON.stringify(o,null,2));else{console.log(` accessibility tree (${o.length} nodes):
622
+ since last: ${a.join(" \xB7 ")} \u2014 sootsim what-happened`),n.summary.lastAt))try{await ce(x,"SootSim.bridges.timeline.cursorAdvance",o,n.summary.lastAt)}catch{}}let C=new Set(["tap","double-tap","tap-text","tap-id","type","type-into","key","key-sequence","keycode","drag","swipe","long-press","touch","gesture","pinch","scroll","shell","storage-clear"]),le=new Set(["a11y","capture","count","double-tap","drag","find","gesture","layout","long-press","node","pinch","sample-color","scroll","screenshot","swipe","tap","tap-id","tap-text","touch","tree","type-into"]),Se=(e.includes("--verbose")||e.includes("-v"))&&!e.includes("--json");p==="do"&&f==="shell"&&(console.error(" `sootsim do shell` was removed. use `sootsim shell ...` instead."),process.exit(1)),C.has(f)&&await Mt(d),le.has(f)&&await pe(d,{verbose:Se});try{let x=C.has(f)?await St(d):[];switch(f){case"list":{_t(c.wsPort),await eo({bridge:d,simId:M,args:i});break}case"tree":{await io({bridge:d,args:i,positional:l});break}case"a11y":{let o=await pt(d);if(!Array.isArray(o)||o.length===0){console.log(" no accessible nodes found");break}if(e.includes("--json"))console.log(JSON.stringify(o,null,2));else{console.log(` accessibility tree (${o.length} nodes):
623
623
  `);for(let n of o){let r=[];if(r.push(`[${n.role}]`),n.label){let a=n.label.length>50?n.label.slice(0,47)+"...":n.label;r.push(`"${a}"`)}if(n.hint&&r.push(`(hint: "${n.hint}")`),n.testID&&r.push(`#${n.testID}`),n.state){let a=[];n.state.disabled&&a.push("disabled"),n.state.selected&&a.push("selected"),n.state.checked===!0&&a.push("checked"),n.state.checked==="mixed"&&a.push("mixed"),n.state.busy&&a.push("busy"),n.state.expanded===!0&&a.push("expanded"),n.state.expanded===!1&&a.push("collapsed"),a.length&&r.push(`{${a.join(", ")}}`)}n.position&&r.push(`@(${n.position.x},${n.position.y})`),n.size&&r.push(`${n.size.w}x${n.size.h}`),console.log(" "+r.join(" "))}}break}case"find":{await Vt({bridge:d,args:e,effectiveArgs:i,positional:l,inspectUsage:k});break}case"count":{await zt(d,{args:i});break}case"keyboard":{await Zt(d,{json:e.includes("--json")});break}case"screens":{await so(d,{json:e.includes("--json")});break}case"memory":{await oo(d,{args:i});break}case"wait":{await lo({wsPort:N,commandTimeoutMs:O,simId:M,simIdSource:j,positional:l});break}case"sleep":{await ro({positional:l,inspectUsage:k});break}case"settle":{await no({bridge:d,args:e,positional:l});break}case"ready":{await mo({bridge:d,args:e});break}case"idle":{await po({bridge:d,args:e,positional:l});break}case"selector":{await fo({bridge:d,args:e,positional:l,inspectUsage:k});break}case"event":{await uo({bridge:d,args:e,positional:l,inspectUsage:k});break}case"layout":{let o=l[1];if(!o){await Qt({bridge:d,args:i});break}let n=await d.send({type:"evaluate",code:`(async () => await window.__sootsimTest.getLayout(${JSON.stringify(o)}))()`});console.log(JSON.stringify(n,null,2));break}case"capture":case"screenshot":{let n=e.find((w,y)=>e[y-1]==="--output")||"/tmp/sootsim-inspect.png",r=await $o(e,d),a={type:"screenshot"};r&&(a.crop=r);let m=(await d.send(a)).replace(/^data:image\/png;base64,/,"");r&&console.log(` area: x=${r.x} y=${r.y} w=${r.w} h=${r.h}`),(await import("fs")).writeFileSync(n,Buffer.from(m,"base64")),console.log(` saved: ${n}`);break}case"sample-color":{let o=await $o(e,d);o||(console.error(k("sample-color","<x> <y> [w] [h] | --id <testID> | --text <text>")),console.error(" samples an averaged color from the canvas. coords are logical sootsim units."),process.exit(1));let n=await d.send({type:"evaluate",code:Bt(o)});if(e.includes("--json"))console.log(JSON.stringify(n,null,2));else{let{r,g:a,b:u,a:m,hex:g,samples:w}=n,y=o.w===1&&o.h===1?`@(${o.x},${o.y})`:`@(${o.x},${o.y}) ${o.w}x${o.h}`;console.log(` ${g} rgba(${r}, ${a}, ${u}, ${m}) ${y} ${w} samples`)}break}case"node":{let o=l[1];o||(console.error(k("node","<matcher>")),console.error(" resolves testID, id, then text \u2014 dumps full node info as JSON"),process.exit(1));let n=await d.send({type:"evaluate",code:`(async () => {
624
624
  const t = window.__sootsimTest
625
625
  const q = ${JSON.stringify(o)}
@@ -993,9 +993,9 @@ ${n}
993
993
  return await window.__sootsimShellPerf.stop()
994
994
  })()`});if(u?.error&&(console.error(` error: ${u.error}`),process.exit(1)),D(i)){A(u);break}Ie(` ${n} transition profiled:`),So(u);break}default:console.error(` unknown perf subcommand: ${o}`),console.error(" valid: start, stop, transition"),/^--?reset$/.test(o)&&console.error(" note: 'perf start' already clears prior frames \u2014 no reset needed"),(o==="stats"||o==="frames"||o==="worst")&&(console.error(" note: the tenant sampler (stats/frames/worst) was removed \u2014 it hardcoded"),console.error(" layout/render/copy to zero because the shell worker owns every real paint."),console.error(" use 'perf start' / 'perf stop' (worst frames are in the stop report).")),process.exit(1)}break}case"errors":{let o=l[1];if(o==="clear"){await qe(d),D(i)?A({cleared:!0}):console.log(" error buffer cleared");break}let n=o?Number(o):20,r=await ge(d,n);if(D(i)){A(r);break}if(r.length===0){console.log(" no errors captured");break}console.log(` ${r.length} error(s):
995
995
  `);for(let a of r){let u=ae(a.timestamp),m=a.args.map(g=>typeof g=="object"?JSON.stringify(g):g).join(" ");if(console.log(` [${u}] ${m}`),a.stack){let g=a.stack.split(`
996
- `).slice(0,3);for(let w of g)console.log(` ${w.trim()}`)}}break}case"warnings":{let o=l[1]?Number(l[1]):20,n=await gt(d,o);if(D(i)){A(n);break}if(n.length===0){console.log(" no warnings captured");break}console.log(` ${n.length} warning(s):
996
+ `).slice(0,3);for(let w of g)console.log(` ${w.trim()}`)}}break}case"warnings":{let o=l[1]?Number(l[1]):20,n=await yt(d,o);if(D(i)){A(n);break}if(n.length===0){console.log(" no warnings captured");break}console.log(` ${n.length} warning(s):
997
997
  `);for(let r of n){let a=ae(r.timestamp),u=r.args.map(m=>typeof m=="object"?JSON.stringify(m):m).join(" ");console.log(` [${a}] ${u}`)}break}case"animations":{let o=await X(d,"listAnimations")??[];if(e.includes("--json")){console.log(JSON.stringify(o,null,2));break}if(o.length===0){console.log(" no active animations");break}console.log(` ${o.length} active animation(s):
998
- `);for(let n of o){let r=String(n.realm??"tenant").padEnd(6),a=String(n.kind).padEnd(10),u=typeof n.from=="number"&&typeof n.to=="number"?`${n.from.toFixed(2)}\u2192${n.to.toFixed(2)}`:"\u2014",m=Number(n.current??0).toFixed(2),g=typeof n.progress=="number"?`${Math.round(n.progress*100)}%`:"\u2014",w=`${Math.round(n.elapsedMs??0)}ms`,y=[n.loop?"loop":null,n.layoutBound?"layout":null,n.remoteDriven?"remote-driven":n.graphBacked?"graph":null,n.visible===!1?"offscreen":null].filter(Boolean),v=y.length>0?` [${y.join(" ")}]`:"";console.log(` #${n.id} ${r} ${a} ${u.padEnd(14)} cur=${m.padEnd(7)} ${g.padStart(4)} ${w}${v}`)}break}case"animation":{let o=l[1];(!o||o==="--help"||o==="-h")&&(console.error(` usage: ${b("animation")} <id>`),process.exit(1));let n=Number(o);Number.isFinite(n)||(console.error(` invalid id: ${o}`),process.exit(1));let r=await X(d,"getAnimation",n);console.log(JSON.stringify(r,null,2));break}case"stop-animation":{let o=l[1];(!o||o==="--help"||o==="-h")&&(console.error(` usage: ${b("stop-animation")} <id|all>`),process.exit(1));let n=o==="all"?"all":Number(o);n!=="all"&&!Number.isFinite(n)&&(console.error(` invalid id: ${o}`),process.exit(1));let r=await X(d,"stopAnimation",n);console.log(` stopped ${r??0} animation(s)`);break}case"requests":{let o=l[1];if(o==="clear"){await ht(d),D(i)?A({cleared:!0}):console.log(" request buffer cleared");break}let n=o==="all",r=n?l[2]:o,a=r?Number(r):20,u=await yt(d,{failed:!n,limit:a});if(D(i)){A(u);break}if(u.length===0){console.log(n?" no requests captured":" no failed requests captured");break}console.log(` ${u.length} ${n?"request(s)":"failed request(s)"}:
998
+ `);for(let n of o){let r=String(n.realm??"tenant").padEnd(6),a=String(n.kind).padEnd(10),u=typeof n.from=="number"&&typeof n.to=="number"?`${n.from.toFixed(2)}\u2192${n.to.toFixed(2)}`:"\u2014",m=Number(n.current??0).toFixed(2),g=typeof n.progress=="number"?`${Math.round(n.progress*100)}%`:"\u2014",w=`${Math.round(n.elapsedMs??0)}ms`,y=[n.loop?"loop":null,n.layoutBound?"layout":null,n.remoteDriven?"remote-driven":n.graphBacked?"graph":null,n.visible===!1?"offscreen":null].filter(Boolean),v=y.length>0?` [${y.join(" ")}]`:"";console.log(` #${n.id} ${r} ${a} ${u.padEnd(14)} cur=${m.padEnd(7)} ${g.padStart(4)} ${w}${v}`)}break}case"animation":{let o=l[1];(!o||o==="--help"||o==="-h")&&(console.error(` usage: ${b("animation")} <id>`),process.exit(1));let n=Number(o);Number.isFinite(n)||(console.error(` invalid id: ${o}`),process.exit(1));let r=await X(d,"getAnimation",n);console.log(JSON.stringify(r,null,2));break}case"stop-animation":{let o=l[1];(!o||o==="--help"||o==="-h")&&(console.error(` usage: ${b("stop-animation")} <id|all>`),process.exit(1));let n=o==="all"?"all":Number(o);n!=="all"&&!Number.isFinite(n)&&(console.error(` invalid id: ${o}`),process.exit(1));let r=await X(d,"stopAnimation",n);console.log(` stopped ${r??0} animation(s)`);break}case"requests":{let o=l[1];if(o==="clear"){await bt(d),D(i)?A({cleared:!0}):console.log(" request buffer cleared");break}let n=o==="all",r=n?l[2]:o,a=r?Number(r):20,u=await ht(d,{failed:!n,limit:a});if(D(i)){A(u);break}if(u.length===0){console.log(n?" no requests captured":" no failed requests captured");break}console.log(` ${u.length} ${n?"request(s)":"failed request(s)"}:
999
999
  `);for(let m of u){let g=ae(m.timestamp);console.log(` [${g}] ${U(m)}`),m.responseBody?console.log(` ${m.responseBody}`):m.error&&console.log(` ${m.error}`)}break}case"network":{let o=l[1],n=null,r=null,a=!1,u=!1,m=1e3,g=!1,w=!1;for(let E=0;E<i.length;E++){let S=i[E];if(S==="--filter")n=i[E+1]??null,E++;else if(S==="--limit"){let I=Number(i[E+1]);Number.isFinite(I)&&(r=I),E++}else if(S==="--threshold"){let I=Number(i[E+1]);Number.isFinite(I)&&I>0&&(m=I),E++}else S==="--failed"?a=!0:S==="--slow"?u=!0:S==="--tail"||S==="-f"?g=!0:S==="--json"&&(w=!0)}if(o==="clear"){await d.send({type:"evaluate",code:'window.__sootsimObservability?.network.clear(); "cleared"'}),console.log(" network buffer cleared");break}if(o==="get"){let E=l[2];E||(console.error(" usage: sootsim network get <id>"),process.exit(1));let S=await d.send({type:"evaluate",code:`(() => {
1000
1000
  const obs = window.__sootsimObservability;
1001
1001
  if (!obs) return null;
@@ -1008,10 +1008,10 @@ ${n}
1008
1008
  })()`});if(!E||!E.ok)throw new Error("observability bridge not installed \u2014 is the engine running?");return E.entries??[]},L=E=>{let S=E;if(a&&(S=S.filter(I=>!!I.error||I.status!=null&&I.status>=400)),u&&(S=S.filter(I=>I.durationMs!=null&&I.durationMs>=m)),n){let I=n.toLowerCase();S=S.filter(T=>(T.displayUrl||T.url).toLowerCase().includes(I))}return u&&!g&&(S=[...S].sort((I,T)=>(T.durationMs??0)-(I.durationMs??0))),S};if(!g){let E=await v(),S=L(E).slice(-y);if(w){console.log(JSON.stringify(S,null,2));break}if(S.length===0){E.length===0?console.log(" no network requests captured"):console.log(u?` no requests slower than ${m}ms (${E.length} total \u2014 try --threshold <ms>)`:" no matching requests");break}console.log(u?` ${S.length} request(s) slower than ${m}ms (sorted by duration desc):
1009
1009
  `:` ${S.length} request(s):
1010
1010
  `);for(let I of S)ho(I);break}console.log(` tailing network (ctrl-c to stop)...
1011
- `);let V=new Set,G=!0,Y=()=>{G=!1};process.on("SIGINT",Y);try{for(;G;){let E=await v(),S=L(E);for(let I of S)I.durationMs!=null&&(V.has(I.id)||(V.add(I.id),w?console.log(JSON.stringify(I)):ho(I)));await oe(250)}}finally{process.off("SIGINT",Y)}break}case"logs":{let o=l[1],n=null,r=null,a=null,u=!1,m=!1,g=!1;for(let S=0;S<i.length;S++){let I=i[S];if(I==="--filter")n=i[S+1]??null,S++;else if(I==="--limit"){let T=Number(i[S+1]);Number.isFinite(T)&&(r=T),S++}else I==="--level"?(a=i[S+1]??null,S++):I==="--tail"||I==="-f"?u=!0:I==="--json"?m=!0:(I==="--internal"||I==="--all")&&(g=!0)}let w=a?new Set(a.split(",").map(S=>S.trim()).filter(S=>S==="log"||S==="info"||S==="warn"||S==="error"||S==="debug")):null;if(o==="clear"){await wt(d),console.log(" log buffer cleared");break}let y=!m&&process.stdout.isTTY===!0,v=r??(u?500:o?Number(o):50);Number.isFinite(v)||(console.error(` invalid limit: ${o} \u2014 \`logs\` takes a numeric count (e.g. ${b("logs")} 100).
1012
- to target a specific sim, use \`--sim ${o}\` instead.`),process.exit(1));let L=()=>bt(d),V=S=>$t(S,{level:w,filter:n,showInternal:g});if(!u){let S=await L(),I=V(S).slice(-v);if(m){console.log(JSON.stringify(I,null,2));break}if(I.length===0){console.log(S.length===0?" no logs captured":" no matching logs");break}console.log(` ${I.length} log(s):
1011
+ `);let V=new Set,G=!0,Y=()=>{G=!1};process.on("SIGINT",Y);try{for(;G;){let E=await v(),S=L(E);for(let I of S)I.durationMs!=null&&(V.has(I.id)||(V.add(I.id),w?console.log(JSON.stringify(I)):ho(I)));await oe(250)}}finally{process.off("SIGINT",Y)}break}case"logs":{let o=l[1],n=null,r=null,a=null,u=!1,m=!1,g=!1;for(let S=0;S<i.length;S++){let I=i[S];if(I==="--filter")n=i[S+1]??null,S++;else if(I==="--limit"){let T=Number(i[S+1]);Number.isFinite(T)&&(r=T),S++}else I==="--level"?(a=i[S+1]??null,S++):I==="--tail"||I==="-f"?u=!0:I==="--json"?m=!0:(I==="--internal"||I==="--all")&&(g=!0)}let w=a?new Set(a.split(",").map(S=>S.trim()).filter(S=>S==="log"||S==="info"||S==="warn"||S==="error"||S==="debug")):null;if(o==="clear"){await $t(d),console.log(" log buffer cleared");break}let y=!m&&process.stdout.isTTY===!0,v=r??(u?500:o?Number(o):50);Number.isFinite(v)||(console.error(` invalid limit: ${o} \u2014 \`logs\` takes a numeric count (e.g. ${b("logs")} 100).
1012
+ to target a specific sim, use \`--sim ${o}\` instead.`),process.exit(1));let L=()=>wt(d),V=S=>xt(S,{level:w,filter:n,showInternal:g});if(!u){let S=await L(),I=V(S).slice(-v);if(m){console.log(JSON.stringify(I,null,2));break}if(I.length===0){console.log(S.length===0?" no logs captured":" no matching logs");break}console.log(` ${I.length} log(s):
1013
1013
  `);for(let T of I)wo(T,y);break}console.log(` tailing logs (ctrl-c to stop)...
1014
- `);let G=new Set,Y=!0,E=()=>{Y=!1};process.on("SIGINT",E);try{for(;Y;){let S=await L(),I=V(S);for(let T of I)G.has(T.id)||(G.add(T.id),m?console.log(JSON.stringify(T)):wo(T,y));await oe(250)}}finally{process.off("SIGINT",E)}break}default:console.error(` unknown subcommand: ${f}`),process.exit(1)}if(C.has(f)&&!e.includes("--no-wait")&&process.env.SOOTSIM_NO_AUTO_WAIT!=="1"&&!await nt(d,f)&&await _(d),x.length>0&&ee(x),!R.has(f))try{await xe(d)}catch{}}catch(x){let o=x instanceof Error?x.message:String(x);console.error(` ${f??"inspect"} failed: ${o}`);let n=/^no sim connected with id ([^;]+)(?:; connected sims: .+)?$/.exec(o),r=/^command timed out after (\d+)s$/.exec(o),a=o.startsWith("sim disconnected:")||o.startsWith("bridge never reconnected")||o.startsWith("could not connect to ws://");if(n)await Pt(d,N,n[1]);else if(/^no sim connected$/.test(o))Et(N);else if(r)if(await ps(d)){let m=f??"describe";process.stderr.write(` the sim is still responsive \u2014 '${m}' just exceeded the ${r[1]}s command budget.
1014
+ `);let G=new Set,Y=!0,E=()=>{Y=!1};process.on("SIGINT",E);try{for(;Y;){let S=await L(),I=V(S);for(let T of I)G.has(T.id)||(G.add(T.id),m?console.log(JSON.stringify(T)):wo(T,y));await oe(250)}}finally{process.off("SIGINT",E)}break}default:console.error(` unknown subcommand: ${f}`),process.exit(1)}if(C.has(f)&&!e.includes("--no-wait")&&process.env.SOOTSIM_NO_AUTO_WAIT!=="1"&&!await rt(d,f)&&await _(d),x.length>0&&ee(x),!R.has(f))try{await xe(d)}catch{}}catch(x){let o=x instanceof Error?x.message:String(x);console.error(` ${f??"inspect"} failed: ${o}`);let n=/^no sim connected with id ([^;]+)(?:; connected sims: .+)?$/.exec(o),r=/^command timed out after (\d+)s$/.exec(o),a=o.startsWith("sim disconnected:")||o.startsWith("bridge never reconnected")||o.startsWith("could not connect to ws://");if(n)await Pt(d,N,n[1]);else if(/^no sim connected$/.test(o))Et(N);else if(r)if(await ps(d)){let m=f??"describe";process.stderr.write(` the sim is still responsive \u2014 '${m}' just exceeded the ${r[1]}s command budget.
1015
1015
  the screen's node tree is large; narrow the query or raise the budget:
1016
1016
  sootsim ${m} --testid <id> # scope to one subtree
1017
1017
  sootsim find --testid <id> # targeted single-node lookup
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.296 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
4
  import{readFileSync as i}from"node:fs";import{fileURLToPath as e}from"node:url";var r=null;function l(){if(r!=null)return r;let o=[()=>e(import.meta.resolve("sootsim/package.json")),()=>e(new URL("../package.json",import.meta.url))];for(let n of o)try{let t=JSON.parse(i(n(),"utf8")).version;if(typeof t=="string"&&t)return r=t,r}catch{}return r="0.0.0",r}export{l as a};
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.296 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
4
  var t=Object.freeze({id:"ios",displayName:"iOS",isIOS:!0,isAndroid:!1,select:e=>e.ios}),r=Object.freeze({id:"android",displayName:"Android",isIOS:!1,isAndroid:!0,select:e=>e.android}),i=Object.freeze({ios:t,android:r});
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.295 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.296 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
4
  var a=["Cache","Code Cache","DawnCache","DawnGraphiteCache","DawnWebGPUCache","GPUCache","GrShaderCache","ShaderCache"],r=new Set(a);function s(e){return r.has(e)}export{a,s as b};