rnxsim 0.1.451 → 0.1.452
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/debug.ts +42 -11
- package/cli/commands/inspect/core.ts +33 -13
- 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 +1 -1
- 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 +25 -8
- package/dist-lib/sdk.mjs +24 -8
- package/dist-lib/skills.cjs +2160 -241
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.452 | (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);
|
|
@@ -1033,17 +1033,32 @@ async function inspectDebugFind(bridge, target) {
|
|
|
1033
1033
|
code: `window.__sootsimTest.debugFind(${JSON.stringify(target)})`
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
|
-
async function
|
|
1037
|
-
const code =
|
|
1038
|
-
return bridge.send({ type: "evaluate", code });
|
|
1039
|
-
}
|
|
1040
|
-
async function setDebugChannels(bridge, action, channels) {
|
|
1041
|
-
const args = channels.length > 0 ? channels.map((c) => JSON.stringify(c)).join(", ") : action === "disable" ? "'all'" : "";
|
|
1036
|
+
async function callDebugBridge(bridge, expression, host = false) {
|
|
1037
|
+
const code = `globalThis.__sootsimDebug.${expression}`;
|
|
1038
|
+
if (host) return bridge.send({ type: "evaluate", code });
|
|
1042
1039
|
return bridge.send({
|
|
1043
1040
|
type: "evaluate",
|
|
1044
|
-
code: `
|
|
1041
|
+
code: `(async () => {
|
|
1042
|
+
const result = await window.__sootsimTest.evalInTenant(${JSON.stringify(code)})
|
|
1043
|
+
if (!result.ok) throw new Error(result.error)
|
|
1044
|
+
return result.value
|
|
1045
|
+
})()`
|
|
1045
1046
|
});
|
|
1046
1047
|
}
|
|
1048
|
+
async function inspectDebugRecent(bridge, channel, limit = 50, host = false) {
|
|
1049
|
+
return callDebugBridge(
|
|
1050
|
+
bridge,
|
|
1051
|
+
`recent(${channel && channel !== "all" ? JSON.stringify(channel) : "undefined"}, ${limit})`,
|
|
1052
|
+
host
|
|
1053
|
+
);
|
|
1054
|
+
}
|
|
1055
|
+
async function setDebugChannels(bridge, action, channels, host = false) {
|
|
1056
|
+
const args = channels.length > 0 ? channels.map((c) => JSON.stringify(c)).join(", ") : action === "disable" ? "'all'" : "";
|
|
1057
|
+
const expression = `${action}(${args})`;
|
|
1058
|
+
const active = await callDebugBridge(bridge, expression, true);
|
|
1059
|
+
if (host) return active;
|
|
1060
|
+
return callDebugBridge(bridge, expression);
|
|
1061
|
+
}
|
|
1047
1062
|
async function inspectMemory(bridge) {
|
|
1048
1063
|
if (bridge.plane === "cloud") {
|
|
1049
1064
|
const value = await bridge.send({ type: "memory" });
|
|
@@ -2240,6 +2255,7 @@ export {
|
|
|
2240
2255
|
SimResetError,
|
|
2241
2256
|
SimTapError,
|
|
2242
2257
|
buildSimOpenUrl,
|
|
2258
|
+
callDebugBridge,
|
|
2243
2259
|
clearConsole,
|
|
2244
2260
|
clearLogs,
|
|
2245
2261
|
clearRequests,
|