sootsim 0.1.154 → 0.1.155

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-C3BYGNOR.js} +2 -2
  3. package/dist-cli/chunks/{agent-wrapper-CMPQ23XZ.js → agent-wrapper-DR75UMEL.js} +2 -2
  4. package/dist-cli/chunks/{app-fonts-RNCU3SYT.js → app-fonts-TC5QZXEN.js} +2 -2
  5. package/dist-cli/chunks/{assert-K753THTP.js → assert-YICVET3K.js} +2 -2
  6. package/dist-cli/chunks/auto-bootstrap-LIMVUYCU.js +2 -0
  7. package/dist-cli/chunks/beta-GGCQHRJW.js +2 -0
  8. package/dist-cli/chunks/{camera-O5GTOOKJ.js → camera-4F5RQCBC.js} +2 -2
  9. package/dist-cli/chunks/{chunk-OYRHRMGS.js → chunk-2A4RF2GA.js} +2 -2
  10. package/dist-cli/chunks/{chunk-Q4HIQJLD.js → chunk-4BCGD37Q.js} +1 -1
  11. package/dist-cli/chunks/chunk-4BFAO5OU.js +2 -0
  12. package/dist-cli/chunks/{chunk-EIZ3VJB4.js → chunk-6QWKWASG.js} +2 -2
  13. package/dist-cli/chunks/{chunk-3JFFSOYP.js → chunk-7R5V5AIL.js} +1 -1
  14. package/dist-cli/chunks/{chunk-LLJVOK67.js → chunk-ANM2NBPM.js} +1 -1
  15. package/dist-cli/chunks/{chunk-ZH7IFFWD.js → chunk-AYRY5U2Y.js} +1 -1
  16. package/dist-cli/chunks/{chunk-WWAODHWG.js → chunk-BLTW2X3S.js} +2 -2
  17. package/dist-cli/chunks/chunk-BQ3UFSIG.js +1 -0
  18. package/dist-cli/chunks/{chunk-WEB4WAR5.js → chunk-BSY42HG5.js} +3 -3
  19. package/dist-cli/chunks/{chunk-SSZ3QI26.js → chunk-D43GSIWC.js} +2 -2
  20. package/dist-cli/chunks/{chunk-WE7FZSES.js → chunk-DOQDF7TJ.js} +1 -1
  21. package/dist-cli/chunks/{chunk-FDNBPACW.js → chunk-DQCTDCDF.js} +1 -1
  22. package/dist-cli/chunks/{chunk-H7JH2VZG.js → chunk-DXBJHAQE.js} +2 -2
  23. package/dist-cli/chunks/{chunk-DOWB4AVO.js → chunk-EQ4VACQH.js} +2 -2
  24. package/dist-cli/chunks/{chunk-N3S34V2C.js → chunk-EXF6FEAH.js} +2 -2
  25. package/dist-cli/chunks/{chunk-4ACXKKEJ.js → chunk-FUCVU7VO.js} +1 -1
  26. package/dist-cli/chunks/{chunk-ST37ZL42.js → chunk-FY42AEQT.js} +2 -2
  27. package/dist-cli/chunks/{chunk-PWIYNKOL.js → chunk-IAE4IW7O.js} +2 -2
  28. package/dist-cli/chunks/{chunk-O6IT53ZW.js → chunk-IFV2H2PN.js} +2 -2
  29. package/dist-cli/chunks/{chunk-H26B2F6V.js → chunk-INMKIIZH.js} +2 -2
  30. package/dist-cli/chunks/{chunk-XVO4EA3M.js → chunk-J4F5YPVG.js} +2 -2
  31. package/dist-cli/chunks/{chunk-KFPDSWRL.js → chunk-JD3CVFGB.js} +2 -2
  32. package/dist-cli/chunks/{chunk-3FJVQDOV.js → chunk-JDYTNXVQ.js} +1 -1
  33. package/dist-cli/chunks/{chunk-MRL7GB3I.js → chunk-KJZD6GOC.js} +2 -2
  34. package/dist-cli/chunks/{chunk-KKWBHGX4.js → chunk-LQUJ5CK6.js} +3 -3
  35. package/dist-cli/chunks/{chunk-HJUMEN5Y.js → chunk-LTAFJDXF.js} +1 -1
  36. package/dist-cli/chunks/{chunk-KF2HTRT7.js → chunk-M5LTONRB.js} +1 -1
  37. package/dist-cli/chunks/{chunk-MAZKCKLQ.js → chunk-MDTM3GKQ.js} +1 -1
  38. package/dist-cli/chunks/{chunk-Q6RU7N3T.js → chunk-QQUWPJAN.js} +1 -1
  39. package/dist-cli/chunks/{chunk-BZX7M7PH.js → chunk-QURX7PNL.js} +3 -3
  40. package/dist-cli/chunks/{chunk-WBRVGBR3.js → chunk-SEG4UA6N.js} +1 -1
  41. package/dist-cli/chunks/{chunk-EBUTVJVS.js → chunk-SYECZJG3.js} +2 -2
  42. package/dist-cli/chunks/chunk-TJEKTG6V.js +1 -0
  43. package/dist-cli/chunks/chunk-U4JYYYUW.js +1 -0
  44. package/dist-cli/chunks/{chunk-AJWXRYS4.js → chunk-U5DVNBRT.js} +1 -1
  45. package/dist-cli/chunks/{chunk-JGQOVPYM.js → chunk-UNE2CDA5.js} +2 -2
  46. package/dist-cli/chunks/{chunk-6CNF2TAZ.js → chunk-UQTGLV4M.js} +1 -1
  47. package/dist-cli/chunks/{chunk-J5AU4VEY.js → chunk-UZZA6QOG.js} +2 -2
  48. package/dist-cli/chunks/{chunk-CUEP4LEK.js → chunk-VIDSBYBM.js} +2 -2
  49. package/dist-cli/chunks/{chunk-2CEEGWFN.js → chunk-VYUW5QK4.js} +1 -1
  50. package/dist-cli/chunks/{chunk-VUT2Q6HH.js → chunk-WGMRS45V.js} +1 -1
  51. package/dist-cli/chunks/{chunk-E7MAIECK.js → chunk-XQTW3Z46.js} +2 -2
  52. package/dist-cli/chunks/{chunk-S4632WPL.js → chunk-YXCVIAAU.js} +2 -2
  53. package/dist-cli/chunks/{chunk-SYEEQW7G.js → chunk-ZHBF3X54.js} +2 -2
  54. package/dist-cli/chunks/cli-version-O7QJ4BZ2.js +2 -0
  55. package/dist-cli/chunks/{compat-CHPPBI6B.js → compat-5ZDXKMVB.js} +3 -3
  56. package/dist-cli/chunks/{config-MBTESWDI.js → config-SALDFPNQ.js} +2 -2
  57. package/dist-cli/chunks/{control-PT7FI7T2.js → control-CNRPHEU4.js} +2 -2
  58. package/dist-cli/chunks/{cpu-profile-BUEJUMK7.js → cpu-profile-DWVQYLU2.js} +2 -2
  59. package/dist-cli/chunks/{daemon-J3UKADSZ.js → daemon-ZOLT5A64.js} +2 -2
  60. package/dist-cli/chunks/{debug-RFDSFWY7.js → debug-T2TZRZLM.js} +3 -3
  61. package/dist-cli/chunks/{detox-4RUCAUGQ.js → detox-ELF424V7.js} +2 -2
  62. package/dist-cli/chunks/{device-ZASI5KEM.js → device-VS6S2VBJ.js} +2 -2
  63. package/dist-cli/chunks/{diagnose-D2GBOZJT.js → diagnose-C6S6GF6P.js} +2 -2
  64. package/dist-cli/chunks/drivers-36GE2TDC.js +2 -0
  65. package/dist-cli/chunks/{electron-F6U2DVFR.js → electron-364UUDHO.js} +3 -3
  66. package/dist-cli/chunks/flow-5D5SRQT6.js +2 -0
  67. package/dist-cli/chunks/help-F4BRZV6Y.js +2 -0
  68. package/dist-cli/chunks/{hints-S3GLUH55.js → hints-CQHHEBUY.js} +2 -2
  69. package/dist-cli/chunks/{home-paths-UTBAAKUV.js → home-paths-3S52MOTF.js} +2 -2
  70. package/dist-cli/chunks/{inspect-G2JVRONS.js → inspect-TFHVPSB4.js} +3 -3
  71. package/dist-cli/chunks/install-WYCI7SLJ.js +2 -0
  72. package/dist-cli/chunks/{install-desktop-LJXYOO2A.js → install-desktop-N2DYSBOT.js} +3 -3
  73. package/dist-cli/chunks/{keys-OHQRWZXF.js → keys-5DJVHPJW.js} +2 -2
  74. package/dist-cli/chunks/{launch-HNNRKSLY.js → launch-PZY7TD5A.js} +3 -3
  75. package/dist-cli/chunks/{login-KWBKKXMQ.js → login-TYJBJLHC.js} +4 -4
  76. package/dist-cli/chunks/{logout-JPJ44VQY.js → logout-SG4UGABE.js} +2 -2
  77. package/dist-cli/chunks/{maestro-NZCUMSV5.js → maestro-H4CCHNKL.js} +2 -2
  78. package/dist-cli/chunks/optional-demo-registry-G43O66KE.js +2 -0
  79. package/dist-cli/chunks/{preview-J4GSU6XR.js → preview-C6X3ITFK.js} +2 -2
  80. package/dist-cli/chunks/{profile-AWFOXW2R.js → profile-PTUACNTX.js} +2 -2
  81. package/dist-cli/chunks/{react-KRWTLQSA.js → react-3D7WSSLI.js} +2 -2
  82. package/dist-cli/chunks/{record-M76PRRB6.js → record-MEMW545L.js} +2 -2
  83. package/dist-cli/chunks/runtime-ZLDHSWAR.js +2 -0
  84. package/dist-cli/chunks/{runtime-delivery-EWQNUCQS.js → runtime-delivery-UYRGLL35.js} +2 -2
  85. package/dist-cli/chunks/{screenshot-ORY2KU4C.js → screenshot-OWF4HNV6.js} +2 -2
  86. package/dist-cli/chunks/{screenshot-mode-PCMZC73C.js → screenshot-mode-KM65465J.js} +2 -2
  87. package/dist-cli/chunks/{screenshots-MC32I2K6.js → screenshots-MJXEOC2O.js} +2 -2
  88. package/dist-cli/chunks/{server-ZQ6VUGB5.js → server-Q5ZYFO5O.js} +3 -3
  89. package/dist-cli/chunks/setup-repo-MANQTJRC.js +2 -0
  90. package/dist-cli/chunks/{skills-O2P5IASE.js → skills-G2MSPKGR.js} +2 -2
  91. package/dist-cli/chunks/{slides-5V365XZG.js → slides-TZTHVGWV.js} +2 -2
  92. package/dist-cli/chunks/{start-HP5IW2V2.js → start-CJ35MCB6.js} +4 -4
  93. package/dist-cli/chunks/store-LZD4WSTY.js +2 -0
  94. package/dist-cli/chunks/telemetry-MR3X56AA.js +2 -0
  95. package/dist-cli/chunks/{test-EL2B3TVN.js → test-MUGRVEBG.js} +3 -3
  96. package/dist-cli/chunks/{three-mode-XBR6DHIQ.js → three-mode-CQ6XZZU3.js} +2 -2
  97. package/dist-cli/chunks/{timeline-D3U6AW2H.js → timeline-MM43OOX2.js} +2 -2
  98. package/dist-cli/chunks/{upgrade-Q3NLQB4N.js → upgrade-A4CBZ3A5.js} +2 -2
  99. package/dist-cli/chunks/upload-3UDJ4OHD.js +2 -0
  100. package/dist-cli/chunks/{version-7HW2OI7T.js → version-ONYEMBRD.js} +2 -2
  101. package/dist-cli/chunks/{web-2N3UKXZF.js → web-EYRW3MVM.js} +2 -2
  102. package/dist-cli/chunks/{what-happened-QC355I37.js → what-happened-H4ZLTNBG.js} +2 -2
  103. package/dist-cli/chunks/{whoami-YL6OPCRZ.js → whoami-U63F2I7B.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
@@ -0,0 +1,434 @@
1
+ /*! sootsim v0.1.155 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+
3
+ // src/menu.ts
4
+ var SOOTSIM_ENGINE_EVENT_NAME = "sootsim:engine-event";
5
+ var SOOTSIM_SHELL_COMMAND_NAME = "sootsim:shell-command";
6
+ function buildSootSimMenuDefs(state, deviceChoices) {
7
+ return [
8
+ appMenu(),
9
+ fileMenu(state, deviceChoices),
10
+ editMenu(),
11
+ deviceMenu(state, deviceChoices),
12
+ debugMenu(),
13
+ windowMenu(state),
14
+ helpMenu()
15
+ ];
16
+ }
17
+ function appMenu() {
18
+ return {
19
+ label: "SootSim",
20
+ brand: true,
21
+ items: [
22
+ { label: "About SootSim", action: "about" },
23
+ { type: "separator" },
24
+ {
25
+ label: "Preferences...",
26
+ accelerator: "CmdOrCtrl+,",
27
+ action: "preferences",
28
+ browserAccelerator: true,
29
+ shortcutLabel: "settings",
30
+ showInShortcutDocs: true
31
+ },
32
+ { type: "separator" },
33
+ {
34
+ label: "Hide SootSim",
35
+ accelerator: "CmdOrCtrl+H",
36
+ action: "hide",
37
+ hiddenIn: "browser"
38
+ },
39
+ {
40
+ label: "Hide Others",
41
+ accelerator: "CmdOrCtrl+Alt+H",
42
+ action: "hide-others",
43
+ hiddenIn: "browser"
44
+ },
45
+ { label: "Show All", action: "unhide", hiddenIn: "browser" },
46
+ { type: "separator" },
47
+ {
48
+ label: "Quit SootSim",
49
+ accelerator: "CmdOrCtrl+Q",
50
+ action: "quit",
51
+ hiddenIn: "browser"
52
+ }
53
+ ]
54
+ };
55
+ }
56
+ function fileMenu(state, deviceChoices) {
57
+ return {
58
+ label: "File",
59
+ notMinimal: true,
60
+ items: [
61
+ { label: "New Window", accelerator: "CmdOrCtrl+N", action: "new-window" },
62
+ {
63
+ label: "New Simulator",
64
+ hiddenIn: "browser",
65
+ items: buildSootSimDeviceChoiceDefs(state.currentDevice, deviceChoices, {
66
+ action: "new-simulator"
67
+ })
68
+ },
69
+ {
70
+ label: "Close Window",
71
+ accelerator: "CmdOrCtrl+W",
72
+ action: "close-window",
73
+ hiddenIn: "browser"
74
+ },
75
+ { type: "separator" },
76
+ { label: "Save Screen", accelerator: "CmdOrCtrl+S", action: "save-screen" },
77
+ { label: "Copy Screen", accelerator: "CmdOrCtrl+Alt+C", action: "copy-screen" },
78
+ { type: "separator" },
79
+ {
80
+ label: "Record",
81
+ accelerator: "Ctrl+CmdOrCtrl+R",
82
+ action: "toggle-recording",
83
+ browserAccelerator: true,
84
+ shortcutLabel: "start/stop recording",
85
+ showInShortcutDocs: true
86
+ }
87
+ ]
88
+ };
89
+ }
90
+ function editMenu() {
91
+ return {
92
+ label: "Edit",
93
+ hiddenIn: "browser",
94
+ items: [
95
+ { label: "Undo", accelerator: "CmdOrCtrl+Z", action: "undo" },
96
+ { label: "Redo", accelerator: "CmdOrCtrl+Shift+Z", action: "redo" },
97
+ { type: "separator" },
98
+ { label: "Cut", accelerator: "CmdOrCtrl+X", action: "cut" },
99
+ { label: "Copy", accelerator: "CmdOrCtrl+C", action: "copy" },
100
+ { label: "Paste", accelerator: "CmdOrCtrl+V", action: "paste" },
101
+ { label: "Select All", accelerator: "CmdOrCtrl+A", action: "select-all" }
102
+ ]
103
+ };
104
+ }
105
+ function deviceMenu(state, deviceChoices) {
106
+ return {
107
+ label: "Device",
108
+ items: [
109
+ { label: "Restart", accelerator: "CmdOrCtrl+R", action: "reload" },
110
+ { label: "Erase All Content and Settings...", action: "erase-all" },
111
+ { type: "separator" },
112
+ {
113
+ label: "Home",
114
+ accelerator: "Shift+CmdOrCtrl+H",
115
+ action: "home",
116
+ browserAccelerator: true,
117
+ shortcutLabel: "go home",
118
+ showInShortcutDocs: true
119
+ },
120
+ {
121
+ label: "Lock",
122
+ accelerator: "CmdOrCtrl+L",
123
+ action: "lock",
124
+ shortcutLabel: "lock / unlock",
125
+ showInShortcutDocs: true
126
+ },
127
+ { label: "Shake", accelerator: "Ctrl+CmdOrCtrl+Z", action: "shake" },
128
+ {
129
+ label: "App Switcher",
130
+ accelerator: "Ctrl+Shift+CmdOrCtrl+H",
131
+ action: "app-switcher",
132
+ browserAccelerator: true,
133
+ shortcutLabel: "app switcher",
134
+ showInShortcutDocs: true
135
+ },
136
+ { type: "separator" },
137
+ { label: "Trigger Screenshot", action: "screenshot" },
138
+ { type: "separator" },
139
+ ...buildSootSimDeviceChoiceDefs(state.currentDevice, deviceChoices, {
140
+ action: "switch-device"
141
+ })
142
+ ]
143
+ };
144
+ }
145
+ function debugMenu() {
146
+ return {
147
+ label: "Debug",
148
+ items: [
149
+ {
150
+ label: "Toggle Devtools",
151
+ accelerator: "Alt+I",
152
+ action: "toggle-devtools",
153
+ browserAccelerator: true,
154
+ showInShortcutDocs: true
155
+ },
156
+ {
157
+ label: "Inspect",
158
+ accelerator: "CmdOrCtrl+I",
159
+ action: "toggle-inspect",
160
+ browserAccelerator: true
161
+ },
162
+ { type: "separator" },
163
+ {
164
+ label: "Open Chrome Devtools",
165
+ accelerator: "CmdOrCtrl+Alt+I",
166
+ action: "open-devtools",
167
+ hiddenIn: "browser",
168
+ shortcutLabel: "developer tools",
169
+ showInShortcutDocs: true
170
+ },
171
+ { type: "separator" },
172
+ {
173
+ label: "Clear Cache and Reload",
174
+ accelerator: "CmdOrCtrl+Shift+R",
175
+ action: "clear-cache"
176
+ },
177
+ { label: "Clear Local Storage", action: "clear-localstorage" },
178
+ { label: "Clear IndexedDB", action: "clear-indexeddb" },
179
+ { label: "Clear Service Workers", action: "clear-serviceworkers" },
180
+ { type: "separator" },
181
+ { label: "Open User Data Folder", action: "open-userdata", hiddenIn: "browser" }
182
+ ]
183
+ };
184
+ }
185
+ function windowMenu(state) {
186
+ return {
187
+ label: "Window",
188
+ items: [
189
+ {
190
+ label: "Minimize",
191
+ accelerator: "CmdOrCtrl+M",
192
+ action: "minimize",
193
+ hiddenIn: "browser"
194
+ },
195
+ {
196
+ label: "Close",
197
+ accelerator: "CmdOrCtrl+W",
198
+ action: "close-window",
199
+ hiddenIn: "browser"
200
+ },
201
+ { type: "separator" },
202
+ {
203
+ label: "Toggle Appearance",
204
+ accelerator: "Shift+CmdOrCtrl+A",
205
+ action: "toggle-appearance",
206
+ browserAccelerator: true,
207
+ shortcutLabel: "toggle appearance",
208
+ showInShortcutDocs: true
209
+ },
210
+ { type: "separator" },
211
+ {
212
+ label: "Show Device Bezels",
213
+ type: "checkbox",
214
+ checked: state.showBezels,
215
+ action: "toggle-bezels"
216
+ },
217
+ {
218
+ label: "Show Top Bar",
219
+ type: "checkbox",
220
+ checked: state.showTopBar,
221
+ enabled: state.showBezels,
222
+ action: "toggle-topbar"
223
+ },
224
+ {
225
+ label: "Screenshot",
226
+ type: "checkbox",
227
+ checked: state.screenshotMode,
228
+ action: "toggle-screenshot-mode",
229
+ hiddenIn: "electron"
230
+ },
231
+ {
232
+ label: "3D",
233
+ type: "checkbox",
234
+ checked: state.threeMode,
235
+ action: "toggle-three-mode",
236
+ hiddenIn: "electron"
237
+ },
238
+ {
239
+ label: "Stay On Top",
240
+ type: "checkbox",
241
+ checked: state.stayOnTop,
242
+ action: "toggle-stay-on-top",
243
+ hiddenIn: "browser"
244
+ },
245
+ { type: "separator" },
246
+ {
247
+ label: "Physical Size",
248
+ accelerator: "CmdOrCtrl+1",
249
+ type: "radio",
250
+ checked: state.scaleMode === "physical",
251
+ action: "scale-physical"
252
+ },
253
+ {
254
+ label: "Point Accurate",
255
+ accelerator: "CmdOrCtrl+2",
256
+ type: "radio",
257
+ checked: state.scaleMode === "point",
258
+ action: "scale-point"
259
+ },
260
+ {
261
+ label: "Pixel Accurate",
262
+ accelerator: "CmdOrCtrl+3",
263
+ type: "radio",
264
+ checked: state.scaleMode === "pixel",
265
+ action: "scale-pixel"
266
+ },
267
+ {
268
+ label: "Fit Screen",
269
+ accelerator: "CmdOrCtrl+0",
270
+ type: "radio",
271
+ checked: state.scaleMode === "fit",
272
+ action: "scale-fit"
273
+ }
274
+ ]
275
+ };
276
+ }
277
+ function helpMenu() {
278
+ return {
279
+ label: "Help",
280
+ notMinimal: true,
281
+ items: [
282
+ { label: "sootsim Website", action: "open-website" },
283
+ {
284
+ label: "Send Feedback...",
285
+ accelerator: "CmdOrCtrl+Shift+I",
286
+ action: "open-devtools-report",
287
+ showInShortcutDocs: true
288
+ },
289
+ { label: "Show Onboarding", action: "open-devtools-onboard" }
290
+ ]
291
+ };
292
+ }
293
+ function buildSootSimDeviceChoiceDefs(currentDevice, deviceChoices, options) {
294
+ const items = [];
295
+ let lastPlatform = "";
296
+ const isStateful = options.action === "switch-device";
297
+ for (const choice of deviceChoices) {
298
+ if (lastPlatform && choice.platform !== lastPlatform) items.push({ type: "separator" });
299
+ lastPlatform = choice.platform;
300
+ if (isStateful) {
301
+ items.push({
302
+ label: choice.label,
303
+ type: "radio",
304
+ checked: choice.model === currentDevice,
305
+ action: options.action,
306
+ actionPayload: choice.model
307
+ });
308
+ } else {
309
+ items.push({
310
+ label: choice.label,
311
+ action: options.action,
312
+ actionPayload: choice.model
313
+ });
314
+ }
315
+ }
316
+ return items;
317
+ }
318
+ function shouldIncludeItemForPlatform(item, platform) {
319
+ if (item.hiddenIn === platform) return false;
320
+ if (!item.accelerator || !item.action) return false;
321
+ if (platform === "browser") return item.browserAccelerator === true;
322
+ return true;
323
+ }
324
+ function shouldIncludeItemInDocs(item, platform) {
325
+ if (!item.showInShortcutDocs) return false;
326
+ if (platform === "browser" && !item.browserAccelerator) return false;
327
+ return true;
328
+ }
329
+ function collectMenuShortcutsFromDefs(menus, platform, includeItem) {
330
+ const entries = [];
331
+ const visit = (menuLabel, items) => {
332
+ for (const item of items) {
333
+ if (item.type === "separator") continue;
334
+ if (item.items?.length) visit(menuLabel, item.items);
335
+ if (!includeItem(item, platform)) continue;
336
+ const { accelerator, action } = item;
337
+ if (!accelerator || !action) continue;
338
+ entries.push({
339
+ menuLabel,
340
+ label: item.shortcutLabel ?? item.label,
341
+ accelerator,
342
+ action,
343
+ actionPayload: item.actionPayload
344
+ });
345
+ }
346
+ };
347
+ for (const menu of menus) {
348
+ if (menu.hiddenIn === platform) continue;
349
+ visit(menu.label, menu.items);
350
+ }
351
+ return entries;
352
+ }
353
+ function getMenuShortcutEntriesFromDefs(menus, platform) {
354
+ return collectMenuShortcutsFromDefs(menus, platform, shouldIncludeItemForPlatform);
355
+ }
356
+ function getMenuShortcutEntries(state, deviceChoices, platform) {
357
+ return getMenuShortcutEntriesFromDefs(
358
+ buildSootSimMenuDefs(state, deviceChoices),
359
+ platform
360
+ );
361
+ }
362
+ function getShortcutDocSections(state, deviceChoices, platform) {
363
+ return getShortcutDocSectionsFromDefs(
364
+ buildSootSimMenuDefs(state, deviceChoices),
365
+ platform
366
+ );
367
+ }
368
+ function getShortcutDocSectionsFromDefs(menus, platform) {
369
+ const sections = [];
370
+ const byMenu = /* @__PURE__ */ new Map();
371
+ for (const entry of collectMenuShortcutsFromDefs(
372
+ menus,
373
+ platform,
374
+ shouldIncludeItemInDocs
375
+ )) {
376
+ const items = byMenu.get(entry.menuLabel) ?? [];
377
+ items.push({
378
+ keys: formatAccelerator(entry.accelerator),
379
+ label: entry.label
380
+ });
381
+ byMenu.set(entry.menuLabel, items);
382
+ }
383
+ for (const [title, entries] of byMenu) {
384
+ sections.push({
385
+ title: title.toLowerCase(),
386
+ entries
387
+ });
388
+ }
389
+ return sections;
390
+ }
391
+ function formatAccelerator(accel) {
392
+ 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");
393
+ }
394
+ var ARROW_KEYS = {
395
+ Left: "arrowleft",
396
+ Right: "arrowright",
397
+ Up: "arrowup",
398
+ Down: "arrowdown"
399
+ };
400
+ function normalizeAcceleratorKey(key) {
401
+ return ARROW_KEYS[key] ?? key.toLowerCase();
402
+ }
403
+ function normalizeEventKey(key) {
404
+ return key.toLowerCase();
405
+ }
406
+ function matchesAccelerator(event, accelerator) {
407
+ const tokens = accelerator.split("+");
408
+ const keyToken = tokens[tokens.length - 1];
409
+ const wantsCmdOrCtrl = tokens.includes("CmdOrCtrl");
410
+ const wantsCtrl = tokens.includes("Ctrl");
411
+ const wantsAlt = tokens.includes("Alt");
412
+ const wantsShift = tokens.includes("Shift");
413
+ if (!keyToken) return false;
414
+ if (event.altKey !== wantsAlt) return false;
415
+ if (event.shiftKey !== wantsShift) return false;
416
+ const hasCmdOrCtrl = event.metaKey || event.ctrlKey;
417
+ if (wantsCmdOrCtrl && !hasCmdOrCtrl) return false;
418
+ if (!wantsCmdOrCtrl && event.metaKey) return false;
419
+ if (wantsCtrl && !event.ctrlKey) return false;
420
+ if (!wantsCtrl && !wantsCmdOrCtrl && event.ctrlKey) return false;
421
+ return normalizeEventKey(event.key) === normalizeAcceleratorKey(keyToken);
422
+ }
423
+ export {
424
+ SOOTSIM_ENGINE_EVENT_NAME,
425
+ SOOTSIM_SHELL_COMMAND_NAME,
426
+ buildSootSimDeviceChoiceDefs,
427
+ buildSootSimMenuDefs,
428
+ formatAccelerator,
429
+ getMenuShortcutEntries,
430
+ getMenuShortcutEntriesFromDefs,
431
+ getShortcutDocSections,
432
+ getShortcutDocSectionsFromDefs,
433
+ matchesAccelerator
434
+ };
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.155 | (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.155 | (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.155 | (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.155 | (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;
package/dist-lib/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.155 | (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/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.155 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // cli/commands/inspect/core.ts
4
4
  function resolveMaxMsFlag(args, fallbackMs) {
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.155 | (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;
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.154 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.155 | (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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sootsim",
3
- "version": "0.1.154",
3
+ "version": "0.1.155",
4
4
  "description": "sootsim CLI + vite/metro plugins + skills registry. bridge client for driving the proprietary sootsim-engine over WebSocket.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "MIT",
@@ -29,6 +29,12 @@
29
29
  "source": "./src/metro-plugin.ts",
30
30
  "default": "./dist-lib/metro.cjs"
31
31
  },
32
+ "./menu": {
33
+ "source": "./src/menu.ts",
34
+ "bun": "./src/menu.ts",
35
+ "import": "./dist-lib/menu.mjs",
36
+ "default": "./dist-lib/menu.cjs"
37
+ },
32
38
  "./skills": {
33
39
  "source": "./src/skills/registry.ts",
34
40
  "default": "./dist-lib/skills.cjs"