peachsim 0.1.2369 → 0.1.2371

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 (106) 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 +173 -76
  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 +172 -75
  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 +173 -76
  31. package/dist-lib/host/fetch-proxy-handler.cjs +7 -5
  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 +7 -5
  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 +7 -5
  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 +178 -81
  68. package/dist-lib/swift-compile.cjs +32 -13
  69. package/dist-lib/swift-compile.mjs +32 -13
  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 +151 -72
  77. package/dist-lib/vite.cjs +7 -5
  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/render-worker/compositor-gpu.d.ts +1 -0
  81. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +14 -0
  82. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +6 -0
  83. package/kotlin/sdk.tar.gz +0 -0
  84. package/node-runtime.json +1 -1
  85. package/package.json +1 -1
  86. package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Headers/DCAppAttestService.h +223 -0
  87. package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Headers/DCDevice.h +90 -0
  88. package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Headers/DCError.h +52 -0
  89. package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Headers/DeviceCheck.h +13 -0
  90. package/sdk/ios/System/Library/Frameworks/DeviceCheck.framework/Modules/module.modulemap +6 -0
  91. package/sdk/ios/usr/include/_modules/_Availability.h +33 -0
  92. package/sdk/ios/usr/include/_modules/_os_availability.h +33 -0
  93. package/sdk/ios/usr/include/availability.modulemap +50 -0
  94. package/sdk/ios/usr/include/module.modulemap +4 -0
  95. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +77 -0
  96. package/sdk/ios/usr/lib/swift/StoreKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +7 -0
  97. package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +23 -0
  98. package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
  99. package/src/native-static-libraries.ts +16 -16
  100. package/src/podspec-sources.ts +19 -1
  101. package/src/swift-compile.ts +38 -24
  102. package/src/swift-objc-standin.ts +11 -5
  103. package/src/swift-packages.ts +40 -28
  104. package/src/swift-shipped-binaries.ts +6 -2
  105. package/src/swift-standin-emit.ts +65 -11
  106. package/src/swift-standins.ts +30 -4
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2369 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2371 | (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;
@@ -13762,7 +13762,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13762
13762
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13763
13763
  var MULTI_MANIFEST_VERSION = 69;
13764
13764
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13765
- var compilerSourceDigest = true ? "9a39c03175ef8814619997609dea6a60b2716c9faa8e3eb0ff43c11aca35c934" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13765
+ var compilerSourceDigest = true ? "1b47386ddb37b973b7110df3031ea52e9d23ac2a578bc7539d91e232e336db2a" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13766
13766
  function swiftArtifactHash(input, release, moduleRoot) {
13767
13767
  const hash = (0, import_node_crypto14.createHash)("sha256");
13768
13768
  hash.update(`swift-compile
@@ -17767,25 +17767,44 @@ async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
17767
17767
  if (staged) return withSwiftRootLock(staged, run2(staged), signal);
17768
17768
  const built = new Map(slots.map((slot) => [slot, (0, import_node_fs25.statSync)(slot).mtimeMs]));
17769
17769
  const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
17770
- const oldest = slots.sort(
17771
- (left, right) => (built.get(left) ?? 0) - (built.get(right) ?? 0)
17770
+ const inputs = new Map(
17771
+ swiftModuleInputFiles(moduleRoot).map((file) => [
17772
+ file,
17773
+ (0, import_node_fs25.readFileSync)(import_node_path26.default.join(moduleRoot, file))
17774
+ ])
17775
+ );
17776
+ const ranked = slots.map((slot) => {
17777
+ let changes = 0;
17778
+ if (swiftFrameworkSlotKey(slot) === null) return { slot, changes: Infinity };
17779
+ const source = import_node_path26.default.join(slot, "source", "packages", import_node_path26.default.basename(moduleRoot));
17780
+ for (const [file, contents2] of inputs) {
17781
+ try {
17782
+ if (!(0, import_node_fs25.readFileSync)(import_node_path26.default.join(source, file)).equals(contents2)) changes++;
17783
+ } catch (error) {
17784
+ if (!vanished(error)) throw error;
17785
+ changes++;
17786
+ }
17787
+ }
17788
+ return { slot, changes };
17789
+ }).sort(
17790
+ (left, right) => left.changes - right.changes || Number(own(right.slot)) - Number(own(left.slot)) || (built.get(right.slot) ?? 0) - (built.get(left.slot) ?? 0)
17772
17791
  );
17773
- for (const slot of [
17774
- ...oldest.filter(own).reverse(),
17775
- // a slot created this run is empty but carries a fresh mtime, so it would
17776
- // otherwise sort behind an occupied slot it should spare
17777
- ...oldest.filter((slot2) => !own(slot2) && swiftFrameworkSlotKey(slot2) === null),
17778
- ...oldest.filter((slot2) => !own(slot2) && swiftFrameworkSlotKey(slot2) !== null)
17779
- ]) {
17792
+ for (const { slot, changes } of ranked) {
17780
17793
  const result = await withSwiftRootLock(
17781
17794
  slot,
17782
- async (lease) => ({ value: await run2(slot)(lease) }),
17795
+ async (lease) => {
17796
+ console.error(
17797
+ `[swift-framework-cache] ${import_node_path26.default.basename(slot)} changedInputs=${changes} totalInputs=${inputs.size}`
17798
+ );
17799
+ return { value: await run2(slot)(lease) };
17800
+ },
17783
17801
  signal,
17784
17802
  false
17785
17803
  );
17786
17804
  if (result) return result.value;
17787
17805
  }
17788
- return withSwiftRootLock(oldest[0], run2(oldest[0]), signal);
17806
+ const nearest = ranked[0].slot;
17807
+ return withSwiftRootLock(nearest, run2(nearest), signal);
17789
17808
  }
17790
17809
  function mirrorTree2(source, target, skip) {
17791
17810
  (0, import_node_fs25.mkdirSync)(target, { recursive: true });
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2369 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2371 | (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);
@@ -13750,7 +13750,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13750
13750
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13751
13751
  var MULTI_MANIFEST_VERSION = 69;
13752
13752
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13753
- var compilerSourceDigest = true ? "9a39c03175ef8814619997609dea6a60b2716c9faa8e3eb0ff43c11aca35c934" : swiftCompilerSourceDigest(import.meta.dirname);
13753
+ var compilerSourceDigest = true ? "1b47386ddb37b973b7110df3031ea52e9d23ac2a578bc7539d91e232e336db2a" : swiftCompilerSourceDigest(import.meta.dirname);
13754
13754
  function swiftArtifactHash(input, release, moduleRoot) {
13755
13755
  const hash = createHash14("sha256");
13756
13756
  hash.update(`swift-compile
@@ -17755,25 +17755,44 @@ async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
17755
17755
  if (staged) return withSwiftRootLock(staged, run2(staged), signal);
17756
17756
  const built = new Map(slots.map((slot) => [slot, statSync2(slot).mtimeMs]));
17757
17757
  const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
17758
- const oldest = slots.sort(
17759
- (left, right) => (built.get(left) ?? 0) - (built.get(right) ?? 0)
17758
+ const inputs = new Map(
17759
+ swiftModuleInputFiles(moduleRoot).map((file) => [
17760
+ file,
17761
+ readFileSync17(path28.join(moduleRoot, file))
17762
+ ])
17763
+ );
17764
+ const ranked = slots.map((slot) => {
17765
+ let changes = 0;
17766
+ if (swiftFrameworkSlotKey(slot) === null) return { slot, changes: Infinity };
17767
+ const source = path28.join(slot, "source", "packages", path28.basename(moduleRoot));
17768
+ for (const [file, contents2] of inputs) {
17769
+ try {
17770
+ if (!readFileSync17(path28.join(source, file)).equals(contents2)) changes++;
17771
+ } catch (error) {
17772
+ if (!vanished(error)) throw error;
17773
+ changes++;
17774
+ }
17775
+ }
17776
+ return { slot, changes };
17777
+ }).sort(
17778
+ (left, right) => left.changes - right.changes || Number(own(right.slot)) - Number(own(left.slot)) || (built.get(right.slot) ?? 0) - (built.get(left.slot) ?? 0)
17760
17779
  );
17761
- for (const slot of [
17762
- ...oldest.filter(own).reverse(),
17763
- // a slot created this run is empty but carries a fresh mtime, so it would
17764
- // otherwise sort behind an occupied slot it should spare
17765
- ...oldest.filter((slot2) => !own(slot2) && swiftFrameworkSlotKey(slot2) === null),
17766
- ...oldest.filter((slot2) => !own(slot2) && swiftFrameworkSlotKey(slot2) !== null)
17767
- ]) {
17780
+ for (const { slot, changes } of ranked) {
17768
17781
  const result = await withSwiftRootLock(
17769
17782
  slot,
17770
- async (lease) => ({ value: await run2(slot)(lease) }),
17783
+ async (lease) => {
17784
+ console.error(
17785
+ `[swift-framework-cache] ${path28.basename(slot)} changedInputs=${changes} totalInputs=${inputs.size}`
17786
+ );
17787
+ return { value: await run2(slot)(lease) };
17788
+ },
17771
17789
  signal,
17772
17790
  false
17773
17791
  );
17774
17792
  if (result) return result.value;
17775
17793
  }
17776
- return withSwiftRootLock(oldest[0], run2(oldest[0]), signal);
17794
+ const nearest = ranked[0].slot;
17795
+ return withSwiftRootLock(nearest, run2(nearest), signal);
17777
17796
  }
17778
17797
  function mirrorTree2(source, target, skip) {
17779
17798
  mkdirSync7(target, { recursive: true });
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2369 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2371 | (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.2369 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2371 | (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.2369 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2371 | (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.2369 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2371 | (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.2369 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2371 | (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.2369 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2371 | (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;