peachsim 0.1.2248 → 0.1.2249

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 (99) hide show
  1. package/cli/bridge-flow-runner.ts +28 -2
  2. package/cli/commands/inspect/settling.ts +35 -4
  3. package/cli/drivers/playwright.ts +2 -0
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +150 -40
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +32 -8
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +148 -38
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +150 -40
  34. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +34 -10
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +4 -4
  50. package/dist-lib/native-app-identity-project.cjs +2 -2
  51. package/dist-lib/native-app-identity-project.mjs +2 -2
  52. package/dist-lib/native-app-identity.cjs +1 -1
  53. package/dist-lib/native-app-identity.mjs +1 -1
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/pdfium-raster.cjs +1 -1
  57. package/dist-lib/pdfium-raster.mjs +1 -1
  58. package/dist-lib/plist.cjs +1 -1
  59. package/dist-lib/plist.mjs +1 -1
  60. package/dist-lib/profiles.cjs +1 -1
  61. package/dist-lib/public-brand.cjs +1 -1
  62. package/dist-lib/public-origins-lib-esm.json +24 -24
  63. package/dist-lib/public-origins-lib.json +53 -53
  64. package/dist-lib/react-native-host-modules.cjs +1 -1
  65. package/dist-lib/react-native-host-modules.mjs +1 -1
  66. package/dist-lib/reap-browser.cjs +1 -1
  67. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  68. package/dist-lib/sdk.cjs +31 -7
  69. package/dist-lib/sdk.mjs +31 -7
  70. package/dist-lib/skills.cjs +194 -49
  71. package/dist-lib/swift-compile.cjs +137 -28
  72. package/dist-lib/swift-compile.mjs +137 -28
  73. package/dist-lib/swift-package.cjs +1 -1
  74. package/dist-lib/swift-package.mjs +1 -1
  75. package/dist-lib/swift-submit.cjs +1 -1
  76. package/dist-lib/swift-submit.mjs +1 -1
  77. package/dist-lib/swift-toolchain.cjs +1 -1
  78. package/dist-lib/swift.cjs +1 -1
  79. package/dist-lib/vite-swift.cjs +146 -36
  80. package/dist-lib/vite.cjs +4 -4
  81. package/dist-lib/worklet-executable.cjs +1 -1
  82. package/dist-lib/worklet-executable.mjs +1 -1
  83. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
  84. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
  85. package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +8 -0
  86. package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -0
  87. package/dist-types/packages/peach-globals/src/globalsContract.d.ts +5 -0
  88. package/kotlin/sdk.tar.gz +0 -0
  89. package/package.json +1 -1
  90. package/runtime-companion.json +1 -1
  91. package/sdk/ios/wasm/include/math.h +1 -1
  92. package/sdk/ios/wasm/include/pthread.h +1 -1
  93. package/src/assetCatalogContract.ts +6 -0
  94. package/src/sfSymbolMetricsContract.ts +73 -37
  95. package/src/swift-compile.ts +99 -7
  96. package/src/swift-guest-image-ledger.ts +10 -5
  97. package/src/swift-guest-link.ts +20 -14
  98. package/src/swift-standins.ts +11 -8
  99. package/src/swift-wasm-prune.ts +30 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (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;
@@ -13421,7 +13421,11 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
13421
13421
  objcClassSymToTypePrefix,
13422
13422
  typePrefixesInObj,
13423
13423
  rootFuncs,
13424
- rootSegs
13424
+ rootSegs,
13425
+ segPayloadRanges: sEnds.map((end, i) => [
13426
+ dataStart + sPayloadStarts[i],
13427
+ dataStart + end
13428
+ ])
13425
13429
  };
13426
13430
  }
13427
13431
  function parseWasmObjectCached(file, isDist, useCache) {
@@ -14086,9 +14090,29 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
14086
14090
  "$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
14087
14091
  "$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
14088
14092
  ]);
14093
+ const objectBytes = /* @__PURE__ */ new Map();
14094
+ const keepObjCClassesNamedInSegment = (obj, segIdx) => {
14095
+ const range2 = obj.segPayloadRanges[segIdx];
14096
+ if (!range2) return;
14097
+ let bytes = objectBytes.get(obj);
14098
+ if (!bytes) objectBytes.set(obj, bytes = import_node_fs34.default.readFileSync(obj.file));
14099
+ const text6 = bytes.toString("latin1", range2[0], range2[1]);
14100
+ for (const match of text6.matchAll(/So(\d+)/g)) {
14101
+ const start = match.index + 2 + match[1].length;
14102
+ const length = Number(match[1]);
14103
+ if (text6[start + length] !== "C") continue;
14104
+ const symbol2 = `._OBJC_CLASS_${text6.slice(start, start + length)}`;
14105
+ for (const provider of lazyProviders.get(symbol2) ?? []) {
14106
+ eagerDynamicObjects.add(provider);
14107
+ extractObject(provider);
14108
+ activateSymbolInObj(provider, provider.symNames.indexOf(symbol2));
14109
+ }
14110
+ }
14111
+ };
14089
14112
  while (workQueue.length > 0) {
14090
14113
  const item = workQueue.pop();
14091
14114
  const obj = item.obj;
14115
+ if (item.kind === "seg") keepObjCClassesNamedInSegment(obj, item.idx);
14092
14116
  let relocs;
14093
14117
  if (item.kind === "func") {
14094
14118
  relocs = obj.funcRelocs[item.idx];
@@ -15034,8 +15058,12 @@ function createGuestImageLedger(input) {
15034
15058
  }
15035
15059
  }
15036
15060
  }
15061
+ const nameBytes = /* @__PURE__ */ new Map();
15062
+ for (const definition2 of definitions)
15063
+ if (!nameBytes.has(definition2.name))
15064
+ nameBytes.set(definition2.name, Buffer.from(definition2.name));
15037
15065
  definitions.sort(
15038
- (a, b) => Buffer.compare(Buffer.from(a.name), Buffer.from(b.name)) || a.image - b.image
15066
+ (a, b) => Buffer.compare(nameBytes.get(a.name), nameBytes.get(b.name)) || a.image - b.image
15039
15067
  );
15040
15068
  const preserveCanonical = /* @__PURE__ */ new Set();
15041
15069
  const definitionsByName = Map.groupBy(definitions, (definition2) => definition2.name);
@@ -15065,12 +15093,12 @@ function createGuestImageLedger(input) {
15065
15093
  preserveCanonical.add(name3);
15066
15094
  for (const name3 of input.commandLineSymbols ?? []) preserveCanonical.add(name3);
15067
15095
  const bindingsByImage = /* @__PURE__ */ new Map();
15096
+ const definitionsByImage = Map.groupBy(definitions, (definition2) => definition2.image);
15068
15097
  for (const caller of input.callers) {
15069
15098
  const bindings = /* @__PURE__ */ new Map();
15070
15099
  const seen = /* @__PURE__ */ new Map();
15071
15100
  for (const image of [caller.image, ...caller.next])
15072
- for (const definition2 of definitions) {
15073
- if (definition2.image !== image) continue;
15101
+ for (const definition2 of definitionsByImage.get(image) ?? []) {
15074
15102
  const previous = seen.get(definition2.name);
15075
15103
  if (previous?.image === definition2.image) {
15076
15104
  if (previous.weak && !definition2.weak) {
@@ -15110,8 +15138,9 @@ function createGuestImageLedger(input) {
15110
15138
  definitionsByAlias.set(definition2.alias, definition2);
15111
15139
  }
15112
15140
  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);
15141
+ const shared = bindingsByImage.get(image);
15142
+ const own = startup.get(object6.path);
15143
+ const bindings = own ? new Map([...shared, ...own]) : shared;
15115
15144
  for (const [name3, type] of functionImports) {
15116
15145
  const alias = bindings.get(name3);
15117
15146
  const provider = alias === void 0 ? void 0 : definitionsByAlias.get(alias);
@@ -17030,6 +17059,7 @@ function linkGuestImages(options) {
17030
17059
  );
17031
17060
  }
17032
17061
  const archives = /* @__PURE__ */ new Map();
17062
+ const memberBytes = /* @__PURE__ */ new Map();
17033
17063
  const prepare2 = (provider2) => {
17034
17064
  const trace = runLink("discovery", [
17035
17065
  ...withOutput(args, discovery, true),
@@ -17073,20 +17103,23 @@ function linkGuestImages(options) {
17073
17103
  }
17074
17104
  const objectsByImage = /* @__PURE__ */ new Map();
17075
17105
  for (const image of plan.images) objectsByImage.set(image.id, []);
17106
+ const artifacts = new Map(plan.artifacts.map((artifact) => [artifact.path, artifact]));
17076
17107
  for (const item of selected2) {
17077
- const artifact = plan.artifacts.find(
17078
- (candidate) => candidate.path === item.artifact
17079
- );
17108
+ const artifact = artifacts.get(item.artifact);
17080
17109
  const image = selectedGuestInputImage(artifact, item.member);
17081
17110
  let bytes;
17082
17111
  if (item.member === null) bytes = import_node_fs38.default.readFileSync(item.artifact);
17083
17112
  else {
17084
- let members2 = archives.get(item.artifact);
17085
- if (!members2) {
17086
- members2 = readArMembers(import_node_fs38.default.readFileSync(item.artifact));
17113
+ let byName = memberBytes.get(item.artifact);
17114
+ if (!byName) {
17115
+ const members2 = readArMembers(import_node_fs38.default.readFileSync(item.artifact));
17087
17116
  archives.set(item.artifact, members2);
17117
+ byName = /* @__PURE__ */ new Map();
17118
+ for (const member of members2)
17119
+ if (!byName.has(member.name)) byName.set(member.name, member.bytes);
17120
+ memberBytes.set(item.artifact, byName);
17088
17121
  }
17089
- bytes = members2.find((member) => member.name === item.member).bytes;
17122
+ bytes = byName.get(item.member);
17090
17123
  }
17091
17124
  const objects = objectsByImage.get(image);
17092
17125
  if (!objects) throw new Error(`unknown image ${image}`);
@@ -17119,10 +17152,11 @@ function linkGuestImages(options) {
17119
17152
  const { selected, ledger } = prepared;
17120
17153
  const replacements = /* @__PURE__ */ new Map();
17121
17154
  const linkedOwners = /* @__PURE__ */ new Map();
17155
+ const ledgerObjects = new Map(ledger.objects.map((item) => [item.path, item]));
17122
17156
  for (const [index, artifact] of plan.artifacts.entries()) {
17123
17157
  const prefix = `${artifact.path}(`;
17124
17158
  if (artifact.kind === "object") {
17125
- const object6 = ledger.objects.find((item) => item.path === artifact.path);
17159
+ const object6 = ledgerObjects.get(artifact.path);
17126
17160
  if (!object6) continue;
17127
17161
  const output3 = import_node_path35.default.join(directory2, `object-${index}.o`);
17128
17162
  import_node_fs38.default.writeFileSync(output3, object6.bytes);
@@ -17142,9 +17176,7 @@ function linkGuestImages(options) {
17142
17176
  const output2 = import_node_path35.default.join(directory2, `archive-${index}.a`);
17143
17177
  const inputs = members2.map((member) => {
17144
17178
  const memberOutput = import_node_path35.default.join(memberDir, member.name);
17145
- const rewritten = ledger.objects.find(
17146
- (item) => item.path === `${prefix}${member.name})`
17147
- );
17179
+ const rewritten = ledgerObjects.get(`${prefix}${member.name})`);
17148
17180
  import_node_fs38.default.writeFileSync(memberOutput, rewritten?.bytes ?? member.bytes);
17149
17181
  if (rewritten) {
17150
17182
  linkedOwners.set(
@@ -17483,10 +17515,13 @@ function selectedGuestSymbolInputs(plan, selected) {
17483
17515
  else {
17484
17516
  let members2 = archives.get(item.artifact);
17485
17517
  if (!members2) {
17486
- members2 = readArMembers(import_node_fs38.default.readFileSync(item.artifact));
17518
+ members2 = Map.groupBy(
17519
+ readArMembers(import_node_fs38.default.readFileSync(item.artifact)),
17520
+ (member) => member.name
17521
+ );
17487
17522
  archives.set(item.artifact, members2);
17488
17523
  }
17489
- const matching = members2.filter((member) => member.name === item.member);
17524
+ const matching = members2.get(item.member) ?? [];
17490
17525
  if (matching.length !== 1)
17491
17526
  throw new Error(
17492
17527
  `ambiguous selected symbol input ${item.artifact}(${item.member})`
@@ -19887,6 +19922,46 @@ function swiftModuleInterface(moduleRoot, name3, interfaceRoot) {
19887
19922
  if (declared.size === 0) return null;
19888
19923
  return { declared, header: clangInterfaceHeader((0, import_node_fs49.readFileSync)(built2, "utf8")) };
19889
19924
  }
19925
+ function nativelyDeclaredFunctions(generated, headers) {
19926
+ const candidates = [
19927
+ ...new Set(
19928
+ [...generated.matchAll(/^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(/gm)].map(
19929
+ (match) => match[1]
19930
+ )
19931
+ )
19932
+ ];
19933
+ if (candidates.length === 0) return [];
19934
+ const declaration = new RegExp(`^[^\\n#/*]*?\\b(${candidates.join("|")})\\s*\\(`, "gm");
19935
+ const found = /* @__PURE__ */ new Set();
19936
+ for (const header of headers)
19937
+ for (const match of header.matchAll(declaration)) found.add(match[1]);
19938
+ return [...found];
19939
+ }
19940
+ function sdkObjCDeclarationOwners(frameworks) {
19941
+ const known = sdkDeclarationOwners.get(frameworks);
19942
+ if (known) return known;
19943
+ const owners = /* @__PURE__ */ new Map();
19944
+ for (const framework of (0, import_node_fs49.readdirSync)(frameworks))
19945
+ if (framework.endsWith(".framework")) {
19946
+ const headers = import_node_path46.default.join(frameworks, framework, "Headers");
19947
+ if ((0, import_node_fs49.existsSync)(headers)) {
19948
+ for (const file of (0, import_node_fs49.readdirSync)(headers, { recursive: true, encoding: "utf8" }))
19949
+ if (file.endsWith(".h")) {
19950
+ const header = (0, import_node_fs49.readFileSync)(import_node_path46.default.join(headers, file), "utf8");
19951
+ for (const name3 of [
19952
+ ...swiftInterfaceDeclarations(header),
19953
+ ...objcEnumerations(header),
19954
+ ...[
19955
+ ...header.matchAll(/^[A-Z_]*_(?:EXTERN|EXPORT)\b[^;(\n]*?\b(\w+)\s*\(/gm)
19956
+ ].map((match) => match[1])
19957
+ ])
19958
+ owners.set(name3, framework.slice(0, -".framework".length));
19959
+ }
19960
+ }
19961
+ }
19962
+ sdkDeclarationOwners.set(frameworks, owners);
19963
+ return owners;
19964
+ }
19890
19965
  function swiftHeaderWithSuperclassImports(header, interfaceFor) {
19891
19966
  const superclasses = new Set(
19892
19967
  [...header.matchAll(/@interface\s+\w+\s*:\s*(\w+)/g)].map((match) => match[1])
@@ -19919,6 +19994,10 @@ function withoutSwiftDeclarations(text6, declared, interfaceImport) {
19919
19994
  const name3 = /^\s*(?:[A-Z_]\w*(?:\([^()\n]*\))?\s+)*@(?:protocol|interface)\s+(\w+)\s*(?=[:<{]|$)/.exec(
19920
19995
  line
19921
19996
  )?.[1];
19997
+ const external = /^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(.*\)[^;\n]*;\s*$/.exec(
19998
+ line
19999
+ )?.[1];
20000
+ if (external && declared.has(external)) continue;
19922
20001
  const enumeration = /^\s*typedef\s+(?:NS_ENUM|NS_OPTIONS|SWIFT_ENUM(?:_NAMED)?)\s*\(\s*\w+\s*,\s*(\w+)\b/.exec(
19923
20002
  line
19924
20003
  )?.[1];
@@ -24291,11 +24370,28 @@ function compileSwiftProjectOnce(input, options) {
24291
24370
  ))
24292
24371
  declared.add(name4);
24293
24372
  }
24294
- const header = withoutSwiftDeclarations(
24373
+ const own = withoutSwiftDeclarations(
24295
24374
  clangInterfaceHeader((0, import_node_fs49.readFileSync)(source, "utf8")),
24296
24375
  declared,
24297
24376
  `#import <${name3}/${name3}.h>`
24298
24377
  );
24378
+ const owners = sdkObjCDeclarationOwners(import_node_path46.default.dirname(import_node_path46.default.dirname(headers)));
24379
+ const foreign = /* @__PURE__ */ new Map();
24380
+ for (const declaration of [
24381
+ ...swiftInterfaceDeclarations(own),
24382
+ ...objcEnumerations(own),
24383
+ ...[...own.matchAll(/^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(/gm)].map(
24384
+ (match) => match[1]
24385
+ )
24386
+ ]) {
24387
+ const owner = owners.get(declaration);
24388
+ if (owner && owner !== name3) foreign.set(declaration, owner);
24389
+ }
24390
+ const header = foreign.size ? withoutSwiftDeclarations(
24391
+ own,
24392
+ new Set(foreign.keys()),
24393
+ [...new Set(foreign.values())].map((owner) => `#import <${owner}/${owner}.h>`).join("\n")
24394
+ ) : own;
24299
24395
  const value = {
24300
24396
  file: import_node_path46.default.join(root, ".build/peach-framework-objc", `${name3}-Swift.h`),
24301
24397
  header,
@@ -24332,18 +24428,25 @@ function compileSwiftProjectOnce(input, options) {
24332
24428
  `${producer}-Swift.h`
24333
24429
  );
24334
24430
  const original = preparation.nativeHeaderDeclarations[producer] ? emitted.replace(/-Swift\.h$/, "-Swift.original.h") : emitted;
24335
- if ((0, import_node_fs49.existsSync)(original))
24431
+ if ((0, import_node_fs49.existsSync)(original)) {
24432
+ const generated = clangInterfaceHeader((0, import_node_fs49.readFileSync)(original, "utf8"));
24336
24433
  writeBuildFile(
24337
24434
  emitted,
24338
24435
  withoutSwiftDeclarations(
24339
- swiftHeaderWithSuperclassImports(
24340
- clangInterfaceHeader((0, import_node_fs49.readFileSync)(original, "utf8")),
24341
- frameworkInterface
24342
- ),
24343
- new Set(preparation.nativeHeaderDeclarations[producer]),
24436
+ swiftHeaderWithSuperclassImports(generated, frameworkInterface),
24437
+ /* @__PURE__ */ new Set([
24438
+ ...preparation.nativeHeaderDeclarations[producer] ?? [],
24439
+ ...nativelyDeclaredFunctions(
24440
+ generated,
24441
+ Object.entries(input.files).filter(
24442
+ ([name3]) => name3.endsWith(".h") && !name3.endsWith("-Swift.h")
24443
+ ).map(([, source]) => source)
24444
+ )
24445
+ ]),
24344
24446
  `#import <${producer}/${producer}.h>`
24345
24447
  )
24346
24448
  );
24449
+ }
24347
24450
  }
24348
24451
  }
24349
24452
  const checkpoints = import_node_path46.default.join(
@@ -24481,7 +24584,7 @@ function compileSwiftProjectOnce(input, options) {
24481
24584
  options.signal
24482
24585
  );
24483
24586
  }
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;
24587
+ 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
24588
  var init_swift_compile = __esm({
24486
24589
  "src/swift-compile.ts"() {
24487
24590
  "use strict";
@@ -24528,6 +24631,12 @@ var init_swift_compile = __esm({
24528
24631
  /^@import (?:CoreFoundation|FoundationNetworking);$/gm,
24529
24632
  "@import Foundation;"
24530
24633
  ).replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
24634
+ objcEnumerations = (header) => [
24635
+ ...header.matchAll(
24636
+ /^\s*typedef\s+(?:NS|CF|SWIFT)_\w*(?:ENUM|OPTIONS)\w*\s*\(\s*\w+\s*,\s*(\w+)\b/gm
24637
+ )
24638
+ ].map((match) => match[1]);
24639
+ sdkDeclarationOwners = /* @__PURE__ */ new Map();
24531
24640
  swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
24532
24641
  ...[
24533
24642
  ...header.matchAll(
@@ -24710,7 +24819,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
24710
24819
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
24711
24820
  MULTI_MANIFEST_VERSION = 68;
24712
24821
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
24713
- compilerSourceDigest = true ? "6b31bc2b6f1a60a8ff02569b886f5f3a6cca1ec484cdb3c17ac060942b93cb3e" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
24822
+ compilerSourceDigest = true ? "660487c29d9a45fcb5a83e23f25f239be6cc1cc7338a3a2c2f756a4c985ae043" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
24714
24823
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
24715
24824
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
24716
24825
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -28840,7 +28949,7 @@ var init_swift_standin_digest = __esm({
28840
28949
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
28841
28950
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
28842
28951
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
28843
- STANDIN_SOURCE_DIGEST = true ? "7b618908e76b704175d5c94e30ceb691f6a3f50052a1d5a7bc25f24a07375c9b" : standinSourceDigest();
28952
+ STANDIN_SOURCE_DIGEST = true ? "089050e56f3e4935fed286174446973ff56c0fb4ee8c326f19a71b9fecbe9d05" : standinSourceDigest();
28844
28953
  }
28845
28954
  });
28846
28955
 
@@ -31145,9 +31254,9 @@ function exec(file, args, cwd) {
31145
31254
  }
31146
31255
  function failure(error) {
31147
31256
  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);
31257
+ ${"stdout" in error ? String(error.stdout) : ""}` : error instanceof Error ? error.message : String(error);
31258
+ const errors = output2.split("\n").filter((line) => /^(\S.*?:\d+:\d+: )?error:/.test(line)).map((line) => line.replace(/^(.*?:\d+:\d+: )?error:\s*/, "").trim());
31259
+ return [...new Set(errors)].slice(0, 3).join("; ") || output2.trim().slice(-600);
31151
31260
  }
31152
31261
  function treeDigest2(root) {
31153
31262
  const names = [];
@@ -31658,6 +31767,8 @@ function peachModuleDirs(toolchain, imports2, sdkIncludes) {
31658
31767
  target,
31659
31768
  "-Xswiftc",
31660
31769
  "-Osize",
31770
+ "-Xswiftc",
31771
+ "-gnone",
31661
31772
  ...plugins.libraries.flatMap((library) => [
31662
31773
  "-Xswiftc",
31663
31774
  "-load-plugin-library",
@@ -33293,10 +33404,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
33293
33404
  ) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
33294
33405
  );
33295
33406
  } 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
- );
33407
+ throw new Error(`no stand-in for ${surface.module}: ${failure(error)}`, {
33408
+ cause: error
33409
+ });
33300
33410
  }
33301
33411
  }
33302
33412
  publish(result);
@@ -49246,7 +49356,7 @@ init_swift_native_pin();
49246
49356
  init_xcode_project();
49247
49357
  var EXPO_NATIVE_ENTRY_NAME = "ios";
49248
49358
  function expoNativeCompilerDigestValue() {
49249
- return true ? "446bf6dc0f5ffa819ef1aa8b28a7e2ced01c01b9d003c548d978b6610dec6435" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
49359
+ return true ? "892bd8a2c9864f5fadde8b48730dd4ac3a08d9a46503d5fc4e0332afdaa86657" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
49250
49360
  }
49251
49361
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
49252
49362
  function readSources(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2249 | (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.2249 | (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.2249 | (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;