peachsim 0.1.2411 → 0.1.2421

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 (146) hide show
  1. package/README.md +1 -1
  2. package/cli/catalog/content.ts +6 -3
  3. package/cli/catalog/meta.ts +63 -17
  4. package/cli/catalog/routes.ts +4 -0
  5. package/cli/cloud-box-artifact.ts +45 -24
  6. package/cli/cloud-client.ts +6 -2
  7. package/cli/command-registry.ts +3 -1
  8. package/cli/commands/control.ts +74 -55
  9. package/cli/commands/desktop.ts +3 -3
  10. package/cli/commands/electron.ts +7 -5
  11. package/cli/commands/kotlin.ts +8 -1
  12. package/cli/commands/platform.ts +5 -7
  13. package/cli/commands/profile.ts +2 -2
  14. package/cli/commands/settings.ts +90 -0
  15. package/cli/commands/shell-url.ts +18 -10
  16. package/cli/commands/swift.ts +3 -1
  17. package/cli/main.ts +6 -0
  18. package/cli/outbound-endpoints.ts +17 -15
  19. package/cli/settings-flags.ts +115 -0
  20. package/dist-lib/agent-daemon-client.cjs +1 -1
  21. package/dist-lib/agent-events.cjs +1 -1
  22. package/dist-lib/attached-projects.cjs +1 -1
  23. package/dist-lib/auth/shared-session.cjs +1 -1
  24. package/dist-lib/backend-origin.cjs +1 -1
  25. package/dist-lib/beta.cjs +1 -1
  26. package/dist-lib/beta.mjs +1 -1
  27. package/dist-lib/bridge-constants.cjs +1 -1
  28. package/dist-lib/bridge-contract-input.cjs +1 -1
  29. package/dist-lib/bridge-contract-input.mjs +1 -1
  30. package/dist-lib/bridge-contract.cjs +1 -1
  31. package/dist-lib/bridge-contract.mjs +1 -1
  32. package/dist-lib/bundle-channel.cjs +3706 -1818
  33. package/dist-lib/capture-contract.cjs +1 -1
  34. package/dist-lib/capture-contract.mjs +1 -1
  35. package/dist-lib/cloud-contract.cjs +1 -1
  36. package/dist-lib/cloud-contract.mjs +1 -1
  37. package/dist-lib/cloud-test-args.cjs +1 -1
  38. package/dist-lib/cloud-test-args.mjs +1 -1
  39. package/dist-lib/cloud.cjs +1 -1
  40. package/dist-lib/cloud.mjs +1 -1
  41. package/dist-lib/config.cjs +3 -7
  42. package/dist-lib/config.mjs +3 -7
  43. package/dist-lib/detox/index.cjs +4 -4
  44. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  45. package/dist-lib/expo-swift-bundle.cjs +17144 -15295
  46. package/dist-lib/expo-swift-metadata.cjs +1 -1
  47. package/dist-lib/expo-swift-metadata.mjs +1 -1
  48. package/dist-lib/home-paths.cjs +1 -1
  49. package/dist-lib/host/bridge-host.cjs +63288 -62269
  50. package/dist-lib/host/fetch-proxy-handler.cjs +1598 -211
  51. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  52. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  53. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  54. package/dist-lib/host/websocket-proxy.cjs +1 -1
  55. package/dist-lib/index.cjs +3007 -1512
  56. package/dist-lib/jump-to-source-babel.cjs +1 -1
  57. package/dist-lib/jump-to-source-native.cjs +1 -1
  58. package/dist-lib/kotlin-host.cjs +972 -246
  59. package/dist-lib/menu.cjs +1 -1
  60. package/dist-lib/menu.mjs +1 -1
  61. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  62. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  63. package/dist-lib/metro-production-bundle.cjs +1 -1
  64. package/dist-lib/metro-production-bundle.mjs +1 -1
  65. package/dist-lib/metro.cjs +1742 -247
  66. package/dist-lib/native-app-identity-project.cjs +40 -204
  67. package/dist-lib/native-app-identity-project.mjs +40 -204
  68. package/dist-lib/native-app-identity.cjs +1 -1
  69. package/dist-lib/native-app-identity.mjs +1 -1
  70. package/dist-lib/native-firebase-metadata.cjs +1 -1
  71. package/dist-lib/native-firebase-metadata.mjs +1 -1
  72. package/dist-lib/pdfium-raster.cjs +1 -1
  73. package/dist-lib/pdfium-raster.mjs +1 -1
  74. package/dist-lib/plist.cjs +1 -1
  75. package/dist-lib/plist.mjs +1 -1
  76. package/dist-lib/profiles.cjs +1 -1
  77. package/dist-lib/public-brand.cjs +1 -1
  78. package/dist-lib/public-origins-lib-esm.json +26 -24
  79. package/dist-lib/public-origins-lib.json +198 -117
  80. package/dist-lib/react-native-host-modules.cjs +1 -1
  81. package/dist-lib/react-native-host-modules.mjs +1 -1
  82. package/dist-lib/reap-browser.cjs +1 -1
  83. package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
  84. package/dist-lib/sdk.cjs +1 -1
  85. package/dist-lib/sdk.mjs +1 -1
  86. package/dist-lib/skills.cjs +21765 -20511
  87. package/dist-lib/swift-compile.cjs +48 -228
  88. package/dist-lib/swift-compile.mjs +48 -228
  89. package/dist-lib/swift-package.cjs +1 -1
  90. package/dist-lib/swift-package.mjs +1 -1
  91. package/dist-lib/swift-submit.cjs +1 -1
  92. package/dist-lib/swift-submit.mjs +1 -1
  93. package/dist-lib/swift-toolchain.cjs +1 -199
  94. package/dist-lib/swift.cjs +1 -1
  95. package/dist-lib/vite-swift.cjs +227 -251
  96. package/dist-lib/vite.cjs +5240 -3788
  97. package/dist-lib/worklet-executable.cjs +1 -1
  98. package/dist-lib/worklet-executable.mjs +1 -1
  99. package/dist-types/packages/peach-engine/src/config.d.ts +1 -4
  100. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -0
  101. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -0
  102. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
  103. package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +5 -0
  104. package/kotlin/README.md +4 -3
  105. package/kotlin/sdk.tar.gz +0 -0
  106. package/kotlin/toolchain.json +3 -6
  107. package/package.json +1 -1
  108. package/runtime-companion.json +1 -1
  109. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1 -43
  110. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayerContents.h +55 -0
  111. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +3 -3
  112. package/sdk/ios/usr/include/ObjectiveC.apinotes +0 -24
  113. package/sdk/ios/usr/include/grp.h +93 -0
  114. package/sdk/ios/usr/include/netinet/tcp.h +299 -0
  115. package/sdk/ios/wasm/include/netinet/tcp.h +6 -0
  116. package/sdk/ios/wasm/include/stdlib.h +1 -0
  117. package/sdk/ios/wasm/include/unistd.h +2 -0
  118. package/skills/contrast/SKILL.md +1 -0
  119. package/skills/peach-setup/SKILL.md +11 -1
  120. package/src/android-bridge-dependencies.ts +1 -1
  121. package/src/app-config.ts +7 -0
  122. package/src/binaryen.lock.json +21 -0
  123. package/src/cocoapods-trunk.ts +52 -0
  124. package/src/config.ts +21 -31
  125. package/src/expo-native-workspace.ts +4 -0
  126. package/src/kotlin-host.ts +1 -1
  127. package/src/kotlin-sdk.ts +7 -7
  128. package/src/kotlin-toolchain.ts +28 -24
  129. package/src/kotlinSdkContract.ts +2 -2
  130. package/src/native-bundles.ts +5 -2
  131. package/src/native-static-libraries.ts +38 -5
  132. package/src/podfile-cocoapods.ts +1473 -0
  133. package/src/podspec-cocoapods.ts +331 -106
  134. package/src/podspec-ruby-stdlib.ts +134 -19
  135. package/src/podspec-ruby.ts +199 -46
  136. package/src/settingsContract.ts +74 -0
  137. package/src/swift-compile.ts +1 -1
  138. package/src/swift-compiler-digest.ts +1 -0
  139. package/src/swift-host.ts +107 -15
  140. package/src/swift-objc-compile.ts +5 -0
  141. package/src/swift-packages.ts +75 -0
  142. package/src/swift-shared-sdk.ts +19 -0
  143. package/src/swift-toolchain.ts +2 -201
  144. package/src/turbo-source.ts +7 -37
  145. package/src/wasm-optimize.ts +4 -27
  146. package/src/xcode-project.ts +22 -7
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2411 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2421 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -294,7 +294,7 @@ var STANDIN_SOURCE_DIGEST;
294
294
  var init_swift_standin_digest = __esm({
295
295
  "src/swift-standin-digest.ts"() {
296
296
  "use strict";
297
- STANDIN_SOURCE_DIGEST = true ? "2d765e977c08a74dad452d5ca662fba6baa967ccf18a7456e60717372076300b" : standinSourceDigest();
297
+ STANDIN_SOURCE_DIGEST = true ? "04ba039a95b639d89097dcef7220bd64a4c48578e05e150dafb66cf9195294a2" : standinSourceDigest();
298
298
  }
299
299
  });
300
300
 
@@ -1892,7 +1892,7 @@ var swiftCoverageProvenance;
1892
1892
  var init_provenance = __esm({
1893
1893
  "src/swift-coverage/provenance.ts"() {
1894
1894
  "use strict";
1895
- swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"b0da81ab133ad067978e174c2f62f5a9655dfe6b5639bc4b884f3137a8136144","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
1895
+ swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"3e44efffa6b26d05b7390b6d0215ad36141fb9c7c46d2d51cd100ab85008fca4","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
1896
1896
  }
1897
1897
  });
1898
1898
 
@@ -2175,24 +2175,6 @@ var init_swift_toolchain = __esm({
2175
2175
  }
2176
2176
  }
2177
2177
  },
2178
- "swift-6.4.0-RELEASE-custom-44ecd25f163bb359": {
2179
- identity: "44ecd25f163bb359",
2180
- archive: "tar.zst",
2181
- hosts: {
2182
- "darwin-arm64": {
2183
- checksum: "d06dda4435f99d8376179cc7a3804907aa7305513135ece6288fd8e6d4695ae6",
2184
- manifest: "bc0d8b955f923f096dda2aa8bbb1d56176a73f3d4a4df4cc9a1f59d31417061a"
2185
- },
2186
- "linux-x64": {
2187
- checksum: "f95b56440693c5de7995f10ea14c57fc7e659a161018a17f17a74b61a98e88a4",
2188
- manifest: "c18a60b14d5c89a8b2e1dbb2b4b52342c5fb92c7f3069fdc55c985bce61683a7"
2189
- },
2190
- "linux-arm64": {
2191
- checksum: "afb74ae60df2b5bd7792bfbcf29bcea03675a5c814b758dd6cb91a760c220cd2",
2192
- manifest: "ac037f6b0fdc4a6ae582eebc22bcf811fa2becdc30d083057137fc857f3c456a"
2193
- }
2194
- }
2195
- },
2196
2178
  "swift-6.4.0-RELEASE-custom-11345d60dca47496": {
2197
2179
  identity: "11345d60dca47496",
2198
2180
  archive: "tar.zst",
@@ -2211,186 +2193,6 @@ var init_swift_toolchain = __esm({
2211
2193
  }
2212
2194
  }
2213
2195
  },
