peachsim 0.1.1917 → 0.1.1919

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 (88) 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 +65 -20
  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 +2 -2
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +60 -15
  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 +66 -21
  31. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  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 +3 -3
  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 +3 -3
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  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 +66 -21
  68. package/dist-lib/swift-compile.cjs +21 -8
  69. package/dist-lib/swift-compile.mjs +21 -8
  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 +59 -14
  77. package/dist-lib/vite.cjs +2 -2
  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/runtime-companion.json +1 -1
  82. package/src/nitro-adapter.lock.json +255 -255
  83. package/src/nitro-superset.lock.json +4 -4
  84. package/src/swift-compile.ts +20 -3
  85. package/src/swift-distribution.lock.json +11 -11
  86. package/src/swift-guest-link.ts +3 -3
  87. package/src/swift-host.ts +53 -8
  88. package/src/turbo-runtime.lock.json +23 -23
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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;
@@ -8780,7 +8780,7 @@ function linkGuestImages(options) {
8780
8780
  );
8781
8781
  const output = import_node_fs13.default.openSync(trace, "w");
8782
8782
  try {
8783
- (0, import_node_child_process10.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output, "inherit"] });
8783
+ (0, import_node_child_process10.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output, "pipe"] });
8784
8784
  } finally {
8785
8785
  import_node_fs13.default.closeSync(output);
8786
8786
  }
