rnxsim 0.1.490 → 0.1.492

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 (65) hide show
  1. package/cli/app-state-reset.ts +11 -9
  2. package/cli/cloud-client.ts +43 -7
  3. package/cli/command-registry.ts +3 -0
  4. package/cli/commands/detox.ts +41 -11
  5. package/cli/commands/flow.ts +2 -1
  6. package/cli/commands/maestro.ts +30 -0
  7. package/cli/commands/platform.ts +15 -0
  8. package/cli/commands/preview.ts +104 -0
  9. package/cli/commands/test.ts +224 -0
  10. package/cli/main.ts +34 -0
  11. package/cli/outbound-endpoints.ts +5 -2
  12. package/dist-lib/agent-daemon-client.cjs +1 -1
  13. package/dist-lib/agent-events.cjs +1 -1
  14. package/dist-lib/agent-identity.cjs +1 -1
  15. package/dist-lib/agent-sessions.cjs +1 -1
  16. package/dist-lib/attached-projects.cjs +1 -1
  17. package/dist-lib/auth/shared-session.cjs +1 -1
  18. package/dist-lib/backend-origin.cjs +1 -1
  19. package/dist-lib/beta.cjs +1 -1
  20. package/dist-lib/beta.mjs +1 -1
  21. package/dist-lib/bridge-constants.cjs +1 -1
  22. package/dist-lib/bridge-contract-input.cjs +1 -1
  23. package/dist-lib/bridge-contract-input.mjs +1 -1
  24. package/dist-lib/bridge-contract.cjs +1 -1
  25. package/dist-lib/bridge-contract.mjs +1 -1
  26. package/dist-lib/capture-contract.cjs +1 -1
  27. package/dist-lib/capture-contract.mjs +1 -1
  28. package/dist-lib/cli-constants.cjs +1 -1
  29. package/dist-lib/cloud-contract.cjs +1 -1
  30. package/dist-lib/cloud-contract.mjs +1 -1
  31. package/dist-lib/cloud.cjs +1 -1
  32. package/dist-lib/cloud.mjs +1 -1
  33. package/dist-lib/config.cjs +1 -1
  34. package/dist-lib/detox/index.cjs +1 -1
  35. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  36. package/dist-lib/home-paths.cjs +1 -1
  37. package/dist-lib/host/bridge-host.cjs +22 -8
  38. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  39. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  40. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  41. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  42. package/dist-lib/host/websocket-proxy.cjs +1 -1
  43. package/dist-lib/index.cjs +1 -1
  44. package/dist-lib/jump-to-source-babel.cjs +1 -1
  45. package/dist-lib/jump-to-source-native.cjs +1 -1
  46. package/dist-lib/menu.cjs +1 -1
  47. package/dist-lib/menu.mjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  49. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  50. package/dist-lib/metro-production-bundle.cjs +1 -1
  51. package/dist-lib/metro-production-bundle.mjs +1 -1
  52. package/dist-lib/metro.cjs +1 -1
  53. package/dist-lib/profiles.cjs +1 -1
  54. package/dist-lib/public-brand.cjs +1 -1
  55. package/dist-lib/react-native-host-modules.cjs +1 -1
  56. package/dist-lib/react-native-host-modules.mjs +1 -1
  57. package/dist-lib/render-mode.cjs +1 -1
  58. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  59. package/dist-lib/sdk.cjs +1 -1
  60. package/dist-lib/sdk.mjs +1 -1
  61. package/dist-lib/skills.cjs +22 -8
  62. package/dist-lib/vite.cjs +1 -1
  63. package/package.json +1 -1
  64. package/skills/contrast/SKILL.md +3 -0
  65. package/src/bridge-contract.ts +4 -5
@@ -19,6 +19,7 @@ automation, inspecting the render tree, and managing sims.
19
19
 
20
20
  | command | description |
21
21
  | --- | --- |
22
+ | `rnx test` | run a Maestro flow or Detox suite against an rnx app bundle |
22
23
  | `rnx maestro` | author, generate, and run Maestro YAML flows against rnx |
23
24
  | `rnx detox` | run existing Detox suites against rnx on headless Chromium |
24
25
  | `rnx cleanup` | inspect and reclaim local rnx disk usage |
@@ -45,7 +46,9 @@ automation, inspecting the render tree, and managing sims.
45
46
  | `rnx box` | start a local Box or create a cloud Box |
46
47
  | `rnx ios` | start an iOS simulator |
47
48
  | `rnx android` | start an Android simulator |
49
+ | `rnx remote` | run a prebuilt bundle on a remote simulator |
48
50
  | `rnx open` | load a target into the current sim or open a new one |
51
+ | `rnx preview` | publish a prebuilt bundle as a standalone preview |
49
52
  | `rnx list` | list connected sims or available launch drivers |
50
53
  | `rnx use` | select a connected sim |
51
54
  | `rnx skill` | install and inspect bundled rnx agent skills |
@@ -12,6 +12,7 @@ import type {
12
12
  SootSimAgentActionDetail,
13
13
  SootSimCaptureFilter,
14
14
  SootSimExternalAppLifecycleOptions,
15
+ SootSimStorageResetStrategy,
15
16
  } from '@rnx/globals'
16
17
 
17
18
  export type BridgeCommandType =
@@ -387,11 +388,9 @@ export interface SimSemanticResolveResult {
387
388
  // MMKV, sqlite, cache dirs. 'full' also clears what only a fresh install would:
388
389
  // simulated keychain, user defaults, granted permissions.
389
390
  //
390
- // an in-worker remount is preferred over restarting the tenant worker, because
391
- // a restart is what makes reset too slow to run between tests. it is not
392
- // guaranteed: the result reports which one actually happened rather than
393
- // claiming the fast path.
394
- export type ResetStrategy = 'data' | 'full'
391
+ // reset replaces the tenant worker before clearing storage, so background app
392
+ // work cannot refill a store between its clear and verification.
393
+ export type ResetStrategy = SootSimStorageResetStrategy
395
394
 
396
395
  export interface ResetOptions extends Pick<
397
396
  SootSimExternalAppLifecycleOptions,