peachsim 0.1.2248 → 0.1.2250

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 (106) hide show
  1. package/cli/bridge-flow-runner.ts +30 -3
  2. package/cli/commands/flow.ts +4 -1
  3. package/cli/commands/inspect/settling.ts +35 -4
  4. package/cli/drivers/playwright.ts +2 -0
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +203 -53
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +1 -1
  28. package/dist-lib/detox/index.cjs +33 -9
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/expo-swift-bundle.cjs +177 -49
  31. package/dist-lib/expo-swift-metadata.cjs +1 -1
  32. package/dist-lib/expo-swift-metadata.mjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +210 -54
  35. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +45 -14
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +15 -8
  51. package/dist-lib/native-app-identity-project.cjs +2 -2
  52. package/dist-lib/native-app-identity-project.mjs +2 -2
  53. package/dist-lib/native-app-identity.cjs +1 -1
  54. package/dist-lib/native-app-identity.mjs +1 -1
  55. package/dist-lib/native-firebase-metadata.cjs +1 -1
  56. package/dist-lib/native-firebase-metadata.mjs +1 -1
  57. package/dist-lib/pdfium-raster.cjs +1 -1
  58. package/dist-lib/pdfium-raster.mjs +1 -1
  59. package/dist-lib/plist.cjs +1 -1
  60. package/dist-lib/plist.mjs +1 -1
  61. package/dist-lib/profiles.cjs +1 -1
  62. package/dist-lib/public-brand.cjs +1 -1
  63. package/dist-lib/public-origins-lib-esm.json +24 -24
  64. package/dist-lib/public-origins-lib.json +53 -53
  65. package/dist-lib/react-native-host-modules.cjs +1 -1
  66. package/dist-lib/react-native-host-modules.mjs +1 -1
  67. package/dist-lib/reap-browser.cjs +2 -2
  68. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  69. package/dist-lib/sdk.cjs +31 -7
  70. package/dist-lib/sdk.mjs +31 -7
  71. package/dist-lib/skills.cjs +289 -64
  72. package/dist-lib/swift-compile.cjs +165 -38
  73. package/dist-lib/swift-compile.mjs +165 -38
  74. package/dist-lib/swift-package.cjs +1 -1
  75. package/dist-lib/swift-package.mjs +1 -1
  76. package/dist-lib/swift-submit.cjs +1 -1
  77. package/dist-lib/swift-submit.mjs +1 -1
  78. package/dist-lib/swift-toolchain.cjs +1 -1
  79. package/dist-lib/swift.cjs +1 -1
  80. package/dist-lib/vite-swift.cjs +174 -46
  81. package/dist-lib/vite.cjs +15 -8
  82. package/dist-lib/worklet-executable.cjs +1 -1
  83. package/dist-lib/worklet-executable.mjs +1 -1
  84. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
  85. package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +0 -4
  86. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
  87. package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +8 -0
  88. package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -0
  89. package/dist-types/packages/peach-globals/src/globalsContract.d.ts +5 -0
  90. package/kotlin/sdk.tar.gz +0 -0
  91. package/package.json +1 -1
  92. package/runtime-companion.json +1 -1
  93. package/sdk/ios/wasm/include/math.h +1 -1
  94. package/sdk/ios/wasm/include/pthread.h +1 -1
  95. package/src/assetCatalogContract.ts +6 -0
  96. package/src/nitro-compile.ts +23 -1
  97. package/src/process-group.ts +5 -2
  98. package/src/runtime-packs.ts +8 -0
  99. package/src/sfSymbolMetricsContract.ts +73 -37
  100. package/src/swift-compile.ts +119 -13
  101. package/src/swift-guest-image-ledger.ts +10 -5
  102. package/src/swift-guest-link.ts +20 -14
  103. package/src/swift-guest-source-inputs.ts +5 -1
  104. package/src/swift-installed-targets.ts +4 -1
  105. package/src/swift-standins.ts +11 -8
  106. package/src/swift-wasm-prune.ts +33 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2250 | (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;
@@ -1714,7 +1714,8 @@ async function waitForSootsimIdle({
1714
1714
  skipIfInspectActive = false,
1715
1715
  readyPlayback = false,
1716
1716
  transitionStartWindowMs = 80,
1717
- transitionTimeoutMs = 4e3
1717
+ transitionTimeoutMs = 4e3,
1718
+ stillSince = null
1718
1719
  }) {
1719
1720
  let result;
1720
1721
  const observationStartedAt = Date.now();
@@ -1753,6 +1754,7 @@ async function waitForSootsimIdle({
1753
1754
  const accessibilityBounds = ${accessibilityBounds.toString()}
1754
1755
  const sameNativeAccessibilityShape = ${sameNativeAccessibilityShape.toString()}
1755
1756
  const readyPlayback = ${readyPlayback ? "true" : "false"}
1757
+ const stillSince = ${JSON.stringify(stillSince)}
1756
1758
  // full mounted-geometry observation needs at least two hierarchy reads
1757
1759
  // plus the stillness window, which a sub-second budget cannot afford:
1758
1760
  // tight budgets (auto-wait) settle on worker stillness plus root
@@ -1771,7 +1773,7 @@ async function waitForSootsimIdle({
1771
1773
  // those that began after it drained still can. a loaded host runs a
1772
1774
  // push past a tap's budget, so the transition gets its own timeout and
1773
1775
  // the budget restarts once it drains.
1774
- let transitionWait = (async () => {
1776
+ const watchTransition = async () => {
1775
1777
  try {
1776
1778
  const wfst = globalThis.__sootsimTest?.waitForScreenTransitions
1777
1779
  if (typeof wfst === 'function' && budgetMs > 120) {
@@ -1791,7 +1793,9 @@ async function waitForSootsimIdle({
1791
1793
  }
1792
1794
  } catch {}
1793
1795
  return false
1794
- })()
1796
+ }
1797
+ // a wait that may settle on its first poll watches only once that poll does not
1798
+ let transitionWait = stillSince === null ? watchTransition() : null
1795
1799
 
1796
1800
  // a worker that cannot answer within the remaining budget is busy, not
1797
1801
  // idle: its poll reads as unsettled. bounding each read by the budget
@@ -2143,6 +2147,9 @@ async function waitForSootsimIdle({
2143
2147
  if (clockNow() >= deadline) break
2144
2148
  }
2145
2149
  const pollStarted = clockNow()
2150
+ const readRevision = () =>
2151
+ answer(() => globalThis.__sootsimTest?.getGeometryRevision?.()).catch(() => null)
2152
+ const pollRevision = readRevision()
2146
2153
  const snapshot = await readSnapshot()
2147
2154
  if (snapshot.runtimeUnsupported) return snapshot.runtimeUnsupported
2148
2155
  // a read the deadline cut short observed nothing: the last full poll
@@ -2150,6 +2157,18 @@ async function waitForSootsimIdle({
2150
2157
  // the loop head drains a transition still in flight before it ends.
2151
2158
  if (snapshot.workerBusy && clockNow() >= deadline && report) continue
2152
2159
  polls++
2160
+ if (
2161
+ polls === 1 && stillSince !== null &&
2162
+ !snapshot.workerBusy && snapshot.pendingFetches === 0 && snapshot.requestInFlight === 0 &&
2163
+ !snapshot.webViewStarting && !snapshot.animating && !snapshot.shellAnimating &&
2164
+ !snapshot.layoutDirty && !snapshot.visibleMotion
2165
+ ) {
2166
+ const [proving, replying] = await Promise.all([pollRevision, readRevision()])
2167
+ if (proving === stillSince && replying === stillSince) {
2168
+ return { settled: true, elapsed: clockNow() - start, blockedBy: '', stillRevision: stillSince }
2169
+ }
2170
+ }
2171
+ if (polls === 1 && stillSince !== null) transitionWait = watchTransition()
2153
2172
  report = { snapshot, nativeHierarchy: lastNativeHierarchy, layout: lastLayout, requestTotal: lastRequestTotal, appCommits: lastAppCommits, nodeCount: lastNodeCount }
2154
2173
  if (snapshot.layoutDirty) dirtyPolls++
2155
2174
  if (snapshot.animating || snapshot.shellAnimating) animatingPolls++
@@ -2234,7 +2253,11 @@ async function waitForSootsimIdle({
2234
2253
  await transitionWait
2235
2254
  transitionWait = null
2236
2255
  }
2237
- if (stillProven()) return { settled: true, elapsed: clockNow() - start, blockedBy: '' }
2256
+ if (stillProven()) {
2257
+ const [proving, replying] = await Promise.all([pollRevision, readRevision()])
2258
+ const stillRevision = typeof proving === 'string' && proving === replying ? proving : undefined
2259
+ return { settled: true, elapsed: clockNow() - start, blockedBy: '', stillRevision }
2260
+ }
2238
2261
  }
2239
2262
  } else {
2240
2263
  stillPolls = []
@@ -2299,11 +2322,12 @@ async function waitForSootsimIdle({
2299
2322
  result.missingFields
2300
2323
  );
2301
2324
  }
2302
- const { elapsed, settled, blockedBy } = result ?? {};
2325
+ const { elapsed, settled, blockedBy, stillRevision } = result ?? {};
2303
2326
  return {
2304
2327
  elapsed: typeof elapsed === "number" ? elapsed : maxMs,
2305
2328
  settled: settled === true,
2306
- blockedBy: typeof blockedBy === "string" ? blockedBy : "unknown"
2329
+ blockedBy: typeof blockedBy === "string" ? blockedBy : "unknown",
2330
+ ...settled === true && typeof stillRevision === "string" ? { stillRevision } : {}
2307
2331
  };
2308
2332
  }
2309
2333
 
@@ -2399,7 +2423,7 @@ var import_node_path2 = require("node:path");
2399
2423
  // src/process-group.ts
2400
2424
  var import_node_child_process = require("node:child_process");
2401
2425
  var import_node_fs2 = require("node:fs");
2402
- function listProcessChildren(parents, timeoutMs = 3e3) {
2426
+ function listProcessChildren(parents, timeoutMs = 1e4) {
2403
2427
  if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
2404
2428
  throw new Error("process inspection requires valid parent pids");
2405
2429
  if (parents.length === 0) return [];
@@ -2451,7 +2475,7 @@ function isValidRuntimeVersion(value) {
2451
2475
  }
2452
2476
 
2453
2477
  // runtime-companion.json
2454
- var runtime_companion_default = { abi: 1, sha256: "0a25deb1065a15100e9bbd938d998d015318b067a7ab5d6e666a7360a2ab446a", file: "node/cli-0a25deb1065a15100e9bbd938d998d015318b067a7ab5d6e666a7360a2ab446a.cjs" };
2478
+ var runtime_companion_default = { abi: 1, sha256: "15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e", file: "node/cli-15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e.cjs" };
2455
2479
 
2456
2480
  // src/runtime-assets.ts
2457
2481
  var import_fs = __toESM(require("fs"), 1);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2250 | (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.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2250 | (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;
@@ -2537,7 +2537,7 @@ var init_process_table = __esm({
2537
2537
  });
2538
2538
 
2539
2539
  // src/process-group.ts
2540
- function listProcessChildren(parents, timeoutMs = 3e3) {
2540
+ function listProcessChildren(parents, timeoutMs = 1e4) {
2541
2541
  if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
2542
2542
  throw new Error("process inspection requires valid parent pids");
2543
2543
  if (parents.length === 0) return [];
@@ -2747,7 +2747,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
2747
2747
  try {
2748
2748
  signalProcessGroup(child, "SIGSTOP");
2749
2749
  let parents = [child.pid];
2750
- const inspectionDeadline = Date.now() + GRACEFUL_TIMEOUT_MS;
2750
+ const inspectionDeadline = Date.now() + INSPECTION_TIMEOUT_MS;
2751
2751
  while (parents.length > 0) {
2752
2752
  const remaining = inspectionDeadline - Date.now();
2753
2753
  if (remaining <= 0) {
@@ -2843,7 +2843,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
2843
2843
  }
2844
2844
  if (inspectionError) throw inspectionError;
2845
2845
  }
2846
- var import_node_child_process5, import_node_fs13, import_node_os3, import_node_path11, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, FREEZE_GUARD_NAME;
2846
+ var import_node_child_process5, import_node_fs13, import_node_os3, import_node_path11, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, INSPECTION_TIMEOUT_MS, FREEZE_GUARD_NAME;
2847
2847
  var init_process_group = __esm({
2848
2848
  "src/process-group.ts"() {
2849
2849
  "use strict";
@@ -2856,6 +2856,7 @@ var init_process_group = __esm({
2856
2856
  init_process_table();
2857
2857
  GRACEFUL_TIMEOUT_MS = 3e3;
2858
2858
  FORCED_EXIT_TIMEOUT_MS = 1e3;
2859
+ INSPECTION_TIMEOUT_MS = 1e4;
2859
2860
  FREEZE_GUARD_NAME = "process-freeze-guard";
2860
2861
  }
2861
2862
  });
@@ -13421,7 +13422,11 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
13421
13422
  objcClassSymToTypePrefix,
13422
13423
  typePrefixesInObj,
13423
13424
  rootFuncs,
13424
- rootSegs
13425
+ rootSegs,
13426
+ segPayloadRanges: sEnds.map((end, i) => [
13427
+ dataStart + sPayloadStarts[i],
13428
+ dataStart + end
13429
+ ])
13425
13430
  };
13426
13431
  }
13427
13432
  function parseWasmObjectCached(file, isDist, useCache) {
@@ -13669,6 +13674,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
13669
13674
  const eagerFiles = [];
13670
13675
  const lazyBuildObjects = /* @__PURE__ */ new Map();
13671
13676
  const extraArchiveObjs = [];
13677
+ const objectBytes = /* @__PURE__ */ new Map();
13672
13678
  let inStartLib = false;
13673
13679
  let swiftrtOrigPath = "";
13674
13680
  for (const t of tokens2) {
@@ -13715,7 +13721,9 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
13715
13721
  } else if (!inStartLib && t.endsWith(".a") && !t.endsWith("libclang_rt.builtins-wasm64.a") && import_node_fs34.default.existsSync(t)) {
13716
13722
  const members2 = readArMembers(new Uint8Array(import_node_fs34.default.readFileSync(t)));
13717
13723
  for (const m of members2) {
13718
- extraArchiveObjs.push(parseWasmObjectBytes(`${t}(${m.name})`, m.bytes, false));
13724
+ const object6 = parseWasmObjectBytes(`${t}(${m.name})`, m.bytes, false);
13725
+ extraArchiveObjs.push(object6);
13726
+ objectBytes.set(object6, Buffer.from(m.bytes));
13719
13727
  }
13720
13728
  }
13721
13729
  }
@@ -14086,9 +14094,28 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
14086
14094
  "$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
14087
14095
  "$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
14088
14096
  ]);
14097
+ const keepObjCClassesNamedInSegment = (obj, segIdx) => {
14098
+ const range2 = obj.segPayloadRanges[segIdx];
14099
+ if (!range2) return;
14100
+ let bytes = objectBytes.get(obj);
14101
+ if (!bytes) objectBytes.set(obj, bytes = import_node_fs34.default.readFileSync(obj.file));
14102
+ const text6 = bytes.toString("latin1", range2[0], range2[1]);
14103
+ for (const match of text6.matchAll(/So(\d+)/g)) {
14104
+ const start = match.index + 2 + match[1].length;
14105
+ const length = Number(match[1]);
14106
+ if (text6[start + length] !== "C") continue;
14107
+ const symbol2 = `._OBJC_CLASS_${text6.slice(start, start + length)}`;
14108
+ for (const provider of lazyProviders.get(symbol2) ?? []) {
14109
+ eagerDynamicObjects.add(provider);
14110
+ extractObject(provider);
14111
+ activateSymbolInObj(provider, provider.symNames.indexOf(symbol2));
14112
+ }
14113
+ }
14114
+ };
14089
14115
  while (workQueue.length > 0) {
14090
14116
  const item = workQueue.pop();
14091
14117
  const obj = item.obj;
14118
+ if (item.kind === "seg") keepObjCClassesNamedInSegment(obj, item.idx);
14092
14119
  let relocs;
14093
14120
  if (item.kind === "func") {
14094
14121
  relocs = obj.funcRelocs[item.idx];
@@ -15034,8 +15061,12 @@ function createGuestImageLedger(input) {
15034
15061
  }
15035
15062
  }
15036
15063
  }
15064
+ const nameBytes = /* @__PURE__ */ new Map();
15065
+ for (const definition2 of definitions)
15066
+ if (!nameBytes.has(definition2.name))
15067
+ nameBytes.set(definition2.name, Buffer.from(definition2.name));
15037
15068
  definitions.sort(
15038
- (a, b) => Buffer.compare(Buffer.from(a.name), Buffer.from(b.name)) || a.image - b.image
15069
+ (a, b) => Buffer.compare(nameBytes.get(a.name), nameBytes.get(b.name)) || a.image - b.image
15039
15070
  );
15040
15071
  const preserveCanonical = /* @__PURE__ */ new Set();
15041
15072
  const definitionsByName = Map.groupBy(definitions, (definition2) => definition2.name);
@@ -15065,12 +15096,12 @@ function createGuestImageLedger(input) {
15065
15096
  preserveCanonical.add(name3);
15066
15097
  for (const name3 of input.commandLineSymbols ?? []) preserveCanonical.add(name3);
15067
15098
  const bindingsByImage = /* @__PURE__ */ new Map();
15099
+ const definitionsByImage = Map.groupBy(definitions, (definition2) => definition2.image);
15068
15100
  for (const caller of input.callers) {
15069
15101
  const bindings = /* @__PURE__ */ new Map();
15070
15102
  const seen = /* @__PURE__ */ new Map();
15071
15103
  for (const image of [caller.image, ...caller.next])
15072
- for (const definition2 of definitions) {
15073
- if (definition2.image !== image) continue;
15104
+ for (const definition2 of definitionsByImage.get(image) ?? []) {
15074
15105
  const previous = seen.get(definition2.name);
15075
15106
  if (previous?.image === definition2.image) {
15076
15107
  if (previous.weak && !definition2.weak) {
@@ -15110,8 +15141,9 @@ function createGuestImageLedger(input) {
15110
15141
  definitionsByAlias.set(definition2.alias, definition2);
15111
15142
  }
15112
15143
  const objects = units.map(({ image, object: object6, aliases, functionImports }) => {
15113
- const bindings = new Map(bindingsByImage.get(image));
15114
- for (const [name3, alias] of startup.get(object6.path) ?? []) bindings.set(name3, alias);
15144
+ const shared = bindingsByImage.get(image);
15145
+ const own = startup.get(object6.path);
15146
+ const bindings = own ? new Map([...shared, ...own]) : shared;
15115
15147
  for (const [name3, type] of functionImports) {
15116
15148
  const alias = bindings.get(name3);
15117
15149
  const provider = alias === void 0 ? void 0 : definitionsByAlias.get(alias);
@@ -17030,6 +17062,7 @@ function linkGuestImages(options) {
17030
17062
  );
17031
17063
  }
17032
17064
  const archives = /* @__PURE__ */ new Map();
17065
+ const memberBytes = /* @__PURE__ */ new Map();
17033
17066
  const prepare2 = (provider2) => {
17034
17067
  const trace = runLink("discovery", [
17035
17068
  ...withOutput(args, discovery, true),
@@ -17073,20 +17106,23 @@ function linkGuestImages(options) {
17073
17106
  }
17074
17107
  const objectsByImage = /* @__PURE__ */ new Map();
17075
17108
  for (const image of plan.images) objectsByImage.set(image.id, []);
17109
+ const artifacts = new Map(plan.artifacts.map((artifact) => [artifact.path, artifact]));
17076
17110
  for (const item of selected2) {
17077
- const artifact = plan.artifacts.find(
17078
- (candidate) => candidate.path === item.artifact
17079
- );
17111
+ const artifact = artifacts.get(item.artifact);
17080
17112
  const image = selectedGuestInputImage(artifact, item.member);
17081
17113
  let bytes;
17082
17114
  if (item.member === null) bytes = import_node_fs38.default.readFileSync(item.artifact);
17083
17115
  else {
17084
- let members2 = archives.get(item.artifact);
17085
- if (!members2) {
17086
- members2 = readArMembers(import_node_fs38.default.readFileSync(item.artifact));
17116
+ let byName = memberBytes.get(item.artifact);
17117
+ if (!byName) {
17118
+ const members2 = readArMembers(import_node_fs38.default.readFileSync(item.artifact));
17087
17119
  archives.set(item.artifact, members2);
17120
+ byName = /* @__PURE__ */ new Map();
17121
+ for (const member of members2)
17122
+ if (!byName.has(member.name)) byName.set(member.name, member.bytes);
17123
+ memberBytes.set(item.artifact, byName);
17088
17124
  }
17089
- bytes = members2.find((member) => member.name === item.member).bytes;
17125
+ bytes = byName.get(item.member);
17090
17126
  }
17091
17127
  const objects = objectsByImage.get(image);
17092
17128
  if (!objects) throw new Error(`unknown image ${image}`);
@@ -17119,10 +17155,11 @@ function linkGuestImages(options) {
17119
17155
  const { selected, ledger } = prepared;
17120
17156
  const replacements = /* @__PURE__ */ new Map();
17121
17157
  const linkedOwners = /* @__PURE__ */ new Map();
17158
+ const ledgerObjects = new Map(ledger.objects.map((item) => [item.path, item]));
17122
17159
  for (const [index, artifact] of plan.artifacts.entries()) {
17123
17160
  const prefix = `${artifact.path}(`;
17124
17161
  if (artifact.kind === "object") {
17125
- const object6 = ledger.objects.find((item) => item.path === artifact.path);
17162
+ const object6 = ledgerObjects.get(artifact.path);
17126
17163
  if (!object6) continue;
17127
17164
  const output3 = import_node_path35.default.join(directory2, `object-${index}.o`);
17128
17165
  import_node_fs38.default.writeFileSync(output3, object6.bytes);
@@ -17142,9 +17179,7 @@ function linkGuestImages(options) {
17142
17179
  const output2 = import_node_path35.default.join(directory2, `archive-${index}.a`);
17143
17180
  const inputs = members2.map((member) => {
17144
17181
  const memberOutput = import_node_path35.default.join(memberDir, member.name);
17145
- const rewritten = ledger.objects.find(
17146
- (item) => item.path === `${prefix}${member.name})`
17147
- );
17182
+ const rewritten = ledgerObjects.get(`${prefix}${member.name})`);
17148
17183
  import_node_fs38.default.writeFileSync(memberOutput, rewritten?.bytes ?? member.bytes);
17149
17184
  if (rewritten) {
17150
17185
  linkedOwners.set(
@@ -17483,10 +17518,13 @@ function selectedGuestSymbolInputs(plan, selected) {
17483
17518
  else {
17484
17519
  let members2 = archives.get(item.artifact);
17485
17520
  if (!members2) {
17486
- members2 = readArMembers(import_node_fs38.default.readFileSync(item.artifact));
17521
+ members2 = Map.groupBy(
17522
+ readArMembers(import_node_fs38.default.readFileSync(item.artifact)),
17523
+ (member) => member.name
17524
+ );
17487
17525
  archives.set(item.artifact, members2);
17488
17526
  }
17489
- const matching = members2.filter((member) => member.name === item.member);
17527
+ const matching = members2.get(item.member) ?? [];
17490
17528
  if (matching.length !== 1)
17491
17529
  throw new Error(
17492
17530
  `ambiguous selected symbol input ${item.artifact}(${item.member})`
@@ -17898,9 +17936,10 @@ function sourceGuestClangLinkOptions(options) {
17898
17936
  if (command.tool !== "clang" || compiler !== (0, import_node_fs39.realpathSync)(import_node_path36.default.join(options.toolchainBin, "clang")) && compiler !== (0, import_node_fs39.realpathSync)(import_node_path36.default.join(options.buildDirectory, CLANG_TARGET_MODULE_WRAPPER)))
17899
17937
  throw new Error(`unsupported source object producer ${file}`);
17900
17938
  const args = command.args.slice(1).filter((arg) => arg !== "-c");
17939
+ const targetBuild = import_node_path36.default.relative(options.buildDirectory, file).split(import_node_path36.default.sep).findLast((part) => part !== ".build" && part.endsWith(".build"));
17901
17940
  const outputDirectory = import_node_path36.default.join(
17902
17941
  options.directory,
17903
- import_node_path36.default.basename(import_node_path36.default.dirname(file))
17942
+ targetBuild ?? import_node_path36.default.basename(import_node_path36.default.dirname(file))
17904
17943
  );
17905
17944
  (0, import_node_fs39.mkdirSync)(outputDirectory, { recursive: true });
17906
17945
  const output2 = import_node_path36.default.join(outputDirectory, `clang-link-${index}.ll`);
@@ -19887,6 +19926,46 @@ function swiftModuleInterface(moduleRoot, name3, interfaceRoot) {
19887
19926
  if (declared.size === 0) return null;
19888
19927
  return { declared, header: clangInterfaceHeader((0, import_node_fs49.readFileSync)(built2, "utf8")) };
19889
19928
  }
19929
+ function nativelyDeclaredFunctions(generated, headers) {
19930
+ const candidates = [
19931
+ ...new Set(
19932
+ [...generated.matchAll(/^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(/gm)].map(
19933
+ (match) => match[1]
19934
+ )
19935
+ )
19936
+ ];
19937
+ if (candidates.length === 0) return [];
19938
+ const declaration = new RegExp(`^[^\\n#/*]*?\\b(${candidates.join("|")})\\s*\\(`, "gm");
19939
+ const found = /* @__PURE__ */ new Set();
19940
+ for (const header of headers)
19941
+ for (const match of header.matchAll(declaration)) found.add(match[1]);
19942
+ return [...found];
19943
+ }
19944
+ function sdkObjCDeclarationOwners(frameworks) {
19945
+ const known = sdkDeclarationOwners.get(frameworks);
19946
+ if (known) return known;
19947
+ const owners = /* @__PURE__ */ new Map();
19948
+ for (const framework of (0, import_node_fs49.readdirSync)(frameworks))
19949
+ if (framework.endsWith(".framework")) {
19950
+ const headers = import_node_path46.default.join(frameworks, framework, "Headers");
19951
+ if ((0, import_node_fs49.existsSync)(headers)) {
19952
+ for (const file of (0, import_node_fs49.readdirSync)(headers, { recursive: true, encoding: "utf8" }))
19953
+ if (file.endsWith(".h")) {
19954
+ const header = (0, import_node_fs49.readFileSync)(import_node_path46.default.join(headers, file), "utf8");
19955
+ for (const name3 of [
19956
+ ...swiftInterfaceDeclarations(header),
19957
+ ...objcEnumerations(header),
19958
+ ...[
19959
+ ...header.matchAll(/^[A-Z_]*_(?:EXTERN|EXPORT)\b[^;(\n]*?\b(\w+)\s*\(/gm)
19960
+ ].map((match) => match[1])
19961
+ ])
19962
+ owners.set(name3, framework.slice(0, -".framework".length));
19963
+ }
19964
+ }
19965
+ }
19966
+ sdkDeclarationOwners.set(frameworks, owners);
19967
+ return owners;
19968
+ }
19890
19969
  function swiftHeaderWithSuperclassImports(header, interfaceFor) {
19891
19970
  const superclasses = new Set(
19892
19971
  [...header.matchAll(/@interface\s+\w+\s*:\s*(\w+)/g)].map((match) => match[1])
@@ -19919,6 +19998,10 @@ function withoutSwiftDeclarations(text6, declared, interfaceImport) {
19919
19998
  const name3 = /^\s*(?:[A-Z_]\w*(?:\([^()\n]*\))?\s+)*@(?:protocol|interface)\s+(\w+)\s*(?=[:<{]|$)/.exec(
19920
19999
  line
19921
20000
  )?.[1];
20001
+ const external = /^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(.*\)[^;\n]*;\s*$/.exec(
20002
+ line
20003
+ )?.[1];
20004
+ if (external && declared.has(external)) continue;
19922
20005
  const enumeration = /^\s*typedef\s+(?:NS_ENUM|NS_OPTIONS|SWIFT_ENUM(?:_NAMED)?)\s*\(\s*\w+\s*,\s*(\w+)\b/.exec(
19923
20006
  line
19924
20007
  )?.[1];
@@ -23148,15 +23231,29 @@ module ${moduleName}.Swift {
23148
23231
  [
23149
23232
  "#!/bin/sh",
23150
23233
  "name=",
23234
+ "explicit=",
23151
23235
  "prev=",
23152
23236
  'for arg in "$@"; do',
23153
- ' if [ "$prev" = -o ]; then name=${arg%/*}; name=${name##*/}; fi',
23237
+ " case $arg in -fmodule-name=*) explicit=1 ;; esac",
23238
+ ' if [ "$prev" = -o ]; then',
23239
+ " case $arg in */*) dir=${arg%/*} ;; *) dir= ;; esac",
23240
+ ' while [ -n "$dir" ] && [ "$dir" != / ] && [ "$dir" != . ]; do',
23241
+ " base=${dir##*/}",
23242
+ " case $base in",
23243
+ " .build) break ;;",
23244
+ " *.build) name=${base%.build}; break ;;",
23245
+ " esac",
23246
+ " next=${dir%/*}",
23247
+ ' [ "$next" = "$dir" ] && break',
23248
+ " dir=$next",
23249
+ " done",
23250
+ " fi",
23154
23251
  " prev=$arg",
23155
23252
  "done",
23156
- "case $name in",
23157
- ` *.build) exec '${import_node_path46.default.join(nativeToolchain(), "clang")}' "-fmodule-name=\${name%.build}" "$@" ;;`,
23158
- ` *) exec '${import_node_path46.default.join(nativeToolchain(), "clang")}' "$@" ;;`,
23159
- "esac",
23253
+ 'if [ -n "$name" ] && [ -z "$explicit" ]; then',
23254
+ ` exec '${import_node_path46.default.join(nativeToolchain(), "clang")}' "-fmodule-name=$name" "$@"`,
23255
+ "fi",
23256
+ `exec '${import_node_path46.default.join(nativeToolchain(), "clang")}' "$@"`,
23160
23257
  ""
23161
23258
  ].join("\n")
23162
23259
  );
@@ -23615,7 +23712,7 @@ function frameworkLinkClosure(scratch2, roots) {
23615
23712
  const deps = /* @__PURE__ */ new Set();
23616
23713
  for (const file of paths) {
23617
23714
  const module2 = /\/Modules\/([^/]+)\.swiftmodule$/.exec(file);
23618
- const object6 = /\/([^/]+)\.build\/[^/]+\.o$/.exec(file);
23715
+ const object6 = /\/release\/([^/]+)\.build\/.+\.o$/.exec(file);
23619
23716
  if (module2) deps.add(module2[1]);
23620
23717
  else if (object6 && object6[1] !== pending.name) deps.add(object6[1]);
23621
23718
  }
@@ -24291,11 +24388,28 @@ function compileSwiftProjectOnce(input, options) {
24291
24388
  ))
24292
24389
  declared.add(name4);
24293
24390
  }
24294
- const header = withoutSwiftDeclarations(
24391
+ const own = withoutSwiftDeclarations(
24295
24392
  clangInterfaceHeader((0, import_node_fs49.readFileSync)(source, "utf8")),
24296
24393
  declared,
24297
24394
  `#import <${name3}/${name3}.h>`
24298
24395
  );
24396
+ const owners = sdkObjCDeclarationOwners(import_node_path46.default.dirname(import_node_path46.default.dirname(headers)));
24397
+ const foreign = /* @__PURE__ */ new Map();
24398
+ for (const declaration of [
24399
+ ...swiftInterfaceDeclarations(own),
24400
+ ...objcEnumerations(own),
24401
+ ...[...own.matchAll(/^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(/gm)].map(
24402
+ (match) => match[1]
24403
+ )
24404
+ ]) {
24405
+ const owner = owners.get(declaration);
24406
+ if (owner && owner !== name3) foreign.set(declaration, owner);
24407
+ }
24408
+ const header = foreign.size ? withoutSwiftDeclarations(
24409
+ own,
24410
+ new Set(foreign.keys()),
24411
+ [...new Set(foreign.values())].map((owner) => `#import <${owner}/${owner}.h>`).join("\n")
24412
+ ) : own;
24299
24413
  const value = {
24300
24414
  file: import_node_path46.default.join(root, ".build/peach-framework-objc", `${name3}-Swift.h`),
24301
24415
  header,
@@ -24332,18 +24446,25 @@ function compileSwiftProjectOnce(input, options) {
24332
24446
  `${producer}-Swift.h`
24333
24447
  );
24334
24448
  const original = preparation.nativeHeaderDeclarations[producer] ? emitted.replace(/-Swift\.h$/, "-Swift.original.h") : emitted;
24335
- if ((0, import_node_fs49.existsSync)(original))
24449
+ if ((0, import_node_fs49.existsSync)(original)) {
24450
+ const generated = clangInterfaceHeader((0, import_node_fs49.readFileSync)(original, "utf8"));
24336
24451
  writeBuildFile(
24337
24452
  emitted,
24338
24453
  withoutSwiftDeclarations(
24339
- swiftHeaderWithSuperclassImports(
24340
- clangInterfaceHeader((0, import_node_fs49.readFileSync)(original, "utf8")),
24341
- frameworkInterface
24342
- ),
24343
- new Set(preparation.nativeHeaderDeclarations[producer]),
24454
+ swiftHeaderWithSuperclassImports(generated, frameworkInterface),
24455
+ /* @__PURE__ */ new Set([
24456
+ ...preparation.nativeHeaderDeclarations[producer] ?? [],
24457
+ ...nativelyDeclaredFunctions(
24458
+ generated,
24459
+ Object.entries(input.files).filter(
24460
+ ([name3]) => name3.endsWith(".h") && !name3.endsWith("-Swift.h")
24461
+ ).map(([, source]) => source)
24462
+ )
24463
+ ]),
24344
24464
  `#import <${producer}/${producer}.h>`
24345
24465
  )
24346
24466
  );
24467
+ }
24347
24468
  }
24348
24469
  }
24349
24470
  const checkpoints = import_node_path46.default.join(
@@ -24481,7 +24602,7 @@ function compileSwiftProjectOnce(input, options) {
24481
24602
  options.signal
24482
24603
  );
24483
24604
  }
24484
- var import_node_child_process28, import_node_crypto20, import_node_fs49, import_node_os10, import_node_path46, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, NOT_ON_IOS, DELEGATE_CLASS, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
24605
+ var import_node_child_process28, import_node_crypto20, import_node_fs49, import_node_os10, import_node_path46, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, objcEnumerations, sdkDeclarationOwners, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, NOT_ON_IOS, DELEGATE_CLASS, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
24485
24606
  var init_swift_compile = __esm({
24486
24607
  "src/swift-compile.ts"() {
24487
24608
  "use strict";
@@ -24528,6 +24649,12 @@ var init_swift_compile = __esm({
24528
24649
  /^@import (?:CoreFoundation|FoundationNetworking);$/gm,
24529
24650
  "@import Foundation;"
24530
24651
  ).replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
24652
+ objcEnumerations = (header) => [
24653
+ ...header.matchAll(
24654
+ /^\s*typedef\s+(?:NS|CF|SWIFT)_\w*(?:ENUM|OPTIONS)\w*\s*\(\s*\w+\s*,\s*(\w+)\b/gm
24655
+ )
24656
+ ].map((match) => match[1]);
24657
+ sdkDeclarationOwners = /* @__PURE__ */ new Map();
24531
24658
  swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
24532
24659
  ...[
24533
24660
  ...header.matchAll(
@@ -24710,7 +24837,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
24710
24837
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
24711
24838
  MULTI_MANIFEST_VERSION = 68;
24712
24839
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
24713
- compilerSourceDigest = true ? "6b31bc2b6f1a60a8ff02569b886f5f3a6cca1ec484cdb3c17ac060942b93cb3e" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
24840
+ compilerSourceDigest = true ? "4a1be1d1296381c7090b5b2b704a7d2bebba03ceaa580613acd0f2c39c31ed4c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
24714
24841
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
24715
24842
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
24716
24843
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -28840,7 +28967,7 @@ var init_swift_standin_digest = __esm({
28840
28967
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
28841
28968
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
28842
28969
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
28843
- STANDIN_SOURCE_DIGEST = true ? "7b618908e76b704175d5c94e30ceb691f6a3f50052a1d5a7bc25f24a07375c9b" : standinSourceDigest();
28970
+ STANDIN_SOURCE_DIGEST = true ? "977c30e838b3cb068d200b9a9a12851b01d2192d0d04e2b5a6abe8189c168d42" : standinSourceDigest();
28844
28971
  }
28845
28972
  });
28846
28973
 
@@ -31145,9 +31272,9 @@ function exec(file, args, cwd) {
31145
31272
  }
31146
31273
  function failure(error) {
31147
31274
  const output2 = error && typeof error === "object" && "stderr" in error ? `${String(error.stderr)}
31148
- ${"stdout" in error ? String(error.stdout) : ""}` : String(error);
31149
- const errors = output2.split("\n").filter((line) => /^\S.*?:\d+:\d+: error:/.test(line)).map((line) => line.replace(/^.*?:\d+:\d+: error:\s*/, "").trim());
31150
- return [...new Set(errors)].slice(0, 3).join("; ") || output2.trim().slice(0, 400);
31275
+ ${"stdout" in error ? String(error.stdout) : ""}` : error instanceof Error ? error.message : String(error);
31276
+ const errors = output2.split("\n").filter((line) => /^(\S.*?:\d+:\d+: )?error:/.test(line)).map((line) => line.replace(/^(.*?:\d+:\d+: )?error:\s*/, "").trim());
31277
+ return [...new Set(errors)].slice(0, 3).join("; ") || output2.trim().slice(-600);
31151
31278
  }
31152
31279
  function treeDigest2(root) {
31153
31280
  const names = [];
@@ -31658,6 +31785,8 @@ function peachModuleDirs(toolchain, imports2, sdkIncludes) {
31658
31785
  target,
31659
31786
  "-Xswiftc",
31660
31787
  "-Osize",
31788
+ "-Xswiftc",
31789
+ "-gnone",
31661
31790
  ...plugins.libraries.flatMap((library) => [
31662
31791
  "-Xswiftc",
31663
31792
  "-load-plugin-library",
@@ -33293,10 +33422,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
33293
33422
  ) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
33294
33423
  );
33295
33424
  } catch (error) {
33296
- throw new Error(
33297
- `no stand-in for ${surface.module}: ${error instanceof Error && !("stderr" in error) ? error.message : failure(error)}`,
33298
- { cause: error }
33299
- );
33425
+ throw new Error(`no stand-in for ${surface.module}: ${failure(error)}`, {
33426
+ cause: error
33427
+ });
33300
33428
  }
33301
33429
  }
33302
33430
  publish(result);
@@ -49246,7 +49374,7 @@ init_swift_native_pin();
49246
49374
  init_xcode_project();
49247
49375
  var EXPO_NATIVE_ENTRY_NAME = "ios";
49248
49376
  function expoNativeCompilerDigestValue() {
49249
- return true ? "446bf6dc0f5ffa819ef1aa8b28a7e2ced01c01b9d003c548d978b6610dec6435" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
49377
+ return true ? "61015852e514afc4871689bd71712eb2a5ac95c8b04829519dc81f6855f86b30" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
49250
49378
  }
49251
49379
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
49252
49380
  function readSources(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2250 | (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.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2250 | (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.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2250 | (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;