@verirun/cli 0.2.4 → 0.2.5

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/man/verirun.1 CHANGED
@@ -1,5 +1,5 @@
1
1
  .\" Manpage for verirun.
2
- .TH VERIRUN 1 "2026-09-21" "verirun 0.2.4" "User Commands"
2
+ .TH VERIRUN 1 "2026-09-23" "verirun 0.2.5" "User Commands"
3
3
  .\" -------------------------------------------------------------------
4
4
  .SH NAME
5
5
  verirun \- record a browser workflow, replay it, and capture the backend logs it produced
@@ -31,6 +31,8 @@ verirun \- record a browser workflow, replay it, and capture the backend logs it
31
31
  .IR channel ]
32
32
  .RB [ \-\-cdp
33
33
  .IR url ]
34
+ .RB [ \-\-dialog
35
+ .IR answer ]
34
36
  .br
35
37
  .B verirun map
36
38
  .RB [ \-\-json ]
@@ -98,7 +100,12 @@ click, type, navigate \(em then
98
100
  to save the sequence to
99
101
  .IR .verirun/workflows/ name .json .
100
102
  Closing without doing anything saves nothing. A text field is only captured
101
- when it loses focus, so tab out of the last field before closing.
103
+ when it loses focus, so tab out of the last field before closing. Answer any
104
+ alert, confirm or prompt dialog as usual; afterwards
105
+ .B record
106
+ asks, for each step that opened one, whether you pressed OK or Cancel, and
107
+ saves the answer on the step as
108
+ .BR \(dqdialog\(dq .
102
109
  .TP
103
110
  .BI "run " name
104
111
  Replay a recorded workflow headless (in the browser kind it was recorded in),
@@ -130,6 +137,15 @@ writes it next to a coverage report, and
130
137
  .B \-\-bfs
131
138
  walks outward from one page. Import aliases are read from
132
139
  .IR tsconfig.json .
140
+ An element whose handler calls the native
141
+ .BR alert() ", " confirm() " or " prompt()
142
+ carries a
143
+ .B dialogs
144
+ list in the graph, printed under its edge by
145
+ .B \-\-bfs
146
+ and listed in the coverage report;
147
+ .B gates
148
+ marks one whose answer changes what the click does.
133
149
  .TP
134
150
  .BR "log " [ \fIsource\fR ]
135
151
  With no source, print which log sources are configured. With
@@ -164,7 +180,14 @@ where the action needs one, and the required
164
180
  per action. It also warns when a
165
181
  .B navigate
166
182
  appears after the first step: walking the app by URL skips the UI, so a dead
167
- link or a button that stopped submitting still passes. Static only \(em it
183
+ link or a button that stopped submitting still passes. When
184
+ .I .verirun/map/interaction-tree.json
185
+ exists (from
186
+ .BR "map \-\-report" ),
187
+ it also warns about a step that clicks an element known to open a browser
188
+ dialog but has no
189
+ .B dialog
190
+ answer. Static only \(em it
168
191
  never opens a browser, so it cannot tell you a selector matches the live page. Use it after writing a workflow by hand or from
169
192
  .BR "verirun map" ,
170
193
  then run it for the real answer. Non-zero exit if anything is an error.
@@ -272,6 +295,19 @@ as
272
295
  .RB \(dq filter \(dq .
273
296
  For Supabase and Railway the filter is pushed to the query when it is a plain
274
297
  identifier; for Vercel it is applied after delivery.
298
+ .TP
299
+ .BI \-\-dialog " answer"
300
+ How to answer a browser dialog (alert, confirm, prompt, beforeunload) opened by
301
+ a step that has no saved
302
+ .B dialog
303
+ answer:
304
+ .B accept
305
+ (OK, the default) or
306
+ .B dismiss
307
+ (Cancel). A step's own answer always wins. Every dialog answered is listed in
308
+ .I logs.json
309
+ under
310
+ .RB \(dq dialogs \(dq .
275
311
  .SS "log"
276
312
  .TP
277
313
  .B \-\-reconnect
@@ -509,6 +545,14 @@ Success.
509
545
  A replay step failed, a subscription check failed, or the command errored.
510
546
  .\" -------------------------------------------------------------------
511
547
  .SH NOTES
548
+ A workflow step can carry
549
+ .B \(dqdialog\(dq: { \(dqaction\(dq: \(dqaccept\(dq | \(dqdismiss\(dq, \(dqpromptText\(dq: \(dq...\(dq }
550
+ to fix how replay answers a dialog that step opens.
551
+ .B promptText
552
+ is what an accepted
553
+ .B prompt()
554
+ receives; without it, the prompt's default value is submitted.
555
+ .PP
512
556
  Native Windows (cmd, PowerShell) has no
513
557
  .BR man ;
514
558
  use
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verirun/cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },