peachsim 0.1.1996 → 0.1.1998

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 (82) 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 +29 -26
  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 +28 -25
  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 +29 -26
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +2 -2
  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 +2 -2
  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 +29 -26
  68. package/dist-lib/swift-compile.cjs +2 -2
  69. package/dist-lib/swift-compile.mjs +2 -2
  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 +27 -24
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/package.json +1 -1
  81. package/src/swift-objc-standin.ts +19 -18
  82. package/src/swift-standins.ts +8 -6
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1996 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1998 | (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.1996 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1998 | (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.1996 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1998 | (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;
@@ -7848,21 +7848,22 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
7848
7848
  `original Objective-C declarations do not import as Swift: ${run5.stderr.trim() || run5.stdout.trim()}`
7849
7849
  );
7850
7850
  let progress = false;
7851
- for (const [, shadowed, same] of run5.stderr.matchAll(
7852
- /is not a member type of class '(\w+)\.(\w+)'/g
7853
- ))
7854
- if (shadowed === same && !selectors.has(shadowed)) {
7855
- selectors.add(shadowed);
7856
- progress = true;
7857
- for (const file of interfaceCopies)
7858
- import_node_fs7.default.writeFileSync(
7859
- file,
7860
- import_node_fs7.default.readFileSync(file, "utf8").replace(
7861
- new RegExp(`\\b${shadowed}\\.(?=[A-Za-z_])`, "g"),
7862
- `${shadowed}::`
7863
- )
7864
- );
7865
- }
7851
+ for (const [, member, shadowed, same] of run5.stderr.matchAll(
7852
+ /'(\w+)' is not a member type of class '(\w+)\.(\w+)'/g
7853
+ )) {
7854
+ const reference = `${shadowed}.${member}`;
7855
+ if (shadowed !== same || selectors.has(reference)) continue;
7856
+ selectors.add(reference);
7857
+ progress = true;
7858
+ for (const file of interfaceCopies)
7859
+ import_node_fs7.default.writeFileSync(
7860
+ file,
7861
+ import_node_fs7.default.readFileSync(file, "utf8").replace(
7862
+ new RegExp(`\\b${shadowed}\\.${member}\\b`, "g"),
7863
+ `${shadowed}::${member}`
7864
+ )
7865
+ );
7866
+ }
7866
7867
  const learn = (name3, kind) => {
7867
7868
  if (missing.has(name3)) return;
7868
7869
  missing.set(name3, kind);
@@ -16782,7 +16783,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
16782
16783
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
16783
16784
  var MULTI_MANIFEST_VERSION = 66;
16784
16785
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
16785
- var compilerSourceDigest = true ? "2b36a6526c1736968b10c07d3f0413954b745c6a495b4b68702c61e477ba2565" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
16786
+ var compilerSourceDigest = true ? "c95b479af39888671bcbf0ac9be93ffed99df2a44864af96ae6ef002ac8d49b7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
16786
16787
  function swiftArtifactHash(input, release, moduleRoot) {
16787
16788
  const hash = (0, import_node_crypto13.createHash)("sha256");
16788
16789
  hash.update(`swift-compile
@@ -29753,7 +29754,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
29753
29754
  return hash.digest("hex");
29754
29755
  }
29755
29756
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
29756
- var STANDIN_SOURCE_DIGEST = true ? "54d5cda2634afbc5ff0e2199f90025e07d2cf86367c736799de3d121d026cf1a" : standinSourceDigest();
29757
+ var STANDIN_SOURCE_DIGEST = true ? "b61936e7dc903ba6b3d09d28a7b101a5af522afea03a6a9c9e7c18c875f894e1" : standinSourceDigest();
29757
29758
 
29758
29759
  // src/swift-standins.ts
29759
29760
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -30717,7 +30718,9 @@ function binaryHeaderSearchPaths(binary, root, declaredFrameworks) {
30717
30718
  "Modules"
30718
30719
  );
30719
30720
  import_node_fs46.default.mkdirSync(modules, { recursive: true });
30720
- import_node_fs46.default.copyFileSync(surface.modulemap, import_node_path47.default.join(modules, "module.modulemap"));
30721
+ const modulemap = import_node_path47.default.join(modules, "module.modulemap");
30722
+ import_node_fs46.default.rmSync(modulemap, { force: true });
30723
+ import_node_fs46.default.copyFileSync(surface.modulemap, modulemap);
30721
30724
  }
30722
30725
  }
30723
30726
  for (const [index, directory] of headers.entries()) {
@@ -30731,11 +30734,11 @@ function binaryHeaderSearchPaths(binary, root, declaredFrameworks) {
30731
30734
  const surface = found.find(
30732
30735
  (item) => "headers" in item && item.headers === directory
30733
30736
  );
30734
- if (surface && "modulemap" in surface)
30735
- import_node_fs46.default.copyFileSync(
30736
- surface.modulemap,
30737
- import_node_path47.default.join(pending, "headers", String(index), "module.modulemap")
30738
- );
30737
+ if (surface && "modulemap" in surface) {
30738
+ const modulemap = import_node_path47.default.join(pending, "headers", String(index), "module.modulemap");
30739
+ import_node_fs46.default.rmSync(modulemap, { force: true });
30740
+ import_node_fs46.default.copyFileSync(surface.modulemap, modulemap);
30741
+ }
30739
30742
  }
30740
30743
  const contents = (0, import_node_crypto24.createHash)("sha256");
30741
30744
  for (const relative2 of import_node_fs46.default.readdirSync(pending, { recursive: true, encoding: "utf8" }).sort()) {
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1996 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1998 | (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.1996 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1998 | (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.1996 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1998 | (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.1996",
3
+ "version": "0.1.1998",
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",
@@ -756,24 +756,25 @@ export function objcView(
756
756
  )
757
757
  let progress = false
758
758
  // a class named like its module shadows the module qualifier, which a module selector
759
- // still reaches
760
- for (const [, shadowed, same] of run.stderr.matchAll(
761
- /is not a member type of class '(\w+)\.(\w+)'/g,
762
- ))
763
- if (shadowed === same && !selectors.has(shadowed!)) {
764
- selectors.add(shadowed!)
765
- progress = true
766
- for (const file of interfaceCopies)
767
- fs.writeFileSync(
768
- file,
769
- fs
770
- .readFileSync(file, 'utf8')
771
- .replace(
772
- new RegExp(`\\b${shadowed}\\.(?=[A-Za-z_])`, 'g'),
773
- `${shadowed}::`,
774
- ),
775
- )
776
- }
759
+ // still reaches; only the member names swiftc rejects are rewritten
760
+ for (const [, member, shadowed, same] of run.stderr.matchAll(
761
+ /'(\w+)' is not a member type of class '(\w+)\.(\w+)'/g,
762
+ )) {
763
+ const reference = `${shadowed}.${member}`
764
+ if (shadowed !== same || selectors.has(reference)) continue
765
+ selectors.add(reference)
766
+ progress = true
767
+ for (const file of interfaceCopies)
768
+ fs.writeFileSync(
769
+ file,
770
+ fs
771
+ .readFileSync(file, 'utf8')
772
+ .replace(
773
+ new RegExp(`\\b${shadowed}\\.${member}\\b`, 'g'),
774
+ `${shadowed}::${member}`,
775
+ ),
776
+ )
777
+ }
777
778
  const learn = (name: string, kind: 'class' | 'protocol' | 'struct' | 'macro') => {
778
779
  if (missing.has(name)) return
779
780
  missing.set(name, kind)
@@ -510,7 +510,9 @@ export function binaryHeaderSearchPaths(
510
510
  'Modules',
511
511
  )
512
512
  fs.mkdirSync(modules, { recursive: true })
513
- fs.copyFileSync(surface.modulemap, path.join(modules, 'module.modulemap'))
513
+ const modulemap = path.join(modules, 'module.modulemap')
514
+ fs.rmSync(modulemap, { force: true })
515
+ fs.copyFileSync(surface.modulemap, modulemap)
514
516
  }
515
517
  }
516
518
  for (const [index, directory] of headers.entries()) {
@@ -530,11 +532,11 @@ export function binaryHeaderSearchPaths(
530
532
  const surface = found.find(
531
533
  (item) => 'headers' in item && item.headers === directory,
532
534
  )
533
- if (surface && 'modulemap' in surface)
534
- fs.copyFileSync(
535
- surface.modulemap,
536
- path.join(pending, 'headers', String(index), 'module.modulemap'),
537
- )
535
+ if (surface && 'modulemap' in surface) {
536
+ const modulemap = path.join(pending, 'headers', String(index), 'module.modulemap')
537
+ fs.rmSync(modulemap, { force: true })
538
+ fs.copyFileSync(surface.modulemap, modulemap)
539
+ }
538
540
  }
539
541
  const contents = createHash('sha256')
540
542
  for (const relative of fs