peachsim 0.1.1814 → 0.1.1815

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 (105) hide show
  1. package/cli/commands/control.ts +5 -2
  2. package/cli/commands/inspect.ts +43 -385
  3. package/cli/commands/package.ts +6 -1
  4. package/cli/commands/runtime.ts +2 -2
  5. package/cli/outbound-endpoints.ts +1 -1
  6. package/dist-lib/agent-daemon-client.cjs +1 -1
  7. package/dist-lib/agent-events.cjs +1 -1
  8. package/dist-lib/attached-projects.cjs +1 -1
  9. package/dist-lib/auth/shared-session.cjs +1 -1
  10. package/dist-lib/backend-origin.cjs +1 -1
  11. package/dist-lib/beta.cjs +1 -1
  12. package/dist-lib/beta.mjs +1 -1
  13. package/dist-lib/bridge-constants.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.mjs +1 -1
  16. package/dist-lib/bridge-contract.cjs +1 -1
  17. package/dist-lib/bridge-contract.mjs +1 -1
  18. package/dist-lib/bundle-channel.cjs +453 -331
  19. package/dist-lib/capture-contract.cjs +1 -1
  20. package/dist-lib/capture-contract.mjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud-test-args.cjs +1 -1
  24. package/dist-lib/cloud-test-args.mjs +1 -1
  25. package/dist-lib/cloud.cjs +1 -1
  26. package/dist-lib/cloud.mjs +1 -1
  27. package/dist-lib/config.cjs +1 -1
  28. package/dist-lib/config.mjs +1 -1
  29. package/dist-lib/detox/index.cjs +89 -14
  30. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  31. package/dist-lib/expo-swift-bundle.cjs +26 -18
  32. package/dist-lib/expo-swift-metadata.cjs +1 -1
  33. package/dist-lib/expo-swift-metadata.mjs +1 -1
  34. package/dist-lib/home-paths.cjs +1 -1
  35. package/dist-lib/host/bridge-host.cjs +464 -336
  36. package/dist-lib/host/fetch-proxy-handler.cjs +14 -12
  37. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  38. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  39. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  40. package/dist-lib/host/websocket-proxy.cjs +1 -1
  41. package/dist-lib/index.cjs +15 -14
  42. package/dist-lib/jump-to-source-babel.cjs +1 -1
  43. package/dist-lib/jump-to-source-native.cjs +1 -1
  44. package/dist-lib/kotlin-host.cjs +1 -1
  45. package/dist-lib/menu.cjs +1 -1
  46. package/dist-lib/menu.mjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  49. package/dist-lib/metro-production-bundle.cjs +1 -1
  50. package/dist-lib/metro-production-bundle.mjs +1 -1
  51. package/dist-lib/metro.cjs +15 -14
  52. package/dist-lib/native-app-identity-project.cjs +4 -3
  53. package/dist-lib/native-app-identity-project.mjs +4 -3
  54. package/dist-lib/native-app-identity.cjs +1 -1
  55. package/dist-lib/native-app-identity.mjs +1 -1
  56. package/dist-lib/native-firebase-metadata.cjs +1 -1
  57. package/dist-lib/native-firebase-metadata.mjs +1 -1
  58. package/dist-lib/pdfium-raster.cjs +1 -1
  59. package/dist-lib/pdfium-raster.mjs +1 -1
  60. package/dist-lib/plist.cjs +1 -1
  61. package/dist-lib/plist.mjs +1 -1
  62. package/dist-lib/profiles.cjs +1 -1
  63. package/dist-lib/public-brand.cjs +1 -1
  64. package/dist-lib/public-origins-lib-esm.json +24 -24
  65. package/dist-lib/public-origins-lib.json +66 -63
  66. package/dist-lib/react-native-host-modules.cjs +1 -1
  67. package/dist-lib/react-native-host-modules.mjs +1 -1
  68. package/dist-lib/reap-browser.cjs +1 -1
  69. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  70. package/dist-lib/sdk.cjs +1 -1
  71. package/dist-lib/sdk.mjs +1 -1
  72. package/dist-lib/skills.cjs +503 -342
  73. package/dist-lib/swift-compile.cjs +4 -3
  74. package/dist-lib/swift-compile.mjs +4 -3
  75. package/dist-lib/swift-package.cjs +1 -1
  76. package/dist-lib/swift-package.mjs +1 -1
  77. package/dist-lib/swift-submit.cjs +1 -1
  78. package/dist-lib/swift-submit.mjs +1 -1
  79. package/dist-lib/swift-toolchain.cjs +1 -1
  80. package/dist-lib/swift.cjs +1 -1
  81. package/dist-lib/vite-swift.cjs +26 -18
  82. package/dist-lib/vite.cjs +14 -12
  83. package/dist-lib/worklet-executable.cjs +1 -1
  84. package/dist-lib/worklet-executable.mjs +1 -1
  85. package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +2 -0
  86. package/package.json +1 -1
  87. package/runtime-companion.json +1 -1
  88. package/src/cli-runtime.ts +32 -4
  89. package/src/expo-swift-ready.ts +16 -2
  90. package/src/installed-native-libraries.ts +79 -18
  91. package/src/nitro-adapter.lock.json +240 -240
  92. package/src/nitro-compile.ts +6 -3
  93. package/src/nitro-dependencies.ts +8 -2
  94. package/src/nitro-source.ts +34 -3
  95. package/src/nitro-superset.lock.json +14 -14
  96. package/src/nitroContract.ts +26 -3
  97. package/src/runtime-delivery.ts +2 -2
  98. package/src/swift-compile.ts +2 -1
  99. package/src/swift-distribution.lock.json +9 -8
  100. package/src/swift-installed-targets.ts +13 -0
  101. package/src/swift-standins.ts +8 -2
  102. package/src/turbo-bundle.ts +20 -1
  103. package/src/turbo-compile.ts +6 -12
  104. package/src/turbo-runtime.lock.json +19 -19
  105. package/src/turbo-source.ts +16 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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;
