@testsprite/testsprite-cli 0.17.0 → 0.18.0

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/README.md +5 -4
  2. package/dist/commands/auth.js +2 -2
  3. package/dist/commands/conversation.js +52 -13
  4. package/dist/commands/project-env.js +48 -8
  5. package/dist/commands/project.d.ts +4 -0
  6. package/dist/commands/project.js +19 -2
  7. package/dist/commands/result.js +2 -1
  8. package/dist/commands/test.d.ts +9 -31
  9. package/dist/commands/test.js +73 -159
  10. package/dist/commands/testlist.d.ts +4 -2
  11. package/dist/commands/testlist.js +32 -4
  12. package/dist/commands/tunnel.d.ts +3 -3
  13. package/dist/commands/tunnel.js +3 -4
  14. package/dist/index.js +9 -6
  15. package/dist/lib/client-factory.d.ts +2 -2
  16. package/dist/lib/client-factory.js +3 -4
  17. package/dist/lib/conversation/api.d.ts +4 -0
  18. package/dist/lib/conversation/api.js +1 -0
  19. package/dist/lib/conversation/context.d.ts +10 -0
  20. package/dist/lib/conversation/context.js +17 -5
  21. package/dist/lib/conversation/environment.d.ts +3 -2
  22. package/dist/lib/conversation/environment.js +5 -17
  23. package/dist/lib/conversation/render.js +3 -0
  24. package/dist/lib/conversation/types.d.ts +2 -0
  25. package/dist/lib/download.d.ts +30 -1
  26. package/dist/lib/download.js +205 -71
  27. package/dist/lib/environment-tunnel.d.ts +3 -3
  28. package/dist/lib/environment-tunnel.js +9 -50
  29. package/dist/lib/first-suite-hint.d.ts +9 -13
  30. package/dist/lib/first-suite-hint.js +29 -35
  31. package/dist/lib/http.d.ts +1 -1
  32. package/dist/lib/http.js +5 -5
  33. package/dist/lib/local-target.d.ts +5 -4
  34. package/dist/lib/local-target.js +11 -10
  35. package/dist/lib/output.d.ts +1 -1
  36. package/dist/lib/output.js +2 -2
  37. package/dist/lib/presigned-url.js +2 -2
  38. package/dist/lib/removed-commands.js +17 -1
  39. package/dist/lib/result/evidence.d.ts +2 -0
  40. package/dist/lib/result/evidence.js +2 -0
  41. package/dist/lib/run-output.d.ts +3 -3
  42. package/dist/lib/target-url.d.ts +7 -7
  43. package/dist/lib/target-url.js +8 -8
  44. package/dist/lib/telemetry.d.ts +4 -4
  45. package/dist/lib/telemetry.js +1 -1
  46. package/dist/lib/transport-failure.js +2 -2
  47. package/dist/lib/tunnel-session.d.ts +1 -1
  48. package/dist/lib/tunnel-session.js +2 -2
  49. package/dist/version.d.ts +1 -1
  50. package/dist/version.js +1 -1
  51. package/package.json +1 -1
  52. package/skills/testsprite-ci.skill.md +4 -5
  53. package/skills/testsprite-onboard.skill.md +14 -12
  54. package/skills/testsprite-verify.codex.md +12 -14
  55. package/skills/testsprite-verify.skill.md +19 -21
@@ -42,8 +42,8 @@ export interface TelemetryOutcomeInput extends Partial<WaitTimeoutTelemetry> {
42
42
  output?: string;
43
43
  dryRun?: boolean;
44
44
  /**
45
- * True when --local was present, including refusals and borrowed tunnels,
46
- * or when this invocation automatically opened a saved-environment tunnel.
45
+ * True when --local was present (project env create), including refusals,
46
+ * or when this invocation opened a tunnel to a local environment.
47
47
  */
48
48
  local?: boolean;
49
49
  }
@@ -172,7 +172,7 @@ export declare function sanitizeTelemetryExtras(partial: TelemetryExtrasInput):
172
172
  * never widen the wire contract from here.
173
173
  */
174
174
  export declare function recordTelemetryExtras(partial: TelemetryExtrasInput): void;
175
- /** Extend explicit --local telemetry to commands that automatically open a tunnel. */
175
+ /** Extend explicit --local telemetry to commands that open a tunnel to a local environment. */
176
176
  export declare function recordTelemetryTunnelOpened(opened: boolean): void;
177
177
  /** Return everything recorded so far and clear the sink (one event per process). */
