peachsim 0.1.1875 → 0.1.1877

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/README.md +1 -0
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/attached-projects.cjs +1 -1
  5. package/dist-lib/auth/shared-session.cjs +1 -1
  6. package/dist-lib/backend-origin.cjs +1 -1
  7. package/dist-lib/beta.cjs +1 -1
  8. package/dist-lib/beta.mjs +1 -1
  9. package/dist-lib/bridge-constants.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.mjs +1 -1
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +1 -1
  14. package/dist-lib/bundle-channel.cjs +124 -109
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +1 -1
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +1 -1
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +1 -1
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +1 -1
  25. package/dist-lib/detox/index.cjs +1 -1
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +25 -19
  28. package/dist-lib/expo-swift-metadata.cjs +1 -1
  29. package/dist-lib/expo-swift-metadata.mjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +26 -20
  32. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +5 -3
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +5 -3
  48. package/dist-lib/native-app-identity-project.cjs +5 -3
  49. package/dist-lib/native-app-identity-project.mjs +5 -3
  50. package/dist-lib/native-app-identity.cjs +1 -1
  51. package/dist-lib/native-app-identity.mjs +1 -1
  52. package/dist-lib/native-firebase-metadata.cjs +1 -1
  53. package/dist-lib/native-firebase-metadata.mjs +1 -1
  54. package/dist-lib/pdfium-raster.cjs +1 -1
  55. package/dist-lib/pdfium-raster.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +24 -24
  61. package/dist-lib/public-origins-lib.json +54 -54
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +1 -1
  67. package/dist-lib/sdk.mjs +1 -1
  68. package/dist-lib/skills.cjs +26 -20
  69. package/dist-lib/swift-compile.cjs +20 -16
  70. package/dist-lib/swift-compile.mjs +20 -16
  71. package/dist-lib/swift-package.cjs +1 -1
  72. package/dist-lib/swift-package.mjs +1 -1
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +21 -17
  78. package/dist-lib/vite.cjs +1 -1
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/package.json +1 -1
  82. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecImportExport.h +722 -0
  83. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecSharedCredential.h +119 -0
  84. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +2 -0
  85. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +1 -1
  86. package/src/bundle-channel.mjs +21 -11
  87. package/src/native-app-identity-project.ts +3 -1
  88. package/src/swift-compile.ts +22 -14
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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;
package/dist-lib/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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;
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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;
@@ -47791,9 +47791,9 @@ function emitSwiftPackageManifest(args) {
47791
47791
  foundationCategoryObjects.map((name3) => `lib/Foundation-${name3}.o`)
47792
47792
  );
47793
47793
  const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
47794
- const eager = new Set(
47794
+ const eager = args.lazyDistribution ? new Set(
47795
47795
  objects.filter((object4) => roots.has(object4) || categoryObjects.has(object4))
47796
- );
47796
+ ) : new Set(objects);
47797
47797
  const list2 = [
47798
47798
  ...[...eager].map(quoted),
47799
47799
  "-Wl,--start-lib",
@@ -50013,7 +50013,8 @@ module ${moduleName2}.Swift {
50013
50013
  distributionLink: {
50014
50014
  path: import_node_path40.default.join(layout.root, ".peach-distribution-objects.rsp"),
50015
50015
  files: files2
50016
- }
50016
+ },
50017
+ lazyDistribution: input.optimize
50017
50018
  } : {},
50018
50019
  ...prebuilt && frameworkLink ? {
50019
50020
  prebuilt: {
@@ -50830,7 +50831,7 @@ function compileSwiftProjectOnce(input, options) {
50830
50831
  process.env.LD_LIBRARY_PATH
50831
50832
  ].filter(Boolean).join(":")
50832
50833
  } : {},
50833
- PEACH_DEFER_WASM_LINK: "1"
50834
+ ...input.optimize ? { PEACH_DEFER_WASM_LINK: "1" } : {}
50834
50835
  },
50835
50836
  maxBuffer: 64 * 1024 * 1024,
50836
50837
  timeout: options.timeoutMs,
@@ -50930,9 +50931,11 @@ function compileSwiftProjectOnce(input, options) {
50930
50931
  ])
50931
50932
  ];
50932
50933
  const linked = builtArtifact(layout);
