peachsim 0.1.1964 → 0.1.1965

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 (83) 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 +156 -28
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  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 +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  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 +154 -27
  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 +155 -28
  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 +1 -1
  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/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +156 -28
  68. package/dist-lib/swift-compile.cjs +1 -1
  69. package/dist-lib/swift-compile.mjs +1 -1
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +153 -26
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/package.json +1 -1
  81. package/src/swift-packages.ts +13 -1
  82. package/src/swift-standin-emit.ts +16 -3
  83. package/src/swift-standins.ts +144 -17
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (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;
@@ -42919,7 +42919,12 @@ function splitTopLevel(text6, separator) {
42919
42919
  function emitSwiftStandin(sourceGraphs, options) {
42920
42920
  const imported = new Set(options.imports);
42921
42921
  const importedTypeModules = options.importedTypeModules ?? /* @__PURE__ */ new Map();
42922
- const graphs = sourceGraphs.map(
42922
+ const ownIds = new Set(
42923
+ sourceGraphs.flatMap(
42924
+ (graph) => graph.symbols.map((symbol2) => symbol2.identifier.precise)
42925
+ )
42926
+ );
42927
+ const graphs = [...sourceGraphs, ...options.dependencyGraphs ?? []].map(
42923
42928
  (graph) => qualifyImportedTypes(graph, imported, importedTypeModules)
42924
42929
  );
42925
42930
  const nativeObjcProtocols = objcProtocolsInSwiftSignatures(graphs);
@@ -43503,7 +43508,8 @@ function emitSwiftStandin(sourceGraphs, options) {
43503
43508
  )
43504
43509
  ].filter((name3, at, all2) => all2.indexOf(name3) === at);
43505
43510
  const parentSymbol = superId.has(id) ? byId.get(superId.get(id)) : void 0;
43506
- if (!parentSymbol) list2.push(standinMarker);
43511
+ if (!parentSymbol || !ownIds.has(parentSymbol.identifier.precise))
43512
+ list2.push(standinMarker);
43507
43513
  const open = symbol2.accessLevel === "open" && (!parentSymbol || parentSymbol.accessLevel === "open");
43508
43514
  const objcName = /^c:objc\(cs\)(\w+)$/.exec(id)?.[1];
43509
43515
  emit(
@@ -43853,7 +43859,9 @@ function emitSwiftStandin(sourceGraphs, options) {
43853
43859
  return match ? [`${match[1]}|${LEADING_ATTRS.exec(text(symbol2))[2]}`] : [];
43854
43860
  })
43855
43861
  );
43856
- const roots = [...byId.values()].filter((symbol2) => !owner.has(symbol2.identifier.precise) && !unavailable(symbol2)).filter((symbol2) => {
43862
+ const roots = [...byId.values()].filter(
43863
+ (symbol2) => ownIds.has(symbol2.identifier.precise) && !owner.has(symbol2.identifier.precise) && !unavailable(symbol2)
43864
+ ).filter((symbol2) => {
43857
43865
  const name3 = /^c:@M@[^@]+@F@([^@]+)$/.exec(symbol2.identifier.precise)?.[1];
43858
43866
  return !name3 || !cExports.has(`${name3}|${text(symbol2)}`);
43859
43867
  }).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
@@ -43865,6 +43873,7 @@ function emitSwiftStandin(sourceGraphs, options) {
43865
43873
  for (const [name3, members2] of [...external].sort(([a], [b]) => a.localeCompare(b))) {
43866
43874
  const seen = /* @__PURE__ */ new Set();
43867
43875
  const kept = members2.filter((member) => {
43876
+ if (!ownIds.has(member.identifier.precise)) return false;
43868
43877
  const key2 = `${member.kind.identifier}|${text(member)}`;
43869
43878
  if (unavailable(member) || seen.has(key2)) return false;
43870
43879
  seen.add(key2);
@@ -63479,7 +63488,7 @@ var init_swift_standin_digest = __esm({
63479
63488
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
63480
63489
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
63481
63490
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
63482
- STANDIN_SOURCE_DIGEST = true ? "2c1ec9d203fa5a2da70c4346e1574b582e71d72dbd796d40431f29c4e3aeabad" : standinSourceDigest();
63491
+ STANDIN_SOURCE_DIGEST = true ? "a7e1ecaaff6c8861c337b5c6049d14450807f5be059d246ba06f5abd6384bfe7" : standinSourceDigest();
63483
63492
  }
63484
63493
  });
63485
63494
 
@@ -64209,7 +64218,7 @@ var init_expo_native_prebuilt = __esm({
64209
64218
  init_swift_native_pin();
64210
64219
  init_xcode_project();
64211
64220
  EXPO_NATIVE_ENTRY_NAME = "ios";
64212
- EXPO_NATIVE_COMPILER_DIGEST = true ? "aabd8b1a975371fda074175e883d608df75f1aab0393e1a9b02f738d0f063fbd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64221
+ EXPO_NATIVE_COMPILER_DIGEST = true ? "ab9c7903d2e3e389e43c53ecfe515193e8c405cf1fef52b82d78ff570dc3ea8e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
64213
64222
  IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
64214
64223
  expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
64215
64224
  isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
@@ -65048,6 +65057,11 @@ function resolveSwiftPackages(options) {
65048
65057
  if (claimed.has(key2)) return true;
65049
65058
  const target = pkg.manifest.targets.get(name3);
65050
65059
  if (!target || target.type !== "regular" || placeholderPackage(pkg)) return false;
65060
+ const files2 = swiftTargetFiles(pkg.manifest, target);
65061
+ if (files2.every(
65062
+ (file) => file.endsWith(".swift") && import_node_fs69.default.readFileSync(file, "utf8").trim() === ""
65063
+ ))
65064
+ return false;
65051
65065
  claimed.add(key2);
65052
65066
  provided.delete(name3);
65053
65067
  for (const dependency of target.dependencies) {
@@ -65155,7 +65169,7 @@ function resolveSwiftPackages(options) {
65155
65169
  if (provided.has(name3) && placeholderPackage(pkg)) return;
65156
65170
  for (const dependency of pkg.manifest.targets.get(name3)?.dependencies ?? []) {
65157
65171
  if (dependency.kind === "target") visit3(pkg, dependency.name);
65158
- else {
65172
+ else if (!provided.has(dependency.name)) {
65159
65173
  const nested = dependencyPackage(pkg, dependency);
65160
65174
  if (nested && typeof nested !== "string")
65161
65175
  for (const root of nested.manifest.products.get(dependency.name)?.targets ?? [])
@@ -65164,6 +65178,7 @@ function resolveSwiftPackages(options) {
65164
65178
  }
65165
65179
  };
65166
65180
  for (const { product, source } of listed) {
65181
+ if (provided.has(product)) continue;
65167
65182
  const pkg = source.kind === "unnamed" ? unnamed(source, product) : packages.get(sourceKey(source));
65168
65183
  if (!pkg || typeof pkg === "string") continue;
65169
65184
  for (const root of pkg.manifest.products.get(product)?.targets ?? [])
@@ -65988,11 +66003,11 @@ ${uikit}${body}`
65988
66003
  function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
65989
66004
  const artifact = xcframework(binary2);
65990
66005
  const slice = simulatorSlice(artifact.dir);
65991
- const found = surfaces(artifact.dir, slice);
66006
+ const found = surfaces(artifact.dir, binary2.target, slice);
65992
66007
  const frameworks = [
65993
66008
  ...new Set(
65994
66009
  found.flatMap(
65995
- (surface) => "modulemap" in surface && import_node_path71.default.basename(import_node_path71.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path71.default.dirname(import_node_path71.default.dirname(surface.modulemap))] : []
66010
+ (surface) => "modulemap" in surface && import_node_path71.default.basename(import_node_path71.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path71.default.dirname(surface.headers)] : []
65996
66011
  )
65997
66012
  )
65998
66013
  ];
@@ -66057,8 +66072,21 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
66057
66072
  import_node_path71.default.join(pending, "frameworks", import_node_path71.default.basename(framework), part),
66058
66073
  { recursive: true, dereference: true }
66059
66074
  );
66075
+ const surface = found.find(
66076
+ (item) => "headers" in item && import_node_path71.default.dirname(item.headers) === framework
66077
+ );
66078
+ if (surface && "modulemap" in surface) {
66079
+ const modules = import_node_path71.default.join(
66080
+ pending,
66081
+ "frameworks",
66082
+ import_node_path71.default.basename(framework),
66083
+ "Modules"
66084
+ );
66085
+ import_node_fs73.default.mkdirSync(modules, { recursive: true });
66086
+ import_node_fs73.default.copyFileSync(surface.modulemap, import_node_path71.default.join(modules, "module.modulemap"));
66087
+ }
66060
66088
  }
66061
- for (const [index, directory2] of headers.entries())
66089
+ for (const [index, directory2] of headers.entries()) {
66062
66090
  import_node_fs73.default.cpSync(directory2, import_node_path71.default.join(pending, "headers", String(index)), {
66063
66091
  recursive: true,
66064
66092
  dereference: true,
@@ -66066,6 +66094,15 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
66066
66094
  filter: (source) => import_node_fs73.default.statSync(source).isDirectory() ? import_node_path71.default.dirname(source) !== directory2 || !import_node_path71.default.basename(source).startsWith("ios-") : !isBinaryLibraryFile(source)
66067
66095
  } : {}
66068
66096
  });
66097
+ const surface = found.find(
66098
+ (item) => "headers" in item && item.headers === directory2
66099
+ );
66100
+ if (surface && "modulemap" in surface)
66101
+ import_node_fs73.default.copyFileSync(
66102
+ surface.modulemap,
66103
+ import_node_path71.default.join(pending, "headers", String(index), "module.modulemap")
66104
+ );
66105
+ }
66069
66106
  const contents = (0, import_node_crypto39.createHash)("sha256");
66070
66107
  for (const relative5 of import_node_fs73.default.readdirSync(pending, { recursive: true, encoding: "utf8" }).sort()) {
66071
66108
  const file = import_node_path71.default.join(pending, relative5);
@@ -66119,7 +66156,7 @@ function simulatorSlice(xcframeworkDir) {
66119
66156
  const slice = import_node_fs73.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
66120
66157
  return slice ? import_node_path71.default.join(xcframeworkDir, slice) : null;
66121
66158
  }
66122
- function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
66159
+ function surfaces(xcframeworkDir, target, slice = simulatorSlice(xcframeworkDir)) {
66123
66160
  const standaloneMap = import_node_path71.default.join(xcframeworkDir, "module.modulemap");
66124
66161
  if (import_node_fs73.default.existsSync(standaloneMap)) {
66125
66162
  const module2 = moduleMapName(import_node_fs73.default.readFileSync(standaloneMap, "utf8"));
@@ -66140,7 +66177,16 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
66140
66177
  (name3) => name3.endsWith(".swiftinterface") && !name3.endsWith(".private.swiftinterface") && !name3.endsWith(".package.swiftinterface")
66141
66178
  );
66142
66179
  const chosen = interfaces.find((name3) => name3.startsWith("arm64-")) ?? interfaces[0] ?? null;
66143
- const modulemap = import_node_path71.default.join(framework, "Modules", "module.modulemap");
66180
+ let modulemap = import_node_path71.default.join(framework, "Modules", "module.modulemap");
66181
+ const headers2 = import_node_path71.default.join(framework, "Headers");
66182
+ if (!import_node_fs73.default.existsSync(modulemap) && files(headers2, (name3) => name3.endsWith(".h")).length) {
66183
+ const umbrella = import_node_fs73.default.existsSync(import_node_path71.default.join(headers2, `${module2}.h`)) ? `umbrella header "${module2}.h"` : 'umbrella "Headers"';
66184
+ modulemap = generatedModuleMap(
66185
+ `framework module ${module2} { ${umbrella} export * module * { export * } }
66186
+ `,
66187
+ true
66188
+ );
66189
+ }
66144
66190
  if (chosen) {
66145
66191
  const privateInterface = import_node_path71.default.join(
66146
66192
  swiftmodule,
@@ -66172,8 +66218,33 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
66172
66218
  const module2 = moduleMapName(import_node_fs73.default.readFileSync(modulemap, "utf8"));
66173
66219
  if (module2) found.push(headerSurface(module2, modulemap, import_node_path71.default.dirname(modulemap)));
66174
66220
  }
66221
+ if (found.length === 0 && files(headers, (name3) => name3.endsWith(".h")).length) {
66222
+ const module2 = swiftTargetModuleName(target);
66223
+ const modulemap = generatedModuleMap(
66224
+ `module ${module2} { umbrella "." export * }
66225
+ `,
66226
+ false
66227
+ );
66228
+ found.push(headerSurface(module2, modulemap, headers));
66229
+ }
66175
66230
  return found;
66176
66231
  }
66232
+ function generatedModuleMap(text6, framework) {
66233
+ const dir = import_node_path71.default.join(
66234
+ cacheDir4,
66235
+ "modulemaps",
66236
+ key(text6),
66237
+ framework ? "Modules" : "Headers"
66238
+ );
66239
+ import_node_fs73.default.mkdirSync(dir, { recursive: true });
66240
+ const file = import_node_path71.default.join(dir, "module.modulemap");
66241
+ if (!import_node_fs73.default.existsSync(file)) {
66242
+ const pending = `${file}.${process.pid}.tmp`;
66243
+ import_node_fs73.default.writeFileSync(pending, text6);
66244
+ import_node_fs73.default.renameSync(pending, file);
66245
+ }
66246
+ return file;
66247
+ }
66177
66248
  function peachModuleDirs(toolchain, imports2, sdkIncludes) {
66178
66249
  const { moduleRoot, toolchainBin } = toolchain;
66179
66250
  if (swiftDistributionAt(moduleRoot)) return [import_node_path71.default.join(moduleRoot, "modules")];
@@ -66593,18 +66664,39 @@ function wasmFlags(toolchain, imports2) {
66593
66664
  ...toolchain.standinModules ? ["-I", toolchain.standinModules] : []
66594
66665
  ];
66595
66666
  }
66596
- function objcStandin(surface, binary2, toolchain, work, behavior) {
66667
+ function objcStandin(surface, binary2, toolchain, work, behavior, frameworks, siblings) {
66597
66668
  const view = objcView(
66598
66669
  surface,
66599
66670
  toolchain.toolchainBin,
66600
66671
  import_node_path71.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
66601
66672
  cacheDir4,
66602
- import_node_path71.default.join(work, "objc")
66673
+ import_node_path71.default.join(work, "objc"),
66674
+ void 0,
66675
+ frameworks.dirs
66603
66676
  );
66604
66677
  const provided = new Set(swiftPeachModules(toolchain.moduleRoot));
66605
66678
  const headerModules = view.imports.filter(
66606
- (name3) => !STANDIN_IMPORTS.includes(name3) && provided.has(name3)
66679
+ (name3) => !STANDIN_IMPORTS.includes(name3) && (provided.has(name3) || siblings.has(name3))
66607
66680
  );
66681
+ const dependencyGraphs = headerModules.flatMap((module2) => {
66682
+ const dependency = frameworks.surfaces.get(module2);
66683
+ if (!dependency || module2 === surface.module) return [];
66684
+ return objcView(
66685
+ {
66686
+ module: dependency.module,
66687
+ modulemap: dependency.modulemap,
66688
+ headers: dependency.headers
66689
+ },
66690
+ toolchain.toolchainBin,
66691
+ import_node_path71.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
66692
+ cacheDir4,
66693
+ import_node_path71.default.join(work, "dependencies", module2),
66694
+ void 0,
66695
+ frameworks.dirs.filter(
66696
+ (dir) => !import_node_fs73.default.existsSync(import_node_path71.default.join(dir, `${module2}.framework`))
66697
+ )
66698
+ ).graphs;
66699
+ });
66608
66700
  return graphStandin(
66609
66701
  surface.module,
66610
66702
  view.graphs,
@@ -66621,10 +66713,16 @@ function objcStandin(surface, binary2, toolchain, work, behavior) {
66621
66713
  (dependency) => swiftTargetModuleName(dependency.module)
66622
66714
  ) ?? []
66623
66715
  ])
66624
- ]
66716
+ ],
66717
+ false,
66718
+ /* @__PURE__ */ new Map(),
66719
+ null,
66720
+ /* @__PURE__ */ new Map(),
66721
+ /* @__PURE__ */ new Map(),
66722
+ dependencyGraphs
66625
66723
  );
66626
66724
  }
66627
- function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, behavior, imports2 = [], requireSwift = false, objcProperties = /* @__PURE__ */ new Map(), placeholder = null, inheritedConformances = /* @__PURE__ */ new Map(), projections = /* @__PURE__ */ new Map()) {
66725
+ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, behavior, imports2 = [], requireSwift = false, objcProperties = /* @__PURE__ */ new Map(), placeholder = null, inheritedConformances = /* @__PURE__ */ new Map(), projections = /* @__PURE__ */ new Map(), dependencyGraphs = []) {
66628
66726
  const paths = new Set(
66629
66727
  graphs.flatMap(
66630
66728
  (graph) => graph.symbols.map((symbol2) => symbol2.pathComponents.join("."))
@@ -66680,6 +66778,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, b
66680
66778
  objcProperties,
66681
66779
  inheritedConformances,
66682
66780
  projections,
66781
+ dependencyGraphs,
66683
66782
  ...placeholder ? { exported: placeholder.exported, placeholder: binary2.placeholder.gap } : {}
66684
66783
  });
66685
66784
  for (const entry of skipped) {
@@ -67345,6 +67444,11 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
67345
67444
  }))
67346
67445
  });
67347
67446
  } else {
67447
+ const absent = missingArtifactGap(binary2);
67448
+ if (absent !== null) {
67449
+ gaps.set(binary2.target, absent);
67450
+ continue;
67451
+ }
67348
67452
  const resolved = xcframework(binary2);
67349
67453
  const dir = import_node_path71.default.join(artifact, String(index), import_node_path71.default.basename(resolved.dir));
67350
67454
  import_node_fs73.default.cpSync(resolved.dir, dir, { recursive: true, dereference: true });
@@ -67480,7 +67584,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
67480
67584
  const modules = new Set(
67481
67585
  binaries.flatMap((binary2) => {
67482
67586
  try {
67483
- return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir).map((surface) => surface.module);
67587
+ return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir, binary2.target).map(
67588
+ (surface) => surface.module
67589
+ );
67484
67590
  } catch {
67485
67591
  return [];
67486
67592
  }
@@ -67513,7 +67619,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
67513
67619
  if (binary2.publicHeaders !== void 0 && swiftTargetModuleName(binary2.target) !== binary2.target)
67514
67620
  parts.push(`module/${swiftTargetModuleName(binary2.target)}`);
67515
67621
  try {
67516
- if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir).some((surface) => surface.kind === "swift"))
67622
+ if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir, binary2.target).some(
67623
+ (surface) => surface.kind === "swift"
67624
+ ))
67517
67625
  parts.push(`interface-emulation/${WASI_EMULATION.join(",")}`);
67518
67626
  parts.push(
67519
67627
  binary2.target,
@@ -67541,10 +67649,14 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
67541
67649
  }
67542
67650
  return (0, import_node_crypto39.createHash)("sha256").update(parts.join("\0")).digest("hex");
67543
67651
  }
67652
+ function missingArtifactGap(binary2) {
67653
+ if (swiftBinaryOnDisk(binary2)) return null;
67654
+ return `${import_node_path71.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`;
67655
+ }
67544
67656
  async function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
67545
67657
  if (provided.has(binary2.target)) return [];
67546
- if (!binary2.url && !import_node_fs73.default.existsSync(binary2.dir))
67547
- return `${import_node_path71.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`;
67658
+ const absent = missingArtifactGap(binary2);
67659
+ if (absent !== null) return absent;
67548
67660
  import_node_fs73.default.mkdirSync(cacheDir4, { recursive: true });
67549
67661
  const work = import_node_fs73.default.mkdtempSync(import_node_path71.default.join(cacheDir4, "work-"));
67550
67662
  let all;
@@ -67596,7 +67708,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
67596
67708
  ].join("\0");
67597
67709
  } else {
67598
67710
  const artifact = xcframework(binary2);
67599
- all = surfaces(artifact.dir);
67711
+ all = surfaces(artifact.dir, binary2.target);
67600
67712
  digest3 = artifact.digest;
67601
67713
  }
67602
67714
  } catch (error) {
@@ -67615,7 +67727,8 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
67615
67727
  );
67616
67728
  hash.update(digest3);
67617
67729
  hash.update([...siblings].sort().join("\0"));
67618
- if (found.some((surface) => surface.kind === "mixed")) hash.update(frameworks.digest);
67730
+ if (found.some((surface) => surface.kind === "mixed" || surface.kind === "objc"))
67731
+ hash.update(frameworks.digest);
67619
67732
  for (const surface of found) {
67620
67733
  hash.update(`${surface.kind}\0${surface.module}\0`);
67621
67734
  for (const file of surface.kind === "swift" ? [surface.interface] : surface.kind === "source" ? surface.sources : [
@@ -67692,7 +67805,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
67692
67805
  binary2,
67693
67806
  toolchain,
67694
67807
  dir,
67695
- new Map(Object.entries(configured.get(surface.module) ?? {}))
67808
+ new Map(Object.entries(configured.get(surface.module) ?? {})),
67809
+ frameworks,
67810
+ siblings
67696
67811
  ) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
67697
67812
  );
67698
67813
  } catch (error) {
@@ -67737,6 +67852,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
67737
67852
  import_node_fs73.default.mkdirSync(cacheDir4, { recursive: true });
67738
67853
  const modules = import_node_fs73.default.mkdtempSync(import_node_path71.default.join(cacheDir4, "modules-"));
67739
67854
  const frameworkDirs = /* @__PURE__ */ new Set();
67855
+ const frameworkSurfaces = /* @__PURE__ */ new Map();
67740
67856
  const frameworkInputs = [];
67741
67857
  const byModule = new Map(
67742
67858
  binaries.map((binary2) => [swiftTargetModuleName(binary2.target), binary2])
@@ -67760,16 +67876,26 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
67760
67876
  frameworkInputs.push(`${binary2.target}\0${artifact.digest}`);
67761
67877
  const imports2 = /* @__PURE__ */ new Set();
67762
67878
  interfaceImports.set(binary2, imports2);
67763
- for (const surface of surfaces(artifact.dir)) {
67879
+ for (const surface of surfaces(artifact.dir, binary2.target)) {
67764
67880
  byModule.set(surface.module, binary2);
67765
67881
  if (surface.kind === "swift" || surface.kind === "mixed")
67766
67882
  for (const module2 of swiftImportNames(
67767
67883
  import_node_fs73.default.readFileSync(surface.interface, "utf8")
67768
67884
  ))
67769
67885
  imports2.add(module2);
67886
+ if (surface.kind === "objc" || surface.kind === "mixed")
67887
+ for (const file of files(surface.headers, (name3) => name3.endsWith(".h")))
67888
+ for (const module2 of clangImportNames(
67889
+ import_node_fs73.default.readFileSync(import_node_path71.default.join(surface.headers, file), "utf8")
67890
+ ))
67891
+ imports2.add(module2);
67770
67892
  if (surface.kind === "c") continue;
67893
+ if (surface.kind === "objc" || surface.kind === "mixed")
67894
+ frameworkSurfaces.set(surface.module, surface);
67895
+ if (surface.kind !== "swift" && import_node_path71.default.basename(import_node_path71.default.dirname(surface.modulemap)) !== "Modules")
67896
+ continue;
67771
67897
  frameworkDirs.add(
67772
- surface.kind === "swift" ? import_node_path71.default.resolve(surface.interface, "../../../..") : import_node_path71.default.resolve(surface.modulemap, "../../..")
67898
+ surface.kind === "swift" ? import_node_path71.default.resolve(surface.interface, "../../../..") : import_node_path71.default.resolve(surface.headers, "../..")
67773
67899
  );
67774
67900
  }
67775
67901
  } catch {
@@ -67778,7 +67904,8 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
67778
67904
  const generatedToolchain = { ...toolchain, standinModules: modules };
67779
67905
  const frameworks = {
67780
67906
  dirs: [...frameworkDirs].sort(),
67781
- digest: (0, import_node_crypto39.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex")
67907
+ digest: (0, import_node_crypto39.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
67908
+ surfaces: frameworkSurfaces
67782
67909
  };
67783
67910
  const siblings = new Map(
67784
67911
  binaries.map((binary2) => [
@@ -67883,6 +68010,7 @@ var init_swift_standins = __esm({
67883
68010
  init_swift_cxx_standin();
67884
68011
  init_swift_objc_standin();
67885
68012
  init_swift_package();
68013
+ init_swift_packages();
67886
68014
  init_swift_shared_sdk();
67887
68015
  init_swift_standin_digest();
67888
68016
  init_swift_standin_emit();
@@ -82418,7 +82546,7 @@ var init_nitro_superset = __esm({
82418
82546
  init_swift_standin_digest();
82419
82547
  NITRO_SUPERSET_ENTRY_NAME = "superset";
82420
82548
  packageVersion = (root) => JSON.parse((0, import_node_fs92.readFileSync)((0, import_node_path90.join)(root, "package.json"), "utf8")).version;
82421
- NITRO_COMPILER_DIGEST = true ? "4436f37e5c9433ab8d98427c75c9969549750461258d73f206214a14f6c072b3" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
82549
+ NITRO_COMPILER_DIGEST = true ? "e08d3309819dfdf5f954d2989f492cc3d239958e8bcdbaad4bf0a6841a5b6b86" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
82422
82550
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
82423
82551
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
82424
82552
  published2 = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (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.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (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.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (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.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (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.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1965 | (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;