peachsim 0.1.2399 → 0.1.2400

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 (85) hide show
  1. package/cli/outbound-endpoints.ts +5 -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 +23 -16
  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 +2 -2
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +22 -15
  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 +23 -16
  32. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  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 +2 -2
  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 +2 -2
  48. package/dist-lib/native-app-identity-project.cjs +1 -1
  49. package/dist-lib/native-app-identity-project.mjs +1 -1
  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 +53 -53
  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 +23 -16
  69. package/dist-lib/swift-compile.cjs +1 -1
  70. package/dist-lib/swift-compile.mjs +1 -1
  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 +1 -1
  78. package/dist-lib/vite.cjs +2 -2
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/dist-types/packages/peach-engine/src/capture/browserAccessibilityContract.d.ts +1 -0
  82. package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +2 -0
  83. package/package.json +1 -1
  84. package/runtime-companion.json +1 -1
  85. package/src/expo-swift-host.ts +30 -22
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2399 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2400 | (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/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2399 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2400 | (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;
@@ -2850,7 +2850,7 @@ var require_lib = __commonJS({
2850
2850
  var runtime_companion_default;
2851
2851
  var init_runtime_companion = __esm({
2852
2852
  "runtime-companion.json"() {
2853
- runtime_companion_default = { abi: 1, sha256: "5a932e58b4c91ce16844d88e18e0e55d3d48fa1d1fde04f7c9e475d5bab9e7c3", file: "node/cli-5a932e58b4c91ce16844d88e18e0e55d3d48fa1d1fde04f7c9e475d5bab9e7c3.cjs" };
2853
+ runtime_companion_default = { abi: 1, sha256: "658636e3bce6510e61148e4524fbf697d8e84481cb366d81dd9c8f439b654c85", file: "node/cli-658636e3bce6510e61148e4524fbf697d8e84481cb366d81dd9c8f439b654c85.cjs" };
2854
2854
  }
2855
2855
  });
2856
2856
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2399 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2400 | (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.2399 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2400 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -24,4 +24,5 @@ export interface BrowserAccessibilityCapture {
24
24
  schema: 1;
25
25
  surfaces: BrowserAccessibilitySurface[];
26
26
  }
27
+ export type WebKitAccessibilityNode = Omit<BrowserAccessibilityNode, 'visibleFrame' | 'centerVisible'>;
27
28
 
@@ -277,6 +277,8 @@ export interface SootSimWebViewSpec extends Partial<NativeSurfacePresentation> {
277
277
  contentInsets?: {
278
278
  top: number;
279
279
  bottom: number;
280
+ left: number;
281
+ right: number;
280
282
  };
281
283
  startInLoadingState?: boolean;
282
284
  testID?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2399",
3
+ "version": "0.1.2400",
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":"5a932e58b4c91ce16844d88e18e0e55d3d48fa1d1fde04f7c9e475d5bab9e7c3","file":"node/cli-5a932e58b4c91ce16844d88e18e0e55d3d48fa1d1fde04f7c9e475d5bab9e7c3.cjs"}
1
+ {"abi":1,"sha256":"658636e3bce6510e61148e4524fbf697d8e84481cb366d81dd9c8f439b654c85","file":"node/cli-658636e3bce6510e61148e4524fbf697d8e84481cb366d81dd9c8f439b654c85.cjs"}
@@ -498,14 +498,7 @@ function cloneNativeTarget(target: SwiftNativeTarget): SwiftNativeTarget {
498
498
  // a podspec without a platform declaration is available everywhere; otherwise
499
499
  // only the platforms it names are, through platforms, platform or a
500
500
  // per-platform deployment target. ruby beyond those literals is not evaluated.
501
- function podSupportsIOS(pod: unknown): boolean {
502
- if (
503
- !isRecord(pod) ||
504
- typeof pod.podName !== 'string' ||
505
- typeof pod.podspecDir !== 'string'
506
- )
507
- throw new Error('invalid Expo autolinking pod')
508
- const base = path.join(pod.podspecDir, pod.podName)
501
+ function podSupportsIOS(base: string): boolean {
509
502
  if (fs.existsSync(`${base}.podspec.json`)) {
510
503
  const platforms: unknown = JSON.parse(
511
504
  fs.readFileSync(`${base}.podspec.json`, 'utf8'),
@@ -1492,13 +1485,27 @@ async function collectExpoSwiftSourcesUncached(
1492
1485
  resolution && typeof resolution === 'object'
1493
1486
  ? Reflect.get(resolution, 'modules')
1494
1487
  : null
1495
- const pods =
1488
+ const resolvedPods =
1496
1489
  resolution && typeof resolution === 'object'
1497
1490
  ? Reflect.get(resolution, 'pods')
1498
1491
  : null
1492
+ const pods = Array.isArray(resolvedPods)
1493
+ ? resolvedPods.map((pod: unknown) => {
1494
+ if (
1495
+ !isRecord(pod) ||
1496
+ typeof pod.podName !== 'string' ||
1497
+ typeof pod.podspecDir !== 'string'
1498
+ )
1499
+ throw new Error('invalid Expo autolinking pod')
1500
+ return {
1501
+ base: path.join(pod.podspecDir, pod.podName),
1502
+ namespace: pod.podName.replace(/[^a-zA-Z0-9]/g, '_'),
1503
+ }
1504
+ })
1505
+ : []
1499
1506
  // expo links a package into an iOS target only when one of its pods
1500
1507
  // supports iOS (autolinking_manager.rb packages_to_generate).
1501
- if (Array.isArray(pods) && pods.length > 0 && !pods.some(podSupportsIOS)) {
1508
+ if (pods.length > 0 && !pods.some((pod) => podSupportsIOS(pod.base))) {
1502
1509
  report(`${packageName} was not linked: no pod supports iOS`)
1503
1510
  continue
1504
1511
  }
@@ -1510,8 +1517,7 @@ async function collectExpoSwiftSourcesUncached(
1510
1517
  const subscriberNames = delegateNames('appDelegateSubscribers')
1511
1518
  const handlerNames = delegateNames('reactDelegateHandlers')
1512
1519
  // a package with pods is rediscovered in the prepared workspace, which has no caps.
1513
- const deferredToWorkspace =
1514
- prepareNative && !installedWorkspace && Array.isArray(pods) && pods.length > 0
1520
+ const deferredToWorkspace = prepareNative && !installedWorkspace && pods.length > 0
1515
1521
  const dependencyOnly =
1516
1522
  answered ||
1517
1523
  ((!Array.isArray(modules) || modules.length === 0) &&
@@ -1783,12 +1789,13 @@ async function collectExpoSwiftSourcesUncached(
1783
1789
  }
1784
1790
  // a module compiled from its own source declares its iOS floor in its
1785
1791
  // podspec; CocoaPods builds the pod at that floor.
1786
- const podspec = fs.existsSync(ios)
1787
- ? fs.readdirSync(ios).find((name) => name.endsWith('.podspec'))
1788
- : undefined
1789
- const podspecText = podspec
1790
- ? fs.readFileSync(path.join(ios, podspec), 'utf8')
1791
- : null
1792
+ const pod =
1793
+ pods.length === 1 ? pods[0] : pods.find((pod) => pod.namespace === namespace)
1794
+ const podspec = pod ? `${pod.base}.podspec` : null
1795
+ const podspecText =
1796
+ podspec && fs.existsSync(podspec)
1797
+ ? fs.readFileSync(resolveSource(podspec), 'utf8')
1798
+ : null
1792
1799
  const usesReact = Boolean(
1793
1800
  !installed &&
1794
1801
  podspecText &&
@@ -1797,7 +1804,7 @@ async function collectExpoSwiftSourcesUncached(
1797
1804
  ),
1798
1805
  )
1799
1806
  const absentFrameworks: string[] = []
1800
- if (podspecText && !installed) {
1807
+ if (podspec && podspecText && !installed) {
1801
1808
  // the declared paths are read as written; podspec Ruby beyond literal
1802
1809
  // strings is not evaluated, as with the floor below.
1803
1810
  const declared = [
@@ -1810,7 +1817,8 @@ async function collectExpoSwiftSourcesUncached(
1810
1817
  ),
1811
1818
  )
1812
1819
  for (const entry of declared) {
1813
- const base = path.dirname(path.resolve(ios, entry))
1820
+ const declaredPath = path.resolve(path.dirname(podspec), entry)
1821
+ const base = path.dirname(declaredPath)
1814
1822
  const name = new RegExp(
1815
1823
  `^${path
1816
1824
  .basename(entry)
@@ -1821,7 +1829,7 @@ async function collectExpoSwiftSourcesUncached(
1821
1829
  ? fs.readdirSync(base).filter((child) => name.test(child))
1822
1830
  : []
1823
1831
  if (found.length === 0)
1824
- absentFrameworks.push(path.relative(appRoot, path.resolve(ios, entry)))
1832
+ absentFrameworks.push(path.relative(appRoot, declaredPath))
1825
1833
  for (const child of found) frameworks.add(resolveSource(path.join(base, child)))
1826
1834
  }
1827
1835
  }
@@ -1882,7 +1890,7 @@ async function collectExpoSwiftSourcesUncached(
1882
1890
  module.registration !== null &&
1883
1891
  configuredExpoSwiftModule(closure, module.name, module.nativeName, appConfig)
1884
1892
  if (configured && !module.subscriber && !module.handler) continue
1885
- if (Array.isArray(pods) && pods.length > 0) needsNativeWorkspace = true
1893
+ if (pods.length > 0) needsNativeWorkspace = true
1886
1894
  const unit: ExpoSwiftSourceUnit = {
1887
1895
  namespace,
1888
1896
  moduleId: `${namespace}.${module.name}`,