peachsim 0.1.1902 → 0.1.1905

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 (100) hide show
  1. package/cli/commands/record.ts +78 -43
  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 +97 -40
  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 +2 -1
  18. package/dist-lib/cloud-contract.mjs +2 -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 +2 -1
  22. package/dist-lib/cloud.mjs +2 -1
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +1 -1
  25. package/dist-lib/detox/index.cjs +3 -2
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +91 -34
  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 +98 -40
  32. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  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 +4 -3
  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 +3 -3
  48. package/dist-lib/native-app-identity-project.cjs +2 -2
  49. package/dist-lib/native-app-identity-project.mjs +2 -2
  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 +24 -24
  61. package/dist-lib/public-origins-lib.json +53 -53
  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 +99 -41
  69. package/dist-lib/swift-compile.cjs +31 -18
  70. package/dist-lib/swift-compile.mjs +30 -18
  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 +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +30 -20
  78. package/dist-lib/vite.cjs +2 -2
  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/fiber-debug-metadata.d.ts +1 -0
  82. package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +1 -0
  83. package/package.json +1 -1
  84. package/runtime-companion.json +1 -1
  85. package/sdk/ios/usr/include/darwin.modulemap +430 -0
  86. package/sdk/ios/usr/include/module.modulemap +1 -0
  87. package/src/bridge-contract.ts +25 -0
  88. package/src/cloud-contract.ts +1 -0
  89. package/src/expo-native-workspace.ts +31 -3
  90. package/src/expo-swift-host.ts +18 -8
  91. package/src/expo-workspace-exclusion.ts +15 -1
  92. package/src/nitro-adapter.lock.json +400 -1360
  93. package/src/nitro-superset.lock.json +4 -4
  94. package/src/swift-compile.ts +14 -14
  95. package/src/swift-distribution.lock.json +11 -11
  96. package/src/swift-host.ts +2 -1
  97. package/src/swift-shared-sdk.ts +12 -7
  98. package/src/swift-wasm-prune.ts +9 -1
  99. package/src/turbo-runtime.lock.json +20 -48
  100. package/src/workspace-root.ts +31 -7
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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;
@@ -96,6 +96,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
96
96
  focus: "drive",
97
97
  flowStatus: "drive",
98
98
  reset: "reset",
99
+ recorder: "drive",
99
100
  camera: "media",
100
101
  location: "media",
101
102
  // string evaluation and arbitrary bridge calls are maestro's boundary: the
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -47,6 +47,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
47
47
  focus: "drive",
48
48
  flowStatus: "drive",
49
49
  reset: "reset",
50
+ recorder: "drive",
50
51
  camera: "media",
51
52
  location: "media",
52
53
  // string evaluation and arbitrary bridge calls are maestro's boundary: the
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-test-args.ts
4
4
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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;
@@ -137,6 +137,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
137
137
  focus: "drive",
138
138
  flowStatus: "drive",
139
139
  reset: "reset",
140
+ recorder: "drive",
140
141
  camera: "media",
141
142
  location: "media",
142
143
  // string evaluation and arbitrary bridge calls are maestro's boundary: the
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -107,6 +107,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
107
107
  focus: "drive",
108
108
  flowStatus: "drive",
109
109
  reset: "reset",
110
+ recorder: "drive",
110
111
  camera: "media",
111
112
  location: "media",
112
113
  // string evaluation and arbitrary bridge calls are maestro's boundary: the
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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;
@@ -2493,7 +2493,7 @@ function isValidRuntimeVersion(value) {
2493
2493
  }
2494
2494
 
2495
2495
  // runtime-companion.json
2496
- var runtime_companion_default = { abi: 1, sha256: "e47a408c99176c179f5e02ae2e8ef0cece15aae30fc22fe7b056468eef91ebdb", file: "node/cli-e47a408c99176c179f5e02ae2e8ef0cece15aae30fc22fe7b056468eef91ebdb.cjs" };
2496
+ var runtime_companion_default = { abi: 1, sha256: "dd136985ee4f7b0d4287f7d18ce7a66dfde4c654346096dbcecec883f41d9c73", file: "node/cli-dd136985ee4f7b0d4287f7d18ce7a66dfde4c654346096dbcecec883f41d9c73.cjs" };
2497
2497
 
