peachsim 0.1.2304 → 0.1.2306

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 (92) hide show
  1. package/cli/commands/daemon.ts +31 -9
  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 +190 -71
  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 +2 -2
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +188 -69
  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 +190 -71
  32. package/dist-lib/host/fetch-proxy-handler.cjs +15 -5
  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 +15 -5
  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 +15 -5
  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 +61 -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 +206 -75
  69. package/dist-lib/swift-compile.cjs +2 -2
  70. package/dist-lib/swift-compile.mjs +2 -2
  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 +4 -4
  78. package/dist-lib/vite.cjs +15 -5
  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 +0 -5
  82. package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +3 -0
  83. package/java-platform/licenses/fdlibm.txt +3 -0
  84. package/kotlin/sdk.tar.gz +0 -0
  85. package/package.json +1 -1
  86. package/runtime-companion.json +1 -1
  87. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewController.h +1 -1
  88. package/src/expo-native-workspace.ts +3 -23
  89. package/src/git-repo-env.ts +27 -0
  90. package/src/native-static-libraries.ts +1 -1
  91. package/src/swift-packages.ts +4 -20
  92. package/src/turbo-source.ts +148 -22
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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;
@@ -2475,7 +2475,7 @@ function isValidRuntimeVersion(value) {
2475
2475
  }
2476
2476
 
2477
2477
  // runtime-companion.json
2478
- var runtime_companion_default = { abi: 1, sha256: "398e7fb3724442c4c182acf71a5188023c983cf7e0438fa4e0d668c039ce3b07", file: "node/cli-398e7fb3724442c4c182acf71a5188023c983cf7e0438fa4e0d668c039ce3b07.cjs" };
2478
+ var runtime_companion_default = { abi: 1, sha256: "0fab660670984b60962d163f3e174d3f27f6685e8c3e262164e28d6e6b52ad8d", file: "node/cli-0fab660670984b60962d163f3e174d3f27f6685e8c3e262164e28d6e6b52ad8d.cjs" };
2479
2479
 
2480
2480
  // src/answeredNativePackages.ts
2481
2481
  var import_node_async_hooks = require("node:async_hooks");
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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;
@@ -3338,6 +3338,38 @@ var init_admitted_mac_build = __esm({
3338
3338
  }
3339
3339
  });
3340
3340
 
3341
+ // src/git-repo-env.ts
3342
+ function withoutGitRepositoryEnv(source = process.env) {
3343
+ const env = { ...source };
3344
+ for (const key2 of GIT_REPOSITORY_ENV_KEYS) {
3345
+ delete env[key2];
3346
+ }
3347
+ return env;
3348
+ }
3349
+ var GIT_REPOSITORY_ENV_KEYS;
3350
+ var init_git_repo_env = __esm({
3351
+ "src/git-repo-env.ts"() {
3352
+ "use strict";
3353
+ GIT_REPOSITORY_ENV_KEYS = [
3354
+ "GIT_DIR",
3355
+ "GIT_COMMON_DIR",
3356
+ "GIT_WORK_TREE",
3357
+ "GIT_INDEX_FILE",
3358
+ "GIT_OBJECT_DIRECTORY",
3359
+ "GIT_ALTERNATE_OBJECT_DIRECTORIES",
3360
+ "GIT_PREFIX",
3361
+ "GIT_SHALLOW_FILE",
3362
+ "GIT_GRAFT_FILE",
3363
+ "GIT_NAMESPACE",
3364
+ "GIT_IMPLICIT_WORK_TREE",
3365
+ "GIT_CONFIG",
3366
+ "GIT_CEILING_DIRECTORIES",
3367
+ "GIT_DISCOVERY_ACROSS_FILESYSTEM",
3368
+ "GIT_SUPER_PREFIX"
3369
+ ];
3370
+ }
3371
+ });
3372
+
3341
3373
  // src/native-git.ts
