diff --git a/.agents/skills/kane-cli/references/mobile.md b/.agents/skills/kane-cli/references/mobile.md index 9ff53a5..6ce7e01 100644 --- a/.agents/skills/kane-cli/references/mobile.md +++ b/.agents/skills/kane-cli/references/mobile.md @@ -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 ` (**no `--env`**) | | `testrun run --remote` | `LT --user "$LT_USERNAME" --key "$LT_ACCESS_KEY" --env ht-prod --tunnelName ` | - (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 diff --git a/.agents/skills/kane-cli/references/testrun.md b/.agents/skills/kane-cli/references/testrun.md index ba29f3c..5053937 100644 --- a/.agents/skills/kane-cli/references/testrun.md +++ b/.agents/skills/kane-cli/references/testrun.md @@ -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 ` | Device for the mobile members: as `kane-cli devices list --target ` 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 ` | OS version for the mobile members (`14`, `17.5`); alone = any device on that version | members' `os_version:` | -| `--tunnel` / `--tunnel-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 ` | *(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 ` | (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 ` | (after 0.10.0-rc.3) The same with a Test Manager policy, latest version (repeatable; id from `kane-cli policy list --agent`) | — | diff --git a/.claude/skills/kane-cli/references/mobile.md b/.claude/skills/kane-cli/references/mobile.md index 9ff53a5..6ce7e01 100644 --- a/.claude/skills/kane-cli/references/mobile.md +++ b/.claude/skills/kane-cli/references/mobile.md @@ -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 ` (**no `--env`**) | | `testrun run --remote` | `LT --user "$LT_USERNAME" --key "$LT_ACCESS_KEY" --env ht-prod --tunnelName ` | - (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 diff --git a/.claude/skills/kane-cli/references/testrun.md b/.claude/skills/kane-cli/references/testrun.md index ba29f3c..5053937 100644 --- a/.claude/skills/kane-cli/references/testrun.md +++ b/.claude/skills/kane-cli/references/testrun.md @@ -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 ` | Device for the mobile members: as `kane-cli devices list --target ` 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 ` | OS version for the mobile members (`14`, `17.5`); alone = any device on that version | members' `os_version:` | -| `--tunnel` / `--tunnel-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 ` | *(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 ` | (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 ` | (after 0.10.0-rc.3) The same with a Test Manager policy, latest version (repeatable; id from `kane-cli policy list --agent`) | — | diff --git a/README.md b/README.md index 4eea5db..8842c02 100644 --- a/README.md +++ b/README.md @@ -359,8 +359,8 @@ TUI slash commands (`/run`, `/mobile`, `/desktop`, `/doctor`, `/login`, `/logout | `--os-version ` | none | The device's OS version (`15`, `17.5`); alone = any device on that version. | | `--app ` | 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 ` | 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 ` | your one running tunnel | Real devices only: the LT tunnel to use, by its `--tunnelName`. Turns `--tunnel` on. | | `--bug-detection ` | 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 ` | none | Connect to an existing Chrome via the Chrome DevTools Protocol. | | `--ws-endpoint ` | 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`. | diff --git a/docs/user-guide/mobile/real-device.md b/docs/user-guide/mobile/real-device.md index 198b330..a4e8245 100644 --- a/docs/user-guide/mobile/real-device.md +++ b/docs/user-guide/mobile/real-device.md @@ -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. diff --git a/docs/user-guide/running-tests.md b/docs/user-guide/running-tests.md index 3253ebd..31dcaeb 100644 --- a/docs/user-guide/running-tests.md +++ b/docs/user-guide/running-tests.md @@ -235,7 +235,7 @@ The mobile run flags: - `--device-name ` + `--os-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 `: 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 ` 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 `: 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 `: 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. diff --git a/docs/user-guide/testrun.md b/docs/user-guide/testrun.md index 0fca5ab..bf0ebca 100644 --- a/docs/user-guide/testrun.md +++ b/docs/user-guide/testrun.md @@ -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 ` | 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 ` | OS version for the mobile members (`14`, `17.5`); alone = any device on that version | member's `os_version:` | -| `--tunnel` / `--tunnel-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 ` | *(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 ` / `--access-key ` | Basic auth (skips OAuth) | — | | `--policy ` | *(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 ` | *(next release after 0.10.0-rc.3)* Judge it against a policy stored in Test Manager, latest version (repeatable; `kane-cli policy list`) | — | diff --git a/skill-installer/skills/references/mobile.md b/skill-installer/skills/references/mobile.md index 9ff53a5..6ce7e01 100644 --- a/skill-installer/skills/references/mobile.md +++ b/skill-installer/skills/references/mobile.md @@ -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 ` (**no `--env`**) | | `testrun run --remote` | `LT --user "$LT_USERNAME" --key "$LT_ACCESS_KEY" --env ht-prod --tunnelName ` | - (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 diff --git a/skill-installer/skills/references/testrun.md b/skill-installer/skills/references/testrun.md index ba29f3c..5053937 100644 --- a/skill-installer/skills/references/testrun.md +++ b/skill-installer/skills/references/testrun.md @@ -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 ` | Device for the mobile members: as `kane-cli devices list --target ` 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 ` | OS version for the mobile members (`14`, `17.5`); alone = any device on that version | members' `os_version:` | -| `--tunnel` / `--tunnel-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 ` | *(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 ` | (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 ` | (after 0.10.0-rc.3) The same with a Test Manager policy, latest version (repeatable; id from `kane-cli policy list --agent`) | — |