2214
- "swift-6.4.0-RELEASE-custom-45bb46301c86fe73": {
2215
- identity: "45bb46301c86fe73",
2216
- archive: "tar.gz",
2217
- hosts: {
2218
- "darwin-arm64": {
2219
- checksum: "102dfbbb7b451be0685763b7a427284b75a8078874543f091b1c4b3db86e6565",
2220
- manifest: "fb6c4d75ef6f4b3c094ae5a4d5d1e6bdfd85431f3fe25d514f3e7a0b4add60ef"
2221
- },
2222
- "linux-x64": {
2223
- checksum: "d3c040e042e12ff787b64bfde1d85238254365036ce093f3b20ff86e8ff996f0",
2224
- manifest: "7c7144be591692e563396fe3c987c5aa56fbaea4faacaad62283c0c6e5c04ae2"
2225
- },
2226
- "linux-arm64": {
2227
- checksum: "604e6fc5fc0f5a93cee3ca6dfa9616244a2a49ef517caa3155a12ae4a0ecf72b",
2228
- manifest: "075fd53d03ecf099954f1d023bb4bb67a5c5ee946537466d6c105022bdf8ecde"
2229
- }
2230
- }
2231
- },
2232
- "swift-6.4.0-RELEASE-custom-0b2d0a9011c88e66": {
2233
- identity: "0b2d0a9011c88e66",
2234
- archive: "tar.gz",
2235
- hosts: {
2236
- "darwin-arm64": {
2237
- checksum: "dc6a494227297ea657e8e5f7c5b4a861cb5e142bdbcfcb028ace2aeb19db90cc",
2238
- manifest: "d8e9eee0fb9b847f1e9350525d6c68606df46101745f553332309ed026b3c26a"
2239
- },
2240
- "linux-x64": {
2241
- checksum: "85c04b4496aea1657c21a47f448e01d6ccc1c7920d130a566db37fb8350a7be2",
2242
- manifest: "8451659e74235ad53b700c1afbe293512197900eb98cb1f79e36df2f5c85d511"
2243
- },
2244
- "linux-arm64": {
2245
- checksum: "196606ed62c5c926d18e6ef0769cb1ab21c9943f9084070ddf14a7bc696768b8",
2246
- manifest: "85fb8d5b6527bd75003a6dbd25b68b22540665cf9df9b13f41f82e5d8acdbf1d"
2247
- }
2248
- }
2249
- },
2250
- "swift-6.4.0-RELEASE-custom-f7c03c3f59ec5d83": {
2251
- identity: "f7c03c3f59ec5d83",
2252
- archive: "tar.gz",
2253
- hosts: {
2254
- "darwin-arm64": {
2255
- checksum: "8946a2d4716d3b0784cef7a85a35f66537bd319c4c5a48c63457d607260df5c5",
2256
- manifest: "2a7754e6e365bf71ae6b6aefbbd810123795c73d43fb902a8a972d009d72790f"
2257
- },
2258
- "linux-x64": {
2259
- checksum: "5ffa3b54d54583c1d6a38b708693072db4d088ba4bf5966b17014c068b2db641",
2260
- manifest: "1b23ea52c5570de4697481a54bd0b0a0bcd6b54feccb7b0bb940d3643dec82cb"
2261
- },
2262
- "linux-arm64": {
2263
- checksum: "29b0b97b7b0db4475dbe55f7011e57f493fed9f3482a6705becebd8b68c90bab",
2264
- manifest: "3fdab1132715f5899de1bb1d7ddcd52cf540295ab86586c72f49502f37a403a1"
2265
- }
2266
- }
2267
- },
2268
- "swift-6.4.0-RELEASE-custom-3e3dca8fd1d82975": {
2269
- identity: "3e3dca8fd1d82975",
2270
- archive: "tar.gz",
2271
- hosts: {
2272
- "darwin-arm64": {
2273
- checksum: "dfad56454f5e1e465071ff708bf485be65b438cf55d02b04d26d17d26df9f54a",
2274
- manifest: "82c35e43ed81101bea500100356a555d8266e1987d5ca7605aaa4df747c38f81"
2275
- },
2276
- "linux-x64": {
2277
- checksum: "d3f5908d097fdc1337ff979114e605bcc758052e32f9d5d760574153d58ce6db",
2278
- manifest: "a03caf181177f3d68a45b5246d0f0a26d8a5fa9ff33cf44c44e6942b73363bae"
2279
- },
2280
- "linux-arm64": {
2281
- checksum: "8fceafca152dd0692aa6bb51236fc362a4caeeef37fc22cb5ef6aa3d0d5b3df3",
2282
- manifest: "3115bc496fd8e907a16992dfc5c85b3e0798d3b58ddf1d6dace63842aed8e53b"
2283
- }
2284
- }
2285
- },
2286
- "swift-6.4.0-RELEASE-custom-b082ac5437336790": {
2287
- identity: "b082ac5437336790",
2288
- archive: "tar.gz",
2289
- hosts: {
2290
- "darwin-arm64": {
2291
- checksum: "85e601982321d3a6f81f05928bc9bbe7a61bc75b27ce24508e79f6b5b537254d",
2292
- manifest: "c889a70c6bba48eb0e5e218a5c0077eb557082fed5c5c58d10f07a941975080e"
2293
- },
2294
- "linux-x64": {
2295
- checksum: "54c7988622d201e4ba6c83ca75e7b28c658b39cf1ea8b95ea88807afe33aa465",
2296
- manifest: "bfd725c3b07a3624bb44c8e3a1b7ddf1eddde4fc9565e23740a9cee832c94583"
2297
- },
2298
- "linux-arm64": {
2299
- checksum: "bd729fd73dc9953306eafd87eda79462b836b3cb127c73108327d7256b15f501",
2300
- manifest: "e7f8827cca0f249a5b4a4750f6324f75633b374985fa0b93e650ee8bfcabeb39"
2301
- }
2302
- }
2303
- },
2304
- "swift-6.4.0-RELEASE-custom-9cdaffdb6b37fb47": {
2305
- identity: "9cdaffdb6b37fb47",
2306
- archive: "tar.gz",
2307
- hosts: {
2308
- "darwin-arm64": {
2309
- checksum: "fdd3f88cf76a8dc2083275d4253255030068a25b5ba68acbf59e0407c45677dd",
2310
- manifest: "f50c68faf91f7d2a6ea5bcd4da4573a49dd00ad9f334b27d3f9ddb08b65e46cc"
2311
- },
2312
- "linux-x64": {
2313
- checksum: "f29f9efc598b17f33d802467676ba282441a8c3c6fa67e307c4a1e6130509d73",
2314
- manifest: "f907727c5a4af58ccad7ccbb043a21289d7eb37d166536a90b3c3848f95df816"
2315
- },
2316
- "linux-arm64": {
2317
- checksum: "7d4a8a1f90dd6c86804ceb43f8b9cf680b9778d4640a2eb6da5cb333a599f23a",
2318
- manifest: "a3224cd5c09a92f66cacd0395058b2c43fa103a92bb168280132bbd0febd1575"
2319
- }
2320
- }
2321
- },
2322
- "swift-6.4.0-RELEASE-custom-bd49e2f77434e7b1": {
2323
- identity: "bd49e2f77434e7b1",
2324
- archive: "tar.gz",
2325
- hosts: {
2326
- "darwin-arm64": {
2327
- checksum: "e815b06394566e8125475afc8f1807f7f465318c845549c5831043cdc28eca64",
2328
- manifest: "6e3ae00102c67f2f9761b1462aab63580f2ca010469300a7c4a620765573e4e0"
2329
- },
2330
- "linux-x64": {
2331
- checksum: "9336e0b0aefaa0171799d4b5d4215c711a24c79ac9e91baa362ba100fc22534f",
2332
- manifest: "3802c631f593eda1d79dc4af55a8667356eece954d2ea59b62b1f8f981fa538e"
2333
- },
2334
- "linux-arm64": {
2335
- checksum: "851b5a756472ad53d833e8f0ab3ae55c05d3e6b49871bb982c977b7582cc117f",
2336
- manifest: "4162656192a2881e5ccc763e3e66ce46646a84ff42cdf2de50bd6424ebac5e34"
2337
- }
2338
- }
2339
- },
2340
- "swift-6.4.0-RELEASE-custom-13450179a7e01c81": {
2341
- identity: "13450179a7e01c81",
2342
- archive: "tar.gz",
2343
- hosts: {
2344
- "darwin-arm64": {
2345
- checksum: "a29be6b722f15c7aafac26ba5703a7392f49ce7ea5e1c56548846b7e458290f7",
2346
- manifest: "9d89bc39d80d13c8bdb93ad5c306bb87e83bac34090f9bcec57476fd90a6a115"
2347
- },
2348
- "linux-x64": {
2349
- checksum: "b9e9e3ed855f6a8c85f5fe24016b83792a0088e2d0ea632482426c4dc6031b98",
2350
- manifest: "5de3bb6bf131e68862539195fbb4fce9d4de2b528fa882495b27fd4bdd02e5ab"
2351
- },
2352
- "linux-arm64": {
2353
- checksum: "844f5ead2854d4ac2d1fc9fb13c366450a2ed4b8fa641719822d74f9150575b4",
2354
- manifest: "1fcfb353679186a3e631b83085e5e8c3dde8cb32d25052b3c8b7896339a4378b"
2355
- }
2356
- }
2357
- },
2358
- "swift-6.4.0-RELEASE-custom-f6868fa6054e83d6": {
2359
- identity: "f6868fa6054e83d6",
2360
- archive: "tar.gz",
2361
- hosts: {
2362
- "darwin-arm64": {
2363
- checksum: "bd80c2f35864ec29883dd22001d0165821e80d78002fc12f92406c3c708694a4",
2364
- manifest: "daad0da2a296084307769b59719dbe83e45755871438fad129b20421b111657b"
2365
- },
2366
- "linux-x64": {
2367
- checksum: "39707ef599835ae2d9ce5aea026b7a96d43e51b4c4dcd2ca62d5fc11c520e871",
2368
- manifest: "065405edd9b02a84ce01c09e68531834dbe190232e6387b056a481354c44fe81"
2369
- },
2370
- "linux-arm64": {
2371
- checksum: "a91f2947d560b49b56334938d0efdcb22286557da63d65389129030b2a4e146d",
2372
- manifest: "4dfbc167c96f30c7de19cc280948786fb79a888b666ca200b0788803902361ce"
2373
- }
2374
- }
2375
- },
2376
- "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c": {
2377
- identity: "a560ff35bf882b5c",
2378
- archive: "tar.zst",
2379
- hosts: {
2380
- "darwin-arm64": {
2381
- checksum: "36c50bcdfba88a4c0989af0bd60371497eb4403aa7b80644b479fa509a2187a9",
2382
- manifest: "253e891527d2213f54eace768b902de89de5e9495a3c5f4018de1985516bd553"
2383
- },
2384
- "linux-x64": {
2385
- checksum: "ba25da9182314fc7b7dd2fc041280e1c7b409f80a1fbccdfa5c342669d164c8e",
2386
- manifest: "6f951cc4071dd0d6054d85711a7c5fe272273658847831b477a8b24be7254ca0"
2387
- },
2388
- "linux-arm64": {
2389
- checksum: "5f0f4456e9fe22b5486025db9f679c865841660797d71761245291c2c6811c20",
2390
- manifest: "b6f62fca2ec37593e274ee5bac474f21ffc5db14cd82f492ccbc774f8e9b75d8"
2391
- }
2392
- }
2393
- },
2394
2196
  [SWIFT_HOST_COMPILER_RELEASE]: {
2395
2197
  identity: SWIFT_HOST_COMPILER_ID,
2396
2198
  archive: "tar.gz",
@@ -2885,6 +2687,34 @@ var init_swift_guest_source_inputs = __esm({
2885
2687
  }
2886
2688
  });
2887
2689
 
2690
+ // src/binaryen.lock.json
2691
+ var binaryen_lock_default;
2692
+ var init_binaryen_lock = __esm({
2693
+ "src/binaryen.lock.json"() {
2694
+ binaryen_lock_default = {
2695
+ version: "132",
2696
+ licenseSha256: "64c0d02491e16eced74826440ecd2bcf7722d37fa586faf457b2494293afbffe",
2697
+ platforms: {
2698
+ "linux-x64": {
2699
+ asset: "x86_64-linux",
2700
+ upstreamSha256: "195ddc94f9bc89f45abdabb0b9eea86023d727ba90eac8b35b80f2544fc30572",
2701
+ sha256: "0396b1a540e9f97f30eb6a378d829305c218c821a0bd88c74e83d3d6923dad0b"
2702
+ },
2703
+ "linux-arm64": {
2704
+ asset: "aarch64-linux",
2705
+ upstreamSha256: "c58562417836c5d0493d89bdefc434933bdc097db641b483df86bcfa557a107f",
2706
+ sha256: "25e3747f19614b0281a28b9a909ddc602b546ccdfacebc8cae2f7165665328fa"
2707
+ },
2708
+ "darwin-arm64": {
2709
+ asset: "arm64-macos",
2710
+ upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
2711
+ sha256: "34281566fe32df71337aaf0b60aa265dc853587d92bda0b5b1fac8aed8c2f8ab"
2712
+ }
2713
+ }
2714
+ };
2715
+ }
2716
+ });
2717
+
2888
2718
  // src/wasm-narrow-boundary.ts
