peachsim 0.1.2440 → 0.1.2442

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 (146) hide show
  1. package/README.md +4 -2
  2. package/detox/index.ts +20 -1
  3. package/dist-lib/agent-daemon-client.cjs +2 -2
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/attached-projects.cjs +1 -1
  6. package/dist-lib/auth/shared-session.cjs +1 -1
  7. package/dist-lib/backend-origin.cjs +1 -1
  8. package/dist-lib/beta.cjs +1 -1
  9. package/dist-lib/beta.mjs +2 -2
  10. package/dist-lib/bridge-constants.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.mjs +5 -5
  13. package/dist-lib/bridge-contract.cjs +1 -1
  14. package/dist-lib/bridge-contract.mjs +3 -3
  15. package/dist-lib/bundle-channel.cjs +8196 -8408
  16. package/dist-lib/capture-contract.cjs +1 -1
  17. package/dist-lib/capture-contract.mjs +3 -3
  18. package/dist-lib/cloud-contract.cjs +1 -1
  19. package/dist-lib/cloud-contract.mjs +3 -3
  20. package/dist-lib/cloud-test-args.cjs +1 -1
  21. package/dist-lib/cloud-test-args.mjs +2 -2
  22. package/dist-lib/cloud.cjs +1 -1
  23. package/dist-lib/cloud.mjs +7 -7
  24. package/dist-lib/config.cjs +1 -1
  25. package/dist-lib/config.mjs +5 -5
  26. package/dist-lib/detox/index.cjs +17 -5
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/esm-chunks/{acorn-B27MTHKJ.mjs → acorn-D5YJOCIH.mjs} +3 -3
  29. package/dist-lib/esm-chunks/{chunk-SJFNKW3W.mjs → chunk-2WXLADPB.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-4U7IGWPB.mjs → chunk-AAUTS54C.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-PRZI3CFF.mjs → chunk-CHX6MVMJ.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-R5FNLCBO.mjs → chunk-COWKF3A3.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-QECVPSP3.mjs → chunk-DGMP72J3.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-6HFWZJ6C.mjs → chunk-DSGMAFCS.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-ADE23YGG.mjs → chunk-HBINLWOI.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-X6UKJ5AX.mjs → chunk-IL72GVD2.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-6JGALQD5.mjs → chunk-MYQU622L.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-EATI62W3.mjs → chunk-NPSA7CAZ.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-H6QIEJRC.mjs → chunk-NZRT4DMX.mjs} +2 -2
  40. package/dist-lib/esm-chunks/{chunk-ZXNBC3PZ.mjs → chunk-PTLTHUGX.mjs} +2056 -1922
  41. package/dist-lib/esm-chunks/{chunk-HP7DHONL.mjs → chunk-Q3B6RI26.mjs} +3 -3
  42. package/dist-lib/esm-chunks/{chunk-D4Z36DQQ.mjs → chunk-QUCZFE4Q.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-5CZQZKYU.mjs → chunk-QZBKRPVC.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-RVMUQQWC.mjs → chunk-S6SCCQXW.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-HIK3VREC.mjs → chunk-VIB2KS3Z.mjs} +4 -4
  46. package/dist-lib/esm-chunks/{chunk-WQISIGIX.mjs → chunk-ZTXYR22R.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{metro-layout-parser-ZOI5PO4E.mjs → metro-layout-parser-BIIH3PF6.mjs} +3 -3
  48. package/dist-lib/expo-swift-bundle.cjs +5592 -5769
  49. package/dist-lib/expo-swift-metadata.cjs +1 -1
  50. package/dist-lib/expo-swift-metadata.mjs +7 -7
  51. package/dist-lib/home-paths.cjs +1 -1
  52. package/dist-lib/host/bridge-host.cjs +6343 -6508
  53. package/dist-lib/host/fetch-proxy-handler.cjs +13897 -13931
  54. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  55. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  56. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  57. package/dist-lib/host/websocket-proxy.cjs +2 -2
  58. package/dist-lib/index.cjs +2 -2
  59. package/dist-lib/jump-to-source-babel.cjs +1 -1
  60. package/dist-lib/jump-to-source-native.cjs +14 -1
  61. package/dist-lib/kotlin-host.cjs +1 -1
  62. package/dist-lib/menu.cjs +1 -1
  63. package/dist-lib/menu.mjs +3 -3
  64. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  65. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  66. package/dist-lib/metro-production-bundle.cjs +1 -1
  67. package/dist-lib/metro-production-bundle.mjs +4 -4
  68. package/dist-lib/native-app-identity-project.cjs +784 -536
  69. package/dist-lib/native-app-identity-project.mjs +543 -408
  70. package/dist-lib/native-app-identity.cjs +1 -1
  71. package/dist-lib/native-app-identity.mjs +6 -6
  72. package/dist-lib/native-firebase-metadata.cjs +1 -1
  73. package/dist-lib/native-firebase-metadata.mjs +3 -3
  74. package/dist-lib/pdfium-raster.cjs +1 -1
  75. package/dist-lib/pdfium-raster.mjs +2 -2
  76. package/dist-lib/plist.cjs +1 -1
  77. package/dist-lib/plist.mjs +3 -3
  78. package/dist-lib/profiles.cjs +1 -1
  79. package/dist-lib/public-brand.cjs +1 -1
  80. package/dist-lib/public-origins-lib-esm.json +72 -70
  81. package/dist-lib/public-origins-lib-static.json +1 -1
  82. package/dist-lib/public-origins-lib.json +222 -186
  83. package/dist-lib/react-native-host-modules.cjs +1 -1
  84. package/dist-lib/react-native-host-modules.mjs +2 -2
  85. package/dist-lib/reap-browser.cjs +1 -1
  86. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  87. package/dist-lib/sdk.cjs +1 -1
  88. package/dist-lib/sdk.mjs +7 -7
  89. package/dist-lib/skills.cjs +7590 -7767
  90. package/dist-lib/swift-compile.cjs +1994 -1922
  91. package/dist-lib/swift-compile.mjs +8 -8
  92. package/dist-lib/swift-package.cjs +1 -1
  93. package/dist-lib/swift-package.mjs +3 -3
  94. package/dist-lib/swift-submit.cjs +1 -1
  95. package/dist-lib/swift-submit.mjs +5 -5
  96. package/dist-lib/swift-toolchain.cjs +3 -1
  97. package/dist-lib/swift.cjs +1 -1
  98. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  99. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +14770 -0
  100. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +2790 -0
  101. package/dist-lib/vendor/acorn.cjs +1 -1
  102. package/dist-lib/vendor/bplist-parser.cjs +1 -1
  103. package/dist-lib/vendor/ignore.cjs +1 -1
  104. package/dist-lib/vendor/jiti.cjs +32732 -0
  105. package/dist-lib/vendor/magic-string.cjs +1 -1
  106. package/dist-lib/vendor/plist.cjs +1 -1
  107. package/dist-lib/vendor/prism.wasm +0 -0
  108. package/dist-lib/vendor/smol-toml.cjs +1 -1
  109. package/dist-lib/vendor/stream-json.cjs +1 -1
  110. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase.cjs +1 -1
  115. package/dist-lib/vendor/terser.cjs +1 -1
  116. package/dist-lib/vendor/valibot.cjs +1 -1
  117. package/dist-lib/vendor/ws.cjs +3710 -0
  118. package/dist-lib/vendor/zod.cjs +1 -1
  119. package/dist-lib/worklet-executable.cjs +1 -1
  120. package/dist-lib/worklet-executable.mjs +3 -3
  121. package/package.json +25 -6
  122. package/src/expo-discovery-cache.ts +9 -45
  123. package/src/expo-native-compiler-digest.ts +8 -0
  124. package/src/expo-native-prebuilt.ts +1 -10
  125. package/src/expo-native-workspace.ts +5 -120
  126. package/src/expo-pod-prebuilt.ts +1 -1
  127. package/src/expo-swift-host.ts +48 -35
  128. package/src/installed-native-libraries.ts +10 -20
  129. package/src/jump-to-source-native.ts +1 -0
  130. package/src/oxc-parser-peer.ts +12 -0
  131. package/src/pod-graph-specifications.ts +11 -0
  132. package/src/pods-install.ts +10 -7
  133. package/src/podspec-cocoapods.ts +8 -3
  134. package/src/podspec-prism.ts +7 -1
  135. package/src/podspec-sources.ts +19 -15
  136. package/src/swift-clang-type-ownership.ts +118 -0
  137. package/src/swift-compile.ts +42 -10
  138. package/src/swift-guest-image-ledger.ts +48 -0
  139. package/src/swift-guest-link.ts +11 -1
  140. package/src/swift-host.ts +5 -8
  141. package/src/swift-packages.ts +0 -5
  142. package/src/swift-toolchain.ts +1 -1
  143. package/src/xcode-project.ts +64 -46
  144. package/src/portable-expo-contract.ts +0 -108
  145. package/src/portable-expo-workspace.ts +0 -100
  146. package/src/prepared-xcode-phases.ts +0 -194
package/README.md CHANGED
@@ -491,7 +491,8 @@ preset configures it automatically.
491
491
  Runtime Fragment aliases are excluded before element creation. Component tag
492
492
  expressions are evaluated once, and ordinary components retain their locations.
493
493
 
494
- For One's Rolldown native bundler, use the native transform in `vite.config.ts`:
494
+ For One's Rolldown native bundler, install `oxc-parser` beside `peachsim` and
495
+ use the native transform in `vite.config.ts`:
495
496
 
496
497
  ```ts
497
498
  import { jumpToSourceNativePlugin } from 'peachsim/jump-to-source-native'
@@ -600,7 +601,8 @@ fingerprinting treat each as zero dependencies and reject malformed arguments.
600
601
 
601
602
  Peach ships a drop-in Detox driver. Existing Detox test files
602
603
  (`import { by, element, expect, device } from 'detox'`) run against Peach with
603
- no code changes — just add one line to your jest config:
604
+ no code changes. Install `playwright-core` beside `peachsim`, then add one line
605
+ to your jest config:
604
606
 
605
607
  ```js
606
608
  // jest config
package/detox/index.ts CHANGED
@@ -7,12 +7,12 @@ import { execFile } from 'node:child_process'
7
7
  import { createRequire } from 'node:module'
8
8
  import { promisify } from 'node:util'
9
9
  import * as path from 'path'
10
- import { chromium } from 'playwright-core'
11
10
  import { waitForSootsimIdle as waitForRuntimeIdle } from '../cli/commands/inspect/settling'
12
11
  import { createBridge } from '../cli/ws-bridge'
13
12
  import { resolveSootsimBridgePortForHttpPort } from '../src/bridge-constants'
14
13
  import { getCliRuntime } from '../src/cli-runtime.ts'
15
14
  import { awaitStampedExpoSwiftReady } from '../src/expo-swift-ready'
15
+ import { isRecord } from '../src/is-record'
16
16
  import { SOOTSIM_SHELL_COMMAND_NAME } from '../src/menu'
17
17
  import { pollUntil } from '../src/poll-until'
18
18
  import {
@@ -127,6 +127,24 @@ const SCREENSHOT_DIR =
127
127
  process.env.PEACH_SCREENSHOT_DIR ||
128
128
  path.join(process.cwd(), 'test', 'detox-driver', 'screenshots', String(process.pid))
129
129
 
130
+ // playwright-core is an optional peer of the published package, needed only
131
+ // once a run drives the browser.
132
+ async function loadChromium() {
133
+ try {
134
+ return (await import('playwright-core')).chromium
135
+ } catch (error) {
136
+ if (
137
+ !isRecord(error) ||
138
+ (error.code !== 'MODULE_NOT_FOUND' && error.code !== 'ERR_MODULE_NOT_FOUND')
139
+ )
140
+ throw error
141
+ throw new Error(
142
+ 'Peach Detox drives Chromium through playwright-core. Install it in this project: npm install -D playwright-core',
143
+ { cause: error },
144
+ )
145
+ }
146
+ }
147
+
130
148
  // shared state -- playwright page and browser
131
149
  let _browser: Browser | null = null
132
150
  let _browserLaunch: Promise<void> | null = null
@@ -2124,6 +2142,7 @@ export const device = {
2124
2142
  acquire: () => reserveChromiumAdmission(signal),
2125
2143
  }
2126
2144
  _browserLaunch = (async () => {
2145
+ const chromium = await loadChromium()
2127
2146
  const executablePath = chromium.executablePath()
2128
2147
  if (!fs.existsSync(executablePath)) {
2129
2148
  const requireDriver = createRequire(path.join(__dirname, 'index.cjs'))
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (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;
@@ -41,7 +41,7 @@ __export(agent_daemon_client_exports, {
41
41
  module.exports = __toCommonJS(agent_daemon_client_exports);
42
42
  var import_node_child_process2 = require("node:child_process");
43
43
  var import_node_net = __toESM(require("node:net"), 1);
44
- var import_ws = require("ws");
44
+ var import_ws = require("peachsim/vendor/ws");
45
45
 
46
46
  // src/agent-sessions.ts
47
47
  var import_node_child_process = require("node:child_process");
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (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.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (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.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (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.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (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/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (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/beta.mjs CHANGED
@@ -1,5 +1,5 @@
1
- /*! peach v0.1.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./esm-chunks/chunk-4U7IGWPB.mjs";
1
+ /*! peach v0.1.2442 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./esm-chunks/chunk-AAUTS54C.mjs";
3
3
 
4
4
  // src/beta.ts
5
5
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (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.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (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.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  BridgeInputError,
4
4
  SEMANTIC_WAIT_MAX_TIMEOUT_MS,
@@ -14,10 +14,10 @@ import {
14
14
  parseSemanticWaitOptions,
15
15
  parseStateOptions,
16
16
  parseTapTarget
17
- } from "./esm-chunks/chunk-HP7DHONL.mjs";
18
- import "./esm-chunks/chunk-6HFWZJ6C.mjs";
19
- import "./esm-chunks/chunk-WQISIGIX.mjs";
20
- import "./esm-chunks/chunk-4U7IGWPB.mjs";
17
+ } from "./esm-chunks/chunk-Q3B6RI26.mjs";
18
+ import "./esm-chunks/chunk-DSGMAFCS.mjs";
19
+ import "./esm-chunks/chunk-ZTXYR22R.mjs";
20
+ import "./esm-chunks/chunk-AAUTS54C.mjs";
21
21
  export {
22
22
  BridgeInputError,
23
23
  SEMANTIC_WAIT_MAX_TIMEOUT_MS,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (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.2440 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2442 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  HEADLESS_TENANT_FETCH_HUNG_MARKER,
4
4
  REFUSED_PERFORM_STEP_TYPES,
@@ -13,8 +13,8 @@ import {
13
13
  readyProbeHasContent,
14
14
  readyProbeIsReady,
15
15
  refusedPerformStepReason
16
- } from "./esm-chunks/chunk-6HFWZJ6C.mjs";
17
- import "./esm-chunks/chunk-4U7IGWPB.mjs";
16
+ } from "./esm-chunks/chunk-DSGMAFCS.mjs";
17
+ import "./esm-chunks/chunk-AAUTS54C.mjs";
18
18
  export {
19
19
  HEADLESS_TENANT_FETCH_HUNG_MARKER,
20
20
  REFUSED_PERFORM_STEP_TYPES,