178
178
  export declare function takeTelemetryExtras(): TelemetryExtras;
@@ -219,7 +219,7 @@ export interface TelemetryEvent extends Partial<WaitTimeoutTelemetry>, Telemetry
219
219
  nodeVersion?: string;
220
220
  output?: string;
221
221
  ci?: boolean;
222
- /** Present (always `true`) for --local attempts or automatically opened tunnels. */
222
+ /** Present (always `true`) for --local attempts or runs that opened a tunnel. */
223
223
  local?: boolean;
224
224
  /** The validated `TESTSPRITE_CLIENT` tag (e.g. `github-action/v1`); absent when unset/invalid. */
225
225
  client?: string;
@@ -222,7 +222,7 @@ let pendingExtras = {};
222
222
  export function recordTelemetryExtras(partial) {
223
223
  pendingExtras = { ...pendingExtras, ...sanitizeTelemetryExtras(partial) };
224
224
  }
225
- /** Extend explicit --local telemetry to commands that automatically open a tunnel. */
225
+ /** Extend explicit --local telemetry to commands that open a tunnel to a local environment. */
226
226
  export function recordTelemetryTunnelOpened(opened) {
227
227
  if (opened)
228
228
  recordTelemetryExtras({ local: true });
@@ -115,10 +115,10 @@ export function classifyFatalTransportFailure(error, targetUrl) {
115
115
  return {
116
116
  cause: hostname,
117
117
  message: `TLS certificate verification failed for ${host} (${hostname}): the certificate is not ` +
118
- 'valid for that host. A wrong --endpoint-url / TESTSPRITE_API_URL or corporate TLS ' +
118
+ 'valid for that host. A wrong host or corporate TLS ' +
119
119
  "interception is the usual cause; set NODE_EXTRA_CA_CERTS to your organisation's CA " +
120
120
  'bundle if your network re-signs TLS.',
121
- nextAction: `Check --endpoint-url / TESTSPRITE_API_URL. ${TLS_NEXT_ACTION}`,
121
+ nextAction: `Check that ${host} is the host you expect. ${TLS_NEXT_ACTION}`,
122
122
  };
123
123
  }
124
124
  return undefined;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Lifecycle of one `--local` tunnel: mint → connect → (run) → tear down.
2
+ * Lifecycle of one local-environment tunnel: mint → connect → (run) → tear down.
3
3
  *
4
4
  * The credential handling is the point of this module, so it is stated once
5
5
  * here rather than repeated at every line that touches it. The secret returned
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Lifecycle of one `--local` tunnel: mint → connect → (run) → tear down.
2
+ * Lifecycle of one local-environment tunnel: mint → connect → (run) → tear down.
3
3
  *
4
4
  * The credential handling is the point of this module, so it is stated once
5
5
  * here rather than repeated at every line that touches it. The secret returned
@@ -238,7 +238,7 @@ export async function openTunnelSession(options, deps) {
238
238
  ...(minted.tunnelTlsAddr !== undefined ? { tunnelTlsAddr: minted.tunnelTlsAddr } : {}),
239
239
  dataPlaneRetryDeadlineMs: DEFAULT_DATA_PLANE_RETRY_DEADLINE_MS,
240
240
  logLevel: options.logLevel ?? 'error',
241
- // Never opened up. The point of `--local` is the caller's own loopback;
241
+ // Never opened up. The point of the tunnel is the caller's own loopback;
242
242
  // a run that pivots into the rest of their network is the failure this
243
243
  // rail exists to stop. Loopback and public targets are unaffected.
244
244
  allowPrivateNetworkTarget: false,
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.17.0";
1
+ export declare const VERSION = "0.18.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // AUTO-GENERATED by scripts/generate-version.mjs — do not edit by hand.
2
2
  // Run `npm run build` (or `npm run generate:version`) to regenerate.
3
- export const VERSION = '0.17.0';
3
+ export const VERSION = '0.18.0';
4
4
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testsprite/testsprite-cli",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Official TestSprite command-line interface",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -115,8 +115,7 @@ gh secret set TESTSPRITE_API_KEY # paste when prompted, or pipe on stdin
115
115
  ```
116
116
 
117
117
  (`ci init github --set-secret` does the same.) Never put the key in argv, YAML or
118
- logs. A non-production endpoint goes in the workflow `env:` as `TESTSPRITE_API_URL`.
119
- B also needs the platform's deploy token as a secret.
118
+ logs. B also needs the platform's deploy token as a secret.
120
119
 
121
120
  ## 5. Preflight, then prove it on one real pull request
122
121
 
@@ -170,9 +169,9 @@ deployments are filtered out by the `if:`).
170
169
  URL) — which in a pull request is the preview, because `ci run --env X --target-url U`
171
170
  runs in a `github-pr-<N>` clone of X at U. Outside a pull request they use the environment's
172
171
  own URL (`--env`'s, or the default's). A hard-coded URL is left as is and always tests that address.
173
- - Testing `ci run` locally: a shell that exports `TESTSPRITE_API_URL` or
174
- `TESTSPRITE_API_KEY` overrides `--profile` — a `fetch failed` against a healthy API is
175
- usually that. Check `env | grep TESTSPRITE_` first.
172
+ - Testing `ci run` locally: a shell that exports `TESTSPRITE_API_KEY` overrides the
173
+ key `--profile` selects — an unexpected auth failure is usually that. Check
174
+ which are set first, without printing the key: `env | grep -o '^TESTSPRITE_[A-Z_]*'`.
176
175
 
177
176
  ## Don'ts
178
177
 
@@ -63,12 +63,13 @@ testsprite project env create <projectId> --name default --url <app-url> \
63
63
  Local frontend (start the app first):
64
64
 
65
65
  ```bash
66
- testsprite project env create <projectId> --name local --local <port>
66
+ testsprite project env create <projectId> --name local --url http://localhost:<port>
67
67
  ```
68
68
 
69
- `--local` stores `http://localhost:<port>`; `--url http://127.0.0.1:<port>` or
70
- `http://[::1]:<port>` keeps another loopback host. Reuse that host on runs with
71
- `--local-host`; omit it for `localhost`. Dead port: exit 5 (`--skip-preflight` bypasses).
69
+ `--url` also takes `http://127.0.0.1:<port>` or `http://[::1]:<port>`, and the app's
70
+ entry path may follow (`--url http://localhost:<port>/app`); `--local <port>` is shorthand
71
+ for `--url http://localhost:<port>`. Dead port: exit 5 (`--skip-preflight` bypasses).
72
+ A backend project can't be local: its environment must point at a publicly deployed API.
72
73
  Local runs work on Free and need `run:tunnel` (mint a new key if missing).
73
74
 
74
75
  With a frontend test account, the cloud agent logs in through the tunnel using the
@@ -98,8 +99,9 @@ testsprite plan "Seed a first suite: <the 4–8 flows from step 1>" --project <p
98
99
  [--file ./openapi.yaml] [--file ./prd.md] [--diff] --output json
99
100
  ```
100
101
 
101
- - Frontend: the agent explores the deployed app in a real browser. A local project's app
102
- can't be opened from the cloud: attach your change (`--diff`) and the agent works from it.
102
+ - Frontend: the agent explores the app in a real browser. An app on this machine is reached
103
+ through a tunnel: when the agent asks for one, run `testsprite tunnel start` in another
104
+ terminal and `testsprite reply "The tunnel is running."`.
103
105
  - `"state": "replied"` → read `reply`; answer from the code what you can with
104
106
  `testsprite reply "..."`, ask the user only what only they know.
105
107
  - Exit 7: still working; `testsprite status --wait` follows it.
@@ -129,15 +131,15 @@ and run only those:
129
131
 
130
132
  ```bash
131
133
  testsprite run <test-id> --wait # deployed target
132
- testsprite run <test-id> --local <port> --local-host <host> # local frontend
134
+ testsprite run <test-id> --env local # local frontend
133
135
  ```
134
136
 
135
137
  Do **not** run the whole suite automatically. Frontend runs, including local runs,
136
138
  cost 0.5 credit each; check `testsprite usage` before sizing the suite.
137
- Local runs wait (1200 s each). Put several in ONE `run <id> <id> --local <port>`
139
+ Local runs wait (1200 s each). Put several in ONE `run <id> <id> --env local`
138
140
  (one tunnel, 5 at a time; each process holds 1 of 5 tunnel slots). Keep the stderr
139
141
  `Run <run-id>` receipt. An owned local timeout cancels by default: start a new run with
140
- `--local <port> --local-host <host> --timeout 1800` (same host), not `run wait`. For a frontend test cancelled before a terminal verdict the server attempts a refund; read the reported `refund`.
142
+ `--env local --timeout 1800`, not `run wait`. For a frontend test cancelled before a terminal verdict the server attempts a refund; read the reported `refund`.
141
143
 
142
144
  ### 5. Report
143
145
 
@@ -147,12 +149,12 @@ Tell the user, plainly:
147
149
  - "I smoke-ran **M** — here's the result: <pass/fail + the dashboard link from the run output>."
148
150
  - "To run the rest (≈X credits, so they choose knowingly):
149
151
  - frontend — use `run <test-id> --wait` for deployed targets or
150
- `run --project <id> --local <port> --local-host <host>` for local targets;
152
+ `run --project <id> --env local` for local targets;
151
153
  - backend — `testsprite run --project <id>` (wave-ordered, runs every BE test)."
152
154
 
153
155
  ## Quality checklist (self-check before reporting done)
154
156
 
155
- - [ ] FE project has a public `--url` or uses `--local`; login configured if needed.
157
+ - [ ] FE project has a public or local (`http://localhost:<port>`) `--url`; login configured if needed.
156
158
  - [ ] API project: the API spec attached to the request (a PRD is optional, alongside it).
157
159
  - [ ] You **read the plan** and rejected or excluded the tests that don't fit,
158
160
  rather than applying it unseen.
@@ -166,7 +168,7 @@ Tell the user, plainly:
166
168
  - Don't auto-run the full suite (credit wall / surprise 402).
167
169
  - Don't apply narrative assertions an AI judge can't fail.
168
170
  - Don't call backend endpoints directly — only the `testsprite` CLI.
169
- - Don't create a FE project without public `--url` or `--local <port>`.
171
+ - Don't create a FE project without a public or local (`http://localhost:<port>`) `--url`.
170
172
  - Don't apply a plan unread — reviewing it is the point of the proposal.
171
173
  - Don't write or edit tests yourself — ask the agent (`reply`, `reject`, or a new `plan`).
172
174
 
@@ -18,10 +18,10 @@ For a local app without a project:
18
18
 
19
19
  ```bash
20
20
  testsprite project create --type frontend --name "<repo name>"
21
- testsprite project env create <projectId> --name local --local <port>
21
+ testsprite project env create <projectId> --name local --url http://localhost:<port>
22
22
  testsprite plan "<what you built>" --diff --project <projectId>
23
23
  testsprite apply
24
- testsprite run --project <projectId> --wait --local <port> --local-host <host> --output json
24
+ testsprite run --project <projectId> --env local --output json
25
25
  ```
26
26
 
27
27
  Portal runs of a local environment are blocked free until a public environment is
@@ -31,8 +31,8 @@ For a deployed app, `project env create … --url` is the only environment neede
31
31
  ## 2. Run against the change
32
32
 
33
33
  The CLI does not host apps. Create a deployed environment once; select it with
34
- `--env <name>` or omit for Default. Unknown names list valid names. Use `--local
35
- <port>` for local FE runs.
34
+ `--env <name>` or omit for Default. Unknown names list valid names. A local
35
+ environment opens a tunnel from this machine (FE only).
36
36
 
37
37
  You don't write or edit tests. New tests (frontend or backend): ask the
38
38
  project's agent, show the user its plan, apply it, run the saved ids. A test
@@ -55,13 +55,11 @@ testsprite run <test-id> --testlist <listId> --wait
55
55
  ```
56
56
 
57
57
  - Supported backends grant existing keys `run:tunnel`; a narrowed key without it
58
- exits 3. Free-plan local runs work. BE cannot use `--local`.
59
- - `--local` implies `--wait` (shared 1200 s deadline; public: 600). `--local-host`:
60
- `localhost`, `127.0.0.1`, `::1`. A dead port exits 5 before charge;
61
- `--skip-preflight` skips the probe. Environment `--url` rejects private (non-loopback) hosts.
62
- `--local` selects/creates `local-<port>`; `--env` keeps its sign-in settings.
63
- `--target-url` cannot combine with `--local`.
64
- - Run local ids together in one `run`; `run --project <id> --local <port>` skips BE tests. One run per project, one tunnel, 5 tests at once per execution by default
58
+ exits 3. Free-plan local runs work. BE cannot run through a tunnel.
59
+ - A tunnel run implies `--wait` (shared 1200 s deadline; public: 600). A dead port exits 5 before charge;
60
+ `--skip-preflight` skips the probe. Environment `--url` rejects private (non-loopback) hosts;
61
+ the app's entry path may follow the port. `--env` keeps its sign-in settings.
62
+ - Run local ids together in one `run`; `run --project <id> --env local` skips BE tests. One run per project, one tunnel, 5 tests at once per execution by default
65
63
  (`--max-concurrency` 1–15, a server dispatch cap only). Each distinct run is waited on independently. Five live bindings per user; `tunnel_binding_limit`
66
64
  exits 11 without retry. Use `tunnel list` then `tunnel stop <id>` or `--all --confirm`.
67
65
  - Keep each run's `Run <id>` line and its stdout `Dashboard:` link (a no-wait `--testlist` launch has none until `run wait`). All waits return `runs[].runId`,
@@ -71,10 +69,10 @@ testsprite run <test-id> --testlist <listId> --wait
71
69
  closes the tunnel. Before a terminal FE verdict, the backend attempts a refund;
72
70
  check `refund.status`: cancellation does not guarantee a refund.
73
71
  `--no-cancel-on-interrupt` detaches, but the owned tunnel still closes.
74
- - After an owned timeout, start a **new** `run <test-id> --local <port>
75
- --timeout 1800` (retain `--local-host`). `run wait` cannot reopen the tunnel;
72
+ - After an owned timeout, start a **new** `run <test-id> --env <name>
73
+ --timeout 1800`. `run wait` cannot reopen the tunnel;
76
74
  ordinary/adopted waits can resume with `run wait <run-id>` if reachable.
77
- - Keep `tunnel start` alive; borrow with `--local <port> --tunnel-client <uuid>`.
75
+ - Keep `tunnel start` alive; borrow with `--env <name> --tunnel-client <uuid>`.
78
76
  Adopted runs normally detach without cancellation or closing the owner's tunnel.
79
77
  If the owner has disappeared during a run, cancellation is requested by default;
80
78
  `--no-cancel-on-interrupt` skips it. A second connection with the same credential
@@ -23,14 +23,14 @@ deploy the preview/staging environment). Create a named environment for its
23
23
  public URL once, then select it with `--env <name>` on runs. Running earlier
24
24
  verifies the previous build, not your change.
25
25
 
26
- For a change that is only running locally, don't wait for a deployment: run
27
- `testsprite run <test-id> --local <port>` instead. It tunnels this
26
+ For a change that is only running locally, don't wait for a deployment: save the
27
+ app on this machine as an environment (`testsprite project env create <projectId> --name local --url http://localhost:<port>`)
28
+ and run on it with `testsprite run <test-id> --env local`. The run tunnels this
28
29
  machine's own loopback address (`localhost` / `127.0.0.1` / `::1` — not a LAN
29
30
  or RFC1918 address, and not a general local-network escape hatch) to the test
30
31
  runner. It is for frontend tests only (a backend test reaches its API over HTTP from
31
32
  the runner, so run it normally against a deployed environment). Existing API keys work for local runs; no replacement key is
32
- needed. To use a saved environment's sign-in against the local app, pass
33
- `--env <name> --local <port>`. Check the name with
33
+ needed. The environment's sign-in settings apply to the local app. Check the name with
34
34
  `testsprite project env list <projectId>`.
35
35
 
36
36
  If the user explicitly named a tool (the CLI or the MCP), honor that choice
@@ -99,18 +99,18 @@ ask the agent for tests, and run the ids `apply` saved:
99
99
 
100
100
  ```bash
101
101
  testsprite project create --type frontend --name "<repo name>"
102
- testsprite project env create <projectId> --name local --local <port>
102
+ testsprite project env create <projectId> --name local --url http://localhost:<port>
103
103
  testsprite plan "<what you built>" --diff --project <projectId> --output json
104
104
  testsprite apply --output json
105
- testsprite run <id> <id> --local <port> --local-host <host> --output json
105
+ testsprite run <id> <id> --env local --output json
106
106
  ```
107
107
 
108
- Keep the app listening and use the same `--local-host` for creation and follow-up
109
- runs. It selects both the probe and stored URL host: `localhost`, `127.0.0.1`
110
- (default), or `::1`; omit it in both commands to use the default.
108
+ Keep the app listening: a run on the `local` environment opens a tunnel from this
109
+ machine, and the agent explores the app through one too — when it asks for a
110
+ tunnel, run `testsprite tunnel start` in another terminal and
111
+ `testsprite reply "The tunnel is running."`.
111
112
  The port probe fails with exit 5 if nothing listens (`--skip-preflight`
112
- bypasses it). The agent's browser can't open an app on this machine, so it works
113
- from your change (`--diff`) and the project's other environments.
113
+ bypasses it).
114
114
  The Portal shows local environments without a Run action. Create a public
115
115
  environment for deployed apps and select it with `--env <name>`.
116
116
 
@@ -159,8 +159,9 @@ testsprite run <test-id...> --wait --output json # the ids apply saved, in "ap
159
159
  - Exit 7: the agent is still working; `testsprite status --wait` follows it.
160
160
  Exit 13: the agent isn't enabled for this account; tell the user and stop —
161
161
  the CLI has no other way to write tests.
162
- - For an app only on this machine, the agent works from your change and the
163
- project's other environments; run what it saved with `--local <port>`.
162
+ - For an app only on this machine, the agent explores it through a tunnel: when it
163
+ asks for one, run `testsprite tunnel start` in another terminal and reply. Run
164
+ what it saved with `--env <name>`.
164
165
  - When you open the pull request, put `prSummary` from the `apply` output in its
165
166
  description, so reviewers see the tests that now guard the change.
166
167
 
@@ -204,7 +205,7 @@ Drifted steps are healed during a run; a wrong expectation needs the agent.
204
205
  For a deployed target, create its environment once, then use `--env <name>`
205
206
  after that deployment contains the change. Omit `--env` for Default; an unknown
206
207
  name fails with available names and never falls back. For a local change,
207
- use `testsprite run <test-id> --local <port>` (frontend only); it implies
208
+ run on the local environment, `testsprite run <test-id> --env <name>` (frontend only); it implies
208
209
  waiting and defaults to 1200 seconds.
209
210
 
210
211
  For a long `--wait` or a local run, start the CLI as a background task in your
@@ -259,13 +260,11 @@ Key behaviors:
259
260
  - Environment `--url` takes a public http/https URL or a loopback http origin
260
261
  with an explicit port (frontend only); private and link-local addresses are
261
262
  refused. Running against a loopback environment opens a tunnel automatically
262
- and waits, like `--local <port>`. `--env <name> --local <port>` sends that
263
- environment's sign-in to your local app; the server applies it or refuses
264
- before dispatch.
263
+ and waits. `run` takes no `--target-url`: a run's address is its environment's.
265
264
  - `--wait` reads execution status until terminal and handles its own backoff — don't wrap it
266
265
  in a retry loop.
267
- - `--local` implies `--wait`, with a default timeout of 1200 seconds for the command (ordinary
268
- waits default to 600). Run several local frontend tests in ONE command (`run <id> <id> … --local <port>`) instead of starting one process per test. `run --project <id> --local <port>` runs frontend tests and reports backend tests as skipped. They start one run per project (up to 5000 named test IDs per request) through one tunnel; `--max-concurrency` sets the server dispatch limit per execution, default 5 and maximum 15. Each execution is waited on independently; this limit never queues polling. There are
266
+ - A tunnel run implies `--wait`, with a default timeout of 1200 seconds for the command (ordinary
267
+ waits default to 600). Run several local frontend tests in ONE command (`run <id> <id> … --env <name>`) instead of starting one process per test. `run --project <id> --env <name>` runs frontend tests and reports backend tests as skipped. They start one run per project (up to 5000 named test IDs per request) through one tunnel; `--max-concurrency` sets the server dispatch limit per execution, default 5 and maximum 15. Each execution is waited on independently; this limit never queues polling. There are
269
268
  5 live tunnel bindings per user; `tunnel_binding_limit` is exit 11 and is not
