mobitru-mobile-cli 1.0.0-beta.0 → 1.0.0-beta.1

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/CHANGELOG.md CHANGED
@@ -17,4 +17,5 @@ Initial release. Drives real Android and iOS devices on Mobitru cloud via Appium
17
17
  - Custom Appium scripts via `appium-run` (mocha-style, single-job-at-a-time)
18
18
  - Web sessions: `open-url`, `click-web-element`
19
19
  - Session state persists across CLI invocations
20
+ - Parallel device sessions: drive multiple devices simultaneously via `-s/--session` (or `MOBITRU_CLI_SESSION` env), with `session-list` / `session-current` / `stop --all` for management
20
21
  - Bundled agent skill installable via `mobitru-mobile-cli install --skills=claude|agents`
package/README.md CHANGED
@@ -61,17 +61,28 @@ Switching between native and web sessions on the **same device** is fast (~5-10s
61
61
 
62
62
  ## Parallel devices
63
63
 
64
- The CLI holds one device per daemon. For multiple devices in parallel, run separate CLIs with isolated daemon dirs:
64
+ Drive multiple cloud devices in parallel by naming each session with `-s/--session`. Each session has its own daemon and its own active booking.
65
65
 
66
66
  ```bash
67
- # Terminal 1
68
- MOBITRU_CLI_HOME=/tmp/run-a mobitru-mobile-cli device-use <serial-a>
67
+ # Terminal 1 — Android
68
+ mobitru-mobile-cli -s android device-use <serial-a>
69
+ mobitru-mobile-cli -s android snapshot
69
70
 
70
- # Terminal 2
71
- MOBITRU_CLI_HOME=/tmp/run-b mobitru-mobile-cli device-use <serial-b>
71
+ # Terminal 2 — iOS, in parallel
72
+ mobitru-mobile-cli -s ios device-use <serial-b>
73
+ mobitru-mobile-cli -s ios snapshot
72
74
  ```
73
75
 
74
- Each daemon has its own state, socket, and Appium session — they never collide.
76
+ `MOBITRU_CLI_SESSION=<name>` sets a per-shell default so you don't have to type `-s` on every command. The `-s` flag overrides the env for a single invocation. Without either, commands resolve to the `default` session — fully backward-compatible.
77
+
78
+ ```bash
79
+ mobitru-mobile-cli session-list # what's running, on what device
80
+ mobitru-mobile-cli session-current # which session this shell resolves to
81
+ mobitru-mobile-cli stop # stop the current session (releases its device + cleans up)
82
+ mobitru-mobile-cli stop --all # stop every session (releases every device)
83
+ ```
84
+
85
+ Works on Linux, macOS, and Windows.
75
86
 
76
87
  ## Commands
77
88