peachsim 0.1.2389 → 0.1.2391

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 (86) 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 +43 -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 +42 -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 +43 -28
  31. package/dist-lib/host/fetch-proxy-handler.cjs +6 -4
  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 +6 -4
  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 +6 -4
  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 +43 -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 +40 -25
  77. package/dist-lib/vite.cjs +6 -4
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/engine/metalDirectContract.d.ts +5 -0
  81. package/kotlin/sdk.tar.gz +0 -0
  82. package/node-runtime.json +1 -1
  83. package/package.json +1 -1
  84. package/src/swift-host.ts +5 -5
  85. package/src/swift-shipped-binaries.ts +17 -6
  86. package/src/swift-standins.ts +39 -23
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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;
@@ -69949,7 +69949,7 @@ var init_swift_standin_digest = __esm({
69949
69949
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
69950
69950
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
69951
69951
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
69952
- STANDIN_SOURCE_DIGEST = true ? "4a21735d60d5c3e629b478af2bb3e725e89a01e8291b31fcc4e4f3174d7c9b4f" : standinSourceDigest();
69952
+ STANDIN_SOURCE_DIGEST = true ? "3c93e5440ff0828fc1e035dff8cce915089f5b3726b02df1f1556611efa5e055" : standinSourceDigest();
69953
69953
  }
69954
69954
  });
69955
69955
 
@@ -70444,7 +70444,7 @@ __export(expo_native_prebuilt_exports, {
70444
70444
  servedExpoSwift: () => servedExpoSwift
70445
70445
  });
70446
70446
  function expoNativeCompilerDigestValue() {
70447
- return true ? "c0a9caa08d93ceace645e91aa241a482f2e38e14d7423cee7a2d4d92a65d1793" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
70447
+ return true ? "c98d2615a3dd271e0cfd9e45035ce3bc1cf95ec1851b8859b242a36343b6dcba" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
70448
70448
  }
70449
70449
  function readSources(value) {
70450
70450
  const sources = isRecord(value) ? value.sources : null;
@@ -71357,17 +71357,23 @@ var init_swift_shipped_archives = __esm({
71357
71357
  });
71358
71358
 
71359
71359
  // src/swift-shipped-binaries.ts
71360
+ function shippedBinaryModule(target, checksum) {
71361
+ if (checksum === null) return void 0;
71362
+ const namedArchive = SHIPPED_ARCHIVES.get(target);
71363
+ return namedArchive === void 0 ? SHIPPED_MODULES.get(checksum) : namedArchive === checksum ? target : void 0;
71364
+ }
71360
71365
  function shippedBinaryDiffers(target, checksum) {
71361
- const shipped = SHIPPED_ARCHIVES.get(target);
71362
- return checksum !== null && (shipped !== void 0 ? checksum !== shipped : !SHIPPED_CHECKSUMS.has(checksum));
71366
+ return checksum !== null && shippedBinaryModule(target, checksum) === void 0;
71363
71367
  }
71364
- var SHIPPED_ARCHIVES, SHIPPED_CHECKSUMS;
71368
+ var SHIPPED_ARCHIVES, SHIPPED_MODULES;
71365
71369
  var init_swift_shipped_binaries = __esm({
71366
71370
  "src/swift-shipped-binaries.ts"() {
71367
71371
  "use strict";
71368
71372
  init_swift_shipped_archives();
71369
71373
  SHIPPED_ARCHIVES = new Map(Object.entries(swift_shipped_archives_default));
71370
- SHIPPED_CHECKSUMS = new Set(SHIPPED_ARCHIVES.values());
71374
+ SHIPPED_MODULES = new Map(
71375
+ [...SHIPPED_ARCHIVES].map(([module2, checksum]) => [checksum, module2])
71376
+ );
71371
71377
  }
71372
71378
  });
71373
71379
 
@@ -75256,15 +75262,27 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
75256
75262
  }
75257
75263
  return settle(result);
75258
75264
  }
