sootsim 0.1.153 → 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 (153) hide show
  1. package/dist-cli/bin.js +3 -3
  2. package/dist-cli/chunks/{agent-VUP4VAVS.js → agent-C3BYGNOR.js} +2 -2
  3. package/dist-cli/chunks/{agent-wrapper-D4ESDAXG.js → agent-wrapper-DR75UMEL.js} +2 -2
  4. package/dist-cli/chunks/{app-fonts-ZYYLH4SC.js → app-fonts-TC5QZXEN.js} +2 -2
  5. package/dist-cli/chunks/{assert-BFLCTPDL.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-FSKBR7NQ.js → camera-4F5RQCBC.js} +2 -2
  9. package/dist-cli/chunks/{chunk-JWOALEME.js → chunk-2A4RF2GA.js} +2 -2
  10. package/dist-cli/chunks/{chunk-YNAS44F7.js → chunk-4BCGD37Q.js} +1 -1
  11. package/dist-cli/chunks/chunk-4BFAO5OU.js +2 -0
  12. package/dist-cli/chunks/{chunk-PZNY2IMY.js → chunk-6QWKWASG.js} +2 -2
  13. package/dist-cli/chunks/{chunk-J62KE5RK.js → chunk-7R5V5AIL.js} +1 -1
  14. package/dist-cli/chunks/{chunk-W2JRJNRF.js → chunk-ANM2NBPM.js} +1 -1
  15. package/dist-cli/chunks/{chunk-VKGXM77Z.js → chunk-AYRY5U2Y.js} +1 -1
  16. package/dist-cli/chunks/{chunk-H66V4LS4.js → chunk-BLTW2X3S.js} +2 -2
  17. package/dist-cli/chunks/chunk-BQ3UFSIG.js +1 -0
  18. package/dist-cli/chunks/{chunk-3H2TX3GH.js → chunk-BSY42HG5.js} +3 -3
  19. package/dist-cli/chunks/{chunk-KM6DRJEI.js → chunk-D43GSIWC.js} +2 -2
  20. package/dist-cli/chunks/{chunk-4FLQLE7X.js → chunk-DOQDF7TJ.js} +1 -1
  21. package/dist-cli/chunks/{chunk-GRE44V25.js → chunk-DQCTDCDF.js} +1 -1
  22. package/dist-cli/chunks/{chunk-SMYWVHZJ.js → chunk-DXBJHAQE.js} +2 -2
  23. package/dist-cli/chunks/{chunk-V6OMDU5O.js → chunk-EQ4VACQH.js} +2 -2
  24. package/dist-cli/chunks/{chunk-OEKYS3CU.js → chunk-EXF6FEAH.js} +2 -2
  25. package/dist-cli/chunks/{chunk-IEJ4RC3G.js → chunk-FUCVU7VO.js} +1 -1
  26. package/dist-cli/chunks/{chunk-UDN3JDKK.js → chunk-FY42AEQT.js} +2 -2
  27. package/dist-cli/chunks/{chunk-RSGKJDBB.js → chunk-IAE4IW7O.js} +2 -2
  28. package/dist-cli/chunks/{chunk-2IWPNBFB.js → chunk-IFV2H2PN.js} +2 -2
  29. package/dist-cli/chunks/{chunk-EXCVVWAW.js → chunk-INMKIIZH.js} +2 -2
  30. package/dist-cli/chunks/{chunk-D7LOPY4O.js → chunk-J4F5YPVG.js} +2 -2
  31. package/dist-cli/chunks/{chunk-FRAH3R5M.js → chunk-JD3CVFGB.js} +2 -2
  32. package/dist-cli/chunks/{chunk-BKX7SEPA.js → chunk-JDYTNXVQ.js} +1 -1
  33. package/dist-cli/chunks/{chunk-SQJ7EOXE.js → chunk-KJZD6GOC.js} +2 -2
  34. package/dist-cli/chunks/{chunk-V6T7LUYX.js → chunk-LQUJ5CK6.js} +3 -3
  35. package/dist-cli/chunks/{chunk-PR4A6ZBX.js → chunk-LTAFJDXF.js} +1 -1
  36. package/dist-cli/chunks/{chunk-D46GUIMS.js → chunk-M5LTONRB.js} +1 -1
  37. package/dist-cli/chunks/{chunk-YAMN6VOF.js → chunk-MDTM3GKQ.js} +1 -1
  38. package/dist-cli/chunks/{chunk-OVL52WGS.js → chunk-QQUWPJAN.js} +1 -1
  39. package/dist-cli/chunks/{chunk-KWCYMNNZ.js → chunk-QURX7PNL.js} +3 -3
  40. package/dist-cli/chunks/{chunk-W4H7MQVB.js → chunk-SEG4UA6N.js} +1 -1
  41. package/dist-cli/chunks/{chunk-LB6OTENV.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-BI5YCP4N.js → chunk-U5DVNBRT.js} +1 -1
  45. package/dist-cli/chunks/{chunk-EYBETMFT.js → chunk-UNE2CDA5.js} +2 -2
  46. package/dist-cli/chunks/{chunk-FHNZ72F2.js → chunk-UQTGLV4M.js} +1 -1
  47. package/dist-cli/chunks/{chunk-7ZMQBJPJ.js → chunk-UZZA6QOG.js} +2 -2
  48. package/dist-cli/chunks/{chunk-R2CHKR3F.js → chunk-VIDSBYBM.js} +2 -2
  49. package/dist-cli/chunks/{chunk-QR5D3PYK.js → chunk-VYUW5QK4.js} +1 -1
  50. package/dist-cli/chunks/{chunk-HWXC2EGB.js → chunk-WGMRS45V.js} +1 -1
  51. package/dist-cli/chunks/{chunk-XPQOPN7M.js → chunk-XQTW3Z46.js} +2 -2
  52. package/dist-cli/chunks/{chunk-VHNOMO4C.js → chunk-YXCVIAAU.js} +2 -2
  53. package/dist-cli/chunks/{chunk-LGXJNSQ7.js → chunk-ZHBF3X54.js} +2 -2
  54. package/dist-cli/chunks/cli-version-O7QJ4BZ2.js +2 -0
  55. package/dist-cli/chunks/{compat-3R3EOAHC.js → compat-5ZDXKMVB.js} +3 -3
  56. package/dist-cli/chunks/{config-M5QFP3HY.js → config-SALDFPNQ.js} +2 -2
  57. package/dist-cli/chunks/{control-VYNHMIGQ.js → control-CNRPHEU4.js} +2 -2
  58. package/dist-cli/chunks/{cpu-profile-IXGMLKLH.js → cpu-profile-DWVQYLU2.js} +2 -2
  59. package/dist-cli/chunks/{daemon-UBTYY6D4.js → daemon-ZOLT5A64.js} +2 -2
  60. package/dist-cli/chunks/{debug-LV3MG5PC.js → debug-T2TZRZLM.js} +3 -3
  61. package/dist-cli/chunks/{detox-Q47VQ5PD.js → detox-ELF424V7.js} +2 -2
  62. package/dist-cli/chunks/{device-YCYTUZMI.js → device-VS6S2VBJ.js} +2 -2
  63. package/dist-cli/chunks/{diagnose-ST3MONQ7.js → diagnose-C6S6GF6P.js} +2 -2
  64. package/dist-cli/chunks/drivers-36GE2TDC.js +2 -0
  65. package/dist-cli/chunks/{electron-ZCYDKW2J.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-F7FLRJZB.js → hints-CQHHEBUY.js} +2 -2
  69. package/dist-cli/chunks/{home-paths-XQ3Z7MZ2.js → home-paths-3S52MOTF.js} +2 -2
  70. package/dist-cli/chunks/{inspect-T3HU4JTX.js → inspect-TFHVPSB4.js} +3 -3
  71. package/dist-cli/chunks/install-WYCI7SLJ.js +2 -0
  72. package/dist-cli/chunks/{install-desktop-XEBZ4KIS.js → install-desktop-N2DYSBOT.js} +3 -3
  73. package/dist-cli/chunks/{keys-GLJBONHU.js → keys-5DJVHPJW.js} +2 -2
  74. package/dist-cli/chunks/{launch-JQRLMLEL.js → launch-PZY7TD5A.js} +3 -3
  75. package/dist-cli/chunks/{login-GWOXMZL2.js → login-TYJBJLHC.js} +4 -4
  76. package/dist-cli/chunks/{logout-WHUPTLE2.js → logout-SG4UGABE.js} +2 -2
  77. package/dist-cli/chunks/{maestro-D6JKMP67.js → maestro-H4CCHNKL.js} +2 -2
  78. package/dist-cli/chunks/optional-demo-registry-G43O66KE.js +2 -0
  79. package/dist-cli/chunks/{preview-UBF5FA32.js → preview-C6X3ITFK.js} +2 -2
  80. package/dist-cli/chunks/{profile-GTP2VYXL.js → profile-PTUACNTX.js} +2 -2
  81. package/dist-cli/chunks/{react-KITQMQJH.js → react-3D7WSSLI.js} +2 -2
  82. package/dist-cli/chunks/{record-DR37W3JA.js → record-MEMW545L.js} +2 -2
  83. package/dist-cli/chunks/runtime-ZLDHSWAR.js +2 -0
  84. package/dist-cli/chunks/{runtime-delivery-DNETQTB7.js → runtime-delivery-UYRGLL35.js} +2 -2
  85. package/dist-cli/chunks/{screenshot-YFSYOMN2.js → screenshot-OWF4HNV6.js} +2 -2
  86. package/dist-cli/chunks/{screenshot-mode-OPRSV6SC.js → screenshot-mode-KM65465J.js} +2 -2
  87. package/dist-cli/chunks/{screenshots-ZW7O7GUN.js → screenshots-MJXEOC2O.js} +2 -2
  88. package/dist-cli/chunks/{server-P6LFB6TE.js → server-Q5ZYFO5O.js} +3 -3
  89. package/dist-cli/chunks/setup-repo-MANQTJRC.js +2 -0
  90. package/dist-cli/chunks/{skills-ET4YCGCE.js → skills-G2MSPKGR.js} +2 -2
  91. package/dist-cli/chunks/{slides-YBQMTQDC.js → slides-TZTHVGWV.js} +2 -2
  92. package/dist-cli/chunks/{start-ETZPDPFI.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-7ONSXHTV.js → test-MUGRVEBG.js} +3 -3
  96. package/dist-cli/chunks/{three-mode-NJOEKCOV.js → three-mode-CQ6XZZU3.js} +2 -2
  97. package/dist-cli/chunks/{timeline-4HDF2MVZ.js → timeline-MM43OOX2.js} +2 -2
  98. package/dist-cli/chunks/{upgrade-P5OKZBKQ.js → upgrade-A4CBZ3A5.js} +2 -2
  99. package/dist-cli/chunks/upload-3UDJ4OHD.js +2 -0
  100. package/dist-cli/chunks/{version-CKVITOE4.js → version-ONYEMBRD.js} +2 -2
  101. package/dist-cli/chunks/{web-NZ6X3775.js → web-EYRW3MVM.js} +2 -2
  102. package/dist-cli/chunks/{what-happened-C22PRVY2.js → what-happened-H4ZLTNBG.js} +2 -2
  103. package/dist-cli/chunks/{whoami-ILT2PJHK.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 +18 -5
  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 +19 -6
  133. package/dist-lib/vite.cjs +1 -1
  134. package/package.json +7 -1
  135. package/src/bridge-constants.ts +21 -4
  136. package/src/menu.ts +578 -0
  137. package/dist-cli/chunks/auto-bootstrap-COJBYU4X.js +0 -2
  138. package/dist-cli/chunks/beta-3KCKUADE.js +0 -2
  139. package/dist-cli/chunks/chunk-BH3U25T4.js +0 -1
  140. package/dist-cli/chunks/chunk-OQWKR3A5.js +0 -2
  141. package/dist-cli/chunks/chunk-PUYHI5PX.js +0 -1
  142. package/dist-cli/chunks/chunk-QJT4LINK.js +0 -1
  143. package/dist-cli/chunks/cli-version-XHYPGWVW.js +0 -2
  144. package/dist-cli/chunks/drivers-MBE4KVMK.js +0 -2
  145. package/dist-cli/chunks/flow-UQX7RP42.js +0 -2
  146. package/dist-cli/chunks/help-EWU4IV5Y.js +0 -2
  147. package/dist-cli/chunks/install-NNYE7LQ7.js +0 -2
  148. package/dist-cli/chunks/optional-demo-registry-MQJP3RHL.js +0 -2
  149. package/dist-cli/chunks/runtime-NQXJVL2M.js +0 -2
  150. package/dist-cli/chunks/setup-repo-OXIAB6PS.js +0 -2
  151. package/dist-cli/chunks/store-NAABILLN.js +0 -2
  152. package/dist-cli/chunks/telemetry-FEMV2Q4T.js +0 -2
  153. package/dist-cli/chunks/upload-IQU5LLDG.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.153 | (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.153 | (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.153 | (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.153 | (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.153 | (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.153 | (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.153 | (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;
@@ -9938,10 +9938,10 @@ function resolveSootsimBridgePortForHttpPort(input) {
9938
9938
  const portOffset = httpPort === null ? 0 : Math.max(0, httpPort - input.baseHttpPort);
9939
9939
  return resolveSootsimBridgePort({ portOffset });
9940
9940
  }
9941
- function parseHrefPort(value) {
9941
+ function parseHrefUrl(value) {
9942
9942
  if (typeof value !== "string" || !value.trim()) return null;
9943
9943
  try {
9944
- return parsePort(new URL(value).port);
9944
+ return new URL(value);
9945
9945
  } catch {
9946
9946
  return null;
9947
9947
  }
@@ -9958,18 +9958,31 @@ function closestLocalDevBaseHttpPort(httpPort) {
9958
9958
  function resolveSootsimBridgePortForRuntimeLocation(input = {}) {
9959
9959
  const explicitPort = parsePort(input.explicitPort);
9960
9960
  if (explicitPort !== null) return explicitPort;
9961
- const httpPort = parsePort(input.httpPort) ?? parseHrefPort(input.href);
9961
+ const hrefUrl = parseHrefUrl(input.href);
9962
+ const httpPort = parsePort(input.httpPort) ?? parsePort(hrefUrl?.port);
9962
9963
  if (httpPort === null) return DEFAULT_SOOTSIM_BRIDGE_PORT;
9964
+ if (hrefUrl?.pathname.startsWith("/sootsim") && httpPort >= SOOTSIM_SITE_DEV_HTTP_BASE_PORT && httpPort <= SOOTSIM_SITE_DEV_HTTP_BASE_PORT + MAX_LOCAL_DEV_PORT_OFFSET) {
9965
+ return resolveSootsimBridgePortForHttpPort({
9966
+ httpPort,
9967
+ baseHttpPort: SOOTSIM_SITE_DEV_HTTP_BASE_PORT
9968
+ });
9969
+ }
9963
9970
  const baseHttpPort = closestLocalDevBaseHttpPort(httpPort);
9964
9971
  if (baseHttpPort === null) return DEFAULT_SOOTSIM_BRIDGE_PORT;
9965
9972
  return resolveSootsimBridgePortForHttpPort({ httpPort, baseHttpPort });
9966
9973
  }
9967
- var DEFAULT_SOOTSIM_BRIDGE_PORT, LOCAL_DEV_HTTP_BASE_PORTS, MAX_LOCAL_DEV_PORT_OFFSET, SOOTSIM_BRIDGE_SIM_CLOSE_CODE, SOOTSIM_BRIDGE_SIM_CLOSE_REASON;
9974
+ var DEFAULT_SOOTSIM_BRIDGE_PORT, SOOTBEAN_DEV_HTTP_BASE_PORT, SOOTSIM_SITE_DEV_HTTP_BASE_PORT, SOOTSIM_SHELL_DEV_HTTP_BASE_PORT, LOCAL_DEV_HTTP_BASE_PORTS, MAX_LOCAL_DEV_PORT_OFFSET, SOOTSIM_BRIDGE_SIM_CLOSE_CODE, SOOTSIM_BRIDGE_SIM_CLOSE_REASON;
9968
9975
  var init_bridge_constants = __esm({
9969
9976
  "src/bridge-constants.ts"() {
9970
9977
  "use strict";
9971
9978
  DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
9972
- LOCAL_DEV_HTTP_BASE_PORTS = [3e3, 5173];
9979
+ SOOTBEAN_DEV_HTTP_BASE_PORT = 3e3;
9980
+ SOOTSIM_SITE_DEV_HTTP_BASE_PORT = 3001;
9981
+ SOOTSIM_SHELL_DEV_HTTP_BASE_PORT = 5173;
9982
+ LOCAL_DEV_HTTP_BASE_PORTS = [
9983
+ SOOTBEAN_DEV_HTTP_BASE_PORT,
9984
+ SOOTSIM_SHELL_DEV_HTTP_BASE_PORT
9985
+ ];
9973
9986
  MAX_LOCAL_DEV_PORT_OFFSET = 2e3;
9974
9987
  SOOTSIM_BRIDGE_SIM_CLOSE_CODE = 4001;
9975
9988
  SOOTSIM_BRIDGE_SIM_CLOSE_REASON = "sootsim close";
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.153 | (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.153",
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"
@@ -42,13 +42,19 @@ export function resolveSootsimBridgePortForHttpPort(input: {
42
42
  return resolveSootsimBridgePort({ portOffset })
43
43
  }
44
44
 
45
- const LOCAL_DEV_HTTP_BASE_PORTS = [3000, 5173]
45
+ const SOOTBEAN_DEV_HTTP_BASE_PORT = 3000
46
+ const SOOTSIM_SITE_DEV_HTTP_BASE_PORT = 3001
47
+ const SOOTSIM_SHELL_DEV_HTTP_BASE_PORT = 5173
48
+ const LOCAL_DEV_HTTP_BASE_PORTS = [
49
+ SOOTBEAN_DEV_HTTP_BASE_PORT,
50
+ SOOTSIM_SHELL_DEV_HTTP_BASE_PORT,
51
+ ]
46
52
  const MAX_LOCAL_DEV_PORT_OFFSET = 2000
47
53
 
48
- function parseHrefPort(value: unknown): number | null {
54
+ function parseHrefUrl(value: unknown): URL | null {
49
55
  if (typeof value !== 'string' || !value.trim()) return null
50
56
  try {
51
- return parsePort(new URL(value).port)
57
+ return new URL(value)
52
58
  } catch {
53
59
  return null
54
60
  }
@@ -73,8 +79,19 @@ export function resolveSootsimBridgePortForRuntimeLocation(
73
79
  ): number {
74
80
  const explicitPort = parsePort(input.explicitPort)
75
81
  if (explicitPort !== null) return explicitPort
76
- const httpPort = parsePort(input.httpPort) ?? parseHrefPort(input.href)
82
+ const hrefUrl = parseHrefUrl(input.href)
83
+ const httpPort = parsePort(input.httpPort) ?? parsePort(hrefUrl?.port)
77
84
  if (httpPort === null) return DEFAULT_SOOTSIM_BRIDGE_PORT
85
+ if (
86
+ hrefUrl?.pathname.startsWith('/sootsim') &&
87
+ httpPort >= SOOTSIM_SITE_DEV_HTTP_BASE_PORT &&
88
+ httpPort <= SOOTSIM_SITE_DEV_HTTP_BASE_PORT + MAX_LOCAL_DEV_PORT_OFFSET
89
+ ) {
90
+ return resolveSootsimBridgePortForHttpPort({
91
+ httpPort,
92
+ baseHttpPort: SOOTSIM_SITE_DEV_HTTP_BASE_PORT,
93
+ })
94
+ }
78
95
  const baseHttpPort = closestLocalDevBaseHttpPort(httpPort)
79
96
  if (baseHttpPort === null) return DEFAULT_SOOTSIM_BRIDGE_PORT
80
97
  return resolveSootsimBridgePortForHttpPort({ httpPort, baseHttpPort })