peachsim 0.1.2665 → 0.1.2666

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 (126) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +171 -64
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-2LIKL4NX.mjs → acorn-PNTLNBTA.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-UE2HEXE7.mjs → chunk-2JG7Y5DA.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-V6PBAKRO.mjs → chunk-5HZMRPZT.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-N75MISES.mjs → chunk-6I74FZC6.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-KG5EFPB2.mjs → chunk-BU4YLDQW.mjs} +5 -5
  31. package/dist-lib/esm-chunks/{chunk-5DMO6UQJ.mjs → chunk-C4XXXBD5.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-2T4RBFSS.mjs → chunk-COOGIJXF.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-Y3BZF6OS.mjs → chunk-CVOZD2XG.mjs} +6 -6
  34. package/dist-lib/esm-chunks/{chunk-23DZ4Q4Z.mjs → chunk-EFXLPDDZ.mjs} +2 -2
  35. package/dist-lib/esm-chunks/{chunk-Q3TXM4LK.mjs → chunk-ETATV252.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-6GGN7IFR.mjs → chunk-F57EOGPC.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-6AQXFUD7.mjs → chunk-HEDPVBHA.mjs} +6 -6
  38. package/dist-lib/esm-chunks/{chunk-5KFGVINE.mjs → chunk-HZFAKEYY.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-3NJP5BIE.mjs → chunk-K3IKKG2I.mjs} +4 -4
  40. package/dist-lib/esm-chunks/{chunk-T7EAO4MJ.mjs → chunk-M4Q5C23L.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-GHC55YFV.mjs → chunk-ONR3YOTC.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-OGFQ2RML.mjs → chunk-QPW4OH73.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-MWKWGPB6.mjs → chunk-R4EXMC3C.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-2RXTGRSX.mjs → chunk-RY6JI3XR.mjs} +3 -3
  45. package/dist-lib/esm-chunks/{chunk-H5ATIUKE.mjs → chunk-SYOGZX55.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-2GUF7MKM.mjs → chunk-WSGBYXP2.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-CAOG2CSG.mjs → chunk-WTQUIDPZ.mjs} +14 -14
  48. package/dist-lib/esm-chunks/{chunk-SUMGPDQS.mjs → chunk-ZIULCB6R.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-XQPRIXPA.mjs → chunk-ZQDBFNSQ.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-KPTB74RN.mjs → chunk-ZU6LSMDO.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-I777GKX2.mjs → metro-layout-parser-YGB3P5A5.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-KFKVJOGQ.mjs → swift-package-prebuilt-GJ7ST7WE.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-FA7MI4R5.mjs → swift-sdk-app-module-UAK2NDAI.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-5GYGKC24.mjs → swift-sdk-image-TEAM72UD.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-I574RU2A.mjs → swift-sdk-image-producer-VIE2CP6M.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +171 -64
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +171 -64
  61. package/dist-lib/host/fetch-proxy-handler.cjs +20 -3
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +85 -85
  87. package/dist-lib/public-origins-lib.json +64 -64
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +171 -64
  95. package/dist-lib/swift-compile.cjs +1 -1
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/package.json +1 -1
  123. package/src/pod-lockfile.ts +29 -5
  124. package/src/pod-sources.ts +46 -4
  125. package/src/podfile-cocoapods.ts +70 -13
  126. package/src/pods-install.ts +72 -44
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2665 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2666 | (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;
@@ -18092,7 +18092,7 @@ var init_swift_standin_digest = __esm({
18092
18092
 
18093
18093
  // src/expo-native-compiler-digest.ts
18094
18094
  function expoNativeCompilerDigestValue() {
18095
- return true ? "e66a44edee5a962d4ea8bea046dcc01134d6f731b58b3d54cb61fc75c82a4e20" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
18095
+ return true ? "41665d341b276cd8e649755ae0e04060b6325a88de0f0e9eebdda24ec1ee4f6e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
18096
18096
  }
18097
18097
  var import_node_crypto17;
18098
18098
  var init_expo_native_compiler_digest = __esm({
@@ -48685,9 +48685,7 @@ async function podSourceRoot(spec, prepareEnv) {
48685
48685
  try {
48686
48686
  if (strategy === "git") await downloadGit(name3, url, options2, stage);
48687
48687
  else await downloadHttp(name3, url, options2, stage);
48688
- removeGitEntries(stage);
48689
- await prepare(name3, spec, stage, prepareEnv);
48690
- clean(spec, stage, platformNames);
48688
+ await preparePodSource(spec, stage, prepareEnv);
48691
48689
  import_node_fs72.default.mkdirSync(import_node_path72.default.dirname(root), { recursive: true });
48692
48690
  publish(stage, root);
48693
48691
  } finally {
@@ -48695,6 +48693,30 @@ async function podSourceRoot(spec, prepareEnv) {
48695
48693
  }
48696
48694
  return root;
48697
48695
  }
48696
+ async function preparePodSource(spec, root, prepareEnv) {
48697
+ removeGitEntries(root);
48698
+ await prepare(String(spec.name), spec, root, prepareEnv);
48699
+ clean(spec, root, platformNames);
48700
+ }
48701
+ async function checkoutGitPod(name3, source, staging, lockedCommit) {
48702
+ const { git, ...options2 } = source;
48703
+ if (!/^[A-Za-z_][\w.+-]*$/.test(name3) || typeof git !== "string" || Object.keys(options2).some((key2) => !OPTIONS.git.includes(key2)) || ["commit", "branch", "tag"].some(
48704
+ (key2) => key2 in options2 && typeof options2[key2] !== "string"
48705
+ ) || "submodules" in options2 && typeof options2.submodules !== "boolean")
48706
+ throw new Error(`${name3}: invalid Podfile Git source ${JSON.stringify(source)}`);
48707
+ const root = import_node_path72.default.join(staging, name3);
48708
+ await downloadGit(
48709
+ name3,
48710
+ git,
48711
+ lockedCommit ? { commit: lockedCommit, submodules: options2.submodules } : options2,
48712
+ root
48713
+ );
48714
+ const commit = (await run7(name3, "git", ["-C", root, "rev-parse", "HEAD"])).trim();
48715
+ const podspec = [`${name3}.podspec`, `${name3}.podspec.json`].map((file) => import_node_path72.default.join(root, file)).find((file) => import_node_fs72.default.lstatSync(file, { throwIfNoEntry: false })?.isFile());
48716
+ if (!podspec)
48717
+ throw new Error(`${name3}: no podspec in Podfile Git checkout ${git}@${commit}`);
48718
+ return { root, podspec, git, commit, submodules: options2.submodules === true };
48719
+ }
48698
48720
  function canonicalJson(value) {
48699
48721
  if (Array.isArray(value)) return `[${value.map(canonicalJson).join(",")}]`;
48700
48722
  if (object5(value))
@@ -48736,7 +48758,7 @@ async function downloadGit(pod, url, options2, target) {
48736
48758
  let commit = text7("commit");
48737
48759
  const tag = text7("tag");
48738
48760
  for (const value of [url, branch, commit, tag])
48739
- if (value?.startsWith("--") || value?.includes(" --"))
48761
+ if (value?.startsWith("-") || value?.includes(" --"))
48740
48762
  throw new Error(`${pod}: unsafe git source input ${JSON.stringify(options2)}`);
48741
48763
  if (branch) {
48742
48764
  const output = await run7(pod, "git", ["ls-remote", "--", url, branch]);
@@ -56493,8 +56515,9 @@ function declarationsByRoot(declarations) {
56493
56515
  }
56494
56516
  return roots;
56495
56517
  }
56496
- function lockedPodVersions(file, declarations) {
56497
- if (!import_node_fs74.default.existsSync(file)) return {};
56518
+ function lockedPodResolution(file, declarations, gitSources) {
56519
+ const gitCommits = /* @__PURE__ */ new Map();
56520
+ if (!import_node_fs74.default.existsSync(file)) return { versions: {}, gitCommits };
56498
56521
  const lock = browser_default.parse(import_node_fs74.default.readFileSync(file, "utf8"));
56499
56522
  if (!record3(lock)) throw new Error(`${file}: expected a CocoaPods lockfile`);
56500
56523
  const dependencies = lock.DEPENDENCIES ?? [];
@@ -56502,7 +56525,7 @@ function lockedPodVersions(file, declarations) {
56502
56525
  (dependency) => typeof dependency === "string"
56503
56526
  ))
56504
56527
  throw new Error(`${file}: invalid DEPENDENCIES list`);
56505
- if (dependencies.length === 0) return {};
56528
+ if (dependencies.length === 0) return { versions: {}, gitCommits };
56506
56529
  const previous = declarationsByRoot(dependencies);
56507
56530
  const current2 = declarationsByRoot(declarations);
56508
56531
  const unchanged = /* @__PURE__ */ new Set();
@@ -56511,6 +56534,19 @@ function lockedPodVersions(file, declarations) {
56511
56534
  if (after?.size === before.size && [...before].every((entry) => after.has(entry)))
56512
56535
  unchanged.add(root);
56513
56536
  }
56537
+ const external = lock["EXTERNAL SOURCES"];
56538
+ const checkouts = lock["CHECKOUT OPTIONS"];
56539
+ for (const [name3, source] of gitSources) {
56540
+ if (!unchanged.has(name3)) continue;
56541
+ const before = record3(external) ? external[name3] : void 0;
56542
+ if (!record3(before) || Object.keys(before).length !== Object.keys(source).length || Object.entries(source).some(([key2, value]) => before[`:${key2}`] !== value)) {
56543
+ unchanged.delete(name3);
56544
+ continue;
56545
+ }
56546
+ const checkout = record3(checkouts) ? checkouts[name3] : void 0;
56547
+ if (record3(checkout) && checkout[":git"] === source.git && typeof checkout[":commit"] === "string" && /^[a-f0-9]{40}(?:[a-f0-9]{24})?$/.test(checkout[":commit"]))
56548
+ gitCommits.set(name3, checkout[":commit"]);
56549
+ }
56514
56550
  const pods = lockedPods(lock);
56515
56551
  const visited = /* @__PURE__ */ new Set();
56516
56552
  const versions = /* @__PURE__ */ new Map();
@@ -56529,7 +56565,7 @@ function lockedPodVersions(file, declarations) {
56529
56565
  };
56530
56566
  for (const root of unchanged)
56531
56567
  for (const dependency of previous.get(root)) visit3(dependency.split(" ", 1)[0]);
56532
- return Object.fromEntries(versions);
56568
+ return { versions: Object.fromEntries(versions), gitCommits };
56533
56569
  }
56534
56570
  var import_node_fs74, record3;
56535
56571
  var init_pod_lockfile = __esm({
@@ -56573,7 +56609,7 @@ function evaluatePodfile(appPath, env, workspace) {
56573
56609
  return { file, interp, podfile };
56574
56610
  });
56575
56611
  }
56576
- async function resolvePodfile(evaluated2) {
56612
+ async function resolvePodfile(evaluated2, staging) {
56577
56613
  const { file, interp, podfile } = evaluated2;
56578
56614
  const versions = /* @__PURE__ */ new Map();
56579
56615
  const origins = /* @__PURE__ */ new Map();
@@ -56582,7 +56618,8 @@ async function resolvePodfile(evaluated2) {
56582
56618
  const sources = toJson(interp, send(interp, podfile, "sources"));
56583
56619
  if (!Array.isArray(sources) || !sources.every((source) => typeof source === "string"))
56584
56620
  throw new Error(`${file}: Podfile sources are ${JSON.stringify(sources)}`);
56585
- const { sandbox, installer, resolver, firstMissing } = rubyFailures(file, () => {
56621
+ const gitCheckouts = /* @__PURE__ */ new Map();
56622
+ const resolution2 = rubyFailures(file, () => {
56586
56623
  interp.evalString(RESOLVER, "cocoapods/resolver");
56587
56624
  const pathname = interp.object.consts.get("Pathname") ?? null;
56588
56625
  const specification = podClass(interp, "Specification");
@@ -56618,21 +56655,42 @@ async function resolvePodfile(evaluated2) {
56618
56655
  (c) => str(specRepoKey(origins.get(`${arg(c.args, 0)}/${arg(c.args, 1)}`) ?? "trunk")),
56619
56656
  true
56620
56657
  );
56658
+ interp.defineNative(
56659
+ trunk,
56660
+ "git_checkout",
56661
+ (c) => {
56662
+ const checkout = gitCheckouts.get(arg(c.args, 0));
56663
+ return checkout ? [
56664
+ str(checkout.podspec),
56665
+ str(checkout.git),
56666
+ str(checkout.commit),
56667
+ checkout.submodules
56668
+ ] : null;
56669
+ },
56670
+ true
56671
+ );
56621
56672
  const sandbox2 = send(interp, podClass(interp, "Sandbox"), "new", [
56622
56673
  str(import_node_path74.default.join(import_node_path74.default.dirname(file), "Pods"))
56623
56674
  ]);
56624
56675
  const declarations = send(interp, podfile, "dependencies");
56625
56676
  if (!Array.isArray(declarations))
56626
56677
  throw new Error("Podfile#dependencies returned no list");
56627
- const locked = lockedPodVersions(
56678
+ const gitSources2 = /* @__PURE__ */ new Map();
56679
+ for (const declaration of declarations) {
56680
+ const source = toJson(interp, send(interp, declaration, "external_source"));
56681
+ if (isRecord(source) && "git" in source && !("path" in source) && !("podspec" in source))
56682
+ gitSources2.set(interp.toS(send(interp, declaration, "root_name")), source);
56683
+ }
56684
+ const locked = lockedPodResolution(
56628
56685
  import_node_path74.default.join(import_node_path74.default.dirname(file), "Podfile.lock"),
56629
- declarations.map((dependency) => interp.toS(dependency))
56686
+ declarations.map((dependency) => interp.toS(dependency)),
56687
+ gitSources2
56630
56688
  );
56631
56689
  const resolver2 = send(interp, podClass(interp, "Resolver"), "new", [
56632
56690
  sandbox2,
56633
56691
  podfile,
56634
56692
  trunk,
56635
- fromJson(locked)
56693
+ fromJson(locked.versions)
56636
56694
  ]);
56637
56695
  if (!(sandbox2 instanceof RObject) || !(resolver2 instanceof RObject))
56638
56696
  throw new Error("Pod::Resolver.new returned no object");
@@ -56642,16 +56700,27 @@ async function resolvePodfile(evaluated2) {
56642
56700
  ]);
56643
56701
  if (!(installer2 instanceof RObject))
56644
56702
  throw new Error("Pod::Installer.new returned no object");
56645
- const firstMissing2 = toJson(
56646
- interp,
56647
- send(interp, installer2, "peach_begin_resolution", [resolver2])
56648
- );
56649
- return { sandbox: sandbox2, installer: installer2, resolver: resolver2, firstMissing: firstMissing2 };
56703
+ return { sandbox: sandbox2, installer: installer2, resolver: resolver2, gitSources: gitSources2, gitCommits: locked.gitCommits };
56650
56704
  });
56651
- let missing = firstMissing;
56705
+ const { sandbox, installer, resolver, gitSources, gitCommits } = resolution2;
56706
+ const fetched = await Promise.allSettled(
56707
+ [...gitSources].map(async ([name3, source]) => {
56708
+ gitCheckouts.set(
56709
+ name3,
56710
+ await checkoutGitPod(name3, source, staging, gitCommits.get(name3))
56711
+ );
56712
+ })
56713
+ );
56714
+ for (const checkout of fetched)
56715
+ if (checkout.status === "rejected") throw checkout.reason;
56716
+ let missing = rubyFailures(
56717
+ file,
56718
+ () => toJson(interp, send(interp, installer, "peach_begin_resolution", [resolver]))
56719
+ );
56652
56720
  for (; ; ) {
56653
56721
  if (!Array.isArray(missing)) throw new Error("Pod::Resolver#resolve returned no list");
56654
- if (missing.length === 0) return { ...evaluated2, sandbox, installer, resolver };
56722
+ if (missing.length === 0)
56723
+ return { ...evaluated2, sandbox, installer, resolver, gitCheckouts };
56655
56724
  await Promise.all(
56656
56725
  missing.map(async (entry) => {
56657
56726
  if (!Array.isArray(entry) || typeof entry[0] !== "string")
@@ -56686,7 +56755,9 @@ var init_podfile_cocoapods = __esm({
56686
56755
  import_node_fs75 = __toESM(require("node:fs"), 1);
56687
56756
  import_node_path74 = __toESM(require("node:path"), 1);
56688
56757
  init_cocoapods_trunk();
56758
+ init_is_record();
56689
56759
  init_pod_lockfile();
56760
+ init_pod_sources();
56690
56761
  init_podspec_cocoapods();
56691
56762
  init_podspec_ruby();
56692
56763
  init_podspec_ruby_stdlib();
@@ -56724,11 +56795,12 @@ module Pod
56724
56795
  end
56725
56796
 
56726
56797
  class Sandbox
56727
- attr_reader :root, :stored_podspecs
56798
+ attr_reader :root, :stored_podspecs, :checkout_sources
56728
56799
  def initialize(root)
56729
56800
  @root = Pathname.new(root)
56730
56801
  @stored_podspecs = {}
56731
56802
  @local_paths = {}
56803
+ @checkout_sources = {}
56732
56804
  end
56733
56805
  def specifications_root
56734
56806
  root + 'Local Podspecs'
@@ -57780,6 +57852,8 @@ module Pod
57780
57852
  PodspecSource.new(name, params, podfile_path)
57781
57853
  elsif params.key?(:path)
57782
57854
  PathSource.new(name, params, podfile_path)
57855
+ elsif params.key?(:git)
57856
+ GitSource.new(name, params, podfile_path)
57783
57857
  else
57784
57858
  raise Informative, "Peach does not fetch the external source of '#{name}': #{params}"
57785
57859
  end
@@ -57842,6 +57916,17 @@ module Pod
57842
57916
  declared_path =~ %r{^.+://} ? declared_path : normalized_podspec_path(declared_path)
57843
57917
  end
57844
57918
  end
57919
+
57920
+ class GitSource < AbstractExternalSource
57921
+ def fetch(sandbox)
57922
+ podspec, git, commit, submodules = Resolver::Trunk.git_checkout(name)
57923
+ raise Informative, "No Git checkout prepared for '#{name}'" unless podspec
57924
+ store_podspec(sandbox, Pathname(podspec))
57925
+ source = { :git => git, :commit => commit }
57926
+ source[:submodules] = true if submodules
57927
+ sandbox.checkout_sources[name] = source
57928
+ end
57929
+ end
57845
57930
  end
57846
57931
 
57847
57932
  class Resolver
@@ -66089,6 +66174,7 @@ ${processed.replace(/^/gm, " ")}` : `${processedKey}: ${processed}`;
66089
66174
  }
66090
66175
  if (value instanceof RString) return yamlString(value.s).trim();
66091
66176
  if (value instanceof RSymbol) return `:${value.name}`;
66177
+ if (typeof value === "boolean") return String(value);
66092
66178
  throw new Error(
66093
66179
  `the lockfile holds ${interp.toS(value)}, which YAMLHelper does not write`
66094
66180
  );
@@ -66130,6 +66216,65 @@ ${locations.map(fileRef).join("")}</Workspace>
66130
66216
  `${existing.slice(0, end)}${missing.map(fileRef).join("")}${existing.slice(end)}`
66131
66217
  );
66132
66218
  }
66219
+ async function preparePodInstallation(app, prepareEnv, workspace, lap) {
66220
+ const evaluated2 = evaluatePodfile(app, prepareEnv, workspace);
66221
+ const iosRoot = import_node_path82.default.dirname(evaluated2.file);
66222
+ const staging = import_node_fs81.default.mkdtempSync(import_node_path82.default.join(iosRoot, ".peach-pod-checkouts-"));
66223
+ try {
66224
+ const resolved = await resolvePodfile(evaluated2, staging);
66225
+ const { interp, file, podfile, sandbox: rubySandbox, resolver } = resolved;
66226
+ const call = (source, label) => rubyFailures(
66227
+ file,
66228
+ () => interp.callMethod(
66229
+ interp.evalString(source, label),
66230
+ "call",
66231
+ [podfile, rubySandbox, resolver],
66232
+ null,
66233
+ null,
66234
+ null,
66235
+ null
66236
+ )
66237
+ );
66238
+ const inputs2 = toJson(interp, call(INSTALL_INPUTS, "peach/install-inputs"));
66239
+ if (!isInstallInputs(inputs2))
66240
+ throw new Error(`${file}: the Podfile's install inputs are malformed`);
66241
+ const lock = lockfileYaml(interp, call(LOCKFILE, "cocoapods-core/lockfile"));
66242
+ lap("resolve");
66243
+ const podsRoot = import_node_path82.default.join(iosRoot, "Pods");
66244
+ import_node_fs81.default.rmSync(podsRoot, { recursive: true, force: true });
66245
+ import_node_fs81.default.mkdirSync(podsRoot, { recursive: true });
66246
+ const downloaded = /* @__PURE__ */ new Map();
66247
+ const copies = await Promise.allSettled(
66248
+ inputs2.downloads.map(async ([name3, json]) => {
66249
+ const spec = JSON.parse(json);
66250
+ if (!isRecord4(spec))
66251
+ throw new Error(`${name3}: the specification is no JSON object`);
66252
+ downloaded.set(name3, spec);
66253
+ const checkout = resolved.gitCheckouts.get(name3);
66254
+ const destination = import_node_path82.default.join(podsRoot, name3);
66255
+ import_node_fs81.default.cpSync(
66256
+ checkout?.root ?? await podSourceRoot(spec, prepareEnv),
66257
+ destination,
66258
+ {
66259
+ recursive: true,
66260
+ mode: import_node_fs81.default.constants.COPYFILE_FICLONE,
66261
+ verbatimSymlinks: true
66262
+ }
66263
+ );
66264
+ if (checkout) await preparePodSource(spec, destination, prepareEnv);
66265
+ })
66266
+ );
66267
+ for (const copy of copies) if (copy.status === "rejected") throw copy.reason;
66268
+ import_node_fs81.default.writeFileSync(
66269
+ import_node_path82.default.join(podsRoot, POD_GRAPH_SPECIFICATIONS),
66270
+ JSON.stringify(Object.fromEntries(inputs2.stored))
66271
+ );
66272
+ lap("download");
66273
+ return { resolved, inputs: inputs2, lock, downloaded, iosRoot, podsRoot };
66274
+ } finally {
66275
+ import_node_fs81.default.rmSync(staging, { recursive: true, force: true });
66276
+ }
66277
+ }
66133
66278
  async function installPods(app, env, workspace) {
66134
66279
  const timings = {};
66135
66280
  let started = performance.now();
@@ -66139,47 +66284,8 @@ async function installPods(app, env, workspace) {
66139
66284
  started = now;
66140
66285
  };
66141
66286
  const prepareEnv = await podPrepareEnvironment({ ...process.env, ...env });
66142
- const resolved = await resolvePodfile(evaluatePodfile(app, prepareEnv, workspace));
66143
- const { interp, file, podfile, sandbox: rubySandbox, resolver } = resolved;
66144
- const iosRoot = import_node_path82.default.dirname(file);
66145
- const call = (source, label) => rubyFailures(
66146
- file,
66147
- () => interp.callMethod(
66148
- interp.evalString(source, label),
66149
- "call",
66150
- [podfile, rubySandbox, resolver],
66151
- null,
66152
- null,
66153
- null,
66154
- null
66155
- )
66156
- );
66157
- const inputs2 = toJson(interp, call(INSTALL_INPUTS, "peach/install-inputs"));
66158
- if (!isInstallInputs(inputs2))
66159
- throw new Error(`${file}: the Podfile's install inputs are malformed`);
66160
- const lock = lockfileYaml(interp, call(LOCKFILE, "cocoapods-core/lockfile"));
66161
- lap("resolve");
66162
- const podsRoot = import_node_path82.default.join(iosRoot, "Pods");
66163
- import_node_fs81.default.rmSync(podsRoot, { recursive: true, force: true });
66164
- import_node_fs81.default.mkdirSync(podsRoot, { recursive: true });
66165
- const downloaded = /* @__PURE__ */ new Map();
66166
- await Promise.all(
66167
- inputs2.downloads.map(async ([name3, json]) => {
66168
- const spec = JSON.parse(json);
66169
- if (!isRecord4(spec)) throw new Error(`${name3}: the specification is no JSON object`);
66170
- downloaded.set(name3, spec);
66171
- import_node_fs81.default.cpSync(await podSourceRoot(spec, prepareEnv), import_node_path82.default.join(podsRoot, name3), {
66172
- recursive: true,
66173
- mode: import_node_fs81.default.constants.COPYFILE_FICLONE,
66174
- verbatimSymlinks: true
66175
- });
66176
- })
66177
- );
66178
- import_node_fs81.default.writeFileSync(
66179
- import_node_path82.default.join(podsRoot, POD_GRAPH_SPECIFICATIONS),
66180
- JSON.stringify(Object.fromEntries(inputs2.stored))
66181
- );
66182
- lap("download");
66287
+ const { resolved, inputs: inputs2, lock, downloaded, iosRoot, podsRoot } = await preparePodInstallation(app, prepareEnv, workspace, lap);
66288
+ const { interp, file } = resolved;
66183
66289
  const userProjects = /* @__PURE__ */ new Map();
66184
66290
  const inspected = inputs2.definitions.map((definition2) => {
66185
66291
  const projectPath = userProjectPath(iosRoot, definition2);
@@ -66339,6 +66445,7 @@ lambda do |podfile, sandbox, resolver|
66339
66445
  'DEPENDENCIES' => podfile.dependencies.map(&:to_s),
66340
66446
  'SPEC REPOS' => repos,
66341
66447
  'EXTERNAL SOURCES' => podfile.dependencies.select(&:external?).each_with_object({}) { |dep, result| result[dep.root_name] = dep.external_source },
66448
+ 'CHECKOUT OPTIONS' => sandbox.checkout_sources,
66342
66449
  'SPEC CHECKSUMS' => specs.select(&:defined_in_file).each_with_object({}) { |spec, result| result[spec.root.name] = spec.checksum },
66343
66450
  'PODFILE CHECKSUM' => podfile.checksum,
66344
66451
  'COCOAPODS' => '${COCOAPODS_VERSION2}',
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2665 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2666 | (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,19 +1,19 @@
1
- /*! peach v0.1.2665 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2666 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isSwiftResourcePath
4
- } from "./esm-chunks/chunk-5DMO6UQJ.mjs";
4
+ } from "./esm-chunks/chunk-C4XXXBD5.mjs";
5
5
  import {
6
6
  isNativeAppIdentity
7
- } from "./esm-chunks/chunk-3NJP5BIE.mjs";
8
- import "./esm-chunks/chunk-H5ATIUKE.mjs";
7
+ } from "./esm-chunks/chunk-K3IKKG2I.mjs";
8
+ import "./esm-chunks/chunk-SYOGZX55.mjs";
9
9
  import {
10
10
  insertBundleGlobalFooter,
11
11
  readBundleGlobalFooter
12
- } from "./esm-chunks/chunk-KPTB74RN.mjs";
12
+ } from "./esm-chunks/chunk-ZU6LSMDO.mjs";
13
13
  import {
14
14
  isRecord
15
- } from "./esm-chunks/chunk-V6PBAKRO.mjs";
16
- import "./esm-chunks/chunk-T7EAO4MJ.mjs";
15
+ } from "./esm-chunks/chunk-5HZMRPZT.mjs";
16
+ import "./esm-chunks/chunk-M4Q5C23L.mjs";
17
17
 
18
18
  // src/expoSwiftContract.ts
19
19
  function strings(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2665 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2666 | (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;