2889
2719
  var init_wasm_narrow_boundary = __esm({
2890
2720
  "src/wasm-narrow-boundary.ts"() {
@@ -2893,7 +2723,7 @@ var init_wasm_narrow_boundary = __esm({
2893
2723
  });
2894
2724
 
2895
2725
  // src/wasm-optimize.ts
2896
- var import_node_child_process, import_node_util, FEATURES, KEEP_WASM_NAMES, LOWERING, BINARYEN_VERSION, runBinaryen, WASM_LOWER_IDENTITY;
2726
+ var import_node_child_process, import_node_util, FEATURES, KEEP_WASM_NAMES, LOWERING, BINARYEN_VERSION, runBinaryen, WASM_LOWER_IDENTITY, BINARYEN_RELEASES;
2897
2727
  var init_wasm_optimize = __esm({
2898
2728
  "src/wasm-optimize.ts"() {
2899
2729
  "use strict";
@@ -2901,6 +2731,7 @@ var init_wasm_optimize = __esm({
2901
2731
  import_node_util = require("node:util");
2902
2732
  init_src();
2903
2733
  init_admitted_mac_build();
2734
+ init_binaryen_lock();
2904
2735
  init_home_paths();
2905
2736
  init_wasm_narrow_boundary();
2906
2737
  FEATURES = [
@@ -2918,9 +2749,10 @@ var init_wasm_optimize = __esm({
2918
2749
  ];
2919
2750
  KEEP_WASM_NAMES = process.env.PEACH_SWIFT_NAMES === "1";
2920
2751
  LOWERING = ["--memory64-lowering", "--table64-lowering"];
2921
- BINARYEN_VERSION = "132";
2752
+ BINARYEN_VERSION = binaryen_lock_default.version;
2922
2753
  runBinaryen = (0, import_node_util.promisify)(import_node_child_process.execFile);
2923
2754
  WASM_LOWER_IDENTITY = `binaryen ${BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
2755
+ BINARYEN_RELEASES = new Map(Object.entries(binaryen_lock_default.platforms));
2924
2756
  }
2925
2757
  });
2926
2758
 
@@ -3140,7 +2972,7 @@ var init_swift_compile = __esm({
3140
2972
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
3141
2973
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
3142
2974
  ).join("");
3143
- compilerSourceDigest = true ? "5bdda04d424b3a504c042269bf0bebf701fc0435974970611138a79db9b959cd" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
2975
+ compilerSourceDigest = true ? "558e865561d0b74b1a3016abec937fd19f725375fe7e014dc1f140a17a31bc68" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
3144
2976
  C_WORDS = new Set(
3145
2977
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
3146
2978
  " "
@@ -3419,17 +3251,38 @@ var init_podspec_ruby_stdlib = __esm({
3419
3251
  });
3420
3252
 
3421
3253
  // src/podspec-cocoapods.ts
3422
- var PRELUDE;
3254
+ var PRELUDE, HOST_PROBES;
3423
3255
  var init_podspec_cocoapods = __esm({
3424
3256
  "src/podspec-cocoapods.ts"() {
3425
3257
  "use strict";
3426
3258
  init_podspec_ruby();
3427
3259
  init_podspec_ruby_stdlib();
3260
+ init_swift_objc_standin();
3428
3261
  PRELUDE = String.raw`
3429
3262
  module Pod
3430
3263
  VERSION = '1.17.0'
3431
3264
  class Informative < StandardError; end
3432
3265
  class PlainInformative < StandardError; end
3266
+
3267
+ module Executable
3268
+ def self.which(program)
3269
+ program = program.to_s
3270
+ paths = ENV.fetch('PATH') { '' }.split(File::PATH_SEPARATOR)
3271
+ paths.unshift('./')
3272
+ paths.uniq!
3273
+ paths.each do |path|
3274
+ bin = File.expand_path(program, path)
3275
+ return bin if File.file?(bin) && File.executable?(bin)
3276
+ end
3277
+ nil
3278
+ end
3279
+
3280
+ def self.which!(program)
3281
+ which(program).tap do |bin|
3282
+ raise Informative, "Unable to locate the executable '#{program}'" unless bin
3283
+ end
3284
+ end
3285
+ end
3433
3286
  class Version < Gem::Version; end
3434
3287
 
3435
3288
  class Requirement
@@ -3438,6 +3291,9 @@ module Pod
3438
3291
  def self.create(input)
3439
3292
  input.is_a?(Requirement) ? input : new(input)
3440
3293
  end
3294
+ def self.default
3295
+ new('>= 0')
3296
+ end
3441
3297
  def initialize(*requirements)
3442
3298
  requirements = requirements.flatten
3443
3299
  requirements.compact!
@@ -3450,16 +3306,136 @@ module Pod
3450
3306
  raise ArgumentError, "Illformed requirement [#{requirement.inspect}]" unless match
3451
3307
  [match[1] || '=', Version.new(match[2])]
3452
3308
  end
3309
+ def none?
3310
+ requirements == [['>=', Version.new('0')]]
3311
+ end
3312
+ def satisfied_by?(version)
3313
+ requirements.all? do |op, rv|
3314
+ case op
3315
+ when '=' then version == rv
3316
+ when '!=' then version != rv
3317
+ when '>' then version > rv
3318
+ when '<' then version < rv
3319
+ when '>=' then version >= rv
3320
+ when '<=' then version <= rv
3321
+ when '~>' then version >= rv && version.release < rv.bump
3322
+ end
3323
+ end
3324
+ end
3325
+ def ==(other)
3326
+ other.is_a?(Requirement) && requirements.sort_by(&:to_s) == other.requirements.sort_by(&:to_s)
3327
+ end
3328
+ def as_list
3329
+ requirements.map { |op, version| "#{op} #{version}" }.sort
3330
+ end
3331
+ def prerelease?
3332
+ requirements.any? { |_op, version| version.prerelease? }
3333
+ end
3453
3334
  def to_s
3454
- requirements.map { |op, version| "#{op} #{version}" }.join(', ')
3335
+ as_list.join(', ')
3455
3336
  end
3456
3337
  end
3457
3338
 
3458
3339
  class Dependency
3459
- attr_reader :name, :requirement
3340
+ attr_accessor :name
3341
+ attr_accessor :external_source
3342
+ attr_accessor :podspec_repo
3460
3343
  def initialize(name = nil, *requirements)
3344
+ if requirements.last.is_a?(Hash)
3345
+ additional_params = requirements.pop.select { |_, v| !v.nil? }
3346
+ additional_params = nil if additional_params.empty?
3347
+ if additional_params && @podspec_repo = additional_params[:source]
3348
+ additional_params.delete(:source)
3349
+ unless additional_params.empty?
3350
+ raise Informative, 'A dependency with a specified podspec repo may ' \
3351
+ "not include other source parameters (#{name})."
3352
+ end
3353
+ elsif @external_source = additional_params
3354
+ unless requirements.empty?
3355
+ raise Informative, 'A dependency with an external source may not ' \
3356
+ "specify version requirements (#{name})."
3357
+ end
3358
+ end
3359
+ end
3360
+ if requirements.length == 1 && requirements.first.is_a?(Requirement)
3361
+ requirements = requirements.first
3362
+ end
3461
3363
  @name = name
3462
3364
  @requirement = Requirement.create(requirements)
3365
+ @specific_requirement ||= nil
3366
+ @external_source ||= nil
3367
+ end
3368
+ def requirement
3369
+ @specific_requirement || @requirement
3370
+ end
3371
+ def specific_version
3372
+ @specific_version
3373
+ end
3374
+ def specific_version=(version)
3375
+ @specific_version = version
3376
+ @specific_requirement = Requirement.new(version)
3377
+ end
3378
+ def root_name
3379
+ Specification.root_name(name)
3380
+ end
3381
+ def prerelease?
3382
+ requirement.prerelease?
3383
+ end
3384
+ def external?
3385
+ !@external_source.nil?
3386
+ end
3387
+ def local?
3388
+ external_source[:path] if external_source
3389
+ end
3390
+ def to_root_dependency
3391
+ dep = dup
3392
+ dep.name = root_name
3393
+ dep
3394
+ end
3395
+ def ==(other)
3396
+ other.is_a?(Dependency) && name == other.name && external_source == other.external_source &&
3397
+ podspec_repo == other.podspec_repo && requirement == other.requirement
3398
+ end
3399
+ alias_method :eql?, :==
3400
+ def hash
3401
+ name.hash ^ requirement.to_s.hash ^ external_source.hash
3402
+ end
3403
+ def <=>(other)
3404
+ name <=> other.name
3405
+ end
3406
+ def to_s
3407
+ version = ''
3408
+ if external?
3409
+ version += external_source_description(external_source)
3410
+ elsif requirement != Requirement.default
3411
+ version += requirement.to_s
3412
+ end
3413
+ result = name.dup
3414
+ result += " (#{version})" unless version.empty?
3415
+ result
3416
+ end
3417
+ def inspect
3418
+ "<#{self.class} name=#{name} requirements=#{requirement} source=#{podspec_repo || 'nil'} external_source=#{external_source || 'nil'}>"
3419
+ end
3420
+ private
3421
+ def external_source_description(source)
3422
+ if source.key?(:git)
3423
+ desc = "\`#{source[:git]}\`"
3424
+ desc << ", commit \`#{source[:commit]}\`" if source[:commit]
3425
+ desc << ", branch \`#{source[:branch]}\`" if source[:branch]
3426
+ desc << ", tag \`#{source[:tag]}\`" if source[:tag]
3427
+ elsif source.key?(:hg)
3428
+ desc = "\`#{source[:hg]}\`"
3429
+ elsif source.key?(:svn)
3430
+ desc = "\`#{source[:svn]}\`"
3431
+ elsif source.key?(:podspec)
3432
+ desc = "\`#{source[:podspec]}\`"
3433
+ elsif source.key?(:path)
3434
+ desc = "\`#{source[:path]}\`"
3435
+ else
3436
+ desc = "\`#{source}\`"
3437
+ end
3438
+ "from #{desc}"
3463
3439
  end
3464
3440
  end
3465
3441
 
@@ -3475,16 +3451,55 @@ module Pod
3475
3451
  def to_sym
3476
3452
  name
3477
3453
  end
3454
+ def self.string_name(symbolic_name)
3455
+ case symbolic_name
3456
+ when :ios then 'iOS'
3457
+ when :osx then 'macOS'
3458
+ when :watchos then 'watchOS'
3459
+ when :tvos then 'tvOS'
3460
+ when :visionos then 'visionOS'
3461
+ else symbolic_name.to_s
3462
+ end
3463
+ end
3464
+ def string_name
3465
+ self.class.string_name(name)
3466
+ end
3467
+ def safe_string_name
3468
+ string_name.tr(' ', '')
3469
+ end
3478
3470
  def to_s
3479
- name.to_s
3471
+ s = self.class.string_name(name)
3472
+ s += " #{deployment_target}" if deployment_target
3473
+ s
3474
+ end
3475
+ def inspect
3476
+ "#<#{self.class.name} name=#{name.inspect} deployment_target=#{deployment_target.to_s.inspect}>"
3477
+ end
3478
+ def hash
3479
+ name.hash ^ deployment_target.hash
3480
+ end
3481
+ def eql?(other)
3482
+ self == other
3483
+ end
3484
+ def supports?(other)
3485
+ other = Platform.new(other) unless other.is_a?(Platform)
3486
+ if other.deployment_target && deployment_target
3487
+ (other.name == name) && (deployment_target >= other.deployment_target)
3488
+ else
3489
+ other.name == name
3490
+ end
3480
3491
  end
3481
3492
  end
3482
3493
 
3483
3494
  class Config
3484
3495
  attr_accessor :installation_root, :podfile, :lockfile
3496
+ alias_method :project_root, :installation_root
3485
3497
  def self.instance
3486
3498
  @instance ||= new
3487
3499
  end
3500
+ def podfile_path
3501
+ installation_root + 'Podfile'
3502
+ end
3488
3503
  def sandbox_root
3489
3504
  installation_root + 'Pods'
3490
3505
  end
@@ -3812,7 +3827,7 @@ module Pod
3812
3827
  end
3813
3828
 
3814
3829
  def to_s
3815
- specified_version = attributes_hash['version'] || ''
3830
+ specified_version = root.attributes_hash['version'] || ''
3816
3831
  if name && !specified_version.to_s.empty?
3817
3832
  "#{name} (#{specified_version})"
3818
3833
  elsif name
@@ -4186,6 +4201,15 @@ module Pod
4186
4201
  end
4187
4202
  end
4188
4203
  `;
4204
+ HOST_PROBES = /* @__PURE__ */ new Map([
4205
+ ["xcrun --sdk iphoneos --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
4206
+ `],
4207
+ ["xcrun --sdk iphonesimulator --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
4208
+ `],
4209
+ ["xcodebuild -version", `Xcode ${NATIVE_GRAPH_SDK_VERSION}
4210
+ `],
4211
+ ["/usr/sbin/sysctl -n hw.optional.arm64 2>&1", "1\n"]
4212
+ ]);
4189
4213
  }
4190
4214
  });
4191
4215
 
@@ -4243,6 +4267,7 @@ var init_kotlin_toolchain = __esm({
4243
4267
  "use strict";
4244
4268
  import_node_child_process4 = require("node:child_process");
4245
4269
  import_node_util4 = require("node:util");
4270
+ init_src();
4246
4271
  init_home_paths();
4247
4272
  init_is_record();
4248
4273
  run2 = (0, import_node_util4.promisify)(import_node_child_process4.execFile);
@@ -4701,7 +4726,7 @@ var init_react_native_core = __esm({
4701
4726
  init_swift_distribution();
4702
4727
  init_swift_package();
4703
4728
  init_swiftContract();
4704
- recipe = true ? "69b07e9fa50c2e82ce458ed542c4e01980e8abeab0261d9176395a3348963751" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
4729
+ recipe = true ? "ebfb6e514f6a2873b73852f067f1db2c2033490a337d8a2f95a46a922e095bf5" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
4705
4730
  }
4706
4731
  });
4707
4732
 
@@ -4844,6 +4869,14 @@ var init_swift_host = __esm({
4844
4869
  }
4845
4870
  });
4846
4871
 
4872
+ // src/cocoapods-trunk.ts
4873
+ var init_cocoapods_trunk = __esm({
4874
+ "src/cocoapods-trunk.ts"() {
4875
+ "use strict";
4876
+ init_home_paths();
4877
+ }
4878
+ });
4879
+
4847
4880
  // src/installed-native-libraries.ts
4848
4881
  var init_installed_native_libraries = __esm({
4849
4882
  "src/installed-native-libraries.ts"() {
@@ -4878,6 +4911,7 @@ var init_turbo_source = __esm({
4878
4911
  "use strict";
4879
4912
  import_node_child_process8 = require("node:child_process");
4880
4913
  import_node_util8 = require("node:util");
4914
+ init_cocoapods_trunk();
4881
4915
  init_home_paths();
4882
4916
  init_installed_native_libraries();
4883
4917
  init_answeredNativePackages();
@@ -7700,6 +7734,1359 @@ init_is_record();
7700
7734
  // src/app-config.ts
7701
7735
  init_public_brand();
7702
7736
 
7737
+ // ../peach-globals/src/profilerContract.ts
7738
+ var PROFILER_CATEGORIES = [
7739
+ "frames",
7740
+ "animations",
7741
+ "interactions",
7742
+ "network-logs",
7743
+ "react",
7744
+ "animation-values",
7745
+ "layout",
7746
+ "memory",
7747
+ "paint-detail"
7748
+ ];
7749
+ var DEFAULT_PROFILER_CATEGORIES = [
7750
+ "frames",
7751
+ "animations",
7752
+ "interactions",
7753
+ "network-logs"
7754
+ ];
7755
+ function formatProfilerCategories(categories) {
7756
+ return PROFILER_CATEGORIES.filter((c) => categories.includes(c)).join(",");
7757
+ }
7758
+ var PROFILER_WINDOW_MS = 5 * 6e4;
7759
+
7760
+ // src/runtimePlatformContract.ts
7761
+ var IOS_ADAPTER = Object.freeze({
7762
+ id: "ios",
7763
+ displayName: "iOS",
7764
+ isIOS: true,
7765
+ isAndroid: false,
7766
+ select: (registry) => registry.ios
7767
+ });
7768
+ var ANDROID_ADAPTER = Object.freeze({
7769
+ id: "android",
7770
+ displayName: "Android",
7771
+ isIOS: false,
7772
+ isAndroid: true,
7773
+ select: (registry) => registry.android
7774
+ });
7775
+ var RUNTIME_PLATFORM_ADAPTERS = Object.freeze({
7776
+ ios: IOS_ADAPTER,
7777
+ android: ANDROID_ADAPTER
7778
+ });
7779
+
7780
+ // src/device-catalog.ts
7781
+ function modernButtons(action, volumeUp, volumeDown, power) {
7782
+ return {
7783
+ width: 3,
7784
+ ringToggle: { side: "left", top: action[0], height: action[1] },
7785
+ volumeUp: { side: "left", top: volumeUp[0], height: volumeUp[1] },
7786
+ volumeDown: { side: "left", top: volumeDown[0], height: volumeDown[1] },
7787
+ lock: { side: "right", top: power[0], height: power[1] }
7788
+ };
7789
+ }
7790
+ var LEGACY_HARDWARE_BUTTONS = {
7791
+ width: 2.5,
7792
+ lock: { side: "right", top: 188.7, height: 68.1 },
7793
+ ringToggle: { side: "left", top: 113.2, height: 36 },
7794
+ volumeUp: { side: "left", top: 188.2, height: 68.1 },
7795
+ volumeDown: { side: "left", top: 269, height: 68.1 }
7796
+ };
7797
+ var PIXEL_HARDWARE_BUTTONS = {
7798
+ width: 3,
7799
+ // pixel 8 android studio art has right-edge opaque runs at y=671..833
7800
+ // (power) and y=971..1301 (the continuous volume rocker), at 2.625x.
7801
+ lock: { side: "right", top: 671 / 2.625, height: 163 / 2.625 },
7802
+ ringToggle: { side: "left", top: -1e3, height: 0 },
7803
+ volumeUp: { side: "right", top: 971 / 2.625, height: 165 / 2.625 },
7804
+ volumeDown: { side: "right", top: 1136 / 2.625, height: 166 / 2.625 }
7805
+ };
7806
+ var GALAXY_HARDWARE_BUTTONS = {
7807
+ width: 3,
7808
+ lock: { side: "right", top: 248, height: 72 },
7809
+ ringToggle: { side: "left", top: -1e3, height: 0 },
7810
+ volumeUp: { side: "right", top: 144, height: 62 },
7811
+ volumeDown: { side: "right", top: 216, height: 62 }
7812
+ };
7813
+ var ANDROID_GESTURE_NAV_BAR_HEIGHT = 24;
7814
+ var ANDROID_OS_VERSION = "17";
7815
+ var ANDROID_API_LEVEL = 37;
7816
+ var PIXEL_8_WIDTH = 1080 / 2.625;
7817
+ var PIXEL_8_HEIGHT = 2400 / 2.625;
7818
+ var GBOARD_PANEL_HEIGHTS = {
7819
+ qwerty: 883 / 2.625,
7820
+ pad: 883 / 2.625,
7821
+ emoji: 395
7822
+ };
7823
+ var PIXEL_8_STATUS_BAR_HEIGHT = 132 / 2.625;
7824
+ var PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT = Math.round(28 * 2.625) / 2.625;
7825
+ function uniformFrameInsets(value) {
7826
+ return { top: value, right: value, bottom: value, left: value };
7827
+ }
7828
+ function cornerRadii(value) {
7829
+ return { topLeft: value, topRight: value, bottomRight: value, bottomLeft: value };
7830
+ }
7831
+ var DYNAMIC_WINDOW_LIMITS = {
7832
+ minWidth: 375,
7833
+ minHeight: 486,
7834
+ maxWidth: 1032,
7835
+ maxHeight: 1376
7836
+ };
7837
+ function iosDevice(spec) {
7838
+ const profile = {
7839
+ // normal-scale dynamic split providers share this intrinsic height and
7840
+ // linked-sdk whole-point rounding. safe areas are independent.
7841
+ // source receipt: docs/ios/framework-oracle/status-bar-hit-region-and-scene-routing.md
7842
+ statusBarHeight: "statusBarHeight" in spec ? spec.statusBarHeight : Math.round(53.666666666666664),
7843
+ scale: 3,
7844
+ landscapeStatusBarHeight: 0,
7845
+ homeIndicatorHeight: 34,
7846
+ iosVersion: "27.0",
7847
+ dynamicIsland: null,
7848
+ keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
7849
+ ...spec
7850
+ };
7851
+ return {
7852
+ ...profile,
7853
+ platform: "ios",
7854
+ // the display's portrait reference and overlay allowance are independent of the window safe area.
7855
+ displayEdgeInfo: profile.displayEdgeInfo ?? (profile.model.startsWith("iphone-") && profile.model !== "iphone-se" && profile.model !== "iphone-duo" ? { portraitBottom: 34, homeAffordanceOverlayAllowance: 21 } : void 0),
7856
+ navigationBarHeight: 0,
7857
+ navigationBarMode: profile.homeIndicatorHeight > 0 ? "gesture" : "none",
7858
+ displayCutout: {
7859
+ top: profile.dynamicIsland ? profile.safeAreaInsets.top : 0,
7860
+ bottom: 0,
7861
+ left: 0,
7862
+ right: 0
7863
+ },
7864
+ cameraCutout: null,
7865
+ osVersion: profile.iosVersion,
7866
+ androidApiLevel: null,
7867
+ systemName: "iOS",
7868
+ manufacturer: "Apple",
7869
+ brand: "Apple",
7870
+ modelName: profile.name
7871
+ };
7872
+ }
7873
+ var profiles = {
7874
+ "canvas-workspace": /* @__PURE__ */ iosDevice({
7875
+ model: "canvas-workspace",
7876
+ name: "Canvas Workspace",
7877
+ width: 1440,
7878
+ height: 900,
7879
+ scale: 1,
7880
+ statusBarHeight: 0,
7881
+ homeIndicatorHeight: 0,
7882
+ cornerRadius: /* @__PURE__ */ cornerRadii(0),
7883
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
7884
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(16),
7885
+ safeAreaInsets: { top: 0, bottom: 0, left: 0, right: 0 },
7886
+ // no native device has this geometry; carries the iphone 16 keyboard
7887
+ // height so the experimental profile still shows a keyboard.
7888
+ physicalPPI: 110,
7889
+ hardwareButtons: /* @__PURE__ */ modernButtons(
7890
+ [185.8, 41.7],
7891
+ [258.2, 67.6],
7892
+ [344, 67.6],
7893
+ [281.5, 106.9]
7894
+ ),
7895
+ experimental: true
7896
+ }),
7897
+ "iphone-se": /* @__PURE__ */ iosDevice({
7898
+ model: "iphone-se",
7899
+ name: "iPhone SE",
7900
+ width: 375,
7901
+ height: 667,
7902
+ scale: 2,
7903
+ statusBarHeight: 20,
7904
+ homeIndicatorHeight: 0,
7905
+ cornerRadius: /* @__PURE__ */ cornerRadii(0),
7906
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
7907
+ // legacy home-button frame uses asymmetric LEGACY_*_BEZEL constants in the
7908
+ // shell (111pt forehead/chin, 29pt sides); uniform frameInsets are a sane
7909
+ // modern-path value and mirror the SE's ~28.7pt side bezel.
7910
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(28.7),
7911
+ safeAreaInsets: { top: 20, bottom: 0, left: 0, right: 0 },
7912
+ keyboardPanelHeights: { qwerty: 226, pad: 226, emoji: 320 },
7913
+ physicalPPI: 326,
7914
+ hardwareButtons: LEGACY_HARDWARE_BUTTONS
7915
+ }),
7916
+ "iphone-14": /* @__PURE__ */ iosDevice({
7917
+ model: "iphone-14",
7918
+ name: "iPhone 14",
7919
+ width: 390,
7920
+ height: 844,
7921
+ statusBarHeight: 47,
7922
+ cornerRadius: /* @__PURE__ */ cornerRadii(46.2),
7923
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(67.462),
7924
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(19.5),
7925
+ safeAreaInsets: { top: 47, bottom: 34, left: 0, right: 0 },
7926
+ physicalPPI: 460,
7927
+ hardwareButtons: /* @__PURE__ */ modernButtons(
7928
+ [141.7, 29.7],
7929
+ [205.9, 69.6],
7930
+ [289.5, 69.6],
7931
+ [228.9, 114.5]
7932
+ )
7933
+ }),
7934
+ "iphone-15": /* @__PURE__ */ iosDevice({
7935
+ model: "iphone-15",
7936
+ name: "iPhone 15",
7937
+ width: 393,
7938
+ height: 852,
7939
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
7940
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
7941
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(18.2),
7942
+ dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
7943
+ statusRowCenter: 32.75,
7944
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
7945
+ physicalPPI: 460,
7946
+ hardwareButtons: /* @__PURE__ */ modernButtons(
7947
+ [171.7, 32],
7948
+ [235.8, 65.3],
7949
+ [320.5, 65.3],
7950
+ [280.6, 105.2]
7951
+ )
7952
+ }),
7953
+ "iphone-15-plus": /* @__PURE__ */ iosDevice({
7954
+ model: "iphone-15-plus",
7955
+ name: "iPhone 15 Plus",
7956
+ width: 430,
7957
+ height: 932,
7958
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
7959
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
7960
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(17.3),
7961
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
7962
+ statusRowCenter: 30.05,
7963
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
7964
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
7965
+ physicalPPI: 460,
7966
+ hardwareButtons: /* @__PURE__ */ modernButtons(
7967
+ [172.1, 33],
7968
+ [236.1, 66.6],
7969
+ [321.2, 66.6],
7970
+ [281, 106.8]
7971
+ )
7972
+ }),
7973
+ "iphone-15-pro": /* @__PURE__ */ iosDevice({
7974
+ model: "iphone-15-pro",
7975
+ name: "iPhone 15 Pro",
7976
+ width: 393,
7977
+ height: 852,
7978
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
7979
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
7980
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
7981
+ dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
7982
+ statusRowCenter: 32.4,
7983
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
7984
+ physicalPPI: 460,
7985
+ hardwareButtons: /* @__PURE__ */ modernButtons(
7986
+ [159.1, 31.5],
7987
+ [220.1, 61.9],
7988
+ [299, 61.9],
7989
+ [260.8, 98.9]
7990
+ )
7991
+ }),
7992
+ "iphone-15-pro-max": /* @__PURE__ */ iosDevice({
7993
+ model: "iphone-15-pro-max",
7994
+ name: "iPhone 15 Pro Max",
7995
+ width: 430,
7996
+ height: 932,
7997
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
7998
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
7999
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8000
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
8001
+ statusRowCenter: 32.3,
8002
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
8003
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8004
+ physicalPPI: 460,
8005
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8006
+ [173.3, 32.2],
8007
+ [253.4, 61.7],
8008
+ [343.3, 61.7],
8009
+ [268.5, 98.5]
8010
+ )
8011
+ }),
8012
+ "iphone-16": /* @__PURE__ */ iosDevice({
8013
+ model: "iphone-16",
8014
+ name: "iPhone 16",
8015
+ width: 393,
8016
+ height: 852,
8017
+ // 2026-07-10: cornerRadius corrected 58 → 53.9 to Apple's own framebuffer
8018
+ // mask (extracted from the simdevicetype bundle PDF; see
8019
+ // packages/peach-engine/assets/device-frame-geometry). radius is a paint clip only — the
8020
+ // calibrated conformance-oracle layout fields below are unchanged.
8021
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
8022
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
8023
+ // uikit's concentric-corner getter on the ios 27 iphone 16 returns 55.
8024
+ systemCornerRadius: /* @__PURE__ */ cornerRadii(55),
8025
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8026
+ dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
8027
+ statusRowCenter: 29.65,
8028
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
8029
+ keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
8030
+ physicalPPI: 460,
8031
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8032
+ [159.1, 31.5],
8033
+ [220.1, 61.9],
8034
+ [299, 61.9],
8035
+ [260.8, 98.9]
8036
+ )
8037
+ }),
8038
+ "iphone-16-plus": /* @__PURE__ */ iosDevice({
8039
+ model: "iphone-16-plus",
8040
+ name: "iPhone 16 Plus",
8041
+ width: 430,
8042
+ height: 932,
8043
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
8044
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
8045
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8046
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
8047
+ statusRowCenter: 30.05,
8048
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
8049
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8050
+ physicalPPI: 460,
8051
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8052
+ [173.3, 32.2],
8053
+ [253.4, 61.7],
8054
+ [343.3, 61.7],
8055
+ [268.5, 98.5]
8056
+ )
8057
+ }),
8058
+ "iphone-16-pro": /* @__PURE__ */ iosDevice({
8059
+ model: "iphone-16-pro",
8060
+ name: "iPhone 16 Pro",
8061
+ width: 402,
8062
+ height: 874,
8063
+ cornerRadius: /* @__PURE__ */ cornerRadii(61),
8064
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
8065
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8066
+ dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
8067
+ statusRowCenter: 32.5,
8068
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8069
+ physicalPPI: 460,
8070
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8071
+ [159.1, 31.5],
8072
+ [220.1, 61.9],
8073
+ [299, 61.9],
8074
+ [260.8, 98.9]
8075
+ )
8076
+ }),
8077
+ "iphone-16-pro-max": /* @__PURE__ */ iosDevice({
8078
+ model: "iphone-16-pro-max",
8079
+ name: "iPhone 16 Pro Max",
8080
+ width: 440,
8081
+ height: 956,
8082
+ cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
8083
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
8084
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
8085
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
8086
+ statusRowCenter: 33,
8087
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8088
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8089
+ physicalPPI: 460,
8090
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8091
+ [178.8, 32.2],
8092
+ [266.8, 61.8],
8093
+ [352.7, 61.8],
8094
+ [292.2, 98.3]
8095
+ )
8096
+ }),
8097
+ "iphone-17": /* @__PURE__ */ iosDevice({
8098
+ model: "iphone-17",
8099
+ name: "iPhone 17",
8100
+ width: 402,
8101
+ height: 874,
8102
+ cornerRadius: /* @__PURE__ */ cornerRadii(61),
8103
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
8104
+ // display border 1.44mm plus the visible flat housing rail.
8105
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8106
+ dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
8107
+ statusRowCenter: 32.65,
8108
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8109
+ physicalPPI: 460,
8110
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8111
+ [159.1, 31.5],
8112
+ [220.1, 61.9],
8113
+ [299, 61.9],
8114
+ [260.8, 98.9]
8115
+ )
8116
+ }),
8117
+ "iphone-17-air": /* @__PURE__ */ iosDevice({
8118
+ model: "iphone-17-air",
8119
+ // apple markets this as "iphone air" (not "iphone 17 air"). the real air
8120
+ // is 420x912 with thin bezels and a lower-sitting island. it is not the
8121
+ // 430x932 Plus body it used to be cloned from.
8122
+ name: "iPhone Air",
8123
+ width: 420,
8124
+ height: 912,
8125
+ cornerRadius: /* @__PURE__ */ cornerRadii(64.6),
8126
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(88.313),
8127
+ // WHICH QUANTITY THIS IS, because it has been flipped twice and each pass
8128
+ // read the other one as a bug: frameInsets is the VISIBLE FACE-ON frame —
8129
+ // the black display border plus however much housing rail you actually see
8130
+ // looking straight at the phone. It is NOT the caliper silhouette.
8131
+ //
8132
+ // Apple publishes a 74.7×156.2mm body around a 1260×2736 display at 460ppi,
8133
+ // which is 15.475pt per side to the silhouette; that is the number to use if
8134
+ // you ever need physical dimensions, and it is what commit 4966fe6cac put
8135
+ // here. But most of that width on the Air is curved titanium turning away
8136
+ // from a head-on view, so rendering it as frame draws the Air with the
8137
+ // THICKEST bezel of any iPhone we ship when the real Air has the thinnest.
8138
+ //
8139
+ // So: 1.435mm display border = 8.69pt, plus ~2pt of rail that is actually
8140
+ // face-on. The 17 Pro's flat rail contributes ~6.6pt on the same basis,
8141
+ // which is why it sits at 15.3 and the Air should not.
8142
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(10.7),
8143
+ dynamicIsland: { width: 125, height: 110 / 3, top: 20 },
8144
+ statusRowCenter: 39,
8145
+ safeAreaInsets: { top: 68, bottom: 34, left: 0, right: 0 },
8146
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8147
+ physicalPPI: 460,
8148
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8149
+ [178.8, 32.2],
8150
+ [266.8, 61.8],
8151
+ [352.7, 61.8],
8152
+ [292.2, 98.3]
8153
+ )
8154
+ }),
8155
+ "iphone-17-pro": /* @__PURE__ */ iosDevice({
8156
+ model: "iphone-17-pro",
8157
+ name: "iPhone 17 Pro",
8158
+ width: 402,
8159
+ height: 874,
8160
+ cornerRadius: /* @__PURE__ */ cornerRadii(61),
8161
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
8162
+ // the ios 27 simulator's ContainerRelativeShape at the root draws 62
8163
+ // less its smallest inset from the display (54 at 8pt, 32 at 30pt).
8164
+ systemCornerRadius: /* @__PURE__ */ cornerRadii(62),
8165
+ // display border 1.44mm plus the visible flat housing rail.
8166
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8167
+ dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
8168
+ statusRowCenter: 33,
8169
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8170
+ // keyboardDidShow on the ios 27.0 simulator: 301 for the default keyboard,
8171
+ // 302 for the number pad.
8172
+ keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
8173
+ physicalPPI: 460,
8174
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8175
+ [159.1, 31.5],
8176
+ [220.1, 61.9],
8177
+ [299, 61.9],
8178
+ [260.8, 98.9]
8179
+ )
8180
+ }),
8181
+ "iphone-17-pro-max": /* @__PURE__ */ iosDevice({
8182
+ model: "iphone-17-pro-max",
8183
+ name: "iPhone 17 Pro Max",
8184
+ width: 440,
8185
+ height: 956,
8186
+ // same ios 26.4 440x956 dynamic island max profile as the measured
8187
+ // iphone 16 pro max screens proof oracle.
8188
+ cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
8189
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
8190
+ // display border 1.36mm plus the visible flat housing rail.
8191
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
8192
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
8193
+ statusRowCenter: 33,
8194
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8195
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8196
+ physicalPPI: 460,
8197
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8198
+ [178.8, 32.2],
8199
+ [266.8, 61.8],
8200
+ [352.7, 61.8],
8201
+ [292.2, 98.3]
8202
+ )
8203
+ }),
8204
+ "iphone-duo": {
8205
+ // offered on contributor surfaces only while the 27 home and the hinge
8206
+ // measurements are still settling (nate, 2026-09-15).
8207
+ developmentOnly: true,
8208
+ .../* @__PURE__ */ iosDevice({
8209
+ model: "iphone-duo",
8210
+ name: "iPhone Duo",
8211
+ width: 466,
8212
+ height: 678,
8213
+ statusBarHeight: 66,
8214
+ // the ios 27.1 duo simulator draws the gesture home indicator in both
8215
+ // postures: a 167pt x 5pt pill 8pt above the display bottom on the
8216
+ // cover, sized by the same rule as the other iphones (HomeIndicator).
8217
+ // hinge on the left. the hinge-side display corners measure 5pt in
8218
+ // apple's 2d outer product art; the free side keeps the 61pt pro curve.
8219
+ cornerRadius: { topLeft: 5, topRight: 61, bottomRight: 61, bottomLeft: 5 },
8220
+ continuousCornerRadius: {
8221
+ topLeft: 5,
8222
+ topRight: 61,
8223
+ bottomRight: 61,
8224
+ bottomLeft: 5
8225
+ },
8226
+ // the ios 27.1 duo simulator reports 59, and sheets 8pt in on the free
8227
+ // side carry 51 there (41 at 18pt in).
8228
+ systemCornerRadius: { topLeft: 5, topRight: 59, bottomRight: 59, bottomLeft: 5 },
8229
+ // display edge to silhouette, measured off apple's 2d outer product art
8230
+ // at 3x. the barrel is not part of the body: it protrudes 11.67pt past
8231
+ // the left silhouette, so the full outer width is frame + protrusion.
8232
+ frameInsets: { top: 16.3333, right: 16.3333, bottom: 16, left: 14 },
8233
+ // the spine is a flat cut, so its corners are tiny; the free side keeps
8234
+ // the 75pt body curve the pro bodies use.
8235
+ frameCornerRadius: {
8236
+ topLeft: 4.3333,
8237
+ topRight: 75,
8238
+ bottomRight: 75,
8239
+ bottomLeft: 3.3333
8240
+ },
8241
+ housing: {
8242
+ rail: { top: 7.5, right: 8, bottom: 7.3333, left: 5.3333 },
8243
+ hingeBarrel: { width: 16.6667, endInset: 7.3333, protrusion: 11.6667 }
8244
+ },
8245
+ // 84pt trailing Vertical Bar on the outer display (Apple iOS 27 UI kit).
8246
+ safeAreaInsets: { top: 0, bottom: 34, left: 0, right: 84 },
8247
+ iosVersion: "27.1",
8248
+ // ios 27.1 24a94425: ordinary qwerty host (0,413,466,265)pt;
8249
+ // docs/ios/framework-oracle/keyboard-tray-accessibility-and-duo-recipes.md.
8250
+ // the cover keyboard cells report number pad 269; emoji keeps 338.
8251
+ keyboardPanelHeights: { qwerty: 265, pad: 269, emoji: 338 },
8252
+ physicalPPI: 460,
8253
+ // official model extraction for button positions is outside this slice.
8254
+ hardwareButtons: /* @__PURE__ */ modernButtons([0, 0], [0, 0], [0, 0], [0, 0]),
8255
+ posture: "closed",
8256
+ supportedPostures: ["closed", "open"]
8257
+ }),
8258
+ // the ios 27.1 simulator's camera occlusion region: 37pt, 29 1/3 in from
8259
+ // the top and trailing edges
8260
+ cameraCutout: {
8261
+ diameter: 37,
8262
+ top: 88 / 3,
8263
+ trailing: 88 / 3
8264
+ },
8265
+ // closed portrait popover region on the ios 27.1 duo simulator (uikit
8266
+ // sheet probe, popoverLayoutMargins zero): left 8, the other edges 25.
8267
+ // the open and rotated profiles are unmeasured and drop it.
8268
+ popoverRegionInsets: { left: 8, top: 25, right: 25, bottom: 25 }
8269
+ },
8270
+ "ipad-pro-11": {
8271
+ // frame and hardware buttons are not sourced yet, so this stays off the
8272
+ // shipping picker the same way the duo does.
8273
+ developmentOnly: true,
8274
+ .../* @__PURE__ */ ipadProDevice(
8275
+ "ipad-pro-11",
8276
+ "iPad Pro 11-inch (M5)",
8277
+ 834,
8278
+ 1210,
8279
+ 11,
8280
+ 340
8281
+ )
8282
+ },
8283
+ "ipad-pro-13": /* @__PURE__ */ ipadProDevice(
8284
+ "ipad-pro-13",
8285
+ "iPad Pro 13-inch (M5)",
8286
+ 1032,
8287
+ 1376,
8288
+ 13,
8289
+ 403
8290
+ ),
8291
+ // an iPadOS app window the user resizes, on the iPad Pro 13-inch (M5). the
8292
+ // profile is the launch window; the host sizes it with withWindowSize.
8293
+ // numbers are the iOS 27.0 Stage Manager window in
8294
+ // docs/ios/ipad-window-geometry.md.
8295
+ dynamic: {
8296
+ .../* @__PURE__ */ ipadProDevice("dynamic", "Dynamic Window", 375, 753, 13, 403),
8297
+ // the window starts below the screen's status strip and no home indicator
8298
+ // is drawn in it, so neither insets the window.
8299
+ statusBarHeight: 0,
8300
+ landscapeStatusBarHeight: 0,
8301
+ homeIndicatorHeight: 0,
8302
+ navigationBarMode: "none",
8303
+ // the system clips the window to a 32pt circular arc.
8304
+ cornerRadius: /* @__PURE__ */ cornerRadii(32),
8305
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(32),
8306
+ // the display's diagonal, not the window's.
8307
+ physicalPPI: Math.hypot(2064, 2752) / 13,
8308
+ safeAreaInsets: { top: 0, bottom: 0, left: 10, right: 10 },
8309
+ packagedOnly: true
8310
+ },
8311
+ "pixel-8": {
8312
+ model: "pixel-8",
8313
+ platform: "android",
8314
+ name: "Pixel 8",
8315
+ width: PIXEL_8_WIDTH,
8316
+ height: PIXEL_8_HEIGHT,
8317
+ scale: 2.625,
8318
+ statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
8319
+ landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
8320
+ homeIndicatorHeight: 0,
8321
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8322
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8323
+ navigationBarMode: "gesture",
8324
+ displayCutout: {
8325
+ top: PIXEL_8_STATUS_BAR_HEIGHT,
8326
+ bottom: 0,
8327
+ left: 0,
8328
+ right: 0
8329
+ },
8330
+ cornerRadius: /* @__PURE__ */ cornerRadii(39),
8331
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
8332
+ // android studio's pixel 8 device art places the 1080x2400 display at
8333
+ // (49,55) in a 1187x2513 body. the right side button occupies the final
8334
+ // 8 physical pixels, so the body insets are 49/50/58/55 at 2.625x.
8335
+ frameInsets: {
8336
+ top: 55 / 2.625,
8337
+ right: 50 / 2.625,
8338
+ bottom: 58 / 2.625,
8339
+ left: 49 / 2.625
8340
+ },
8341
+ dynamicIsland: null,
8342
+ cameraCutout: { diameter: 72.5 / 2.625 },
8343
+ safeAreaInsets: {
8344
+ top: PIXEL_8_STATUS_BAR_HEIGHT,
8345
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8346
+ left: 0,
8347
+ right: 0
8348
+ },
8349
+ osVersion: ANDROID_OS_VERSION,
8350
+ iosVersion: "",
8351
+ androidApiLevel: ANDROID_API_LEVEL,
8352
+ systemName: "Android",
8353
+ manufacturer: "Google",
8354
+ brand: "google",
8355
+ modelName: "Pixel 8",
8356
+ physicalPPI: 428,
8357
+ hardwareButtons: PIXEL_HARDWARE_BUTTONS
8358
+ },
8359
+ "pixel-8-three-button": {
8360
+ model: "pixel-8-three-button",
8361
+ platform: "android",
8362
+ name: "Pixel 8 (3-button)",
8363
+ width: PIXEL_8_WIDTH,
8364
+ height: PIXEL_8_HEIGHT,
8365
+ scale: 2.625,
8366
+ statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
8367
+ landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
8368
+ homeIndicatorHeight: 0,
8369
+ navigationBarHeight: 48,
8370
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8371
+ navigationBarMode: "three-button",
8372
+ displayCutout: {
8373
+ top: PIXEL_8_STATUS_BAR_HEIGHT,
8374
+ bottom: 0,
8375
+ left: 0,
8376
+ right: 0
8377
+ },
8378
+ cornerRadius: /* @__PURE__ */ cornerRadii(39),
8379
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
8380
+ frameInsets: {
8381
+ top: 55 / 2.625,
8382
+ right: 50 / 2.625,
8383
+ bottom: 58 / 2.625,
8384
+ left: 49 / 2.625
8385
+ },
8386
+ dynamicIsland: null,
8387
+ cameraCutout: { diameter: 72.5 / 2.625 },
8388
+ safeAreaInsets: {
8389
+ top: PIXEL_8_STATUS_BAR_HEIGHT,
8390
+ bottom: 48,
8391
+ left: 0,
8392
+ right: 0
8393
+ },
8394
+ osVersion: ANDROID_OS_VERSION,
8395
+ iosVersion: "",
8396
+ androidApiLevel: ANDROID_API_LEVEL,
8397
+ systemName: "Android",
8398
+ manufacturer: "Google",
8399
+ brand: "google",
8400
+ modelName: "Pixel 8",
8401
+ physicalPPI: 428,
8402
+ hardwareButtons: PIXEL_HARDWARE_BUTTONS
8403
+ },
8404
+ "pixel-9-pro-xl": {
8405
+ model: "pixel-9-pro-xl",
8406
+ platform: "android",
8407
+ name: "Pixel 9 Pro XL",
8408
+ width: 448,
8409
+ height: 997,
8410
+ scale: 3,
8411
+ statusBarHeight: 40,
8412
+ landscapeStatusBarHeight: 40,
8413
+ homeIndicatorHeight: 0,
8414
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8415
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8416
+ navigationBarMode: "gesture",
8417
+ displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
8418
+ cornerRadius: /* @__PURE__ */ cornerRadii(41),
8419
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(41),
8420
+ // Pixel 9 Pro XL body 162.8×76.6mm over a 70.2mm panel → ~1.8mm ≈ 12pt.
8421
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(12),
8422
+ dynamicIsland: null,
8423
+ cameraCutout: { diameter: 24 },
8424
+ safeAreaInsets: {
8425
+ top: 40,
8426
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8427
+ left: 0,
8428
+ right: 0
8429
+ },
8430
+ osVersion: ANDROID_OS_VERSION,
8431
+ iosVersion: "",
8432
+ androidApiLevel: ANDROID_API_LEVEL,
8433
+ systemName: "Android",
8434
+ manufacturer: "Google",
8435
+ brand: "google",
8436
+ modelName: "Pixel 9 Pro XL",
8437
+ physicalPPI: 486,
8438
+ hardwareButtons: PIXEL_HARDWARE_BUTTONS
8439
+ },
8440
+ "pixel-10": {
8441
+ model: "pixel-10",
8442
+ platform: "android",
8443
+ name: "Pixel 10",
8444
+ width: 360,
8445
+ height: 808,
8446
+ scale: 3,
8447
+ statusBarHeight: 40,
8448
+ landscapeStatusBarHeight: 40,
8449
+ homeIndicatorHeight: 0,
8450
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8451
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8452
+ navigationBarMode: "gesture",
8453
+ displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
8454
+ cornerRadius: /* @__PURE__ */ cornerRadii(40),
8455
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(40),
8456
+ // the 72mm body surrounds a roughly 65.1mm-wide 6.3-inch panel, which
8457
+ // resolves to about 18 logical points of frame around the 1080px display.
8458
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(18),
8459
+ dynamicIsland: null,
8460
+ cameraCutout: { diameter: 26 },
8461
+ safeAreaInsets: {
8462
+ top: 40,
8463
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8464
+ left: 0,
8465
+ right: 0
8466
+ },
8467
+ osVersion: ANDROID_OS_VERSION,
8468
+ iosVersion: "",
8469
+ androidApiLevel: ANDROID_API_LEVEL,
8470
+ systemName: "Android",
8471
+ manufacturer: "Google",
8472
+ brand: "google",
8473
+ modelName: "Pixel 10",
8474
+ physicalPPI: 422,
8475
+ hardwareButtons: PIXEL_HARDWARE_BUTTONS
8476
+ },
8477
+ "galaxy-s24": {
8478
+ model: "galaxy-s24",
8479
+ platform: "android",
8480
+ name: "Galaxy S24",
8481
+ width: 360,
8482
+ height: 780,
8483
+ scale: 3,
8484
+ statusBarHeight: 36,
8485
+ landscapeStatusBarHeight: 36,
8486
+ homeIndicatorHeight: 0,
8487
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8488
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8489
+ navigationBarMode: "gesture",
8490
+ displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
8491
+ cornerRadius: /* @__PURE__ */ cornerRadii(36),
8492
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(36),
8493
+ // Galaxy S24 body 147.0×70.6mm over a 65.9mm panel → ~1.2mm ≈ 8pt (Samsung
8494
+ // flat-display bezels are noticeably thinner than Pixel's).
8495
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(8),
8496
+ dynamicIsland: null,
8497
+ cameraCutout: { diameter: 18 },
8498
+ safeAreaInsets: {
8499
+ top: 36,
8500
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8501
+ left: 0,
8502
+ right: 0
8503
+ },
8504
+ osVersion: ANDROID_OS_VERSION,
8505
+ iosVersion: "",
8506
+ androidApiLevel: ANDROID_API_LEVEL,
8507
+ systemName: "Android",
8508
+ manufacturer: "Samsung",
8509
+ brand: "samsung",
8510
+ modelName: "SM-S921B",
8511
+ physicalPPI: 416,
8512
+ hardwareButtons: GALAXY_HARDWARE_BUTTONS
8513
+ },
8514
+ "galaxy-s24-ultra": {
8515
+ model: "galaxy-s24-ultra",
8516
+ platform: "android",
8517
+ name: "Galaxy S24 Ultra",
8518
+ width: 384,
8519
+ // samsung publishes a 1440x3120 panel; 3.75x resolves to 384x832.
8520
+ height: 832,
8521
+ scale: 3.75,
8522
+ statusBarHeight: 36,
8523
+ landscapeStatusBarHeight: 36,
8524
+ homeIndicatorHeight: 0,
8525
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8526
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8527
+ navigationBarMode: "gesture",
8528
+ displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
8529
+ cornerRadius: /* @__PURE__ */ cornerRadii(24),
8530
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(24),
8531
+ // Galaxy S24 Ultra body 162.3×79.0mm over a 72.4mm panel → ~1.5mm ≈ 9pt.
8532
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(9),
8533
+ dynamicIsland: null,
8534
+ cameraCutout: { diameter: 18 },
8535
+ safeAreaInsets: {
8536
+ top: 36,
8537
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8538
+ left: 0,
8539
+ right: 0
8540
+ },
8541
+ osVersion: ANDROID_OS_VERSION,
8542
+ iosVersion: "",
8543
+ androidApiLevel: ANDROID_API_LEVEL,
8544
+ systemName: "Android",
8545
+ manufacturer: "Samsung",
8546
+ brand: "samsung",
8547
+ modelName: "SM-S928B",
8548
+ physicalPPI: 505,
8549
+ hardwareButtons: GALAXY_HARDWARE_BUTTONS
8550
+ }
8551
+ };
8552
+ var devices = profiles;
8553
+ var DEFAULT_DEVICE = "iphone-17-pro";
8554
+ function isDeviceModel(value) {
8555
+ return Object.hasOwn(devices, value);
8556
+ }
8557
+ function listDeviceModels() {
8558
+ return Object.keys(devices).filter(isDeviceModel);
8559
+ }
8560
+ function ipadProDevice(model, name2, width, height, diagonalInches, keyboardHeight) {
8561
+ return iosDevice({
8562
+ model,
8563
+ name: name2,
8564
+ // iPad Pro 11-inch (M5) 12GB, iOS 27.0, simulator DBD4B183, UIKit probe
8565
+ // scenario `metrics`. portrait UIScreen.bounds 834×1210, scale 2,
8566
+ // nativeBounds 1668×2420. the window matched the screen.
8567
+ width,
8568
+ height,
8569
+ scale: 2,
8570
+ // portrait statusBarFrame was 834×32 at the top, and safeAreaInsets.top
8571
+ // was 32. landscape statusBarFrame stayed 32 tall while safeAreaInsets.top
8572
+ // was 10; this field is the portrait bar.
8573
+ statusBarHeight: 32,
8574
+ landscapeStatusBarHeight: 32,
8575
+ // portrait and landscape safeAreaInsets.bottom were both 20. the probe
8576
+ // has no separate home-indicator height.
8577
+ homeIndicatorHeight: 20,
8578
+ // UIScreen _displayCornerRadius, both orientations. the framebuffer
8579
+ // mask's tangent extent was not measured separately.
8580
+ cornerRadius: cornerRadii(30),
8581
+ continuousCornerRadius: cornerRadii(30),
8582
+ // housing is unsourced. the frame is the display until it is measured.
8583
+ frameInsets: uniformFrameInsets(0),
8584
+ // portrait safeAreaInsets. landscape was top 10, left 0, bottom 20, right 0.
8585
+ safeAreaInsets: { top: 32, bottom: 20, left: 0, right: 0 },
8586
+ // portrait docked keyboard frame height, UIKeyboardFrameEndUserInfoKey
8587
+ // {0, 870, 834, 340} on the 11-inch, 403 on the 13-inch. the emoji panel
8588
+ // takes the letters height on the 11-inch and 2.5pt more on the 13-inch
8589
+ // (405.5, native iOS 27 simulators).
8590
+ keyboardPanelHeights: {
8591
+ qwerty: keyboardHeight,
8592
+ pad: keyboardHeight,
8593
+ emoji: keyboardHeight + (model === "ipad-pro-11" ? 0 : 2.5)
8594
+ },
8595
+ // hypot(1668, 2420) / 11, measured native pixels over the device type's
8596
+ // 11-inch name. not a separate density read.
8597
+ physicalPPI: Math.hypot(width * 2, height * 2) / diagonalInches,
8598
+ hardwareButtons: modernButtons([0, 0], [0, 0], [0, 0], [0, 0])
8599
+ });
8600
+ }
8601
+
8602
+ // src/menuContract.ts
8603
+ var SOOTSIM_AMBIENT_GLOW_LEVELS = ["off", "soft", "full"];
8604
+ var SOOTSIM_STAGE_BACKGROUNDS = ["system", "light", "dark", "gray"];
8605
+ var SOOTSIM_RENDER_RESOLUTION_LEVELS = ["high", "medium", "low"];
8606
+
8607
+ // src/reactNativeConfigurationContract.ts
8608
+ var DEFAULT_REACT_NATIVE_CONFIGURATION = {
8609
+ // the appearance setting itself (automatic, light or dark); the resolved
8610
+ // scheme reaches workers through Appearance
8611
+ colorScheme: "auto",
8612
+ language: "en",
8613
+ preferredLanguages: Array(),
8614
+ region: "US",
8615
+ fontSize: 1,
8616
+ boldText: false,
8617
+ reduceMotion: false,
8618
+ largerAccessibilitySizes: false,
8619
+ glassTintAmount: 0.5,
8620
+ reduceTransparency: false,
8621
+ increaseContrast: false,
8622
+ showBorders: false,
8623
+ onOffLabels: false,
8624
+ differentiateWithoutColor: false,
8625
+ smartInvert: false,
8626
+ preferCrossFadeTransitions: false
8627
+ };
8628
+ var REACT_NATIVE_CONFIGURATION_KEYS = Object.keys(
8629
+ DEFAULT_REACT_NATIVE_CONFIGURATION
8630
+ ).filter(
8631
+ (key) => key in DEFAULT_REACT_NATIVE_CONFIGURATION
8632
+ );
8633
+
8634
+ // src/screenshots/preset-names.ts
8635
+ var SCREENSHOT_CANVAS_NAMES = [
8636
+ "iphone-6-9",
8637
+ "iphone-6-1",
8638
+ "ipad-pro-13",
8639
+ "android-phone",
8640
+ "android-tablet-7",
8641
+ "android-tablet-10"
8642
+ ];
8643
+ var BACKGROUND_PRESET_NAMES = ["dark", "cyan", "gold", "red"];
8644
+ var TEXT_PRESET_NAMES = [
8645
+ "bold-top",
8646
+ "editorial-left",
8647
+ "minimal-bottom",
8648
+ "none"
8649
+ ];
8650
+ var POSE_PRESET_NAMES = [
8651
+ "straight",
8652
+ "tilted-left",
8653
+ "tilted-right",
8654
+ "cut-bottom",
8655
+ "cut-top"
8656
+ ];
8657
+
8658
+ // src/settingsContract.ts
8659
+ var SIMULATED_DEVICE_SETTING_KEYS = [
8660
+ "predictiveText",
8661
+ "colorScheme",
8662
+ "reduceMotion",
8663
+ "boldText",
8664
+ "fontSize",
8665
+ "largerAccessibilitySizes",
8666
+ "glassTintAmount",
8667
+ "reduceTransparency",
8668
+ "increaseContrast",
8669
+ "showBorders",
8670
+ "onOffLabels",
8671
+ "differentiateWithoutColor",
8672
+ "smartInvert",
8673
+ "preferCrossFadeTransitions"
8674
+ ];
8675
+ var settingsSchema = {
8676
+ // device
8677
+ deviceModel: {
8678
+ type: "enum",
8679
+ default: DEFAULT_DEVICE,
8680
+ description: "device model to simulate",
8681
+ options: listDeviceModels(),
8682
+ group: "device"
8683
+ },
8684
+ posture: {
8685
+ type: "enum",
8686
+ default: "closed",
8687
+ description: "display posture for foldables: the display the hinge lights. book and laptop light the open display and tent the closed one; peach device posture names the hinge rest",
8688
+ options: ["closed", "open"],
8689
+ group: "device"
8690
+ },
8691
+ orientation: {
8692
+ type: "enum",
8693
+ default: "portrait",
8694
+ description: "screen orientation",
8695
+ options: ["portrait", "landscape"],
8696
+ group: "device"
8697
+ },
8698
+ landscapeSide: {
8699
+ type: "enum",
8700
+ default: "left",
8701
+ description: "which landscape the device turns to: left (clockwise) or right",
8702
+ options: ["left", "right"],
8703
+ group: "device"
8704
+ },
8705
+ // an iPadOS window launches at 375 x 753 (docs/ios/ipad-window-geometry.md)
8706
+ dynamicWidth: {
8707
+ type: "number",
8708
+ default: devices.dynamic.width,
8709
+ description: "dynamic window width in points",
8710
+ group: "device",
8711
+ validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minWidth && value <= DYNAMIC_WINDOW_LIMITS.maxWidth
8712
+ },
8713
+ dynamicHeight: {
8714
+ type: "number",
8715
+ default: devices.dynamic.height,
8716
+ description: "dynamic window height in points",
8717
+ group: "device",
8718
+ validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minHeight && value <= DYNAMIC_WINDOW_LIMITS.maxHeight
8719
+ },
8720
+ osVersionOverride: {
8721
+ type: "string",
8722
+ default: "",
8723
+ description: "os version the device reports instead of its profile's (empty = the profile's version); set per launch with ?osVersion=, never saved",
8724
+ group: "device"
8725
+ },
8726
+ predictiveText: {
8727
+ type: "boolean",
8728
+ default: true,
8729
+ description: "keyboard predictive text (off hides the QuickType lane)",
8730
+ group: "device"
8731
+ },
8732
+ hardwareKeyboard: {
8733
+ type: "boolean",
8734
+ default: false,
8735
+ description: "connect the host keyboard: typing needs no on-screen keyboard",
8736
+ group: "device"
8737
+ },
8738
+ // appearance
8739
+ colorScheme: {
8740
+ type: "enum",
8741
+ default: "auto",
8742
+ description: "color scheme (auto follows system preference)",
8743
+ options: ["light", "dark", "auto"],
8744
+ group: "appearance"
8745
+ },
8746
+ reduceMotion: {
8747
+ type: "boolean",
8748
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceMotion,
8749
+ description: "reduce motion",
8750
+ group: "appearance"
8751
+ },
8752
+ boldText: {
8753
+ type: "boolean",
8754
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.boldText,
8755
+ description: "bold text",
8756
+ group: "appearance"
8757
+ },
8758
+ fontSize: {
8759
+ type: "number",
8760
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.fontSize,
8761
+ description: "font size multiplier (1.0 = default)",
8762
+ group: "appearance",
8763
+ // android permits continuous font scales; ios settings and capture urls
8764
+ // constrain their own inputs to the discrete dynamic type ramp.
8765
+ validate: (value) => value >= 0.5 && value <= 4
8766
+ },
8767
+ largerAccessibilitySizes: {
8768
+ type: "boolean",
8769
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.largerAccessibilitySizes,
8770
+ description: "show accessibility categories in the dynamic type size picker",
8771
+ group: "appearance"
8772
+ },
8773
+ reduceTransparency: {
8774
+ type: "boolean",
8775
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceTransparency,
8776
+ description: "reduce transparency",
8777
+ group: "appearance"
8778
+ },
8779
+ increaseContrast: {
8780
+ type: "boolean",
8781
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.increaseContrast,
8782
+ description: "increase contrast",
8783
+ group: "appearance"
8784
+ },
8785
+ showBorders: {
8786
+ type: "boolean",
8787
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.showBorders,
8788
+ description: "show borders on text buttons",
8789
+ group: "appearance"
8790
+ },
8791
+ onOffLabels: {
8792
+ type: "boolean",
8793
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.onOffLabels,
8794
+ description: "on/off labels inside switches",
8795
+ group: "appearance"
8796
+ },
8797
+ differentiateWithoutColor: {
8798
+ type: "boolean",
8799
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.differentiateWithoutColor,
8800
+ description: "differentiate without color",
8801
+ group: "appearance"
8802
+ },
8803
+ smartInvert: {
8804
+ type: "boolean",
8805
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.smartInvert,
8806
+ description: "smart invert",
8807
+ group: "appearance"
8808
+ },
8809
+ preferCrossFadeTransitions: {
8810
+ type: "boolean",
8811
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferCrossFadeTransitions,
8812
+ description: "prefer cross-fade transitions while reduce motion is on",
8813
+ group: "appearance"
8814
+ },
8815
+ // ios persists the slider as com.apple.UIKit UIViewGlassTintAmount in steps
8816
+ // of 0.05; with the key absent the material reads the middle.
8817
+ glassTintAmount: {
8818
+ type: "number",
8819
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.glassTintAmount,
8820
+ description: "liquid glass tint amount (0 most clear, 0.5 default, 1 most tinted)",
8821
+ group: "appearance",
8822
+ validate: (value) => value >= 0 && value <= 1
8823
+ },
8824
+ // locale
8825
+ language: {
8826
+ type: "string",
8827
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.language,
8828
+ description: "language code (ISO 639-1)",
8829
+ group: "locale"
8830
+ },
8831
+ preferredLanguages: {
8832
+ type: "string-array",
8833
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferredLanguages,
8834
+ description: "ordered preferred language tags; empty follows language and region",
8835
+ group: "locale",
8836
+ validate: (value) => {
8837
+ if (!Array.isArray(value)) return false;
8838
+ return value.every((tag) => {
8839
+ if (typeof tag !== "string" || !tag) return false;
8840
+ try {
8841
+ return Intl.getCanonicalLocales(tag).length === 1;
8842
+ } catch {
8843
+ return false;
8844
+ }
8845
+ });
8846
+ }
8847
+ },
8848
+ region: {
8849
+ type: "string",
8850
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.region,
8851
+ description: "region code (ISO 3166-1)",
8852
+ group: "locale"
8853
+ },
8854
+ // simulator
8855
+ renderDensity: {
8856
+ type: "number",
8857
+ default: 0,
8858
+ description: "explicit render density in device pixels per point for high-resolution capture (0 = follow the render resolution level)",
8859
+ group: "simulator",
8860
+ validate: (v7) => v7 === 0 || v7 >= 1 && v7 <= 9
8861
+ },
8862
+ renderResolution: {
8863
+ type: "enum",
8864
+ default: "medium",
8865
+ description: "how many pixels Peach renders per iphone point (high = device native, medium = 2, low = on-screen pixels capped at native)",
8866
+ options: SOOTSIM_RENDER_RESOLUTION_LEVELS,
8867
+ group: "simulator"
8868
+ },
8869
+ slowAnimations: {
8870
+ type: "boolean",
8871
+ default: false,
8872
+ description: "Run simulated app and OS animations at one tenth speed",
8873
+ group: "simulator"
8874
+ },
8875
+ profilerCategories: {
8876
+ type: "string",
8877
+ default: formatProfilerCategories(DEFAULT_PROFILER_CATEGORIES),
8878
+ description: "Categories the Performance pane records, comma separated",
8879
+ group: "simulator"
8880
+ },
8881
+ showTouches: {
8882
+ type: "boolean",
8883
+ default: false,
8884
+ description: "show touch indicators",
8885
+ group: "simulator"
8886
+ },
8887
+ systemCursor: {
8888
+ type: "boolean",
8889
+ default: false,
8890
+ description: "keep the computer pointer instead of a touch cursor",
8891
+ group: "simulator"
8892
+ },
8893
+ showFrame: {
8894
+ type: "boolean",
8895
+ default: true,
8896
+ description: "show device frame",
8897
+ group: "simulator"
8898
+ },
8899
+ showMenuBar: {
8900
+ type: "boolean",
8901
+ default: true,
8902
+ description: "keep the menu bar visible instead of revealing it at the top edge",
8903
+ group: "simulator"
8904
+ },
8905
+ showRail: {
8906
+ type: "boolean",
8907
+ default: true,
8908
+ description: "keep the rail visible instead of revealing it on hover",
8909
+ group: "simulator"
8910
+ },
8911
+ agentIndicator: {
8912
+ type: "boolean",
8913
+ default: true,
8914
+ description: "show the connected agent indicator over the device while a CLI or agent drives it",
8915
+ group: "simulator"
8916
+ },
8917
+ solidWindow: {
8918
+ type: "boolean",
8919
+ default: false,
8920
+ description: "desktop app: always use the solid, freely-resizable window instead of the device-shaped transparent one (3d mode uses it regardless)",
8921
+ group: "simulator"
8922
+ },
8923
+ ambientGlow: {
8924
+ type: "enum",
8925
+ default: "off",
8926
+ description: "bleed the app's own edge colors outward behind the device, like bias lighting behind a TV (off, soft, full)",
8927
+ options: SOOTSIM_AMBIENT_GLOW_LEVELS,
8928
+ group: "simulator"
8929
+ },
8930
+ stageBackground: {
8931
+ type: "enum",
8932
+ default: "system",
8933
+ description: "the stage behind the device: system follows the computer's appearance (white in light mode, black in dark), or light, dark or gray",
8934
+ options: SOOTSIM_STAGE_BACKGROUNDS,
8935
+ group: "simulator"
8936
+ },
8937
+ stageChecker: {
8938
+ type: "boolean",
8939
+ default: true,
8940
+ description: "a faint checker pattern on the stage behind the device, under the glow",
8941
+ group: "simulator"
8942
+ },
8943
+ screenshotMode: {
8944
+ type: "boolean",
8945
+ default: false,
8946
+ description: "show screenshot composition mode in the browser shell",
8947
+ group: "simulator"
8948
+ },
8949
+ screenshotCanvasEditing: {
8950
+ type: "boolean",
8951
+ default: false,
8952
+ description: "experimental figma-style slide editing: draggable copy block, drop-in image layers (owner review pending)",
8953
+ group: "simulator"
8954
+ },
8955
+ threeMode: {
8956
+ type: "boolean",
8957
+ default: false,
8958
+ description: "show the experimental 3d device stage in the browser shell",
8959
+ group: "simulator"
8960
+ },
8961
+ threeRecordingEditor: {
8962
+ type: "boolean",
8963
+ default: false,
8964
+ description: "dock the 3d recording editor in the 3d stage (toggled from its rail)",
8965
+ group: "simulator"
8966
+ },
8967
+ screenshotCanvas: {
8968
+ type: "enum",
8969
+ default: "iphone-6-9",
8970
+ description: "target app-store canvas preset for screenshot mode",
8971
+ options: SCREENSHOT_CANVAS_NAMES,
8972
+ group: "simulator"
8973
+ },
8974
+ screenshotBackground: {
8975
+ type: "enum",
8976
+ default: "dark",
8977
+ description: "background preset rendered inside the screenshot canvas",
8978
+ options: BACKGROUND_PRESET_NAMES,
8979
+ group: "simulator"
8980
+ },
8981
+ screenshotText: {
8982
+ type: "enum",
8983
+ default: "bold-top",
8984
+ description: "text layout preset for the screenshot canvas",
8985
+ options: TEXT_PRESET_NAMES,
8986
+ group: "simulator"
8987
+ },
8988
+ screenshotPose: {
8989
+ type: "enum",
8990
+ default: "straight",
8991
+ description: "device pose preset inside the screenshot canvas",
8992
+ options: POSE_PRESET_NAMES,
8993
+ group: "simulator"
8994
+ },
8995
+ screenshotDynamicSize: {
8996
+ type: "boolean",
8997
+ default: false,
8998
+ description: "let the screenshot canvas rect fit available space (off = pin to exact preset pixels)",
8999
+ group: "simulator"
9000
+ },
9001
+ showStatusBar: {
9002
+ type: "boolean",
9003
+ default: true,
9004
+ description: "show status bar",
9005
+ group: "simulator"
9006
+ },
9007
+ showHomeIndicator: {
9008
+ type: "boolean",
9009
+ default: true,
9010
+ description: "show home indicator",
9011
+ group: "simulator"
9012
+ },
9013
+ alwaysShowLiveWebViews: {
9014
+ type: "boolean",
9015
+ default: false,
9016
+ description: "always render WebViews as live browser views",
9017
+ group: "simulator"
9018
+ },
9019
+ a11yMode: {
9020
+ type: "enum",
9021
+ default: "delayed",
9022
+ description: "accessibility tree sync mode (off, delayed=100ms, active=30ms)",
9023
+ options: ["off", "delayed", "active"],
9024
+ group: "simulator"
9025
+ },
9026
+ a11yDepth: {
9027
+ type: "enum",
9028
+ default: "deep",
9029
+ description: "accessibility tree structure depth (shallow or deep)",
9030
+ options: ["shallow", "deep"],
9031
+ group: "simulator"
9032
+ },
9033
+ inspectMode: {
9034
+ type: "boolean",
9035
+ default: false,
9036
+ description: "inspect mode",
9037
+ group: "simulator"
9038
+ },
9039
+ // privacy
9040
+ productAnalytics: {
9041
+ type: "boolean",
9042
+ default: false,
9043
+ description: "send bounded product usage analytics",
9044
+ group: "privacy"
9045
+ },
9046
+ crashReports: {
9047
+ type: "boolean",
9048
+ default: false,
9049
+ description: "send anonymous crash reports",
9050
+ group: "privacy"
9051
+ },
9052
+ sendToBoxCarryAuth: {
9053
+ type: "boolean",
9054
+ default: true,
9055
+ description: "send to box carries the signed-in session into the box it creates (off = the app boots signed out)",
9056
+ group: "privacy"
9057
+ },
9058
+ // agent — default ai agent used by the prompt bar's auto-attach + startSession.
9059
+ agentProvider: {
9060
+ type: "enum",
9061
+ default: "codex",
9062
+ description: "ai agent used by the peach agent prompt bar",
9063
+ options: ["codex", "claude"],
9064
+ group: "agent"
9065
+ }
9066
+ };
9067
+ var DEFAULT_SIMULATED_DEVICE_SETTINGS = {
9068
+ predictiveText: settingsSchema.predictiveText.default,
9069
+ colorScheme: settingsSchema.colorScheme.default,
9070
+ reduceMotion: settingsSchema.reduceMotion.default,
9071
+ boldText: settingsSchema.boldText.default,
9072
+ fontSize: settingsSchema.fontSize.default,
9073
+ largerAccessibilitySizes: settingsSchema.largerAccessibilitySizes.default,
9074
+ glassTintAmount: settingsSchema.glassTintAmount.default,
9075
+ reduceTransparency: settingsSchema.reduceTransparency.default,
9076
+ increaseContrast: settingsSchema.increaseContrast.default,
9077
+ showBorders: settingsSchema.showBorders.default,
9078
+ onOffLabels: settingsSchema.onOffLabels.default,
9079
+ differentiateWithoutColor: settingsSchema.differentiateWithoutColor.default,
9080
+ smartInvert: settingsSchema.smartInvert.default,
9081
+ preferCrossFadeTransitions: settingsSchema.preferCrossFadeTransitions.default
9082
+ };
9083
+ var PROFILE_SETTING_KEYS = [
9084
+ ...SIMULATED_DEVICE_SETTING_KEYS,
9085
+ "language",
9086
+ "region",
9087
+ "preferredLanguages"
9088
+ ];
9089
+
7703
9090
  // src/storekit-test-store.ts
7704
9091
  var import_x509 = require("@peculiar/x509");
7705
9092
  init_home_paths();
@@ -11932,7 +13319,7 @@ var import_node_path10 = require("node:path");
11932
13319
  init_src();
11933
13320
 
11934
13321
  // runtime-companion.json
11935
- var runtime_companion_default = { abi: 1, sha256: "f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b", file: "node/cli-f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b.cjs" };
13322
+ var runtime_companion_default = { abi: 1, sha256: "9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a", file: "node/cli-9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a.cjs" };
11936
13323
 
11937
13324
  // src/cli-runtime.ts
11938
13325
  init_answeredNativePackages();