rnxsim 0.1.455 → 0.1.457
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 -1
- package/cli/cloud-dispatch.ts +17 -0
- package/cli/commands/do-chain.ts +1 -4
- package/cli/commands/inspect/actions.ts +63 -14
- package/cli/commands/inspect.ts +66 -5
- package/cli/ws-bridge.ts +3 -0
- 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 +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/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 +1 -1
- package/dist-lib/cloud-contract.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/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +583 -241
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.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 +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 +1 -1
- package/dist-lib/sdk.cjs +43 -15
- package/dist-lib/sdk.mjs +43 -15
- package/dist-lib/skills.cjs +1118 -85
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/skills/rnx-debug/SKILL.md +1 -1
- package/src/bridge-contract.ts +2 -1
- package/src/connect.ts +18 -0
- package/src/sim-client.ts +4 -0
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.457 | (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;
|
package/package.json
CHANGED
|
@@ -397,7 +397,7 @@ rnx do tap 196 400 # tap at coordinates
|
|
|
397
397
|
rnx do type "hello world" # type into focused input
|
|
398
398
|
rnx do type-into emailInput "a@b" # focus then type
|
|
399
399
|
rnx do key return # special key (return, backspace, …)
|
|
400
|
-
rnx do scroll feed-list 0 500 # scroll a testID
|
|
400
|
+
rnx do scroll feed-list 0 500 # scroll a testID to absolute x/y offsets
|
|
401
401
|
rnx do swipe feed-list left # directional swipe
|
|
402
402
|
rnx do long-press messageRow 800 # ms hold
|
|
403
403
|
```
|
package/src/bridge-contract.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import type {
|
|
12
12
|
SootSimAgentActionDetail,
|
|
13
|
+
SootSimCaptureFilter,
|
|
13
14
|
SootSimExternalAppLifecycleOptions,
|
|
14
15
|
} from '@rnx/globals'
|
|
15
16
|
|
|
@@ -70,7 +71,7 @@ export interface WsCommand {
|
|
|
70
71
|
layers?: 'full' | 'tenant' | 'shell'
|
|
71
72
|
// screenshot — engine-side layer isolation (hide subtrees / solo one
|
|
72
73
|
// subtree on transparency). see SootSimCaptureOptions.captureFilter.
|
|
73
|
-
captureFilter?:
|
|
74
|
+
captureFilter?: SootSimCaptureFilter
|
|
74
75
|
// screenshot — optional crop rect in logical sootsim coords. the capture
|
|
75
76
|
// module scales x/y/w/h by device pixel ratio before cropping.
|
|
76
77
|
crop?: { x: number; y: number; w: number; h: number }
|
package/src/connect.ts
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
// over the shared ws transport. node-only by design: sim-client.ts stays
|
|
5
5
|
// browser-safe.
|
|
6
6
|
|
|
7
|
+
import {
|
|
8
|
+
createCloudBridgeForParsed,
|
|
9
|
+
resolveCloudSessionForParsed,
|
|
10
|
+
} from '../cli/cloud-client'
|
|
7
11
|
import { readCurrentSimId } from '../cli/current-sim'
|
|
8
12
|
import { createBridge, resolveBridgeWorld, type BridgeSimInfo } from '../cli/ws-bridge'
|
|
9
13
|
import { SimClient, SimConnectError } from './sim-client'
|
|
@@ -54,6 +58,20 @@ function pickSim(
|
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
export async function connect(options: ConnectOptions = {}): Promise<SimClient> {
|
|
61
|
+
const target = {
|
|
62
|
+
simId: options.sim,
|
|
63
|
+
simIdSource: options.sim ? 'flag' : 'none',
|
|
64
|
+
} satisfies Parameters<typeof resolveCloudSessionForParsed>[0]
|
|
65
|
+
const cloud = resolveCloudSessionForParsed(target)
|
|
66
|
+
if (cloud) {
|
|
67
|
+
const bridge = createCloudBridgeForParsed(target)
|
|
68
|
+
if (!bridge)
|
|
69
|
+
throw new SimConnectError('remote simulator session disappeared while connecting')
|
|
70
|
+
return new SimClient(bridge, cloud.service === 'box' ? cloud.boxId : cloud.simId, {
|
|
71
|
+
commandTimeoutMs: options.timeoutMs ?? 15_000,
|
|
72
|
+
})
|
|
73
|
+
}
|
|
74
|
+
|
|
57
75
|
const port = options.port ?? resolveBridgeWorld().bridgePort
|
|
58
76
|
const commandTimeoutMs = options.timeoutMs ?? 15_000
|
|
59
77
|
|
package/src/sim-client.ts
CHANGED