sootsim 0.0.4 → 0.1.37

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 (165) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +24 -9
  3. package/dist-cli/bin.js +15 -20
  4. package/dist-cli/chunks/{agent-PJAOF4JS.js → agent-EQRQGSBL.js} +4 -4
  5. package/dist-cli/chunks/agent-wrapper-AWKZ67GN.js +15 -0
  6. package/dist-cli/chunks/{assert-P47NW4AF.js → assert-ZVGELUZB.js} +2 -2
  7. package/dist-cli/chunks/auto-bootstrap-UEOLNAWJ.js +2 -0
  8. package/dist-cli/chunks/beta-4MD7WSI4.js +2 -0
  9. package/dist-cli/chunks/chunk-2ZPJHSIJ.js +11 -0
  10. package/dist-cli/chunks/chunk-4IO3D5XG.js +2 -0
  11. package/dist-cli/chunks/chunk-4OHVCGMF.js +2 -0
  12. package/dist-cli/chunks/chunk-56BIMCDH.js +2 -0
  13. package/dist-cli/chunks/chunk-5FLDI6CV.js +66 -0
  14. package/dist-cli/chunks/{chunk-WWDJCKMI.js → chunk-B3RAGRK6.js} +1 -1
  15. package/dist-cli/chunks/chunk-BGAPLYMS.js +61 -0
  16. package/dist-cli/chunks/chunk-CX3ZIPD3.js +3 -0
  17. package/dist-cli/chunks/{chunk-I6XGFZPA.js → chunk-DSTV2VJT.js} +2 -2
  18. package/dist-cli/chunks/chunk-EDBFYOQB.js +2 -0
  19. package/dist-cli/chunks/chunk-ERLA3F77.js +1 -0
  20. package/dist-cli/chunks/chunk-FCQLQ7NA.js +117 -0
  21. package/dist-cli/chunks/chunk-H2HSOHXN.js +7 -0
  22. package/dist-cli/chunks/chunk-HYYMBXIX.js +2 -0
  23. package/dist-cli/chunks/chunk-JMGDVXAV.js +3 -0
  24. package/dist-cli/chunks/chunk-JMU5IGIU.js +1 -0
  25. package/dist-cli/chunks/chunk-KA5JJCWL.js +1 -0
  26. package/dist-cli/chunks/chunk-L4F4JRKJ.js +348 -0
  27. package/dist-cli/chunks/chunk-LDWXH43L.js +4 -0
  28. package/dist-cli/chunks/chunk-PERKPZ7T.js +4 -0
  29. package/dist-cli/chunks/chunk-PN6FWLD4.js +5 -0
  30. package/dist-cli/chunks/chunk-QD7YIVPS.js +64 -0
  31. package/dist-cli/chunks/chunk-QWKO62QM.js +2 -0
  32. package/dist-cli/chunks/{chunk-6SZMLFCR.js → chunk-QXMZNJV5.js} +1 -1
  33. package/dist-cli/chunks/chunk-R77F5J3X.js +4 -0
  34. package/dist-cli/chunks/chunk-RLNIKWFO.js +27 -0
  35. package/dist-cli/chunks/chunk-RX6RHGSI.js +2 -0
  36. package/dist-cli/chunks/chunk-S74RCIVB.js +2 -0
  37. package/dist-cli/chunks/chunk-SK4SOISL.js +1 -0
  38. package/dist-cli/chunks/{chunk-AFQBSK2J.js → chunk-T5L73GJB.js} +1 -1
  39. package/dist-cli/chunks/{chunk-432TMHBG.js → chunk-UIQ3536J.js} +1 -1
  40. package/dist-cli/chunks/chunk-URSEYCC5.js +16 -0
  41. package/dist-cli/chunks/chunk-WFXYY3DU.js +3 -0
  42. package/dist-cli/chunks/{chunk-DQKQYPIG.js → chunk-WHLHA5R5.js} +4 -4
  43. package/dist-cli/chunks/chunk-WLIVBPPY.js +3 -0
  44. package/dist-cli/chunks/{chunk-UQ3N6FZF.js → chunk-X6BP5JFC.js} +4 -4
  45. package/dist-cli/chunks/chunk-YFXTO4QX.js +5 -0
  46. package/dist-cli/chunks/{chunk-4XBPZQLW.js → chunk-Z5SVSAZO.js} +2 -2
  47. package/dist-cli/chunks/{chunk-5TTQKPGH.js → chunk-Z5X3PITK.js} +3 -3
  48. package/dist-cli/chunks/chunk-ZBOIGEGO.js +5 -0
  49. package/dist-cli/chunks/chunk-ZERYEI3L.js +17 -0
  50. package/dist-cli/chunks/{compat-ILLJ7VDL.js → compat-QQ3OJDBI.js} +2 -2
  51. package/dist-cli/chunks/{config-CDIAJIIT.js → config-LT27SC25.js} +2 -2
  52. package/dist-cli/chunks/control-3BO54QMO.js +2 -0
  53. package/dist-cli/chunks/cpu-profile-XEO3JCVB.js +22 -0
  54. package/dist-cli/chunks/daemon-3J2SAVQZ.js +83 -0
  55. package/dist-cli/chunks/{debug-6SMCTPMC.js → debug-OGQLIH4U.js} +4 -4
  56. package/dist-cli/chunks/demo-app-registry-5RZCXLWB.js +2 -0
  57. package/dist-cli/chunks/detox-Z2OSCIQU.js +49 -0
  58. package/dist-cli/chunks/device-RPTVD25S.js +16 -0
  59. package/dist-cli/chunks/diagnose-LAEXBNOQ.js +41 -0
  60. package/dist-cli/chunks/drivers-PSQUUAYC.js +2 -0
  61. package/dist-cli/chunks/electron-S2463O3P.js +18 -0
  62. package/dist-cli/chunks/flow-34YCVQDB.js +2 -0
  63. package/dist-cli/chunks/hints-E5PXPWFT.js +2 -0
  64. package/dist-cli/chunks/home-paths-F5SGBTRZ.js +2 -0
  65. package/dist-cli/chunks/inspect-EVGMEZ3G.js +1101 -0
  66. package/dist-cli/chunks/install-AM5PTJT3.js +2 -0
  67. package/dist-cli/chunks/install-desktop-ZNWYKTWQ.js +23 -0
  68. package/dist-cli/chunks/{keys-OWQ7SOTM.js → keys-5ETF6DYO.js} +2 -2
  69. package/dist-cli/chunks/{launch-WUEDHSO5.js → launch-DHUCNFX6.js} +3 -3
  70. package/dist-cli/chunks/login-KDR34JIP.js +26 -0
  71. package/dist-cli/chunks/logout-R6WIJYCW.js +2 -0
  72. package/dist-cli/chunks/maestro-ZOOJ2YVH.js +80 -0
  73. package/dist-cli/chunks/{preview-4RVHA2PP.js → preview-YFADHNBD.js} +2 -2
  74. package/dist-cli/chunks/profile-CQSC32HB.js +22 -0
  75. package/dist-cli/chunks/react-QSQD6CJE.js +30 -0
  76. package/dist-cli/chunks/{record-KEWLM5JR.js → record-IWLEYATN.js} +5 -5
  77. package/dist-cli/chunks/runtime-WKMNKYTN.js +25 -0
  78. package/dist-cli/chunks/screenshot-VJXHV57I.js +28 -0
  79. package/dist-cli/chunks/screenshot-mode-FA4VQ76K.js +17 -0
  80. package/dist-cli/chunks/screenshots-U4FQXHVK.js +70 -0
  81. package/dist-cli/chunks/server-7WZLM5NQ.js +35 -0
  82. package/dist-cli/chunks/setup-repo-3BXLAX5E.js +2 -0
  83. package/dist-cli/chunks/{skills-DJA6QEVR.js → skills-KO7RCY24.js} +2 -2
  84. package/dist-cli/chunks/start-EBD7T2GW.js +23 -0
  85. package/dist-cli/chunks/store-ONX3EBS4.js +2 -0
  86. package/dist-cli/chunks/telemetry-MFR7TUW7.js +2 -0
  87. package/dist-cli/chunks/{test-IWUHNFXV.js → test-OSVUG54G.js} +3 -3
  88. package/dist-cli/chunks/three-mode-MDBXZQG4.js +39 -0
  89. package/dist-cli/chunks/timeline-UJOKZKQR.js +22 -0
  90. package/dist-cli/chunks/upload-H2SMWP6T.js +2 -0
  91. package/dist-cli/chunks/what-happened-LFWH74FR.js +15 -0
  92. package/dist-cli/chunks/whoami-CUF56TLP.js +2 -0
  93. package/dist-lib/agent-daemon-client.cjs +6 -1
  94. package/dist-lib/agent-events.cjs +1 -1
  95. package/dist-lib/agent-sessions.cjs +42 -39
  96. package/dist-lib/attached-projects.cjs +30 -28
  97. package/dist-lib/auth/shared-session.cjs +35 -27
  98. package/dist-lib/backend-origin.cjs +1 -1
  99. package/dist-lib/bridge-constants.cjs +1 -1
  100. package/dist-lib/cli-constants.cjs +1 -1
  101. package/dist-lib/config.cjs +6 -2
  102. package/dist-lib/dev-bundle-resolution.cjs +7 -21
  103. package/dist-lib/home-paths.cjs +112 -30
  104. package/dist-lib/host/bridge-host.cjs +1817 -579
  105. package/dist-lib/host/fetch-proxy-handler.cjs +248 -0
  106. package/dist-lib/index.cjs +22 -22
  107. package/dist-lib/metro.cjs +22 -22
  108. package/dist-lib/profiles.cjs +246 -0
  109. package/dist-lib/render-mode.cjs +1 -1
  110. package/dist-lib/vite-base.cjs +3224 -764
  111. package/dist-lib/vite.cjs +1 -1
  112. package/package.json +11 -3
  113. package/dist-cli/chunks/agent-wrapper-STO7PLQD.js +0 -15
  114. package/dist-cli/chunks/auto-bootstrap-SC2LMI2H.js +0 -2
  115. package/dist-cli/chunks/chunk-47S5DXXX.js +0 -11
  116. package/dist-cli/chunks/chunk-4VXB2DBA.js +0 -119
  117. package/dist-cli/chunks/chunk-AUR2LTNX.js +0 -3
  118. package/dist-cli/chunks/chunk-BQRM4E66.js +0 -4
  119. package/dist-cli/chunks/chunk-C3QLIYCS.js +0 -16
  120. package/dist-cli/chunks/chunk-EHMSE3Q3.js +0 -2
  121. package/dist-cli/chunks/chunk-F4ARVCRR.js +0 -1
  122. package/dist-cli/chunks/chunk-HAKR72LJ.js +0 -2
  123. package/dist-cli/chunks/chunk-HGFIS26A.js +0 -2
  124. package/dist-cli/chunks/chunk-MQDPKSCK.js +0 -308
  125. package/dist-cli/chunks/chunk-MZPAJ5PQ.js +0 -1
  126. package/dist-cli/chunks/chunk-OAHMYSMD.js +0 -2
  127. package/dist-cli/chunks/chunk-QIP7LYQI.js +0 -5
  128. package/dist-cli/chunks/chunk-QQOBLF7O.js +0 -22
  129. package/dist-cli/chunks/chunk-SY74J6F4.js +0 -5
  130. package/dist-cli/chunks/chunk-UKYK63H6.js +0 -3
  131. package/dist-cli/chunks/chunk-UNFERMZ3.js +0 -27
  132. package/dist-cli/chunks/chunk-VGXARPIH.js +0 -3
  133. package/dist-cli/chunks/chunk-W3TYN64D.js +0 -62
  134. package/dist-cli/chunks/chunk-W7CYWXRZ.js +0 -4
  135. package/dist-cli/chunks/chunk-WRF43M33.js +0 -4
  136. package/dist-cli/chunks/chunk-WVBPATRA.js +0 -2
  137. package/dist-cli/chunks/chunk-XJF46GU2.js +0 -2
  138. package/dist-cli/chunks/chunk-ZF5FCFLD.js +0 -2
  139. package/dist-cli/chunks/chunk-ZKNI5MRD.js +0 -1
  140. package/dist-cli/chunks/control-7QGKUCAX.js +0 -2
  141. package/dist-cli/chunks/daemon-4BLYGM5N.js +0 -49
  142. package/dist-cli/chunks/demo-app-registry-HLI5UGGI.js +0 -2
  143. package/dist-cli/chunks/detox-R4G5INNB.js +0 -49
  144. package/dist-cli/chunks/device-YSLCWS4E.js +0 -16
  145. package/dist-cli/chunks/drivers-YIXRFFBQ.js +0 -2
  146. package/dist-cli/chunks/electron-JZOFO37G.js +0 -15
  147. package/dist-cli/chunks/flow-L7X5FGIN.js +0 -2
  148. package/dist-cli/chunks/hints-O4QR6UGI.js +0 -2
  149. package/dist-cli/chunks/home-paths-4YJJYGR6.js +0 -2
  150. package/dist-cli/chunks/inspect-DRFAUJUH.js +0 -1030
  151. package/dist-cli/chunks/install-BATRTWRI.js +0 -65
  152. package/dist-cli/chunks/install-desktop-6X474IQ3.js +0 -23
  153. package/dist-cli/chunks/install-dev-desktop-CAJHPRNP.js +0 -100
  154. package/dist-cli/chunks/login-54YJ2KH6.js +0 -26
  155. package/dist-cli/chunks/logout-XECXLEXW.js +0 -2
  156. package/dist-cli/chunks/maestro-PMHK6EHI.js +0 -75
  157. package/dist-cli/chunks/profile-3IVNHUS6.js +0 -22
  158. package/dist-cli/chunks/runtime-PJKHEB36.js +0 -25
  159. package/dist-cli/chunks/screenshot-BXRAQERZ.js +0 -26
  160. package/dist-cli/chunks/screenshot-mode-5IXEDIUS.js +0 -17
  161. package/dist-cli/chunks/screenshots-T4MQF3TB.js +0 -70
  162. package/dist-cli/chunks/server-CIP3LH45.js +0 -29
  163. package/dist-cli/chunks/store-SPC247DB.js +0 -2
  164. package/dist-cli/chunks/upload-UPD2RSYF.js +0 -2
  165. package/dist-cli/chunks/whoami-MCXFWKIH.js +0 -2
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- async function o(e){let{spawn:t}=await import("child_process");if(process.platform==="darwin"){t("open",["-g",e],{detached:!0,stdio:"ignore"}).unref();return}if(process.platform==="win32"){t("cmd",["/c","start","",e],{detached:!0,stdio:"ignore"}).unref();return}t("xdg-open",[e],{detached:!0,stdio:"ignore"}).unref()}export{o as a};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{g as f,i as u,j as d}from"./chunk-EHMSE3Q3.js";var S="sootsim:settings",p=["errorReporting","colorScheme","a11yMode","a11yDepth","screenshotCanvas","screenshotBackground","screenshotText","screenshotPose","screenshotDynamicSize","agentProvider"];function y(){try{let e=localStorage.getItem(S);if(!e)return{};let t=JSON.parse(e),n={};for(let o of p)o in t&&(n[o]=t[o]);return n}catch{return{}}}function v(e){try{let t={};for(let n of p)t[n]=e[n];localStorage.setItem(S,JSON.stringify(t))}catch{}}var h=d(),K=typeof localStorage<"u"?y():{},s={...h,...K},a=[],i=null;function g(){for(let e of a)e();typeof localStorage<"u"&&v(s)}var V={get(e){return s[e]},set(e,t){let n=u[e];n.validate&&!n.validate(t)||n.options&&!n.options.includes(t)||s[e]!==t&&(s={...s,[e]:t},e==="deviceModel"&&(i=null),g())},getAll(){return s},apply(e){let t=!1,n={...s};for(let[o,r]of Object.entries(e)){if(r===void 0)continue;let l=o,c=u[l];c&&(c.validate&&!c.validate(r)||c.options&&!c.options.includes(r)||n[l]!==r&&(n[l]=r,t=!0))}t&&(s=n,i=null,g())},reset(){s=d(),i=null,g()},subscribe(e){return a.push(e),()=>{a=a.filter(t=>t!==e)}},getDeviceSpec(){return i||(i=f(s.deviceModel)),i},getA11yMode(){return s.a11yMode},setA11yMode(e){this.set("a11yMode",e)},getInspectMode(){return s.inspectMode},setInspectMode(e){this.set("inspectMode",e)}};export{V as a};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a as n,b as l}from"./chunk-SY74J6F4.js";import{execFileSync as f,spawn as v}from"child_process";import{existsSync as g}from"fs";var y=["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome","/Applications/Chromium.app/Contents/MacOS/Chromium","/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge","/Applications/Brave Browser.app/Contents/MacOS/Brave Browser","/Applications/Arc.app/Contents/MacOS/Arc"],D=["/usr/bin/google-chrome","/usr/bin/chromium","/usr/bin/chromium-browser","/usr/bin/microsoft-edge","/snap/bin/chromium"],w=["C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe","C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe","C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"];function c(){let e=(process.platform==="darwin"?y:process.platform==="win32"?w:D).find(i=>g(i));if(e)return e;if(process.platform==="win32")return null;for(let i of["google-chrome","chromium","chromium-browser","microsoft-edge"])try{let t=f("which",[i],{encoding:"utf8",timeout:1500}).trim();if(t)return t}catch{}return null}function b(){let r=c();return r?{available:!0,reason:null,detail:r}:{available:!1,reason:"no chromium-family browser found (chrome, chromium, edge, brave, arc)"}}async function A(r){let e=c();if(!e)return{launched:!1,message:"chromium not found \u2014 install chrome or run `sootsim list --drivers`"};if(!r.url)return{launched:!1,message:"chromium driver requires a target url"};let i=[];r.headless?i.push("--headless=new"):i.push("--new-window"),i.push(r.url);try{let t=v(e,i,{detached:r.detached??!0,stdio:"ignore"});return t.unref(),{launched:!0,message:`chromium launched \u2192 ${r.url}`,pid:t.pid,target:e,attachUrl:r.url}}catch(t){return{launched:!1,message:`chromium spawn failed: ${t instanceof Error?t.message:String(t)}`}}}var u={id:"chromium",name:"chromium",description:"system chrome / chromium / edge \u2014 supports --headless",kind:"browser",availability:b,launch:A};function x(){let r=n();return r?{available:!0,reason:null,detail:`${r.kind} @ ${r.path}`}:{available:!1,reason:"sootsim desktop app not installed (run `sootsim install-desktop`)"}}async function C(r){let e=n();if(!e)return{launched:!1,message:"sootsim desktop app not installed"};try{let i=await l(r.url,e,{device:r.device});return i.launched?{launched:!0,message:r.url?`electron launched via ${i.via} \u2192 ${r.url}`:`electron launched via ${i.via}`,target:i.target,attachUrl:r.url}:{launched:!1,message:"desktop companion failed to start"}}catch(i){return{launched:!1,message:`electron launch failed: ${i instanceof Error?i.message:String(i)}`}}}var m={id:"electron",name:"electron",description:"sootsim desktop companion app (native window, menu bar)",kind:"native",availability:x,launch:C};import{createRequire as L}from"module";function d(){try{let r=L(process.cwd()+"/");for(let e of["playwright","playwright-chromium","playwright-core"])try{return r.resolve(e),e}catch{}}catch{}return null}function k(){let r=d();return r?{available:!0,reason:null,detail:`resolved via ${r}`}:{available:!1,reason:"playwright not installed in the current workspace"}}async function S(r){let e=d();if(!e)return{launched:!1,message:"playwright not installed \u2014 run `bun add -D playwright` first"};if(!r.url)return{launched:!1,message:"playwright driver requires a target url"};try{return await(await(await(await(await import(e)).chromium.launch({headless:r.headless??!0})).newContext()).newPage()).goto(r.url),{launched:!0,message:`playwright chromium launched \u2192 ${r.url}`,target:e,attachUrl:r.url}}catch(i){return{launched:!1,message:`playwright launch failed: ${i instanceof Error?i.message:String(i)}`}}}var p={id:"playwright",name:"playwright",description:"programmatic chromium via the playwright package \u2014 headless default",kind:"automation",availability:k,launch:S};import{spawn as o}from"child_process";function $(){return process.platform!=="darwin"&&process.platform!=="linux"&&process.platform!=="win32"?{available:!1,reason:`unsupported platform: ${process.platform}`}:{available:!0,reason:null,detail:process.platform==="darwin"?"open(1)":process.platform==="win32"?"cmd /c start":"xdg-open(1)"}}async function O(r){if(r.headless)return{launched:!1,message:"system driver does not support --headless; use chromium or playwright"};if(!r.url)return{launched:!1,message:"system driver requires a target url"};try{if(process.platform==="darwin"){let i=o("open",["-g",r.url],{detached:r.detached??!0,stdio:"ignore"});return i.unref(),{launched:!0,message:`system open \u2192 ${r.url}`,pid:i.pid,attachUrl:r.url}}if(process.platform==="win32"){let i=o("cmd",["/c","start","",r.url],{detached:r.detached??!0,stdio:"ignore"});return i.unref(),{launched:!0,message:`system start \u2192 ${r.url}`,pid:i.pid,attachUrl:r.url}}let e=o("xdg-open",[r.url],{detached:r.detached??!0,stdio:"ignore"});return e.unref(),{launched:!0,message:`xdg-open \u2192 ${r.url}`,pid:e.pid,attachUrl:r.url}}catch(e){return{launched:!1,message:`system launch failed: ${e instanceof Error?e.message:String(e)}`}}}var h={id:"system",name:"system",description:"OS default handler \u2014 open(mac), xdg-open(linux), cmd start(win)",kind:"delegate",availability:$,launch:O};var a=[u,m,p,h];function W(){return a}function X(r){return a.find(e=>e.id===r)??null}function j(r,e){if(r)return a.find(t=>t.id===r)??null;for(let i of e){let t=a.find(s=>s.id===i);if(t&&t.availability().available)return t}return null}function z(){return a.map(r=>{let e=r.availability();return{id:r.id,name:r.name,kind:r.kind,description:r.description,available:e.available,reason:e.reason,detail:e.detail??null}})}export{u as a,m as b,p as c,h as d,a as e,W as f,X as g,j as h,z as i};
@@ -1 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m}from"./chunk-47S5DXXX.js";import"./chunk-OAHMYSMD.js";import"./chunk-5TTQKPGH.js";import"./chunk-WVBPATRA.js";import"./chunk-HGFIS26A.js";import"./chunk-C3QLIYCS.js";import"./chunk-W7CYWXRZ.js";import"./chunk-MZPAJ5PQ.js";import"./chunk-WRF43M33.js";import"./chunk-ZF5FCFLD.js";import"./chunk-SY74J6F4.js";import"./chunk-WWDJCKMI.js";export{d as buildOpenUrl,c as buildShellUrl,f as printConnectedBrowsers,a as resolveBundleTarget,b as resolveDefaultShellBaseUrl,l as runClaimCommand,m as runCloseCommand,k as runFocusCommand,h as runListCommand,i as runOpenCommand,j as runUseCommand,e as summarizeBrowserUrl,g as waitForBrowserMatch};
@@ -1,49 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import"./chunk-MZPAJ5PQ.js";import"./chunk-WWDJCKMI.js";import{execFileSync as k,spawnSync as o}from"child_process";import{existsSync as i,mkdirSync as d,readFileSync as v,rmSync as f,writeFileSync as y}from"fs";import{homedir as p}from"os";import{dirname as $,resolve as c}from"path";var l="dev.sootsim.server",a="sootsim-server",u=c(p(),"Library/Logs/sootsim"),b=c(p(),".local/state/sootsim");async function F(t,s={}){let[r,...e]=t,n=s.port??7668;if(!r||r==="--help"||r==="-h"){h();return}switch(r){case"install":return P({port:n,force:e.includes("--force")});case"uninstall":return D();case"status":return E();case"restart":return I();case"start":return A();case"stop":return R();default:console.error(` unknown daemon subcommand: ${r}`),h(),process.exit(1)}}function h(){console.log(`
3
- sootsim daemon \u2014 manage the sootsim bridge as a login agent
4
-
5
- usage:
6
- sootsim daemon install [--force] register the login agent and start it
7
- sootsim daemon uninstall stop and remove the login agent
8
- sootsim daemon status show whether the agent is installed + running
9
- sootsim daemon restart restart the agent (use after 'npm update -g sootsim')
10
- sootsim daemon start start the installed agent
11
- sootsim daemon stop stop the running agent
12
-
13
- examples:
14
- sootsim daemon install
15
- sootsim daemon status
16
- sootsim daemon restart
17
- `)}function x(){try{let s=k("which",["sootsim"],{encoding:"utf8"}).trim();if(s&&i(s))return s}catch{}let t=process.argv[1];if(t&&i(t))return t;throw new Error("could not locate the sootsim binary")}function S(t,s){d(u,{recursive:!0});let r=c(u,"server.out.log"),e=c(u,"server.err.log");return`<?xml version="1.0" encoding="UTF-8"?>
18
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
19
- <plist version="1.0">
20
- <dict>
21
- <key>Label</key><string>${l}</string>
22
- <key>ProgramArguments</key>
23
- <array>
24
- <string>${t}</string>
25
- <string>server</string>
26
- <string>--quiet</string>
27
- <string>--port</string>
28
- <string>${s}</string>
29
- </array>
30
- <key>RunAtLoad</key><true/>
31
- <key>KeepAlive</key><true/>
32
- <key>ProcessType</key><string>Background</string>
33
- <key>StandardOutPath</key><string>${r}</string>
34
- <key>StandardErrorPath</key><string>${e}</string>
35
- </dict>
36
- </plist>
37
- `}function L(t,s){return d(b,{recursive:!0}),`[Unit]
38
- Description=sootsim bridge daemon
39
- After=default.target
40
-
41
- [Service]
42
- Type=simple
43
- ExecStart=${t} server --quiet --port ${s}
44
- Restart=always
45
- RestartSec=3
46
-
47
- [Install]
48
- WantedBy=default.target
49
- `}function m(){return c(p(),"Library/LaunchAgents",`${l}.plist`)}function g(){return c(p(),".config/systemd/user",`${a}.service`)}async function P({port:t,force:s}){let r=x();if(console.log(` binary: ${r}`),console.log(` port: ${t}`),process.platform==="darwin"){let e=m();if(i(e)&&!s){console.log(` already installed at ${e}`),console.log(" pass --force to overwrite, or use 'sootsim daemon restart' to reload");return}d($(e),{recursive:!0}),y(e,S(r,t)),console.log(` wrote ${e}`),o("launchctl",["bootstrap",`gui/${process.getuid()}`,e],{stdio:"ignore"});let n=o("launchctl",["kickstart","-k",`gui/${process.getuid()}/${l}`],{stdio:"pipe",encoding:"utf8"});n.status!==0&&console.warn(` warning: kickstart returned ${n.status}: ${n.stderr?.trim()}`),console.log(` started (log: ${c(u,"server.err.log")})`);return}if(process.platform==="linux"){let e=g();if(i(e)&&!s){console.log(` already installed at ${e}`),console.log(" pass --force to overwrite, or use 'sootsim daemon restart' to reload");return}d($(e),{recursive:!0}),y(e,L(r,t)),console.log(` wrote ${e}`),o("systemctl",["--user","daemon-reload"],{stdio:"ignore"});let n=o("systemctl",["--user","enable","--now",a],{stdio:"pipe",encoding:"utf8"});n.status!==0&&(console.warn(` warning: systemctl enable --now exited ${n.status}`),n.stderr&&console.warn(` ${n.stderr.trim()}`)),console.log(` started (journalctl --user -u ${a} to tail logs)`);return}console.error(` sootsim daemon install is not supported on ${process.platform}`),console.error(" run 'sootsim server' in a persistent shell instead"),process.exit(1)}async function D(){if(process.platform==="darwin"){let t=m();if(!i(t)){console.log(" not installed");return}o("launchctl",["bootout",`gui/${process.getuid()}/${l}`],{stdio:"ignore"}),f(t,{force:!0}),console.log(` removed ${t}`);return}if(process.platform==="linux"){let t=g();if(!i(t)){console.log(" not installed");return}o("systemctl",["--user","disable","--now",a],{stdio:"ignore"}),f(t,{force:!0}),o("systemctl",["--user","daemon-reload"],{stdio:"ignore"}),console.log(` removed ${t}`);return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function E(){if(process.platform==="darwin"){let t=m();if(!i(t)){console.log(" installed: no");return}console.log(` installed: yes (${t})`);let s=T(t);s&&console.log(` binary: ${s}`);let r=o("launchctl",["print",`gui/${process.getuid()}/${l}`],{encoding:"utf8"});if(r.status===0){let e=r.stdout.match(/state\s*=\s*(\w+)/)?.[1],n=r.stdout.match(/pid\s*=\s*(\d+)/)?.[1];console.log(` state: ${e||"unknown"}${n?` (pid ${n})`:""}`)}else console.log(" state: not running");return}if(process.platform==="linux"){let t=g();if(!i(t)){console.log(" installed: no");return}console.log(` installed: yes (${t})`);let s=o("systemctl",["--user","is-active",a],{encoding:"utf8"});console.log(` state: ${s.stdout.trim()||"unknown"}`);return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function I(){if(process.platform==="darwin"){let t=m();i(t)||(console.error(" not installed \u2014 run `sootsim daemon install` first"),process.exit(1));let s=o("launchctl",["kickstart","-k",`gui/${process.getuid()}/${l}`],{stdio:"pipe",encoding:"utf8"});s.status!==0&&(console.error(` kickstart failed: ${s.stderr?.trim()}`),process.exit(1)),console.log(" restarted");return}if(process.platform==="linux"){let t=g();i(t)||(console.error(" not installed \u2014 run `sootsim daemon install` first"),process.exit(1));let s=o("systemctl",["--user","restart",a],{stdio:"pipe",encoding:"utf8"});s.status!==0&&(console.error(` restart failed: ${s.stderr?.trim()}`),process.exit(1)),console.log(" restarted");return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function A(){if(process.platform==="darwin"){o("launchctl",["kickstart",`gui/${process.getuid()}/${l}`],{stdio:"inherit"});return}if(process.platform==="linux"){o("systemctl",["--user","start",a],{stdio:"inherit"});return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function R(){if(process.platform==="darwin"){o("launchctl",["bootout",`gui/${process.getuid()}/${l}`],{stdio:"inherit"});return}if(process.platform==="linux"){o("systemctl",["--user","stop",a],{stdio:"inherit"});return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}function T(t){try{return v(t,"utf8").match(/<array>\s*<string>([^<]+)<\/string>/)?.[1]||null}catch{return null}}export{F as runDaemon};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a}from"./chunk-QQOBLF7O.js";import"./chunk-WWDJCKMI.js";export{a as APPS};
@@ -1,49 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{b as S}from"./chunk-MQDPKSCK.js";import"./chunk-QIP7LYQI.js";import"./chunk-UNFERMZ3.js";import"./chunk-DQKQYPIG.js";import"./chunk-ZKNI5MRD.js";import"./chunk-QQOBLF7O.js";import"./chunk-W3TYN64D.js";import"./chunk-AUR2LTNX.js";import"./chunk-UKYK63H6.js";import"./chunk-4XBPZQLW.js";import"./chunk-XJF46GU2.js";import"./chunk-EHMSE3Q3.js";import"./chunk-I6XGFZPA.js";import"./chunk-47S5DXXX.js";import"./chunk-OAHMYSMD.js";import"./chunk-5TTQKPGH.js";import"./chunk-WVBPATRA.js";import"./chunk-HGFIS26A.js";import"./chunk-C3QLIYCS.js";import"./chunk-W7CYWXRZ.js";import"./chunk-MZPAJ5PQ.js";import"./chunk-WRF43M33.js";import"./chunk-ZF5FCFLD.js";import"./chunk-SY74J6F4.js";import"./chunk-WWDJCKMI.js";import{spawn as b}from"child_process";import{existsSync as u,mkdirSync as D,writeFileSync as f,unlinkSync as _}from"fs";import{tmpdir as I}from"os";import{dirname as P,resolve as i,join as $}from"path";function M(){try{let e=import.meta.resolve("sootsim/detox");return P(e.startsWith("file://")?e.slice(7):e)}catch{return i(import.meta.dirname,"..","..","detox")}}var E=`
3
- sootsim detox \u2014 run detox-style tests against a sootsim shell
4
-
5
- usage:
6
- sootsim detox [testFiles...] run all tests under e2e/, test/e2e/, or detox/
7
- sootsim detox --config <path> use a specific jest config
8
- sootsim detox init scaffold sootsim-detox.config.cjs + sample test
9
- sootsim detox --watch jest watch mode
10
- sootsim detox --headed keep the sootsim shell window visible
11
- sootsim detox -t <pattern> pass a jest --testNamePattern
12
- sootsim detox --no-launch skip auto-launching a sootsim shell
13
-
14
- sootsim detox auto-launches a sootsim shell if none is running on the
15
- expected port. disable with --no-launch if you're managing the shell yourself.
16
- `;async function C(e,s={}){if((e.includes("--help")||e.includes("-h"))&&(console.log(E),process.exit(0)),e[0]==="init")return U();let c=t=>{let o=e.indexOf(t);return o>=0?e[o+1]:void 0},n=t=>e.includes(t),w=n("--watch"),h=n("--headed"),O=n("--no-launch"),y=c("--config"),d=s.port||Number(process.env.SOOTSIM_PORT)||5173,j=e.filter((t,o)=>{if(t.startsWith("--")||t==="-t"||t==="-h")return!1;let m=e[o-1];return!(m==="--config"||m==="-t"||m==="--testNamePattern"||m==="--grep")}),x=["e2e","test/e2e","detox"],l=process.env.SOOTSIM_TEST_DIR?i(process.cwd(),process.env.SOOTSIM_TEST_DIR):null;if(!l)for(let t of x){let o=i(process.cwd(),t);if(u(o)){l=o;break}}l||(console.error(` error: no detox tests found. expected one of: ${x.join(", ")}
17
- run 'sootsim detox init' to scaffold a starter suite.`),process.exit(1)),O||await R(d);let r=["jest"],p=y||F(["sootsim-detox.config.cjs","jest.config.cjs","jest.config.js"]),a=null;if(p)r.push("--config",i(process.cwd(),p));else{let t=i(M(),"jest-preset.cjs");a=$(I(),`sootsim-detox-${process.pid}.config.cjs`);let o={rootDir:l,roots:["<rootDir>"],testMatch:["<rootDir>/**/*.test.ts","<rootDir>/**/*.test.js"]};f(a,`module.exports = { ...require(${JSON.stringify(t)}), ...${JSON.stringify(o)} }
18
- `),r.push("--config",a)}w&&r.push("--watch");let g=c("-t")||c("--testNamePattern")||c("--grep");g&&r.push("-t",g),process.env.SOOTSIM_JEST_JSON==="1"&&r.push("--json"),process.env.SOOTSIM_JEST_OUTPUT_FILE&&r.push("--outputFile",process.env.SOOTSIM_JEST_OUTPUT_FILE),r.push(...j),console.log(" sootsim detox"),console.log(` test dir: ${l}`),console.log(` port: ${d}${h?" (headed)":""}`),p&&console.log(` config: ${p}`);let T=b("npx",r,{cwd:process.cwd(),stdio:"inherit",env:{...process.env,SOOTSIM_TEST_DIR:l,SOOTSIM_PORT:String(d),SOOTSIM_HEADED:h?"1":"",SOOTSIM_URL:process.env.SOOTSIM_URL||`http://localhost:${d}`}}),v=await new Promise(t=>T.on("exit",o=>t(o||0)));if(a)try{_(a)}catch{}process.exit(v)}function F(e){for(let s of e)if(u(i(process.cwd(),s)))return s;return null}async function R(e){await S()||console.warn(` warn: no sootsim shell reachable on :${e}. start one with \`bun run dev:sootsim:shell\`
19
- or pass --no-launch if you're managing the shell yourself.`)}function U(){let e=process.cwd(),s=i(e,"sootsim-detox.config.cjs");u(s)?console.log(` skip: ${s} already exists`):(f(s,`// sootsim detox jest config.
20
- // extends the sootsim preset, which rewrites \`import ... from 'detox'\`
21
- // to the sootsim driver and keeps your jest transforms intact.
22
-
23
- /** @type {import('@jest/types').Config.InitialOptions} */
24
- module.exports = {
25
- preset: 'sootsim/detox/jest-preset',
26
- rootDir: __dirname,
27
- testMatch: ['<rootDir>/e2e/**/*.test.ts', '<rootDir>/e2e/**/*.test.js'],
28
- }
29
- `),console.log(` created ${s}`));let c=i(e,"e2e"),n=i(c,"example.test.ts");u(n)?console.log(` skip: ${n} already exists`):(D(c,{recursive:!0}),f(n,`// sample sootsim detox test. resolve \`detox\` via the jest preset in
30
- // sootsim-detox.config.cjs \u2014 no extra imports required.
31
-
32
- import { by, device, element, expect, waitFor } from 'detox'
33
-
34
- describe('example', () => {
35
- beforeAll(async () => {
36
- await device.launchApp()
37
- })
38
-
39
- it('shows the welcome text', async () => {
40
- await waitFor(element(by.text('Welcome'))).toBeVisible().withTimeout(5000)
41
- })
42
-
43
- it('taps a button by id', async () => {
44
- await element(by.id('start-button')).tap()
45
- await expect(element(by.id('home-screen'))).toBeVisible()
46
- })
47
- })
48
- `),console.log(` created ${n}`)),console.log(`
49
- next:`),console.log(" bun sootsim detox # run the sample"),console.log(" bun sootsim detox --watch"),process.exit(0)}export{C as runDetox};
@@ -1,16 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import"./chunk-ZKNI5MRD.js";import"./chunk-4XBPZQLW.js";import"./chunk-XJF46GU2.js";import{f as c,g as r,h as g}from"./chunk-EHMSE3Q3.js";import{c as d,e as l,h as a}from"./chunk-C3QLIYCS.js";import"./chunk-W7CYWXRZ.js";import"./chunk-MZPAJ5PQ.js";import"./chunk-WRF43M33.js";import"./chunk-WWDJCKMI.js";function h(){console.log(`
3
- sootsim device \u2014 inspect or change the live device preset for a session
4
-
5
- usage:
6
- sootsim device
7
- sootsim device get
8
- sootsim device set <model> [--session <id>]
9
- sootsim device list
10
-
11
- examples:
12
- sootsim device
13
- sootsim device set iphone-14
14
- sootsim device set ipad-pro-13 --session tab-7
15
- `)}function v(t){let i=r(t);console.log(` ${t.padEnd(14)} ${String(i.width).padStart(4)}x${String(i.height).padEnd(4)} pt ${String(i.width*i.scale).padStart(4)}x${String(i.height*i.scale).padEnd(4)} px ${i.name}`)}async function u(t){let i=l(t);try{let s=await a(i,"SootSim.bridges.settings.get")??{deviceModel:null},o=typeof s.deviceModel=="string"?s.deviceModel:null;if(!o||!(o in c))return null;let e=r(o);return{model:o,width:e.width,height:e.height,scale:e.scale,name:e.name}}finally{i.close()}}async function x(t,i){(t.includes("--help")||t.includes("-h"))&&(h(),process.exit(0));let s=t[0];if(!s||s==="get"){let o=d(t,{port:i.port}),e=await u(o);e||(console.error(" error: could not read current device from the target session"),process.exit(1)),console.log(` ${e.model} ${e.width}x${e.height} pt ${e.width*e.scale}x${e.height*e.scale} px ${e.name}`);return}if(s==="list"){console.log(` available devices:
16
- `);for(let o of g())v(o);return}if(s==="set"){let o=t[1];o||(console.error(" error: device set expects a model"),process.exit(1)),o in c||(console.error(` error: unknown device "${o}"`),console.error(" run `sootsim device list` to see valid models"),process.exit(1));let e=d(t,{port:i.port}),p=l(e);try{let m=await a(p,"SootSim.bridges.settings.set","deviceModel",o),n=r(o);console.log(` ${m?"set":"kept"} device: ${o} (${n.width}x${n.height} pt, ${n.width*n.scale}x${n.height*n.scale} px)${m?" \u2014 reloading session":""}`)}finally{p.close()}return}h(),console.error(` unknown subcommand: ${s}`),process.exit(1)}export{x as runDeviceCommand};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import"./chunk-F4ARVCRR.js";import{a,b,c,d,e,f,g,h,i}from"./chunk-ZF5FCFLD.js";import"./chunk-SY74J6F4.js";import"./chunk-WWDJCKMI.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,15 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a as m}from"./chunk-6SZMLFCR.js";import"./chunk-F4ARVCRR.js";import{a as u,e as a}from"./chunk-47S5DXXX.js";import"./chunk-OAHMYSMD.js";import"./chunk-5TTQKPGH.js";import"./chunk-WVBPATRA.js";import"./chunk-HGFIS26A.js";import"./chunk-C3QLIYCS.js";import"./chunk-W7CYWXRZ.js";import"./chunk-MZPAJ5PQ.js";import"./chunk-WRF43M33.js";import{b as d,g as p}from"./chunk-ZF5FCFLD.js";import{a as l}from"./chunk-SY74J6F4.js";import"./chunk-WWDJCKMI.js";function g(e){let n=e.indexOf("--port");if(n<0)return;let r=e[n+1],i=r?Number(r):Number.NaN;return(!Number.isInteger(i)||i<=0)&&(console.error(` invalid --port value: ${r||"(missing)"}`),process.exit(1)),i}async function h(e,n){let r=g(e)??n.port;return r?a(String(r)):void 0}async function P(e,n){(e.includes("--help")||e.includes("-h"))&&(console.log(`
3
- sootsim electron \u2014 launch the desktop companion
4
-
5
- usage:
6
- sootsim electron [options]
7
-
8
- options:
9
- --port <number> connect to running dev server on this port
10
- --driver <id> override the launch driver (default: electron)
11
-
12
- examples:
13
- sootsim electron
14
- sootsim electron --port 5173
15
- `),process.exit(0));let r=e.indexOf("--driver"),t=(r>=0?e[r+1]:void 0)||n.driver,s=d;if(t){let o=p(t);o||(console.error(` unknown driver "${t}" \u2014 run \`sootsim list --drivers\``),process.exit(1)),s=o}if(s.id==="electron"){let o=l();if(!o){if(u(),process.stdin.isTTY&&process.env.CI!=="1"&&process.env.SOOTSIM_NO_PROMPT!=="1"&&await m("run sootsim install-desktop now?",!0)){console.log();let{runInstallDesktop:v}=await import("./install-desktop-6X474IQ3.js");await v(["--yes"]),o=l()}o||process.exit(1)}console.log(` launching ${o.path}`)}let f=await h(e,n),c=await s.launch({url:f,device:n.device});c.launched||(console.error(` ${c.message}`),process.exit(1)),console.log(` ${c.message}`)}export{h as resolveElectronLaunchUrl,P as runElectron};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a,b,c,d}from"./chunk-MQDPKSCK.js";import"./chunk-QIP7LYQI.js";import"./chunk-UNFERMZ3.js";import"./chunk-DQKQYPIG.js";import"./chunk-ZKNI5MRD.js";import"./chunk-QQOBLF7O.js";import"./chunk-W3TYN64D.js";import"./chunk-AUR2LTNX.js";import"./chunk-UKYK63H6.js";import"./chunk-4XBPZQLW.js";import"./chunk-XJF46GU2.js";import"./chunk-EHMSE3Q3.js";import"./chunk-I6XGFZPA.js";import"./chunk-47S5DXXX.js";import"./chunk-OAHMYSMD.js";import"./chunk-5TTQKPGH.js";import"./chunk-WVBPATRA.js";import"./chunk-HGFIS26A.js";import"./chunk-C3QLIYCS.js";import"./chunk-W7CYWXRZ.js";import"./chunk-MZPAJ5PQ.js";import"./chunk-WRF43M33.js";import"./chunk-ZF5FCFLD.js";import"./chunk-SY74J6F4.js";import"./chunk-WWDJCKMI.js";export{b as discoverSootsimUrl,a as parseFlowFile,d as runFlow,c as runFlowPlayback};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{b as t,c as r,d as l}from"./chunk-VGXARPIH.js";import"./chunk-W7CYWXRZ.js";import"./chunk-WWDJCKMI.js";function a(n){let s=n[0]??"list";if(s==="reset"){n[1]==="global"?(r(),console.log(" cleared global hint state")):(t(),console.log(" cleared hint state for this session"));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};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.0.4 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"./chunk-WRF43M33.js";import"./chunk-WWDJCKMI.js";export{b as ACTIVE_RUNTIME_FILE,d as CONFIG_FILE,e as DAEMON_HEARTBEAT_STALE_MS,c as DAEMON_LOCKFILE,a as SOOTSIM_HOME_ENV,t as activeRuntimeDir,i as activeRuntimeFile,l as cacheDir,x as claimDaemonLockfile,s as compareSemver,n as configFilePath,m as daemonLockfilePath,j as electronDir,k as electronVersionDir,o as ensureSootsimHome,v as isDaemonLockfileFresh,r as listInstalledRuntimes,p as readActiveRuntime,u as readDaemonLockfile,y as removeDaemonLockfile,h as runtimeDir,g as runtimesDir,f as sootsimHomeDir,q as writeActiveRuntime,w as writeDaemonLockfile};