sootsim 0.1.154 → 0.1.156

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 (152) hide show
  1. package/dist-cli/bin.js +3 -3
  2. package/dist-cli/chunks/{agent-YZ3N3YJJ.js → agent-6SII2ADM.js} +2 -2
  3. package/dist-cli/chunks/{agent-wrapper-CMPQ23XZ.js → agent-wrapper-KCFNAXBX.js} +2 -2
  4. package/dist-cli/chunks/{app-fonts-RNCU3SYT.js → app-fonts-HA6TURSC.js} +2 -2
  5. package/dist-cli/chunks/{assert-K753THTP.js → assert-NFD4XONC.js} +2 -2
  6. package/dist-cli/chunks/auto-bootstrap-DAU4P4W3.js +2 -0
  7. package/dist-cli/chunks/beta-EWOOAHUB.js +2 -0
  8. package/dist-cli/chunks/{camera-O5GTOOKJ.js → camera-EIXCV6T7.js} +2 -2
  9. package/dist-cli/chunks/{chunk-KF2HTRT7.js → chunk-2IFYJBKM.js} +1 -1
  10. package/dist-cli/chunks/{chunk-WWAODHWG.js → chunk-3KS5W6VS.js} +2 -2
  11. package/dist-cli/chunks/{chunk-OYRHRMGS.js → chunk-5FLC7DTX.js} +2 -2
  12. package/dist-cli/chunks/{chunk-EBUTVJVS.js → chunk-5JOGV2HQ.js} +2 -2
  13. package/dist-cli/chunks/chunk-5KJC63UI.js +1 -0
  14. package/dist-cli/chunks/{chunk-VUT2Q6HH.js → chunk-6DN4FY5V.js} +1 -1
  15. package/dist-cli/chunks/{chunk-6CNF2TAZ.js → chunk-734YKCKK.js} +1 -1
  16. package/dist-cli/chunks/{chunk-ZH7IFFWD.js → chunk-7CFLQ5RQ.js} +1 -1
  17. package/dist-cli/chunks/{chunk-EIZ3VJB4.js → chunk-AF3ZSUJT.js} +2 -2
  18. package/dist-cli/chunks/{chunk-LLJVOK67.js → chunk-AG4VJEME.js} +1 -1
  19. package/dist-cli/chunks/chunk-B6A7ZJMT.js +1 -0
  20. package/dist-cli/chunks/{chunk-Q6RU7N3T.js → chunk-BUPUMQEH.js} +1 -1
  21. package/dist-cli/chunks/{chunk-KFPDSWRL.js → chunk-C6XY53D4.js} +2 -2
  22. package/dist-cli/chunks/chunk-CAHWX2CJ.js +2 -0
  23. package/dist-cli/chunks/{chunk-MAZKCKLQ.js → chunk-CGRV5ZGV.js} +1 -1
  24. package/dist-cli/chunks/{chunk-KKWBHGX4.js → chunk-DSPYCLAV.js} +3 -3
  25. package/dist-cli/chunks/{chunk-Q4HIQJLD.js → chunk-EUW6WLU3.js} +1 -1
  26. package/dist-cli/chunks/{chunk-E7MAIECK.js → chunk-FOLKDVFM.js} +2 -2
  27. package/dist-cli/chunks/{chunk-2CEEGWFN.js → chunk-FZSEG2L4.js} +1 -1
  28. package/dist-cli/chunks/{chunk-3JFFSOYP.js → chunk-FZWSY6PU.js} +1 -1
  29. package/dist-cli/chunks/{chunk-JGQOVPYM.js → chunk-GTKPFFNK.js} +2 -2
  30. package/dist-cli/chunks/{chunk-DOWB4AVO.js → chunk-IDVRZVWW.js} +2 -2
  31. package/dist-cli/chunks/{chunk-FDNBPACW.js → chunk-IDXOP3UM.js} +1 -1
  32. package/dist-cli/chunks/{chunk-H26B2F6V.js → chunk-J53MOMRD.js} +2 -2
  33. package/dist-cli/chunks/{chunk-XVO4EA3M.js → chunk-JQGIMV75.js} +2 -2
  34. package/dist-cli/chunks/{chunk-PWIYNKOL.js → chunk-JT47D7AS.js} +2 -2
  35. package/dist-cli/chunks/{chunk-J5AU4VEY.js → chunk-LEPF5QPE.js} +2 -2
  36. package/dist-cli/chunks/{chunk-AJWXRYS4.js → chunk-MAZZU3SS.js} +1 -1
  37. package/dist-cli/chunks/{chunk-HJUMEN5Y.js → chunk-MK4D3LRG.js} +1 -1
  38. package/dist-cli/chunks/{chunk-WEB4WAR5.js → chunk-MY7FJWXJ.js} +3 -3
  39. package/dist-cli/chunks/{chunk-4ACXKKEJ.js → chunk-NL5LGUY6.js} +1 -1
  40. package/dist-cli/chunks/{chunk-SYEEQW7G.js → chunk-OQ4PEGZM.js} +2 -2
  41. package/dist-cli/chunks/{chunk-SSZ3QI26.js → chunk-PIVH54LG.js} +2 -2
  42. package/dist-cli/chunks/chunk-QH3FJHUA.js +1 -0
  43. package/dist-cli/chunks/{chunk-MRL7GB3I.js → chunk-R3K7I6OA.js} +2 -2
  44. package/dist-cli/chunks/{chunk-CUEP4LEK.js → chunk-TCWXT3TN.js} +2 -2
  45. package/dist-cli/chunks/{chunk-O6IT53ZW.js → chunk-TJIHZA53.js} +2 -2
  46. package/dist-cli/chunks/{chunk-BZX7M7PH.js → chunk-TNN276C7.js} +3 -3
  47. package/dist-cli/chunks/{chunk-3FJVQDOV.js → chunk-UJ4B2V2Y.js} +1 -1
  48. package/dist-cli/chunks/{chunk-N3S34V2C.js → chunk-UUUBY2MO.js} +2 -2
  49. package/dist-cli/chunks/{chunk-S4632WPL.js → chunk-VNPT6T3W.js} +2 -2
  50. package/dist-cli/chunks/{chunk-H7JH2VZG.js → chunk-WTYDDLVC.js} +2 -2
  51. package/dist-cli/chunks/{chunk-WE7FZSES.js → chunk-XNK3USYL.js} +1 -1
  52. package/dist-cli/chunks/{chunk-WBRVGBR3.js → chunk-XTTBLKSO.js} +1 -1
  53. package/dist-cli/chunks/{chunk-ST37ZL42.js → chunk-ZFPDGGM2.js} +2 -2
  54. package/dist-cli/chunks/cli-version-26ALCPQY.js +2 -0
  55. package/dist-cli/chunks/{compat-CHPPBI6B.js → compat-GMFJB2QI.js} +3 -3
  56. package/dist-cli/chunks/{config-MBTESWDI.js → config-VN63ZIQQ.js} +2 -2
  57. package/dist-cli/chunks/{control-PT7FI7T2.js → control-26SFJCEB.js} +2 -2
  58. package/dist-cli/chunks/{cpu-profile-BUEJUMK7.js → cpu-profile-TPSUYM3P.js} +2 -2
  59. package/dist-cli/chunks/{daemon-J3UKADSZ.js → daemon-XLZOQISP.js} +2 -2
  60. package/dist-cli/chunks/{debug-RFDSFWY7.js → debug-J3SO6XXZ.js} +3 -3
  61. package/dist-cli/chunks/{detox-4RUCAUGQ.js → detox-OUXMHQ66.js} +2 -2
  62. package/dist-cli/chunks/{device-ZASI5KEM.js → device-MRE7PGNT.js} +2 -2
  63. package/dist-cli/chunks/{diagnose-D2GBOZJT.js → diagnose-IBGOIBXB.js} +2 -2
  64. package/dist-cli/chunks/drivers-UDWSV2BD.js +2 -0
  65. package/dist-cli/chunks/{electron-F6U2DVFR.js → electron-GM7P45K6.js} +3 -3
  66. package/dist-cli/chunks/flow-2627URQN.js +2 -0
  67. package/dist-cli/chunks/help-V2AWDI3R.js +2 -0
  68. package/dist-cli/chunks/{hints-S3GLUH55.js → hints-ZXJEZ7VA.js} +2 -2
  69. package/dist-cli/chunks/{home-paths-UTBAAKUV.js → home-paths-R2BX3P5C.js} +2 -2
  70. package/dist-cli/chunks/{inspect-G2JVRONS.js → inspect-Q5DVSR33.js} +3 -3
  71. package/dist-cli/chunks/install-T7X3R2JD.js +2 -0
  72. package/dist-cli/chunks/{install-desktop-LJXYOO2A.js → install-desktop-P33GKIJF.js} +3 -3
  73. package/dist-cli/chunks/{keys-OHQRWZXF.js → keys-DWT4BLAF.js} +2 -2
  74. package/dist-cli/chunks/{launch-HNNRKSLY.js → launch-ARXODF7Y.js} +3 -3
  75. package/dist-cli/chunks/{login-KWBKKXMQ.js → login-IOYQ6NED.js} +4 -4
  76. package/dist-cli/chunks/{logout-JPJ44VQY.js → logout-PX2G2SXA.js} +2 -2
  77. package/dist-cli/chunks/{maestro-NZCUMSV5.js → maestro-GGSUWKYF.js} +2 -2
  78. package/dist-cli/chunks/optional-demo-registry-EUADUL22.js +2 -0
  79. package/dist-cli/chunks/{preview-J4GSU6XR.js → preview-BQUWNLPH.js} +2 -2
  80. package/dist-cli/chunks/{profile-AWFOXW2R.js → profile-XVN2QFUN.js} +2 -2
  81. package/dist-cli/chunks/{react-KRWTLQSA.js → react-IARLUSNE.js} +2 -2
  82. package/dist-cli/chunks/{record-M76PRRB6.js → record-HFSXL4SG.js} +10 -10
  83. package/dist-cli/chunks/runtime-DKE54MC6.js +2 -0
  84. package/dist-cli/chunks/{runtime-delivery-EWQNUCQS.js → runtime-delivery-DELLWFH7.js} +2 -2
  85. package/dist-cli/chunks/{screenshot-ORY2KU4C.js → screenshot-V5F65B2V.js} +2 -2
  86. package/dist-cli/chunks/{screenshot-mode-PCMZC73C.js → screenshot-mode-JS2NQ6VV.js} +2 -2
  87. package/dist-cli/chunks/{screenshots-MC32I2K6.js → screenshots-PFVIDRRE.js} +2 -2
  88. package/dist-cli/chunks/{server-ZQ6VUGB5.js → server-YBXIAWME.js} +3 -3
  89. package/dist-cli/chunks/setup-repo-E7MPL5GG.js +2 -0
  90. package/dist-cli/chunks/{skills-O2P5IASE.js → skills-2N75NKCV.js} +2 -2
  91. package/dist-cli/chunks/{slides-5V365XZG.js → slides-ECMGLFWX.js} +2 -2
  92. package/dist-cli/chunks/{start-HP5IW2V2.js → start-5CZXOX5G.js} +4 -4
  93. package/dist-cli/chunks/store-E6OLJAZN.js +2 -0
  94. package/dist-cli/chunks/telemetry-ANL2YCIC.js +2 -0
  95. package/dist-cli/chunks/{test-EL2B3TVN.js → test-W4ZCCSHY.js} +3 -3
  96. package/dist-cli/chunks/{three-mode-XBR6DHIQ.js → three-mode-KG3C4Q23.js} +2 -2
  97. package/dist-cli/chunks/{timeline-D3U6AW2H.js → timeline-WK62L3NA.js} +2 -2
  98. package/dist-cli/chunks/{upgrade-Q3NLQB4N.js → upgrade-7UVLOEVQ.js} +2 -2
  99. package/dist-cli/chunks/upload-NPVSF5B7.js +2 -0
  100. package/dist-cli/chunks/{version-7HW2OI7T.js → version-EVZ4PR3Y.js} +2 -2
  101. package/dist-cli/chunks/{web-2N3UKXZF.js → web-DDAK4ZLY.js} +2 -2
  102. package/dist-cli/chunks/{what-happened-QC355I37.js → what-happened-RSHNHEZ3.js} +2 -2
  103. package/dist-cli/chunks/{whoami-YL6OPCRZ.js → whoami-LPQ5MGZQ.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-sessions.cjs +1 -1
  107. package/dist-lib/attached-projects.cjs +1 -1
  108. package/dist-lib/auth/shared-session.cjs +1 -1
  109. package/dist-lib/backend-origin.cjs +1 -1
  110. package/dist-lib/beta.cjs +1 -1
  111. package/dist-lib/beta.mjs +1 -1
  112. package/dist-lib/bridge-constants.cjs +1 -1
  113. package/dist-lib/cli-constants.cjs +1 -1
  114. package/dist-lib/config.cjs +1 -1
  115. package/dist-lib/detox/index.cjs +1 -1
  116. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  117. package/dist-lib/home-paths.cjs +1 -1
  118. package/dist-lib/host/bridge-host.cjs +1 -1
  119. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  120. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  121. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  122. package/dist-lib/host/websocket-proxy.cjs +1 -1
  123. package/dist-lib/index.cjs +1 -1
  124. package/dist-lib/menu.cjs +468 -0
  125. package/dist-lib/menu.mjs +434 -0
  126. package/dist-lib/metro.cjs +1 -1
  127. package/dist-lib/profiles.cjs +1 -1
  128. package/dist-lib/render-mode.cjs +1 -1
  129. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  130. package/dist-lib/sdk.cjs +1 -1
  131. package/dist-lib/sdk.mjs +1 -1
  132. package/dist-lib/skills.cjs +1 -1
  133. package/dist-lib/vite.cjs +1 -1
  134. package/package.json +7 -1
  135. package/src/menu.ts +578 -0
  136. package/dist-cli/chunks/auto-bootstrap-YLTKWTZX.js +0 -2
  137. package/dist-cli/chunks/beta-VKIPKOLB.js +0 -2
  138. package/dist-cli/chunks/chunk-A46SK2PQ.js +0 -1
  139. package/dist-cli/chunks/chunk-BIWI3V47.js +0 -2
  140. package/dist-cli/chunks/chunk-CGH6JMFB.js +0 -1
  141. package/dist-cli/chunks/chunk-SZMDKZYL.js +0 -1
  142. package/dist-cli/chunks/cli-version-ES2WEE5A.js +0 -2
  143. package/dist-cli/chunks/drivers-LQSB4JTL.js +0 -2
  144. package/dist-cli/chunks/flow-IDSU4MLV.js +0 -2
  145. package/dist-cli/chunks/help-2MGPQJCL.js +0 -2
  146. package/dist-cli/chunks/install-CDJAF2XK.js +0 -2
  147. package/dist-cli/chunks/optional-demo-registry-C4CGGJVD.js +0 -2
  148. package/dist-cli/chunks/runtime-ORANRGJV.js +0 -2
  149. package/dist-cli/chunks/setup-repo-ER6REBKB.js +0 -2
  150. package/dist-cli/chunks/store-AW7RMWCL.js +0 -2
  151. package/dist-cli/chunks/telemetry-MM6JBCD6.js +0 -2
  152. package/dist-cli/chunks/upload-S2IBROET.js +0 -2
@@ -1,5 +1,5 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{C as T,D as A,E as y,P as _,Q as b,R as S}from"./chunk-FDNBPACW.js";import{c as N,e as F}from"./chunk-EBUTVJVS.js";import{b as k}from"./chunk-AJWXRYS4.js";import"./chunk-WE7FZSES.js";import"./chunk-6CNF2TAZ.js";import"./chunk-MAZKCKLQ.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let r=Number(l[1]),u=l[2]??"ms",v=u==="s"?r*1e3:u==="m"?r*6e4:r;return{since:Date.now()-v,consumed:t}}let i=Number(s);if(Number.isFinite(i)&&i>1e12)return{since:i,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function x(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,i=l?.phase;if(!i||i==="enter"||i==="appear"||i==="active"){let r=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${r}`:(e={label:`${s.kind}: ${r}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=N(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import{C as T,D as A,E as y,P as _,Q as b,R as S}from"./chunk-IDXOP3UM.js";import{c as N,e as F}from"./chunk-5JOGV2HQ.js";import{b as k}from"./chunk-MAZZU3SS.js";import"./chunk-XNK3USYL.js";import"./chunk-734YKCKK.js";import"./chunk-CGRV5ZGV.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let r=Number(l[1]),u=l[2]??"ms",v=u==="s"?r*1e3:u==="m"?r*6e4:r;return{since:Date.now()-v,consumed:t}}let i=Number(s);if(Number.isFinite(i)&&i>1e12)return{since:i,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function x(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,i=l?.phase;if(!i||i==="enter"||i==="appear"||i==="active"){let r=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${r}`:(e={label:`${s.kind}: ${r}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=N(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
3
3
  sootsim what-happened \u2014 show recent events from the semantic timeline
4
4
 
5
5
  usage:
@@ -1,2 +1,2 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{d as i}from"./chunk-SYEEQW7G.js";import{d as n}from"./chunk-PWIYNKOL.js";import"./chunk-6CNF2TAZ.js";import"./chunk-MAZKCKLQ.js";async function u(){let o=i();if(o||(console.log(" not signed in"),console.log(" set SOOTSIM_API_KEY=sk_sootsim_\u2026 or run `sootsim login`"),process.exit(1)),o.kind==="api-key"){let r=`${o.secret.slice(0,14)}\u2026`,t=o.source==="env"?"SOOTSIM_API_KEY env var":"saved key (~/.config/sootsim/credentials.json)";console.log(` api key ${r}`),console.log(` source: ${t}`);return}if(o.kind==="github"){console.log(` github token (${o.source})`),console.log(` repo: ${o.repoId}`);return}let e=await n(),s=e?.user;console.log(` ${s?.email||s?.name||s?.id||"signed in"}`),console.log(` origin: ${e?.origin??o.origin}`),e?.updatedAt&&console.log(` updated: ${e.updatedAt}`)}export{u as runWhoami};
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import{d as i}from"./chunk-OQ4PEGZM.js";import{d as n}from"./chunk-JT47D7AS.js";import"./chunk-734YKCKK.js";import"./chunk-CGRV5ZGV.js";async function u(){let o=i();if(o||(console.log(" not signed in"),console.log(" set SOOTSIM_API_KEY=sk_sootsim_\u2026 or run `sootsim login`"),process.exit(1)),o.kind==="api-key"){let r=`${o.secret.slice(0,14)}\u2026`,t=o.source==="env"?"SOOTSIM_API_KEY env var":"saved key (~/.config/sootsim/credentials.json)";console.log(` api key ${r}`),console.log(` source: ${t}`);return}if(o.kind==="github"){console.log(` github token (${o.source})`),console.log(` repo: ${o.repoId}`);return}let e=await n(),s=e?.user;console.log(` ${s?.email||s?.name||s?.id||"signed in"}`),console.log(` origin: ${e?.origin??o.origin}`),e?.updatedAt&&console.log(` updated: ${e.updatedAt}`)}export{u as runWhoami};
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_BROWSER_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36";
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -0,0 +1,468 @@
1
+ /*! sootsim v0.1.156 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
+ "use strict";
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/menu.ts
23
+ var menu_exports = {};
24
+ __export(menu_exports, {
25
+ SOOTSIM_ENGINE_EVENT_NAME: () => SOOTSIM_ENGINE_EVENT_NAME,
26
+ SOOTSIM_SHELL_COMMAND_NAME: () => SOOTSIM_SHELL_COMMAND_NAME,
27
+ buildSootSimDeviceChoiceDefs: () => buildSootSimDeviceChoiceDefs,
28
+ buildSootSimMenuDefs: () => buildSootSimMenuDefs,
29
+ formatAccelerator: () => formatAccelerator,
30
+ getMenuShortcutEntries: () => getMenuShortcutEntries,
31
+ getMenuShortcutEntriesFromDefs: () => getMenuShortcutEntriesFromDefs,
32
+ getShortcutDocSections: () => getShortcutDocSections,
33
+ getShortcutDocSectionsFromDefs: () => getShortcutDocSectionsFromDefs,
34
+ matchesAccelerator: () => matchesAccelerator
35
+ });
36
+ module.exports = __toCommonJS(menu_exports);
37
+ var SOOTSIM_ENGINE_EVENT_NAME = "sootsim:engine-event";
38
+ var SOOTSIM_SHELL_COMMAND_NAME = "sootsim:shell-command";
39
+ function buildSootSimMenuDefs(state, deviceChoices) {
40
+ return [
41
+ appMenu(),
42
+ fileMenu(state, deviceChoices),
43
+ editMenu(),
44
+ deviceMenu(state, deviceChoices),
45
+ debugMenu(),
46
+ windowMenu(state),
47
+ helpMenu()
48
+ ];
49
+ }
50
+ function appMenu() {
51
+ return {
52
+ label: "SootSim",
53
+ brand: true,
54
+ items: [
55
+ { label: "About SootSim", action: "about" },
56
+ { type: "separator" },
57
+ {
58
+ label: "Preferences...",
59
+ accelerator: "CmdOrCtrl+,",
60
+ action: "preferences",
61
+ browserAccelerator: true,
62
+ shortcutLabel: "settings",
63
+ showInShortcutDocs: true
64
+ },
65
+ { type: "separator" },
66
+ {
67
+ label: "Hide SootSim",
68
+ accelerator: "CmdOrCtrl+H",
69
+ action: "hide",
70
+ hiddenIn: "browser"
71
+ },
72
+ {
73
+ label: "Hide Others",
74
+ accelerator: "CmdOrCtrl+Alt+H",
75
+ action: "hide-others",
76
+ hiddenIn: "browser"
77
+ },
78
+ { label: "Show All", action: "unhide", hiddenIn: "browser" },
79
+ { type: "separator" },
80
+ {
81
+ label: "Quit SootSim",
82
+ accelerator: "CmdOrCtrl+Q",
83
+ action: "quit",
84
+ hiddenIn: "browser"
85
+ }
86
+ ]
87
+ };
88
+ }
89
+ function fileMenu(state, deviceChoices) {
90
+ return {
91
+ label: "File",
92
+ notMinimal: true,
93
+ items: [
94
+ { label: "New Window", accelerator: "CmdOrCtrl+N", action: "new-window" },
95
+ {
96
+ label: "New Simulator",
97
+ hiddenIn: "browser",
98
+ items: buildSootSimDeviceChoiceDefs(state.currentDevice, deviceChoices, {
99
+ action: "new-simulator"
100
+ })
101
+ },
102
+ {
103
+ label: "Close Window",
104
+ accelerator: "CmdOrCtrl+W",
105
+ action: "close-window",
106
+ hiddenIn: "browser"
107
+ },
108
+ { type: "separator" },
109
+ { label: "Save Screen", accelerator: "CmdOrCtrl+S", action: "save-screen" },
110
+ { label: "Copy Screen", accelerator: "CmdOrCtrl+Alt+C", action: "copy-screen" },
111
+ { type: "separator" },
112
+ {
113
+ label: "Record",
114
+ accelerator: "Ctrl+CmdOrCtrl+R",
115
+ action: "toggle-recording",
116
+ browserAccelerator: true,
117
+ shortcutLabel: "start/stop recording",
118
+ showInShortcutDocs: true
119
+ }
120
+ ]
121
+ };
122
+ }
123
+ function editMenu() {
124
+ return {
125
+ label: "Edit",
126
+ hiddenIn: "browser",
127
+ items: [
128
+ { label: "Undo", accelerator: "CmdOrCtrl+Z", action: "undo" },
129
+ { label: "Redo", accelerator: "CmdOrCtrl+Shift+Z", action: "redo" },
130
+ { type: "separator" },
131
+ { label: "Cut", accelerator: "CmdOrCtrl+X", action: "cut" },
132
+ { label: "Copy", accelerator: "CmdOrCtrl+C", action: "copy" },
133
+ { label: "Paste", accelerator: "CmdOrCtrl+V", action: "paste" },
134
+ { label: "Select All", accelerator: "CmdOrCtrl+A", action: "select-all" }
135
+ ]
136
+ };
137
+ }
138
+ function deviceMenu(state, deviceChoices) {
139
+ return {
140
+ label: "Device",
141
+ items: [
142
+ { label: "Restart", accelerator: "CmdOrCtrl+R", action: "reload" },
143
+ { label: "Erase All Content and Settings...", action: "erase-all" },
144
+ { type: "separator" },
145
+ {
146
+ label: "Home",
147
+ accelerator: "Shift+CmdOrCtrl+H",
148
+ action: "home",
149
+ browserAccelerator: true,
150
+ shortcutLabel: "go home",
151
+ showInShortcutDocs: true
152
+ },
153
+ {
154
+ label: "Lock",
155
+ accelerator: "CmdOrCtrl+L",
156
+ action: "lock",
157
+ shortcutLabel: "lock / unlock",
158
+ showInShortcutDocs: true
159
+ },
160
+ { label: "Shake", accelerator: "Ctrl+CmdOrCtrl+Z", action: "shake" },
161
+ {
162
+ label: "App Switcher",
163
+ accelerator: "Ctrl+Shift+CmdOrCtrl+H",
164
+ action: "app-switcher",
165
+ browserAccelerator: true,
166
+ shortcutLabel: "app switcher",
167
+ showInShortcutDocs: true
168
+ },
169
+ { type: "separator" },
170
+ { label: "Trigger Screenshot", action: "screenshot" },
171
+ { type: "separator" },
172
+ ...buildSootSimDeviceChoiceDefs(state.currentDevice, deviceChoices, {
173
+ action: "switch-device"
174
+ })
175
+ ]
176
+ };
177
+ }
178
+ function debugMenu() {
179
+ return {
180
+ label: "Debug",
181
+ items: [
182
+ {
183
+ label: "Toggle Devtools",
184
+ accelerator: "Alt+I",
185
+ action: "toggle-devtools",
186
+ browserAccelerator: true,
187
+ showInShortcutDocs: true
188
+ },
189
+ {
190
+ label: "Inspect",
191
+ accelerator: "CmdOrCtrl+I",
192
+ action: "toggle-inspect",
193
+ browserAccelerator: true
194
+ },
195
+ { type: "separator" },
196
+ {
197
+ label: "Open Chrome Devtools",
198
+ accelerator: "CmdOrCtrl+Alt+I",
199
+ action: "open-devtools",
200
+ hiddenIn: "browser",
201
+ shortcutLabel: "developer tools",
202
+ showInShortcutDocs: true
203
+ },
204
+ { type: "separator" },
205
+ {
206
+ label: "Clear Cache and Reload",
207
+ accelerator: "CmdOrCtrl+Shift+R",
208
+ action: "clear-cache"
209
+ },
210
+ { label: "Clear Local Storage", action: "clear-localstorage" },
211
+ { label: "Clear IndexedDB", action: "clear-indexeddb" },
212
+ { label: "Clear Service Workers", action: "clear-serviceworkers" },
213
+ { type: "separator" },
214
+ { label: "Open User Data Folder", action: "open-userdata", hiddenIn: "browser" }
215
+ ]
216
+ };
217
+ }
218
+ function windowMenu(state) {
219
+ return {
220
+ label: "Window",
221
+ items: [
222
+ {
223
+ label: "Minimize",
224
+ accelerator: "CmdOrCtrl+M",
225
+ action: "minimize",
226
+ hiddenIn: "browser"
227
+ },
228
+ {
229
+ label: "Close",
230
+ accelerator: "CmdOrCtrl+W",
231
+ action: "close-window",
232
+ hiddenIn: "browser"
233
+ },
234
+ { type: "separator" },
235
+ {
236
+ label: "Toggle Appearance",
237
+ accelerator: "Shift+CmdOrCtrl+A",
238
+ action: "toggle-appearance",
239
+ browserAccelerator: true,
240
+ shortcutLabel: "toggle appearance",
241
+ showInShortcutDocs: true
242
+ },
243
+ { type: "separator" },
244
+ {
245
+ label: "Show Device Bezels",
246
+ type: "checkbox",
247
+ checked: state.showBezels,
248
+ action: "toggle-bezels"
249
+ },
250
+ {
251
+ label: "Show Top Bar",
252
+ type: "checkbox",
253
+ checked: state.showTopBar,
254
+ enabled: state.showBezels,
255
+ action: "toggle-topbar"
256
+ },
257
+ {
258
+ label: "Screenshot",
259
+ type: "checkbox",
260
+ checked: state.screenshotMode,
261
+ action: "toggle-screenshot-mode",
262
+ hiddenIn: "electron"
263
+ },
264
+ {
265
+ label: "3D",
266
+ type: "checkbox",
267
+ checked: state.threeMode,
268
+ action: "toggle-three-mode",
269
+ hiddenIn: "electron"
270
+ },
271
+ {
272
+ label: "Stay On Top",
273
+ type: "checkbox",
274
+ checked: state.stayOnTop,
275
+ action: "toggle-stay-on-top",
276
+ hiddenIn: "browser"
277
+ },
278
+ { type: "separator" },
279
+ {
280
+ label: "Physical Size",
281
+ accelerator: "CmdOrCtrl+1",
282
+ type: "radio",
283
+ checked: state.scaleMode === "physical",
284
+ action: "scale-physical"
285
+ },
286
+ {
287
+ label: "Point Accurate",
288
+ accelerator: "CmdOrCtrl+2",
289
+ type: "radio",
290
+ checked: state.scaleMode === "point",
291
+ action: "scale-point"
292
+ },
293
+ {
294
+ label: "Pixel Accurate",
295
+ accelerator: "CmdOrCtrl+3",
296
+ type: "radio",
297
+ checked: state.scaleMode === "pixel",
298
+ action: "scale-pixel"
299
+ },
300
+ {
301
+ label: "Fit Screen",
302
+ accelerator: "CmdOrCtrl+0",
303
+ type: "radio",
304
+ checked: state.scaleMode === "fit",
305
+ action: "scale-fit"
306
+ }
307
+ ]
308
+ };
309
+ }
310
+ function helpMenu() {
311
+ return {
312
+ label: "Help",
313
+ notMinimal: true,
314
+ items: [
315
+ { label: "sootsim Website", action: "open-website" },
316
+ {
317
+ label: "Send Feedback...",
318
+ accelerator: "CmdOrCtrl+Shift+I",
319
+ action: "open-devtools-report",
320
+ showInShortcutDocs: true
321
+ },
322
+ { label: "Show Onboarding", action: "open-devtools-onboard" }
323
+ ]
324
+ };
325
+ }
326
+ function buildSootSimDeviceChoiceDefs(currentDevice, deviceChoices, options) {
327
+ const items = [];
328
+ let lastPlatform = "";
329
+ const isStateful = options.action === "switch-device";
330
+ for (const choice of deviceChoices) {
331
+ if (lastPlatform && choice.platform !== lastPlatform) items.push({ type: "separator" });
332
+ lastPlatform = choice.platform;
333
+ if (isStateful) {
334
+ items.push({
335
+ label: choice.label,
336
+ type: "radio",
337
+ checked: choice.model === currentDevice,
338
+ action: options.action,
339
+ actionPayload: choice.model
340
+ });
341
+ } else {
342
+ items.push({
343
+ label: choice.label,
344
+ action: options.action,
345
+ actionPayload: choice.model
346
+ });
347
+ }
348
+ }
349
+ return items;
350
+ }
351
+ function shouldIncludeItemForPlatform(item, platform) {
352
+ if (item.hiddenIn === platform) return false;
353
+ if (!item.accelerator || !item.action) return false;
354
+ if (platform === "browser") return item.browserAccelerator === true;
355
+ return true;
356
+ }
357
+ function shouldIncludeItemInDocs(item, platform) {
358
+ if (!item.showInShortcutDocs) return false;
359
+ if (platform === "browser" && !item.browserAccelerator) return false;
360
+ return true;
361
+ }
362
+ function collectMenuShortcutsFromDefs(menus, platform, includeItem) {
363
+ const entries = [];
364
+ const visit = (menuLabel, items) => {
365
+ for (const item of items) {
366
+ if (item.type === "separator") continue;
367
+ if (item.items?.length) visit(menuLabel, item.items);
368
+ if (!includeItem(item, platform)) continue;
369
+ const { accelerator, action } = item;
370
+ if (!accelerator || !action) continue;
371
+ entries.push({
372
+ menuLabel,
373
+ label: item.shortcutLabel ?? item.label,
374
+ accelerator,
375
+ action,
376
+ actionPayload: item.actionPayload
377
+ });
378
+ }
379
+ };
380
+ for (const menu of menus) {
381
+ if (menu.hiddenIn === platform) continue;
382
+ visit(menu.label, menu.items);
383
+ }
384
+ return entries;
385
+ }
386
+ function getMenuShortcutEntriesFromDefs(menus, platform) {
387
+ return collectMenuShortcutsFromDefs(menus, platform, shouldIncludeItemForPlatform);
388
+ }
389
+ function getMenuShortcutEntries(state, deviceChoices, platform) {
390
+ return getMenuShortcutEntriesFromDefs(
391
+ buildSootSimMenuDefs(state, deviceChoices),
392
+ platform
393
+ );
394
+ }
395
+ function getShortcutDocSections(state, deviceChoices, platform) {
396
+ return getShortcutDocSectionsFromDefs(
397
+ buildSootSimMenuDefs(state, deviceChoices),
398
+ platform
399
+ );
400
+ }
401
+ function getShortcutDocSectionsFromDefs(menus, platform) {
402
+ const sections = [];
403
+ const byMenu = /* @__PURE__ */ new Map();
404
+ for (const entry of collectMenuShortcutsFromDefs(
405
+ menus,
406
+ platform,
407
+ shouldIncludeItemInDocs
408
+ )) {
409
+ const items = byMenu.get(entry.menuLabel) ?? [];
410
+ items.push({
411
+ keys: formatAccelerator(entry.accelerator),
412
+ label: entry.label
413
+ });
414
+ byMenu.set(entry.menuLabel, items);
415
+ }
416
+ for (const [title, entries] of byMenu) {
417
+ sections.push({
418
+ title: title.toLowerCase(),
419
+ entries
420
+ });
421
+ }
422
+ return sections;
423
+ }
424
+ function formatAccelerator(accel) {
425
+ return accel.replace(/CmdOrCtrl\+/g, "\u2318").replace(/Ctrl\+/g, "\u2303").replace(/Alt\+/g, "\u2325").replace(/Shift\+/g, "\u21E7").replace(/Left/g, "\u2190").replace(/Right/g, "\u2192").replace(/Up/g, "\u2191").replace(/Down/g, "\u2193");
426
+ }
427
+ var ARROW_KEYS = {
428
+ Left: "arrowleft",
429
+ Right: "arrowright",
430
+ Up: "arrowup",
431
+ Down: "arrowdown"
432
+ };
433
+ function normalizeAcceleratorKey(key) {
434
+ return ARROW_KEYS[key] ?? key.toLowerCase();
435
+ }
436
+ function normalizeEventKey(key) {
437
+ return key.toLowerCase();
438
+ }
439
+ function matchesAccelerator(event, accelerator) {
440
+ const tokens = accelerator.split("+");
441
+ const keyToken = tokens[tokens.length - 1];
442
+ const wantsCmdOrCtrl = tokens.includes("CmdOrCtrl");
443
+ const wantsCtrl = tokens.includes("Ctrl");
444
+ const wantsAlt = tokens.includes("Alt");
445
+ const wantsShift = tokens.includes("Shift");
446
+ if (!keyToken) return false;
447
+ if (event.altKey !== wantsAlt) return false;
448
+ if (event.shiftKey !== wantsShift) return false;
449
+ const hasCmdOrCtrl = event.metaKey || event.ctrlKey;
450
+ if (wantsCmdOrCtrl && !hasCmdOrCtrl) return false;
451
+ if (!wantsCmdOrCtrl && event.metaKey) return false;
452
+ if (wantsCtrl && !event.ctrlKey) return false;
453
+ if (!wantsCtrl && !wantsCmdOrCtrl && event.ctrlKey) return false;
454
+ return normalizeEventKey(event.key) === normalizeAcceleratorKey(keyToken);
455
+ }
456
+ // Annotate the CommonJS export names for ESM import in node:
457
+ 0 && (module.exports = {
458
+ SOOTSIM_ENGINE_EVENT_NAME,
459
+ SOOTSIM_SHELL_COMMAND_NAME,
460
+ buildSootSimDeviceChoiceDefs,
461
+ buildSootSimMenuDefs,
462
+ formatAccelerator,
463
+ getMenuShortcutEntries,
464
+ getMenuShortcutEntriesFromDefs,
465
+ getShortcutDocSections,
466
+ getShortcutDocSectionsFromDefs,
467
+ matchesAccelerator
468
+ });