@@ -9152,7 +9152,7 @@ function discoverGuestLinkInputs(options) {
9152
9152
  const traceOutput = import_node_fs13.default.openSync(trace, "w");
9153
9153
  try {
9154
9154
  (0, import_node_child_process10.execFileSync)(options.wasmLd, [`@${response}`], {
9155
- stdio: ["ignore", traceOutput, "inherit"]
9155
+ stdio: ["ignore", traceOutput, "pipe"]
9156
9156
  });
9157
9157
  } finally {
9158
9158
  import_node_fs13.default.closeSync(traceOutput);
@@ -9307,7 +9307,7 @@ function verifyGuestSymbolScopes(options) {
9307
9307
  const traceOutput = import_node_fs13.default.openSync(tracePath, "w");
9308
9308
  try {
9309
9309
  (0, import_node_child_process10.execFileSync)(options.wasmLd, [`@${response}`], {
9310
- stdio: ["ignore", traceOutput, "inherit"]
9310
+ stdio: ["ignore", traceOutput, "pipe"]
9311
9311
  });
9312
9312
  } finally {
9313
9313
  import_node_fs13.default.closeSync(traceOutput);
@@ -11380,7 +11380,7 @@ function swiftModuleInterface(moduleRoot, name2, interfaceRoot) {
11380
11380
  if (declared.size === 0) return null;
11381
11381
  return { declared, header: clangInterfaceHeader((0, import_node_fs23.readFileSync)(built, "utf8")) };
11382
11382
  }
11383
- var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1");
11383
+ var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
11384
11384
  var swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
11385
11385
  ...[
11386
11386
  ...header.matchAll(
@@ -12129,7 +12129,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12129
12129
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12130
12130
  var MULTI_MANIFEST_VERSION = 66;
12131
12131
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12132
- var compilerSourceDigest = true ? "e3dfed5d099f11621c3c0eec35a1e6029262dcada1d8972551bd952e593f9f2f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12132
+ var compilerSourceDigest = true ? "339c260e88fc3a8f330131082230e5cc084a7a3148c6c57fe58efe33d02096c6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12133
12133
  function swiftArtifactHash(input, release, moduleRoot) {
12134
12134
  const hash = (0, import_node_crypto12.createHash)("sha256");
12135
12135
  hash.update(`swift-compile
@@ -14667,7 +14667,15 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
14667
14667
  allowExisting: true
14668
14668
  }
14669
14669
  );
14670
- const quoteFlags = origin ? ["-iquote", import_node_path25.default.join(layout2.root, origin)] : [];
14670
+ const stagedDir = import_node_path25.default.posix.dirname(file);
14671
+ const quoteDirs = [
14672
+ ...stagedDir !== "." ? [stagedDir] : [],
14673
+ ...origin && origin !== stagedDir ? [origin] : []
14674
+ ];
14675
+ const quoteFlags = quoteDirs.flatMap((dir) => [
14676
+ "-iquote",
14677
+ import_node_path25.default.join(layout2.root, dir)
14678
+ ]);
14671
14679
  const perFile = [
14672
14680
  ...file.endsWith(".c") && swiftWholeFileArm64Guard(contents) ? ["-D__arm64__=1"] : [],
14673
14681
  .../\.mm?$/.test(file) ? ["-fobjc-exceptions"] : [],
@@ -15416,6 +15424,9 @@ module ${moduleName}.Swift {
15416
15424
  ...producers.filter((name2) => !included.has(name2))
15417
15425
  ])
15418
15426
  ],
15427
+ emittedHeaderProducers: [
15428
+ .../* @__PURE__ */ new Set([...Object.keys(nativeHeaderDeclarations), ...producers])
15429
+ ],
15419
15430
  nativeHeaderDeclarations,
15420
15431
  headerProductTarget,
15421
15432
  targetFailures,
@@ -16342,7 +16353,9 @@ function compileSwiftProjectOnce(input, options) {
16342
16353
  SWIFTPM_PROGRESS,
16343
16354
  SWIFTPM_NOISE
16344
16355
  );
16345
- for (const producer of build === preparation.headerProductTarget ? preparation.headerProducers : [build]) {
16356
+ for (const producer of build === preparation.headerProductTarget ? preparation.emittedHeaderProducers : preparation.emittedHeaderProducers.filter(
16357
+ (candidate) => candidate === build || !preparation.headerProducers.includes(candidate)
16358
+ )) {
16346
16359
  const emitted = import_node_path25.default.join(
16347
16360
  root,
16348
16361
  ".build",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -8729,7 +8729,7 @@ function linkGuestImages(options) {
8729
8729
  );
8730
8730
  const output = fs5.openSync(trace, "w");
8731
8731
  try {
8732
- execFileSync7(wasmLd, [`@${response}`], { stdio: ["ignore", output, "inherit"] });
8732
+ execFileSync7(wasmLd, [`@${response}`], { stdio: ["ignore", output, "pipe"] });
8733
8733
  } finally {
8734
8734
  fs5.closeSync(output);
8735
8735
  }
@@ -9101,7 +9101,7 @@ function discoverGuestLinkInputs(options) {
9101
9101
  const traceOutput = fs5.openSync(trace, "w");
9102
9102
  try {
9103
9103
  execFileSync7(options.wasmLd, [`@${response}`], {
9104
- stdio: ["ignore", traceOutput, "inherit"]
9104
+ stdio: ["ignore", traceOutput, "pipe"]
9105
9105
  });
9106
9106
  } finally {
9107
9107
  fs5.closeSync(traceOutput);
@@ -9256,7 +9256,7 @@ function verifyGuestSymbolScopes(options) {
9256
9256
  const traceOutput = fs5.openSync(tracePath, "w");
9257
9257
  try {
9258
9258
  execFileSync7(options.wasmLd, [`@${response}`], {
9259
- stdio: ["ignore", traceOutput, "inherit"]
9259
+ stdio: ["ignore", traceOutput, "pipe"]
9260
9260
  });
9261
9261
  } finally {
9262
9262
  fs5.closeSync(traceOutput);
@@ -11356,7 +11356,7 @@ function swiftModuleInterface(moduleRoot, name2, interfaceRoot) {
11356
11356
  if (declared.size === 0) return null;
11357
11357
  return { declared, header: clangInterfaceHeader(readFileSync16(built, "utf8")) };
11358
11358
  }
11359
- var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1");
11359
+ var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
11360
11360
  var swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
11361
11361
  ...[
11362
11362
  ...header.matchAll(
@@ -12105,7 +12105,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12105
12105
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12106
12106
  var MULTI_MANIFEST_VERSION = 66;
12107
12107
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12108
- var compilerSourceDigest = true ? "e3dfed5d099f11621c3c0eec35a1e6029262dcada1d8972551bd952e593f9f2f" : swiftCompilerSourceDigest(import.meta.dirname);
12108
+ var compilerSourceDigest = true ? "339c260e88fc3a8f330131082230e5cc084a7a3148c6c57fe58efe33d02096c6" : swiftCompilerSourceDigest(import.meta.dirname);
12109
12109
  function swiftArtifactHash(input, release, moduleRoot) {
12110
12110
  const hash = createHash13("sha256");
12111
12111
  hash.update(`swift-compile
@@ -14643,7 +14643,15 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
14643
14643
  allowExisting: true
14644
14644
  }
14645
14645
  );
14646
- const quoteFlags = origin ? ["-iquote", path25.join(layout2.root, origin)] : [];
14646
+ const stagedDir = path25.posix.dirname(file);
14647
+ const quoteDirs = [
14648
+ ...stagedDir !== "." ? [stagedDir] : [],
14649
+ ...origin && origin !== stagedDir ? [origin] : []
14650
+ ];
14651
+ const quoteFlags = quoteDirs.flatMap((dir) => [
14652
+ "-iquote",
14653
+ path25.join(layout2.root, dir)
14654
+ ]);
14647
14655
  const perFile = [
14648
14656
  ...file.endsWith(".c") && swiftWholeFileArm64Guard(contents) ? ["-D__arm64__=1"] : [],
14649
14657
  .../\.mm?$/.test(file) ? ["-fobjc-exceptions"] : [],
@@ -15392,6 +15400,9 @@ module ${moduleName}.Swift {
15392
15400
  ...producers.filter((name2) => !included.has(name2))
15393
15401
  ])
15394
15402
  ],
15403
+ emittedHeaderProducers: [
15404
+ .../* @__PURE__ */ new Set([...Object.keys(nativeHeaderDeclarations), ...producers])
15405
+ ],
15395
15406
  nativeHeaderDeclarations,
15396
15407
  headerProductTarget,
15397
15408
  targetFailures,
@@ -16318,7 +16329,9 @@ function compileSwiftProjectOnce(input, options) {
16318
16329
  SWIFTPM_PROGRESS,
16319
16330
  SWIFTPM_NOISE
16320
16331
  );
16321
- for (const producer of build === preparation.headerProductTarget ? preparation.headerProducers : [build]) {
16332
+ for (const producer of build === preparation.headerProductTarget ? preparation.emittedHeaderProducers : preparation.emittedHeaderProducers.filter(
16333
+ (candidate) => candidate === build || !preparation.headerProducers.includes(candidate)
16334
+ )) {
16322
16335
  const emitted = path25.join(
16323
16336
  root,
16324
16337
  ".build",
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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;
@@ -13227,7 +13227,7 @@ function linkGuestImages(options) {
13227
13227
  );
13228
13228
  const output2 = import_node_fs14.default.openSync(trace, "w");
13229
13229
  try {
13230
- (0, import_node_child_process11.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output2, "inherit"] });
13230
+ (0, import_node_child_process11.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output2, "pipe"] });
13231
13231
  } finally {
13232
13232
  import_node_fs14.default.closeSync(output2);
13233
13233
  }
@@ -13599,7 +13599,7 @@ function discoverGuestLinkInputs(options) {
13599
13599
  const traceOutput = import_node_fs14.default.openSync(trace, "w");
13600
13600
  try {
13601
13601
  (0, import_node_child_process11.execFileSync)(options.wasmLd, [`@${response}`], {
13602
- stdio: ["ignore", traceOutput, "inherit"]
13602
+ stdio: ["ignore", traceOutput, "pipe"]
13603
13603
  });
13604
13604
  } finally {
13605
13605
  import_node_fs14.default.closeSync(traceOutput);
@@ -13754,7 +13754,7 @@ function verifyGuestSymbolScopes(options) {
13754
13754
  const traceOutput = import_node_fs14.default.openSync(tracePath, "w");
13755
13755
  try {
13756
13756
  (0, import_node_child_process11.execFileSync)(options.wasmLd, [`@${response}`], {
13757
- stdio: ["ignore", traceOutput, "inherit"]
13757
+ stdio: ["ignore", traceOutput, "pipe"]
13758
13758
  });
13759
13759
  } finally {
13760
13760
  import_node_fs14.default.closeSync(traceOutput);
@@ -15697,7 +15697,7 @@ function swiftModuleInterface(moduleRoot, name3, interfaceRoot) {
15697
15697
  if (declared.size === 0) return null;
15698
15698
  return { declared, header: clangInterfaceHeader((0, import_node_fs25.readFileSync)(built2, "utf8")) };
15699
15699
  }
15700
- var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1");
15700
+ var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
15701
15701
  var swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
15702
15702
  ...[
15703
15703
  ...header.matchAll(
@@ -16442,7 +16442,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
16442
16442
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
16443
16443
  var MULTI_MANIFEST_VERSION = 66;
16444
16444
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
16445
- var compilerSourceDigest = true ? "e3dfed5d099f11621c3c0eec35a1e6029262dcada1d8972551bd952e593f9f2f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
16445
+ var compilerSourceDigest = true ? "339c260e88fc3a8f330131082230e5cc084a7a3148c6c57fe58efe33d02096c6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
16446
16446
  function swiftArtifactHash(input, release, moduleRoot) {
16447
16447
  const hash = (0, import_node_crypto12.createHash)("sha256");
16448
16448
  hash.update(`swift-compile
@@ -18887,7 +18887,15 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
18887
18887
  allowExisting: true
18888
18888
  }
18889
18889
  );
18890
- const quoteFlags = origin ? ["-iquote", import_node_path25.default.join(layout2.root, origin)] : [];
18890
+ const stagedDir = import_node_path25.default.posix.dirname(file);
18891
+ const quoteDirs = [
18892
+ ...stagedDir !== "." ? [stagedDir] : [],
18893
+ ...origin && origin !== stagedDir ? [origin] : []
18894
+ ];
18895
+ const quoteFlags = quoteDirs.flatMap((dir) => [
18896
+ "-iquote",
18897
+ import_node_path25.default.join(layout2.root, dir)
18898
+ ]);
18891
18899
  const perFile = [
18892
18900
  ...file.endsWith(".c") && swiftWholeFileArm64Guard(contents) ? ["-D__arm64__=1"] : [],
18893
18901
  .../\.mm?$/.test(file) ? ["-fobjc-exceptions"] : [],
@@ -19636,6 +19644,9 @@ module ${moduleName}.Swift {
19636
19644
  ...producers.filter((name3) => !included.has(name3))
19637
19645
  ])
19638
19646
  ],
19647
+ emittedHeaderProducers: [
19648
+ .../* @__PURE__ */ new Set([...Object.keys(nativeHeaderDeclarations), ...producers])
19649
+ ],
19639
19650
  nativeHeaderDeclarations,
19640
19651
  headerProductTarget,
19641
19652
  targetFailures,
@@ -20562,7 +20573,9 @@ function compileSwiftProjectOnce(input, options) {
20562
20573
  SWIFTPM_PROGRESS,
20563
20574
  SWIFTPM_NOISE
20564
20575
  );
20565
- for (const producer of build === preparation.headerProductTarget ? preparation.headerProducers : [build]) {
20576
+ for (const producer of build === preparation.headerProductTarget ? preparation.emittedHeaderProducers : preparation.emittedHeaderProducers.filter(
20577
+ (candidate) => candidate === build || !preparation.headerProducers.includes(candidate)
20578
+ )) {
20566
20579
  const emitted = import_node_path25.default.join(
20567
20580
  root,
20568
20581
  ".build",
@@ -29587,7 +29600,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
29587
29600
  return hash.digest("hex");
29588
29601
  }
29589
29602
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
29590
- var STANDIN_SOURCE_DIGEST = true ? "d5d76acc93fcfd6400f9e2adbeff8970922933f271386242e2c6454fa646596f" : standinSourceDigest();
29603
+ var STANDIN_SOURCE_DIGEST = true ? "730d33af8983472f094e25750b3ec98a16e2c11f302d5fe81577928991efa489" : standinSourceDigest();
29591
29604
 
29592
29605
  // src/swift-standins.ts
29593
29606
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -34399,12 +34412,44 @@ async function buildXcodeLayout(root) {
34399
34412
  for (const framework of app.frameworks) {
34400
34413
  const target = targets.find((target2) => target2.name === frameworkNames.get(framework));
34401
34414
  if (!target) continue;
34402
- target.dependencies = framework.targetDependencies.flatMap(
34403
- (identity2) => app.frameworks.filter((dependency) => dependency.targetIdentity === identity2).flatMap((dependency) => {
34404
- const name3 = frameworkNames.get(dependency);
34405
- return name3 ? [{ kind: "target", name: name3 }] : [];
34415
+ const productLinks = packages.sourceLinks.owners.find((owner) => owner.module === framework.moduleName)?.products ?? [];
34416
+ target.dependencies = [
34417
+ ...framework.targetDependencies.flatMap(
34418
+ (identity2) => app.frameworks.filter((dependency) => dependency.targetIdentity === identity2).flatMap((dependency) => {
34419
+ const name3 = frameworkNames.get(dependency);
34420
+ return name3 ? [{ kind: "target", name: name3 }] : [];
34421
+ })
34422
+ ),
34423
+ ...productLinks.flatMap(({ target: productId }) => {
34424
+ const product = packages.sourceLinks.targets.find((item) => item.id === productId);
34425
+ return (product?.dependencies ?? []).flatMap(({ target: targetId }) => {
34426
+ const item = packages.sourceLinks.targets.find((node) => node.id === targetId);
34427
+ if (!item) return [];
34428
+ if (item.sourceTarget)
34429
+ return [
34430
+ { kind: "target", name: item.sourceTarget }
34431
+ ];
34432
+ return item.productType === "swiftpm.target.binary" ? standins.filter((standin) => standin.target === item.productName).map(
34433
+ (standin) => ({
34434
+ kind: "target",
34435
+ name: standin.module
34436
+ })
34437
+ ) : [];
34438
+ });
34439
+ }),
34440
+ ...(framework.packageProducts ?? []).flatMap(({ product, source }) => {
34441
+ const native = packages.nativeProducts.find(
34442
+ ({ name: name3, source: origin }) => name3 === product && (source.kind === "unnamed" || origin === (source.kind === "remote" ? source.url : import_node_path51.default.resolve(source.dir)))
34443
+ );
34444
+ return native ? [
34445
+ {
34446
+ kind: "product",
34447
+ name: native.name,
34448
+ package: native.packageDir
34449
+ }
34450
+ ] : [];
34406
34451
  })
34407
- );
34452
+ ];
34408
34453
  }
34409
34454
  const packagePaths = /* @__PURE__ */ new Map();
34410
34455
  const packageFiles2 = /* @__PURE__ */ new Map();
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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;
@@ -203,7 +203,7 @@ function isValidRuntimeVersion(value) {
203
203
  }
204
204
 
205
205
  // runtime-companion.json
206
- var runtime_companion_default = { abi: 1, sha256: "79b28c8a82064417f5d5bbda24830d23b1ad9b51e3c3cd3894b9d685413aaef6", file: "node/cli-79b28c8a82064417f5d5bbda24830d23b1ad9b51e3c3cd3894b9d685413aaef6.cjs" };
206
+ var runtime_companion_default = { abi: 1, sha256: "f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994", file: "node/cli-f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994.cjs" };
207
207
 
208
208
  // src/answeredNativePackages.ts
209
209
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (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.1917 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1919 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1917",
3
+ "version": "0.1.1919",
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",
@@ -1 +1 @@
1
- {"abi":1,"sha256":"79b28c8a82064417f5d5bbda24830d23b1ad9b51e3c3cd3894b9d685413aaef6","file":"node/cli-79b28c8a82064417f5d5bbda24830d23b1ad9b51e3c3cd3894b9d685413aaef6.cjs"}
1
+ {"abi":1,"sha256":"f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994","file":"node/cli-f930fee860e7212db8bb827be1e8b933818d9792c0bcd8583c095fb6a37a0994.cjs"}