@@ -7500,7 +7500,8 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
7500
7500
  TOCropViewController: [],
7501
7501
  RiveRuntime: ["MetalKit"],
7502
7502
  MetalKit: ["ModelIO"],
7503
- DatadogCore: [],
7503
+ DatadogInternal: [],
7504
+ DatadogCore: ["DatadogInternal"],
7504
7505
  DatadogLogs: ["DatadogCore"],
7505
7506
  DatadogRUM: ["DatadogCore"],
7506
7507
  DatadogTrace: ["DatadogCore"],
@@ -7852,7 +7853,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
7852
7853
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
7853
7854
  var MULTI_MANIFEST_VERSION = 65;
7854
7855
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
7855
- var compilerSourceDigest = true ? "d62fae69578799a35cdf0157f54acf3e1a0c1688de92c4c991c69287b9e562bb" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
7856
+ var compilerSourceDigest = true ? "f6bf05da9a8bbde24169c3c8ff29e36d48f13ea9f817f33a350da3c475783ddd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
7856
7857
  function swiftArtifactHash(input, release, moduleRoot) {
7857
7858
  const hash = (0, import_node_crypto8.createHash)("sha256");
7858
7859
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -7469,7 +7469,8 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
7469
7469
  TOCropViewController: [],
7470
7470
  RiveRuntime: ["MetalKit"],
7471
7471
  MetalKit: ["ModelIO"],
7472
- DatadogCore: [],
7472
+ DatadogInternal: [],
7473
+ DatadogCore: ["DatadogInternal"],
7473
7474
  DatadogLogs: ["DatadogCore"],
7474
7475
  DatadogRUM: ["DatadogCore"],
7475
7476
  DatadogTrace: ["DatadogCore"],
@@ -7821,7 +7822,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
7821
7822
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
7822
7823
  var MULTI_MANIFEST_VERSION = 65;
7823
7824
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
7824
- var compilerSourceDigest = true ? "d62fae69578799a35cdf0157f54acf3e1a0c1688de92c4c991c69287b9e562bb" : swiftCompilerSourceDigest(import.meta.dirname);
7825
+ var compilerSourceDigest = true ? "f6bf05da9a8bbde24169c3c8ff29e36d48f13ea9f817f33a350da3c475783ddd" : swiftCompilerSourceDigest(import.meta.dirname);
7825
7826
  function swiftArtifactHash(input, release, moduleRoot) {
7826
7827
  const hash = createHash8("sha256");
7827
7828
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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;
@@ -11751,7 +11751,8 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
11751
11751
  TOCropViewController: [],
11752
11752
  RiveRuntime: ["MetalKit"],
11753
11753
  MetalKit: ["ModelIO"],
11754
- DatadogCore: [],
11754
+ DatadogInternal: [],
11755
+ DatadogCore: ["DatadogInternal"],
11755
11756
  DatadogLogs: ["DatadogCore"],
11756
11757
  DatadogRUM: ["DatadogCore"],
11757
11758
  DatadogTrace: ["DatadogCore"],
@@ -12103,7 +12104,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12103
12104
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12104
12105
  var MULTI_MANIFEST_VERSION = 65;
12105
12106
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12106
- var compilerSourceDigest = true ? "d62fae69578799a35cdf0157f54acf3e1a0c1688de92c4c991c69287b9e562bb" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12107
+ var compilerSourceDigest = true ? "f6bf05da9a8bbde24169c3c8ff29e36d48f13ea9f817f33a350da3c475783ddd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12107
12108
  function swiftArtifactHash(input, release, moduleRoot) {
12108
12109
  const hash = (0, import_node_crypto8.createHash)("sha256");
12109
12110
  hash.update(`swift-compile
@@ -19085,7 +19086,7 @@ async function installVerifiedTarball(tarball) {
19085
19086
  }
19086
19087
  try {
19087
19088
  if (!presentAtStart && import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker))) {
19088
- tarball.verify?.(destDir);
19089
+ await tarball.verify?.(destDir);
19089
19090
  return;
19090
19091
  }
19091
19092
  await installVerifiedTarballLocked(tarball, presentAtStart);
@@ -19129,14 +19130,14 @@ async function installVerifiedTarballLocked(tarball, presentAtStart) {
19129
19130
  if (!import_node_fs24.default.existsSync(import_node_path25.default.join(tmpDir, installedMarker))) {
19130
19131
  throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
19131
19132
  }
19132
- tarball.verify?.(tmpDir);
19133
+ await tarball.verify?.(tmpDir);
19133
19134
  signal?.throwIfAborted();
19134
19135
  try {
19135
19136
  import_node_fs24.default.renameSync(tmpDir, destDir);
19136
19137
  } catch (err) {
19137
19138
  if (!isErrnoCode(err, "ENOTEMPTY", "EEXIST")) throw err;
19138
19139
  if (!presentAtStart && import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker))) {
19139
- tarball.verify?.(destDir);
19140
+ await tarball.verify?.(destDir);
19140
19141
  return;
19141
19142
  }
19142
19143
  const aside = `${tmpDir}-replaced`;
@@ -19151,7 +19152,7 @@ async function installVerifiedTarballLocked(tarball, presentAtStart) {
19151
19152
  if (!isErrnoCode(landErr, "ENOTEMPTY", "EEXIST") || !import_node_fs24.default.existsSync(import_node_path25.default.join(destDir, installedMarker))) {
19152
19153
  throw landErr;
19153
19154
  }
19154
- tarball.verify?.(destDir);
19155
+ await tarball.verify?.(destDir);
19155
19156
  } finally {
19156
19157
  import_node_fs24.default.rmSync(aside, { recursive: true, force: true });
19157
19158
  }
@@ -20777,12 +20778,12 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
20777
20778
 
20778
20779
  // src/swift-distribution.lock.json
20779
20780
  var swift_distribution_lock_default = {
20780
- id: "6742aac7746a6ce9",
20781
+ id: "92d08dea86eafc17",
20781
20782
  release: "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c",
20782
20783
  wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-5d385b68",
20783
20784
  wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-5d385b68.artifactbundle.tar.gz",
20784
20785
  wasmSdkChecksum: "d91882af99821a296c3db4459896b46ceaef37e9a30caad14e5f24cf6b964ae9",
20785
- source: "af1852646c60b5cde579f3465df69967e16810b3",
20786
+ source: "e5fb86f09228f6a9802a802657fea000ed6a3118",
20786
20787
  targets: [
20787
20788
  "ImagePlayground",
20788
20789
  "QuickLookThumbnailing",
@@ -20916,6 +20917,7 @@ var swift_distribution_lock_default = {
20916
20917
  "ModelIOEnums",
20917
20918
  "ModelIO",
20918
20919
  "MetalKit",
20920
+ "DatadogInternal",
20919
20921
  "DatadogCore",
20920
20922
  "DatadogLogs",
20921
20923
  "DatadogRUM",
@@ -21008,16 +21010,16 @@ var swift_distribution_lock_default = {
21008
21010
  },
21009
21011
  hosts: {
21010
21012
  "darwin-arm64": {
21011
- sha256: "80c63bad6b21a02244c09832dd1344a1aa52894bf5ed391b94771b036f385d08",
21012
- size: 99101780
21013
+ sha256: "b97c1ef24c74d88fe5b03240ac21017959884861a7ab3d298bc4b97e74e1bd02",
21014
+ size: 98848007
21013
21015
  },
21014
21016
  "linux-x64": {
21015
- sha256: "9f58c786fa96313a3aefe564c7af5eadda21a22ac996df49d16bfdd2c73456be",
21016
- size: 101818987
21017
+ sha256: "2beb12ad379dc2e618029a69c36b92d55c8f1b43b78e9600d97c13f17a1dab8f",
21018
+ size: 101566420
21017
21019
  },
21018
21020
  "linux-arm64": {
21019
- sha256: "2174623c31e5909128486b5516976060004d80697bdfcf46198b6150f7de1cc8",
21020
- size: 101312935
21021
+ sha256: "5ea72a514d3f67aaf477babb848c14177b57b6cbc1671ea075075586a4c38d6a",
21022
+ size: 101056003
21021
21023
  }
21022
21024
  }
21023
21025
  };
@@ -24763,7 +24765,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
24763
24765
  }
24764
24766
  return hash.digest("hex");
24765
24767
  }
24766
- var STANDIN_SOURCE_DIGEST = true ? "f61e678df21a92da7fd50325f04848c1ad55068f560f9431a8d1c4e40e27de89" : standinSourceDigest();
24768
+ var STANDIN_SOURCE_DIGEST = true ? "bcab0947a5f2c96b28cbf3a9de81a4e4de8711a17b0d7622fbc8f8c5fcee3d76" : standinSourceDigest();
24767
24769
 
24768
24770
  // src/swift-standins.ts
24769
24771
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -25552,12 +25554,18 @@ var OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/
25552
25554
  function stageDeclaredFramework(framework, declared, imports2, sdkHeader, destination) {
25553
25555
  const name3 = import_node_path39.default.basename(framework, ".framework");
25554
25556
  const own = `${name3}-Swift.h`;
25555
- const modulemap = import_node_fs37.default.readFileSync(
25557
+ const declaration = import_node_fs37.default.readFileSync(
25556
25558
  import_node_path39.default.join(framework, "Modules/module.modulemap"),
25557
25559
  "utf8"
25558
25560
  );
25561
+ const modulemap = declaration.includes(`framework module ${name3}`) ? declaration : `framework module ${name3} {
25562
+ umbrella header "${name3}-umbrella.h"
25563
+ export *
25564
+ }
25565
+ `;
25559
25566
  const umbrella = /umbrella header "([^"]+)"/.exec(modulemap)?.[1];
25560
- if (!umbrella) throw new Error(`${name3} module map names no umbrella header`);
25567
+ if (!umbrella || !import_node_fs37.default.existsSync(import_node_path39.default.join(framework, "Headers", umbrella)))
25568
+ throw new Error(`${name3} module map names no umbrella header`);
25561
25569
  const headers = new Map(
25562
25570
  import_node_fs37.default.readdirSync(import_node_path39.default.join(framework, "Headers")).filter(
25563
25571
  (file) => file.endsWith(".h") && file !== umbrella && file !== own && file !== `${name3}.h`
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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;
@@ -184,15 +184,6 @@ var import_node_fs2 = require("node:fs");
184
184
  var import_node_module = require("node:module");
185
185
  var import_node_path2 = require("node:path");
186
186
 
187
- // runtime-companion.json
188
- var runtime_companion_default = { abi: 1, sha256: "58cc17038ff9baf52198a5edfd081d9a60236469948361b70f2471760d394d3e", file: "node/cli-58cc17038ff9baf52198a5edfd081d9a60236469948361b70f2471760d394d3e.cjs" };
189
-
190
- // src/runtime-assets.ts
191
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
192
- var import_fs = __toESM(require("fs"), 1);
193
- var import_path = __toESM(require("path"), 1);
194
- var import_url = require("url");
195
-
196
187
  // ../contrast-runtime-delivery/src/index.ts
197
188
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
198
189
 
@@ -211,6 +202,15 @@ function isValidRuntimeVersion(value) {
211
202
  return value.length <= 100 && /^[0-9A-Za-z][0-9A-Za-z._+-]*$/.test(value);
212
203
  }
213
204
 
205
+ // runtime-companion.json
206
+ var runtime_companion_default = { abi: 1, sha256: "d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c", file: "node/cli-d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c.cjs" };
207
+
208
+ // src/runtime-assets.ts
209
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
210
+ var import_fs = __toESM(require("fs"), 1);
211
+ var import_path = __toESM(require("path"), 1);
212
+ var import_url = require("url");
213
+
214
214
  // src/home-paths.ts
215
215
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
216
216
  var import_node_fs = __toESM(require("node:fs"), 1);
@@ -490,13 +490,15 @@ function cliCompanionPath() {
490
490
  return `node/cli-${runtime_companion_default.sha256}.cjs`;
491
491
  }
492
492
  function verifyCliCompanion(root) {
493
- const file = (0, import_node_path2.join)(root, cliCompanionPath());
493
+ verifyCompanionFile((0, import_node_path2.join)(root, cliCompanionPath()));
494
+ }
495
+ function verifyCompanionFile(file) {
494
496
  let bytes;
495
497
  try {
496
498
  bytes = (0, import_node_fs2.readFileSync)(file);
497
499
  } catch (error) {
498
500
  if (error instanceof Error) {
499
- const missing2 = "code" in error && error.code === "ENOENT" ? "; this runtime has no companion for this CLI (it was published before this CLI, or the file was removed after unpacking), run `peach runtime install` for the latest runtime and check Windows Security protection history if it repeats" : "";
501
+ const missing2 = "code" in error && error.code === "ENOENT" ? "; run `peach runtime install`, which fetches the companion this CLI published, and check Windows Security protection history if it repeats" : "";
500
502
  error.message = `Could not read Peach runtime companion ${file}: ${error.message}${missing2}`;
501
503
  }
502
504
  throw error;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -14,6 +14,8 @@ export interface NativeReplayObservation {
14
14
  clipRectangular: boolean;
15
15
  clipAntialiased: boolean;
16
16
  inkBounds: [number, number, number, number];
17
+ recordDpr: number | null;
18
+ walkDpr: number | null;
17
19
  }
18
20
  export interface CanvasKitReplayApi {
19
21
  p15(rows: number, frames: number, tag: number, target: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1814",
3
+ "version": "0.1.1815",
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",
@@ -1 +1 @@
1
- {"abi":1,"sha256":"58cc17038ff9baf52198a5edfd081d9a60236469948361b70f2471760d394d3e","file":"node/cli-58cc17038ff9baf52198a5edfd081d9a60236469948361b70f2471760d394d3e.cjs"}
1
+ {"abi":1,"sha256":"d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c","file":"node/cli-d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c.cjs"}
@@ -1,7 +1,8 @@
1
1
  import { createHash } from 'node:crypto'
2
- import { readFileSync } from 'node:fs'
2
+ import { readFileSync, renameSync, rmSync } from 'node:fs'
3
3
  import { createRequire } from 'node:module'
4
4
  import { join } from 'node:path'
5
+ import { downloadToFile } from '@contrast/runtime-delivery'
5
6
  import companionIdentity from '../runtime-companion.json' with { type: 'json' }
6
7
  import {
7
8
  resolveActiveRuntimeRoot,
@@ -16,16 +17,18 @@ export function cliCompanionPath(): string {
16
17
  }
17
18
 
18
19
  export function verifyCliCompanion(root: string): void {
19
- const file = join(root, cliCompanionPath())
20
+ verifyCompanionFile(join(root, cliCompanionPath()))
21
+ }
22
+
23
+ function verifyCompanionFile(file: string): void {
20
24
  let bytes: Buffer
21
25
  try {
22
26
  bytes = readFileSync(file)
23
27
  } catch (error) {
24
28
  if (error instanceof Error) {
25
- // a runtime carries the companions of CLIs published before it, never a later one
26
29
  const missing =
27
30
  'code' in error && error.code === 'ENOENT'
28
- ? '; this runtime has no companion for this CLI (it was published before this CLI, or the file was removed after unpacking), run `peach runtime install` for the latest runtime and check Windows Security protection history if it repeats'
31
+ ? '; run `peach runtime install`, which fetches the companion this CLI published, and check Windows Security protection history if it repeats'
29
32
  : ''
30
33
  error.message = `Could not read Peach runtime companion ${file}: ${error.message}${missing}`
31
34
  }
@@ -39,6 +42,31 @@ export function verifyCliCompanion(root: string): void {
39
42
  }
40
43
  }
41
44
 
45
+ // a runtime carries the companions of CLIs published before it. a CLI newer
46
+ // than its runtime fetches the companion its own release published, bound by
47
+ // the same exact hash, so a CLI never waits for a runtime release.
48
+ export async function ensureCliCompanion(root: string): Promise<void> {
49
+ const file = join(root, cliCompanionPath())
50
+ try {
51
+ verifyCompanionFile(file)
52
+ return
53
+ } catch (error) {
54
+ if (!(error instanceof Error && 'code' in error && error.code === 'ENOENT'))
55
+ throw error
56
+ }
57
+ const staged = `${file}.${process.pid}`
58
+ try {
59
+ await downloadToFile(
60
+ `https://r2.rnxsim.com/rnx-cli/companions/cli-${companionIdentity.sha256}.cjs`,
61
+ staged,
62
+ )
63
+ verifyCompanionFile(staged)
64
+ renameSync(staged, file)
65
+ } finally {
66
+ rmSync(staged, { force: true })
67
+ }
68
+ }
69
+
42
70
  let loaded: { root: string; runtime: typeof CliRuntime } | undefined
43
71
 
44
72
  // select once per runtime, verify before evaluation, and retain the real functions
@@ -1,6 +1,7 @@
1
1
  import { getCliVersion } from './cli-version'
2
2
  import { LAUNCH_METADATA_QUERY_PARAM, readLaunchMetadata } from './launchMetadataContract'
3
3
  import { NATIVE_PREPARE_QUERY_PARAM } from './nativePreparationContract'
4
+ import { readTurboMetadata } from './nitroContract'
4
5
  import { nodeHttpFetch } from './node-http-fetch'
5
6
  import { getRuntimePlatformAdapter } from './runtimePlatformContract.ts'
6
7
  import type { RuntimePlatform } from './device-catalog.ts'
@@ -20,6 +21,8 @@ export type ExpoSwiftReadyOptions = {
20
21
  progressMs?: number
21
22
  signal?: AbortSignal
22
23
  onProgress?: (elapsedMs: number) => void
24
+ /** lines worth reporting from the endpoint's answer. */
25
+ notes?: (body: string) => string[]
23
26
  }
24
27
 
25
28
  export async function awaitExpoSwiftReady(
@@ -71,8 +74,9 @@ export async function awaitExpoSwiftReady(
71
74
  `${endpointUrl} answered ${res.status}${body ? `: ${body}` : ''}${hint}`,
72
75
  )
73
76
  }
74
- await res.text()
77
+ const answer = await res.text()
75
78
  console.log(` ${label} ready in ${((Date.now() - start) / 1000).toFixed(1)}s`)
79
+ for (const note of options.notes?.(answer) ?? []) console.log(` ${note}`)
76
80
  } finally {
77
81
  clearInterval(progress)
78
82
  }
