peachsim 0.1.1674 → 0.1.1684

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 (190) hide show
  1. package/cli/commands/control.ts +13 -1
  2. package/cli/commands/coverage-swift.ts +83 -27
  3. package/cli/commands/coverage.ts +219 -20
  4. package/cli/commands/detect.ts +10 -6
  5. package/cli/commands/inspect/core.ts +2 -0
  6. package/cli/commands/inspect/wait-ready.ts +7 -0
  7. package/cli/outbound-endpoints.ts +12 -0
  8. package/detox/index.ts +11 -1
  9. package/detox/jest-environment.cjs +14 -0
  10. package/dist-lib/agent-daemon-client.cjs +1 -1
  11. package/dist-lib/agent-events.cjs +1 -1
  12. package/dist-lib/attached-projects.cjs +1 -1
  13. package/dist-lib/auth/shared-session.cjs +1 -1
  14. package/dist-lib/backend-origin.cjs +1 -1
  15. package/dist-lib/beta.cjs +1 -1
  16. package/dist-lib/beta.mjs +1 -1
  17. package/dist-lib/bridge-constants.cjs +1 -1
  18. package/dist-lib/bridge-contract-input.cjs +1 -1
  19. package/dist-lib/bridge-contract-input.mjs +1 -1
  20. package/dist-lib/bridge-contract.cjs +1 -1
  21. package/dist-lib/bridge-contract.mjs +1 -1
  22. package/dist-lib/bundle-channel.cjs +3274 -1663
  23. package/dist-lib/capture-contract.cjs +1 -1
  24. package/dist-lib/capture-contract.mjs +1 -1
  25. package/dist-lib/cloud-contract.cjs +1 -1
  26. package/dist-lib/cloud-contract.mjs +1 -1
  27. package/dist-lib/cloud-test-args.cjs +1 -1
  28. package/dist-lib/cloud-test-args.mjs +1 -1
  29. package/dist-lib/cloud.cjs +1 -1
  30. package/dist-lib/cloud.mjs +1 -1
  31. package/dist-lib/config.cjs +1 -1
  32. package/dist-lib/config.mjs +1 -1
  33. package/dist-lib/detox/index.cjs +6 -4
  34. package/dist-lib/detox/jest-environment.cjs +14 -0
  35. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  36. package/dist-lib/expo-swift-bundle.cjs +2407 -1126
  37. package/dist-lib/expo-swift-metadata.cjs +1 -1
  38. package/dist-lib/expo-swift-metadata.mjs +1 -1
  39. package/dist-lib/home-paths.cjs +1 -1
  40. package/dist-lib/host/bridge-host.cjs +2879 -1598
  41. package/dist-lib/host/fetch-proxy-handler.cjs +18 -5
  42. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  43. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  44. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  45. package/dist-lib/host/websocket-proxy.cjs +1 -1
  46. package/dist-lib/index.cjs +1904 -741
  47. package/dist-lib/jump-to-source-babel.cjs +1 -1
  48. package/dist-lib/jump-to-source-native.cjs +1 -1
  49. package/dist-lib/kotlin-host.cjs +1 -1
  50. package/dist-lib/menu.cjs +1 -1
  51. package/dist-lib/menu.mjs +1 -1
  52. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  53. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  54. package/dist-lib/metro-production-bundle.cjs +1 -1
  55. package/dist-lib/metro-production-bundle.mjs +1 -1
  56. package/dist-lib/metro.cjs +6215 -4283
  57. package/dist-lib/native-app-identity-project.cjs +31 -6
  58. package/dist-lib/native-app-identity-project.mjs +31 -6
  59. package/dist-lib/native-app-identity.cjs +1 -1
  60. package/dist-lib/native-app-identity.mjs +1 -1
  61. package/dist-lib/native-firebase-metadata.cjs +1 -1
  62. package/dist-lib/native-firebase-metadata.mjs +1 -1
  63. package/dist-lib/plist.cjs +1 -1
  64. package/dist-lib/plist.mjs +1 -1
  65. package/dist-lib/profiles.cjs +1 -1
  66. package/dist-lib/public-brand.cjs +1 -1
  67. package/dist-lib/public-origins-lib-esm.json +24 -23
  68. package/dist-lib/public-origins-lib-static.json +1 -1
  69. package/dist-lib/public-origins-lib.json +134 -78
  70. package/dist-lib/react-native-host-modules.cjs +1 -1
  71. package/dist-lib/react-native-host-modules.mjs +1 -1
  72. package/dist-lib/reap-browser.cjs +2 -2
  73. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  74. package/dist-lib/sdk.cjs +2 -1
  75. package/dist-lib/sdk.mjs +2 -1
  76. package/dist-lib/skills.cjs +3570 -2160
  77. package/dist-lib/swift-compile.cjs +473 -351
  78. package/dist-lib/swift-compile.mjs +471 -349
  79. package/dist-lib/swift-package.cjs +36 -6
  80. package/dist-lib/swift-package.mjs +35 -6
  81. package/dist-lib/swift-submit.cjs +1 -1
  82. package/dist-lib/swift-submit.mjs +1 -1
  83. package/dist-lib/swift-toolchain.cjs +26 -11
  84. package/dist-lib/swift.cjs +1 -1
  85. package/dist-lib/vite-swift.cjs +2418 -1132
  86. package/dist-lib/vite.cjs +1907 -766
  87. package/dist-lib/worklet-executable.cjs +1 -1
  88. package/dist-lib/worklet-executable.mjs +1 -1
  89. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
  90. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +9 -1
  91. package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +11 -3
  92. package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +6 -0
  93. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +2 -0
  94. package/package.json +1 -1
  95. package/runtime-companion.json +1 -1
  96. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +51 -2
  97. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +21 -0
  98. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFComposeAssistantViewController.h +29 -0
  99. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeControllerDeferredAction.h +14 -0
  100. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +162 -0
  101. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailDraft.h +24 -0
  102. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController+UPI.h +31 -0
  103. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +169 -0
  104. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.h +13 -0
  105. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Modules/module.modulemap +11 -0
  106. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +10 -0
  107. package/sdk/ios/usr/include/arm/param.h +151 -0
  108. package/sdk/ios/usr/include/dispatch/dispatch.h +3 -0
  109. package/sdk/ios/usr/include/dlfcn.h +1 -2
  110. package/sdk/ios/usr/include/machine/param.h +42 -0
  111. package/sdk/ios/usr/include/net/if.h +1 -2
  112. package/sdk/ios/usr/include/peach/pthread.h +4 -4
  113. package/sdk/ios/usr/include/pthread/qos.h +304 -0
  114. package/sdk/ios/usr/include/sys/_types/_fd_clr.h +31 -0
  115. package/sdk/ios/usr/include/sys/_types/_fd_copy.h +31 -0
  116. package/sdk/ios/usr/include/sys/_types/_fd_def.h +121 -0
  117. package/sdk/ios/usr/include/sys/_types/_fd_isset.h +31 -0
  118. package/sdk/ios/usr/include/sys/_types/_fd_set.h +31 -0
  119. package/sdk/ios/usr/include/sys/_types/_fd_setsize.h +31 -0
  120. package/sdk/ios/usr/include/sys/_types/_fd_zero.h +31 -0
  121. package/sdk/ios/usr/include/sys/cdefs.h +3 -0
  122. package/sdk/ios/usr/include/sys/param.h +235 -0
  123. package/sdk/ios/usr/include/sys/proc.h +1 -0
  124. package/sdk/ios/usr/include/sys/qos.h +151 -12
  125. package/sdk/ios/wasm/include/__typedef_sigset_t.h +7 -0
  126. package/sdk/ios/wasm/include/fcntl.h +11 -0
  127. package/sdk/ios/wasm/include/mach/machine/boolean.h +2 -0
  128. package/sdk/ios/wasm/include/mach/machine/exception.h +5 -0
  129. package/sdk/ios/wasm/include/mach/machine/kern_return.h +2 -0
  130. package/sdk/ios/wasm/include/mach/machine/processor_info.h +2 -0
  131. package/sdk/ios/wasm/include/mach/machine/rpc.h +2 -0
  132. package/sdk/ios/wasm/include/mach/machine/thread_state.h +3 -0
  133. package/sdk/ios/wasm/include/mach/machine/thread_status.h +3 -0
  134. package/sdk/ios/wasm/include/mach/machine/vm_param.h +3 -0
  135. package/sdk/ios/wasm/include/mach/machine/vm_types.h +18 -0
  136. package/sdk/ios/wasm/include/machine/_types.h +153 -0
  137. package/sdk/ios/wasm/include/machine/endian.h +2 -0
  138. package/sdk/ios/wasm/include/machine/limits.h +2 -0
  139. package/sdk/ios/wasm/include/machine/types.h +30 -0
  140. package/sdk/ios/wasm/include/poll.h +8 -0
  141. package/sdk/ios/wasm/include/pthread.h +50 -0
  142. package/sdk/ios/wasm/include/signal.h +72 -0
  143. package/sdk/ios/wasm/include/stdlib.h +3 -0
  144. package/sdk/ios/wasm/include/string.h +10 -0
  145. package/sdk/ios/wasm/include/sys/_pthread/_pthread_attr_t.h +7 -0
  146. package/sdk/ios/wasm/include/sys/_pthread/_pthread_t.h +7 -0
  147. package/sdk/ios/wasm/include/sys/mman.h +122 -0
  148. package/sdk/ios/wasm/include/sys/select.h +37 -0
  149. package/sdk/ios/wasm/include/sys/signal.h +259 -0
  150. package/sdk/ios/wasm/include/sys/socket.h +8 -0
  151. package/sdk/ios/wasm/include/sys/types.h +14 -0
  152. package/sdk/ios/wasm/include/sys/ucontext.h +1 -0
  153. package/sdk/ios/wasm/include/sys/uio.h +11 -0
  154. package/sdk/ios/wasm/include/sys/wait.h +89 -0
  155. package/sdk/ios/wasm/include/time.h +8 -0
  156. package/sdk/ios/wasm/include/unistd.h +17 -0
  157. package/src/bridge-contract.ts +2 -0
  158. package/src/chromium-admission.ts +10 -5
  159. package/src/device-catalog.ts +4 -4
  160. package/src/host/fetch-proxy-handler.ts +20 -0
  161. package/src/metro-plugin.ts +5 -2
  162. package/src/nitro-adapter.lock.json +6 -6
  163. package/src/nitro-compile.ts +63 -2
  164. package/src/numbered-lock.ts +72 -0
  165. package/src/react-native-coverage/capability-reference-resolution.ts +62 -5
  166. package/src/react-native-coverage/capability-source-references.ts +50 -13
  167. package/src/react-native-coverage/native-source-credit.ts +126 -0
  168. package/src/react-native-coverage/native-source-ranges-file.ts +38 -0
  169. package/src/react-native-coverage/native-surface.ts +49 -0
  170. package/src/react-native-coverage/verified-reach.ts +22 -2
  171. package/src/runtime-assets.ts +17 -0
  172. package/src/swift-compile.ts +84 -48
  173. package/src/swift-coverage/indexing.ts +17 -1
  174. package/src/swift-coverage/sdk.ts +71 -0
  175. package/src/swift-coverage/source.ts +74 -2
  176. package/src/swift-coverage/types.ts +6 -0
  177. package/src/swift-distribution.lock.json +12 -12
  178. package/src/swift-host.ts +133 -14
  179. package/src/swift-objc-compile.ts +6 -21
  180. package/src/swift-objc-metadata.ts +2 -8
  181. package/src/swift-objc-platform.ts +53 -0
  182. package/src/swift-objc-standin.ts +45 -1
  183. package/src/swift-package-manifest.ts +48 -3
  184. package/src/swift-package.ts +59 -9
  185. package/src/swift-packages.ts +157 -44
  186. package/src/swift-source-pods.ts +288 -0
  187. package/src/swift-toolchain.ts +32 -10
  188. package/src/vite-plugin-one.ts +5 -4
  189. package/src/worker-system-chunks.ts +7 -1
  190. package/src/xcode-project.ts +40 -11
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-test-args.ts
4
4
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (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.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -2355,7 +2355,7 @@ var import_node_module = require("node:module");
2355
2355
  var import_node_path2 = require("node:path");
2356
2356
 
2357
2357
  // runtime-companion.json
2358
- var runtime_companion_default = { abi: 1, sha256: "24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8", file: "node/cli-24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8.cjs" };
2358
+ var runtime_companion_default = { abi: 1, sha256: "0aa1bb93377f2ed084f869ab161285ff9e1c638510065738c97f0cbe806bb630", file: "node/cli-0aa1bb93377f2ed084f869ab161285ff9e1c638510065738c97f0cbe806bb630.cjs" };
2359
2359
 
2360
2360
  // src/runtime-assets.ts
2361
2361
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -6021,7 +6021,7 @@ function readChromiumQueue(deps, verified, own) {
6021
6021
  "chromium-admission"
6022
6022
  );
6023
6023
  fs5.mkdirSync(dir, { recursive: true });
6024
- const limit = Math.max(2, Math.floor(os4.cpus().length / 3));
6024
+ const limit = Math.max(2, Math.floor(os4.cpus().length / 2));
6025
6025
  const live = (entry) => {
6026
6026
  const match = /^(\d+)-(\d+)-/.exec(entry);
6027
6027
  if (!match) return false;
@@ -8649,7 +8649,9 @@ async function dispatchTapAtSootsimPoint(page, point, token) {
8649
8649
  result = await window.__sootsimTest.activatePressAt(x, y, nodeId);
8650
8650
  }
8651
8651
  }
8652
- if (result?.ok !== true) {
8652
+ const tap2 = result?.tap;
8653
+ const delivered = typeof tap2 === "object" && tap2 !== null && "hit" in tap2 && tap2.hit === true && !("requestedTargetMatched" in tap2 && tap2.requestedTargetMatched === false);
8654
+ if (result?.ok !== true && !delivered) {
8653
8655
  throw new Error(`element tap was refused: ${JSON.stringify(result)}`);
8654
8656
  }
8655
8657
  return;
@@ -23,6 +23,20 @@ module.exports = class PeachEnvironment extends TestEnvironment {
23
23
  if (this.stopped) this.controller.signal.throwIfAborted()
24
24
  if (this.releaseAdmission) return
25
25
  this.controller = new AbortController()
26
+ if (process.env.PEACH_LEG_HOLDS_CHROMIUM_SLOT === '1') {
27
+ // the conformance runner holds this file's slot for the whole leg;
28
+ // share it instead of taking a second ticket from the host queue.
29
+ this.releaseAdmission = () => {}
30
+ const signal = this.controller.signal
31
+ this.global.__peachChromiumAdmission = {
32
+ signal,
33
+ acquire: async () => {
34
+ signal.throwIfAborted()
35
+ return () => {}
36
+ },
37
+ }
38
+ return
39
+ }
26
40
  this.releaseAdmission = await reserveChromiumAdmission(this.controller.signal)
27
41
  this.controller.signal.throwIfAborted()
28
42
  const signal = this.controller.signal
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1684 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;