peachsim 0.1.2172 → 0.1.2175
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/cli/bridge-flow-runner.ts +6 -0
- package/cli/commands/control.ts +5 -0
- package/cli/commands/flow.ts +4 -1
- package/cli/commands/inspect/settling.ts +3 -3
- package/cli/commands/shell-url.ts +12 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- 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 +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +54 -26
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +4 -4
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +35 -15
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +46 -24
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +5 -5
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2 -2
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +4 -4
- package/dist-lib/sdk.mjs +4 -4
- package/dist-lib/skills.cjs +66 -27
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2 -2
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/text-nested.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/text-paint.d.ts +1 -0
- package/package.json +1 -1
- package/src/expo-native-workspace.ts +37 -11
- package/src/nitro-adapter.lock.json +253 -253
- package/src/nitro-superset.lock.json +4 -4
- package/src/one-sdk-bundle.ts +3 -3
- package/src/swift-distribution.lock.json +11 -11
- package/src/turbo-bundle.ts +14 -1
- package/src/turbo-compile.ts +5 -0
- package/src/turbo-runtime.lock.json +23 -23
- package/src/vite-plugin.ts +235 -82
|
@@ -2608,6 +2608,12 @@ export class SootSimBridgeFlowRunner {
|
|
|
2608
2608
|
})()`)
|
|
2609
2609
|
if (describeJson) write('describe.json', JSON.stringify(describeJson, null, 2))
|
|
2610
2610
|
|
|
2611
|
+
// every animation the settle check can name, with its kind, priority and visibility
|
|
2612
|
+
const animations = await safeEval<unknown>(
|
|
2613
|
+
`(async () => await window.__sootsimTest?.listAnimations?.())()`,
|
|
2614
|
+
)
|
|
2615
|
+
if (animations) write('animations.json', JSON.stringify(animations, null, 2))
|
|
2616
|
+
|
|
2611
2617
|
// 4. accessibility tree (flat text — what voiceover would read)
|
|
2612
2618
|
const a11y = await safeEval<string>(
|
|
2613
2619
|
`(async () => await window.__sootsimTest?.dumpAccessibilityTree?.(20))()`,
|
package/cli/commands/control.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { getCliVersion } from '../../src/cli-version'
|
|
|
16
16
|
import {
|
|
17
17
|
applyPeachConfigToUrl,
|
|
18
18
|
mergePeachConfig,
|
|
19
|
+
readNativeRenderer,
|
|
19
20
|
readPeachConfigFromSearchParams,
|
|
20
21
|
type PeachConfig,
|
|
21
22
|
} from '../../src/config'
|
|
@@ -1429,6 +1430,7 @@ async function openSim(
|
|
|
1429
1430
|
'--bundle-origin',
|
|
1430
1431
|
'--project-root',
|
|
1431
1432
|
'--app-fonts-dir',
|
|
1433
|
+
'--native-renderer',
|
|
1432
1434
|
'--replace',
|
|
1433
1435
|
'--remap',
|
|
1434
1436
|
'--driver',
|
|
@@ -2016,6 +2018,9 @@ async function openSim(
|
|
|
2016
2018
|
const buildShellUrlOpts: BuildShellUrlOptions = {
|
|
2017
2019
|
bundleOriginOverride: args.find((_, i) => args[i - 1] === '--bundle-origin'),
|
|
2018
2020
|
appFontsDir: args.find((_, i) => args[i - 1] === '--app-fonts-dir'),
|
|
2021
|
+
nativeRenderer: readNativeRenderer(
|
|
2022
|
+
args.find((_, i) => args[i - 1] === '--native-renderer'),
|
|
2023
|
+
),
|
|
2019
2024
|
hot: hotMode,
|
|
2020
2025
|
hostDriver: driverId === 'desktop' ? 'desktop' : undefined,
|
|
2021
2026
|
device: deviceArg,
|
package/cli/commands/flow.ts
CHANGED
|
@@ -71,6 +71,7 @@ const FLOW_BOOLEAN_FLAGS = [
|
|
|
71
71
|
const FLOW_VALUE_FLAGS = [
|
|
72
72
|
'--app',
|
|
73
73
|
'--app-fonts-dir',
|
|
74
|
+
'--native-renderer',
|
|
74
75
|
'--out',
|
|
75
76
|
'--base-url',
|
|
76
77
|
'--device',
|
|
@@ -610,6 +611,8 @@ flow extension:
|
|
|
610
611
|
if (iosTarget) openArgs.push('--ios-target', iosTarget)
|
|
611
612
|
const appFontsDir = getFlag('--app-fonts-dir')
|
|
612
613
|
if (appFontsDir) openArgs.push('--app-fonts-dir', appFontsDir)
|
|
614
|
+
const nativeRenderer = getFlag('--native-renderer')
|
|
615
|
+
if (nativeRenderer) openArgs.push('--native-renderer', nativeRenderer)
|
|
613
616
|
openArgs.push(...replaceArgs)
|
|
614
617
|
openArgs.push(...remapArgs)
|
|
615
618
|
if (effectiveOpenInNewSim) {
|
|
@@ -987,7 +990,7 @@ flow extension:
|
|
|
987
990
|
failureBundleDir = bundleDir
|
|
988
991
|
console.log(` failure bundle: ${bundleDir}`)
|
|
989
992
|
console.log(
|
|
990
|
-
` (contents: screenshot.png, describe.json, a11y.txt, tree.txt, console.json, error.json)`,
|
|
993
|
+
` (contents: screenshot.png, describe.json, animations.json, a11y.txt, tree.txt, console.json, error.json)`,
|
|
991
994
|
)
|
|
992
995
|
} catch (bundleErr) {
|
|
993
996
|
// fall back to the bare screenshot if the full bundle blew up —
|
|
@@ -687,7 +687,7 @@ export async function waitForSootsimIdle({
|
|
|
687
687
|
// after that work drains, iOS's 3 s pixel phase may accept two equal
|
|
688
688
|
// native TreeNodes while paint-only playback continues. overlap
|
|
689
689
|
// hierarchy reads so neither the gesture nor screenshot deadline grows.
|
|
690
|
-
const maestroStill = snapshot.screenPixels !== null && !snapshot.workerBusy && !snapshot.webViewStarting &&
|
|
690
|
+
const maestroStill = snapshot.screenPixels !== null && !snapshot.workerBusy && snapshot.pendingFetches === 0 && snapshot.requestInFlight === 0 && !snapshot.webViewStarting &&
|
|
691
691
|
!snapshot.animating && !snapshot.shellAnimating && !snapshot.layoutDirty && (
|
|
692
692
|
!screenChanged || (clockNow() - start >= 3000 &&
|
|
693
693
|
hierarchyUnchanged(snapshot.nativeHierarchy, lastNativeHierarchy))
|
|
@@ -765,14 +765,14 @@ export async function waitForSootsimIdle({
|
|
|
765
765
|
if (!maestro && last.layoutDirty) blockers.push('layout still dirty')
|
|
766
766
|
if (!maestro && last.appCommits !== null && report.appCommits !== null && last.appCommits !== report.appCommits) blockers.push('layout commits still landing')
|
|
767
767
|
if (!maestro && last.nodeCount !== null && report.nodeCount !== null && last.nodeCount !== report.nodeCount) blockers.push('node count still changing')
|
|
768
|
-
if (
|
|
768
|
+
if (last.pendingFetches > 0) blockers.push(last.pendingFetches + ' image fetches pending')
|
|
769
769
|
if (last.workerBusy) blockers.push('a render worker too busy to report')
|
|
770
770
|
if (last.webViewStarting) blockers.push(last.webViewBlocker || 'webView still starting')
|
|
771
771
|
if (!maestro && last.layout !== report.layout) blockers.push('layout still changing')
|
|
772
772
|
if (maestro && !hierarchyUnchanged(last.nativeHierarchy, report.nativeHierarchy)) blockers.push(last.nativeHierarchy === null ? 'native accessibility hierarchy unavailable' : 'native accessibility hierarchy still changing')
|
|
773
773
|
if (paintStill && !last.screenPixels) blockers.push('screen pixels unavailable')
|
|
774
774
|
else if (paintStill && !screenUnchanged(last.screenPixels, report.screenPixels)) blockers.push('screen pixels still changing')
|
|
775
|
-
if (
|
|
775
|
+
if (last.requestInFlight > 0) blockers.push(last.requestInFlight + ' requests in flight')
|
|
776
776
|
else if (!maestro && last.requestTotal !== report.requestTotal) blockers.push('new requests issued')
|
|
777
777
|
if (polls < 2) blockers.push('sim too busy to poll twice')
|
|
778
778
|
// the last read is still: motion ended too near the deadline for the
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
mergePeachConfig,
|
|
13
13
|
PEACH_CONFIG_QUERY_PARAM,
|
|
14
14
|
readPeachConfigFromSearchParams,
|
|
15
|
+
type NativeRenderer,
|
|
15
16
|
} from '../../src/config'
|
|
16
17
|
import {
|
|
17
18
|
resolveConnectionInput,
|
|
@@ -496,6 +497,8 @@ export interface BuildShellUrlOptions {
|
|
|
496
497
|
// a directory of font files to register when the app has no project to scan,
|
|
497
498
|
// as a stored bundle replay does.
|
|
498
499
|
appFontsDir?: string
|
|
500
|
+
// the architecture of an app with no project to read it from, as a stored bundle replay
|
|
501
|
+
nativeRenderer?: NativeRenderer
|
|
499
502
|
// manifest and asset origin provided by an authenticated recorder proxy.
|
|
500
503
|
bundleOriginOverride?: string
|
|
501
504
|
// marks native host windows so the bridge can reuse a CLI-opened desktop sim.
|
|
@@ -794,6 +797,15 @@ export async function buildShellUrl(
|
|
|
794
797
|
)
|
|
795
798
|
const expoStamped = new URL(stamped)
|
|
796
799
|
expoStamped.searchParams.delete('nativeAppIdentity')
|
|
800
|
+
if (opts.nativeRenderer !== undefined)
|
|
801
|
+
expoStamped.searchParams.set(
|
|
802
|
+
PEACH_CONFIG_QUERY_PARAM,
|
|
803
|
+
JSON.stringify(
|
|
804
|
+
mergePeachConfig(readPeachConfigFromSearchParams(expoStamped.searchParams), {
|
|
805
|
+
nativeRenderer: opts.nativeRenderer,
|
|
806
|
+
}),
|
|
807
|
+
),
|
|
808
|
+
)
|
|
797
809
|
expoStamped.searchParams.delete(ANDROID_ROOT_MODULE_QUERY_PARAM)
|
|
798
810
|
expoStamped.searchParams.delete('appBundleResources')
|
|
799
811
|
if (project) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2175 | (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.2175 | (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.2175 | (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.2175 | (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.2175 | (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.2175 | (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,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2175 | (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.2175 | (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.2175 | (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;
|