peachsim 0.1.2412 → 0.1.2422

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 (150) 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 +6683 -4510
  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 +19780 -17646
  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 +63968 -62664
  50. package/dist-lib/host/fetch-proxy-handler.cjs +1619 -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 +2734 -1222
  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 +1758 -246
  66. package/dist-lib/native-app-identity-project.cjs +35 -203
  67. package/dist-lib/native-app-identity-project.mjs +264 -413
  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 +32 -25
  79. package/dist-lib/public-origins-lib.json +222 -120
  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 +24600 -23060
  87. package/dist-lib/swift-compile.cjs +1396 -1203
  88. package/dist-lib/swift-compile.mjs +1351 -1148
  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 +2832 -2588
  96. package/dist-lib/vite.cjs +5254 -3781
  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/native-layout.d.ts +1 -1
  101. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +0 -10
  102. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/layer-claims.d.ts +2 -1
  103. package/kotlin/README.md +4 -3
  104. package/kotlin/sdk.tar.gz +0 -0
  105. package/kotlin/toolchain.json +3 -6
  106. package/package.json +1 -1
  107. package/runtime-companion.json +1 -1
  108. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1 -43
  109. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayerContents.h +55 -0
  110. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +3 -3
  111. package/sdk/ios/usr/include/ObjectiveC.apinotes +0 -24
  112. package/sdk/ios/usr/include/grp.h +93 -0
  113. package/sdk/ios/usr/include/netinet/tcp.h +299 -0
  114. package/sdk/ios/wasm/include/netinet/tcp.h +6 -0
  115. package/sdk/ios/wasm/include/stdlib.h +1 -0
  116. package/sdk/ios/wasm/include/unistd.h +2 -0
  117. package/skills/contrast/SKILL.md +1 -0
  118. package/skills/peach-setup/SKILL.md +11 -1
  119. package/src/android-bridge-dependencies.ts +1 -1
  120. package/src/app-config.ts +7 -0
  121. package/src/binaryen.lock.json +21 -0
  122. package/src/cocoapods-trunk.ts +52 -0
  123. package/src/config.ts +21 -31
  124. package/src/expo-kotlin-bundle.ts +1 -1
  125. package/src/kotlin-host.ts +1 -1
  126. package/src/kotlin-sdk.ts +7 -7
  127. package/src/kotlin-toolchain.ts +28 -24
  128. package/src/kotlinSdkContract.ts +2 -2
  129. package/src/native-bundles.ts +5 -2
  130. package/src/native-static-libraries.ts +85 -5
  131. package/src/podfile-cocoapods.ts +1473 -0
  132. package/src/podspec-cocoapods.ts +331 -106
  133. package/src/podspec-ruby-stdlib.ts +134 -19
  134. package/src/podspec-ruby.ts +199 -46
  135. package/src/settingsContract.ts +74 -0
  136. package/src/swift-compile.ts +185 -108
  137. package/src/swift-compiler-digest.ts +3 -0
  138. package/src/swift-guest-compile.ts +2 -0
  139. package/src/swift-guest-source-inputs.ts +2 -2
  140. package/src/swift-header-compiler.ts +185 -0
  141. package/src/swift-header-dependencies.ts +174 -0
  142. package/src/swift-host.ts +32 -7
  143. package/src/swift-objc-compile.ts +18 -24
  144. package/src/swift-packages.ts +35 -6
  145. package/src/swift-shared-sdk.ts +19 -0
  146. package/src/swift-toolchain.ts +2 -201
  147. package/src/turbo-source.ts +7 -37
  148. package/src/wasm-optimize.ts +4 -27
  149. package/src/xcode-project.ts +6 -1
  150. package/dist-types/packages/peach-engine/src/render-worker/accessibilityHostContract.d.ts +0 -65
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2412 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2422 | (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 ? "467738b34c64972f28a4f51bb4a9e09b15d846aaf5143fa94e95cf779eb7bf82" : standinSourceDigest();
297
+ STANDIN_SOURCE_DIGEST = true ? "1122424b1e57ea84e0c3c2fbd17ce18dee149a87374de8912d176aec8451bc86" : 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":"5e7daa9fabfa1c7f38e7b7e11bb0d4168e26d958b1acdb65e54e06e7de5c6804","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
 
@@ -2939,6 +2771,25 @@ var init_swift_guest_compile = __esm({
2939
2771
  }
2940
2772
  });
2941
2773
 
2774
+ // src/swift-header-compiler.ts
2775
+ var init_swift_header_compiler = __esm({
2776
+ "src/swift-header-compiler.ts"() {
2777
+ "use strict";
2778
+ init_forked_script_contract();
2779
+ init_is_record();
2780
+ init_write_build_file();
2781
+ }
2782
+ });
2783
+
2784
+ // src/swift-header-dependencies.ts
2785
+ var init_swift_header_dependencies = __esm({
2786
+ "src/swift-header-dependencies.ts"() {
2787
+ "use strict";
2788
+ init_swift_package();
2789
+ init_swiftContract();
2790
+ }
2791
+ });
2792
+
2942
2793
  // ../peach-kit/src/wasm-memory.ts
