peachsim 0.1.2224 → 0.1.2225

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/cli/internal-child.ts +4 -2
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/attached-projects.cjs +1 -1
  5. package/dist-lib/auth/shared-session.cjs +1 -1
  6. package/dist-lib/backend-origin.cjs +1 -1
  7. package/dist-lib/beta.cjs +1 -1
  8. package/dist-lib/beta.mjs +1 -1
  9. package/dist-lib/bridge-constants.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.mjs +1 -1
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +1 -1
  14. package/dist-lib/bundle-channel.cjs +858 -451
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +1 -1
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +1 -1
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +1 -1
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +1 -1
  25. package/dist-lib/detox/index.cjs +1 -1
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +795 -388
  28. package/dist-lib/expo-swift-metadata.cjs +1 -1
  29. package/dist-lib/expo-swift-metadata.mjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +853 -446
  32. package/dist-lib/host/fetch-proxy-handler.cjs +54 -11
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +59 -15
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +59 -15
  48. package/dist-lib/native-app-identity-project.cjs +53 -9
  49. package/dist-lib/native-app-identity-project.mjs +84 -37
  50. package/dist-lib/native-app-identity.cjs +1 -1
  51. package/dist-lib/native-app-identity.mjs +1 -1
  52. package/dist-lib/native-firebase-metadata.cjs +1 -1
  53. package/dist-lib/native-firebase-metadata.mjs +1 -1
  54. package/dist-lib/pdfium-raster.cjs +1 -1
  55. package/dist-lib/pdfium-raster.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +26 -24
  61. package/dist-lib/public-origins-lib.json +65 -54
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +1 -1
  67. package/dist-lib/sdk.mjs +1 -1
  68. package/dist-lib/skills.cjs +901 -494
  69. package/dist-lib/swift-compile.cjs +491 -119
  70. package/dist-lib/swift-compile.mjs +629 -257
  71. package/dist-lib/swift-package.cjs +1 -1
  72. package/dist-lib/swift-package.mjs +1 -1
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +38 -2
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +1654 -1206
  78. package/dist-lib/vite.cjs +54 -11
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -1
  82. package/dist-types/packages/peach-engine/src/preview/preview-room-contract.d.ts +6 -0
  83. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +12 -0
  84. package/kotlin/sdk.tar.gz +0 -0
  85. package/package.json +1 -1
  86. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h +0 -6
  87. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h +1 -1
  88. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h +1 -1
  89. package/sdk/ios/usr/include/AvailabilityInternal.h +2 -2
  90. package/sdk/ios/usr/include/peach/pthread.h +1 -7
  91. package/sdk/ios/wasm/include/TargetConditionals.h +2 -3
  92. package/sdk/ios/wasm/include/__struct_timeval.h +15 -0
  93. package/sdk/ios/wasm/include/__typedef_suseconds_t.h +9 -0
  94. package/sdk/ios/wasm/include/limits.h +1 -1
  95. package/sdk/ios/wasm/include/machine/_types.h +1 -1
  96. package/sdk/ios/wasm/include/machine/limits.h +1 -1
  97. package/sdk/ios/wasm/include/machine/param.h +2 -2
  98. package/sdk/ios/wasm/include/math.h +13 -0
  99. package/sdk/ios/wasm/include/pthread.h +1 -13
  100. package/sdk/ios/wasm/include/sys/resource.h +3 -0
  101. package/sdk/ios/wasm/include/sys/socket.h +0 -10
  102. package/sdk/ios/wasm/include/sys/stat.h +5 -2
  103. package/sdk/ios/wasm/include/sys/time.h +16 -3
  104. package/sdk/ios/wasm/include/sys/types.h +4 -1
  105. package/sdk/ios/wasm/include/time.h +2 -0
  106. package/sdk/ios/wasm/storage-include/TargetConditionals.h +2 -3
  107. package/sdk/native-hashes.json +14 -14
  108. package/src/native-slices.ts +3 -2
  109. package/src/native-static-libraries.ts +23 -23
  110. package/src/native-swift-slices.ts +2 -2
  111. package/src/nitro-adapter.lock.json +288 -288
  112. package/src/nitro-compiler-digest.ts +0 -1
  113. package/src/nitro-dependencies.ts +8 -9
  114. package/src/nitro-superset.lock.json +4 -4
  115. package/src/react-native-core-build.ts +2 -2
  116. package/src/swift-compile.ts +132 -45
  117. package/src/swift-compiler-digest.ts +2 -0
  118. package/src/swift-cxx-standin.ts +1 -1
  119. package/src/swift-darwin-records.ts +4 -4
  120. package/src/swift-distribution-contract.ts +2 -2
  121. package/src/swift-distribution.lock.json +13 -12
  122. package/src/swift-guest-compile.ts +6 -5
  123. package/src/swift-guest-image-ledger.ts +5 -5
  124. package/src/swift-guest-link.ts +1 -1
  125. package/src/swift-guest-linked-spans.ts +7 -4
  126. package/src/swift-guest-manifest.ts +2 -2
  127. package/src/swift-guest-source-inputs.ts +16 -5
  128. package/src/swift-host.ts +10 -5
  129. package/src/swift-icu.ts +1 -1
  130. package/src/swift-objc-compile.ts +9 -4
  131. package/src/swift-objc-standin.ts +1 -4
  132. package/src/swift-package-manifest.ts +5 -1
  133. package/src/swift-packages.ts +2 -2
  134. package/src/swift-shared-sdk.ts +1 -1
  135. package/src/swift-standin-emit.ts +2 -16
  136. package/src/swift-standins.ts +111 -87
  137. package/src/swift-toolchain.ts +37 -1
  138. package/src/swift-uniform-type-constants.ts +1 -1
  139. package/src/swift-wasm-prune.ts +17 -12
  140. package/src/swiftGuestImageContract.ts +4 -4
  141. package/src/swiftNativePinContract.ts +1 -1
  142. package/src/swiftRuntimeProductContract.ts +1 -1
  143. package/src/turbo-runtime.lock.json +28 -28
  144. package/src/wasm-narrow-boundary.ts +296 -0
  145. package/src/wasm-optimize.ts +59 -14
  146. package/src/xcode-project.ts +6 -4
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2224 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2225 | (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;
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
39
39
  var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
40
40
  var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
41
41
  "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
42
- define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "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": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "29c2661be4b952101c9b9b8fd861560e6ce63b25dd4464f47475aaf72024f4fe", "swift-package.ts": "338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "25505683ca29a0b380413bf2a5026d4967eacf886e35bc11ece6e15317e5bb02", "home-paths.ts": "d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "b6e04100805ba81f14d751383416fd4aab46901a6f94f5b62f831e66c28001c1", "xcode-target-members.ts": "d49af77a690cff481b38333b5f63f6600123b1bb57f410b0adb298b010d2047b", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
42
+ define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "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": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b", "swift-package.ts": "338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "8deef5a824ed49209458a4b398cd8e88df260a0c8f1894d568279f6211866547", "home-paths.ts": "d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "40ec039e7a2920e6b4e7610986eb3ba75c5811eed4ea41570c2a7e2424911721", "xcode-target-members.ts": "d49af77a690cff481b38333b5f63f6600123b1bb57f410b0adb298b010d2047b", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -3228,7 +3228,7 @@ function readIosSdkTree(root) {
3228
3228
 
3229
3229
  // src/swift-standin-digest.ts
3230
3230
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3231
- var STANDIN_SOURCE_DIGEST = true ? "967c1c2a3b66ac640e0162783ed9e21b09ff285f8e1f7d4327b70416699e14c8" : standinSourceDigest();
3231
+ var STANDIN_SOURCE_DIGEST = true ? "7ad2d908aa8d716181e88c4bc1a8e1fb721aa69e8090d0d7ad5851f9b8de0944" : standinSourceDigest();
3232
3232
 
3233
3233
  // src/expo-native-workspace.ts
3234
3234
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -6102,6 +6102,42 @@ function peachsimPackageRoot() {
6102
6102
  var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
6103
6103
  var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
6104
6104
  var compilerArchives = {
6105
+ "swift-6.4.0-RELEASE-custom-fb42d2535739dfd2": {
6106
+ identity: "fb42d2535739dfd2",
6107
+ archive: "tar.zst",
6108
+ hosts: {
6109
+ "darwin-arm64": {
6110
+ checksum: "5e417d415ca74a435755e298a1d2d19ec47637fd03479de7a7d958eb382941f1",
6111
+ manifest: "eb5a0356aebabe89c7b2780f8809e13d6e2ad6f342fed87cf99f9a5834344363"
6112
+ },
6113
+ "linux-arm64": {
6114
+ checksum: "8ac7ad97f3d68bf485423001d1ce3cd92a8d4625313c47c8071867a9aeed3af9",
6115
+ manifest: "6126266dd65b43c43d719e4dc4d33c4ea6a3267f99f34e3638637439a995af2e"
6116
+ },
6117
+ "linux-x64": {
6118
+ checksum: "7d76463079619ba822123d250601bd35f6744ed5f8054a657ce472ce4dac76c8",
6119
+ manifest: "f1a6c0c61d15eddb2ecfa4c3a72a5154621881ac2f0c413162ff1d0f4343bd0e"
6120
+ }
6121
+ }
6122
+ },
6123
+ "swift-6.4.0-RELEASE-custom-44ecd25f163bb359": {
6124
+ identity: "44ecd25f163bb359",
6125
+ archive: "tar.zst",
6126
+ hosts: {
6127
+ "darwin-arm64": {
6128
+ checksum: "d06dda4435f99d8376179cc7a3804907aa7305513135ece6288fd8e6d4695ae6",
6129
+ manifest: "bc0d8b955f923f096dda2aa8bbb1d56176a73f3d4a4df4cc9a1f59d31417061a"
6130
+ },
6131
+ "linux-x64": {
6132
+ checksum: "f95b56440693c5de7995f10ea14c57fc7e659a161018a17f17a74b61a98e88a4",
6133
+ manifest: "c18a60b14d5c89a8b2e1dbb2b4b52342c5fb92c7f3069fdc55c985bce61683a7"
6134
+ },
6135
+ "linux-arm64": {
6136
+ checksum: "afb74ae60df2b5bd7792bfbcf29bcea03675a5c814b758dd6cb91a760c220cd2",
6137
+ manifest: "ac037f6b0fdc4a6ae582eebc22bcf811fa2becdc30d083057137fc857f3c456a"
6138
+ }
6139
+ }
6140
+ },
6105
6141
  "swift-6.4.0-RELEASE-custom-11345d60dca47496": {
6106
6142
  identity: "11345d60dca47496",
6107
6143
  archive: "tar.zst",
@@ -6434,7 +6470,7 @@ var swiftSdkProductSchema = v.pipe(
6434
6470
  v.object({
6435
6471
  id: v.string(),
6436
6472
  installName: v.string(),
6437
- target: v.literal("wasm32-unknown-wasip1"),
6473
+ target: v.literal("wasm64-unknown-wasip1"),
6438
6474
  linkNames: v.array(v.string()),
6439
6475
  // absent records declare no framework namespace, even when a library name matches.
6440
6476
  frameworkAliases: v.optional(
@@ -6603,7 +6639,13 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6603
6639
  init_src();
6604
6640
  var import_wasm_opt = require("wasm-opt");
6605
6641
  init_home_paths();
6642
+
6643
+ // src/wasm-narrow-boundary.ts
6644
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6645
+
6646
+ // src/wasm-optimize.ts
6606
6647
  var FEATURES = [
6648
+ "memory64",
6607
6649
  "threads",
6608
6650
  "bulk-memory",
6609
6651
  "bulk-memory-opt",
@@ -6616,7 +6658,8 @@ var FEATURES = [
6616
6658
  "sign-ext"
6617
6659
  ];
6618
6660
  var KEEP_WASM_NAMES = process.env.PEACH_SWIFT_NAMES === "1";
6619
- var WASM_OPTIMIZE_IDENTITY = `wasm-opt ${import_wasm_opt.BINARYEN_VERSION} -Oz ${FEATURES.join(",")}${KEEP_WASM_NAMES ? " -g" : ""}`;
6661
+ var LOWERING = ["--memory64-lowering", "--table64-lowering"];
6662
+ var WASM_LOWER_IDENTITY = `binaryen ${import_wasm_opt.BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
6620
6663
 
6621
6664
  // src/swift-icu.ts
6622
6665
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -6742,7 +6785,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
6742
6785
  var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
6743
6786
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
6744
6787
  ).join("");
6745
- var compilerSourceDigest = true ? "ae9e08389e6ab1901846342a7b347d7c10f8074172cf5d4d6505f7e955879ad4" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
6788
+ var compilerSourceDigest = true ? "645b0e6bc4e374f7c82da4d402e0ec9ddedfc49d6e5a74b73284852f1fbd4efc" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
6746
6789
  var CORE_FOUNDATION_HANDLE_IMPORTS = [
6747
6790
  "CFAllocator",
6748
6791
  "CFArray",
@@ -6771,7 +6814,7 @@ var wasmMacroEnvironment = {
6771
6814
  ...emptyMacroEnvironment,
6772
6815
  defines: /* @__PURE__ */ new Map([
6773
6816
  ["__wasm__", "1"],
6774
- ["__wasm32__", "1"],
6817
+ ["__wasm64__", "1"],
6775
6818
  ["__wasi__", "1"]
6776
6819
  ])
6777
6820
  };
@@ -6882,12 +6925,12 @@ var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
6882
6925
 
6883
6926
  // src/nitro-dependencies.ts
6884
6927
  var run4 = (0, import_node_util5.promisify)(import_node_child_process9.execFile);
6885
- var DOUBLE_CONVERSION_WASM32_BACKPORT = {
6928
+ var DOUBLE_CONVERSION_WASM64_BACKPORT = {
6886
6929
  upstreamCommit: "8857767d5b2f5a035321e3712e8cd0008840ba6b",
6887
6930
  originalSha256: "b495b11f7b61693486894f747add5b454894b8b3ca41aa1610d370ba16407ab7",
6888
- derivedSha256: "642d9f83289672def295f6a0a4f8c94823c20c3186e2b1b9ec36b436cb366da8",
6931
+ derivedSha256: "d8e40c283479c1d8682646a65a869ed42c68b6dc3fb27e502aed5291d7dd223c",
6889
6932
  before: " defined(__AARCH64EL__)\n",
6890
- after: " defined(__AARCH64EL__) || defined(__wasm32__)\n"
6933
+ after: " defined(__AARCH64EL__) || defined(__wasm64__)\n"
6891
6934
  };
6892
6935
  var RN_SHARED_DEPENDENCIES = [
6893
6936
  {
@@ -6914,7 +6957,7 @@ var RN_SHARED_DEPENDENCIES = [
6914
6957
  prefix: "double-conversion-1.1.6",
6915
6958
  headers: { from: "src", to: "double-conversion" },
6916
6959
  files: /\.(?:h|cc)$/,
6917
- backport: { file: "src/utils.h", ...DOUBLE_CONVERSION_WASM32_BACKPORT }
6960
+ backport: { file: "src/utils.h", ...DOUBLE_CONVERSION_WASM64_BACKPORT }
6918
6961
  },
6919
6962
  {
6920
6963
  name: "fast_float",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2224 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2225 | (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 __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2224 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2225 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -266,7 +266,7 @@ export interface SceneNativeBinding {
266
266
  _peach_frame_current_surface(): number;
267
267
  _peach_frame_watch(count: number): number;
268
268
  _peach_frame_scroll_drives(count: number): number;
269
- _peach_frame_scroll_drive(index: number, surface: number, slot: number, horizontal: number, start: number, period: number, displacement: number, rests: number, count: number): number;
269
+ _peach_frame_scroll_drive(index: number, surface: number, slot: number, horizontal: number, start: number, period: number, displacement: number, rests: number, layers: number, count: number): number;
270
270
  _peach_frame(hostMs: number, nowMs: number): number;
271
271
  peachFramePresent?: (mask: number, submitted: number) => number;
272
272
  readonly HEAPU8: Uint8Array;
@@ -0,0 +1,6 @@
1
+ export declare const PREVIEW_ROOM_PATH = "/__orez/room/";
2
+ export declare const PREVIEW_GUEST_ROOM_PROTOCOL = "contrast-preview-room.";
3
+ export type PreviewRoomGrant = {
4
+ token: string;
5
+ expiresAt: number;
6
+ };
@@ -8,6 +8,7 @@ import type { ShellControlEvent } from '../engine/shell-owned-values.d.ts';
8
8
  import type { AuxShellActivity } from '../ios/aux-home-scene.d.ts';
9
9
  import type { NativePreviewBundle } from '../native-preview-bundle.d.ts';
10
10
  import type { PreviewBundleStripCapture } from '../preview/bundle-variantContract.d.ts';
11
+ import type { PreviewRoomGrant } from '../preview/preview-room-contract.d.ts';
11
12
  import type { RemoteEngineClientConfig } from '../remote-stream/client-config.d.ts';
12
13
  import type { DuoFoldWireState } from '../settings/duo-fold-bus.d.ts';
13
14
  import type { ReactNativeConfigurationMutation, ReactNativeConfigurationSnapshot } from '../settings/react-native-configuration.d.ts';
@@ -394,6 +395,12 @@ export type HostToWorker = {
394
395
  ok: boolean;
395
396
  response?: SerializedAuthResponse;
396
397
  error?: string;
398
+ } | {
399
+ type: 'roomGrantResponse';
400
+ requestId: number;
401
+ ok: boolean;
402
+ grant?: PreviewRoomGrant;
403
+ error?: string;
397
404
  } | {
398
405
  type: 'a11ySync';
399
406
  enabled: boolean;
@@ -633,6 +640,11 @@ export type WorkerToHost = {
633
640
  routeKey: string;
634
641
  previewSessionId: string;
635
642
  } & SerializedAuthRequest) | {
643
+ type: 'roomGrantRequest';
644
+ requestId: number;
645
+ projectId: string;
646
+ routeKey: string;
647
+ } | {
636
648
  type: 'externalAppLifecycleResult';
637
649
  requestId: number;
638
650
  ok: boolean;
package/kotlin/sdk.tar.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2224",
3
+ "version": "0.1.2225",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -32,12 +32,6 @@
32
32
  # define CGFLOAT_MIN DBL_MIN
33
33
  # define CGFLOAT_MAX DBL_MAX
34
34
  # define CGFLOAT_EPSILON DBL_EPSILON
35
- #elif defined(__wasm32__)
36
- # define CGFLOAT_TYPE double
37
- # define CGFLOAT_IS_DOUBLE 1
38
- # define CGFLOAT_MIN DBL_MIN
39
- # define CGFLOAT_MAX DBL_MAX
40
- # define CGFLOAT_EPSILON DBL_EPSILON
41
35
  #else
42
36
  # define CGFLOAT_TYPE float
43
37
  # define CGFLOAT_IS_DOUBLE 0
@@ -30,7 +30,7 @@ enum {
30
30
  ///
31
31
  /// > Important:
32
32
  /// > The Swift overlay to the Foundation framework provides the ``CharacterSet`` structure, which bridges to the ``NSCharacterSet`` class and its mutable subclass, ``NSMutableCharacterSet``. For more information about value types, see <doc://com.apple.documentation/documentation/swift/working-with-foundation-types>.
33
- @interface NSCharacterSet : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
33
+ PEACH_SWIFT_CLASS(Foundation) @interface NSCharacterSet : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
34
34
 
35
35
  /// A character set containing the characters in Unicode General Category Cc and Cf.
36
36
  ///
@@ -1061,7 +1061,7 @@ API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0))
1061
1061
  /// > Important:
1062
1062
  /// > The Swift overlay to the Foundation framework provides the ``URLComponents`` structure, which bridges to the ``NSURLComponents`` class. For more information about value types, see <doc://com.apple.documentation/documentation/swift/working-with-foundation-types>.
1063
1063
  API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0))
1064
- @interface NSURLComponents : NSObject <NSCopying>
1064
+ PEACH_SWIFT_CLASS(Foundation) @interface NSURLComponents : NSObject <NSCopying>
1065
1065
 
1066
1066
  /// Creates a URL components object with all components left undefined.
1067
1067
  - (instancetype)init;
@@ -518,12 +518,12 @@
518
518
  #define __API_UNAVAILABLE_BEGIN15(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) __API_U_BEGIN(arg8) __API_U_BEGIN(arg9) __API_U_BEGIN(arg10) __API_U_BEGIN(arg11) __API_U_BEGIN(arg12) __API_U_BEGIN(arg13) __API_U_BEGIN(arg14) __API_U_BEGIN(arg15)
519
519
  #define __API_UNAVAILABLE_BEGIN_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,NAME,...) NAME
520
520
 
521
- /* peach: wasm32 models ios at its 27.1 deployment target, and clang and swift apply no
521
+ /* peach: wasm64 models ios at its 27.1 deployment target, and clang and swift apply no
522
522
  platform's availability attribute there. an ios or anyappleos unavailable declaration and
523
523
  an ios obsoleted one (every obsoleted version in the 27.1 sdk has passed) also take the
524
524
  platform-agnostic unavailable attribute, so they are refused as on ios. ranges keep the
525
525
  native form: #pragma clang attribute does not accept unavailable. */
526
- #if defined(__wasm32__)
526
+ #if defined(__wasm__)
527
527
  #define __API_WASM_SECOND(a, b, ...) b
528
528
  #define __API_WASM_IOS(...) __API_WASM_SECOND(__VA_ARGS__, , )
529
529
  #define __API_WASM_U_ios ~, unavailable
@@ -1,19 +1,13 @@
1
1
  #pragma once
2
2
  #include <stddef.h>
3
3
  #include <mach/mach_types.h>
4
- #if defined(__wasm__) && defined(__cplusplus)
5
- #define __PEACH_PTHREAD_NULLABLE
6
- #else
7
- #define __PEACH_PTHREAD_NULLABLE _Nullable
8
- #endif
9
4
  #ifdef __cplusplus
10
5
  extern "C" {
11
6
  #endif
12
7
  mach_port_t pthread_mach_thread_np(pthread_t) __attribute__((availability(ios,introduced=2.0)));
13
- pthread_t __PEACH_PTHREAD_NULLABLE pthread_from_mach_thread_np(mach_port_t) __attribute__((availability(ios,introduced=2.0)));
8
+ pthread_t _Nullable pthread_from_mach_thread_np(mach_port_t) __attribute__((availability(ios,introduced=2.0)));
14
9
  int pthread_getname_np(pthread_t, char *, size_t) __attribute__((availability(ios,introduced=3.2)));
15
10
  int pthread_setname_np(const char *) __attribute__((availability(ios,introduced=3.2)));
16
11
  #ifdef __cplusplus
17
12
  }
18
13
  #endif
19
- #undef __PEACH_PTHREAD_NULLABLE
@@ -359,9 +359,8 @@
359
359
  #define TARGET_CPU_ARM 1
360
360
  #elif defined(__arm64__)
361
361
  #define TARGET_CPU_ARM64 1
362
- #elif defined(__wasm32__)
363
- // arm64's selection at 32-bit pointers, as arm64_32 has it; the
364
- // machine headers take arm's selection too.
362
+ #elif defined(__wasm__)
363
+ // arm64's selection; the machine headers take arm's selection too.
365
364
  #define TARGET_CPU_ARM64 1
366
365
  #else
367
366
 
@@ -0,0 +1,15 @@
1
+ #pragma once
2
+ #include <__typedef_suseconds_t.h>
3
+ #define timeval __peach_wasi_timeval
4
+ #define suseconds_t __peach_wasi_suseconds_t
5
+ #include_next <__struct_timeval.h>
6
+ #undef suseconds_t
7
+ #undef timeval
8
+ // bits/alltypes.h reaches this from stdint, below the native timeval module.
9
+ #ifndef _STRUCT_TIMEVAL
10
+ #define _STRUCT_TIMEVAL struct timeval
11
+ _STRUCT_TIMEVAL {
12
+ time_t tv_sec;
13
+ suseconds_t tv_usec;
14
+ };
15
+ #endif
@@ -0,0 +1,9 @@
1
+ #pragma once
2
+ #define suseconds_t __peach_wasi_suseconds_t
3
+ #include_next <__typedef_suseconds_t.h>
4
+ #undef suseconds_t
5
+ #ifndef _SUSECONDS_T
6
+ #define _SUSECONDS_T
7
+ typedef int suseconds_t;
8
+ #endif
9
+ #define __DEFINED_suseconds_t
@@ -1,6 +1,6 @@
1
1
  #pragma once
2
2
  // darwin's limits.h ahead of the installed libc's. limits.h picks the
3
- // minimum thread stack by architecture; wasm32 takes arm's, as the machine
3
+ // minimum thread stack by architecture; wasm64 takes arm's, as the machine
4
4
  // headers take arm's selection.
5
5
  #include "../../usr/include/limits.h"
6
6
  #ifdef PTHREAD_STACK_MIN
@@ -32,7 +32,7 @@
32
32
  #include "i386/_types.h"
33
33
  #elif defined (__arm__) || defined (__arm64__)
34
34
  #include "arm/_types.h"
35
- #elif defined (__wasm32__)
35
+ #elif defined (__wasm__)
36
36
  // arm/_types.h's selection, except the names the installed libc also defines
37
37
  // through time_t, clock_t and mbstate_t, which keep its storage: the installed
38
38
  // headers and calls carry them.
@@ -7,7 +7,7 @@
7
7
 
8
8
  #if defined (__arm__) || defined (__arm64__)
9
9
  #include <arm/limits.h>
10
- #elif defined (__wasm32__)
10
+ #elif defined (__wasm__)
11
11
  // arm/limits.h's selection, with arm/_limits.h's clock tick in place of its
12
12
  // include. a modules build on ios takes the integer limits from clang's
13
13
  // limits.h, which includes darwin's; this view finds darwin's ahead of clang's,
@@ -35,9 +35,9 @@
35
35
  #include <i386/param.h>
36
36
  #elif defined (__arm__) || defined (__arm64__)
37
37
  #include <arm/param.h>
38
- #elif defined (__wasm32__)
38
+ #elif defined (__wasm__)
39
39
  // arm/param.h's selection, with arm/_param.h's alignment macros in place of
40
- // its include, sized by machine/_types.h's wasm32 branch.
40
+ // its include, sized by machine/_types.h's wasm branch.
41
41
 
42
42
  #include <machine/_types.h>
43
43
 
@@ -2,6 +2,19 @@
2
2
  #include_next <math.h>
3
3
 
4
4
  #ifdef __cplusplus
5
+ // libc++'s std_core imports these before its math wrapper can undefine them.
6
+ #undef fpclassify
7
+ #undef signbit
8
+ #undef isfinite
9
+ #undef isinf
10
+ #undef isnan
11
+ #undef isnormal
12
+ #undef isgreater
13
+ #undef isgreaterequal
14
+ #undef isless
15
+ #undef islessequal
16
+ #undef islessgreater
17
+ #undef isunordered
5
18
  extern "C" {
6
19
  #endif
7
20
  float __cospif(float);
@@ -43,8 +43,7 @@ int pthread_is_threaded_np(void);
43
43
  int pthread_main_np(void);
44
44
  size_t pthread_get_stacksize_np(pthread_t);
45
45
  void *pthread_get_stackaddr_np(pthread_t);
46
- // the installed libc's pthread_t is an integer, so it takes no nullability.
47
- int pthread_threadid_np(pthread_t, __uint64_t * _Nullable);
46
+ int pthread_threadid_np(pthread_t _Nullable, __uint64_t * _Nullable);
48
47
  struct __darwin_pthread_handler_rec **__peach_darwin_cleanup_stack(void);
49
48
  int pthread_cancel(pthread_t) __asm__("__peach_darwin_pthread_cancel");
50
49
  void pthread_exit(void * _Nullable) __attribute__((noreturn)) __asm__("__peach_darwin_pthread_exit");
@@ -66,17 +65,6 @@ int sched_yield(void);
66
65
  static inline void pthread_yield_np(void) { sched_yield(); }
67
66
  __END_DECLS
68
67
 
69
- #ifdef __cplusplus
70
- extern "C++" {
71
- // a native null thread names the caller; wasi stores its pthread_t as an integer.
72
- // keep the C overload preferred for integer zero.
73
- template <class = void>
74
- inline int pthread_threadid_np(decltype(nullptr), __uint64_t *id) {
75
- return pthread_threadid_np(pthread_t{}, id);
76
- }
77
- }
78
- #endif
79
-
80
68
  #define pthread_cleanup_push(func, val) \
81
69
  { \
82
70
  struct __darwin_pthread_handler_rec __handler; \
@@ -4,11 +4,14 @@
4
4
  // getrlimit and setrlimit bind to the descriptor table's darwin provider.
5
5
  // RLIMIT_STACK reports the executable's linker-owned stack bounds; setting
6
6
  // that limit remains unsupported. RLIMIT_NOFILE owns the descriptor limits.
7
+ #include <sys/time.h>
8
+ #define timeval __peach_wasi_timeval
7
9
  #define rusage __peach_wasi_rusage
8
10
  #define getrusage __peach_wasi_getrusage
9
11
  #include_next <sys/resource.h>
10
12
  #undef rusage
11
13
  #undef getrusage
14
+ #undef timeval
12
15
  #include <sys/cdefs.h>
13
16
  #include <stdint.h>
14
17
 
@@ -53,16 +53,6 @@
53
53
  #define __wasilibc___struct_sockaddr_h
54
54
  #define __wasilibc___struct_sockaddr_storage_h
55
55
 
56
- // the installed wasi header supplies this gnu message grouping to wasm
57
- // consumers. retain it around darwin's message record without importing
58
- // wasi's socket numbers or socket entry points.
59
- #ifdef _GNU_SOURCE
60
- struct mmsghdr {
61
- struct msghdr msg_hdr;
62
- unsigned int msg_len;
63
- };
64
- #endif
65
-
66
56
  __BEGIN_DECLS
67
57
  int accept(int, struct sockaddr *__restrict, socklen_t *__restrict) __asm__("__peach_darwin_accept");
68
58
  int bind(int, const struct sockaddr *, socklen_t) __asm__("__peach_darwin_bind");
@@ -1,13 +1,16 @@
1
1
  #pragma once
2
2
  // darwin's 64-bit-inode stat record, as the ios sdk orders and names it over
3
- // the installed libc's storage types, except darwin's device number, mode and
4
- // link count, which size the record. the installed libc's record orders its
3
+ // the installed libc's storage types, except darwin's device number, block
4
+ // size, mode and link count. the installed libc's record orders its
5
5
  // fields differently and has no birth time, flags or generation, so darwin's
6
6
  // stat calls bind to the darwin provider, which fills darwin's record. the
7
7
  // installed libc's declarations are renamed out of the way.
8
8
  #include <sys/_types/_dev_t.h>
9
9
  #define __DEFINED_dev_t
10
10
  #define __wasilibc___typedef_dev_t_h
11
+ #include <sys/_types/_blksize_t.h>
12
+ #define __DEFINED_blksize_t
13
+ #define __wasilibc___typedef_blksize_t_h
11
14
  #include <sys/_types/_mode_t.h>
12
15
  #include <sys/_types/_nlink_t.h>
13
16
  #define __DEFINED_nlink_t
@@ -1,10 +1,23 @@
1
1
  #pragma once
2
- // the installed libc compiles futimes out; darwin declares it, and the darwin
3
- // provider answers it over futimens.
2
+ #include <__struct_timeval.h>
3
+ #include <sys/select.h>
4
+ #define timeval __peach_wasi_timeval
5
+ #define gettimeofday __peach_wasi_gettimeofday
6
+ #define utimes __peach_wasi_utimes
7
+ #define futimesat __peach_wasi_futimesat
4
8
  #include_next <sys/time.h>
9
+ #undef futimesat
10
+ #undef utimes
11
+ #undef gettimeofday
12
+ #undef timeval
5
13
  #include <sys/cdefs.h>
6
14
  __BEGIN_DECLS
15
+ int gettimeofday(struct timeval *__restrict, void *__restrict) __asm__("__peach_darwin_gettimeofday");
16
+ int utimes(const char *, const struct timeval [2]) __asm__("__peach_darwin_utimes");
7
17
  #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
8
- int futimes(int, const struct timeval *);
18
+ int futimes(int, const struct timeval *) __asm__("__peach_darwin_futimes");
19
+ #endif
20
+ #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
21
+ int futimesat(int, const char *, const struct timeval [2]) __asm__("__peach_darwin_futimesat");
9
22
  #endif
10
23
  __END_DECLS
@@ -1,9 +1,12 @@
1
1
  #pragma once
2
- // darwin's 32-bit device number and 16-bit mode and link count; the
2
+ // darwin's 32-bit device and block sizes and 16-bit mode and link count; the
3
3
  // installed libc then skips its own.
4
4
  #include <sys/_types/_dev_t.h>
5
5
  #define __DEFINED_dev_t
6
6
  #define __wasilibc___typedef_dev_t_h
7
+ #include <sys/_types/_blksize_t.h>
8
+ #define __DEFINED_blksize_t
9
+ #define __wasilibc___typedef_blksize_t_h
7
10
  #include <sys/_types/_mode_t.h>
8
11
  #include <sys/_types/_nlink_t.h>
9
12
  #define __DEFINED_nlink_t
@@ -2,7 +2,9 @@
2
2
  // darwin's cancellation points bind to the darwin provider, which acts on a
3
3
  // pending cancel first. the installed libc has no time zone tables and leaves
4
4
  // tzset undeclared; darwin declares it.
5
+ #define clock_nanosleep __peach_wasi_clock_nanosleep
5
6
  #include_next <time.h>
7
+ #undef clock_nanosleep
6
8
  #include <sys/cdefs.h>
7
9
  #undef CLOCK_REALTIME
8
10
  #undef CLOCK_MONOTONIC
@@ -359,9 +359,8 @@
359
359
  #define TARGET_CPU_ARM 1
360
360
  #elif defined(__arm64__)
361
361
  #define TARGET_CPU_ARM64 1
362
- #elif defined(__wasm32__)
363
- // arm64's selection at 32-bit pointers, as arm64_32 has it; the
364
- // machine headers take arm's selection too.
362
+ #elif defined(__wasm__)
363
+ // arm64's selection; the machine headers take arm's selection too.
365
364
  #define TARGET_CPU_ARM64 1
366
365
  #else
367
366
 
@@ -42,37 +42,37 @@
42
42
  {
43
43
  "path": "wasm/include/machine/limits.h",
44
44
  "nativeSha256": "50345f1ab843fca787a38c552a84177e678d79dab86e714434f94f2546839357",
45
- "sha256": "f970318bcb9a7e991924f78c075ba48cf99292372088e0adc0daf9018164f839",
46
- "change": "one __wasm32__ branch before the native #else: arm/limits.h's selection inline, with arm/_limits.h's __DARWIN_CLK_TCK in place of its include and USE_CLANG_LIMITS fixed at 0",
47
- "reason": "the native selection errors on any architecture but i386, x86_64, arm and arm64. wasm32 takes arm's values, as machine/_types.h does. A modules build on iOS takes the integer limits from clang's limits.h, which includes Darwin's; the wasm view finds Darwin's ahead of clang's, whose builtin module would bring the installed libc's limits with it, so the branch always defines them."
45
+ "sha256": "6ddbb4cbe4ac27fa312f9d022ee97dbff1eb62d02651787ae97a0abfc4909311",
46
+ "change": "one __wasm__ branch before the native #else: arm/limits.h's selection inline, with arm/_limits.h's __DARWIN_CLK_TCK in place of its include and USE_CLANG_LIMITS fixed at 0",
47
+ "reason": "the native selection errors on any architecture but i386, x86_64, arm and arm64. wasm64 takes arm's values, as machine/_types.h does. A modules build on iOS takes the integer limits from clang's limits.h, which includes Darwin's; the wasm view finds Darwin's ahead of clang's, whose builtin module would bring the installed libc's limits with it, so the branch always defines them."
48
48
  },
49
49
  {
50
50
  "path": "wasm/include/machine/param.h",
51
51
  "nativeSha256": "9a03a8edbbe2c4718553013b97dbac07113610350f983994aa53db0db07e0bb5",
52
- "sha256": "1a99458687187baf7ffa2e645031d6030099f42fb2f1c404057d66e15ca315bc",
53
- "change": "one __wasm32__ branch before the native #else: arm/param.h's body inline, with arm/_param.h's alignment macros in place of its include",
54
- "reason": "the native selection errors on wasm32. The alignment macros size by __darwin_size_t, which machine/_types.h's wasm32 branch gives its 32-bit width, so ALIGNBYTES is 3 where arm64's is 7."
52
+ "sha256": "3c6d6d6c1431737fd1f1b0a4e7c3e57353ee3e24473ce98a1b30f020733ea3eb",
53
+ "change": "one __wasm__ branch before the native #else: arm/param.h's body inline, with arm/_param.h's alignment macros in place of its include",
54
+ "reason": "the native selection errors on wasm64. The alignment macros size by __darwin_size_t, which machine/_types.h's wasm branch gives arm64's 64-bit width, so ALIGNBYTES is 7 as on arm64."
55
55
  },
56
56
  {
57
57
  "path": "wasm/include/limits.h",
58
58
  "nativeSha256": "4e09d7a2307887fe787c65e31d63747720c4d462b7ba3bf8f45e401d74f0b246",
59
- "sha256": "3a6a0849c24602ac9d9c6a6a581824478c356f6ce48402e984af6aa92877a097",
59
+ "sha256": "aa80fd302a2c5c454bd68beacb02503841b208ab0f4967e9a10d438d0f8ea977",
60
60
  "change": "an overlay that includes the native usr/include/limits.h unchanged, then redefines PTHREAD_STACK_MIN from 8192 to 16384",
61
- "reason": "the native limits.h picks PTHREAD_STACK_MIN by architecture, 16384 on arm and arm64 and 8192 otherwise, so wasm32 fell to 8192. wasm32 takes arm's selection, as machine/limits.h and machine/param.h do."
61
+ "reason": "the native limits.h picks PTHREAD_STACK_MIN by architecture, 16384 on arm and arm64 and 8192 otherwise, so wasm64 fell to 8192. wasm64 takes arm's selection, as machine/limits.h and machine/param.h do."
62
62
  },
63
63
  {
64
64
  "path": "wasm/storage-include/TargetConditionals.h",
65
65
  "nativeSha256": "360da32035906990624ed5f6091bed7b90354c0c1edfaabf2c2c3187ff18ca15",
66
- "sha256": "07a98af9ba61d990d9852c31187f62d4c2b94d79c783819e56635deca1d5d051",
67
- "change": "one __wasm32__ branch in the GCC and clang CPU selection, after __arm64__: TARGET_CPU_ARM64 1",
68
- "reason": "the native selection errors with \"unrecognized GNU C compiler\" on wasm32. wasm32 takes arm64 at 32-bit pointers, the pairing arm64_32 has: TARGET_CPU_ARM64 1, and TARGET_RT_64_BIT 0 by the native __LP64__ rule. The native header's TARGET_RT_64_BIT readers in the 27.1 SDK are CFBundleRefNum, for a Resource Manager API unavailable on iOS, and AudioToolbox declarations unavailable on iOS; its TARGET_CPU readers sit under TARGET_OS_OSX or TARGET_OS_MACCATALYST."
66
+ "sha256": "f5d39102689c33d0164009a2f73791afdba6712d9f4841577b6620ffe95375a8",
67
+ "change": "one __wasm__ branch in the GCC and clang CPU selection, after __arm64__: TARGET_CPU_ARM64 1",
68
+ "reason": "the native selection errors with \"unrecognized GNU C compiler\" on wasm64. wasm64 takes arm64's selection: TARGET_CPU_ARM64 1, and TARGET_RT_64_BIT 1 by the native __LP64__ rule."
69
69
  },
70
70
  {
71
71
  "path": "usr/include/AvailabilityInternal.h",
72
72
  "nativeSha256": "2feea55df645efe7dd796a5eb237c090f5a510c47a00a6f91bfe68b987bf1414",
73
- "sha256": "94b4d1b52aacc04ddb0f4eb164e0e7ec38be1fc8a39922e6ffeea66cd44a89e7",
74
- "change": "one block after __API_UNAVAILABLE_BEGIN_GET_MACRO_93585900, under __wasm32__: __API_U adds the platform-agnostic unavailable attribute for ios and anyappleos, and __API_O and __API_OR add it for ios",
75
- "reason": "wasm32 models iOS at its 27.1 deployment target, but clang and Swift apply no platform's availability attribute on wasm32, so API_UNAVAILABLE(ios) and API_OBSOLETED declarations compiled as available. Every introduced version in the 27.1 SDK is at most 27.1 and every obsoleted version at most 27.0, so introduced declarations stay available and obsoleted ones are refused, as at that deployment target. API_*_BEGIN ranges keep the native form because #pragma clang attribute does not accept unavailable, and deprecations stay native because the preprocessor cannot compare a dotted version with 27.1."
73
+ "sha256": "eeec299320e534f06ece5587df548edfa32ad9868874aa3423cb062bae5783dc",
74
+ "change": "one block after __API_UNAVAILABLE_BEGIN_GET_MACRO_93585900, under __wasm__: __API_U adds the platform-agnostic unavailable attribute for ios and anyappleos, and __API_O and __API_OR add it for ios",
75
+ "reason": "wasm64 models iOS at its 27.1 deployment target, but clang and Swift apply no platform's availability attribute on wasm64, so API_UNAVAILABLE(ios) and API_OBSOLETED declarations compiled as available. Every introduced version in the 27.1 SDK is at most 27.1 and every obsoleted version at most 27.0, so introduced declarations stay available and obsoleted ones are refused, as at that deployment target. API_*_BEGIN ranges keep the native form because #pragma clang attribute does not accept unavailable, and deprecations stay native because the preprocessor cannot compare a dotted version with 27.1."
76
76
  },
77
77
  {
78
78
  "path": "System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes",