peachsim 0.1.1800 → 0.1.1801

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 (85) 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 +1 -1
  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 +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +141 -154
  14. package/dist-lib/capture-contract.cjs +2 -2
  15. package/dist-lib/capture-contract.mjs +2 -2
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +2 -2
  21. package/dist-lib/cloud.mjs +2 -2
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +135 -148
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +164 -177
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +2 -2
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +1 -1
  47. package/dist-lib/native-app-identity-project.cjs +1 -1
  48. package/dist-lib/native-app-identity-project.mjs +1 -1
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/plist.cjs +1 -1
  54. package/dist-lib/plist.mjs +1 -1
  55. package/dist-lib/profiles.cjs +1 -1
  56. package/dist-lib/public-brand.cjs +1 -1
  57. package/dist-lib/public-origins-lib-esm.json +23 -23
  58. package/dist-lib/public-origins-lib.json +52 -52
  59. package/dist-lib/react-native-host-modules.cjs +1 -1
  60. package/dist-lib/react-native-host-modules.mjs +1 -1
  61. package/dist-lib/reap-browser.cjs +1 -1
  62. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  63. package/dist-lib/sdk.cjs +1 -1
  64. package/dist-lib/sdk.mjs +1 -1
  65. package/dist-lib/skills.cjs +171 -184
  66. package/dist-lib/swift-compile.cjs +1 -1
  67. package/dist-lib/swift-compile.mjs +1 -1
  68. package/dist-lib/swift-package.cjs +1 -1
  69. package/dist-lib/swift-package.mjs +1 -1
  70. package/dist-lib/swift-submit.cjs +1 -1
  71. package/dist-lib/swift-submit.mjs +1 -1
  72. package/dist-lib/swift-toolchain.cjs +1 -1
  73. package/dist-lib/swift.cjs +1 -1
  74. package/dist-lib/vite-swift.cjs +135 -148
  75. package/dist-lib/vite.cjs +1 -1
  76. package/dist-lib/worklet-executable.cjs +1 -1
  77. package/dist-lib/worklet-executable.mjs +1 -1
  78. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
  79. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
  80. package/package.json +3 -4
  81. package/src/capture-contract.ts +9 -0
  82. package/src/nitro-superset.lock.json +5 -5
  83. package/src/swift-cxx-declarations.ts +114 -130
  84. package/src/swift-cxx-standin.ts +3 -3
  85. package/src/swift-standins.ts +33 -30
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1800 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1801 | (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.1800 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1801 | (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;
@@ -25100,7 +25100,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
25100
25100
  }
25101
25101
  return hash.digest("hex");
25102
25102
  }
25103
- var STANDIN_SOURCE_DIGEST = true ? "43e2dfed0be0b3e4149baf61b8dbb5cf3ee5415abc8439a656630a2d66422422" : standinSourceDigest();
25103
+ var STANDIN_SOURCE_DIGEST = true ? "5736fd54bc25e79ef785207e686708df187e9ad830119e6f82536d249a9ecb79" : standinSourceDigest();
25104
25104
 
25105
25105
  // src/swift-standins.ts
25106
25106
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -25244,6 +25244,7 @@ var import_node_path47 = __toESM(require("node:path"), 1);
25244
25244
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
25245
25245
  var import_node_fs49 = __toESM(require("node:fs"), 1);
25246
25246
  var import_node_path46 = __toESM(require("node:path"), 1);
25247
+ var import_promises6 = require("node:stream/promises");
25247
25248
  var import_stream_json = __toESM(require("stream-json"), 1);
25248
25249
  var DECLARATIONS = /* @__PURE__ */ new Set([
25249
25250
  "FunctionDecl",
@@ -25253,120 +25254,103 @@ var DECLARATIONS = /* @__PURE__ */ new Set([
25253
25254
  "CXXConversionDecl",
25254
25255
  "VarDecl"
25255
25256
  ]);
25256
- function cxxDeclarations(astFile, headers) {
25257
- const stream = import_stream_json.default.parser();
25257
+ async function cxxDeclarations(astFile, headers) {
25258
25258
  const stack = [];
25259
25259
  const result = [];
25260
25260
  let lastFile = "";
25261
- let failed;
25262
25261
  let rootComplete = false;
25263
- stream.on("error", (error) => {
25264
- failed = error;
25265
- });
25266
- stream.on("data", (value) => {
25267
- if (!value || typeof value !== "object" || !("name" in value) || typeof value.name !== "string")
25268
- throw new Error("invalid clang AST token");
25269
- const token = value.name;
25270
- const content = "value" in value ? value.value : void 0;
25271
- const parent = stack.at(-1);
25272
- if (token === "startObject" || token === "startArray") {
25273
- stack.push({
25274
- object: token === "startObject",
25275
- relation: parent?.object ? parent.key : void 0
25276
- });
25277
- } else if (token === "endObject" || token === "endArray") {
25278
- const frame = stack.pop();
25279
- if (!frame) throw new Error("unbalanced clang AST");
25280
- if (stack.length === 0 && frame.object) rootComplete = true;
25281
- const owner = stack.at(-1);
25282
- if (frame.relation === "loc" && owner) {
25283
- owner.file = lastFile;
25284
- owner.offset = frame.offset;
25285
- }
25286
- if (frame.relation === "type" && owner) owner.type = frame.type;
25287
- if (frame.kind === "ParmVarDecl") {
25288
- const declaration = stack.findLast(
25289
- (item) => item.kind && DECLARATIONS.has(item.kind)
25290
- );
25291
- if (declaration && frame.type) (declaration.params ??= []).push(frame.type);
25292
- }
25293
- if (frame.kind === "CompoundStmt") {
25294
- const declaration = stack.findLast(
25295
- (item) => item.kind && DECLARATIONS.has(item.kind)
25296
- );
25297
- if (declaration) declaration.hasBody = true;
25298
- }
25299
- if (frame.kind && DECLARATIONS.has(frame.kind) && !(frame.kind === "VarDecl" && stack.some((item) => item.kind && DECLARATIONS.has(item.kind))) && frame.name && frame.file && headers.has(import_node_path46.default.resolve(frame.file))) {
25300
- const scope2 = stack.flatMap(
25301
- (item) => item.name && (item.kind === "NamespaceDecl" || item.kind === "CXXRecordDecl") ? [
25302
- {
25303
- kind: item.kind === "NamespaceDecl" ? "namespace" : "record",
25304
- name: item.name
25305
- }
25306
- ] : []
25307
- );
25308
- result.push({
25309
- kind: frame.kind,
25310
- name: frame.name,
25311
- mangled: frame.mangled ?? "",
25312
- type: frame.type ?? "",
25313
- params: frame.params ?? [],
25314
- scope: scope2,
25315
- file: import_node_path46.default.resolve(frame.file),
25316
- offset: frame.offset ?? 0,
25317
- implicit: frame.implicit ?? false,
25318
- deleted: frame.deleted ?? false,
25319
- defaulted: frame.defaulted ?? false,
25320
- inline: frame.inline ?? false,
25321
- constexpr: frame.constexpr ?? false,
25322
- pure: frame.pure ?? false,
25323
- storage: frame.storage ?? "",
25324
- variadic: frame.variadic ?? false,
25325
- hasBody: frame.hasBody ?? false
25262
+ await (0, import_promises6.pipeline)(import_node_fs49.default.createReadStream(astFile), (0, import_stream_json.default)(), async (tokens2) => {
25263
+ for await (const value of tokens2) {
25264
+ if (!value || typeof value !== "object" || !("name" in value) || typeof value.name !== "string")
25265
+ throw new Error("invalid clang AST token");
25266
+ const token = value.name;
25267
+ const content = "value" in value ? value.value : void 0;
25268
+ const parent = stack.at(-1);
25269
+ if (token === "startObject" || token === "startArray") {
25270
+ stack.push({
25271
+ object: token === "startObject",
25272
+ relation: parent?.object ? parent.key : void 0
25326
25273
  });
25274
+ } else if (token === "endObject" || token === "endArray") {
25275
+ const frame = stack.pop();
25276
+ if (!frame) throw new Error("unbalanced clang AST");
25277
+ if (stack.length === 0 && frame.object) rootComplete = true;
25278
+ const owner = stack.at(-1);
25279
+ if (frame.relation === "loc" && owner) {
25280
+ owner.file = lastFile;
25281
+ owner.offset = frame.offset;
25282
+ }
25283
+ if (frame.relation === "type" && owner) owner.type = frame.type;
25284
+ if (frame.kind === "ParmVarDecl") {
25285
+ const declaration = stack.findLast(
25286
+ (item) => item.kind && DECLARATIONS.has(item.kind)
25287
+ );
25288
+ if (declaration && frame.type) (declaration.params ??= []).push(frame.type);
25289
+ }
25290
+ if (frame.kind === "CompoundStmt") {
25291
+ const declaration = stack.findLast(
25292
+ (item) => item.kind && DECLARATIONS.has(item.kind)
25293
+ );
25294
+ if (declaration) declaration.hasBody = true;
25295
+ }
25296
+ if (frame.kind && DECLARATIONS.has(frame.kind) && !(frame.kind === "VarDecl" && stack.some((item) => item.kind && DECLARATIONS.has(item.kind))) && frame.name && frame.file && headers.has(import_node_path46.default.resolve(frame.file))) {
25297
+ const scope2 = stack.flatMap(
25298
+ (item) => item.name && (item.kind === "NamespaceDecl" || item.kind === "CXXRecordDecl") ? [
25299
+ {
25300
+ kind: item.kind === "NamespaceDecl" ? "namespace" : "record",
25301
+ name: item.name
25302
+ }
25303
+ ] : []
25304
+ );
25305
+ result.push({
25306
+ kind: frame.kind,
25307
+ name: frame.name,
25308
+ mangled: frame.mangled ?? "",
25309
+ type: frame.type ?? "",
25310
+ params: frame.params ?? [],
25311
+ scope: scope2,
25312
+ file: import_node_path46.default.resolve(frame.file),
25313
+ offset: frame.offset ?? 0,
25314
+ implicit: frame.implicit ?? false,
25315
+ deleted: frame.deleted ?? false,
25316
+ defaulted: frame.defaulted ?? false,
25317
+ inline: frame.inline ?? false,
25318
+ constexpr: frame.constexpr ?? false,
25319
+ pure: frame.pure ?? false,
25320
+ storage: frame.storage ?? "",
25321
+ variadic: frame.variadic ?? false,
25322
+ hasBody: frame.hasBody ?? false
25323
+ });
25324
+ }
25325
+ } else if (token === "keyValue" && parent?.object && typeof content === "string")
25326
+ parent.key = content;
25327
+ else if (token === "stringValue" && parent?.object && typeof content === "string") {
25328
+ if (parent.key === "file" && ["loc", "begin", "end", "expansionLoc", "spellingLoc"].includes(
25329
+ parent.relation ?? ""
25330
+ ))
25331
+ lastFile = content;
25332
+ if (parent.key === "kind") {
25333
+ parent.kind = content;
25334
+ parent.file = lastFile;
25335
+ }
25336
+ if (parent.key === "name") parent.name = content;
25337
+ if (parent.key === "mangledName") parent.mangled = content;
25338
+ if (parent.key === "qualType") parent.type = content;
25339
+ if (parent.key === "storageClass") parent.storage = content;
25340
+ if (parent.key === "explicitlyDefaulted") parent.defaulted = true;
25341
+ } else if (token === "numberValue" && parent?.object && parent.key === "offset" && typeof content === "string") {
25342
+ parent.offset = Number(content);
25343
+ } else if (token === "trueValue" && parent?.object) {
25344
+ if (parent.key === "isImplicit") parent.implicit = true;
25345
+ if (parent.key === "explicitlyDeleted") parent.deleted = true;
25346
+ if (parent.key === "inline") parent.inline = true;
25347
+ if (parent.key === "constexpr") parent.constexpr = true;
25348
+ if (parent.key === "pure") parent.pure = true;
25349
+ if (parent.key === "variadic") parent.variadic = true;
25327
25350
  }
25328
- } else if (token === "keyValue" && parent?.object && typeof content === "string")
25329
- parent.key = content;
25330
- else if (token === "stringValue" && parent?.object && typeof content === "string") {
25331
- if (parent.key === "file" && ["loc", "begin", "end", "expansionLoc", "spellingLoc"].includes(
25332
- parent.relation ?? ""
25333
- ))
25334
- lastFile = content;
25335
- if (parent.key === "kind") {
25336
- parent.kind = content;
25337
- parent.file = lastFile;
25338
- }
25339
- if (parent.key === "name") parent.name = content;
25340
- if (parent.key === "mangledName") parent.mangled = content;
25341
- if (parent.key === "qualType") parent.type = content;
25342
- if (parent.key === "storageClass") parent.storage = content;
25343
- if (parent.key === "explicitlyDefaulted") parent.defaulted = true;
25344
- } else if (token === "numberValue" && parent?.object && parent.key === "offset" && typeof content === "string") {
25345
- parent.offset = Number(content);
25346
- } else if (token === "trueValue" && parent?.object) {
25347
- if (parent.key === "isImplicit") parent.implicit = true;
25348
- if (parent.key === "explicitlyDeleted") parent.deleted = true;
25349
- if (parent.key === "inline") parent.inline = true;
25350
- if (parent.key === "constexpr") parent.constexpr = true;
25351
- if (parent.key === "pure") parent.pure = true;
25352
- if (parent.key === "variadic") parent.variadic = true;
25353
25351
  }
25354
25352
  });
25355
- const fd = import_node_fs49.default.openSync(astFile, "r");
25356
- const buffer = Buffer.allocUnsafe(64 * 1024);
25357
- try {
25358
- let count;
25359
- while ((count = import_node_fs49.default.readSync(fd, buffer, 0, buffer.length, null)) > 0) {
25360
- if (!stream.write(buffer.subarray(0, count)))
25361
- throw new Error("clang AST parser could not keep up");
25362
- if (failed) throw failed;
25363
- }
25364
- stream.end();
25365
- if (failed) throw failed;
25366
- if (stack.length !== 0 || !rootComplete) throw new Error("truncated clang AST");
25367
- } finally {
25368
- import_node_fs49.default.closeSync(fd);
25369
- }
25353
+ if (stack.length !== 0 || !rootComplete) throw new Error("truncated clang AST");
25370
25354
  return result;
25371
25355
  }
25372
25356
 
@@ -25467,7 +25451,7 @@ function definition(decl, index) {
25467
25451
  text: namespaces.reduceRight((inner, name3) => `namespace ${name3} { ${inner} }`, body)
25468
25452
  };
25469
25453
  }
25470
- function emitCxxStandin(input) {
25454
+ async function emitCxxStandin(input) {
25471
25455
  const ast = import_node_path47.default.join(input.work, "cxx-ast.json");
25472
25456
  const probe = import_node_path47.default.join(input.work, "cxx-probe.cpp");
25473
25457
  const sourceFile = import_node_path47.default.join(input.work, "cxx-traps.cpp");
@@ -25521,7 +25505,7 @@ function emitCxxStandin(input) {
25521
25505
  );
25522
25506
  let declarations;
25523
25507
  try {
25524
- declarations = cxxDeclarations(ast, reached);
25508
+ declarations = await cxxDeclarations(ast, reached);
25525
25509
  } finally {
25526
25510
  import_node_fs50.default.rmSync(ast, { force: true });
25527
25511
  }
@@ -28121,7 +28105,7 @@ ${roots.map((file) => ` header "${file}"
28121
28105
  }
28122
28106
  };
28123
28107
  }
28124
- function cxxStandin(surface, binary2, toolchain, work) {
28108
+ async function cxxStandin(surface, binary2, toolchain, work) {
28125
28109
  if (!binary2.cxxHeaders) throw new Error("C++ header inputs are missing");
28126
28110
  const headers = surface.headers;
28127
28111
  const names = import_node_fs51.default.readdirSync(headers, { recursive: true, encoding: "utf8" }).filter((file) => import_node_fs51.default.statSync(import_node_path48.default.join(headers, file)).isFile()).sort();
@@ -28174,7 +28158,7 @@ function cxxStandin(surface, binary2, toolchain, work) {
28174
28158
  if (/\b__OBJC__\b/.test(text4))
28175
28159
  throw new Error(`C++ public header ${file} changes under Objective-C++`);
28176
28160
  }
28177
- const emitted = emitCxxStandin({
28161
+ const emitted = await emitCxxStandin({
28178
28162
  clang: import_node_path48.default.join(toolchain.toolchainBin, "clang++"),
28179
28163
  sysroot,
28180
28164
  headers,
@@ -28663,7 +28647,7 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
28663
28647
  }
28664
28648
  return (0, import_node_crypto24.createHash)("sha256").update(parts.join("\0")).digest("hex");
28665
28649
  }
28666
- function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
28650
+ async function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
28667
28651
  if (provided.has(binary2.target)) return [];
28668
28652
  if (!binary2.url && !import_node_fs51.default.existsSync(binary2.dir))
28669
28653
  return `${import_node_path48.default.relative(process.cwd(), binary2.dir) || binary2.dir} is not on disk, and Xcode fails without it too; run the script that downloads or builds it, then run again`;
@@ -28764,48 +28748,51 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
28764
28748
  }
28765
28749
  let result;
28766
28750
  try {
28767
- result = found.map((surface) => {
28751
+ result = [];
28752
+ for (const surface of found) {
28768
28753
  const dir = import_node_path48.default.join(work, surface.module);
28769
28754
  try {
28770
28755
  if (surface.kind === "c" && configured.has(surface.module))
28771
28756
  throw new Error(
28772
28757
  "Configured behavior requires the framework's Swift declarations"
28773
28758
  );
28774
- return surface.kind === "source" ? placeholderStandin(
28775
- surface,
28776
- binary2,
28777
- toolchain,
28778
- dir,
28779
- new Map(Object.entries(configured.get(surface.module) ?? {})),
28780
- siblings
28781
- ) : surface.kind === "mixed" ? mixedStandin(
28782
- surface,
28783
- binary2,
28784
- toolchain,
28785
- dir,
28786
- new Map(Object.entries(configured.get(surface.module) ?? {})),
28787
- frameworks.dirs,
28788
- siblings
28789
- ) : surface.kind === "swift" ? swiftStandin(
28790
- surface,
28791
- binary2,
28792
- toolchain,
28793
- dir,
28794
- new Map(Object.entries(configured.get(surface.module) ?? {})),
28795
- siblings
28796
- ) : surface.kind === "objc" ? objcStandin(
28797
- surface,
28798
- binary2,
28799
- toolchain,
28800
- dir,
28801
- new Map(Object.entries(configured.get(surface.module) ?? {}))
28802
- ) : binary2.cxxHeaders ? cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir);
28759
+ result.push(
28760
+ surface.kind === "source" ? placeholderStandin(
28761
+ surface,
28762
+ binary2,
28763
+ toolchain,
28764
+ dir,
28765
+ new Map(Object.entries(configured.get(surface.module) ?? {})),
28766
+ siblings
28767
+ ) : surface.kind === "mixed" ? mixedStandin(
28768
+ surface,
28769
+ binary2,
28770
+ toolchain,
28771
+ dir,
28772
+ new Map(Object.entries(configured.get(surface.module) ?? {})),
28773
+ frameworks.dirs,
28774
+ siblings
28775
+ ) : surface.kind === "swift" ? swiftStandin(
28776
+ surface,
28777
+ binary2,
28778
+ toolchain,
28779
+ dir,
28780
+ new Map(Object.entries(configured.get(surface.module) ?? {})),
28781
+ siblings
28782
+ ) : surface.kind === "objc" ? objcStandin(
28783
+ surface,
28784
+ binary2,
28785
+ toolchain,
28786
+ dir,
28787
+ new Map(Object.entries(configured.get(surface.module) ?? {}))
28788
+ ) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
28789
+ );
28803
28790
  } catch (error) {
28804
28791
  throw new Error(
28805
28792
  `no stand-in for ${surface.module}: ${error instanceof Error && !("stderr" in error) ? error.message : failure(error)}`
28806
28793
  );
28807
28794
  }
28808
- });
28795
+ }
28809
28796
  if (typeof result === "string") throw new Error(result);
28810
28797
  import_node_fs51.default.mkdirSync(import_node_path48.default.dirname(cached2), { recursive: true });
28811
28798
  const pending = `${cached2}.${process.pid}.tmp`;
@@ -28903,7 +28890,7 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
28903
28890
  ])
28904
28891
  );
28905
28892
  const visited = /* @__PURE__ */ new Set();
28906
- const visit3 = (binary2) => {
28893
+ const visit3 = async (binary2) => {
28907
28894
  if (visited.has(binary2.target)) return;
28908
28895
  visited.add(binary2.target);
28909
28896
  for (const module2 of [
@@ -28913,10 +28900,10 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
28913
28900
  ...siblings.get(binary2)
28914
28901
  ]) {
28915
28902
  const target = byModule.get(module2);
28916
- if (target) visit3(target);
28903
+ if (target) await visit3(target);
28917
28904
  }
28918
28905
  const started = Date.now();
28919
- const result = binaryStandins(
28906
+ const result = await binaryStandins(
28920
28907
  binary2,
28921
28908
  generatedToolchain,
28922
28909
  provided,
@@ -28961,7 +28948,7 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
28961
28948
  }
28962
28949
  };
28963
28950
  try {
28964
- for (const binary2 of binaries) visit3(binary2);
28951
+ for (const binary2 of binaries) await visit3(binary2);
28965
28952
  return { standins, gaps };
28966
28953
  } finally {
28967
28954
  import_node_fs51.default.rmSync(modules, { recursive: true, force: true });
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1800 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1801 | (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.1800 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bundleGlobalFooter.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1800 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1801 | (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;