75259
- function standinModuleSources(binaries, candidates) {
75260
- const byModule = new Map(
75261
- candidates.map((candidate) => [swiftTargetModuleName(candidate.target), candidate])
75262
- );
75265
+ function standinDependencies(binaries, packages, provided) {
75266
+ const byModule = /* @__PURE__ */ new Map();
75267
+ for (const candidate of packages.binaries) {
75268
+ if (candidate.reached) continue;
75269
+ const module2 = shippedBinaryModule(candidate.target, candidate.checksum);
75270
+ if (module2 !== void 0 && provided.has(module2)) byModule.set(module2, candidate);
75271
+ }
75272
+ for (const candidate of packages.moduleSources)
75273
+ byModule.set(swiftTargetModuleName(candidate.target), candidate);
75263
75274
  const shipped = /* @__PURE__ */ new Set();
75264
75275
  const pending2 = [];
75265
75276
  const read = (dir, sources) => sources.flatMap(
75266
75277
  (source) => swiftImportNames(import_node_fs84.default.readFileSync(import_node_path81.default.join(dir, source), "utf8"))
75267
75278
  );
75279
+ const binarySurfaces = (binary2) => {
75280
+ try {
75281
+ return surfaces(swiftBinaryFramework(binary2).dir, binary2.target);
75282
+ } catch {
75283
+ return [];
75284
+ }
75285
+ };
75268
75286
  for (const binary2 of binaries) {
75269
75287
  if (binary2.placeholder !== void 0) {
75270
75288
  shipped.add(swiftTargetModuleName(binary2.target));
@@ -75272,13 +75290,7 @@ function standinModuleSources(binaries, candidates) {
75272
75290
  continue;
75273
75291
  }
75274
75292
  if (binary2.publicHeaders !== void 0) continue;
75275
- let found;
75276
- try {
75277
- found = surfaces(swiftBinaryFramework(binary2).dir, binary2.target);
75278
- } catch {
75279
- continue;
75280
- }
75281
- for (const surface of found) {
75293
+ for (const surface of binarySurfaces(binary2)) {
75282
75294
  shipped.add(surface.module);
75283
75295
  pending2.push(...surfaceImports(surface));
75284
75296
  }
@@ -75288,7 +75300,9 @@ function standinModuleSources(binaries, candidates) {
75288
75300
  const candidate = byModule.get(module2);
75289
75301
  if (!candidate || shipped.has(module2) || selected.has(module2)) continue;
75290
75302
  selected.set(module2, candidate);
75291
- pending2.push(...read(candidate.dir, candidate.moduleSources?.sources ?? []));
75303
+ pending2.push(
75304
+ ...candidate.moduleSources ? read(candidate.dir, candidate.moduleSources.sources) : binarySurfaces(candidate).flatMap(surfaceImports)
75305
+ );
75292
75306
  }
75293
75307
  return [...selected.values()];
75294
75308
  }
@@ -75328,12 +75342,12 @@ function gapText(gap) {
75328
75342
  return text6.length > 600 ? `${text6.slice(0, 600)}\u2026` : text6;
75329
75343
  }
75330
75344
  async function buildStandins(binaries, toolchain, provided, behavior) {
75331
- const requested = binaries.filter(
75332
- (binary2) => !provided.has(binary2.target) || shippedBinaryDiffers(binary2.target, binary2.checksum)
75333
- );
75334
- if (requested.length === 0) return { standins: [], gaps: /* @__PURE__ */ new Map() };
75345
+ if (binaries.every(
75346
+ (binary2) => provided.has(binary2.target) && !shippedBinaryDiffers(binary2.target, binary2.checksum)
75347
+ ))
75348
+ return { standins: [], gaps: /* @__PURE__ */ new Map() };
75335
75349
  if (process.platform === "darwin" && process.env.TM_EXEC_BUILD_PLATFORM !== "mac" && process.env.TM_SESSION && process.env.CI !== "true" && toolchain.moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(toolchain.moduleRoot))
75336
- return sourceStandins(requested, toolchain, provided, behavior);
75350
+ return sourceStandins(binaries, toolchain, provided, behavior);
75337
75351
  const standins = [];
75338
75352
  const gaps = /* @__PURE__ */ new Map();
75339
75353
  import_node_fs84.default.mkdirSync(cacheDir4, { recursive: true });
@@ -80781,6 +80795,7 @@ async function swiftPackages(entry, app) {
80781
80795
  const standinArtifact = (binary2) => binary2.publicHeaders === void 0 || binary2.unloweredSources !== void 0;
80782
80796
  const artifacts = reached.filter(standinArtifact);
80783
80797
  if (entry.moduleRoot && entry.provided && artifacts.length > 0) {
80798
+ const { provided } = entry;
80784
80799
  const resolved = swiftModuleToolchain(entry.moduleRoot);
80785
80800
  const toolchain = {
80786
80801
  moduleRoot: entry.moduleRoot,
@@ -80804,7 +80819,7 @@ async function swiftPackages(entry, app) {
80804
80819
  );
80805
80820
  const standinInputs = [
80806
80821
  ...cxxArtifacts,
80807
- ...standinModuleSources(cxxArtifacts, cached4.packages.moduleSources)
80822
+ ...standinDependencies(cxxArtifacts, cached4.packages, provided)
80808
80823
  ];
80809
80824
  const generation = standinGenerationInputs(standinInputs, toolchain, entry.behavior);
80810
80825
  if (cached4.standinKey !== generation) {
@@ -80814,7 +80829,7 @@ async function swiftPackages(entry, app) {
80814
80829
  const built2 = await swiftStandins(
80815
80830
  standinInputs,
80816
80831
  toolchain,
80817
- new Set([...entry.provided].filter((name3) => !replaced.has(name3))),
80832
+ new Set([...provided].filter((name3) => !replaced.has(name3))),
80818
80833
  entry.behavior
80819
80834
  );
80820
80835
  cached4.packages = await resolveSwiftPackagesAsync({
@@ -80825,7 +80840,7 @@ async function swiftPackages(entry, app) {
80825
80840
  // an artifact with neither a stand-in nor a gap ships only modules
80826
80841
  // peach provides, so a wrapper target that groups it still compiles
80827
80842
  provided: /* @__PURE__ */ new Set([
80828
- ...entry.provided,
80843
+ ...provided,
80829
80844
  ...cxxArtifacts.map((binary2) => binary2.target).filter((target) => !built2.gaps.has(target))
80830
80845
  ]),
80831
80846
  standinTargets: new Set(
@@ -93236,7 +93251,7 @@ var init_nitro_superset = __esm({
93236
93251
  init_nitroContract();
93237
93252
  init_swift_standin_digest();
93238
93253
  NITRO_SUPERSET_ENTRY_NAME = "superset";
93239
- NITRO_COMPILER_DIGEST = true ? "3850bd0ed6a53b6884a892f2931f95bce16c9ebfde267321be9b146a2e7b88e2" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
93254
+ NITRO_COMPILER_DIGEST = true ? "8207e24a442c696cc47e4712f3213fa1144763c3ccf976462b033a0827532f99" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
93240
93255
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
93241
93256
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
93242
93257
  published2 = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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;
@@ -33491,10 +33491,16 @@ var swift_shipped_archives_default = {
33491
33491
 
33492
33492
  // src/swift-shipped-binaries.ts
33493
33493
  var SHIPPED_ARCHIVES = new Map(Object.entries(swift_shipped_archives_default));
33494
- var SHIPPED_CHECKSUMS = new Set(SHIPPED_ARCHIVES.values());
33494
+ var SHIPPED_MODULES = new Map(
33495
+ [...SHIPPED_ARCHIVES].map(([module2, checksum]) => [checksum, module2])
33496
+ );
33497
+ function shippedBinaryModule(target, checksum) {
33498
+ if (checksum === null) return void 0;
33499
+ const namedArchive = SHIPPED_ARCHIVES.get(target);
33500
+ return namedArchive === void 0 ? SHIPPED_MODULES.get(checksum) : namedArchive === checksum ? target : void 0;
33501
+ }
33495
33502
  function shippedBinaryDiffers(target, checksum) {
33496
- const shipped = SHIPPED_ARCHIVES.get(target);
33497
- return checksum !== null && (shipped !== void 0 ? checksum !== shipped : !SHIPPED_CHECKSUMS.has(checksum));
33503
+ return checksum !== null && shippedBinaryModule(target, checksum) === void 0;
33498
33504
  }
33499
33505
 
33500
33506
  // src/swift-packages.ts
@@ -34133,7 +34139,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
34133
34139
  return hash.digest("hex");
34134
34140
  }
34135
34141
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
34136
- var STANDIN_SOURCE_DIGEST = true ? "4a21735d60d5c3e629b478af2bb3e725e89a01e8291b31fcc4e4f3174d7c9b4f" : standinSourceDigest();
34142
+ var STANDIN_SOURCE_DIGEST = true ? "3c93e5440ff0828fc1e035dff8cce915089f5b3726b02df1f1556611efa5e055" : standinSourceDigest();
34137
34143
 
34138
34144
  // src/swift-standins.ts
34139
34145
  var import_node_child_process32 = require("node:child_process");
@@ -37642,15 +37648,27 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
37642
37648
  }
37643
37649
  return settle(result);
37644
37650
  }
37645
- function standinModuleSources(binaries, candidates) {
37646
- const byModule = new Map(
37647
- candidates.map((candidate) => [swiftTargetModuleName(candidate.target), candidate])
37648
- );
37651
+ function standinDependencies(binaries, packages, provided) {
37652
+ const byModule = /* @__PURE__ */ new Map();
37653
+ for (const candidate of packages.binaries) {
37654
+ if (candidate.reached) continue;
37655
+ const module2 = shippedBinaryModule(candidate.target, candidate.checksum);
37656
+ if (module2 !== void 0 && provided.has(module2)) byModule.set(module2, candidate);
37657
+ }
37658
+ for (const candidate of packages.moduleSources)
37659
+ byModule.set(swiftTargetModuleName(candidate.target), candidate);
37649
37660
  const shipped = /* @__PURE__ */ new Set();
37650
37661
  const pending = [];
37651
37662
  const read = (dir, sources) => sources.flatMap(
37652
37663
  (source) => swiftImportNames(import_node_fs52.default.readFileSync(import_node_path52.default.join(dir, source), "utf8"))
37653
37664
  );
37665
+ const binarySurfaces = (binary) => {
37666
+ try {
37667
+ return surfaces(swiftBinaryFramework(binary).dir, binary.target);
37668
+ } catch {
37669
+ return [];
37670
+ }
37671
+ };
37654
37672
  for (const binary of binaries) {
37655
37673
  if (binary.placeholder !== void 0) {
37656
37674
  shipped.add(swiftTargetModuleName(binary.target));
@@ -37658,13 +37676,7 @@ function standinModuleSources(binaries, candidates) {
37658
37676
  continue;
37659
37677
  }
37660
37678
  if (binary.publicHeaders !== void 0) continue;
37661
- let found;
37662
- try {
37663
- found = surfaces(swiftBinaryFramework(binary).dir, binary.target);
37664
- } catch {
37665
- continue;
37666
- }
37667
- for (const surface of found) {
37679
+ for (const surface of binarySurfaces(binary)) {
37668
37680
  shipped.add(surface.module);
37669
37681
  pending.push(...surfaceImports(surface));
37670
37682
  }
@@ -37674,7 +37686,9 @@ function standinModuleSources(binaries, candidates) {
37674
37686
  const candidate = byModule.get(module2);
37675
37687
  if (!candidate || shipped.has(module2) || selected.has(module2)) continue;
37676
37688
  selected.set(module2, candidate);
37677
- pending.push(...read(candidate.dir, candidate.moduleSources?.sources ?? []));
37689
+ pending.push(
37690
+ ...candidate.moduleSources ? read(candidate.dir, candidate.moduleSources.sources) : binarySurfaces(candidate).flatMap(surfaceImports)
37691
+ );
37678
37692
  }
37679
37693
  return [...selected.values()];
37680
37694
  }
@@ -37714,12 +37728,12 @@ function gapText(gap) {
37714
37728
  return text5.length > 600 ? `${text5.slice(0, 600)}\u2026` : text5;
37715
37729
  }
37716
37730
  async function buildStandins(binaries, toolchain, provided, behavior) {
37717
- const requested = binaries.filter(
37718
- (binary) => !provided.has(binary.target) || shippedBinaryDiffers(binary.target, binary.checksum)
37719
- );
37720
- if (requested.length === 0) return { standins: [], gaps: /* @__PURE__ */ new Map() };
37731
+ if (binaries.every(
37732
+ (binary) => provided.has(binary.target) && !shippedBinaryDiffers(binary.target, binary.checksum)
37733
+ ))
37734
+ return { standins: [], gaps: /* @__PURE__ */ new Map() };
37721
37735
  if (process.platform === "darwin" && process.env.TM_EXEC_BUILD_PLATFORM !== "mac" && process.env.TM_SESSION && process.env.CI !== "true" && toolchain.moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(toolchain.moduleRoot))
37722
- return sourceStandins(requested, toolchain, provided, behavior);
37736
+ return sourceStandins(binaries, toolchain, provided, behavior);
37723
37737
  const standins = [];
37724
37738
  const gaps = /* @__PURE__ */ new Map();
37725
37739
  import_node_fs52.default.mkdirSync(cacheDir4, { recursive: true });
@@ -39915,6 +39929,7 @@ async function swiftPackages(entry, app) {
39915
39929
  const standinArtifact = (binary) => binary.publicHeaders === void 0 || binary.unloweredSources !== void 0;
39916
39930
  const artifacts = reached.filter(standinArtifact);
39917
39931
  if (entry.moduleRoot && entry.provided && artifacts.length > 0) {
39932
+ const { provided } = entry;
39918
39933
  const resolved = swiftModuleToolchain(entry.moduleRoot);
39919
39934
  const toolchain = {
39920
39935
  moduleRoot: entry.moduleRoot,
@@ -39938,7 +39953,7 @@ async function swiftPackages(entry, app) {
39938
39953
  );
39939
39954
  const standinInputs = [
39940
39955
  ...cxxArtifacts,
39941
- ...standinModuleSources(cxxArtifacts, cached.packages.moduleSources)
39956
+ ...standinDependencies(cxxArtifacts, cached.packages, provided)
39942
39957
  ];
39943
39958
  const generation = standinGenerationInputs(standinInputs, toolchain, entry.behavior);
39944
39959
  if (cached.standinKey !== generation) {
@@ -39948,7 +39963,7 @@ async function swiftPackages(entry, app) {
39948
39963
  const built2 = await swiftStandins(
39949
39964
  standinInputs,
39950
39965
  toolchain,
39951
- new Set([...entry.provided].filter((name3) => !replaced.has(name3))),
39966
+ new Set([...provided].filter((name3) => !replaced.has(name3))),
39952
39967
  entry.behavior
39953
39968
  );
39954
39969
  cached.packages = await resolveSwiftPackagesAsync({
@@ -39959,7 +39974,7 @@ async function swiftPackages(entry, app) {
39959
39974
  // an artifact with neither a stand-in nor a gap ships only modules
39960
39975
  // peach provides, so a wrapper target that groups it still compiles
39961
39976
  provided: /* @__PURE__ */ new Set([
39962
- ...entry.provided,
39977
+ ...provided,
39963
39978
  ...cxxArtifacts.map((binary) => binary.target).filter((target) => !built2.gaps.has(target))
39964
39979
  ]),
39965
39980
  standinTargets: new Set(
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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;
@@ -3244,7 +3244,7 @@ var STANDIN_SOURCE_DIGEST;
3244
3244
  var init_swift_standin_digest = __esm({
3245
3245
  "src/swift-standin-digest.ts"() {
3246
3246
  "use strict";
3247
- STANDIN_SOURCE_DIGEST = true ? "4a21735d60d5c3e629b478af2bb3e725e89a01e8291b31fcc4e4f3174d7c9b4f" : standinSourceDigest();
3247
+ STANDIN_SOURCE_DIGEST = true ? "3c93e5440ff0828fc1e035dff8cce915089f5b3726b02df1f1556611efa5e055" : standinSourceDigest();
3248
3248
  }
3249
3249
  });
3250
3250
 
@@ -5341,13 +5341,15 @@ var init_swift_shipped_archives = __esm({
5341
5341
  });
5342
5342
 
5343
5343
  // src/swift-shipped-binaries.ts
5344
- var SHIPPED_ARCHIVES, SHIPPED_CHECKSUMS;
5344
+ var SHIPPED_ARCHIVES, SHIPPED_MODULES;
5345
5345
  var init_swift_shipped_binaries = __esm({
5346
5346
  "src/swift-shipped-binaries.ts"() {
5347
5347
  "use strict";
5348
5348
  init_swift_shipped_archives();
5349
5349
  SHIPPED_ARCHIVES = new Map(Object.entries(swift_shipped_archives_default));
5350
- SHIPPED_CHECKSUMS = new Set(SHIPPED_ARCHIVES.values());
5350
+ SHIPPED_MODULES = new Map(
5351
+ [...SHIPPED_ARCHIVES].map(([module2, checksum]) => [checksum, module2])
5352
+ );
5351
5353
  }
5352
5354
  });
5353
5355
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (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.2389 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2391 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -1,9 +1,11 @@
1
1
  import type { MetalShaderFunction } from './metalShaderContract.d.ts';
2
2
  export type MetalDimensions = readonly [number, number, number];
3
+ type MetalRenderColorFormat = 'rgba8unorm' | 'bgra8unorm';
3
4
  export type MetalRenderPipeline = {
4
5
  id: number;
5
6
  vertex: string;
6
7
  fragment: string;
8
+ colorFormat?: MetalRenderColorFormat;
7
9
  };
8
10
  export type MetalResourceBytes = {
9
11
  index: number;
@@ -62,6 +64,7 @@ export type MetalDirectOperation = {
62
64
  }) | {
63
65
  type: 'render';
64
66
  pipeline: MetalRenderPipeline | null;
67
+ colorFormat?: MetalRenderColorFormat;
65
68
  width: number;
66
69
  height: number;
67
70
  bytes: string;
@@ -77,10 +80,12 @@ export type MetalDirectResult = {
77
80
  kind: 'released';
78
81
  } | {
79
82
  kind: 'pipeline';
83
+ colorFormat?: MetalRenderColorFormat;
80
84
  } | {
81
85
  kind: 'completed';
82
86
  buffers: MetalResourceBytes[];
83
87
  textures?: MetalResourceBytes[];
88
+ colorFormat?: MetalRenderColorFormat;
84
89
  };
85
90
  export type MetalDirectResponse = {
86
91
  ok: true;
package/kotlin/sdk.tar.gz CHANGED
Binary file
package/node-runtime.json CHANGED
@@ -1 +1 @@
1
- {"abi":1,"archiveSha256":"fa50b9798d2448d9685106ad899c0d7d66b014adf3250935d4fd0e1278fc1bb3","entrySha256":"40917e91e74473968dc8d74ea73ecdd5bf66fd21289b6ed10697bfa5acbdc318"}
1
+ {"abi":1,"archiveSha256":"36f66a0dcd1c76fec4ba9ddacbc8bafaca1003d796d825501d32d3c25ad1bdd3","entrySha256":"373427f8006d7c6d30178aa939c2537a8f8a89454c9fb8939c7b2ecdd9010978"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2389",
3
+ "version": "0.1.2391",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
package/src/swift-host.ts CHANGED
@@ -97,7 +97,7 @@ import { readSwiftStandinBehavior } from './swift-standin-config'
97
97
  import {
98
98
  standinGenerationInputs,
99
99
  standinLibrary,
100
- standinModuleSources,
100
+ standinDependencies,
101
101
  swiftStandins,
102
102
  type SwiftStandin,
103
103
  type SwiftStandins,
@@ -681,6 +681,7 @@ async function swiftPackages(
681
681
  binary.publicHeaders === undefined || binary.unloweredSources !== undefined
682
682
  const artifacts = reached.filter(standinArtifact)
683
683
  if (entry.moduleRoot && entry.provided && artifacts.length > 0) {
684
+ const { provided } = entry
684
685
  const resolved = swiftModuleToolchain(entry.moduleRoot)
685
686
  const toolchain = {
686
687
  moduleRoot: entry.moduleRoot,
@@ -705,10 +706,9 @@ async function swiftPackages(
705
706
  const cxxArtifacts = reached.filter(
706
707
  (binary) => standinArtifact(binary) && !portableAssembly.has(binary.target),
707
708
  )
708
- // a source module an artifact imports builds with its stand-ins and never stands in
709
709
  const standinInputs = [
710
710
  ...cxxArtifacts,
711
- ...standinModuleSources(cxxArtifacts, cached.packages.moduleSources),
711
+ ...standinDependencies(cxxArtifacts, cached.packages, provided),
712
712
  ]
713
713
  const generation = standinGenerationInputs(standinInputs, toolchain, entry.behavior)
714
714
  if (cached.standinKey !== generation) {
@@ -721,7 +721,7 @@ async function swiftPackages(
721
721
  const built = await swiftStandins(
722
722
  standinInputs,
723
723
  toolchain,
724
- new Set([...entry.provided].filter((name) => !replaced.has(name))),
724
+ new Set([...provided].filter((name) => !replaced.has(name))),
725
725
  entry.behavior,
726
726
  )
727
727
  cached.packages = await resolveSwiftPackagesAsync({
@@ -732,7 +732,7 @@ async function swiftPackages(
732
732
  // an artifact with neither a stand-in nor a gap ships only modules
733
733
  // peach provides, so a wrapper target that groups it still compiles
734
734
  provided: new Set([
735
- ...entry.provided,
735
+ ...provided,
736
736
  ...cxxArtifacts
737
737
  .map((binary) => binary.target)
738
738
  .filter((target) => !built.gaps.has(target)),
@@ -4,13 +4,24 @@ import archives from './swift-shipped-archives.json' with { type: 'json' }
4
4
  // (scripts/debug/swift-binary-standin-generate.ts writes the table). a package pinning a
5
5
  // different archive gets its own stand-in, since the shipped module declares another version's API.
6
6
  const SHIPPED_ARCHIVES = new Map<string, string>(Object.entries(archives))
7
- const SHIPPED_CHECKSUMS = new Set(SHIPPED_ARCHIVES.values())
7
+ const SHIPPED_MODULES = new Map(
8
+ [...SHIPPED_ARCHIVES].map(([module, checksum]) => [checksum, module]),
9
+ )
10
+
11
+ export function shippedBinaryModule(
12
+ target: string,
13
+ checksum: string | null,
14
+ ): string | undefined {
15
+ if (checksum === null) return undefined
16
+ const namedArchive = SHIPPED_ARCHIVES.get(target)
17
+ return namedArchive === undefined
18
+ ? SHIPPED_MODULES.get(checksum)
19
+ : namedArchive === checksum
20
+ ? target
21
+ : undefined
22
+ }
8
23
 
9
24
  /** compare the archive even when a package target aliases its module name. */
10
25
  export function shippedBinaryDiffers(target: string, checksum: string | null): boolean {
11
- const shipped = SHIPPED_ARCHIVES.get(target)
12
- return (
13
- checksum !== null &&
14
- (shipped !== undefined ? checksum !== shipped : !SHIPPED_CHECKSUMS.has(checksum))
15
- )
26
+ return checksum !== null && shippedBinaryModule(target, checksum) === undefined
16
27
  }