peachsim 0.1.687 → 0.1.688
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/cloud-client.ts +3 -3
- package/cli/command-registry.ts +2 -0
- package/cli/commands/control.ts +1 -0
- package/cli/commands/debug.ts +10 -33
- package/cli/commands/do-chain.ts +56 -6
- package/cli/commands/inspect/core.ts +2 -0
- package/cli/commands/inspect/list.ts +2 -1
- package/cli/commands/inspect/settling.ts +17 -3
- package/cli/commands/inspect/shared.ts +2 -0
- package/cli/commands/inspect/wait-idle.ts +2 -2
- package/cli/commands/inspect/wait-ready.ts +3 -3
- package/cli/commands/inspect.ts +33 -7
- package/cli/commands/location.ts +164 -0
- package/cli/commands/platform.ts +1 -1
- package/cli/drivers/playwright-sim-host.ts +46 -25
- package/cli/main.ts +6 -0
- package/detox/index.ts +13 -8
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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 +4 -3
- package/dist-lib/bridge-contract-input.cjs +12 -1
- package/dist-lib/bridge-contract-input.mjs +12 -1
- package/dist-lib/bridge-contract.cjs +4 -3
- package/dist-lib/bridge-contract.mjs +4 -3
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +2 -1
- package/dist-lib/cloud-contract.mjs +2 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -1
- package/dist-lib/cloud.mjs +2 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1197 -65
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +362 -108
- package/dist-lib/host/fetch-proxy-handler.cjs +50 -40
- package/dist-lib/host/fetch-proxy-overrides.cjs +50 -6
- package/dist-lib/host/fetch-proxy-overrides.mjs +48 -5
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +29 -11
- 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 +89 -13
- 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 +5 -3
- package/dist-lib/native-app-identity.cjs +8 -3
- package/dist-lib/native-app-identity.mjs +8 -3
- 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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
- package/dist-lib/sdk.cjs +21 -6
- package/dist-lib/sdk.mjs +21 -6
- package/dist-lib/skills.cjs +401 -130
- package/dist-lib/swift-compile.cjs +277 -22
- package/dist-lib/swift-compile.mjs +275 -22
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +10 -10
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +280 -44
- package/dist-lib/vite.cjs +1 -1
- package/kotlin/AppSources/android/content/res/Configuration.kt +2 -0
- package/kotlin/AppSources/android/content/res/Resources.kt +6 -3
- package/kotlin/AppSources/android/util/DisplayMetrics.kt +12 -0
- package/kotlin/AppSources/androidx/compose/ui/res/PainterResources.kt +70 -0
- package/kotlin/AppSources/dev/peach/app/PeachApp.kt +12 -10
- package/kotlin/AppSources/dev/peach/app/PeachDrawable.kt +95 -0
- package/kotlin/fixtures/kotlin-app-variants/Bitmaps.kt +50 -0
- package/kotlin/fixtures/kotlin-app-variants/Drawables.kt +53 -0
- package/package.json +2 -2
- package/scripts/dev-server-scanner.ts +3 -1
- package/skills/contrast/SKILL.md +1 -0
- package/src/android-drawables.ts +315 -0
- package/src/android-theme.ts +9 -0
- package/src/bridge-constants.ts +3 -2
- package/src/bridge-contract-input.ts +11 -0
- package/src/bridge-contract.ts +45 -3
- package/src/cloud-contract.ts +1 -0
- package/src/host/fetch-proxy-handler.ts +13 -49
- package/src/host/fetch-proxy-overrides.ts +69 -12
- package/src/kotlin-app.ts +6 -0
- package/src/kotlin-host.ts +103 -15
- package/src/native-app-identity.ts +16 -3
- package/src/swift-compile.ts +366 -24
- package/src/swift-distribution-contract.ts +11 -4
- package/src/swift-distribution.lock.json +11 -9
- package/src/swift-distribution.ts +4 -4
- package/src/swift-icu.ts +8 -11
- package/src/swift-submit.ts +13 -1
- package/src/swift-toolchain.ts +17 -9
- package/src/vite-plugin.ts +86 -34
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
readBrowserCompositeCaptureRequest,
|
|
3
|
-
resolveBrowserCompositeCdpClip,
|
|
4
|
-
} from '../../../peach-engine/src/capture/browser-composite'
|
|
5
|
-
import { WEBVIEW_FRAME_BOOTSTRAP_SOURCE } from '../../../peach-engine/src/components/native-ui/webview-frame-bridge'
|
|
6
|
-
import {
|
|
7
|
-
AUTH_BROWSER_EXTERNAL_NAVIGATION_EVENT,
|
|
8
|
-
AUTH_BROWSER_SESSION_FRAGMENT_KEY,
|
|
9
|
-
forwardPopupSchemeNavigations,
|
|
10
|
-
} from '../../../peach-engine/src/open-external'
|
|
11
|
-
import { createBrowserPointerDispatcher } from '../../../peach-engine/src/render-worker/browser-pointer'
|
|
12
1
|
// the detached browser host, as CJS source.
|
|
13
2
|
//
|
|
14
3
|
// it resolves playwright from the absolute path the driver hands it, launches
|
|
@@ -23,8 +12,31 @@ import { createBrowserPointerDispatcher } from '../../../peach-engine/src/render
|
|
|
23
12
|
// there are no types for any of this, and a typed rewrite would be `unknown`
|
|
24
13
|
// casts end to end. cli/internal-child.ts runs it through node:vm with a real
|
|
25
14
|
// require, in a child process the CLI spawns as itself.
|
|
15
|
+
import { chromeDisabledFeaturesSwitch } from '../../../../scripts/lib/reap-browser'
|
|
16
|
+
import {
|
|
17
|
+
readBrowserCompositeCaptureRequest,
|
|
18
|
+
resolveBrowserCompositeCdpClip,
|
|
19
|
+
} from '../../../peach-engine/src/capture/browser-composite'
|
|
20
|
+
import { WEBVIEW_HOST_BOOTSTRAP_SOURCE } from '../../../peach-engine/src/components/native-ui/webview-frame-bridge'
|
|
21
|
+
import { createBrowserPointerDispatcher } from '../../../peach-engine/src/render-worker/browser-pointer'
|
|
22
|
+
import {
|
|
23
|
+
automateWebViewFrames,
|
|
24
|
+
WEBVIEW_HOST_BINDING,
|
|
25
|
+
WEBVIEW_INSTANCE_ATTRIBUTE,
|
|
26
|
+
WEBVIEW_SCHEME_NAVIGATION_EVENT,
|
|
27
|
+
webViewAutomationHelpersSource,
|
|
28
|
+
} from '../../../peach-engine/src/webview-automation-host'
|
|
26
29
|
import { DISPOSABLE_BROWSER_CACHE_DIR_NAMES } from '../../src/browser-cache'
|
|
27
30
|
|
|
31
|
+
// a person's tap on the device canvas is a trusted input, which gives the page
|
|
32
|
+
// the user activation browsers require before media plays with sound, and an
|
|
33
|
+
// AVAudioPlayer started from that tap sounds. the driver's taps are dispatched
|
|
34
|
+
// inside the page and never activate it, so without this an app's play() is
|
|
35
|
+
// refused where the same tap by a person plays (RAN:
|
|
36
|
+
// scripts/debug/audiotap-probe.ts). ios needs no gesture for audio at all.
|
|
37
|
+
// every proof that drives media in chromium launches with this one policy.
|
|
38
|
+
export const DRIVER_AUTOPLAY_POLICY = '--autoplay-policy=no-user-gesture-required'
|
|
39
|
+
|
|
28
40
|
export const PLAYWRIGHT_SIM_HOST = `
|
|
29
41
|
const modulePath = process.env.SOOTSIM_PW_MODULE;
|
|
30
42
|
const executablePath = process.env.SOOTSIM_PW_EXECUTABLE;
|
|
@@ -87,7 +99,8 @@ const { execSync } = require('child_process');
|
|
|
87
99
|
const { tmpdir } = require('os');
|
|
88
100
|
const { join } = require('path');
|
|
89
101
|
const createBrowserPointerDispatcher = ${createBrowserPointerDispatcher.toString()};
|
|
90
|
-
const
|
|
102
|
+
const automateWebViewFrames = ${automateWebViewFrames.toString()};
|
|
103
|
+
const webViewAutomationHelpers = ${webViewAutomationHelpersSource()};
|
|
91
104
|
const readBrowserCompositeCaptureRequest = ${readBrowserCompositeCaptureRequest.toString()};
|
|
92
105
|
const resolveBrowserCompositeCdpClip = ${resolveBrowserCompositeCdpClip.toString()};
|
|
93
106
|
// chrome tree reaper — playwright's browser.close() and even SIGKILLing the
|
|
@@ -365,6 +378,7 @@ const cleanupProfile = () => {
|
|
|
365
378
|
'--disable-background-timer-throttling',
|
|
366
379
|
'--disable-backgrounding-occluded-windows',
|
|
367
380
|
'--disable-renderer-backgrounding',
|
|
381
|
+
${JSON.stringify(DRIVER_AUTOPLAY_POLICY)},
|
|
368
382
|
];
|
|
369
383
|
if (channel) {
|
|
370
384
|
// the full test browser can bind the real platform GPU — force the native
|
|
@@ -388,6 +402,7 @@ const cleanupProfile = () => {
|
|
|
388
402
|
// Vulkan is named explicitly, and webgpu is the only backend there is.
|
|
389
403
|
opts.args.push('--enable-features=Vulkan');
|
|
390
404
|
}
|
|
405
|
+
opts.args.push(${JSON.stringify(chromeDisabledFeaturesSwitch())});
|
|
391
406
|
if (cdpPort) opts.args.push('--remote-debugging-port=' + cdpPort);
|
|
392
407
|
if (extraChromeArgs.length) opts.args.push(...extraChromeArgs);
|
|
393
408
|
// headed: size the OS window to the (phone-shaped) viewport too, plus
|
|
@@ -432,9 +447,12 @@ const cleanupProfile = () => {
|
|
|
432
447
|
// through getUserMedia, mirroring a real iOS simulator where the camera just
|
|
433
448
|
// works. without this the unhandled chrome permission prompt auto-denies and
|
|
434
449
|
// CameraApp renders its "Camera Access Required" placeholder.
|
|
435
|
-
// location
|
|
436
|
-
// the
|
|
437
|
-
|
|
450
|
+
// location does NOT follow the same rule: a real iOS simulator never reads
|
|
451
|
+
// the host Mac's real position, it reports a simulated device location
|
|
452
|
+
// (simctl location / engine/geolocation-source.ts). granting chrome's
|
|
453
|
+
// geolocation here would leak the operator's real position into the tenant
|
|
454
|
+
// and its backend, so host-service-main.ts never reaches navigator.geolocation.
|
|
455
|
+
await context.grantPermissions(['camera']);
|
|
438
456
|
const hostMeta = {
|
|
439
457
|
sootsimHostDriver: 'playwright',
|
|
440
458
|
sootsimHostPid: process.pid,
|
|
@@ -453,17 +471,20 @@ const cleanupProfile = () => {
|
|
|
453
471
|
await context.addInitScript({
|
|
454
472
|
content: 'Object.defineProperty(window, "__sootsimHostMeta", { value: ' + JSON.stringify(hostMeta) + ', configurable: true });' + bridgePortInject,
|
|
455
473
|
});
|
|
456
|
-
//
|
|
457
|
-
//
|
|
458
|
-
//
|
|
459
|
-
|
|
460
|
-
await
|
|
461
|
-
// ASWebAuthenticationSession completes on a navigation to its callback
|
|
462
|
-
// scheme, which a browser popup cannot follow.
|
|
463
|
-
await forwardPopupSchemeNavigations(
|
|
474
|
+
// react-native-webview's frames: the bridge at document start of every
|
|
475
|
+
// document, CSP-proof injection, source.headers, no framing refusals and
|
|
476
|
+
// app-scheme navigations, as a WKWebView gives its page.
|
|
477
|
+
const webViewTimingName = 'peachwv' + require('crypto').randomBytes(12).toString('hex');
|
|
478
|
+
await automateWebViewFrames(
|
|
464
479
|
context,
|
|
465
|
-
|
|
466
|
-
|
|
480
|
+
{
|
|
481
|
+
hostBinding: ${JSON.stringify(WEBVIEW_HOST_BINDING)},
|
|
482
|
+
instanceAttribute: ${JSON.stringify(WEBVIEW_INSTANCE_ATTRIBUTE)},
|
|
483
|
+
schemeNavigationEvent: ${JSON.stringify(WEBVIEW_SCHEME_NAVIGATION_EVENT)},
|
|
484
|
+
configTimingName: webViewTimingName,
|
|
485
|
+
bootstrapSource: '(' + ${JSON.stringify(WEBVIEW_HOST_BOOTSTRAP_SOURCE)} + ')(' + JSON.stringify(webViewTimingName) + ');',
|
|
486
|
+
},
|
|
487
|
+
webViewAutomationHelpers,
|
|
467
488
|
);
|
|
468
489
|
await context.exposeBinding('__sootsimHostClose', async () => {
|
|
469
490
|
await shutdown(0);
|
package/cli/main.ts
CHANGED
|
@@ -493,6 +493,12 @@ try {
|
|
|
493
493
|
await exitWithFlush(typeof code === 'number' ? code : 0)
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
+
case 'location': {
|
|
497
|
+
const { runLocation } = await import('./commands/location')
|
|
498
|
+
const code = await runLocation(commandArgsWithSim, { port })
|
|
499
|
+
await exitWithFlush(typeof code === 'number' ? code : 0)
|
|
500
|
+
}
|
|
501
|
+
|
|
496
502
|
case 'mode': {
|
|
497
503
|
const { runMode } = await import('./commands/mode')
|
|
498
504
|
await runMode(commandArgsWithSim, { port, verbose })
|
package/detox/index.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// drop-in replacement for `import { by, device, element, expect, waitFor } from 'detox'`
|
|
3
3
|
// uses playwright to control a headless browser running sootsim
|
|
4
4
|
|
|
5
|
+
import { randomBytes } from 'crypto'
|
|
5
6
|
import * as fs from 'fs'
|
|
6
7
|
import * as path from 'path'
|
|
7
8
|
import { chromium } from 'playwright'
|
|
@@ -10,12 +11,13 @@ import {
|
|
|
10
11
|
readBrowserCompositeCaptureRequest,
|
|
11
12
|
resolveBrowserCompositeCdpClip,
|
|
12
13
|
} from '../../peach-engine/src/capture/browser-composite'
|
|
13
|
-
import {
|
|
14
|
-
AUTH_BROWSER_EXTERNAL_NAVIGATION_EVENT,
|
|
15
|
-
AUTH_BROWSER_SESSION_FRAGMENT_KEY,
|
|
16
|
-
forwardPopupSchemeNavigations,
|
|
17
|
-
} from '../../peach-engine/src/open-external'
|
|
14
|
+
import { WEBVIEW_HOST_BOOTSTRAP_SOURCE } from '../../peach-engine/src/components/native-ui/webview-frame-bridge'
|
|
18
15
|
import { isAppBootTargetUrl } from '../../peach-engine/src/render-worker/app-load'
|
|
16
|
+
import {
|
|
17
|
+
automateWebViewFrames,
|
|
18
|
+
webViewAutomationHelpers,
|
|
19
|
+
webViewAutomationNames,
|
|
20
|
+
} from '../../peach-engine/src/webview-automation-host'
|
|
19
21
|
import { SOOTSIM_SHELL_COMMAND_NAME } from '../src/menu'
|
|
20
22
|
import { pollUntil } from '../src/poll-until'
|
|
21
23
|
import {
|
|
@@ -1856,10 +1858,13 @@ export const device = {
|
|
|
1856
1858
|
reapOwnedBrowser()
|
|
1857
1859
|
throw error
|
|
1858
1860
|
}
|
|
1859
|
-
await
|
|
1861
|
+
await automateWebViewFrames(
|
|
1860
1862
|
_context,
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
+
webViewAutomationNames(
|
|
1864
|
+
`peachwv${randomBytes(12).toString('hex')}`,
|
|
1865
|
+
WEBVIEW_HOST_BOOTSTRAP_SOURCE,
|
|
1866
|
+
),
|
|
1867
|
+
webViewAutomationHelpers,
|
|
1863
1868
|
)
|
|
1864
1869
|
await _context.exposeBinding('__sootsimHostCapture', async (source, value) => {
|
|
1865
1870
|
const request = readBrowserCompositeCaptureRequest(value)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -100,13 +100,14 @@ function resolveSootsimBridgePortForRuntimeLocation(input = {}) {
|
|
|
100
100
|
const hrefUrl = parseHrefUrl(input.href);
|
|
101
101
|
const httpPort = parsePort(input.httpPort) ?? parsePort(hrefUrl?.port);
|
|
102
102
|
if (httpPort === null) return DEFAULT_SOOTSIM_BRIDGE_PORT;
|
|
103
|
-
|
|
103
|
+
const hostedShell = hrefUrl && /^\/(?:simulator|sootsim)(?:\/|$)/.test(hrefUrl.pathname);
|
|
104
|
+
if (hostedShell && (hrefUrl.searchParams.has("embed") || hrefUrl.searchParams.has("nativePreview"))) {
|
|
104
105
|
return resolveSootsimBridgePortForHttpPort({
|
|
105
106
|
httpPort,
|
|
106
107
|
baseHttpPort: CONTRAST_DEV_HTTP_BASE_PORT
|
|
107
108
|
});
|
|
108
109
|
}
|
|
109
|
-
if (
|
|
110
|
+
if (hostedShell && httpPort >= SOOTSIM_SITE_DEV_HTTP_BASE_PORT && httpPort <= SOOTSIM_SITE_DEV_HTTP_BASE_PORT + MAX_LOCAL_DEV_PORT_OFFSET) {
|
|
110
111
|
return resolveSootsimBridgePortForHttpPort({
|
|
111
112
|
httpPort,
|
|
112
113
|
baseHttpPort: SOOTSIM_SITE_DEV_HTTP_BASE_PORT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -190,6 +190,17 @@ function parsePerformStep(value, index) {
|
|
|
190
190
|
}
|
|
191
191
|
case "type":
|
|
192
192
|
return { type, text: stringValue(step.text, `${path}.text`) };
|
|
193
|
+
case "typeInto": {
|
|
194
|
+
const nodeId = numberValue(step.nodeId, `${path}.nodeId`);
|
|
195
|
+
if (!Number.isSafeInteger(nodeId) || nodeId === 0) {
|
|
196
|
+
validationFailure(`${path}.nodeId`, "must be a nonzero safe integer");
|
|
197
|
+
}
|
|
198
|
+
return {
|
|
199
|
+
type,
|
|
200
|
+
text: stringValue(step.text, `${path}.text`),
|
|
201
|
+
nodeId
|
|
202
|
+
};
|
|
203
|
+
}
|
|
193
204
|
case "key":
|
|
194
205
|
return { type, key: stringValue(step.key, `${path}.key`) };
|
|
195
206
|
case "dismissKeyboard":
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/bridge-contract.ts
|
|
4
4
|
var SIM_LONG_PRESS_MAX_MS = 5e3;
|
|
@@ -154,6 +154,17 @@ function parsePerformStep(value, index) {
|
|
|
154
154
|
}
|
|
155
155
|
case "type":
|
|
156
156
|
return { type, text: stringValue(step.text, `${path}.text`) };
|
|
157
|
+
case "typeInto": {
|
|
158
|
+
const nodeId = numberValue(step.nodeId, `${path}.nodeId`);
|
|
159
|
+
if (!Number.isSafeInteger(nodeId) || nodeId === 0) {
|
|
160
|
+
validationFailure(`${path}.nodeId`, "must be a nonzero safe integer");
|
|
161
|
+
}
|
|
162
|
+
return {
|
|
163
|
+
type,
|
|
164
|
+
text: stringValue(step.text, `${path}.text`),
|
|
165
|
+
nodeId
|
|
166
|
+
};
|
|
167
|
+
}
|
|
157
168
|
case "key":
|
|
158
169
|
return { type, key: stringValue(step.key, `${path}.key`) };
|
|
159
170
|
case "dismissKeyboard":
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -90,6 +90,7 @@ function performStepRefusal(type) {
|
|
|
90
90
|
case "pinch":
|
|
91
91
|
case "scroll":
|
|
92
92
|
case "type":
|
|
93
|
+
case "typeInto":
|
|
93
94
|
case "key":
|
|
94
95
|
case "dismissKeyboard":
|
|
95
96
|
case "setElementValue":
|
|
@@ -109,10 +110,10 @@ var SEMANTIC_READY_POLL_MS = 150;
|
|
|
109
110
|
var PUBLIC_NO_NETWORK_MARKER = "public Peach Cloud simulators have no network";
|
|
110
111
|
var HEADLESS_TENANT_FETCH_HUNG_MARKER = "headless tenant fetch hung";
|
|
111
112
|
function readyProbeHasContent(probe) {
|
|
112
|
-
return probe.liveFrameActive || probe.targets > 0 || probe.nodes >= SEMANTIC_READY_CONTENT_NODE_FLOOR;
|
|
113
|
+
return (probe.browserSurfaceCount ?? 0) > 0 || probe.liveFrameActive || probe.targets > 0 || probe.nodes >= SEMANTIC_READY_CONTENT_NODE_FLOOR;
|
|
113
114
|
}
|
|
114
115
|
function readyProbeHasTargetContent(probe) {
|
|
115
|
-
return probe.liveFrameActive || probe.targets > 0;
|
|
116
|
+
return (probe.browserSurfaceCount ?? 0) > 0 || probe.liveFrameActive || probe.targets > 0;
|
|
116
117
|
}
|
|
117
118
|
function readyProbeIsReady(probe) {
|
|
118
119
|
return (probe.flag === true ? readyProbeHasContent(probe) : readyProbeHasTargetContent(probe)) && probe.externalReady !== false && !probe.externalError && !probe.loadingText;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/bridge-contract.ts
|
|
4
4
|
var REFUSED_PERFORM_STEP_TYPES = [
|
|
@@ -54,6 +54,7 @@ function performStepRefusal(type) {
|
|
|
54
54
|
case "pinch":
|
|
55
55
|
case "scroll":
|
|
56
56
|
case "type":
|
|
57
|
+
case "typeInto":
|
|
57
58
|
case "key":
|
|
58
59
|
case "dismissKeyboard":
|
|
59
60
|
case "setElementValue":
|
|
@@ -73,10 +74,10 @@ var SEMANTIC_READY_POLL_MS = 150;
|
|
|
73
74
|
var PUBLIC_NO_NETWORK_MARKER = "public Peach Cloud simulators have no network";
|
|
74
75
|
var HEADLESS_TENANT_FETCH_HUNG_MARKER = "headless tenant fetch hung";
|
|
75
76
|
function readyProbeHasContent(probe) {
|
|
76
|
-
return probe.liveFrameActive || probe.targets > 0 || probe.nodes >= SEMANTIC_READY_CONTENT_NODE_FLOOR;
|
|
77
|
+
return (probe.browserSurfaceCount ?? 0) > 0 || probe.liveFrameActive || probe.targets > 0 || probe.nodes >= SEMANTIC_READY_CONTENT_NODE_FLOOR;
|
|
77
78
|
}
|
|
78
79
|
function readyProbeHasTargetContent(probe) {
|
|
79
|
-
return probe.liveFrameActive || probe.targets > 0;
|
|
80
|
+
return (probe.browserSurfaceCount ?? 0) > 0 || probe.liveFrameActive || probe.targets > 0;
|
|
80
81
|
}
|
|
81
82
|
function readyProbeIsReady(probe) {
|
|
82
83
|
return (probe.flag === true ? readyProbeHasContent(probe) : readyProbeHasTargetContent(probe)) && probe.externalReady !== false && !probe.externalError && !probe.loadingText;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -93,6 +93,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
|
|
|
93
93
|
flowStatus: "drive",
|
|
94
94
|
reset: "reset",
|
|
95
95
|
camera: "media",
|
|
96
|
+
location: "media",
|
|
96
97
|
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
|
97
98
|
// customer sdk never carries this scope, and the service grants it only to
|
|
98
99
|
// the account api key caller. close rides along, since ending the page ends
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/cloud-contract.ts
|
|
4
4
|
var RNX_CLOUD_MAX_ARTIFACT_BYTES = 20 * 1024 * 1024;
|
|
@@ -45,6 +45,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
|
|
|
45
45
|
flowStatus: "drive",
|
|
46
46
|
reset: "reset",
|
|
47
47
|
camera: "media",
|
|
48
|
+
location: "media",
|
|
48
49
|
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
|
49
50
|
// customer sdk never carries this scope, and the service grants it only to
|
|
50
51
|
// the account api key caller. close rides along, since ending the page ends
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -137,6 +137,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
|
|
|
137
137
|
flowStatus: "drive",
|
|
138
138
|
reset: "reset",
|
|
139
139
|
camera: "media",
|
|
140
|
+
location: "media",
|
|
140
141
|
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
|
141
142
|
// customer sdk never carries this scope, and the service grants it only to
|
|
142
143
|
// the account api key caller. close rides along, since ending the page ends
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (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);
|
|
@@ -107,6 +107,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
|
|
|
107
107
|
flowStatus: "drive",
|
|
108
108
|
reset: "reset",
|
|
109
109
|
camera: "media",
|
|
110
|
+
location: "media",
|
|
110
111
|
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
|
111
112
|
// customer sdk never carries this scope, and the service grants it only to
|
|
112
113
|
// the account api key caller. close rides along, since ending the page ends
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.688 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|