3342
3374
  function requireNativeGit() {
3343
3375
  const result = (0, import_node_child_process10.spawnSync)("git", ["--version"], { encoding: "utf8" });
@@ -25258,7 +25290,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
25258
25290
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
25259
25291
  MULTI_MANIFEST_VERSION = 68;
25260
25292
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
25261
- compilerSourceDigest = true ? "38c735ffbd31a005ec0e9662f0fa716aaed8b65aeec0d1592bde2e835f179458" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
25293
+ compilerSourceDigest = true ? "dda8eea414f224c24308031855c896c38101ab0d31acbc7060436bc1d4aadf0d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
25262
25294
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
25263
25295
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
25264
25296
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -29469,7 +29501,7 @@ var init_swift_standin_digest = __esm({
29469
29501
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
29470
29502
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
29471
29503
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
29472
- STANDIN_SOURCE_DIGEST = true ? "6002e019e3756e603da7a6845af874da053d7724cb1f91276d6e7928d2546e5e" : standinSourceDigest();
29504
+ STANDIN_SOURCE_DIGEST = true ? "0ffa2547ef06e12d293047c1e51c99b46325d43c9a029d4d9a9586b75f24b39b" : standinSourceDigest();
29473
29505
  }
29474
29506
  });
29475
29507
 