@@ -127,7 +131,17 @@ export async function awaitStampedExpoSwiftReady(
127
131
  ? awaitExpoSwiftReady(preparationUrl(nitro), { signal: linked }, 'nitro modules')
128
132
  : null,
129
133
  turbo
130
- ? awaitExpoSwiftReady(preparationUrl(turbo), { signal: linked }, 'turbo modules')
134
+ ? awaitExpoSwiftReady(
135
+ preparationUrl(turbo),
136
+ {
137
+ signal: linked,
138
+ notes: (answer) =>
139
+ (readTurboMetadata(JSON.parse(answer))?.unavailable ?? []).map(
140
+ ({ name, diagnostic }) => `${name} is unavailable: ${diagnostic}`,
141
+ ),
142
+ },
143
+ 'turbo modules',
144
+ )
131
145
  : null,
132
146
  ])
133
147
  } catch (error) {
@@ -1,5 +1,7 @@
1
1
  // CocoaPods selects original source membership and header search roots;
2
- // verified native slices supply each declared vendored archive.
2
+ // verified native slices supply each declared vendored archive. a provider
3
+ // that links a prebuilt Apple binary with no WebAssembly build is unavailable,
4
+ // as a pod the app never linked would be, and its diagnostic names the binary.
3
5
  import fs from 'node:fs'
4
6
  import { createRequire } from 'node:module'
5
7
  import path from 'node:path'
@@ -20,8 +22,9 @@ export function installedNativeLibraries(
20
22
  moduleRoot: string,
21
23
  iosTarget?: string,
22
24
  frameworkLinkOwner: 'workspace' | 'provider' = 'workspace',
23
- ): Map<string, TurboInstalledPod> {
24
- if (providers.length === 0) return new Map()
25
+ ): InstalledNativeLibraries {
26
+ const result: InstalledNativeLibraries = { pods: new Map(), unavailable: new Map() }
27
+ if (providers.length === 0) return result
25
28
  const workspace = requireInstalledXcodeWorkspace(projectRoot, 'native providers')
26
29
  const app = readXcodeAppTarget(workspace, iosTarget, 'Release', {
27
30
  installedPods: true,
@@ -31,7 +34,12 @@ export function installedNativeLibraries(
31
34
  path.basename(provider.podspecPath, '.podspec'),
32
35
  ),
33
36
  })
34
- const result = new Map<string, TurboInstalledPod>()
37
+ const podsRoot = app.cocoapods && path.dirname(app.cocoapods.manifestLock)
38
+ const localPods = new Set(
39
+ (app.cocoapods?.localPodspecs ?? []).map((file) =>
40
+ path.basename(file, '.podspec.json'),
41
+ ),
42
+ )
35
43
  const reactNativeRoot = path.dirname(
36
44
  createRequire(path.join(projectRoot, 'package.json')).resolve(
37
45
  'react-native/package.json',
@@ -63,28 +71,55 @@ export function installedNativeLibraries(
63
71
  return value
64
72
  throw new Error(`${specFile}: invalid vendored native paths`)
65
73
  })
66
- if (paths.length > 0 && spec.subspecs)
67
- throw new Error(`${name}: native library intake does not replace subspec binaries`)
68
- if (paths.some((file) => /[*?{]/.test(file)))
69
- throw new Error(
70
- `${name}: native library intake needs literal installed archive paths`,
71
- )
72
74
  const target = app.frameworks.find((item) => item.name === name)
73
75
  if (!target?.podRoot)
74
76
  throw new Error(`${name}: installed target has no PODS_TARGET_SRCROOT`)
75
77
  const root = fs.realpathSync(target.podRoot)
76
- const ownedLibraries = paths.flatMap((file) => {
78
+ // a declared archive selects its WebAssembly slice by its original bytes;
79
+ // one with no registered slice, or one CocoaPods selects through a
80
+ // subspec or a pattern, has no build peach can link.
81
+ const archives = paths.map((file) => {
82
+ if (spec.subspecs || /[*?{]/.test(file)) return { file, recipe: null }
77
83
  const declared = path.resolve(root, file)
78
84
  const framework = declared.endsWith('.xcframework')
79
85
  ? simulatorStaticArchive(declared)
80
86
  : null
81
- if (declared.endsWith('.xcframework') && !framework)
82
- throw new Error(
83
- `${declared}: native framework intake needs an iOS simulator static archive`,
84
- )
87
+ if (declared.endsWith('.xcframework') && !framework) return { file, recipe: null }
85
88
  const native = framework?.file ?? declared
86
- const recipe = nativeStaticLibraryRecipe(readPackageFile(root, native, Infinity))
87
- if (!recipe) throw new Error(`${native}: no native WebAssembly archive recipe`)
89
+ return {
90
+ file: path.relative(root, native),
91
+ native,
92
+ framework,
93
+ recipe: nativeStaticLibraryRecipe(readPackageFile(root, native, Infinity)),
94
+ }
95
+ })
96
+ // a pod from a specification repository whose installed files are only
97
+ // prebuilt binaries, such as a vendor SDK framework, cannot compile.
98
+ const dependencyBinaries = Object.keys({
99
+ ...(isRecord(spec.dependencies) ? spec.dependencies : {}),
100
+ ...(isRecord(platform.dependencies) ? platform.dependencies : {}),
101
+ }).flatMap((dependency) => {
102
+ const pod = dependency.split('/')[0]!
103
+ if (!podsRoot || localPods.has(pod)) return []
104
+ return installedPodBinaries(path.join(podsRoot, pod)).map((file) =>
105
+ path.relative(path.dirname(podsRoot), file),
106
+ )
107
+ })
108
+ const unavailable = [
109
+ ...new Set([
110
+ ...archives.flatMap(({ file, recipe }) => (recipe ? [] : [file])),
111
+ ...dependencyBinaries,
112
+ ]),
113
+ ]
114
+ if (unavailable.length > 0) {
115
+ result.unavailable.set(
116
+ provider.name,
117
+ `${name} links the prebuilt ${unavailable.join(', ')}, which has no WebAssembly build`,
118
+ )
119
+ continue
120
+ }
121
+ const ownedLibraries = archives.flatMap(({ native, framework, recipe }) => {
122
+ if (!native || !recipe) return []
88
123
  const library = nativeStaticLibrary(native, recipe, moduleRoot)
89
124
  return framework && frameworkLinkOwner === 'workspace' ? [] : [library]
90
125
  })
@@ -133,7 +168,7 @@ export function installedNativeLibraries(
133
168
  flags.filter(
134
169
  (flag, index) => /^-[DU]/.test(flag) || /^-[DU]$/.test(flags[index - 1] ?? ''),
135
170
  )
136
- result.set(provider.name, {
171
+ result.pods.set(provider.name, {
137
172
  root,
138
173
  preprocessorFlags: {
139
174
  c: preprocessorFlags(target.objc?.flags ?? []),
@@ -185,3 +220,29 @@ export function installedNativeLibraries(
185
220
  }
186
221
  return result
187
222
  }
223
+
224
+ export interface InstalledNativeLibraries {
225
+ pods: Map<string, TurboInstalledPod>
226
+ /** providers that link a prebuilt binary with no WebAssembly build, with why. */
227
+ unavailable: Map<string, string>
228
+ }
229
+
230
+ const BINARY_BUNDLE = /\.(?:xcframework|framework)$/
231
+ const SOURCE = /\.(?:c|cc|cpp|cxx|m|mm|swift)$/
232
+
233
+ // the prebuilt bundles and archives an installed pod directory holds, or none
234
+ // when it also holds sources CocoaPods compiles.
235
+ function installedPodBinaries(directory: string): string[] {
236
+ if (!fs.existsSync(directory)) return []
237
+ const binaries: string[] = []
238
+ const pending = [directory]
239
+ for (let current = pending.pop(); current; current = pending.pop())
240
+ for (const entry of fs.readdirSync(current, { withFileTypes: true })) {
241
+ const file = path.join(current, entry.name)
242
+ if (entry.isDirectory() && BINARY_BUNDLE.test(entry.name)) binaries.push(file)
243
+ else if (entry.isDirectory()) pending.push(file)
244
+ else if (entry.name.endsWith('.a')) binaries.push(file)
245
+ else if (SOURCE.test(entry.name)) return []
246
+ }
247
+ return binaries.sort()
248
+ }