rnxsim 0.1.450 → 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.
Files changed (55) hide show
  1. package/cli/commands/control.ts +9 -3
  2. package/cli/commands/debug.ts +42 -11
  3. package/cli/commands/inspect/core.ts +33 -13
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/agent-identity.cjs +1 -1
  7. package/dist-lib/agent-sessions.cjs +1 -1
  8. package/dist-lib/attached-projects.cjs +1 -1
  9. package/dist-lib/auth/shared-session.cjs +1 -1
  10. package/dist-lib/backend-origin.cjs +1 -1
  11. package/dist-lib/beta.cjs +1 -1
  12. package/dist-lib/beta.mjs +1 -1
  13. package/dist-lib/bridge-constants.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.mjs +1 -1
  16. package/dist-lib/bridge-contract.cjs +1 -1
  17. package/dist-lib/bridge-contract.mjs +1 -1
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cli-constants.cjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/detox/index.cjs +2 -1
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/home-paths.cjs +1 -1
  29. package/dist-lib/host/bridge-host.cjs +1 -1
  30. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  31. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  33. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  34. package/dist-lib/host/websocket-proxy.cjs +1 -1
  35. package/dist-lib/index.cjs +1 -1
  36. package/dist-lib/jump-to-source-babel.cjs +1 -1
  37. package/dist-lib/jump-to-source-native.cjs +1 -1
  38. package/dist-lib/menu.cjs +1 -1
  39. package/dist-lib/menu.mjs +1 -1
  40. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  41. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  42. package/dist-lib/metro-production-bundle.cjs +1 -1
  43. package/dist-lib/metro-production-bundle.mjs +1 -1
  44. package/dist-lib/metro.cjs +1 -1
  45. package/dist-lib/profiles.cjs +1 -1
  46. package/dist-lib/public-brand.cjs +1 -1
  47. package/dist-lib/react-native-host-modules.cjs +1 -1
  48. package/dist-lib/react-native-host-modules.mjs +1 -1
  49. package/dist-lib/render-mode.cjs +1 -1
  50. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  51. package/dist-lib/sdk.cjs +25 -8
  52. package/dist-lib/sdk.mjs +24 -8
  53. package/dist-lib/skills.cjs +2169 -245
  54. package/dist-lib/vite.cjs +1 -1
  55. package/package.json +1 -1
package/dist-lib/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.450 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.452 | (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;
@@ -35,6 +35,7 @@ __export(sdk_exports, {
35
35
  SimResetError: () => SimResetError,
36
36
  SimTapError: () => SimTapError,
37
37
  buildSimOpenUrl: () => buildSimOpenUrl,
38
+ callDebugBridge: () => callDebugBridge,
38
39
  clearConsole: () => clearConsole,
39
40
  clearLogs: () => clearLogs,
40
41
  clearRequests: () => clearRequests,
@@ -1128,17 +1129,32 @@ async function inspectDebugFind(bridge, target) {
1128
1129
  code: `window.__sootsimTest.debugFind(${JSON.stringify(target)})`
1129
1130
  });
1130
1131
  }
1131
- async function inspectDebugRecent(bridge, channel, limit = 50) {
1132
- const code = channel && channel !== "all" ? `window.__sootsimDebug.recent(${JSON.stringify(channel)}, ${limit})` : `window.__sootsimDebug.recent(undefined, ${limit})`;
1133
- return bridge.send({ type: "evaluate", code });
1134
- }
1135
- async function setDebugChannels(bridge, action, channels) {
1136
- const args = channels.length > 0 ? channels.map((c) => JSON.stringify(c)).join(", ") : action === "disable" ? "'all'" : "";
1132
+ async function callDebugBridge(bridge, expression, host = false) {
1133
+ const code = `globalThis.__sootsimDebug.${expression}`;
1134
+ if (host) return bridge.send({ type: "evaluate", code });
1137
1135
  return bridge.send({
1138
1136
  type: "evaluate",
1139
- code: `window.__sootsimDebug.${action}(${args})`
1137
+ code: `(async () => {
1138
+ const result = await window.__sootsimTest.evalInTenant(${JSON.stringify(code)})
1139
+ if (!result.ok) throw new Error(result.error)
1140
+ return result.value
1141
+ })()`
1140
1142
  });
1141
1143
  }
1144
+ async function inspectDebugRecent(bridge, channel, limit = 50, host = false) {
1145
+ return callDebugBridge(
1146
+ bridge,
1147
+ `recent(${channel && channel !== "all" ? JSON.stringify(channel) : "undefined"}, ${limit})`,
1148
+ host
1149
+ );
1150
+ }
1151
+ async function setDebugChannels(bridge, action, channels, host = false) {
1152
+ const args = channels.length > 0 ? channels.map((c) => JSON.stringify(c)).join(", ") : action === "disable" ? "'all'" : "";
1153
+ const expression = `${action}(${args})`;
1154
+ const active = await callDebugBridge(bridge, expression, true);
1155
+ if (host) return active;
1156
+ return callDebugBridge(bridge, expression);
1157
+ }
1142
1158
  async function inspectMemory(bridge) {
1143
1159
  if (bridge.plane === "cloud") {
1144
1160
  const value = await bridge.send({ type: "memory" });
@@ -2336,6 +2352,7 @@ var SimClient = class {
2336
2352
  SimResetError,
2337
2353
  SimTapError,
2338
2354
  buildSimOpenUrl,
2355
+ callDebugBridge,
2339
2356
  clearConsole,
2340
2357
  clearLogs,
2341
2358
  clearRequests,
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.450 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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 inspectDebugRecent(bridge, channel, limit = 50) {
1037
- const code = channel && channel !== "all" ? `window.__sootsimDebug.recent(${JSON.stringify(channel)}, ${limit})` : `window.__sootsimDebug.recent(undefined, ${limit})`;
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: `window.__sootsimDebug.${action}(${args})`
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,