@@ -30019,7 +30051,7 @@ var init_native_static_libraries = __esm({
30019
30051
  nativeSha256: "b91cd08892ebe0cdd39e1336594bb66cd79fc639a894303805792047d24f468b",
30020
30052
  upstream: "ed59cc48e37ac33ac15b252fc5ad7af4b9ecd51d",
30021
30053
  // updated with the native producer script and port patches.
30022
- recipe: "cea231f8139cf2b44a3f2b309ce8a99b9ee3e3ff52b5120780bc5969a22f8059",
30054
+ recipe: "7914af52f8a3694215d7422b01209490237921826e18438d5f1004775769ab63",
30023
30055
  archive: "libessentia.a"
30024
30056
  },
30025
30057
  {
@@ -30423,27 +30455,10 @@ async function fetchCheckout(checkouts, identity2, pin2, signal) {
30423
30455
  if (preparedSwiftPin(checkouts, identity2, pin2.location, pin2.revision)) return;
30424
30456
  requireNativeGit();
30425
30457
  const key2 = checkoutKey(dir, pin2);
30426
- const gitEnv = { ...process.env };
30427
- for (const name3 of [
30428
- "GIT_DIR",
30429
- "GIT_COMMON_DIR",
30430
- "GIT_WORK_TREE",
30431
- "GIT_INDEX_FILE",
30432
- "GIT_OBJECT_DIRECTORY",
30433
- "GIT_ALTERNATE_OBJECT_DIRECTORIES",
30434
- "GIT_PREFIX",
30435
- "GIT_SHALLOW_FILE",
30436
- "GIT_GRAFT_FILE",
30437
- "GIT_NAMESPACE",
30438
- "GIT_IMPLICIT_WORK_TREE",
30439
- "GIT_CONFIG",
30440
- "GIT_CEILING_DIRECTORIES",
30441
- "GIT_DISCOVERY_ACROSS_FILESYSTEM",
30442
- "GIT_SUPER_PREFIX"
30443
- ]) {
30444
- delete gitEnv[name3];
30445
- }
30446
- gitEnv.GIT_TERMINAL_PROMPT = "0";
30458
+ const gitEnv = {
30459
+ ...withoutGitRepositoryEnv(),
30460
+ GIT_TERMINAL_PROMPT: "0"
30461
+ };
30447
30462
  const git = async (cwd, ...args) => (await execFileAsync2("git", ["-C", cwd, ...args], {
30448
30463
  encoding: "utf8",
30449
30464
  env: gitEnv,
@@ -31051,6 +31066,7 @@ var init_swift_packages = __esm({
31051
31066
  import_node_path66 = __toESM(require("node:path"), 1);
31052
31067
  import_promises7 = require("node:timers/promises");
31053
31068
  import_node_util13 = require("node:util");
31069
+ init_git_repo_env();
31054
31070
  init_home_paths();
31055
31071
  init_native_git();
31056
31072
  init_numbered_lock();
@@ -43164,15 +43180,17 @@ async function collectTurboSources(options) {
43164
43180
  flattensPublicHeaders: false,
43165
43181
  bridgingHeader: null,
43166
43182
  prefixHeader,
43167
- headerSearchPaths: [
43168
- `${targetPath(targetName)}/include`,
43169
- `${targetPath(TURBO_CORE_TARGET)}/include`
43170
- ],
43183
+ headerSearchPaths: [`${targetPath(targetName)}/include`],
43171
43184
  userHeaderSearchPaths: [],
43172
43185
  frameworkSearchPaths: [],
43173
43186
  headerMaps: [],
43174
43187
  productHeaders: {},
43175
- flags: [],
43188
+ // TurboCore's aliased React headers compile the units but never reach
43189
+ // a Swift importer, whose React module is the app's own
43190
+ flags: [
43191
+ "-I",
43192
+ `${SWIFT_NATIVE_INPUT_ROOT}/${targetPath(TURBO_CORE_TARGET)}/include`
43193
+ ],
43176
43194
  importerFlags: [],
43177
43195
  cxxFlags: [],
43178
43196
  fileFlags: {},
@@ -44556,7 +44574,8 @@ ${moduleProviders ? `- (id<RCTModuleProvider>)getModuleProvider:(const char *)na
44556
44574
  @end
44557
44575
 
44558
44576
  // an app's Fabric component views, which its own Fabric host defines
44559
- extern "C" void peachInstallFabricViews(facebook::jsi::Runtime &runtime) __attribute__((weak));
44577
+ void peachInstallFabricViews(facebook::jsi::Runtime &runtime, std::shared_ptr<facebook::react::CallInvoker> invoker) __attribute__((weak));
44578
+ void peachTeardownFabricViews() __attribute__((weak));
44560
44579
 
44561
44580
  // UIKitCore: the key window and root view controller an app delegate makes at launch
44562
44581
  extern "C" void PeachLaunchReactNativeWindow(void);
@@ -44578,6 +44597,7 @@ extern "C" void peachTurboInitialize() {
44578
44597
  auto& runtime = peach::jsi_runtime::create(
44579
44598
  [] { invoker->drain(); },
44580
44599
  [] {
44600
+ if (peachTeardownFabricViews) peachTeardownFabricViews();
44581
44601
  [manager invalidate];
44582
44602
  manager = nil;
44583
44603
  delegate = nil;
@@ -44635,7 +44655,7 @@ ${bridgeProxy ? ` // as RCTInstance does: the proxy modules reach as their brid
44635
44655
  }];
44636
44656
  [decorator.moduleRegistry setTurboModuleRegistry:manager];
44637
44657
  [manager installJSBindings:runtime];
44638
- if (peachInstallFabricViews) peachInstallFabricViews(runtime);
44658
+ if (peachInstallFabricViews) peachInstallFabricViews(runtime, invoker);
44639
44659
  }
44640
44660
 
44641
44661
  // the screenshot the device took, as UIKit posts it to every observer in the
@@ -44700,13 +44720,20 @@ namespace {
44700
44720
  struct PeachFabricView {
44701
44721
  react::ComponentHandle handle;
44702
44722
  const react::ComponentDescriptor *descriptor;
44723
+ react::ShadowNodeFamily::Shared family;
44703
44724
  react::Props::Shared props;
44725
+ react::State::Shared state;
44704
44726
  react::LayoutMetrics layoutMetrics;
44705
44727
  };
44706
44728
  PeachFabricComponents *fabricComponents;
44707
44729
  RCTComponentViewRegistry *fabricRegistry;
44708
- std::shared_ptr<const react::ContextContainer> fabricContext;
44730
+ std::shared_ptr<react::ContextContainer> fabricContext;
44709
44731
  react::ComponentDescriptorRegistry::Shared fabricDescriptors;
44732
+ std::shared_ptr<react::CallInvoker> fabricInvoker;
44733
+ std::shared_ptr<react::RuntimeScheduler> fabricScheduler;
44734
+ std::shared_ptr<const void> fabricOwner;
44735
+ std::shared_ptr<const react::EventDispatcher> fabricDispatcher;
44736
+ std::optional<jsi::Function> fabricEventHandler;
44710
44737
  std::unordered_map<int, PeachFabricView> fabricViews;
44711
44738
  int nextFabricView = 1;
44712
44739
  std::string fabricNames = ${JSON.stringify(views.map(({ name: name3 }) => name3).join("\n"))};
@@ -44725,32 +44752,112 @@ react::Props::Shared fabricCloneProps(jsi::Runtime &rt, const PeachFabricView &v
44725
44752
  return view.descriptor->cloneProps(context, view.props, react::RawProps(rt, props));
44726
44753
  }
44727
44754
 
44755
+ // the beat React Native's run loop observer gives: queued events flush once
44756
+ // the call that queued them returns
44757
+ class PeachFabricEventBeat final : public react::EventBeat {
44758
+ public:
44759
+ PeachFabricEventBeat(std::shared_ptr<OwnerBox> ownerBox, react::RuntimeScheduler &scheduler)
44760
+ : EventBeat(ownerBox, scheduler), box(std::move(ownerBox)) {}
44761
+ void request() const override {
44762
+ EventBeat::request();
44763
+ std::weak_ptr<const void> owner = box->owner;
44764
+ fabricInvoker->invokeAsync([this, owner](jsi::Runtime &) {
44765
+ if (owner.lock()) induce();
44766
+ });
44767
+ }
44768
+
44769
+ private:
44770
+ std::shared_ptr<OwnerBox> box;
44771
+ };
44772
+
44773
+ // UIManager::updateState reads a state's data as State's friend; a member
44774
+ // pointer named through a derived class reaches the same accessor
44775
+ struct PeachStateData : react::State {
44776
+ static constexpr auto data = &PeachStateData::getDataPointer;
44777
+ };
44778
+
44779
+ // UIManager::dispatchEventToJS: the instance handle the engine gave the view,
44780
+ // the event type and its payload with the target tag and timestamp
44781
+ void fabricDispatchEvent(
44782
+ jsi::Runtime &rt,
44783
+ react::EventTarget *target,
44784
+ const std::string &type,
44785
+ react::ReactEventPriority,
44786
+ const react::EventPayload &eventPayload,
44787
+ react::HighResTimeStamp timestamp) {
44788
+ auto payload = eventPayload.asJSIValue(rt);
44789
+ if (payload.isNull() || !fabricEventHandler || !target) return;
44790
+ auto handle = target->getInstanceHandle(rt);
44791
+ if (handle.isUndefined() || handle.isNull()) return;
44792
+ if (payload.isObject()) {
44793
+ auto object = payload.asObject(rt);
44794
+ object.setProperty(rt, "target", target->getTag());
44795
+ if (!object.hasProperty(rt, "timeStamp"))
44796
+ object.setProperty(rt, "timeStamp", timestamp.toDOMHighResTimeStamp());
44797
+ }
44798
+ fabricEventHandler->call(rt, std::move(handle), jsi::String::createFromUtf8(rt, type), std::move(payload));
44799
+ }
44800
+
44801
+ // UIManager::updateState with the engine's tree in place of the shadow tree:
44802
+ // the view's next state, then the update its commit would mount
44803
+ void fabricUpdateState(const react::StateUpdate &update) {
44804
+ int tag = update.family->getTag();
44805
+ auto found = fabricViews.find(tag);
44806
+ if (found == fabricViews.end() || !found->second.state) return;
44807
+ auto &view = found->second;
44808
+ auto data = update.callback(((*view.state).*PeachStateData::data)());
44809
+ if (!data) return;
44810
+ auto oldState = view.state;
44811
+ view.state = view.descriptor->createState(*view.family, data);
44812
+ UIView<RCTComponentViewProtocol> *componentView = [fabricRegistry componentViewDescriptorWithTag:tag].view;
44813
+ [componentView updateState:view.state oldState:oldState];
44814
+ [componentView finalizeUpdates:RNComponentViewUpdateMaskState];
44815
+ }
44816
+
44728
44817
  } // namespace
44729
44818
 
44730
- extern "C" void peachInstallFabricViews(jsi::Runtime &rt) {
44819
+ void peachInstallFabricViews(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> invoker) {
44820
+ fabricInvoker = std::move(invoker);
44731
44821
  fabricComponents = [PeachFabricComponents new];
44732
44822
  RCTComponentViewFactory *factory = [RCTComponentViewFactory currentComponentViewFactory];
44733
44823
  factory.thirdPartyFabricComponentsProvider = fabricComponents;
44734
44824
  fabricRegistry = [RCTComponentViewRegistry new];
44735
- fabricContext = std::make_shared<const react::ContextContainer>();
44736
- react::ComponentDescriptorParameters parameters{{}, fabricContext, nullptr};
44825
+ fabricContext = std::make_shared<react::ContextContainer>();
44826
+ fabricScheduler = std::make_shared<react::RuntimeScheduler>(
44827
+ [](std::function<void(jsi::Runtime &)> &&work) { fabricInvoker->invokeAsync(std::move(work)); });
44828
+ fabricContext->insert(react::RuntimeSchedulerKey, std::weak_ptr<react::RuntimeScheduler>(fabricScheduler));
44829
+ fabricOwner = std::make_shared<int>(0);
44830
+ auto box = std::make_shared<react::EventBeat::OwnerBox>();
44831
+ box->owner = fabricOwner;
44832
+ auto conclusion = [](jsi::Runtime &rt) { fabricScheduler->callExpiredTasks(rt); };
44833
+ fabricDispatcher = std::make_shared<const react::EventDispatcher>(
44834
+ react::EventQueueProcessor(fabricDispatchEvent, conclusion, fabricUpdateState, std::weak_ptr<react::EventLogger>()),
44835
+ std::make_unique<PeachFabricEventBeat>(box, *fabricScheduler),
44836
+ fabricUpdateState,
44837
+ std::weak_ptr<react::EventLogger>());
44838
+ react::ComponentDescriptorParameters parameters{fabricDispatcher, fabricContext, nullptr};
44737
44839
  fabricDescriptors = [factory createComponentDescriptorRegistryWithParameters:parameters];
44738
44840
  auto views = jsi::Object(rt);
44739
44841
  auto method = [&](const char *name, unsigned count, jsi::HostFunctionType body) {
44740
44842
  views.setProperty(rt, name, jsi::Function::createFromHostFunction(rt, jsi::PropNameID::forAscii(rt, name), count, std::move(body)));
44741
44843
  };
44742
- // Create then Insert: the first props, no event emitter or state, and the
44743
- // layout the view has before the engine measures it
44744
- method("create", 2, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
44844
+ // create(name, instanceHandle, props), Create then Insert: the family the
44845
+ // handle's events resolve through, the first props, the initial state, and
44846
+ // the layout the view has before the engine measures it
44847
+ method("create", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
44745
44848
  const auto &descriptor = fabricDescriptors->at(args[0].asString(rt).utf8(rt));
44746
44849
  int tag = nextFabricView++;
44747
- auto &view = fabricViews.emplace(tag, PeachFabricView{descriptor.getComponentHandle(), &descriptor, nullptr, {}}).first->second;
44748
- view.props = fabricCloneProps(rt, view, args[1]);
44850
+ auto family = descriptor.createFamily(
44851
+ {.tag = tag, .surfaceId = -1, .instanceHandle = std::make_shared<const react::InstanceHandle>(rt, args[1], tag)});
44852
+ auto &view = fabricViews.emplace(tag, PeachFabricView{descriptor.getComponentHandle(), &descriptor, family, nullptr, nullptr, {}}).first->second;
44853
+ view.props = fabricCloneProps(rt, view, args[2]);
44854
+ view.state = descriptor.createInitialState(view.props, family);
44855
+ family->getEventEmitter()->setEnabled(true);
44749
44856
  UIView<RCTComponentViewProtocol> *componentView =
44750
44857
  [fabricRegistry dequeueComponentViewWithComponentHandle:view.handle tag:tag].view;
44751
44858
  [componentView updateProps:view.props oldProps:nullptr];
44752
- [componentView updateEventEmitter:nullptr];
44753
- [componentView updateState:nullptr oldState:nullptr];
44859
+ [componentView updateEventEmitter:family->getEventEmitter()];
44860
+ [componentView updateState:view.state oldState:nullptr];
44754
44861
  [componentView updateLayoutMetrics:view.layoutMetrics oldLayoutMetrics:react::EmptyLayoutMetrics];
44755
44862
  [componentView finalizeUpdates:RNComponentViewUpdateMaskAll];
44756
44863
  return jsi::Value(tag);
@@ -44780,19 +44887,41 @@ extern "C" void peachInstallFabricViews(jsi::Runtime &rt) {
44780
44887
  [componentView finalizeUpdates:RNComponentViewUpdateMaskLayoutMetrics];
44781
44888
  return jsi::Value::undefined();
44782
44889
  });
44783
- // Remove then Delete: the registry recycles the view
44890
+ // Remove then Delete: the family's emitter stops at once, as an unmounted
44891
+ // family's does, and the registry recycles the view
44784
44892
  method("drop", 1, [](jsi::Runtime &, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
44785
44893
  int tag = static_cast<int>(args[0].asNumber());
44786
44894
  auto &view = fabricView(tag);
44895
+ view.family->getEventEmitter()->setEnabled(false);
44787
44896
  RCTComponentViewDescriptor descriptor = [fabricRegistry componentViewDescriptorWithTag:tag];
44788
44897
  [descriptor.view removeFromSuperview];
44789
44898
  [fabricRegistry enqueueComponentViewWithComponentHandle:view.handle tag:tag componentViewDescriptor:descriptor];
44790
44899
  fabricViews.erase(tag);
44791
44900
  return jsi::Value::undefined();
44792
44901
  });
44902
+ // RCTMountingManager::dispatchCommand: the view's handleCommand:args:
44903
+ method("command", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
44904
+ int tag = static_cast<int>(args[0].asNumber());
44905
+ fabricView(tag);
44906
+ NSArray *commandArgs = react::TurboModuleConvertUtils::convertJSIValueToObjCObject(rt, args[2], fabricInvoker);
44907
+ [[fabricRegistry componentViewDescriptorWithTag:tag].view handleCommand:@(args[1].asString(rt).utf8(rt).c_str())
44908
+ args:commandArgs];
44909
+ return jsi::Value::undefined();
44910
+ });
44911
+ // the function React's dispatchEvent stands for: (instanceHandle, type, payload)
44912
+ method("setEventHandler", 1, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
44913
+ fabricEventHandler = args[0].asObject(rt).asFunction(rt);
44914
+ return jsi::Value::undefined();
44915
+ });
44793
44916
  rt.global().setProperty(rt, "peachFabricViews", std::move(views));
44794
44917
  }
44795
44918
 
44919
+ // the runtime's functions go before the runtime does
44920
+ void peachTeardownFabricViews() {
44921
+ fabricOwner.reset();
44922
+ fabricEventHandler.reset();
44923
+ }
44924
+
44796
44925
  extern "C" void *peach_fabric_view_content(int tag) {
44797
44926
  return (__bridge_retained void *)[fabricRegistry componentViewDescriptorWithTag:tag].view;
44798
44927
  }
@@ -44822,6 +44951,7 @@ var init_turbo_source = __esm({
44822
44951
  init_podspec_sources();
44823
44952
  init_swift_source_file();
44824
44953
  init_swift_submit();
44954
+ init_swiftContract();
44825
44955
  init_turbo_codegen_intake();
44826
44956
  init_xcode_project();
44827
44957
  execFileAsync3 = (0, import_node_util15.promisify)(import_node_child_process46.execFile);
@@ -44969,13 +45099,22 @@ class JsCallInvoker final : public react::CallInvoker {
44969
45099
  #import <React/RCTComponentViewFactory.h>
44970
45100
  #import <React/RCTComponentViewProtocol.h>
44971
45101
  #import <React/RCTComponentViewRegistry.h>
45102
+ #import <ReactCommon/RCTTurboModule.h>
45103
+ #include <ReactCommon/CallInvoker.h>
44972
45104
  #include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
45105
+ #include <react/renderer/core/EventBeat.h>
45106
+ #include <react/renderer/core/EventDispatcher.h>
45107
+ #include <react/renderer/core/EventQueueProcessor.h>
45108
+ #include <react/renderer/core/InstanceHandle.h>
44973
45109
  #include <react/renderer/core/LayoutMetrics.h>
44974
45110
  #include <react/renderer/core/PropsParserContext.h>
44975
45111
  #include <react/renderer/core/RawProps.h>
45112
+ #include <react/renderer/core/StateUpdate.h>
45113
+ #include <react/renderer/runtimescheduler/RuntimeScheduler.h>
44976
45114
  #include <react/utils/ContextContainer.h>
44977
45115
  #include <cstdio>
44978
45116
  #include <cstdlib>
45117
+ #include <optional>
44979
45118
  #include <unordered_map>
44980
45119
  #include <jsi/jsi.h>
44981
45120
 
@@ -45459,7 +45598,7 @@ var init_react_native_core = __esm({
45459
45598
  init_swift_distribution();
45460
45599
  init_swift_package();
45461
45600
  init_swiftContract();
45462
- recipe = true ? "94bdffa4aff4ff16c60f96c0342d7ef854fdf80a49d5fd2cee48a92de5885962" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
45601
+ recipe = true ? "ad6a6672a4c7d5539690da16e5a429437230d138b36c48e3963d5e9f9ddad98e" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
45463
45602
  strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
45464
45603
  building = /* @__PURE__ */ new Map();
45465
45604
  }
@@ -49201,6 +49340,7 @@ async function workspaceExclusion(root, portable = false, linkedPackages = []) {
49201
49340
  }
49202
49341
 
49203
49342
  // src/expo-native-workspace.ts
49343
+ init_git_repo_env();
49204
49344
  init_home_paths();
49205
49345
 
49206
49346
  // src/native-failure-output.ts
@@ -49713,27 +49853,7 @@ var isolatedGitEnv = {
49713
49853
  GIT_CONFIG_SYSTEM: "/dev/null"
49714
49854
  };
49715
49855
  function cleanWorkspaceGitEnv() {
49716
- const env = { ...process.env };
49717
- for (const key2 of [
49718
- "GIT_DIR",
49719
- "GIT_COMMON_DIR",
49720
- "GIT_WORK_TREE",
49721
- "GIT_INDEX_FILE",
49722
- "GIT_OBJECT_DIRECTORY",
49723
- "GIT_ALTERNATE_OBJECT_DIRECTORIES",
49724
- "GIT_PREFIX",
49725
- "GIT_SHALLOW_FILE",
49726
- "GIT_GRAFT_FILE",
49727
- "GIT_NAMESPACE",
49728
- "GIT_IMPLICIT_WORK_TREE",
49729
- "GIT_CONFIG",
49730
- "GIT_CEILING_DIRECTORIES",
49731
- "GIT_DISCOVERY_ACROSS_FILESYSTEM",
49732
- "GIT_SUPER_PREFIX"
49733
- ]) {
49734
- delete env[key2];
49735
- }
49736
- return { ...env, ...isolatedGitEnv };
49856
+ return { ...withoutGitRepositoryEnv(), ...isolatedGitEnv };
49737
49857
  }
49738
49858
  var utf8Env = { ...process.env, LANG: "en_US.UTF-8", LC_ALL: "en_US.UTF-8" };
49739
49859
  function reactNativePodsEnvironment() {
@@ -50456,8 +50576,7 @@ async function runAdmitted(lease, command, args, cwd, extraEnv) {
50456
50576
  {
50457
50577
  cwd,
50458
50578
  env: {
50459
- ...process.env,
50460
- ...isolatedGitEnv,
50579
+ ...cleanWorkspaceGitEnv(),
50461
50580
  EXPO_NO_TELEMETRY: "1",
50462
50581
  LANG: "en_US.UTF-8",
50463
50582
  LC_ALL: "en_US.UTF-8",
@@ -51047,7 +51166,7 @@ init_swift_native_pin();
51047
51166
  init_xcode_project();
51048
51167
  var EXPO_NATIVE_ENTRY_NAME = "ios";
51049
51168
  function expoNativeCompilerDigestValue() {
51050
- return true ? "c87e7134b76c5418e2c5e9e056b700b7dfc2c8ae0632c602561f4634aa4bcd8a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
51169
+ return true ? "5b7ad1d2620febb7d12f9053396fbc8cf3f6f1e07c8a57f9cbc444527b01cac9" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
51051
51170
  }
51052
51171
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
51053
51172
  function readSources(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../peach-globals/src/bundle-global-footer.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2304 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2306 | (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;