@qawolf/cli 1.32.0 → 1.34.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.
package/README.md CHANGED
@@ -113,7 +113,31 @@ const submitted = await runner.run({
113
113
  if (submitted.ok) console.log(submitted.value.runId, submitted.value.fileSync);
114
114
  ```
115
115
 
116
- `ok: false` is a transport or auth failure. A runner that refused the request comes back as `ok: true` with `value.outcome === "failure"` and a `failureReason` from the published contract, so a caller can switch on it exhaustively.
116
+ `ok: false` reports a request failure, including transport, auth, or local validation. A runner that refused the request comes back as `ok: true` with an outcome and `failureReason` from the published contract, so a caller can switch on it exhaustively. Most verbs expose `value.outcome`; recording controls expose `value.result.outcome` and a history `value.url`.
117
+
118
+ Control video recording on a Playwright runner after a flow has started its screen:
119
+
120
+ ```ts
121
+ const recordingId = crypto.randomUUID();
122
+ const recording = await runner.record({
123
+ runnerId: "agent-1",
124
+ command: { action: "start", recordingId },
125
+ });
126
+ if (recording.ok && recording.value.result.outcome === "success") {
127
+ // Drive the browser, then stop this specific capture.
128
+ await runner.record({
129
+ runnerId: "agent-1",
130
+ command: { action: "stop", recordingId },
131
+ });
132
+ }
133
+
134
+ // History remains readable after the runner terminates.
135
+ const history = await runner.listRecordings({ runnerId: "agent-1" });
136
+ if (history.ok)
137
+ console.log(history.value.recordings, history.value.nextPageToken);
138
+ ```
139
+
140
+ `record` also accepts `{ action: "status" }` and `{ action: "auto", enabled: true }` (or `false`). Keep the UUID when retrying start or stop. `listRecordings` accepts optional `recordingId` and `pageToken` filters and returns one page, with stable platform URLs and expiring video URLs. The equivalent CLI commands are `qawolf runner record start|stop|status|auto` and `qawolf runner list-recordings`; see the [runner reference](skills/qawolf-cli/references/runner.md#video-recording).
117
141
 
118
142
  ## Reference
119
143