270
269
  auto-retried. Reuse a live tunnel with `--tunnel-client` or stop an unused one.
271
270
  On a tunnel-limit error, run `testsprite tunnel list`, then `testsprite tunnel stop <id>`
@@ -291,8 +290,7 @@ Key behaviors:
291
290
  A second `tunnel start` or process using the same credential takes over, and the first exits **10**.
292
291
  - Exit codes: `0` = passed; `1` = failed / blocked / cancelled; `7` = timeout
293
292
  or unsupported. An owned local timeout is inconclusive: start a **new**
294
- `testsprite run <test-id> --local <port> --timeout 1800`, keeping the same
295
- `--local-host <host>` if used; do not suggest `run wait` for that closed tunnel. Resume **ordinary or adopted-tunnel**
293
+ `testsprite run <test-id> --env <name> --timeout 1800`; do not suggest `run wait` for that closed tunnel. Resume **ordinary or adopted-tunnel**
296
294
  waits with `testsprite run wait <run-id>` only while the target is reachable
297
295
  (and the adopted tunnel's owner remains alive).
298
296
  - Exit `13` (`FEATURE_GATED`) and exit `12` (`INSUFFICIENT_CREDITS`) are not retriable: show the user the server's message and the link from `nextAction` or JSON `links`, then stop.