2498
2498
  // src/answeredNativePackages.ts
2499
2499
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -2619,6 +2619,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
2619
2619
  focus: "drive",
2620
2620
  flowStatus: "drive",
2621
2621
  reset: "reset",
2622
+ recorder: "drive",
2622
2623
  camera: "media",
2623
2624
  location: "media",
2624
2625
  // string evaluation and arbitrary bridge calls are maestro's boundary: the
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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;
@@ -6584,7 +6584,7 @@ var import_node_fs15 = __toESM(require("node:fs"), 1);
6584
6584
  var import_node_path11 = __toESM(require("node:path"), 1);
6585
6585
  var import_node_util5 = require("node:util");
6586
6586
  var import_ignore = __toESM(require("ignore"), 1);
6587
- async function workspaceExclusion(root, portable = false) {
6587
+ async function workspaceExclusion(root, portable = false, linkedPackages = []) {
6588
6588
  const listed = await (0, import_node_util5.promisify)(import_node_child_process9.execFile)(
6589
6589
  "git",
6590
6590
  ["ls-files", "-z", "--others", "--ignored", "--exclude-standard", "--directory"],
@@ -6605,6 +6605,14 @@ async function workspaceExclusion(root, portable = false) {
6605
6605
  const ignoreFiles = /* @__PURE__ */ new Map();
6606
6606
  return (relative3) => {
6607
6607
  const parts = relative3.split(import_node_path11.default.sep);
6608
+ const linked = linkedPackages.some(
6609
+ (directory) => relative3.startsWith(directory + import_node_path11.default.sep)
6610
+ );
6611
+ if (linked) {
6612
+ return ["node_modules", ".git", ".expo", ".one"].some(
6613
+ (name3) => parts.includes(name3)
6614
+ );
6615
+ }
6608
6616
  if (portable && relative3) {
6609
6617
  let excluded = false;
6610
6618
  const isDirectory3 = import_node_fs15.default.lstatSync(import_node_path11.default.join(root, relative3)).isDirectory();
@@ -14196,7 +14204,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
14196
14204
  const overlay = import_node_path24.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "wasm/include");
14197
14205
  const overlayFiles = (0, import_node_fs27.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path24.default.join(entry.parentPath, entry.name)).sort();
14198
14206
  const key2 = JSON.stringify([
14199
- "v17",
14207
+ "v18",
14200
14208
  toolchainBin,
14201
14209
  sdk,
14202
14210
  frameworks,
@@ -14239,12 +14247,17 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
14239
14247
  const realRoot = import_node_path24.default.dirname(bundle);
14240
14248
  const overrides = new Map([
14241
14249
  [import_node_path24.default.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
14242
- ...["MacTypes.h", "net/if.h", "notify.h", "notify.modulemap"].map(
14243
- (header) => [
14244
- import_node_path24.default.join(sysroot, "darwin/usr/include", header),
14245
- import_node_path24.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include", header)
14246
- ]
14247
- )
14250
+ ...[
14251
+ "MacTypes.h",
14252
+ "net/if.h",
14253
+ "notify.h",
14254
+ "notify.modulemap",
14255
+ "module.modulemap",
14256
+ "darwin.modulemap"
14257
+ ].map((header) => [
14258
+ import_node_path24.default.join(sysroot, "darwin/usr/include", header),
14259
+ import_node_path24.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include", header)
14260
+ ])
14248
14261
  ]);
14249
14262
  for (const file of overlayFiles) {
14250
14263
  overrides.set(
@@ -15871,6 +15884,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
15871
15884
  } else {
15872
15885
  eagerFiles.push(t);
15873
15886
  }
15887
+ } else {
15888
+ lazyBuildObjects.set(t, parseWasmObjectCached(t, false, false));
15874
15889
  }
15875
15890
  } else if (!inStartLib && t.endsWith(".a") && !t.endsWith("libclang_rt.builtins-wasm32.a") && import_node_fs29.default.existsSync(t)) {
15876
15891
  const members2 = readArMembers(new Uint8Array(import_node_fs29.default.readFileSync(t)));
@@ -16629,7 +16644,11 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
16629
16644
  outTokens.push("--end-lib");
16630
16645
  continue;
16631
16646
  }
16632
- if (inStartLib) continue;
16647
+ if (inStartLib) {
16648
+ if (lazyBuildObjects.has(t) && extractedObjs.has(lazyBuildObjects.get(t)))
16649
+ outTokens.push(t);
16650
+ continue;
16651
+ }
16633
16652
  if (lazyBuildObjects.has(t)) {
16634
16653
  if (extractedObjs.has(lazyBuildObjects.get(t))) outTokens.push(t);
16635
16654
  } else if (t === swiftrtOrigPath && patchedSwiftrtPath) {
@@ -22069,7 +22088,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
22069
22088
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
22070
22089
  var MULTI_MANIFEST_VERSION = 66;
22071
22090
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
22072
- var compilerSourceDigest = true ? "8768dadacf2e909cf808df3a31fe261832d51fb29d48f2b45bd4df5c117c6f69" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
22091
+ var compilerSourceDigest = true ? "b0327633078ca444a0dc6bfd4a421880f29068767e7244cb3d390c6c576c42f7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
22073
22092
  function swiftArtifactHash(input, release, moduleRoot) {
22074
22093
  const hash = (0, import_node_crypto17.createHash)("sha256");
22075
22094
  hash.update(`swift-compile
@@ -22222,9 +22241,9 @@ function emitSwiftPackageManifest(args) {
22222
22241
  foundationCategoryObjects.map((name3) => `lib/Foundation-${name3}.o`)
22223
22242
  );
22224
22243
  const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
22225
- const eager = args.lazyDistribution ? new Set(
22244
+ const eager = new Set(
22226
22245
  objects.filter((object5) => roots.has(object5) || categoryObjects.has(object5))
22227
- ) : new Set(objects);
22246
+ );
22228
22247
  const list2 = [
22229
22248
  ...[...eager].map(quoted),
22230
22249
  "-Wl,--start-lib",
@@ -25140,8 +25159,7 @@ module ${moduleName}.Swift {
25140
25159
  distributionLink: {
25141
25160
  path: import_node_path40.default.join(layout2.root, ".peach-distribution-objects.rsp"),
25142
25161
  files: files2
25143
- },
25144
- lazyDistribution: input.optimize
25162
+ }
25145
25163
  } : {},
25146
25164
  ...prebuilt && frameworkLink ? {
25147
25165
  prebuilt: {
@@ -25769,7 +25787,8 @@ async function buildFrameworkProducts(scratch2, args) {
25769
25787
  linked.owners.set(object5, "Foundation");
25770
25788
  }
25771
25789
  const providerDir = import_node_path40.default.join(scratch2, "darwin-records");
25772
- if (!(0, import_node_fs43.existsSync)(import_node_path40.default.join(providerDir, ".complete"))) {
25790
+ const providerStamp = import_node_path40.default.join(providerDir, ".complete");
25791
+ if (!(0, import_node_fs43.existsSync)(providerStamp) || (0, import_node_fs43.readFileSync)(providerStamp, "utf8") !== args.frameworkKey) {
25773
25792
  (0, import_node_fs43.rmSync)(providerDir, { recursive: true, force: true });
25774
25793
  (0, import_node_fs43.mkdirSync)(providerDir);
25775
25794
  const sdkPaths2 = swiftSdkPaths(args.moduleRoot, args.toolchainBin);
@@ -25781,7 +25800,7 @@ async function buildFrameworkProducts(scratch2, args) {
25781
25800
  minimum: darwinRecordsMinimum(),
25782
25801
  out: providerDir
25783
25802
  });
25784
- (0, import_node_fs43.writeFileSync)(import_node_path40.default.join(providerDir, ".complete"), "");
25803
+ (0, import_node_fs43.writeFileSync)(providerStamp, args.frameworkKey);
25785
25804
  }
25786
25805
  const providers = (0, import_node_fs43.readdirSync)(providerDir).filter((file) => file.endsWith(".o")).sort().map((file) => import_node_path40.default.join(providerDir, file));
25787
25806
  for (const provider of providers) linked.owners.set(provider, "DarwinRecords");
@@ -26084,7 +26103,7 @@ function compileSwiftProjectOnce(input, options) {
26084
26103
  process.env.LD_LIBRARY_PATH
26085
26104
  ].filter(Boolean).join(":")
26086
26105
  } : {},
26087
- ...input.optimize ? { PEACH_DEFER_WASM_LINK: "1" } : {}
26106
+ PEACH_DEFER_WASM_LINK: "1"
26088
26107
  },
26089
26108
  maxBuffer: 64 * 1024 * 1024,
26090
26109
  timeout: options.timeoutMs,
@@ -26311,7 +26330,7 @@ function compileSwiftProjectOnce(input, options) {
26311
26330
  );
26312
26331
  }
26313
26332
  if (options.project) removeProjectLinks(root);
26314
- if (input.optimize && !guestGraph)
26333
+ if (!guestGraph)
26315
26334
  pruneSwiftWasmLink(
26316
26335
  root,
26317
26336
  options.toolchainBin,
@@ -29886,13 +29905,28 @@ async function portableExpoWorkspace(app, sourceHash, signal) {
29886
29905
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
29887
29906
  var import_node_fs51 = __toESM(require("node:fs"), 1);
29888
29907
  var import_node_path49 = __toESM(require("node:path"), 1);
29908
+ var LOCKFILES = ["pnpm-workspace.yaml", "package-lock.json", "yarn.lock", "bun.lock"];
29909
+ function declaresMember(root, app) {
29910
+ const manifest = import_node_path49.default.join(root, "package.json");
29911
+ if (!import_node_fs51.default.existsSync(manifest)) return false;
29912
+ const { workspaces: workspaces2 } = JSON.parse(import_node_fs51.default.readFileSync(manifest, "utf8"));
29913
+ const patterns = Array.isArray(workspaces2) ? workspaces2 : workspaces2?.packages ?? [];
29914
+ const relative3 = import_node_path49.default.relative(root, app).split(import_node_path49.default.sep).join("/");
29915
+ return patterns.some(
29916
+ (pattern) => new RegExp(
29917
+ `^${import_node_path49.default.posix.normalize(pattern).replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*\*/g, "\0").replace(/\*/g, "[^/]*").replace(/\0/g, ".*")}$`
29918
+ ).test(relative3)
29919
+ );
29920
+ }
29889
29921
  function findWorkspaceRoot(app) {
29922
+ let nearest = null;
29923
+ let declared = null;
29890
29924
  for (let dir = app; ; dir = import_node_path49.default.dirname(dir)) {
29891
- if (["pnpm-workspace.yaml", "package-lock.json", "yarn.lock", "bun.lock"].some(
29892
- (name3) => import_node_fs51.default.existsSync(import_node_path49.default.join(dir, name3))
29893
- ))
29894
- return dir;
29895
- if (import_node_path49.default.dirname(dir) === dir) return app;
29925
+ if (LOCKFILES.some((name3) => import_node_fs51.default.existsSync(import_node_path49.default.join(dir, name3)))) {
29926
+ nearest ??= dir;
29927
+ if (dir !== app && declaresMember(dir, app)) declared = dir;
29928
+ }
29929
+ if (import_node_path49.default.dirname(dir) === dir) return declared ?? nearest ?? app;
29896
29930
  }
29897
29931
  }
29898
29932
 
@@ -29941,6 +29975,18 @@ async function hashExpoSourceWorkspace(app, signal) {
29941
29975
  const { root, hash } = await hashWorkspaceInputs(app, true, signal, true);
29942
29976
  return { root, hash };
29943
29977
  }
29978
+ function pnpmStoreArgs(root) {
29979
+ const modules = import_node_path50.default.join(root, "node_modules", ".modules.yaml");
29980
+ if (!import_node_fs52.default.existsSync(modules)) return [];
29981
+ const store = /^storeDir: ["']?([^"'\n]+)["']?$/m.exec(import_node_fs52.default.readFileSync(modules, "utf8"));
29982
+ return store ? ["--store-dir", store[1]] : [];
29983
+ }
29984
+ function linkedPackageDirectories(root, app) {
29985
+ const appRelative = import_node_path50.default.relative(root, app);
29986
+ return localPackageDirectories(root, app).filter(
29987
+ (directory) => directory !== "" && directory !== appRelative
29988
+ );
29989
+ }
29944
29990
  function localPackageDirectories(root, app) {
29945
29991
  const directories = /* @__PURE__ */ new Set();
29946
29992
  const visit3 = (directory) => {
@@ -29974,7 +30020,11 @@ function localPackageDirectories(root, app) {
29974
30020
  }
29975
30021
  async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, podsEnvironment = reactNativePodsEnvironment()) {
29976
30022
  const root = findWorkspaceRoot(app);
29977
- const excluded = await workspaceExclusion(root, sourceOnly);
30023
+ const excluded = await workspaceExclusion(
30024
+ root,
30025
+ sourceOnly,
30026
+ linkedPackageDirectories(root, app)
30027
+ );
29978
30028
  const appRelative = import_node_path50.default.relative(root, app);
29979
30029
  const manifest = JSON.parse(import_node_fs52.default.readFileSync(import_node_path50.default.join(root, "package.json"), "utf8"));
29980
30030
  const hash = (0, import_node_crypto23.createHash)("sha256");
@@ -30347,7 +30397,9 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
30347
30397
  "install",
30348
30398
  "--frozen-lockfile",
30349
30399
  "--filter",
30350
- `${appManifest.name}...`
30400
+ `${appManifest.name}...`,
30401
+ // the copied node_modules link into the store pnpm chose on the app's volume
30402
+ ...pnpmStoreArgs(root)
30351
30403
  ] : manager === "yarn" || manager.startsWith("yarn@") ? ["corepack", "yarn", "install", "--immutable"] : manager === "bun" || manager.startsWith("bun@") ? manager === "bun" ? ["bun", "install", "--frozen-lockfile"] : [
30352
30404
  import_node_path50.default.join(bunPrefix, "node_modules/.bin/bun"),
30353
30405
  "install",
@@ -30916,7 +30968,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
30916
30968
  return hash.digest("hex");
30917
30969
  }
30918
30970
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
30919
- var STANDIN_SOURCE_DIGEST = true ? "ae26db314b6d3703c6fc172d019e3cb0fe28a018e5f614bb804fae720ab78ff8" : standinSourceDigest();
30971
+ var STANDIN_SOURCE_DIGEST = true ? "17e16935fef21af485fe45bc60239cd60c2f1137827bd8f5cf749096bf988cb9" : standinSourceDigest();
30920
30972
 
30921
30973
  // src/expoSwiftContract.ts
30922
30974
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -31246,7 +31298,7 @@ async function packageTreeDigest(root) {
31246
31298
 
31247
31299
  // src/expo-native-prebuilt.ts
31248
31300
  var EXPO_NATIVE_ENTRY_NAME = "ios";
31249
- var EXPO_NATIVE_COMPILER_DIGEST = true ? "29a14998cfeca34c65cb911c55de6c6ef5be82e64eaba75effc6a290999cc322" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31301
+ var EXPO_NATIVE_COMPILER_DIGEST = true ? "6959e0e349b57c80dfba3b6c8e527494de04860971a8ed62858f9968efedd0ad" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31250
31302
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
31251
31303
  function readSources(value) {
31252
31304
  const sources = isRecord(value) ? value.sources : null;
@@ -39911,7 +39963,6 @@ function sourceTreeFiles(dir, canonicalRoot) {
39911
39963
  walk3(full);
39912
39964
  } else if (stat.isFile()) {
39913
39965
  found.push(full);
39914
- if (found.length > 4096) throw new Error("swift package exceeds 4096 input files");
39915
39966
  }
39916
39967
  }
39917
39968
  ancestors.delete(realDirectory);
@@ -40377,6 +40428,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
40377
40428
  }
40378
40429
  function sourceContentStamp(packagePath, moduleRootOverride) {
40379
40430
  const hash = (0, import_node_crypto36.createHash)("sha256");
40431
+ hash.update(compilerSourceDigest);
40380
40432
  hash.update(JSON.stringify(xcodeProjects().get(packagePath)?.behavior ?? {}));
40381
40433
  const libraries = projects().get(packagePath)?.libraries;
40382
40434
  if (libraries) hash.update(JSON.stringify(libraries));
@@ -42730,9 +42782,14 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
42730
42782
  /PeachNativeSources\/([^/]+?)(?:Native|Swift)Implementation_[0-9a-f]+\/([^:\s]+)/g
42731
42783
  )
42732
42784
  ].map(([, target, file]) => `Sources/${target}/${file}`);
42785
+ const missing = new Set(
42786
+ linkError instanceof SwiftMissingModulesError ? [...combined.matchAll(/^ (\S+)/gm)].map((match) => match[1]) : []
42787
+ );
42733
42788
  const named = candidates.filter(
42734
42789
  (unit2) => [...Object.keys(unit2.files), ...expoUnitAppPaths(unit2)].some(
42735
42790
  (name3) => nativeCopies.includes(name3) || errorFiles.some((file) => file === name3 || file.endsWith(`/${name3}`))
42791
+ ) || Object.values(unit2.files).some(
42792
+ (source) => swiftImportNames(source).some((name3) => missing.has(name3))
42736
42793
  )
42737
42794
  );
42738
42795
  let checked = candidates;
@@ -42782,11 +42839,11 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
42782
42839
  const unitErrors = [...targetErrors, ...sourceErrors];
42783
42840
  if (publishArtifact && targetErrors.length === 0 && (sourceErrors.length === 0 || sourceErrors.length !== errors.length) && !(error instanceof SwiftMissingModulesError))
42784
42841
  throw error;
42785
- const missing = error instanceof SwiftMissingModulesError;
42786
- if ((missing || unitErrors.length > 0) && sourceContentStamp(packagePath, module2.root) === stamps.get(unit2)) {
42842
+ const missing2 = error instanceof SwiftMissingModulesError;
42843
+ if ((missing2 || unitErrors.length > 0) && sourceContentStamp(packagePath, module2.root) === stamps.get(unit2)) {
42787
42844
  failureRecords.set(packagePath, {
42788
42845
  stamp: stamps.get(unit2),
42789
- diagnostic: missing ? diagnostic : unitErrors.join("\n")
42846
+ diagnostic: missing2 ? diagnostic : unitErrors.join("\n")
42790
42847
  });
42791
42848
  }
42792
42849
  failures.set(
@@ -42802,12 +42859,12 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
42802
42859
  } catch (error) {
42803
42860
  signal.throwIfAborted();
42804
42861
  if (!(error instanceof SwiftMissingModulesError)) throw error;
42805
- const missing = new Set(
42862
+ const missing2 = new Set(
42806
42863
  [...error.message.matchAll(/^ (\S+)/gm)].map((match) => match[1])
42807
42864
  );
42808
42865
  const dropped = linked.filter(
42809
42866
  (unit2) => Object.values(unit2.files).some(
42810
- (source) => swiftImportNames(source).some((name3) => missing.has(name3))
42867
+ (source) => swiftImportNames(source).some((name3) => missing2.has(name3))
42811
42868
  )
42812
42869
  );
42813
42870
  if (dropped.length === 0) throw error;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bundleGlobalFooter.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1902 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1905 | (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;