peachsim 0.1.1673 → 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.
- package/cli/commands/control.ts +13 -1
- package/cli/commands/coverage-swift.ts +83 -27
- package/cli/commands/coverage.ts +219 -20
- package/cli/commands/detect.ts +10 -6
- package/cli/commands/inspect/core.ts +2 -0
- package/cli/commands/inspect/settling.ts +37 -4
- package/cli/commands/inspect/wait-ready.ts +7 -0
- package/cli/outbound-endpoints.ts +12 -0
- package/detox/index.ts +11 -1
- package/detox/jest-environment.cjs +14 -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 +3299 -1665
- 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 +43 -8
- package/dist-lib/detox/jest-environment.cjs +14 -0
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +2432 -1128
- 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 +2908 -1601
- package/dist-lib/host/fetch-proxy-handler.cjs +22 -6
- 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 +1941 -742
- 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 +6215 -4283
- package/dist-lib/native-app-identity-project.cjs +31 -6
- package/dist-lib/native-app-identity-project.mjs +31 -6
- 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/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 -23
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +134 -78
- 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 +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +39 -5
- package/dist-lib/sdk.mjs +39 -5
- package/dist-lib/skills.cjs +3637 -2168
- package/dist-lib/swift-compile.cjs +496 -352
- package/dist-lib/swift-compile.mjs +494 -350
- package/dist-lib/swift-package.cjs +58 -9
- package/dist-lib/swift-package.mjs +57 -9
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +26 -11
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2443 -1134
- package/dist-lib/vite.cjs +1907 -763
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +9 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +11 -3
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +6 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +10 -1
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +69 -2
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +44 -4
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFComposeAssistantViewController.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeControllerDeferredAction.h +14 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailDraft.h +24 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController+UPI.h +31 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +169 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.h +13 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Modules/module.modulemap +11 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +10 -0
- package/sdk/ios/usr/include/_ctype.h +388 -0
- package/sdk/ios/usr/include/_inttypes.h +296 -0
- package/sdk/ios/usr/include/_locale.h +83 -0
- package/sdk/ios/usr/include/_locale_posix2008.h +65 -0
- package/sdk/ios/usr/include/_time.h +207 -0
- package/sdk/ios/usr/include/arm/param.h +151 -0
- package/sdk/ios/usr/include/ctype.h +70 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +72 -6
- package/sdk/ios/usr/include/dlfcn.h +1 -2
- package/sdk/ios/usr/include/inttypes.h +35 -0
- package/sdk/ios/usr/include/locale.h +59 -0
- package/sdk/ios/usr/include/machine/param.h +42 -0
- package/sdk/ios/usr/include/net/if.h +1 -2
- package/sdk/ios/usr/include/peach/pthread.h +4 -4
- package/sdk/ios/usr/include/pthread/qos.h +304 -0
- package/sdk/ios/usr/include/runetype.h +118 -0
- package/sdk/ios/usr/include/setjmp.h +99 -0
- package/sdk/ios/usr/include/sys/_types/_clock_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ct_rune_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_fd_clr.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_copy.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_def.h +121 -0
- package/sdk/ios/usr/include/sys/_types/_fd_isset.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_set.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_setsize.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_zero.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_rune_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_time_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_wint_t.h +33 -0
- package/sdk/ios/usr/include/sys/cdefs.h +5 -0
- package/sdk/ios/usr/include/sys/param.h +235 -0
- package/sdk/ios/usr/include/sys/proc.h +1 -0
- package/sdk/ios/usr/include/sys/qos.h +151 -12
- package/sdk/ios/usr/include/time.h +67 -2
- package/sdk/ios/wasm/include/__typedef_sigset_t.h +7 -0
- package/sdk/ios/wasm/include/fcntl.h +11 -0
- package/sdk/ios/wasm/include/mach/machine/boolean.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/exception.h +5 -0
- package/sdk/ios/wasm/include/mach/machine/kern_return.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/processor_info.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/rpc.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/thread_state.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/thread_status.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_param.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_types.h +18 -0
- package/sdk/ios/wasm/include/machine/_types.h +153 -0
- package/sdk/ios/wasm/include/machine/endian.h +2 -0
- package/sdk/ios/wasm/include/machine/limits.h +2 -0
- package/sdk/ios/wasm/include/machine/types.h +30 -0
- package/sdk/ios/wasm/include/poll.h +8 -0
- package/sdk/ios/wasm/include/pthread.h +50 -0
- package/sdk/ios/wasm/include/signal.h +72 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +10 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_attr_t.h +7 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_t.h +7 -0
- package/sdk/ios/wasm/include/sys/mman.h +122 -0
- package/sdk/ios/wasm/include/sys/select.h +37 -0
- package/sdk/ios/wasm/include/sys/signal.h +259 -0
- package/sdk/ios/wasm/include/sys/socket.h +8 -0
- package/sdk/ios/wasm/include/sys/types.h +14 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +1 -0
- package/sdk/ios/wasm/include/sys/uio.h +11 -0
- package/sdk/ios/wasm/include/sys/wait.h +89 -0
- package/sdk/ios/wasm/include/time.h +8 -0
- package/sdk/ios/wasm/include/unistd.h +17 -0
- package/src/bridge-contract.ts +2 -0
- package/src/chromium-admission.ts +10 -5
- package/src/device-catalog.ts +4 -4
- package/src/host/fetch-proxy-handler.ts +20 -0
- package/src/host/rolldown-bundle-forward.ts +4 -1
- package/src/metro-plugin.ts +5 -2
- package/src/nitro-adapter.lock.json +6 -6
- package/src/nitro-compile.ts +63 -2
- package/src/numbered-lock.ts +72 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +62 -5
- package/src/react-native-coverage/capability-source-references.ts +50 -13
- package/src/react-native-coverage/native-source-credit.ts +126 -0
- package/src/react-native-coverage/native-source-ranges-file.ts +38 -0
- package/src/react-native-coverage/native-surface.ts +49 -0
- package/src/react-native-coverage/verified-reach.ts +22 -2
- package/src/runtime-assets.ts +17 -0
- package/src/swift-compile.ts +84 -47
- package/src/swift-coverage/indexing.ts +17 -1
- package/src/swift-coverage/sdk.ts +71 -0
- package/src/swift-coverage/source.ts +74 -2
- package/src/swift-coverage/types.ts +6 -0
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-host.ts +133 -14
- package/src/swift-objc-compile.ts +11 -22
- package/src/swift-objc-metadata.ts +2 -8
- package/src/swift-objc-platform.ts +53 -0
- package/src/swift-objc-standin.ts +49 -0
- package/src/swift-package-manifest.ts +48 -3
- package/src/swift-package.ts +85 -12
- package/src/swift-packages.ts +157 -44
- package/src/swift-source-pods.ts +288 -0
- package/src/swift-standins.ts +4 -1
- package/src/swift-toolchain.ts +32 -10
- package/src/vite-plugin-one.ts +5 -4
- package/src/worker-system-chunks.ts +7 -1
- package/src/xcode-project.ts +40 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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.
|
|
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;
|
|
@@ -67,7 +67,7 @@ function readChromiumQueue(deps, verified, own) {
|
|
|
67
67
|
"chromium-admission"
|
|
68
68
|
);
|
|
69
69
|
fs2.mkdirSync(dir, { recursive: true });
|
|
70
|
-
const limit = Math.max(2, Math.floor(os3.cpus().length /
|
|
70
|
+
const limit = Math.max(2, Math.floor(os3.cpus().length / 2));
|
|
71
71
|
const live = (entry) => {
|
|
72
72
|
const match = /^(\d+)-(\d+)-/.exec(entry);
|
|
73
73
|
if (!match) return false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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;
|
|
@@ -1004,6 +1004,7 @@ function waitReadyStatus(result, ready) {
|
|
|
1004
1004
|
externalError: probe?.externalError ?? "",
|
|
1005
1005
|
suppressedEntryError: probe?.suppressedEntryError ?? "",
|
|
1006
1006
|
errors: probe?.errors ?? 0,
|
|
1007
|
+
startup: probe?.startup,
|
|
1007
1008
|
bridgeError: result.error ?? "",
|
|
1008
1009
|
paintedAppContent: probe?.paintedAppContent ?? false,
|
|
1009
1010
|
treeQuietMs: probe?.treeQuietMs ?? 0,
|
|
@@ -2001,6 +2002,9 @@ async function waitForSootsimIdle({
|
|
|
2001
2002
|
hierarchy = null
|
|
2002
2003
|
}
|
|
2003
2004
|
const nodes = []
|
|
2005
|
+
// identity beside each geometry entry, from the rows already read,
|
|
2006
|
+
// so a changed layout can name the nodes that moved.
|
|
2007
|
+
const nodeRows = []
|
|
2004
2008
|
const LOADING_TEXT_REGEX = /^(creating webview|loading html|fetching bundle|waiting for first render|starting preview|loading simulator|fetching app code|waiting for native preview|starting design|loading canvas|fetching screens|painting the canvas|waiting for webview|waiting for preview|waiting for canvas|preview stalled)/i
|
|
2005
2009
|
const noteLoading = (state, text) => {
|
|
2006
2010
|
if (state?.busy === true) {
|
|
@@ -2021,7 +2025,9 @@ async function waitForSootsimIdle({
|
|
|
2021
2025
|
// subtree count by their own layout; the rest of the screen
|
|
2022
2026
|
// still catches the fling.
|
|
2023
2027
|
const abs = n.backgroundPlayback ? layout : n.absolute || n.absolutePosition || layout
|
|
2024
|
-
|
|
2028
|
+
const geometry = Math.round(abs.x) + ',' + Math.round(abs.y) + ',' + Math.round(layout.width)
|
|
2029
|
+
nodes.push(geometry)
|
|
2030
|
+
nodeRows.push([String(n.nodeId ?? nodes.length - 1), (n.type || '?') + (n.testId ? '#' + n.testId : ''), geometry])
|
|
2025
2031
|
}
|
|
2026
2032
|
noteLoading(
|
|
2027
2033
|
n.accessibilityState,
|
|
@@ -2033,7 +2039,9 @@ async function waitForSootsimIdle({
|
|
|
2033
2039
|
if (root) {
|
|
2034
2040
|
const walk = (n) => {
|
|
2035
2041
|
if (n.layout && n.layout.width > 0) {
|
|
2036
|
-
|
|
2042
|
+
const geometry = Math.round(n.layout.x) + ',' + Math.round(n.layout.y) + ',' + Math.round(n.layout.width)
|
|
2043
|
+
nodes.push(geometry)
|
|
2044
|
+
nodeRows.push([String(n.id ?? nodes.length - 1), (n.type || '?') + (n.props?.testID ? '#' + n.props.testID : ''), geometry])
|
|
2037
2045
|
}
|
|
2038
2046
|
noteLoading(
|
|
2039
2047
|
n.props?.accessibilityState,
|
|
@@ -2082,7 +2090,7 @@ async function waitForSootsimIdle({
|
|
|
2082
2090
|
pixelFrameToken = token
|
|
2083
2091
|
}
|
|
2084
2092
|
}
|
|
2085
|
-
return { layout: nodes.join(';'), nativeHierarchy, screenPixels, animating, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
2093
|
+
return { layout: nodes.join(';'), nodeRows, nativeHierarchy, screenPixels, animating, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
2086
2094
|
}
|
|
2087
2095
|
|
|
2088
2096
|
// how long generic background network is allowed to keep us waiting AFTER
|
|
@@ -2098,6 +2106,27 @@ async function waitForSootsimIdle({
|
|
|
2098
2106
|
const networkQuietGraceMs = 1200
|
|
2099
2107
|
let lastNativeHierarchy = null
|
|
2100
2108
|
let lastLayout = ''
|
|
2109
|
+
let lastNodeRows = []
|
|
2110
|
+
// what moved between the last two differing polls, bounded; names the
|
|
2111
|
+
// nodes behind "layout changed" without keeping any poll history.
|
|
2112
|
+
let lastLayoutChange = null
|
|
2113
|
+
const describeLayoutChange = (before, after) => {
|
|
2114
|
+
const previous = new Map(before.map(([key, label, geometry]) => [key, [label, geometry]]))
|
|
2115
|
+
const moved = []
|
|
2116
|
+
const added = []
|
|
2117
|
+
const short = (label, key) => String(label).slice(0, 48) + ' [' + String(key).slice(0, 24) + ']'
|
|
2118
|
+
for (const [key, label, geometry] of after) {
|
|
2119
|
+
const was = previous.get(key)
|
|
2120
|
+
previous.delete(key)
|
|
2121
|
+
if (!was) added.push(short(label, key) + ' ' + geometry)
|
|
2122
|
+
else if (was[1] !== geometry) moved.push(short(label, key) + ' ' + was[1] + '->' + geometry)
|
|
2123
|
+
}
|
|
2124
|
+
const removed = [...previous].map(([key, [label, geometry]]) => short(label, key) + ' ' + geometry)
|
|
2125
|
+
return {
|
|
2126
|
+
moved: moved.length, added: added.length, removed: removed.length,
|
|
2127
|
+
movedSample: moved.slice(0, 3), addedSample: added.slice(0, 3), removedSample: removed.slice(0, 3),
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2101
2130
|
let lastScreenPixels = null
|
|
2102
2131
|
let screenChangedPolls = 0
|
|
2103
2132
|
let lastRequestTotal = -1
|
|
@@ -2176,7 +2205,10 @@ async function waitForSootsimIdle({
|
|
|
2176
2205
|
if (snapshot.layoutDirty) dirtyPolls++
|
|
2177
2206
|
if (snapshot.animating || snapshot.shellAnimating) animatingPolls++
|
|
2178
2207
|
if (snapshot.webViewStarting) webViewStartingPolls++
|
|
2179
|
-
if (polls > 1 && snapshot.layout !== lastLayout)
|
|
2208
|
+
if (polls > 1 && snapshot.layout !== lastLayout) {
|
|
2209
|
+
layoutChangedPolls++
|
|
2210
|
+
lastLayoutChange = describeLayoutChange(lastNodeRows, snapshot.nodeRows)
|
|
2211
|
+
}
|
|
2180
2212
|
const screenChanged = paintStill && !screenUnchanged(snapshot.screenPixels, lastScreenPixels)
|
|
2181
2213
|
if (polls > 1 && screenChanged) screenChangedPolls++
|
|
2182
2214
|
const strictOk =
|
|
@@ -2243,6 +2275,7 @@ async function waitForSootsimIdle({
|
|
|
2243
2275
|
}
|
|
2244
2276
|
lastNativeHierarchy = snapshot.nativeHierarchy
|
|
2245
2277
|
lastLayout = snapshot.layout
|
|
2278
|
+
lastNodeRows = snapshot.nodeRows
|
|
2246
2279
|
lastScreenPixels = snapshot.screenPixels
|
|
2247
2280
|
lastRequestTotal = snapshot.requestTotal
|
|
2248
2281
|
lastAppCommits = snapshot.appCommits
|
|
@@ -2289,6 +2322,7 @@ async function waitForSootsimIdle({
|
|
|
2289
2322
|
blockedBy:
|
|
2290
2323
|
blockers.join(', ') + ' over ' + polls + ' polls (layout changed ' + layoutChangedPolls +
|
|
2291
2324
|
'x, layoutDirty ' + dirtyPolls + 'x, animating ' + animatingPolls + 'x, webViewStarting ' + webViewStartingPolls + 'x, screen changed ' + screenChangedPolls + 'x)' +
|
|
2325
|
+
(lastLayoutChange ? '; last layout change ' + JSON.stringify(lastLayoutChange) : '') +
|
|
2292
2326
|
(activityHost ? '; tenant activity ' + JSON.stringify({ initial: initialActivity, current: activityHost.getRenderActivity?.(), busySeen, idleSince, transitionEndedAt, startedAt: start }) : ''),
|
|
2293
2327
|
}
|
|
2294
2328
|
} finally {
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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);
|
|
@@ -898,6 +898,7 @@ function waitReadyStatus(result, ready) {
|
|
|
898
898
|
externalError: probe?.externalError ?? "",
|
|
899
899
|
suppressedEntryError: probe?.suppressedEntryError ?? "",
|
|
900
900
|
errors: probe?.errors ?? 0,
|
|
901
|
+
startup: probe?.startup,
|
|
901
902
|
bridgeError: result.error ?? "",
|
|
902
903
|
paintedAppContent: probe?.paintedAppContent ?? false,
|
|
903
904
|
treeQuietMs: probe?.treeQuietMs ?? 0,
|
|
@@ -1895,6 +1896,9 @@ async function waitForSootsimIdle({
|
|
|
1895
1896
|
hierarchy = null
|
|
1896
1897
|
}
|
|
1897
1898
|
const nodes = []
|
|
1899
|
+
// identity beside each geometry entry, from the rows already read,
|
|
1900
|
+
// so a changed layout can name the nodes that moved.
|
|
1901
|
+
const nodeRows = []
|
|
1898
1902
|
const LOADING_TEXT_REGEX = /^(creating webview|loading html|fetching bundle|waiting for first render|starting preview|loading simulator|fetching app code|waiting for native preview|starting design|loading canvas|fetching screens|painting the canvas|waiting for webview|waiting for preview|waiting for canvas|preview stalled)/i
|
|
1899
1903
|
const noteLoading = (state, text) => {
|
|
1900
1904
|
if (state?.busy === true) {
|
|
@@ -1915,7 +1919,9 @@ async function waitForSootsimIdle({
|
|
|
1915
1919
|
// subtree count by their own layout; the rest of the screen
|
|
1916
1920
|
// still catches the fling.
|
|
1917
1921
|
const abs = n.backgroundPlayback ? layout : n.absolute || n.absolutePosition || layout
|
|
1918
|
-
|
|
1922
|
+
const geometry = Math.round(abs.x) + ',' + Math.round(abs.y) + ',' + Math.round(layout.width)
|
|
1923
|
+
nodes.push(geometry)
|
|
1924
|
+
nodeRows.push([String(n.nodeId ?? nodes.length - 1), (n.type || '?') + (n.testId ? '#' + n.testId : ''), geometry])
|
|
1919
1925
|
}
|
|
1920
1926
|
noteLoading(
|
|
1921
1927
|
n.accessibilityState,
|
|
@@ -1927,7 +1933,9 @@ async function waitForSootsimIdle({
|
|
|
1927
1933
|
if (root) {
|
|
1928
1934
|
const walk = (n) => {
|
|
1929
1935
|
if (n.layout && n.layout.width > 0) {
|
|
1930
|
-
|
|
1936
|
+
const geometry = Math.round(n.layout.x) + ',' + Math.round(n.layout.y) + ',' + Math.round(n.layout.width)
|
|
1937
|
+
nodes.push(geometry)
|
|
1938
|
+
nodeRows.push([String(n.id ?? nodes.length - 1), (n.type || '?') + (n.props?.testID ? '#' + n.props.testID : ''), geometry])
|
|
1931
1939
|
}
|
|
1932
1940
|
noteLoading(
|
|
1933
1941
|
n.props?.accessibilityState,
|
|
@@ -1976,7 +1984,7 @@ async function waitForSootsimIdle({
|
|
|
1976
1984
|
pixelFrameToken = token
|
|
1977
1985
|
}
|
|
1978
1986
|
}
|
|
1979
|
-
return { layout: nodes.join(';'), nativeHierarchy, screenPixels, animating, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
1987
|
+
return { layout: nodes.join(';'), nodeRows, nativeHierarchy, screenPixels, animating, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
1980
1988
|
}
|
|
1981
1989
|
|
|
1982
1990
|
// how long generic background network is allowed to keep us waiting AFTER
|
|
@@ -1992,6 +2000,27 @@ async function waitForSootsimIdle({
|
|
|
1992
2000
|
const networkQuietGraceMs = 1200
|
|
1993
2001
|
let lastNativeHierarchy = null
|
|
1994
2002
|
let lastLayout = ''
|
|
2003
|
+
let lastNodeRows = []
|
|
2004
|
+
// what moved between the last two differing polls, bounded; names the
|
|
2005
|
+
// nodes behind "layout changed" without keeping any poll history.
|
|
2006
|
+
let lastLayoutChange = null
|
|
2007
|
+
const describeLayoutChange = (before, after) => {
|
|
2008
|
+
const previous = new Map(before.map(([key, label, geometry]) => [key, [label, geometry]]))
|
|
2009
|
+
const moved = []
|
|
2010
|
+
const added = []
|
|
2011
|
+
const short = (label, key) => String(label).slice(0, 48) + ' [' + String(key).slice(0, 24) + ']'
|
|
2012
|
+
for (const [key, label, geometry] of after) {
|
|
2013
|
+
const was = previous.get(key)
|
|
2014
|
+
previous.delete(key)
|
|
2015
|
+
if (!was) added.push(short(label, key) + ' ' + geometry)
|
|
2016
|
+
else if (was[1] !== geometry) moved.push(short(label, key) + ' ' + was[1] + '->' + geometry)
|
|
2017
|
+
}
|
|
2018
|
+
const removed = [...previous].map(([key, [label, geometry]]) => short(label, key) + ' ' + geometry)
|
|
2019
|
+
return {
|
|
2020
|
+
moved: moved.length, added: added.length, removed: removed.length,
|
|
2021
|
+
movedSample: moved.slice(0, 3), addedSample: added.slice(0, 3), removedSample: removed.slice(0, 3),
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
1995
2024
|
let lastScreenPixels = null
|
|
1996
2025
|
let screenChangedPolls = 0
|
|
1997
2026
|
let lastRequestTotal = -1
|
|
@@ -2070,7 +2099,10 @@ async function waitForSootsimIdle({
|
|
|
2070
2099
|
if (snapshot.layoutDirty) dirtyPolls++
|
|
2071
2100
|
if (snapshot.animating || snapshot.shellAnimating) animatingPolls++
|
|
2072
2101
|
if (snapshot.webViewStarting) webViewStartingPolls++
|
|
2073
|
-
if (polls > 1 && snapshot.layout !== lastLayout)
|
|
2102
|
+
if (polls > 1 && snapshot.layout !== lastLayout) {
|
|
2103
|
+
layoutChangedPolls++
|
|
2104
|
+
lastLayoutChange = describeLayoutChange(lastNodeRows, snapshot.nodeRows)
|
|
2105
|
+
}
|
|
2074
2106
|
const screenChanged = paintStill && !screenUnchanged(snapshot.screenPixels, lastScreenPixels)
|
|
2075
2107
|
if (polls > 1 && screenChanged) screenChangedPolls++
|
|
2076
2108
|
const strictOk =
|
|
@@ -2137,6 +2169,7 @@ async function waitForSootsimIdle({
|
|
|
2137
2169
|
}
|
|
2138
2170
|
lastNativeHierarchy = snapshot.nativeHierarchy
|
|
2139
2171
|
lastLayout = snapshot.layout
|
|
2172
|
+
lastNodeRows = snapshot.nodeRows
|
|
2140
2173
|
lastScreenPixels = snapshot.screenPixels
|
|
2141
2174
|
lastRequestTotal = snapshot.requestTotal
|
|
2142
2175
|
lastAppCommits = snapshot.appCommits
|
|
@@ -2183,6 +2216,7 @@ async function waitForSootsimIdle({
|
|
|
2183
2216
|
blockedBy:
|
|
2184
2217
|
blockers.join(', ') + ' over ' + polls + ' polls (layout changed ' + layoutChangedPolls +
|
|
2185
2218
|
'x, layoutDirty ' + dirtyPolls + 'x, animating ' + animatingPolls + 'x, webViewStarting ' + webViewStartingPolls + 'x, screen changed ' + screenChangedPolls + 'x)' +
|
|
2219
|
+
(lastLayoutChange ? '; last layout change ' + JSON.stringify(lastLayoutChange) : '') +
|
|
2186
2220
|
(activityHost ? '; tenant activity ' + JSON.stringify({ initial: initialActivity, current: activityHost.getRenderActivity?.(), busySeen, idleSince, transitionEndedAt, startedAt: start }) : ''),
|
|
2187
2221
|
}
|
|
2188
2222
|
} finally {
|