50933
- (0, import_node_fs43.rmSync)(import_node_path40.default.join(root, ".peach-link.rsp"), { force: true });
50934
- if ((0, import_node_fs43.existsSync)(linked) && (0, import_node_fs43.statSync)(linked).size <= 8)
50935
- (0, import_node_fs43.rmSync)(linked, { force: true });
50934
+ if (input.optimize) {
50935
+ (0, import_node_fs43.rmSync)(import_node_path40.default.join(root, ".peach-link.rsp"), { force: true });
50936
+ if ((0, import_node_fs43.existsSync)(linked) && (0, import_node_fs43.statSync)(linked).size <= 8)
50937
+ (0, import_node_fs43.rmSync)(linked, { force: true });
50938
+ }
50936
50939
  report("compiling and linking Swift modules");
50937
50940
  try {
50938
50941
  const headerBuilds = preparation.headerProductTarget ? [
@@ -51046,13 +51049,14 @@ function compileSwiftProjectOnce(input, options) {
51046
51049
  );
51047
51050
  }
51048
51051
  if (options.project) removeProjectLinks(root);
51049
- pruneSwiftWasmLink(
51050
- root,
51051
- options.toolchainBin,
51052
- frameworkRoot,
51053
- input.staticClangTargets,
51054
- options.project
51055
- );
51052
+ if (input.optimize)
51053
+ pruneSwiftWasmLink(
51054
+ root,
51055
+ options.toolchainBin,
51056
+ frameworkRoot,
51057
+ input.staticClangTargets,
51058
+ options.project
51059
+ );
51056
51060
  const output2 = options.project ? projectOutputFile(root, linked, options.project) : linked;
51057
51061
  const optimized = `${output2}.optimized`;
51058
51062
  if (input.optimize) await optimizeWasm(output2, optimized);
@@ -51239,7 +51243,7 @@ var init_swift_compile = __esm({
51239
51243
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
51240
51244
  MULTI_MANIFEST_VERSION = 65;
51241
51245
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
51242
- compilerSourceDigest = true ? "16355cfe66c10b553640a95acf7ed3b7f810db06602eb8edab8620da0ec7b94a" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
51246
+ compilerSourceDigest = true ? "ca780499f7195af38b1c066131ca90eda8716d98f59a897b31da50c1ff44cf83" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
51243
51247
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
51244
51248
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
51245
51249
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -58583,7 +58587,7 @@ var init_swift_standin_digest = __esm({
58583
58587
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
58584
58588
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
58585
58589
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
58586
- STANDIN_SOURCE_DIGEST = true ? "bd8e32c07fde4e95b32471690e07a890275838ac56295defcbb56b4b59a7f066" : standinSourceDigest();
58590
+ STANDIN_SOURCE_DIGEST = true ? "3aae44df21589ccc4ee37b75dadeaabf7588816d438527b310b508e1e1c4833c" : standinSourceDigest();
58587
58591
  }
58588
58592
  });
58589
58593
 
@@ -58661,7 +58665,9 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
58661
58665
  const appVersion = nonEmptyString2(dictionary2.CFBundleShortVersionString) ?? nonEmptyString2(settings?.("MARKETING_VERSION"));
58662
58666
  const buildVersion = nonEmptyString2(dictionary2.CFBundleVersion) ?? nonEmptyString2(settings?.("CURRENT_PROJECT_VERSION"));
58663
58667
  if (!appVersion || !buildVersion) {
58664
- throw new Error("native app has no version or build version");
58668
+ throw new Error(
58669
+ "native app has no version or build version; values its Xcode scheme derives in a build phase can be exported as process environment variables when opening"
58670
+ );
58665
58671
  }
58666
58672
  const bundleName = nonEmptyString2(dictionary2.CFBundleName) ?? nonEmptyString2(settings?.("PRODUCT_NAME")) ?? app.name;
58667
58673
  const applicationDisplayName = nonEmptyString2(dictionary2.CFBundleDisplayName);
@@ -59310,7 +59316,7 @@ var init_expo_native_prebuilt = __esm({
59310
59316
  init_swift_native_pin();
59311
59317
  init_xcode_project();
59312
59318
  EXPO_NATIVE_ENTRY_NAME = "ios";
59313
- EXPO_NATIVE_COMPILER_DIGEST = true ? "c19c10cb13f53c55d6312f5229410857ba6b6af4a47aec45ed8b581e313603a5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
59319
+ EXPO_NATIVE_COMPILER_DIGEST = true ? "5e11ad24e84eb780c51788df4cc9536820c7e707cdedb3173b7cdba72da6f06f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
59314
59320
  IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
59315
59321
  expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
59316
59322
  isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
@@ -77087,7 +77093,7 @@ var init_nitro_superset = __esm({
77087
77093
  init_swift_standin_digest();
77088
77094
  NITRO_SUPERSET_ENTRY_NAME = "superset";
77089
77095
  packageVersion = (root) => JSON.parse((0, import_node_fs86.readFileSync)((0, import_node_path83.join)(root, "package.json"), "utf8")).version;
77090
- NITRO_COMPILER_DIGEST = true ? "6cb2069b8076b1a3a0418395301a5cf231a5fae13c2758814eeddcadefb70171" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
77096
+ NITRO_COMPILER_DIGEST = true ? "56936b65d9b508a9db07136f6901e90dfc8429317bda432dc4703e2741582cce" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
77091
77097
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
77092
77098
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
77093
77099
  published2 = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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;
@@ -7879,7 +7879,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
7879
7879
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
7880
7880
  var MULTI_MANIFEST_VERSION = 65;
7881
7881
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
7882
- var compilerSourceDigest = true ? "16355cfe66c10b553640a95acf7ed3b7f810db06602eb8edab8620da0ec7b94a" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
7882
+ var compilerSourceDigest = true ? "ca780499f7195af38b1c066131ca90eda8716d98f59a897b31da50c1ff44cf83" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
7883
7883
  function swiftArtifactHash(input, release, moduleRoot) {
7884
7884
  const hash = (0, import_node_crypto8.createHash)("sha256");
7885
7885
  hash.update(`swift-compile
@@ -8030,9 +8030,9 @@ function emitSwiftPackageManifest(args) {
8030
8030
  foundationCategoryObjects.map((name2) => `lib/Foundation-${name2}.o`)
8031
8031
  );
8032
8032
  const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
8033
- const eager = new Set(
8033
+ const eager = args.lazyDistribution ? new Set(
8034
8034
  objects.filter((object) => roots.has(object) || categoryObjects.has(object))
8035
- );
8035
+ ) : new Set(objects);
8036
8036
  const list = [
8037
8037
  ...[...eager].map(quoted),
8038
8038
  "-Wl,--start-lib",
@@ -10957,7 +10957,8 @@ module ${moduleName}.Swift {
10957
10957
  distributionLink: {
10958
10958
  path: import_node_path19.default.join(layout.root, ".peach-distribution-objects.rsp"),
10959
10959
  files
10960
- }
10960
+ },
10961
+ lazyDistribution: input.optimize
10961
10962
  } : {},
10962
10963
  ...prebuilt && frameworkLink ? {
10963
10964
  prebuilt: {
@@ -11784,7 +11785,7 @@ function compileSwiftProjectOnce(input, options) {
11784
11785
  process.env.LD_LIBRARY_PATH
11785
11786
  ].filter(Boolean).join(":")
11786
11787
  } : {},
11787
- PEACH_DEFER_WASM_LINK: "1"
11788
+ ...input.optimize ? { PEACH_DEFER_WASM_LINK: "1" } : {}
11788
11789
  },
11789
11790
  maxBuffer: 64 * 1024 * 1024,
11790
11791
  timeout: options.timeoutMs,
@@ -11884,9 +11885,11 @@ function compileSwiftProjectOnce(input, options) {
11884
11885
  ])
11885
11886
  ];
11886
11887
  const linked = builtArtifact(layout);
11887
- (0, import_node_fs17.rmSync)(import_node_path19.default.join(root, ".peach-link.rsp"), { force: true });
11888
- if ((0, import_node_fs17.existsSync)(linked) && (0, import_node_fs17.statSync)(linked).size <= 8)
11889
- (0, import_node_fs17.rmSync)(linked, { force: true });
11888
+ if (input.optimize) {
11889
+ (0, import_node_fs17.rmSync)(import_node_path19.default.join(root, ".peach-link.rsp"), { force: true });
11890
+ if ((0, import_node_fs17.existsSync)(linked) && (0, import_node_fs17.statSync)(linked).size <= 8)
11891
+ (0, import_node_fs17.rmSync)(linked, { force: true });
11892
+ }
11890
11893
  report("compiling and linking Swift modules");
11891
11894
  try {
11892
11895
  const headerBuilds = preparation.headerProductTarget ? [
@@ -12000,13 +12003,14 @@ function compileSwiftProjectOnce(input, options) {
12000
12003
  );
12001
12004
  }
12002
12005
  if (options.project) removeProjectLinks(root);
12003
- pruneSwiftWasmLink(
12004
- root,
12005
- options.toolchainBin,
12006
- frameworkRoot,
12007
- input.staticClangTargets,
12008
- options.project
12009
- );
12006
+ if (input.optimize)
12007
+ pruneSwiftWasmLink(
12008
+ root,
12009
+ options.toolchainBin,
12010
+ frameworkRoot,
12011
+ input.staticClangTargets,
12012
+ options.project
12013
+ );
12010
12014
  const output = options.project ? projectOutputFile(root, linked, options.project) : linked;
12011
12015
  const optimized = `${output}.optimized`;
12012
12016
  if (input.optimize) await optimizeWasm(output, optimized);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -7849,7 +7849,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
7849
7849
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
7850
7850
  var MULTI_MANIFEST_VERSION = 65;
7851
7851
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
7852
- var compilerSourceDigest = true ? "16355cfe66c10b553640a95acf7ed3b7f810db06602eb8edab8620da0ec7b94a" : swiftCompilerSourceDigest(import.meta.dirname);
7852
+ var compilerSourceDigest = true ? "ca780499f7195af38b1c066131ca90eda8716d98f59a897b31da50c1ff44cf83" : swiftCompilerSourceDigest(import.meta.dirname);
7853
7853
  function swiftArtifactHash(input, release, moduleRoot) {
7854
7854
  const hash = createHash8("sha256");
7855
7855
  hash.update(`swift-compile
@@ -8000,9 +8000,9 @@ function emitSwiftPackageManifest(args) {
8000
8000
  foundationCategoryObjects.map((name2) => `lib/Foundation-${name2}.o`)
8001
8001
  );
8002
8002
  const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
8003
- const eager = new Set(
8003
+ const eager = args.lazyDistribution ? new Set(
8004
8004
  objects.filter((object) => roots.has(object) || categoryObjects.has(object))
8005
- );
8005
+ ) : new Set(objects);
8006
8006
  const list = [
8007
8007
  ...[...eager].map(quoted),
8008
8008
  "-Wl,--start-lib",
@@ -10927,7 +10927,8 @@ module ${moduleName}.Swift {
10927
10927
  distributionLink: {
10928
10928
  path: path19.join(layout.root, ".peach-distribution-objects.rsp"),
10929
10929
  files
10930
- }
10930
+ },
10931
+ lazyDistribution: input.optimize
10931
10932
  } : {},
10932
10933
  ...prebuilt && frameworkLink ? {
10933
10934
  prebuilt: {
@@ -11754,7 +11755,7 @@ function compileSwiftProjectOnce(input, options) {
11754
11755
  process.env.LD_LIBRARY_PATH
11755
11756
  ].filter(Boolean).join(":")
11756
11757
  } : {},
11757
- PEACH_DEFER_WASM_LINK: "1"
11758
+ ...input.optimize ? { PEACH_DEFER_WASM_LINK: "1" } : {}
11758
11759
  },
11759
11760
  maxBuffer: 64 * 1024 * 1024,
11760
11761
  timeout: options.timeoutMs,
@@ -11854,9 +11855,11 @@ function compileSwiftProjectOnce(input, options) {
11854
11855
  ])
11855
11856
  ];
11856
11857
  const linked = builtArtifact(layout);
11857
- rmSync5(path19.join(root, ".peach-link.rsp"), { force: true });
11858
- if (existsSync4(linked) && statSync2(linked).size <= 8)
11859
- rmSync5(linked, { force: true });
11858
+ if (input.optimize) {
11859
+ rmSync5(path19.join(root, ".peach-link.rsp"), { force: true });
11860
+ if (existsSync4(linked) && statSync2(linked).size <= 8)
11861
+ rmSync5(linked, { force: true });
11862
+ }
11860
11863
  report("compiling and linking Swift modules");
11861
11864
  try {
11862
11865
  const headerBuilds = preparation.headerProductTarget ? [
@@ -11970,13 +11973,14 @@ function compileSwiftProjectOnce(input, options) {
11970
11973
  );
11971
11974
  }
11972
11975
  if (options.project) removeProjectLinks(root);
11973
- pruneSwiftWasmLink(
11974
- root,
11975
- options.toolchainBin,
11976
- frameworkRoot,
11977
- input.staticClangTargets,
11978
- options.project
11979
- );
11976
+ if (input.optimize)
11977
+ pruneSwiftWasmLink(
11978
+ root,
11979
+ options.toolchainBin,
11980
+ frameworkRoot,
11981
+ input.staticClangTargets,
11982
+ options.project
11983
+ );
11980
11984
  const output = options.project ? projectOutputFile(root, linked, options.project) : linked;
11981
11985
  const optimized = `${output}.optimized`;
11982
11986
  if (input.optimize) await optimizeWasm(output, optimized);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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;
@@ -12175,7 +12175,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12175
12175
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12176
12176
  var MULTI_MANIFEST_VERSION = 65;
12177
12177
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12178
- var compilerSourceDigest = true ? "16355cfe66c10b553640a95acf7ed3b7f810db06602eb8edab8620da0ec7b94a" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12178
+ var compilerSourceDigest = true ? "ca780499f7195af38b1c066131ca90eda8716d98f59a897b31da50c1ff44cf83" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12179
12179
  function swiftArtifactHash(input, release, moduleRoot) {
12180
12180
  const hash = (0, import_node_crypto8.createHash)("sha256");
12181
12181
  hash.update(`swift-compile
@@ -12326,9 +12326,9 @@ function emitSwiftPackageManifest(args) {
12326
12326
  foundationCategoryObjects.map((name3) => `lib/Foundation-${name3}.o`)
12327
12327
  );
12328
12328
  const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
12329
- const eager = new Set(
12329
+ const eager = args.lazyDistribution ? new Set(
12330
12330
  objects.filter((object2) => roots.has(object2) || categoryObjects.has(object2))
12331
- );
12331
+ ) : new Set(objects);
12332
12332
  const list2 = [
12333
12333
  ...[...eager].map(quoted),
12334
12334
  "-Wl,--start-lib",
@@ -15178,7 +15178,8 @@ module ${moduleName}.Swift {
15178
15178
  distributionLink: {
15179
15179
  path: import_node_path19.default.join(layout.root, ".peach-distribution-objects.rsp"),
15180
15180
  files: files2
15181
- }
15181
+ },
15182
+ lazyDistribution: input.optimize
15182
15183
  } : {},
15183
15184
  ...prebuilt && frameworkLink ? {
15184
15185
  prebuilt: {
@@ -16005,7 +16006,7 @@ function compileSwiftProjectOnce(input, options) {
16005
16006
  process.env.LD_LIBRARY_PATH
16006
16007
  ].filter(Boolean).join(":")
16007
16008
  } : {},
16008
- PEACH_DEFER_WASM_LINK: "1"
16009
+ ...input.optimize ? { PEACH_DEFER_WASM_LINK: "1" } : {}
16009
16010
  },
16010
16011
  maxBuffer: 64 * 1024 * 1024,
16011
16012
  timeout: options.timeoutMs,
@@ -16105,9 +16106,11 @@ function compileSwiftProjectOnce(input, options) {
16105
16106
  ])
16106
16107
  ];
16107
16108
  const linked = builtArtifact(layout);
16108
- (0, import_node_fs19.rmSync)(import_node_path19.default.join(root, ".peach-link.rsp"), { force: true });
16109
- if ((0, import_node_fs19.existsSync)(linked) && (0, import_node_fs19.statSync)(linked).size <= 8)
16110
- (0, import_node_fs19.rmSync)(linked, { force: true });
16109
+ if (input.optimize) {
16110
+ (0, import_node_fs19.rmSync)(import_node_path19.default.join(root, ".peach-link.rsp"), { force: true });
16111
+ if ((0, import_node_fs19.existsSync)(linked) && (0, import_node_fs19.statSync)(linked).size <= 8)
16112
+ (0, import_node_fs19.rmSync)(linked, { force: true });
16113
+ }
16111
16114
  report("compiling and linking Swift modules");
16112
16115
  try {
16113
16116
  const headerBuilds = preparation.headerProductTarget ? [
@@ -16221,13 +16224,14 @@ function compileSwiftProjectOnce(input, options) {
16221
16224
  );
16222
16225
  }
16223
16226
  if (options.project) removeProjectLinks(root);
16224
- pruneSwiftWasmLink(
16225
- root,
16226
- options.toolchainBin,
16227
- frameworkRoot,
16228
- input.staticClangTargets,
16229
- options.project
16230
- );
16227
+ if (input.optimize)
16228
+ pruneSwiftWasmLink(
16229
+ root,
16230
+ options.toolchainBin,
16231
+ frameworkRoot,
16232
+ input.staticClangTargets,
16233
+ options.project
16234
+ );
16231
16235
  const output2 = options.project ? projectOutputFile(root, linked, options.project) : linked;
16232
16236
  const optimized = `${output2}.optimized`;
16233
16237
  if (input.optimize) await optimizeWasm(output2, optimized);
@@ -24925,7 +24929,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
24925
24929
  return hash.digest("hex");
24926
24930
  }
24927
24931
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
24928
- var STANDIN_SOURCE_DIGEST = true ? "bd8e32c07fde4e95b32471690e07a890275838ac56295defcbb56b4b59a7f066" : standinSourceDigest();
24932
+ var STANDIN_SOURCE_DIGEST = true ? "3aae44df21589ccc4ee37b75dadeaabf7588816d438527b310b508e1e1c4833c" : standinSourceDigest();
24929
24933
 
24930
24934
  // src/swift-standins.ts
24931
24935
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1877 | (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.1875",
3
+ "version": "0.1.1877",
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",