peachsim 0.1.2243 → 0.1.2246
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/binary-sidecar.ts +89 -0
- package/cli/bridge-flow-runner.ts +9 -8
- package/cli/cloud-client.ts +2 -0
- package/cli/commands/control.ts +16 -0
- package/cli/commands/device.ts +1 -1
- package/cli/commands/flow.ts +2 -2
- package/cli/commands/inspect/core.ts +0 -20
- package/cli/commands/inspect/settling.ts +10 -1
- package/cli/commands/inspect.ts +5 -5
- package/cli/commands/preview.ts +12 -5
- package/cli/commands/shell-boolean-mode.ts +1 -1
- package/cli/commands/slides.ts +1 -1
- 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 +72 -17
- 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 +11 -4
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +71 -16
- 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 +92 -18
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- 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 +13 -6
- 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 +11 -2
- package/dist-lib/menu.mjs +11 -2
- 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 +3 -3
- 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 +55 -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 +11 -23
- package/dist-lib/sdk.mjs +11 -21
- package/dist-lib/skills.cjs +946 -750
- package/dist-lib/swift-compile.cjs +65 -10
- package/dist-lib/swift-compile.mjs +65 -10
- 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 +70 -15
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/resilient-frame-clock.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/binarySidecarContract.ts +45 -0
- package/src/menu.ts +14 -0
- package/src/swift-guest-image-ledger.ts +74 -7
- package/src/swift-guest-link.ts +3 -1
- package/src/swift-host.ts +6 -7
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2246 | (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;
|
|
@@ -80,7 +80,6 @@ __export(sdk_exports, {
|
|
|
80
80
|
inspectWaitReady: () => inspectWaitReady,
|
|
81
81
|
inspectWaitSelector: () => inspectWaitSelector,
|
|
82
82
|
inspectWarnings: () => inspectWarnings,
|
|
83
|
-
isInspectModeActive: () => isInspectModeActive,
|
|
84
83
|
isInspectPickCommand: () => isInspectPickCommand,
|
|
85
84
|
isPeachAccessibilityTree: () => isPeachAccessibilityTree,
|
|
86
85
|
isResolvedTapPayload: () => isResolvedTapPayload,
|
|
@@ -98,7 +97,6 @@ __export(sdk_exports, {
|
|
|
98
97
|
scoreInteractive: () => scoreInteractive,
|
|
99
98
|
scoreLayoutTextContrast: () => scoreLayoutTextContrast,
|
|
100
99
|
setDebugChannels: () => setDebugChannels,
|
|
101
|
-
shouldSkipAutoSettleForInspectPick: () => shouldSkipAutoSettleForInspectPick,
|
|
102
100
|
tapBest: () => tapBest,
|
|
103
101
|
tapById: () => tapById,
|
|
104
102
|
tapByQuery: () => tapByQuery,
|
|
@@ -189,21 +187,6 @@ var INSPECT_PICK_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
189
187
|
function isInspectPickCommand(subcommand) {
|
|
190
188
|
return typeof subcommand === "string" && INSPECT_PICK_COMMANDS.has(subcommand);
|
|
191
189
|
}
|
|
192
|
-
async function isInspectModeActive(bridge) {
|
|
193
|
-
const active = await bridge.send({
|
|
194
|
-
type: "evaluate",
|
|
195
|
-
code: "globalThis.__sootsimEngineState?.inspectActive === true"
|
|
196
|
-
});
|
|
197
|
-
return active === true;
|
|
198
|
-
}
|
|
199
|
-
async function shouldSkipAutoSettleForInspectPick(bridge, subcommand) {
|
|
200
|
-
if (!isInspectPickCommand(subcommand)) return false;
|
|
201
|
-
try {
|
|
202
|
-
return await isInspectModeActive(bridge);
|
|
203
|
-
} catch {
|
|
204
|
-
return false;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
190
|
async function inspectNodeCount(bridge) {
|
|
208
191
|
const result = await bridge.send({
|
|
209
192
|
type: "query",
|
|
@@ -1844,10 +1827,14 @@ function renderActivityIdleScript({
|
|
|
1844
1827
|
maxMs,
|
|
1845
1828
|
requiredStillMs,
|
|
1846
1829
|
transitionStartWindowMs,
|
|
1847
|
-
transitionTimeoutMs
|
|
1830
|
+
transitionTimeoutMs,
|
|
1831
|
+
skipIfInspectActive
|
|
1848
1832
|
}) {
|
|
1849
1833
|
return `(async () => {
|
|
1850
1834
|
const start = Date.now()
|
|
1835
|
+
if (${skipIfInspectActive} && globalThis.__sootsimEngineState?.inspectActive === true) {
|
|
1836
|
+
return { settled: true, elapsed: 0, blockedBy: '' }
|
|
1837
|
+
}
|
|
1851
1838
|
const budgetMs = ${Math.max(0, Math.round(maxMs))}
|
|
1852
1839
|
const requiredStillMs = ${Math.max(1, Math.round(requiredStillMs))}
|
|
1853
1840
|
let deadline = start + budgetMs
|
|
@@ -1951,6 +1938,7 @@ async function waitForSootsimIdle({
|
|
|
1951
1938
|
screenStill = false,
|
|
1952
1939
|
maestro = false,
|
|
1953
1940
|
motionOnly = false,
|
|
1941
|
+
skipIfInspectActive = false,
|
|
1954
1942
|
readyPlayback = false,
|
|
1955
1943
|
transitionStartWindowMs = 80,
|
|
1956
1944
|
transitionTimeoutMs = 4e3
|
|
@@ -1966,7 +1954,8 @@ async function waitForSootsimIdle({
|
|
|
1966
1954
|
maxMs,
|
|
1967
1955
|
requiredStillMs: Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs)),
|
|
1968
1956
|
transitionStartWindowMs,
|
|
1969
|
-
transitionTimeoutMs
|
|
1957
|
+
transitionTimeoutMs,
|
|
1958
|
+
skipIfInspectActive
|
|
1970
1959
|
}) : `(async () => {
|
|
1971
1960
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
1972
1961
|
// tests inject a virtual clock as globalThis.__sootsimIdleClock ({ now, sleep })
|
|
@@ -2170,7 +2159,8 @@ async function waitForSootsimIdle({
|
|
|
2170
2159
|
!screenStill && stats.hasPendingReadinessAnimationFrames === true && 'pendingReadinessFrames',
|
|
2171
2160
|
].filter(Boolean).join('+')
|
|
2172
2161
|
// the runtime reports only layout work that can reach the window:
|
|
2173
|
-
// a covered screen or inactive tab committing does not hold it
|
|
2162
|
+
// a covered screen or inactive tab committing does not hold it,
|
|
2163
|
+
// and readiness does not wait on ongoing playback's own layout.
|
|
2174
2164
|
layoutDirty =
|
|
2175
2165
|
stats.layoutDirty === true && stats.renderRequested === true
|
|
2176
2166
|
// a freshly-pushed screen showing a skeleton is layout-stable
|
|
@@ -3541,7 +3531,6 @@ var SimClient = class {
|
|
|
3541
3531
|
inspectWaitReady,
|
|
3542
3532
|
inspectWaitSelector,
|
|
3543
3533
|
inspectWarnings,
|
|
3544
|
-
isInspectModeActive,
|
|
3545
3534
|
isInspectPickCommand,
|
|
3546
3535
|
isPeachAccessibilityTree,
|
|
3547
3536
|
isResolvedTapPayload,
|
|
@@ -3559,7 +3548,6 @@ var SimClient = class {
|
|
|
3559
3548
|
scoreInteractive,
|
|
3560
3549
|
scoreLayoutTextContrast,
|
|
3561
3550
|
setDebugChannels,
|
|
3562
|
-
shouldSkipAutoSettleForInspectPick,
|
|
3563
3551
|
tapBest,
|
|
3564
3552
|
tapById,
|
|
3565
3553
|
tapByQuery,
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2246 | (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);
|
|
@@ -76,21 +76,6 @@ var INSPECT_PICK_COMMANDS = /* @__PURE__ */ new Set([
|
|
|
76
76
|
function isInspectPickCommand(subcommand) {
|
|
77
77
|
return typeof subcommand === "string" && INSPECT_PICK_COMMANDS.has(subcommand);
|
|
78
78
|
}
|
|
79
|
-
async function isInspectModeActive(bridge) {
|
|
80
|
-
const active = await bridge.send({
|
|
81
|
-
type: "evaluate",
|
|
82
|
-
code: "globalThis.__sootsimEngineState?.inspectActive === true"
|
|
83
|
-
});
|
|
84
|
-
return active === true;
|
|
85
|
-
}
|
|
86
|
-
async function shouldSkipAutoSettleForInspectPick(bridge, subcommand) {
|
|
87
|
-
if (!isInspectPickCommand(subcommand)) return false;
|
|
88
|
-
try {
|
|
89
|
-
return await isInspectModeActive(bridge);
|
|
90
|
-
} catch {
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
79
|
async function inspectNodeCount(bridge) {
|
|
95
80
|
const result = await bridge.send({
|
|
96
81
|
type: "query",
|
|
@@ -1731,10 +1716,14 @@ function renderActivityIdleScript({
|
|
|
1731
1716
|
maxMs,
|
|
1732
1717
|
requiredStillMs,
|
|
1733
1718
|
transitionStartWindowMs,
|
|
1734
|
-
transitionTimeoutMs
|
|
1719
|
+
transitionTimeoutMs,
|
|
1720
|
+
skipIfInspectActive
|
|
1735
1721
|
}) {
|
|
1736
1722
|
return `(async () => {
|
|
1737
1723
|
const start = Date.now()
|
|
1724
|
+
if (${skipIfInspectActive} && globalThis.__sootsimEngineState?.inspectActive === true) {
|
|
1725
|
+
return { settled: true, elapsed: 0, blockedBy: '' }
|
|
1726
|
+
}
|
|
1738
1727
|
const budgetMs = ${Math.max(0, Math.round(maxMs))}
|
|
1739
1728
|
const requiredStillMs = ${Math.max(1, Math.round(requiredStillMs))}
|
|
1740
1729
|
let deadline = start + budgetMs
|
|
@@ -1838,6 +1827,7 @@ async function waitForSootsimIdle({
|
|
|
1838
1827
|
screenStill = false,
|
|
1839
1828
|
maestro = false,
|
|
1840
1829
|
motionOnly = false,
|
|
1830
|
+
skipIfInspectActive = false,
|
|
1841
1831
|
readyPlayback = false,
|
|
1842
1832
|
transitionStartWindowMs = 80,
|
|
1843
1833
|
transitionTimeoutMs = 4e3
|
|
@@ -1853,7 +1843,8 @@ async function waitForSootsimIdle({
|
|
|
1853
1843
|
maxMs,
|
|
1854
1844
|
requiredStillMs: Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs)),
|
|
1855
1845
|
transitionStartWindowMs,
|
|
1856
|
-
transitionTimeoutMs
|
|
1846
|
+
transitionTimeoutMs,
|
|
1847
|
+
skipIfInspectActive
|
|
1857
1848
|
}) : `(async () => {
|
|
1858
1849
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
1859
1850
|
// tests inject a virtual clock as globalThis.__sootsimIdleClock ({ now, sleep })
|
|
@@ -2057,7 +2048,8 @@ async function waitForSootsimIdle({
|
|
|
2057
2048
|
!screenStill && stats.hasPendingReadinessAnimationFrames === true && 'pendingReadinessFrames',
|
|
2058
2049
|
].filter(Boolean).join('+')
|
|
2059
2050
|
// the runtime reports only layout work that can reach the window:
|
|
2060
|
-
// a covered screen or inactive tab committing does not hold it
|
|
2051
|
+
// a covered screen or inactive tab committing does not hold it,
|
|
2052
|
+
// and readiness does not wait on ongoing playback's own layout.
|
|
2061
2053
|
layoutDirty =
|
|
2062
2054
|
stats.layoutDirty === true && stats.renderRequested === true
|
|
2063
2055
|
// a freshly-pushed screen showing a skeleton is layout-stable
|
|
@@ -3427,7 +3419,6 @@ export {
|
|
|
3427
3419
|
inspectWaitReady,
|
|
3428
3420
|
inspectWaitSelector,
|
|
3429
3421
|
inspectWarnings,
|
|
3430
|
-
isInspectModeActive,
|
|
3431
3422
|
isInspectPickCommand,
|
|
3432
3423
|
isPeachAccessibilityTree,
|
|
3433
3424
|
isResolvedTapPayload,
|
|
@@ -3445,7 +3436,6 @@ export {
|
|
|
3445
3436
|
scoreInteractive,
|
|
3446
3437
|
scoreLayoutTextContrast,
|
|
3447
3438
|
setDebugChannels,
|
|
3448
|
-
shouldSkipAutoSettleForInspectPick,
|
|
3449
3439
|
tapBest,
|
|
3450
3440
|
tapById,
|
|
3451
3441
|
tapByQuery,
|