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.
- package/README.md +4 -2
- package/detox/index.ts +20 -1
- package/dist-lib/agent-daemon-client.cjs +2 -2
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +8196 -8408
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +17 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-B27MTHKJ.mjs → acorn-D5YJOCIH.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-SJFNKW3W.mjs → chunk-2WXLADPB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4U7IGWPB.mjs → chunk-AAUTS54C.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PRZI3CFF.mjs → chunk-CHX6MVMJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-R5FNLCBO.mjs → chunk-COWKF3A3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QECVPSP3.mjs → chunk-DGMP72J3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6HFWZJ6C.mjs → chunk-DSGMAFCS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ADE23YGG.mjs → chunk-HBINLWOI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X6UKJ5AX.mjs → chunk-IL72GVD2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6JGALQD5.mjs → chunk-MYQU622L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EATI62W3.mjs → chunk-NPSA7CAZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-H6QIEJRC.mjs → chunk-NZRT4DMX.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-ZXNBC3PZ.mjs → chunk-PTLTHUGX.mjs} +2056 -1922
- package/dist-lib/esm-chunks/{chunk-HP7DHONL.mjs → chunk-Q3B6RI26.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-D4Z36DQQ.mjs → chunk-QUCZFE4Q.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5CZQZKYU.mjs → chunk-QZBKRPVC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RVMUQQWC.mjs → chunk-S6SCCQXW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HIK3VREC.mjs → chunk-VIB2KS3Z.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-WQISIGIX.mjs → chunk-ZTXYR22R.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-ZOI5PO4E.mjs → metro-layout-parser-BIIH3PF6.mjs} +3 -3
- package/dist-lib/expo-swift-bundle.cjs +5592 -5769
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +6343 -6508
- package/dist-lib/host/fetch-proxy-handler.cjs +13897 -13931
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +2 -2
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +14 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +784 -536
- package/dist-lib/native-app-identity-project.mjs +543 -408
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +72 -70
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +222 -186
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +7 -7
- package/dist-lib/skills.cjs +7590 -7767
- package/dist-lib/swift-compile.cjs +1994 -1922
- package/dist-lib/swift-compile.mjs +8 -8
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-toolchain.cjs +3 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +14770 -0
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +2790 -0
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/jiti.cjs +32732 -0
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/prism.wasm +0 -0
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +3710 -0
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/package.json +25 -6
- package/src/expo-discovery-cache.ts +9 -45
- package/src/expo-native-compiler-digest.ts +8 -0
- package/src/expo-native-prebuilt.ts +1 -10
- package/src/expo-native-workspace.ts +5 -120
- package/src/expo-pod-prebuilt.ts +1 -1
- package/src/expo-swift-host.ts +48 -35
- package/src/installed-native-libraries.ts +10 -20
- package/src/jump-to-source-native.ts +1 -0
- package/src/oxc-parser-peer.ts +12 -0
- package/src/pod-graph-specifications.ts +11 -0
- package/src/pods-install.ts +10 -7
- package/src/podspec-cocoapods.ts +8 -3
- package/src/podspec-prism.ts +7 -1
- package/src/podspec-sources.ts +19 -15
- package/src/swift-clang-type-ownership.ts +118 -0
- package/src/swift-compile.ts +42 -10
- package/src/swift-guest-image-ledger.ts +48 -0
- package/src/swift-guest-link.ts +11 -1
- package/src/swift-host.ts +5 -8
- package/src/swift-packages.ts +0 -5
- package/src/swift-toolchain.ts +1 -1
- package/src/xcode-project.ts +64 -46
- package/src/portable-expo-contract.ts +0 -108
- package/src/portable-expo-workspace.ts +0 -100
- 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,
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
2
|
-
import "./esm-chunks/chunk-
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
18
|
-
import "./esm-chunks/chunk-
|
|
19
|
-
import "./esm-chunks/chunk-
|
|
20
|
-
import "./esm-chunks/chunk-
|
|
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.
|
|
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.
|
|
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-
|
|
17
|
-
import "./esm-chunks/chunk-
|
|
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,
|