peachsim 0.1.2248 → 0.1.2250
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 +30 -3
- package/cli/commands/flow.ts +4 -1
- package/cli/commands/inspect/settling.ts +35 -4
- package/cli/drivers/playwright.ts +2 -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 +203 -53
- 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 +33 -9
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +177 -49
- 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 +210 -54
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +45 -14
- 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 +15 -8
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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 +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +31 -7
- package/dist-lib/sdk.mjs +31 -7
- package/dist-lib/skills.cjs +289 -64
- package/dist-lib/swift-compile.cjs +165 -38
- package/dist-lib/swift-compile.mjs +165 -38
- 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 +174 -46
- package/dist-lib/vite.cjs +15 -8
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +0 -4
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +5 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/wasm/include/math.h +1 -1
- package/sdk/ios/wasm/include/pthread.h +1 -1
- package/src/assetCatalogContract.ts +6 -0
- package/src/nitro-compile.ts +23 -1
- package/src/process-group.ts +5 -2
- package/src/runtime-packs.ts +8 -0
- package/src/sfSymbolMetricsContract.ts +73 -37
- package/src/swift-compile.ts +119 -13
- package/src/swift-guest-image-ledger.ts +10 -5
- package/src/swift-guest-link.ts +20 -14
- package/src/swift-guest-source-inputs.ts +5 -1
- package/src/swift-installed-targets.ts +4 -1
- package/src/swift-standins.ts +11 -8
- package/src/swift-wasm-prune.ts +33 -1
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (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);
|
|
@@ -1830,7 +1830,8 @@ async function waitForSootsimIdle({
|
|
|
1830
1830
|
skipIfInspectActive = false,
|
|
1831
1831
|
readyPlayback = false,
|
|
1832
1832
|
transitionStartWindowMs = 80,
|
|
1833
|
-
transitionTimeoutMs = 4e3
|
|
1833
|
+
transitionTimeoutMs = 4e3,
|
|
1834
|
+
stillSince = null
|
|
1834
1835
|
}) {
|
|
1835
1836
|
let result;
|
|
1836
1837
|
const observationStartedAt = Date.now();
|
|
@@ -1869,6 +1870,7 @@ async function waitForSootsimIdle({
|
|
|
1869
1870
|
const accessibilityBounds = ${accessibilityBounds.toString()}
|
|
1870
1871
|
const sameNativeAccessibilityShape = ${sameNativeAccessibilityShape.toString()}
|
|
1871
1872
|
const readyPlayback = ${readyPlayback ? "true" : "false"}
|
|
1873
|
+
const stillSince = ${JSON.stringify(stillSince)}
|
|
1872
1874
|
// full mounted-geometry observation needs at least two hierarchy reads
|
|
1873
1875
|
// plus the stillness window, which a sub-second budget cannot afford:
|
|
1874
1876
|
// tight budgets (auto-wait) settle on worker stillness plus root
|
|
@@ -1887,7 +1889,7 @@ async function waitForSootsimIdle({
|
|
|
1887
1889
|
// those that began after it drained still can. a loaded host runs a
|
|
1888
1890
|
// push past a tap's budget, so the transition gets its own timeout and
|
|
1889
1891
|
// the budget restarts once it drains.
|
|
1890
|
-
|
|
1892
|
+
const watchTransition = async () => {
|
|
1891
1893
|
try {
|
|
1892
1894
|
const wfst = globalThis.__sootsimTest?.waitForScreenTransitions
|
|
1893
1895
|
if (typeof wfst === 'function' && budgetMs > 120) {
|
|
@@ -1907,7 +1909,9 @@ async function waitForSootsimIdle({
|
|
|
1907
1909
|
}
|
|
1908
1910
|
} catch {}
|
|
1909
1911
|
return false
|
|
1910
|
-
}
|
|
1912
|
+
}
|
|
1913
|
+
// a wait that may settle on its first poll watches only once that poll does not
|
|
1914
|
+
let transitionWait = stillSince === null ? watchTransition() : null
|
|
1911
1915
|
|
|
1912
1916
|
// a worker that cannot answer within the remaining budget is busy, not
|
|
1913
1917
|
// idle: its poll reads as unsettled. bounding each read by the budget
|
|
@@ -2259,6 +2263,9 @@ async function waitForSootsimIdle({
|
|
|
2259
2263
|
if (clockNow() >= deadline) break
|
|
2260
2264
|
}
|
|
2261
2265
|
const pollStarted = clockNow()
|
|
2266
|
+
const readRevision = () =>
|
|
2267
|
+
answer(() => globalThis.__sootsimTest?.getGeometryRevision?.()).catch(() => null)
|
|
2268
|
+
const pollRevision = readRevision()
|
|
2262
2269
|
const snapshot = await readSnapshot()
|
|
2263
2270
|
if (snapshot.runtimeUnsupported) return snapshot.runtimeUnsupported
|
|
2264
2271
|
// a read the deadline cut short observed nothing: the last full poll
|
|
@@ -2266,6 +2273,18 @@ async function waitForSootsimIdle({
|
|
|
2266
2273
|
// the loop head drains a transition still in flight before it ends.
|
|
2267
2274
|
if (snapshot.workerBusy && clockNow() >= deadline && report) continue
|
|
2268
2275
|
polls++
|
|
2276
|
+
if (
|
|
2277
|
+
polls === 1 && stillSince !== null &&
|
|
2278
|
+
!snapshot.workerBusy && snapshot.pendingFetches === 0 && snapshot.requestInFlight === 0 &&
|
|
2279
|
+
!snapshot.webViewStarting && !snapshot.animating && !snapshot.shellAnimating &&
|
|
2280
|
+
!snapshot.layoutDirty && !snapshot.visibleMotion
|
|
2281
|
+
) {
|
|
2282
|
+
const [proving, replying] = await Promise.all([pollRevision, readRevision()])
|
|
2283
|
+
if (proving === stillSince && replying === stillSince) {
|
|
2284
|
+
return { settled: true, elapsed: clockNow() - start, blockedBy: '', stillRevision: stillSince }
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
if (polls === 1 && stillSince !== null) transitionWait = watchTransition()
|
|
2269
2288
|
report = { snapshot, nativeHierarchy: lastNativeHierarchy, layout: lastLayout, requestTotal: lastRequestTotal, appCommits: lastAppCommits, nodeCount: lastNodeCount }
|
|
2270
2289
|
if (snapshot.layoutDirty) dirtyPolls++
|
|
2271
2290
|
if (snapshot.animating || snapshot.shellAnimating) animatingPolls++
|
|
@@ -2350,7 +2369,11 @@ async function waitForSootsimIdle({
|
|
|
2350
2369
|
await transitionWait
|
|
2351
2370
|
transitionWait = null
|
|
2352
2371
|
}
|
|
2353
|
-
if (stillProven())
|
|
2372
|
+
if (stillProven()) {
|
|
2373
|
+
const [proving, replying] = await Promise.all([pollRevision, readRevision()])
|
|
2374
|
+
const stillRevision = typeof proving === 'string' && proving === replying ? proving : undefined
|
|
2375
|
+
return { settled: true, elapsed: clockNow() - start, blockedBy: '', stillRevision }
|
|
2376
|
+
}
|
|
2354
2377
|
}
|
|
2355
2378
|
} else {
|
|
2356
2379
|
stillPolls = []
|
|
@@ -2415,11 +2438,12 @@ async function waitForSootsimIdle({
|
|
|
2415
2438
|
result.missingFields
|
|
2416
2439
|
);
|
|
2417
2440
|
}
|
|
2418
|
-
const { elapsed, settled, blockedBy } = result ?? {};
|
|
2441
|
+
const { elapsed, settled, blockedBy, stillRevision } = result ?? {};
|
|
2419
2442
|
return {
|
|
2420
2443
|
elapsed: typeof elapsed === "number" ? elapsed : maxMs,
|
|
2421
2444
|
settled: settled === true,
|
|
2422
|
-
blockedBy: typeof blockedBy === "string" ? blockedBy : "unknown"
|
|
2445
|
+
blockedBy: typeof blockedBy === "string" ? blockedBy : "unknown",
|
|
2446
|
+
...settled === true && typeof stillRevision === "string" ? { stillRevision } : {}
|
|
2423
2447
|
};
|
|
2424
2448
|
}
|
|
2425
2449
|
async function waitReadyAndSettle(bridge, timeoutMs, options = {}) {
|