Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/skills/kane-cli/references/mobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ When the app under test talks to a backend on `localhost`, a staging host behind
| `run` / `testmd run` / `testrun run` from this machine | `LT --user "$LT_USERNAME" --key "$LT_ACCESS_KEY" --tunnelName <name>` (**no `--env`**) |
| `testrun run --remote` | `LT --user "$LT_USERNAME" --key "$LT_ACCESS_KEY" --env ht-prod --tunnelName <name>` |

(Explore is different: `explore run` always needs `--env ht-prod`, see `references/explore.md`.) Wait for them to say LT is connected.
Why `--remote` needs `ht-prod`: the device session is opened from a HyperExecute machine, which only finds tunnels started with `--env ht-prod`. A tunnel with no `--env` is refused on `--remote` even with no `--tunnel-name` (the hub says the tunnel is not running). (Explore is different: `explore run` always needs `--env ht-prod`, see `references/explore.md`.) Wait for them to say LT is connected.
3. **Run with the name:**

```bash
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/kane-cli/references/testrun.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ kane-cli testrun run [paths...] [flags] < /dev/null # NDJSON when stdin is not
| `--remote [backend]` | Dispatch the suite to the HyperExecute grid instead of local Chrome / local devices (default backend `hyper`); needs `kane-cli plugin install remote-execution` — §Remote | off |
| `--device-name <name>` | Device for the mobile members: as `kane-cli devices list --target <kind>` prints it locally, or a grid catalog device (`devices list … --remote`) with `--remote`; for real-device members a name or pattern from `devices list --target android\|ios --remote`. Validated before dispatch | members' `device_name:` (real devices: else the hub picks) |
| `--os-version <version>` | OS version for the mobile members (`14`, `17.5`); alone = any device on that version | members' `os_version:` |
| `--tunnel` / `--tunnel-name <name>` | *(0.10.3+)* Real-device members route through the person's running LT tunnel, to reach a private or local backend; the name implies `--tunnel`. With `--remote`, LT must be started with `--env ht-prod`. `references/mobile.md` §A private or local backend | off |
| `--tunnel` / `--tunnel-name <name>` | *(0.10.3+)* Real-device members route through the person's running LT tunnel, to reach a private or local backend; the name implies `--tunnel`. Web, emulator and simulator members ignore it (real devices only). With `--remote`, LT must be started with `--env ht-prod`. `references/mobile.md` §A private or local backend | off |
| `--username` / `--access-key` | Basic auth | active profile |
| `--policy <file>` | (after 0.10.0-rc.3) Judge the suite's sealed pack against this policy YAML (repeatable; never comma-join). Linted after the plan, dry run too: an error is exit 2 before anything runs. With `--remote` the laptop judges the consolidated pack. `references/policy.md` | — |
| `--policy-id <id>` | (after 0.10.0-rc.3) The same with a Test Manager policy, latest version (repeatable; id from `kane-cli policy list --agent`) | — |
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/kane-cli/references/mobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ When the app under test talks to a backend on `localhost`, a staging host behind
| `run` / `testmd run` / `testrun run` from this machine | `LT --user "$LT_USERNAME" --key "$LT_ACCESS_KEY" --tunnelName <name>` (**no `--env`**) |
| `testrun run --remote` | `LT --user "$LT_USERNAME" --key "$LT_ACCESS_KEY" --env ht-prod --tunnelName <name>` |

(Explore is different: `explore run` always needs `--env ht-prod`, see `references/explore.md`.) Wait for them to say LT is connected.
Why `--remote` needs `ht-prod`: the device session is opened from a HyperExecute machine, which only finds tunnels started with `--env ht-prod`. A tunnel with no `--env` is refused on `--remote` even with no `--tunnel-name` (the hub says the tunnel is not running). (Explore is different: `explore run` always needs `--env ht-prod`, see `references/explore.md`.) Wait for them to say LT is connected.
3. **Run with the name:**

```bash
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/kane-cli/references/testrun.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ kane-cli testrun run [paths...] [flags] < /dev/null # NDJSON when stdin is not
| `--remote [backend]` | Dispatch the suite to the HyperExecute grid instead of local Chrome / local devices (default backend `hyper`); needs `kane-cli plugin install remote-execution` — §Remote | off |
| `--device-name <name>` | Device for the mobile members: as `kane-cli devices list --target <kind>` prints it locally, or a grid catalog device (`devices list … --remote`) with `--remote`; for real-device members a name or pattern from `devices list --target android\|ios --remote`. Validated before dispatch | members' `device_name:` (real devices: else the hub picks) |
| `--os-version <version>` | OS version for the mobile members (`14`, `17.5`); alone = any device on that version | members' `os_version:` |
| `--tunnel` / `--tunnel-name <name>` | *(0.10.3+)* Real-device members route through the person's running LT tunnel, to reach a private or local backend; the name implies `--tunnel`. With `--remote`, LT must be started with `--env ht-prod`. `references/mobile.md` §A private or local backend | off |
| `--tunnel` / `--tunnel-name <name>` | *(0.10.3+)* Real-device members route through the person's running LT tunnel, to reach a private or local backend; the name implies `--tunnel`. Web, emulator and simulator members ignore it (real devices only). With `--remote`, LT must be started with `--env ht-prod`. `references/mobile.md` §A private or local backend | off |
| `--username` / `--access-key` | Basic auth | active profile |
| `--policy <file>` | (after 0.10.0-rc.3) Judge the suite's sealed pack against this policy YAML (repeatable; never comma-join). Linted after the plan, dry run too: an error is exit 2 before anything runs. With `--remote` the laptop judges the consolidated pack. `references/policy.md` | — |
| `--policy-id <id>` | (after 0.10.0-rc.3) The same with a Test Manager policy, latest version (repeatable; id from `kane-cli policy list --agent`) | — |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ TUI slash commands (`/run`, `/mobile`, `/desktop`, `/doctor`, `/login`, `/logout
| `--os-version <version>` | none | The device's OS version (`15`, `17.5`); alone = any device on that version. |
| `--app <path\|APPid>` | none | App under test for a mobile run: a build (`.apk` for emulator, `.zip` for simulator, `.apk`/`.aab` for android, `.ipa` for ios) or an uploaded `APP…` id. |
| `--no-stream` | off | Real devices: don't open the device's live view for this run. |
| `--tunnel` | off | Real devices: route the device's traffic through your running LT tunnel, to reach a private or local backend. |
| `--tunnel-name <name>` | your one running tunnel | Real devices: the LT tunnel to use, by its `--tunnelName`. Turns `--tunnel` on. |
| `--tunnel` | off | Real devices only (`--target android\|ios`): route the device's traffic through your running LT tunnel, to reach a private or local backend. Ignored on `desktop`, `emulator` and `simulator`. |
| `--tunnel-name <name>` | your one running tunnel | Real devices only: the LT tunnel to use, by its `--tunnelName`. Turns `--tunnel` on. |
| `--bug-detection <mode>` | config value, otherwise `off` | Detect product bugs while authoring: `off`/`stop`/`continue` (`stop` halts on a confirmed bug; `continue` records it and keeps going). |
| `--cdp-endpoint <url>` | none | Connect to an existing Chrome via the Chrome DevTools Protocol. |
| `--ws-endpoint <url>` | none | Connect to a Playwright WebSocket endpoint (e.g. TestmuAI `wss://`) — a remote browser for a run that still executes here. To move a whole suite to the grid, use `testrun run --remote`. |
Expand Down
3 changes: 3 additions & 0 deletions docs/user-guide/mobile/real-device.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ kane-cli never starts or stops the tunnel. You run it in your own terminal, so y
- **`--tunnel-name` must match `--tunnelName`** from step 2, and it turns the tunnel on. With only one tunnel running,
`--tunnel` alone is enough: the device uses your one running tunnel.
- **Every member uses it.** On `testrun run`, the tunnel applies to every real-device member, locally and on the grid.
- **On the grid, use `--env ht-prod`.** With `--remote`, the device's session is opened from a HyperExecute machine,
and it only finds tunnels started with `--env ht-prod`. A tunnel started without it is refused, with or without
`--tunnel-name`.
- **On the grid, name it.** With `--remote` and `--tunnel-name`, the cloud checks that the tunnel is up before the job
starts, so a missing tunnel fails fast instead of mid-run.
- **Keep the tunnel and your machine up** until the run ends. If the tunnel drops, the app stops reaching its backend.
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/running-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ The mobile run flags:
- `--device-name <name>` + `--os-version <version>`: pick a device as `kane-cli devices list --target emulator|simulator` prints it (on an emulator or simulator a name needs a version; a version alone matches any device on it; on a real device either one alone is enough, a name can be a pattern, and with neither the hub picks — list real devices with `kane-cli devices list --target android|ios --remote`). In the TUI/TTY, omitting them opens a one-time picker and the choice is saved; in non-interactive runs a device must already be set (via the flags or `kane-cli config set-device-name` / `set-os-version`) or the run exits with the fix spelled out.
- `--app <path|APPid>`: the app under test, required for every mobile run. Pass a build (emulator: `.apk`, simulator: `.zip`, android: `.apk` or `.aab`, ios: `.ipa`) or an uploaded app id (`APP` followed by six or more digits; `kane-cli apps list --target <kind>` lists yours). On the `desktop` target, the device flags and `--app` are ignored.
- `--no-stream`: on a real device, don't open its live view for this run (it opens in its own Chrome window by default at a terminal; never for agents).
- `--tunnel` / `--tunnel-name <name>`: on a real device, route the device's traffic through your running LT tunnel, so the app can reach a backend on `localhost` or your private network. `--tunnel-name` picks the tunnel by the name LT was started with, and turns the tunnel on; `--tunnel` alone uses your one running tunnel. See [A private or local backend](./mobile/real-device.md#a-private-or-local-backend-lt-tunnel).
- `--tunnel` / `--tunnel-name <name>`: on a real device, route the device's traffic through your running LT tunnel, so the app can reach a backend on `localhost` or your private network. `--tunnel-name` picks the tunnel by the name LT was started with, and turns the tunnel on; `--tunnel` alone uses your one running tunnel. Real devices only: on the `desktop`, `emulator` and `simulator` targets the tunnel flags are ignored, since Chrome and a local virtual device already reach your machine. To explore an app through a tunnel, see [Exploration](./exploration.md#an-app-on-localhost-or-a-private-network). See [A private or local backend](./mobile/real-device.md#a-private-or-local-backend-lt-tunnel).

In the interactive TUI, a first run offers a chooser of the targets this machine can run (a machine that can't run emulators or simulators sees Desktop / Android / iOS), and you can switch targets with `/mobile` and `/desktop` before the first dispatch; afterwards use `/new` before switching. Run `/doctor` to check mobile tooling and devices.

Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/testrun.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ kane-cli testrun run --match '^tests/devices/' --parallel 2
| `--remote [backend]` | Dispatch the suite to the cloud grid instead of local Chrome / local devices (default backend: `hyper`). Needs `kane-cli plugin install remote-execution`. See [Remote runs](./remote-execution.md) | off |
| `--device-name <name>` | Device for the suite's mobile members: as `kane-cli devices list` prints it locally, or a grid catalog device with `--remote` | member's `device_name:` |
| `--os-version <version>` | OS version for the mobile members (`14`, `17.5`); alone = any device on that version | member's `os_version:` |
| `--tunnel` / `--tunnel-name <name>` | *(0.10.3)* Real-device members route through your running LT tunnel, to reach a private or local backend. `--tunnel-name` turns it on. With `--remote`, start LT with `--env ht-prod`. See [A private or local backend](./mobile/real-device.md#a-private-or-local-backend-lt-tunnel) | off |
| `--tunnel` / `--tunnel-name <name>` | *(0.10.3)* Real-device members route through your running LT tunnel, to reach a private or local backend. `--tunnel-name` turns it on. Web, emulator and simulator members ignore it. With `--remote`, start LT with `--env ht-prod`. See [A private or local backend](./mobile/real-device.md#a-private-or-local-backend-lt-tunnel) | off |
| `--username <user>` / `--access-key <key>` | Basic auth (skips OAuth) | — |
| `--policy <file>` | *(next release after 0.10.0-rc.3)* Judge the suite's sealed pack against this policy YAML (repeatable). Linted before the run. See [Policies and verdicts](./policies.md) | — |
| `--policy-id <id>` | *(next release after 0.10.0-rc.3)* Judge it against a policy stored in Test Manager, latest version (repeatable; `kane-cli policy list`) | — |
Expand Down
2 changes: 1 addition & 1 deletion skill-installer/skills/references/mobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ When the app under test talks to a backend on `localhost`, a staging host behind
| `run` / `testmd run` / `testrun run` from this machine | `LT --user "$LT_USERNAME" --key "$LT_ACCESS_KEY" --tunnelName <name>` (**no `--env`**) |
| `testrun run --remote` | `LT --user "$LT_USERNAME" --key "$LT_ACCESS_KEY" --env ht-prod --tunnelName <name>` |

(Explore is different: `explore run` always needs `--env ht-prod`, see `references/explore.md`.) Wait for them to say LT is connected.
Why `--remote` needs `ht-prod`: the device session is opened from a HyperExecute machine, which only finds tunnels started with `--env ht-prod`. A tunnel with no `--env` is refused on `--remote` even with no `--tunnel-name` (the hub says the tunnel is not running). (Explore is different: `explore run` always needs `--env ht-prod`, see `references/explore.md`.) Wait for them to say LT is connected.
3. **Run with the name:**

```bash
Expand Down
2 changes: 1 addition & 1 deletion skill-installer/skills/references/testrun.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ kane-cli testrun run [paths...] [flags] < /dev/null # NDJSON when stdin is not
| `--remote [backend]` | Dispatch the suite to the HyperExecute grid instead of local Chrome / local devices (default backend `hyper`); needs `kane-cli plugin install remote-execution` — §Remote | off |
| `--device-name <name>` | Device for the mobile members: as `kane-cli devices list --target <kind>` prints it locally, or a grid catalog device (`devices list … --remote`) with `--remote`; for real-device members a name or pattern from `devices list --target android\|ios --remote`. Validated before dispatch | members' `device_name:` (real devices: else the hub picks) |
| `--os-version <version>` | OS version for the mobile members (`14`, `17.5`); alone = any device on that version | members' `os_version:` |
| `--tunnel` / `--tunnel-name <name>` | *(0.10.3+)* Real-device members route through the person's running LT tunnel, to reach a private or local backend; the name implies `--tunnel`. With `--remote`, LT must be started with `--env ht-prod`. `references/mobile.md` §A private or local backend | off |
| `--tunnel` / `--tunnel-name <name>` | *(0.10.3+)* Real-device members route through the person's running LT tunnel, to reach a private or local backend; the name implies `--tunnel`. Web, emulator and simulator members ignore it (real devices only). With `--remote`, LT must be started with `--env ht-prod`. `references/mobile.md` §A private or local backend | off |
| `--username` / `--access-key` | Basic auth | active profile |
| `--policy <file>` | (after 0.10.0-rc.3) Judge the suite's sealed pack against this policy YAML (repeatable; never comma-join). Linted after the plan, dry run too: an error is exit 2 before anything runs. With `--remote` the laptop judges the consolidated pack. `references/policy.md` | — |
| `--policy-id <id>` | (after 0.10.0-rc.3) The same with a Test Manager policy, latest version (repeatable; id from `kane-cli policy list --agent`) | — |
Expand Down
Loading