2943
2794
  var init_wasm_memory = __esm({
2944
2795
  "../peach-kit/src/wasm-memory.ts"() {
@@ -3047,6 +2898,8 @@ var init_swift_compile = __esm({
3047
2898
  init_swift_foundation();
3048
2899
  init_swift_guest_compile();
3049
2900
  init_swift_guest_source_inputs();
2901
+ init_swift_header_compiler();
2902
+ init_swift_header_dependencies();
3050
2903
  init_swift_icu();
3051
2904
  init_swift_link_roots();
3052
2905
  init_swift_objc_import();
@@ -3140,7 +2993,7 @@ var init_swift_compile = __esm({
3140
2993
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
3141
2994
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
3142
2995
  ).join("");
3143
- compilerSourceDigest = true ? "5bdda04d424b3a504c042269bf0bebf701fc0435974970611138a79db9b959cd" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
2996
+ compilerSourceDigest = true ? "63f37c4a87253305166cb52435207eb3f74394734f1a77e562d79ab7d5d7dfc1" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
3144
2997
  C_WORDS = new Set(
3145
2998
  "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
2999
  " "
@@ -3419,17 +3272,38 @@ var init_podspec_ruby_stdlib = __esm({
3419
3272
  });
3420
3273
 
3421
3274
  // src/podspec-cocoapods.ts
3422
- var PRELUDE;
3275
+ var PRELUDE, HOST_PROBES;
3423
3276
  var init_podspec_cocoapods = __esm({
3424
3277
  "src/podspec-cocoapods.ts"() {
3425
3278
  "use strict";
3426
3279
  init_podspec_ruby();
3427
3280
  init_podspec_ruby_stdlib();
3281
+ init_swift_objc_standin();
3428
3282
  PRELUDE = String.raw`
3429
3283
  module Pod
3430
3284
  VERSION = '1.17.0'
3431
3285
  class Informative < StandardError; end
3432
3286
  class PlainInformative < StandardError; end
3287
+
3288
+ module Executable
3289
+ def self.which(program)
3290
+ program = program.to_s
3291
+ paths = ENV.fetch('PATH') { '' }.split(File::PATH_SEPARATOR)
3292
+ paths.unshift('./')
3293
+ paths.uniq!
3294
+ paths.each do |path|
3295
+ bin = File.expand_path(program, path)
3296
+ return bin if File.file?(bin) && File.executable?(bin)
3297
+ end
3298
+ nil
3299
+ end
3300
+
3301
+ def self.which!(program)
3302
+ which(program).tap do |bin|
3303
+ raise Informative, "Unable to locate the executable '#{program}'" unless bin
3304
+ end
3305
+ end
3306
+ end
3433
3307
  class Version < Gem::Version; end
3434
3308
 
3435
3309
  class Requirement
@@ -3438,6 +3312,9 @@ module Pod
3438
3312
  def self.create(input)
3439
3313
  input.is_a?(Requirement) ? input : new(input)
3440
3314
  end
3315
+ def self.default
3316
+ new('>= 0')
3317
+ end
3441
3318
  def initialize(*requirements)
3442
3319
  requirements = requirements.flatten
3443
3320
  requirements.compact!
@@ -3450,16 +3327,136 @@ module Pod
3450
3327
  raise ArgumentError, "Illformed requirement [#{requirement.inspect}]" unless match
3451
3328
  [match[1] || '=', Version.new(match[2])]
3452
3329
  end
3330
+ def none?
3331
+ requirements == [['>=', Version.new('0')]]
3332
+ end
3333
+ def satisfied_by?(version)
3334
+ requirements.all? do |op, rv|
3335
+ case op
3336
+ when '=' then version == rv
3337
+ when '!=' then version != rv
3338
+ when '>' then version > rv
3339
+ when '<' then version < rv
3340
+ when '>=' then version >= rv
3341
+ when '<=' then version <= rv
3342
+ when '~>' then version >= rv && version.release < rv.bump
3343
+ end
3344
+ end
3345
+ end
3346
+ def ==(other)
3347
+ other.is_a?(Requirement) && requirements.sort_by(&:to_s) == other.requirements.sort_by(&:to_s)
3348
+ end
3349
+ def as_list
3350
+ requirements.map { |op, version| "#{op} #{version}" }.sort
3351
+ end
3352
+ def prerelease?
3353
+ requirements.any? { |_op, version| version.prerelease? }
3354
+ end
3453
3355
  def to_s
3454
- requirements.map { |op, version| "#{op} #{version}" }.join(', ')
3356
+ as_list.join(', ')
3455
3357
  end
3456
3358
  end
3457
3359
 
3458
3360
  class Dependency
3459
- attr_reader :name, :requirement
3361
+ attr_accessor :name
3362
+ attr_accessor :external_source
3363
+ attr_accessor :podspec_repo
3460
3364
  def initialize(name = nil, *requirements)
3365
+ if requirements.last.is_a?(Hash)
3366
+ additional_params = requirements.pop.select { |_, v| !v.nil? }
3367
+ additional_params = nil if additional_params.empty?
3368
+ if additional_params && @podspec_repo = additional_params[:source]
3369
+ additional_params.delete(:source)
3370
+ unless additional_params.empty?
3371
+ raise Informative, 'A dependency with a specified podspec repo may ' \
3372
+ "not include other source parameters (#{name})."
3373
+ end
3374
+ elsif @external_source = additional_params
3375
+ unless requirements.empty?
3376
+ raise Informative, 'A dependency with an external source may not ' \
3377
+ "specify version requirements (#{name})."
3378
+ end
3379
+ end
3380
+ end
3381
+ if requirements.length == 1 && requirements.first.is_a?(Requirement)
3382
+ requirements = requirements.first
3383
+ end
3461
3384
  @name = name
3462
3385
  @requirement = Requirement.create(requirements)
3386
+ @specific_requirement ||= nil
3387
+ @external_source ||= nil
3388
+ end
3389
+ def requirement
3390
+ @specific_requirement || @requirement
3391
+ end
3392
+ def specific_version
3393
+ @specific_version
3394
+ end
3395
+ def specific_version=(version)
3396
+ @specific_version = version
3397
+ @specific_requirement = Requirement.new(version)
3398
+ end
3399
+ def root_name
3400
+ Specification.root_name(name)
3401
+ end
3402
+ def prerelease?
3403
+ requirement.prerelease?
3404
+ end
3405
+ def external?
3406
+ !@external_source.nil?
3407
+ end
3408
+ def local?
3409
+ external_source[:path] if external_source
3410
+ end
3411
+ def to_root_dependency
3412
+ dep = dup
3413
+ dep.name = root_name
3414
+ dep
3415
+ end
3416
+ def ==(other)
3417
+ other.is_a?(Dependency) && name == other.name && external_source == other.external_source &&
3418
+ podspec_repo == other.podspec_repo && requirement == other.requirement
3419
+ end
3420
+ alias_method :eql?, :==
3421
+ def hash
3422
+ name.hash ^ requirement.to_s.hash ^ external_source.hash
3423
+ end
3424
+ def <=>(other)
3425
+ name <=> other.name
3426
+ end
3427
+ def to_s
3428
+ version = ''
3429
+ if external?
3430
+ version += external_source_description(external_source)
3431
+ elsif requirement != Requirement.default
3432
+ version += requirement.to_s
3433
+ end
3434
+ result = name.dup
3435
+ result += " (#{version})" unless version.empty?
3436
+ result
3437
+ end
3438
+ def inspect
3439
+ "<#{self.class} name=#{name} requirements=#{requirement} source=#{podspec_repo || 'nil'} external_source=#{external_source || 'nil'}>"
3440
+ end
3441
+ private
3442
+ def external_source_description(source)
3443
+ if source.key?(:git)
3444
+ desc = "\`#{source[:git]}\`"
3445
+ desc << ", commit \`#{source[:commit]}\`" if source[:commit]
3446
+ desc << ", branch \`#{source[:branch]}\`" if source[:branch]
3447
+ desc << ", tag \`#{source[:tag]}\`" if source[:tag]
3448
+ elsif source.key?(:hg)
3449
+ desc = "\`#{source[:hg]}\`"
3450
+ elsif source.key?(:svn)
3451
+ desc = "\`#{source[:svn]}\`"
3452
+ elsif source.key?(:podspec)
3453
+ desc = "\`#{source[:podspec]}\`"
3454
+ elsif source.key?(:path)
3455
+ desc = "\`#{source[:path]}\`"
3456
+ else
3457
+ desc = "\`#{source}\`"
3458
+ end
3459
+ "from #{desc}"
3463
3460
  end
3464
3461
  end
3465
3462
 
@@ -3475,16 +3472,55 @@ module Pod
3475
3472
  def to_sym
3476
3473
  name
3477
3474
  end
3475
+ def self.string_name(symbolic_name)
3476
+ case symbolic_name
3477
+ when :ios then 'iOS'
3478
+ when :osx then 'macOS'
3479
+ when :watchos then 'watchOS'
3480
+ when :tvos then 'tvOS'
3481
+ when :visionos then 'visionOS'
3482
+ else symbolic_name.to_s
3483
+ end
3484
+ end
3485
+ def string_name
3486
+ self.class.string_name(name)
3487
+ end
3488
+ def safe_string_name
3489
+ string_name.tr(' ', '')
3490
+ end
3478
3491
  def to_s
3479
- name.to_s
3492
+ s = self.class.string_name(name)
3493
+ s += " #{deployment_target}" if deployment_target
3494
+ s
3495
+ end
3496
+ def inspect
3497
+ "#<#{self.class.name} name=#{name.inspect} deployment_target=#{deployment_target.to_s.inspect}>"
3498
+ end
3499
+ def hash
3500
+ name.hash ^ deployment_target.hash
3501
+ end
3502
+ def eql?(other)
3503
+ self == other
3504
+ end
3505
+ def supports?(other)
3506
+ other = Platform.new(other) unless other.is_a?(Platform)
3507
+ if other.deployment_target && deployment_target
3508
+ (other.name == name) && (deployment_target >= other.deployment_target)
3509
+ else
3510
+ other.name == name
3511
+ end
3480
3512
  end
3481
3513
  end
3482
3514
 
3483
3515
  class Config
3484
3516
  attr_accessor :installation_root, :podfile, :lockfile
3517
+ alias_method :project_root, :installation_root
3485
3518
  def self.instance
3486
3519
  @instance ||= new
3487
3520
  end
3521
+ def podfile_path
3522
+ installation_root + 'Podfile'
3523
+ end
3488
3524
  def sandbox_root
3489
3525
  installation_root + 'Pods'
3490
3526
  end
@@ -3812,7 +3848,7 @@ module Pod
3812
3848
  end
3813
3849
 
3814
3850
  def to_s
3815
- specified_version = attributes_hash['version'] || ''
3851
+ specified_version = root.attributes_hash['version'] || ''
3816
3852
  if name && !specified_version.to_s.empty?
3817
3853
  "#{name} (#{specified_version})"
3818
3854
  elsif name
@@ -4186,6 +4222,15 @@ module Pod
4186
4222
  end
4187
4223
  end
4188
4224
  `;
4225
+ HOST_PROBES = /* @__PURE__ */ new Map([
4226
+ ["xcrun --sdk iphoneos --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
4227
+ `],
4228
+ ["xcrun --sdk iphonesimulator --show-sdk-version", `${NATIVE_GRAPH_SDK_VERSION}
4229
+ `],
4230
+ ["xcodebuild -version", `Xcode ${NATIVE_GRAPH_SDK_VERSION}
4231
+ `],
4232
+ ["/usr/sbin/sysctl -n hw.optional.arm64 2>&1", "1\n"]
4233
+ ]);
4189
4234
  }
4190
4235
  });
4191
4236
 
@@ -4243,6 +4288,7 @@ var init_kotlin_toolchain = __esm({
4243
4288
  "use strict";
4244
4289
  import_node_child_process4 = require("node:child_process");
4245
4290
  import_node_util4 = require("node:util");
4291
+ init_src();
4246
4292
  init_home_paths();
4247
4293
  init_is_record();
4248
4294
  run2 = (0, import_node_util4.promisify)(import_node_child_process4.execFile);
@@ -4701,7 +4747,7 @@ var init_react_native_core = __esm({
4701
4747
  init_swift_distribution();
4702
4748
  init_swift_package();
4703
4749
  init_swiftContract();
4704
- recipe = true ? "69b07e9fa50c2e82ce458ed542c4e01980e8abeab0261d9176395a3348963751" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
4750
+ recipe = true ? "ebfb6e514f6a2873b73852f067f1db2c2033490a337d8a2f95a46a922e095bf5" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
4705
4751
  }
4706
4752
  });
4707
4753
 
@@ -4844,6 +4890,14 @@ var init_swift_host = __esm({
4844
4890
  }
4845
4891
  });
4846
4892
 
4893
+ // src/cocoapods-trunk.ts
4894
+ var init_cocoapods_trunk = __esm({
4895
+ "src/cocoapods-trunk.ts"() {
4896
+ "use strict";
4897
+ init_home_paths();
4898
+ }
4899
+ });
4900
+
4847
4901
  // src/installed-native-libraries.ts
4848
4902
  var init_installed_native_libraries = __esm({
4849
4903
  "src/installed-native-libraries.ts"() {
@@ -4878,6 +4932,7 @@ var init_turbo_source = __esm({
4878
4932
  "use strict";
4879
4933
  import_node_child_process8 = require("node:child_process");
4880
4934
  import_node_util8 = require("node:util");
4935
+ init_cocoapods_trunk();
4881
4936
  init_home_paths();
4882
4937
  init_installed_native_libraries();
4883
4938
  init_answeredNativePackages();
@@ -7700,6 +7755,1359 @@ init_is_record();
7700
7755
  // src/app-config.ts
7701
7756
  init_public_brand();
7702
7757
 
7758
+ // ../peach-globals/src/profilerContract.ts
7759
+ var PROFILER_CATEGORIES = [
7760
+ "frames",
7761
+ "animations",
7762
+ "interactions",
7763
+ "network-logs",
7764
+ "react",
7765
+ "animation-values",
7766
+ "layout",
7767
+ "memory",
7768
+ "paint-detail"
7769
+ ];
7770
+ var DEFAULT_PROFILER_CATEGORIES = [
7771
+ "frames",
7772
+ "animations",
7773
+ "interactions",
7774
+ "network-logs"
7775
+ ];
7776
+ function formatProfilerCategories(categories) {
7777
+ return PROFILER_CATEGORIES.filter((c) => categories.includes(c)).join(",");
7778
+ }
7779
+ var PROFILER_WINDOW_MS = 5 * 6e4;
7780
+
7781
+ // src/runtimePlatformContract.ts
7782
+ var IOS_ADAPTER = Object.freeze({
7783
+ id: "ios",
7784
+ displayName: "iOS",
7785
+ isIOS: true,
7786
+ isAndroid: false,
7787
+ select: (registry) => registry.ios
7788
+ });
7789
+ var ANDROID_ADAPTER = Object.freeze({
7790
+ id: "android",
7791
+ displayName: "Android",
7792
+ isIOS: false,
7793
+ isAndroid: true,
7794
+ select: (registry) => registry.android
7795
+ });
7796
+ var RUNTIME_PLATFORM_ADAPTERS = Object.freeze({
7797
+ ios: IOS_ADAPTER,
7798
+ android: ANDROID_ADAPTER
7799
+ });
7800
+
7801
+ // src/device-catalog.ts
7802
+ function modernButtons(action, volumeUp, volumeDown, power) {
7803
+ return {
7804
+ width: 3,
7805
+ ringToggle: { side: "left", top: action[0], height: action[1] },
7806
+ volumeUp: { side: "left", top: volumeUp[0], height: volumeUp[1] },
7807
+ volumeDown: { side: "left", top: volumeDown[0], height: volumeDown[1] },
7808
+ lock: { side: "right", top: power[0], height: power[1] }
7809
+ };
7810
+ }
7811
+ var LEGACY_HARDWARE_BUTTONS = {
7812
+ width: 2.5,
7813
+ lock: { side: "right", top: 188.7, height: 68.1 },
7814
+ ringToggle: { side: "left", top: 113.2, height: 36 },
7815
+ volumeUp: { side: "left", top: 188.2, height: 68.1 },
7816
+ volumeDown: { side: "left", top: 269, height: 68.1 }
7817
+ };
7818
+ var PIXEL_HARDWARE_BUTTONS = {
7819
+ width: 3,
7820
+ // pixel 8 android studio art has right-edge opaque runs at y=671..833
7821
+ // (power) and y=971..1301 (the continuous volume rocker), at 2.625x.
7822
+ lock: { side: "right", top: 671 / 2.625, height: 163 / 2.625 },
7823
+ ringToggle: { side: "left", top: -1e3, height: 0 },
7824
+ volumeUp: { side: "right", top: 971 / 2.625, height: 165 / 2.625 },
7825
+ volumeDown: { side: "right", top: 1136 / 2.625, height: 166 / 2.625 }
7826
+ };
7827
+ var GALAXY_HARDWARE_BUTTONS = {
7828
+ width: 3,
7829
+ lock: { side: "right", top: 248, height: 72 },
7830
+ ringToggle: { side: "left", top: -1e3, height: 0 },
7831
+ volumeUp: { side: "right", top: 144, height: 62 },
7832
+ volumeDown: { side: "right", top: 216, height: 62 }
7833
+ };
7834
+ var ANDROID_GESTURE_NAV_BAR_HEIGHT = 24;
7835
+ var ANDROID_OS_VERSION = "17";
7836
+ var ANDROID_API_LEVEL = 37;
7837
+ var PIXEL_8_WIDTH = 1080 / 2.625;
7838
+ var PIXEL_8_HEIGHT = 2400 / 2.625;
7839
+ var GBOARD_PANEL_HEIGHTS = {
7840
+ qwerty: 883 / 2.625,
7841
+ pad: 883 / 2.625,
7842
+ emoji: 395
7843
+ };
7844
+ var PIXEL_8_STATUS_BAR_HEIGHT = 132 / 2.625;
7845
+ var PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT = Math.round(28 * 2.625) / 2.625;
7846
+ function uniformFrameInsets(value) {
7847
+ return { top: value, right: value, bottom: value, left: value };
7848
+ }
7849
+ function cornerRadii(value) {
7850
+ return { topLeft: value, topRight: value, bottomRight: value, bottomLeft: value };
7851
+ }
7852
+ var DYNAMIC_WINDOW_LIMITS = {
7853
+ minWidth: 375,
7854
+ minHeight: 486,
7855
+ maxWidth: 1032,
7856
+ maxHeight: 1376
7857
+ };
7858
+ function iosDevice(spec) {
7859
+ const profile = {
7860
+ // normal-scale dynamic split providers share this intrinsic height and
7861
+ // linked-sdk whole-point rounding. safe areas are independent.
7862
+ // source receipt: docs/ios/framework-oracle/status-bar-hit-region-and-scene-routing.md
7863
+ statusBarHeight: "statusBarHeight" in spec ? spec.statusBarHeight : Math.round(53.666666666666664),
7864
+ scale: 3,
7865
+ landscapeStatusBarHeight: 0,
7866
+ homeIndicatorHeight: 34,
7867
+ iosVersion: "27.0",
7868
+ dynamicIsland: null,
7869
+ keyboardPanelHeights: { qwerty: 301, pad: 301, emoji: 395 },
7870
+ ...spec
7871
+ };
7872
+ return {
7873
+ ...profile,
7874
+ platform: "ios",
7875
+ // the display's portrait reference and overlay allowance are independent of the window safe area.
7876
+ displayEdgeInfo: profile.displayEdgeInfo ?? (profile.model.startsWith("iphone-") && profile.model !== "iphone-se" && profile.model !== "iphone-duo" ? { portraitBottom: 34, homeAffordanceOverlayAllowance: 21 } : void 0),
7877
+ navigationBarHeight: 0,
7878
+ navigationBarMode: profile.homeIndicatorHeight > 0 ? "gesture" : "none",
7879
+ displayCutout: {
7880
+ top: profile.dynamicIsland ? profile.safeAreaInsets.top : 0,
7881
+ bottom: 0,
7882
+ left: 0,
7883
+ right: 0
7884
+ },
7885
+ cameraCutout: null,
7886
+ osVersion: profile.iosVersion,
7887
+ androidApiLevel: null,
7888
+ systemName: "iOS",
7889
+ manufacturer: "Apple",
7890
+ brand: "Apple",
7891
+ modelName: profile.name
7892
+ };
7893
+ }
7894
+ var profiles = {
7895
+ "canvas-workspace": /* @__PURE__ */ iosDevice({
7896
+ model: "canvas-workspace",
7897
+ name: "Canvas Workspace",
7898
+ width: 1440,
7899
+ height: 900,
7900
+ scale: 1,
7901
+ statusBarHeight: 0,
7902
+ homeIndicatorHeight: 0,
7903
+ cornerRadius: /* @__PURE__ */ cornerRadii(0),
7904
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
7905
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(16),
7906
+ safeAreaInsets: { top: 0, bottom: 0, left: 0, right: 0 },
7907
+ // no native device has this geometry; carries the iphone 16 keyboard
7908
+ // height so the experimental profile still shows a keyboard.
7909
+ physicalPPI: 110,
7910
+ hardwareButtons: /* @__PURE__ */ modernButtons(
7911
+ [185.8, 41.7],
7912
+ [258.2, 67.6],
7913
+ [344, 67.6],
7914
+ [281.5, 106.9]
7915
+ ),
7916
+ experimental: true
7917
+ }),
7918
+ "iphone-se": /* @__PURE__ */ iosDevice({
7919
+ model: "iphone-se",
7920
+ name: "iPhone SE",
7921
+ width: 375,
7922
+ height: 667,
7923
+ scale: 2,
7924
+ statusBarHeight: 20,
7925
+ homeIndicatorHeight: 0,
7926
+ cornerRadius: /* @__PURE__ */ cornerRadii(0),
7927
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(0),
7928
+ // legacy home-button frame uses asymmetric LEGACY_*_BEZEL constants in the
7929
+ // shell (111pt forehead/chin, 29pt sides); uniform frameInsets are a sane
7930
+ // modern-path value and mirror the SE's ~28.7pt side bezel.
7931
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(28.7),
7932
+ safeAreaInsets: { top: 20, bottom: 0, left: 0, right: 0 },
7933
+ keyboardPanelHeights: { qwerty: 226, pad: 226, emoji: 320 },
7934
+ physicalPPI: 326,
7935
+ hardwareButtons: LEGACY_HARDWARE_BUTTONS
7936
+ }),
7937
+ "iphone-14": /* @__PURE__ */ iosDevice({
7938
+ model: "iphone-14",
7939
+ name: "iPhone 14",
7940
+ width: 390,
7941
+ height: 844,
7942
+ statusBarHeight: 47,
7943
+ cornerRadius: /* @__PURE__ */ cornerRadii(46.2),
7944
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(67.462),
7945
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(19.5),
7946
+ safeAreaInsets: { top: 47, bottom: 34, left: 0, right: 0 },
7947
+ physicalPPI: 460,
7948
+ hardwareButtons: /* @__PURE__ */ modernButtons(
7949
+ [141.7, 29.7],
7950
+ [205.9, 69.6],
7951
+ [289.5, 69.6],
7952
+ [228.9, 114.5]
7953
+ )
7954
+ }),
7955
+ "iphone-15": /* @__PURE__ */ iosDevice({
7956
+ model: "iphone-15",
7957
+ name: "iPhone 15",
7958
+ width: 393,
7959
+ height: 852,
7960
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
7961
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
7962
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(18.2),
7963
+ dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
7964
+ statusRowCenter: 32.75,
7965
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
7966
+ physicalPPI: 460,
7967
+ hardwareButtons: /* @__PURE__ */ modernButtons(
7968
+ [171.7, 32],
7969
+ [235.8, 65.3],
7970
+ [320.5, 65.3],
7971
+ [280.6, 105.2]
7972
+ )
7973
+ }),
7974
+ "iphone-15-plus": /* @__PURE__ */ iosDevice({
7975
+ model: "iphone-15-plus",
7976
+ name: "iPhone 15 Plus",
7977
+ width: 430,
7978
+ height: 932,
7979
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
7980
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
7981
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(17.3),
7982
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
7983
+ statusRowCenter: 30.05,
7984
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
7985
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
7986
+ physicalPPI: 460,
7987
+ hardwareButtons: /* @__PURE__ */ modernButtons(
7988
+ [172.1, 33],
7989
+ [236.1, 66.6],
7990
+ [321.2, 66.6],
7991
+ [281, 106.8]
7992
+ )
7993
+ }),
7994
+ "iphone-15-pro": /* @__PURE__ */ iosDevice({
7995
+ model: "iphone-15-pro",
7996
+ name: "iPhone 15 Pro",
7997
+ width: 393,
7998
+ height: 852,
7999
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
8000
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
8001
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8002
+ dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
8003
+ statusRowCenter: 32.4,
8004
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
8005
+ physicalPPI: 460,
8006
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8007
+ [159.1, 31.5],
8008
+ [220.1, 61.9],
8009
+ [299, 61.9],
8010
+ [260.8, 98.9]
8011
+ )
8012
+ }),
8013
+ "iphone-15-pro-max": /* @__PURE__ */ iosDevice({
8014
+ model: "iphone-15-pro-max",
8015
+ name: "iPhone 15 Pro Max",
8016
+ width: 430,
8017
+ height: 932,
8018
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
8019
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
8020
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8021
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
8022
+ statusRowCenter: 32.3,
8023
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
8024
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8025
+ physicalPPI: 460,
8026
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8027
+ [173.3, 32.2],
8028
+ [253.4, 61.7],
8029
+ [343.3, 61.7],
8030
+ [268.5, 98.5]
8031
+ )
8032
+ }),
8033
+ "iphone-16": /* @__PURE__ */ iosDevice({
8034
+ model: "iphone-16",
8035
+ name: "iPhone 16",
8036
+ width: 393,
8037
+ height: 852,
8038
+ // 2026-07-10: cornerRadius corrected 58 → 53.9 to Apple's own framebuffer
8039
+ // mask (extracted from the simdevicetype bundle PDF; see
8040
+ // packages/peach-engine/assets/device-frame-geometry). radius is a paint clip only — the
8041
+ // calibrated conformance-oracle layout fields below are unchanged.
8042
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
8043
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(73.402),
8044
+ // uikit's concentric-corner getter on the ios 27 iphone 16 returns 55.
8045
+ systemCornerRadius: /* @__PURE__ */ cornerRadii(55),
8046
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8047
+ dynamicIsland: { width: 125, height: 110 / 3, top: 34 / 3 },
8048
+ statusRowCenter: 29.65,
8049
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
8050
+ keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
8051
+ physicalPPI: 460,
8052
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8053
+ [159.1, 31.5],
8054
+ [220.1, 61.9],
8055
+ [299, 61.9],
8056
+ [260.8, 98.9]
8057
+ )
8058
+ }),
8059
+ "iphone-16-plus": /* @__PURE__ */ iosDevice({
8060
+ model: "iphone-16-plus",
8061
+ name: "iPhone 16 Plus",
8062
+ width: 430,
8063
+ height: 932,
8064
+ cornerRadius: /* @__PURE__ */ cornerRadii(53.9),
8065
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(74.654),
8066
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8067
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 34 / 3 },
8068
+ statusRowCenter: 30.05,
8069
+ safeAreaInsets: { top: 59, bottom: 34, left: 0, right: 0 },
8070
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8071
+ physicalPPI: 460,
8072
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8073
+ [173.3, 32.2],
8074
+ [253.4, 61.7],
8075
+ [343.3, 61.7],
8076
+ [268.5, 98.5]
8077
+ )
8078
+ }),
8079
+ "iphone-16-pro": /* @__PURE__ */ iosDevice({
8080
+ model: "iphone-16-pro",
8081
+ name: "iPhone 16 Pro",
8082
+ width: 402,
8083
+ height: 874,
8084
+ cornerRadius: /* @__PURE__ */ cornerRadii(61),
8085
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
8086
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8087
+ dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
8088
+ statusRowCenter: 32.5,
8089
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8090
+ physicalPPI: 460,
8091
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8092
+ [159.1, 31.5],
8093
+ [220.1, 61.9],
8094
+ [299, 61.9],
8095
+ [260.8, 98.9]
8096
+ )
8097
+ }),
8098
+ "iphone-16-pro-max": /* @__PURE__ */ iosDevice({
8099
+ model: "iphone-16-pro-max",
8100
+ name: "iPhone 16 Pro Max",
8101
+ width: 440,
8102
+ height: 956,
8103
+ cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
8104
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
8105
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
8106
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
8107
+ statusRowCenter: 33,
8108
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8109
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8110
+ physicalPPI: 460,
8111
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8112
+ [178.8, 32.2],
8113
+ [266.8, 61.8],
8114
+ [352.7, 61.8],
8115
+ [292.2, 98.3]
8116
+ )
8117
+ }),
8118
+ "iphone-17": /* @__PURE__ */ iosDevice({
8119
+ model: "iphone-17",
8120
+ name: "iPhone 17",
8121
+ width: 402,
8122
+ height: 874,
8123
+ cornerRadius: /* @__PURE__ */ cornerRadii(61),
8124
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
8125
+ // display border 1.44mm plus the visible flat housing rail.
8126
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8127
+ dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
8128
+ statusRowCenter: 32.65,
8129
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8130
+ physicalPPI: 460,
8131
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8132
+ [159.1, 31.5],
8133
+ [220.1, 61.9],
8134
+ [299, 61.9],
8135
+ [260.8, 98.9]
8136
+ )
8137
+ }),
8138
+ "iphone-17-air": /* @__PURE__ */ iosDevice({
8139
+ model: "iphone-17-air",
8140
+ // apple markets this as "iphone air" (not "iphone 17 air"). the real air
8141
+ // is 420x912 with thin bezels and a lower-sitting island. it is not the
8142
+ // 430x932 Plus body it used to be cloned from.
8143
+ name: "iPhone Air",
8144
+ width: 420,
8145
+ height: 912,
8146
+ cornerRadius: /* @__PURE__ */ cornerRadii(64.6),
8147
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(88.313),
8148
+ // WHICH QUANTITY THIS IS, because it has been flipped twice and each pass
8149
+ // read the other one as a bug: frameInsets is the VISIBLE FACE-ON frame —
8150
+ // the black display border plus however much housing rail you actually see
8151
+ // looking straight at the phone. It is NOT the caliper silhouette.
8152
+ //
8153
+ // Apple publishes a 74.7×156.2mm body around a 1260×2736 display at 460ppi,
8154
+ // which is 15.475pt per side to the silhouette; that is the number to use if
8155
+ // you ever need physical dimensions, and it is what commit 4966fe6cac put
8156
+ // here. But most of that width on the Air is curved titanium turning away
8157
+ // from a head-on view, so rendering it as frame draws the Air with the
8158
+ // THICKEST bezel of any iPhone we ship when the real Air has the thinnest.
8159
+ //
8160
+ // So: 1.435mm display border = 8.69pt, plus ~2pt of rail that is actually
8161
+ // face-on. The 17 Pro's flat rail contributes ~6.6pt on the same basis,
8162
+ // which is why it sits at 15.3 and the Air should not.
8163
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(10.7),
8164
+ dynamicIsland: { width: 125, height: 110 / 3, top: 20 },
8165
+ statusRowCenter: 39,
8166
+ safeAreaInsets: { top: 68, bottom: 34, left: 0, right: 0 },
8167
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8168
+ physicalPPI: 460,
8169
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8170
+ [178.8, 32.2],
8171
+ [266.8, 61.8],
8172
+ [352.7, 61.8],
8173
+ [292.2, 98.3]
8174
+ )
8175
+ }),
8176
+ "iphone-17-pro": /* @__PURE__ */ iosDevice({
8177
+ model: "iphone-17-pro",
8178
+ name: "iPhone 17 Pro",
8179
+ width: 402,
8180
+ height: 874,
8181
+ cornerRadius: /* @__PURE__ */ cornerRadii(61),
8182
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(84.661),
8183
+ // the ios 27 simulator's ContainerRelativeShape at the root draws 62
8184
+ // less its smallest inset from the display (54 at 8pt, 32 at 30pt).
8185
+ systemCornerRadius: /* @__PURE__ */ cornerRadii(62),
8186
+ // display border 1.44mm plus the visible flat housing rail.
8187
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.3),
8188
+ dynamicIsland: { width: 125, height: 110 / 3, top: 14 },
8189
+ statusRowCenter: 33,
8190
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8191
+ // keyboardDidShow on the ios 27.0 simulator: 301 for the default keyboard,
8192
+ // 302 for the number pad.
8193
+ keyboardPanelHeights: { qwerty: 301, pad: 302, emoji: 395 },
8194
+ physicalPPI: 460,
8195
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8196
+ [159.1, 31.5],
8197
+ [220.1, 61.9],
8198
+ [299, 61.9],
8199
+ [260.8, 98.9]
8200
+ )
8201
+ }),
8202
+ "iphone-17-pro-max": /* @__PURE__ */ iosDevice({
8203
+ model: "iphone-17-pro-max",
8204
+ name: "iPhone 17 Pro Max",
8205
+ width: 440,
8206
+ height: 956,
8207
+ // same ios 26.4 440x956 dynamic island max profile as the measured
8208
+ // iphone 16 pro max screens proof oracle.
8209
+ cornerRadius: /* @__PURE__ */ cornerRadii(61.3),
8210
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(85.163),
8211
+ // display border 1.36mm plus the visible flat housing rail.
8212
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(15.4),
8213
+ dynamicIsland: { width: 376 / 3, height: 110 / 3, top: 14 },
8214
+ statusRowCenter: 33,
8215
+ safeAreaInsets: { top: 62, bottom: 34, left: 0, right: 0 },
8216
+ keyboardPanelHeights: { qwerty: 311, pad: 311, emoji: 405 },
8217
+ physicalPPI: 460,
8218
+ hardwareButtons: /* @__PURE__ */ modernButtons(
8219
+ [178.8, 32.2],
8220
+ [266.8, 61.8],
8221
+ [352.7, 61.8],
8222
+ [292.2, 98.3]
8223
+ )
8224
+ }),
8225
+ "iphone-duo": {
8226
+ // offered on contributor surfaces only while the 27 home and the hinge
8227
+ // measurements are still settling (nate, 2026-09-15).
8228
+ developmentOnly: true,
8229
+ .../* @__PURE__ */ iosDevice({
8230
+ model: "iphone-duo",
8231
+ name: "iPhone Duo",
8232
+ width: 466,
8233
+ height: 678,
8234
+ statusBarHeight: 66,
8235
+ // the ios 27.1 duo simulator draws the gesture home indicator in both
8236
+ // postures: a 167pt x 5pt pill 8pt above the display bottom on the
8237
+ // cover, sized by the same rule as the other iphones (HomeIndicator).
8238
+ // hinge on the left. the hinge-side display corners measure 5pt in
8239
+ // apple's 2d outer product art; the free side keeps the 61pt pro curve.
8240
+ cornerRadius: { topLeft: 5, topRight: 61, bottomRight: 61, bottomLeft: 5 },
8241
+ continuousCornerRadius: {
8242
+ topLeft: 5,
8243
+ topRight: 61,
8244
+ bottomRight: 61,
8245
+ bottomLeft: 5
8246
+ },
8247
+ // the ios 27.1 duo simulator reports 59, and sheets 8pt in on the free
8248
+ // side carry 51 there (41 at 18pt in).
8249
+ systemCornerRadius: { topLeft: 5, topRight: 59, bottomRight: 59, bottomLeft: 5 },
8250
+ // display edge to silhouette, measured off apple's 2d outer product art
8251
+ // at 3x. the barrel is not part of the body: it protrudes 11.67pt past
8252
+ // the left silhouette, so the full outer width is frame + protrusion.
8253
+ frameInsets: { top: 16.3333, right: 16.3333, bottom: 16, left: 14 },
8254
+ // the spine is a flat cut, so its corners are tiny; the free side keeps
8255
+ // the 75pt body curve the pro bodies use.
8256
+ frameCornerRadius: {
8257
+ topLeft: 4.3333,
8258
+ topRight: 75,
8259
+ bottomRight: 75,
8260
+ bottomLeft: 3.3333
8261
+ },
8262
+ housing: {
8263
+ rail: { top: 7.5, right: 8, bottom: 7.3333, left: 5.3333 },
8264
+ hingeBarrel: { width: 16.6667, endInset: 7.3333, protrusion: 11.6667 }
8265
+ },
8266
+ // 84pt trailing Vertical Bar on the outer display (Apple iOS 27 UI kit).
8267
+ safeAreaInsets: { top: 0, bottom: 34, left: 0, right: 84 },
8268
+ iosVersion: "27.1",
8269
+ // ios 27.1 24a94425: ordinary qwerty host (0,413,466,265)pt;
8270
+ // docs/ios/framework-oracle/keyboard-tray-accessibility-and-duo-recipes.md.
8271
+ // the cover keyboard cells report number pad 269; emoji keeps 338.
8272
+ keyboardPanelHeights: { qwerty: 265, pad: 269, emoji: 338 },
8273
+ physicalPPI: 460,
8274
+ // official model extraction for button positions is outside this slice.
8275
+ hardwareButtons: /* @__PURE__ */ modernButtons([0, 0], [0, 0], [0, 0], [0, 0]),
8276
+ posture: "closed",
8277
+ supportedPostures: ["closed", "open"]
8278
+ }),
8279
+ // the ios 27.1 simulator's camera occlusion region: 37pt, 29 1/3 in from
8280
+ // the top and trailing edges
8281
+ cameraCutout: {
8282
+ diameter: 37,
8283
+ top: 88 / 3,
8284
+ trailing: 88 / 3
8285
+ },
8286
+ // closed portrait popover region on the ios 27.1 duo simulator (uikit
8287
+ // sheet probe, popoverLayoutMargins zero): left 8, the other edges 25.
8288
+ // the open and rotated profiles are unmeasured and drop it.
8289
+ popoverRegionInsets: { left: 8, top: 25, right: 25, bottom: 25 }
8290
+ },
8291
+ "ipad-pro-11": {
8292
+ // frame and hardware buttons are not sourced yet, so this stays off the
8293
+ // shipping picker the same way the duo does.
8294
+ developmentOnly: true,
8295
+ .../* @__PURE__ */ ipadProDevice(
8296
+ "ipad-pro-11",
8297
+ "iPad Pro 11-inch (M5)",
8298
+ 834,
8299
+ 1210,
8300
+ 11,
8301
+ 340
8302
+ )
8303
+ },
8304
+ "ipad-pro-13": /* @__PURE__ */ ipadProDevice(
8305
+ "ipad-pro-13",
8306
+ "iPad Pro 13-inch (M5)",
8307
+ 1032,
8308
+ 1376,
8309
+ 13,
8310
+ 403
8311
+ ),
8312
+ // an iPadOS app window the user resizes, on the iPad Pro 13-inch (M5). the
8313
+ // profile is the launch window; the host sizes it with withWindowSize.
8314
+ // numbers are the iOS 27.0 Stage Manager window in
8315
+ // docs/ios/ipad-window-geometry.md.
8316
+ dynamic: {
8317
+ .../* @__PURE__ */ ipadProDevice("dynamic", "Dynamic Window", 375, 753, 13, 403),
8318
+ // the window starts below the screen's status strip and no home indicator
8319
+ // is drawn in it, so neither insets the window.
8320
+ statusBarHeight: 0,
8321
+ landscapeStatusBarHeight: 0,
8322
+ homeIndicatorHeight: 0,
8323
+ navigationBarMode: "none",
8324
+ // the system clips the window to a 32pt circular arc.
8325
+ cornerRadius: /* @__PURE__ */ cornerRadii(32),
8326
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(32),
8327
+ // the display's diagonal, not the window's.
8328
+ physicalPPI: Math.hypot(2064, 2752) / 13,
8329
+ safeAreaInsets: { top: 0, bottom: 0, left: 10, right: 10 },
8330
+ packagedOnly: true
8331
+ },
8332
+ "pixel-8": {
8333
+ model: "pixel-8",
8334
+ platform: "android",
8335
+ name: "Pixel 8",
8336
+ width: PIXEL_8_WIDTH,
8337
+ height: PIXEL_8_HEIGHT,
8338
+ scale: 2.625,
8339
+ statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
8340
+ landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
8341
+ homeIndicatorHeight: 0,
8342
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8343
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8344
+ navigationBarMode: "gesture",
8345
+ displayCutout: {
8346
+ top: PIXEL_8_STATUS_BAR_HEIGHT,
8347
+ bottom: 0,
8348
+ left: 0,
8349
+ right: 0
8350
+ },
8351
+ cornerRadius: /* @__PURE__ */ cornerRadii(39),
8352
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
8353
+ // android studio's pixel 8 device art places the 1080x2400 display at
8354
+ // (49,55) in a 1187x2513 body. the right side button occupies the final
8355
+ // 8 physical pixels, so the body insets are 49/50/58/55 at 2.625x.
8356
+ frameInsets: {
8357
+ top: 55 / 2.625,
8358
+ right: 50 / 2.625,
8359
+ bottom: 58 / 2.625,
8360
+ left: 49 / 2.625
8361
+ },
8362
+ dynamicIsland: null,
8363
+ cameraCutout: { diameter: 72.5 / 2.625 },
8364
+ safeAreaInsets: {
8365
+ top: PIXEL_8_STATUS_BAR_HEIGHT,
8366
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8367
+ left: 0,
8368
+ right: 0
8369
+ },
8370
+ osVersion: ANDROID_OS_VERSION,
8371
+ iosVersion: "",
8372
+ androidApiLevel: ANDROID_API_LEVEL,
8373
+ systemName: "Android",
8374
+ manufacturer: "Google",
8375
+ brand: "google",
8376
+ modelName: "Pixel 8",
8377
+ physicalPPI: 428,
8378
+ hardwareButtons: PIXEL_HARDWARE_BUTTONS
8379
+ },
8380
+ "pixel-8-three-button": {
8381
+ model: "pixel-8-three-button",
8382
+ platform: "android",
8383
+ name: "Pixel 8 (3-button)",
8384
+ width: PIXEL_8_WIDTH,
8385
+ height: PIXEL_8_HEIGHT,
8386
+ scale: 2.625,
8387
+ statusBarHeight: PIXEL_8_STATUS_BAR_HEIGHT,
8388
+ landscapeStatusBarHeight: PIXEL_8_LANDSCAPE_STATUS_BAR_HEIGHT,
8389
+ homeIndicatorHeight: 0,
8390
+ navigationBarHeight: 48,
8391
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8392
+ navigationBarMode: "three-button",
8393
+ displayCutout: {
8394
+ top: PIXEL_8_STATUS_BAR_HEIGHT,
8395
+ bottom: 0,
8396
+ left: 0,
8397
+ right: 0
8398
+ },
8399
+ cornerRadius: /* @__PURE__ */ cornerRadii(39),
8400
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(39),
8401
+ frameInsets: {
8402
+ top: 55 / 2.625,
8403
+ right: 50 / 2.625,
8404
+ bottom: 58 / 2.625,
8405
+ left: 49 / 2.625
8406
+ },
8407
+ dynamicIsland: null,
8408
+ cameraCutout: { diameter: 72.5 / 2.625 },
8409
+ safeAreaInsets: {
8410
+ top: PIXEL_8_STATUS_BAR_HEIGHT,
8411
+ bottom: 48,
8412
+ left: 0,
8413
+ right: 0
8414
+ },
8415
+ osVersion: ANDROID_OS_VERSION,
8416
+ iosVersion: "",
8417
+ androidApiLevel: ANDROID_API_LEVEL,
8418
+ systemName: "Android",
8419
+ manufacturer: "Google",
8420
+ brand: "google",
8421
+ modelName: "Pixel 8",
8422
+ physicalPPI: 428,
8423
+ hardwareButtons: PIXEL_HARDWARE_BUTTONS
8424
+ },
8425
+ "pixel-9-pro-xl": {
8426
+ model: "pixel-9-pro-xl",
8427
+ platform: "android",
8428
+ name: "Pixel 9 Pro XL",
8429
+ width: 448,
8430
+ height: 997,
8431
+ scale: 3,
8432
+ statusBarHeight: 40,
8433
+ landscapeStatusBarHeight: 40,
8434
+ homeIndicatorHeight: 0,
8435
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8436
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8437
+ navigationBarMode: "gesture",
8438
+ displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
8439
+ cornerRadius: /* @__PURE__ */ cornerRadii(41),
8440
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(41),
8441
+ // Pixel 9 Pro XL body 162.8×76.6mm over a 70.2mm panel → ~1.8mm ≈ 12pt.
8442
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(12),
8443
+ dynamicIsland: null,
8444
+ cameraCutout: { diameter: 24 },
8445
+ safeAreaInsets: {
8446
+ top: 40,
8447
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8448
+ left: 0,
8449
+ right: 0
8450
+ },
8451
+ osVersion: ANDROID_OS_VERSION,
8452
+ iosVersion: "",
8453
+ androidApiLevel: ANDROID_API_LEVEL,
8454
+ systemName: "Android",
8455
+ manufacturer: "Google",
8456
+ brand: "google",
8457
+ modelName: "Pixel 9 Pro XL",
8458
+ physicalPPI: 486,
8459
+ hardwareButtons: PIXEL_HARDWARE_BUTTONS
8460
+ },
8461
+ "pixel-10": {
8462
+ model: "pixel-10",
8463
+ platform: "android",
8464
+ name: "Pixel 10",
8465
+ width: 360,
8466
+ height: 808,
8467
+ scale: 3,
8468
+ statusBarHeight: 40,
8469
+ landscapeStatusBarHeight: 40,
8470
+ homeIndicatorHeight: 0,
8471
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8472
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8473
+ navigationBarMode: "gesture",
8474
+ displayCutout: { top: 40, bottom: 0, left: 0, right: 0 },
8475
+ cornerRadius: /* @__PURE__ */ cornerRadii(40),
8476
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(40),
8477
+ // the 72mm body surrounds a roughly 65.1mm-wide 6.3-inch panel, which
8478
+ // resolves to about 18 logical points of frame around the 1080px display.
8479
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(18),
8480
+ dynamicIsland: null,
8481
+ cameraCutout: { diameter: 26 },
8482
+ safeAreaInsets: {
8483
+ top: 40,
8484
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8485
+ left: 0,
8486
+ right: 0
8487
+ },
8488
+ osVersion: ANDROID_OS_VERSION,
8489
+ iosVersion: "",
8490
+ androidApiLevel: ANDROID_API_LEVEL,
8491
+ systemName: "Android",
8492
+ manufacturer: "Google",
8493
+ brand: "google",
8494
+ modelName: "Pixel 10",
8495
+ physicalPPI: 422,
8496
+ hardwareButtons: PIXEL_HARDWARE_BUTTONS
8497
+ },
8498
+ "galaxy-s24": {
8499
+ model: "galaxy-s24",
8500
+ platform: "android",
8501
+ name: "Galaxy S24",
8502
+ width: 360,
8503
+ height: 780,
8504
+ scale: 3,
8505
+ statusBarHeight: 36,
8506
+ landscapeStatusBarHeight: 36,
8507
+ homeIndicatorHeight: 0,
8508
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8509
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8510
+ navigationBarMode: "gesture",
8511
+ displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
8512
+ cornerRadius: /* @__PURE__ */ cornerRadii(36),
8513
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(36),
8514
+ // Galaxy S24 body 147.0×70.6mm over a 65.9mm panel → ~1.2mm ≈ 8pt (Samsung
8515
+ // flat-display bezels are noticeably thinner than Pixel's).
8516
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(8),
8517
+ dynamicIsland: null,
8518
+ cameraCutout: { diameter: 18 },
8519
+ safeAreaInsets: {
8520
+ top: 36,
8521
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8522
+ left: 0,
8523
+ right: 0
8524
+ },
8525
+ osVersion: ANDROID_OS_VERSION,
8526
+ iosVersion: "",
8527
+ androidApiLevel: ANDROID_API_LEVEL,
8528
+ systemName: "Android",
8529
+ manufacturer: "Samsung",
8530
+ brand: "samsung",
8531
+ modelName: "SM-S921B",
8532
+ physicalPPI: 416,
8533
+ hardwareButtons: GALAXY_HARDWARE_BUTTONS
8534
+ },
8535
+ "galaxy-s24-ultra": {
8536
+ model: "galaxy-s24-ultra",
8537
+ platform: "android",
8538
+ name: "Galaxy S24 Ultra",
8539
+ width: 384,
8540
+ // samsung publishes a 1440x3120 panel; 3.75x resolves to 384x832.
8541
+ height: 832,
8542
+ scale: 3.75,
8543
+ statusBarHeight: 36,
8544
+ landscapeStatusBarHeight: 36,
8545
+ homeIndicatorHeight: 0,
8546
+ navigationBarHeight: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8547
+ keyboardPanelHeights: GBOARD_PANEL_HEIGHTS,
8548
+ navigationBarMode: "gesture",
8549
+ displayCutout: { top: 36, bottom: 0, left: 0, right: 0 },
8550
+ cornerRadius: /* @__PURE__ */ cornerRadii(24),
8551
+ continuousCornerRadius: /* @__PURE__ */ cornerRadii(24),
8552
+ // Galaxy S24 Ultra body 162.3×79.0mm over a 72.4mm panel → ~1.5mm ≈ 9pt.
8553
+ frameInsets: /* @__PURE__ */ uniformFrameInsets(9),
8554
+ dynamicIsland: null,
8555
+ cameraCutout: { diameter: 18 },
8556
+ safeAreaInsets: {
8557
+ top: 36,
8558
+ bottom: ANDROID_GESTURE_NAV_BAR_HEIGHT,
8559
+ left: 0,
8560
+ right: 0
8561
+ },
8562
+ osVersion: ANDROID_OS_VERSION,
8563
+ iosVersion: "",
8564
+ androidApiLevel: ANDROID_API_LEVEL,
8565
+ systemName: "Android",
8566
+ manufacturer: "Samsung",
8567
+ brand: "samsung",
8568
+ modelName: "SM-S928B",
8569
+ physicalPPI: 505,
8570
+ hardwareButtons: GALAXY_HARDWARE_BUTTONS
8571
+ }
8572
+ };
8573
+ var devices = profiles;
8574
+ var DEFAULT_DEVICE = "iphone-17-pro";
8575
+ function isDeviceModel(value) {
8576
+ return Object.hasOwn(devices, value);
8577
+ }
8578
+ function listDeviceModels() {
8579
+ return Object.keys(devices).filter(isDeviceModel);
8580
+ }
8581
+ function ipadProDevice(model, name2, width, height, diagonalInches, keyboardHeight) {
8582
+ return iosDevice({
8583
+ model,
8584
+ name: name2,
8585
+ // iPad Pro 11-inch (M5) 12GB, iOS 27.0, simulator DBD4B183, UIKit probe
8586
+ // scenario `metrics`. portrait UIScreen.bounds 834×1210, scale 2,
8587
+ // nativeBounds 1668×2420. the window matched the screen.
8588
+ width,
8589
+ height,
8590
+ scale: 2,
8591
+ // portrait statusBarFrame was 834×32 at the top, and safeAreaInsets.top
8592
+ // was 32. landscape statusBarFrame stayed 32 tall while safeAreaInsets.top
8593
+ // was 10; this field is the portrait bar.
8594
+ statusBarHeight: 32,
8595
+ landscapeStatusBarHeight: 32,
8596
+ // portrait and landscape safeAreaInsets.bottom were both 20. the probe
8597
+ // has no separate home-indicator height.
8598
+ homeIndicatorHeight: 20,
8599
+ // UIScreen _displayCornerRadius, both orientations. the framebuffer
8600
+ // mask's tangent extent was not measured separately.
8601
+ cornerRadius: cornerRadii(30),
8602
+ continuousCornerRadius: cornerRadii(30),
8603
+ // housing is unsourced. the frame is the display until it is measured.
8604
+ frameInsets: uniformFrameInsets(0),
8605
+ // portrait safeAreaInsets. landscape was top 10, left 0, bottom 20, right 0.
8606
+ safeAreaInsets: { top: 32, bottom: 20, left: 0, right: 0 },
8607
+ // portrait docked keyboard frame height, UIKeyboardFrameEndUserInfoKey
8608
+ // {0, 870, 834, 340} on the 11-inch, 403 on the 13-inch. the emoji panel
8609
+ // takes the letters height on the 11-inch and 2.5pt more on the 13-inch
8610
+ // (405.5, native iOS 27 simulators).
8611
+ keyboardPanelHeights: {
8612
+ qwerty: keyboardHeight,
8613
+ pad: keyboardHeight,
8614
+ emoji: keyboardHeight + (model === "ipad-pro-11" ? 0 : 2.5)
8615
+ },
8616
+ // hypot(1668, 2420) / 11, measured native pixels over the device type's
8617
+ // 11-inch name. not a separate density read.
8618
+ physicalPPI: Math.hypot(width * 2, height * 2) / diagonalInches,
8619
+ hardwareButtons: modernButtons([0, 0], [0, 0], [0, 0], [0, 0])
8620
+ });
8621
+ }
8622
+
8623
+ // src/menuContract.ts
8624
+ var SOOTSIM_AMBIENT_GLOW_LEVELS = ["off", "soft", "full"];
8625
+ var SOOTSIM_STAGE_BACKGROUNDS = ["system", "light", "dark", "gray"];
8626
+ var SOOTSIM_RENDER_RESOLUTION_LEVELS = ["high", "medium", "low"];
8627
+
8628
+ // src/reactNativeConfigurationContract.ts
8629
+ var DEFAULT_REACT_NATIVE_CONFIGURATION = {
8630
+ // the appearance setting itself (automatic, light or dark); the resolved
8631
+ // scheme reaches workers through Appearance
8632
+ colorScheme: "auto",
8633
+ language: "en",
8634
+ preferredLanguages: Array(),
8635
+ region: "US",
8636
+ fontSize: 1,
8637
+ boldText: false,
8638
+ reduceMotion: false,
8639
+ largerAccessibilitySizes: false,
8640
+ glassTintAmount: 0.5,
8641
+ reduceTransparency: false,
8642
+ increaseContrast: false,
8643
+ showBorders: false,
8644
+ onOffLabels: false,
8645
+ differentiateWithoutColor: false,
8646
+ smartInvert: false,
8647
+ preferCrossFadeTransitions: false
8648
+ };
8649
+ var REACT_NATIVE_CONFIGURATION_KEYS = Object.keys(
8650
+ DEFAULT_REACT_NATIVE_CONFIGURATION
8651
+ ).filter(
8652
+ (key) => key in DEFAULT_REACT_NATIVE_CONFIGURATION
8653
+ );
8654
+
8655
+ // src/screenshots/preset-names.ts
8656
+ var SCREENSHOT_CANVAS_NAMES = [
8657
+ "iphone-6-9",
8658
+ "iphone-6-1",
8659
+ "ipad-pro-13",
8660
+ "android-phone",
8661
+ "android-tablet-7",
8662
+ "android-tablet-10"
8663
+ ];
8664
+ var BACKGROUND_PRESET_NAMES = ["dark", "cyan", "gold", "red"];
8665
+ var TEXT_PRESET_NAMES = [
8666
+ "bold-top",
8667
+ "editorial-left",
8668
+ "minimal-bottom",
8669
+ "none"
8670
+ ];
8671
+ var POSE_PRESET_NAMES = [
8672
+ "straight",
8673
+ "tilted-left",
8674
+ "tilted-right",
8675
+ "cut-bottom",
8676
+ "cut-top"
8677
+ ];
8678
+
8679
+ // src/settingsContract.ts
8680
+ var SIMULATED_DEVICE_SETTING_KEYS = [
8681
+ "predictiveText",
8682
+ "colorScheme",
8683
+ "reduceMotion",
8684
+ "boldText",
8685
+ "fontSize",
8686
+ "largerAccessibilitySizes",
8687
+ "glassTintAmount",
8688
+ "reduceTransparency",
8689
+ "increaseContrast",
8690
+ "showBorders",
8691
+ "onOffLabels",
8692
+ "differentiateWithoutColor",
8693
+ "smartInvert",
8694
+ "preferCrossFadeTransitions"
8695
+ ];
8696
+ var settingsSchema = {
8697
+ // device
8698
+ deviceModel: {
8699
+ type: "enum",
8700
+ default: DEFAULT_DEVICE,
8701
+ description: "device model to simulate",
8702
+ options: listDeviceModels(),
8703
+ group: "device"
8704
+ },
8705
+ posture: {
8706
+ type: "enum",
8707
+ default: "closed",
8708
+ 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",
8709
+ options: ["closed", "open"],
8710
+ group: "device"
8711
+ },
8712
+ orientation: {
8713
+ type: "enum",
8714
+ default: "portrait",
8715
+ description: "screen orientation",
8716
+ options: ["portrait", "landscape"],
8717
+ group: "device"
8718
+ },
8719
+ landscapeSide: {
8720
+ type: "enum",
8721
+ default: "left",
8722
+ description: "which landscape the device turns to: left (clockwise) or right",
8723
+ options: ["left", "right"],
8724
+ group: "device"
8725
+ },
8726
+ // an iPadOS window launches at 375 x 753 (docs/ios/ipad-window-geometry.md)
8727
+ dynamicWidth: {
8728
+ type: "number",
8729
+ default: devices.dynamic.width,
8730
+ description: "dynamic window width in points",
8731
+ group: "device",
8732
+ validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minWidth && value <= DYNAMIC_WINDOW_LIMITS.maxWidth
8733
+ },
8734
+ dynamicHeight: {
8735
+ type: "number",
8736
+ default: devices.dynamic.height,
8737
+ description: "dynamic window height in points",
8738
+ group: "device",
8739
+ validate: (value) => value >= DYNAMIC_WINDOW_LIMITS.minHeight && value <= DYNAMIC_WINDOW_LIMITS.maxHeight
8740
+ },
8741
+ osVersionOverride: {
8742
+ type: "string",
8743
+ default: "",
8744
+ description: "os version the device reports instead of its profile's (empty = the profile's version); set per launch with ?osVersion=, never saved",
8745
+ group: "device"
8746
+ },
8747
+ predictiveText: {
8748
+ type: "boolean",
8749
+ default: true,
8750
+ description: "keyboard predictive text (off hides the QuickType lane)",
8751
+ group: "device"
8752
+ },
8753
+ hardwareKeyboard: {
8754
+ type: "boolean",
8755
+ default: false,
8756
+ description: "connect the host keyboard: typing needs no on-screen keyboard",
8757
+ group: "device"
8758
+ },
8759
+ // appearance
8760
+ colorScheme: {
8761
+ type: "enum",
8762
+ default: "auto",
8763
+ description: "color scheme (auto follows system preference)",
8764
+ options: ["light", "dark", "auto"],
8765
+ group: "appearance"
8766
+ },
8767
+ reduceMotion: {
8768
+ type: "boolean",
8769
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceMotion,
8770
+ description: "reduce motion",
8771
+ group: "appearance"
8772
+ },
8773
+ boldText: {
8774
+ type: "boolean",
8775
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.boldText,
8776
+ description: "bold text",
8777
+ group: "appearance"
8778
+ },
8779
+ fontSize: {
8780
+ type: "number",
8781
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.fontSize,
8782
+ description: "font size multiplier (1.0 = default)",
8783
+ group: "appearance",
8784
+ // android permits continuous font scales; ios settings and capture urls
8785
+ // constrain their own inputs to the discrete dynamic type ramp.
8786
+ validate: (value) => value >= 0.5 && value <= 4
8787
+ },
8788
+ largerAccessibilitySizes: {
8789
+ type: "boolean",
8790
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.largerAccessibilitySizes,
8791
+ description: "show accessibility categories in the dynamic type size picker",
8792
+ group: "appearance"
8793
+ },
8794
+ reduceTransparency: {
8795
+ type: "boolean",
8796
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.reduceTransparency,
8797
+ description: "reduce transparency",
8798
+ group: "appearance"
8799
+ },
8800
+ increaseContrast: {
8801
+ type: "boolean",
8802
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.increaseContrast,
8803
+ description: "increase contrast",
8804
+ group: "appearance"
8805
+ },
8806
+ showBorders: {
8807
+ type: "boolean",
8808
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.showBorders,
8809
+ description: "show borders on text buttons",
8810
+ group: "appearance"
8811
+ },
8812
+ onOffLabels: {
8813
+ type: "boolean",
8814
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.onOffLabels,
8815
+ description: "on/off labels inside switches",
8816
+ group: "appearance"
8817
+ },
8818
+ differentiateWithoutColor: {
8819
+ type: "boolean",
8820
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.differentiateWithoutColor,
8821
+ description: "differentiate without color",
8822
+ group: "appearance"
8823
+ },
8824
+ smartInvert: {
8825
+ type: "boolean",
8826
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.smartInvert,
8827
+ description: "smart invert",
8828
+ group: "appearance"
8829
+ },
8830
+ preferCrossFadeTransitions: {
8831
+ type: "boolean",
8832
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferCrossFadeTransitions,
8833
+ description: "prefer cross-fade transitions while reduce motion is on",
8834
+ group: "appearance"
8835
+ },
8836
+ // ios persists the slider as com.apple.UIKit UIViewGlassTintAmount in steps
8837
+ // of 0.05; with the key absent the material reads the middle.
8838
+ glassTintAmount: {
8839
+ type: "number",
8840
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.glassTintAmount,
8841
+ description: "liquid glass tint amount (0 most clear, 0.5 default, 1 most tinted)",
8842
+ group: "appearance",
8843
+ validate: (value) => value >= 0 && value <= 1
8844
+ },
8845
+ // locale
8846
+ language: {
8847
+ type: "string",
8848
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.language,
8849
+ description: "language code (ISO 639-1)",
8850
+ group: "locale"
8851
+ },
8852
+ preferredLanguages: {
8853
+ type: "string-array",
8854
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.preferredLanguages,
8855
+ description: "ordered preferred language tags; empty follows language and region",
8856
+ group: "locale",
8857
+ validate: (value) => {
8858
+ if (!Array.isArray(value)) return false;
8859
+ return value.every((tag) => {
8860
+ if (typeof tag !== "string" || !tag) return false;
8861
+ try {
8862
+ return Intl.getCanonicalLocales(tag).length === 1;
8863
+ } catch {
8864
+ return false;
8865
+ }
8866
+ });
8867
+ }
8868
+ },
8869
+ region: {
8870
+ type: "string",
8871
+ default: DEFAULT_REACT_NATIVE_CONFIGURATION.region,
8872
+ description: "region code (ISO 3166-1)",
8873
+ group: "locale"
8874
+ },
8875
+ // simulator
8876
+ renderDensity: {
8877
+ type: "number",
8878
+ default: 0,
8879
+ description: "explicit render density in device pixels per point for high-resolution capture (0 = follow the render resolution level)",
8880
+ group: "simulator",
8881
+ validate: (v7) => v7 === 0 || v7 >= 1 && v7 <= 9
8882
+ },
8883
+ renderResolution: {
8884
+ type: "enum",
8885
+ default: "medium",
8886
+ description: "how many pixels Peach renders per iphone point (high = device native, medium = 2, low = on-screen pixels capped at native)",
8887
+ options: SOOTSIM_RENDER_RESOLUTION_LEVELS,
8888
+ group: "simulator"
8889
+ },
8890
+ slowAnimations: {
8891
+ type: "boolean",
8892
+ default: false,
8893
+ description: "Run simulated app and OS animations at one tenth speed",
8894
+ group: "simulator"
8895
+ },
8896
+ profilerCategories: {
8897
+ type: "string",
8898
+ default: formatProfilerCategories(DEFAULT_PROFILER_CATEGORIES),
8899
+ description: "Categories the Performance pane records, comma separated",
8900
+ group: "simulator"
8901
+ },
8902
+ showTouches: {
8903
+ type: "boolean",
8904
+ default: false,
8905
+ description: "show touch indicators",
8906
+ group: "simulator"
8907
+ },
8908
+ systemCursor: {
8909
+ type: "boolean",
8910
+ default: false,
8911
+ description: "keep the computer pointer instead of a touch cursor",
8912
+ group: "simulator"
8913
+ },
8914
+ showFrame: {
8915
+ type: "boolean",
8916
+ default: true,
8917
+ description: "show device frame",
8918
+ group: "simulator"
8919
+ },
8920
+ showMenuBar: {
8921
+ type: "boolean",
8922
+ default: true,
8923
+ description: "keep the menu bar visible instead of revealing it at the top edge",
8924
+ group: "simulator"
8925
+ },
8926
+ showRail: {
8927
+ type: "boolean",
8928
+ default: true,
8929
+ description: "keep the rail visible instead of revealing it on hover",
8930
+ group: "simulator"
8931
+ },
8932
+ agentIndicator: {
8933
+ type: "boolean",
8934
+ default: true,
8935
+ description: "show the connected agent indicator over the device while a CLI or agent drives it",
8936
+ group: "simulator"
8937
+ },
8938
+ solidWindow: {
8939
+ type: "boolean",
8940
+ default: false,
8941
+ description: "desktop app: always use the solid, freely-resizable window instead of the device-shaped transparent one (3d mode uses it regardless)",
8942
+ group: "simulator"
8943
+ },
8944
+ ambientGlow: {
8945
+ type: "enum",
8946
+ default: "off",
8947
+ description: "bleed the app's own edge colors outward behind the device, like bias lighting behind a TV (off, soft, full)",
8948
+ options: SOOTSIM_AMBIENT_GLOW_LEVELS,
8949
+ group: "simulator"
8950
+ },
8951
+ stageBackground: {
8952
+ type: "enum",
8953
+ default: "system",
8954
+ description: "the stage behind the device: system follows the computer's appearance (white in light mode, black in dark), or light, dark or gray",
8955
+ options: SOOTSIM_STAGE_BACKGROUNDS,
8956
+ group: "simulator"
8957
+ },
8958
+ stageChecker: {
8959
+ type: "boolean",
8960
+ default: true,
8961
+ description: "a faint checker pattern on the stage behind the device, under the glow",
8962
+ group: "simulator"
8963
+ },
8964
+ screenshotMode: {
8965
+ type: "boolean",
8966
+ default: false,
8967
+ description: "show screenshot composition mode in the browser shell",
8968
+ group: "simulator"
8969
+ },
8970
+ screenshotCanvasEditing: {
8971
+ type: "boolean",
8972
+ default: false,
8973
+ description: "experimental figma-style slide editing: draggable copy block, drop-in image layers (owner review pending)",
8974
+ group: "simulator"
8975
+ },
8976
+ threeMode: {
8977
+ type: "boolean",
8978
+ default: false,
8979
+ description: "show the experimental 3d device stage in the browser shell",
8980
+ group: "simulator"
8981
+ },
8982
+ threeRecordingEditor: {
8983
+ type: "boolean",
8984
+ default: false,
8985
+ description: "dock the 3d recording editor in the 3d stage (toggled from its rail)",
8986
+ group: "simulator"
8987
+ },
8988
+ screenshotCanvas: {
8989
+ type: "enum",
8990
+ default: "iphone-6-9",
8991
+ description: "target app-store canvas preset for screenshot mode",
8992
+ options: SCREENSHOT_CANVAS_NAMES,
8993
+ group: "simulator"
8994
+ },
8995
+ screenshotBackground: {
8996
+ type: "enum",
8997
+ default: "dark",
8998
+ description: "background preset rendered inside the screenshot canvas",
8999
+ options: BACKGROUND_PRESET_NAMES,
9000
+ group: "simulator"
9001
+ },
9002
+ screenshotText: {
9003
+ type: "enum",
9004
+ default: "bold-top",
9005
+ description: "text layout preset for the screenshot canvas",
9006
+ options: TEXT_PRESET_NAMES,
9007
+ group: "simulator"
9008
+ },
9009
+ screenshotPose: {
9010
+ type: "enum",
9011
+ default: "straight",
9012
+ description: "device pose preset inside the screenshot canvas",
9013
+ options: POSE_PRESET_NAMES,
9014
+ group: "simulator"
9015
+ },
9016
+ screenshotDynamicSize: {
9017
+ type: "boolean",
9018
+ default: false,
9019
+ description: "let the screenshot canvas rect fit available space (off = pin to exact preset pixels)",
9020
+ group: "simulator"
9021
+ },
9022
+ showStatusBar: {
9023
+ type: "boolean",
9024
+ default: true,
9025
+ description: "show status bar",
9026
+ group: "simulator"
9027
+ },
9028
+ showHomeIndicator: {
9029
+ type: "boolean",
9030
+ default: true,
9031
+ description: "show home indicator",
9032
+ group: "simulator"
9033
+ },
9034
+ alwaysShowLiveWebViews: {
9035
+ type: "boolean",
9036
+ default: false,
9037
+ description: "always render WebViews as live browser views",
9038
+ group: "simulator"
9039
+ },
9040
+ a11yMode: {
9041
+ type: "enum",
9042
+ default: "delayed",
9043
+ description: "accessibility tree sync mode (off, delayed=100ms, active=30ms)",
9044
+ options: ["off", "delayed", "active"],
9045
+ group: "simulator"
9046
+ },
9047
+ a11yDepth: {
9048
+ type: "enum",
9049
+ default: "deep",
9050
+ description: "accessibility tree structure depth (shallow or deep)",
9051
+ options: ["shallow", "deep"],
9052
+ group: "simulator"
9053
+ },
9054
+ inspectMode: {
9055
+ type: "boolean",
9056
+ default: false,
9057
+ description: "inspect mode",
9058
+ group: "simulator"
9059
+ },
9060
+ // privacy
9061
+ productAnalytics: {
9062
+ type: "boolean",
9063
+ default: false,
9064
+ description: "send bounded product usage analytics",
9065
+ group: "privacy"
9066
+ },
9067
+ crashReports: {
9068
+ type: "boolean",
9069
+ default: false,
9070
+ description: "send anonymous crash reports",
9071
+ group: "privacy"
9072
+ },
9073
+ sendToBoxCarryAuth: {
9074
+ type: "boolean",
9075
+ default: true,
9076
+ description: "send to box carries the signed-in session into the box it creates (off = the app boots signed out)",
9077
+ group: "privacy"
9078
+ },
9079
+ // agent — default ai agent used by the prompt bar's auto-attach + startSession.
9080
+ agentProvider: {
9081
+ type: "enum",
9082
+ default: "codex",
9083
+ description: "ai agent used by the peach agent prompt bar",
9084
+ options: ["codex", "claude"],
9085
+ group: "agent"
9086
+ }
9087
+ };
9088
+ var DEFAULT_SIMULATED_DEVICE_SETTINGS = {
9089
+ predictiveText: settingsSchema.predictiveText.default,
9090
+ colorScheme: settingsSchema.colorScheme.default,
9091
+ reduceMotion: settingsSchema.reduceMotion.default,
9092
+ boldText: settingsSchema.boldText.default,
9093
+ fontSize: settingsSchema.fontSize.default,
9094
+ largerAccessibilitySizes: settingsSchema.largerAccessibilitySizes.default,
9095
+ glassTintAmount: settingsSchema.glassTintAmount.default,
9096
+ reduceTransparency: settingsSchema.reduceTransparency.default,
9097
+ increaseContrast: settingsSchema.increaseContrast.default,
9098
+ showBorders: settingsSchema.showBorders.default,
9099
+ onOffLabels: settingsSchema.onOffLabels.default,
9100
+ differentiateWithoutColor: settingsSchema.differentiateWithoutColor.default,
9101
+ smartInvert: settingsSchema.smartInvert.default,
9102
+ preferCrossFadeTransitions: settingsSchema.preferCrossFadeTransitions.default
9103
+ };
9104
+ var PROFILE_SETTING_KEYS = [
9105
+ ...SIMULATED_DEVICE_SETTING_KEYS,
9106
+ "language",
9107
+ "region",
9108
+ "preferredLanguages"
9109
+ ];
9110
+
7703
9111
  // src/storekit-test-store.ts
7704
9112
  var import_x509 = require("@peculiar/x509");
7705
9113
  init_home_paths();
@@ -11932,7 +13340,7 @@ var import_node_path10 = require("node:path");
11932
13340
  init_src();
11933
13341
 
11934
13342
  // runtime-companion.json
11935
- var runtime_companion_default = { abi: 1, sha256: "f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b", file: "node/cli-f0ebf18540275693f13d5f0638e9e6e2afd2b8a2fa10c6d5c1190341feaa430b.cjs" };
13343
+ var runtime_companion_default = { abi: 1, sha256: "9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a", file: "node/cli-9bc75c6ccfa87cb58eff71992a2fafa21b4e7acbb37f0b4bef6f74279c98317a.cjs" };
11936
13344
 
11937
13345
  // src/cli-runtime.ts
11938
13346
  init_answeredNativePackages();