@softure-ai/marketing-kit 0.9.2 → 0.11.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 (41) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +39 -0
  3. package/dist/config/actions-schema.d.ts +14 -14
  4. package/dist/config/schema.d.ts +68 -68
  5. package/dist/config/shot-steps.d.ts +16 -16
  6. package/dist/footage/draft.d.ts +1 -1
  7. package/dist/footage/draft.d.ts.map +1 -1
  8. package/dist/footage/draft.js +7 -3
  9. package/dist/footage/draft.js.map +1 -1
  10. package/dist/footage/ffmpeg-command.d.ts +31 -0
  11. package/dist/footage/ffmpeg-command.d.ts.map +1 -0
  12. package/dist/footage/ffmpeg-command.js +60 -0
  13. package/dist/footage/ffmpeg-command.js.map +1 -0
  14. package/dist/footage/ffmpeg-failure.d.ts +36 -0
  15. package/dist/footage/ffmpeg-failure.d.ts.map +1 -0
  16. package/dist/footage/ffmpeg-failure.js +75 -0
  17. package/dist/footage/ffmpeg-failure.js.map +1 -0
  18. package/dist/footage/pipeline.d.ts +21 -3
  19. package/dist/footage/pipeline.d.ts.map +1 -1
  20. package/dist/footage/pipeline.js +49 -11
  21. package/dist/footage/pipeline.js.map +1 -1
  22. package/dist/footage/process.d.ts +19 -1
  23. package/dist/footage/process.d.ts.map +1 -1
  24. package/dist/footage/process.js +57 -6
  25. package/dist/footage/process.js.map +1 -1
  26. package/dist/footage/publish.d.ts +16 -1
  27. package/dist/footage/publish.d.ts.map +1 -1
  28. package/dist/footage/publish.js +35 -5
  29. package/dist/footage/publish.js.map +1 -1
  30. package/dist/index.d.ts +4 -2
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +4 -2
  33. package/dist/index.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/footage/draft.ts +9 -4
  36. package/src/footage/ffmpeg-command.ts +78 -0
  37. package/src/footage/ffmpeg-failure.ts +89 -0
  38. package/src/footage/pipeline.ts +69 -11
  39. package/src/footage/process.ts +66 -6
  40. package/src/footage/publish.ts +49 -6
  41. package/src/index.ts +15 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,32 @@ Newest first. Each version lists what changed for an app that uses `@softure-ai/
4
4
  production, the version gets a line `verified in: <app>@<commit>` ([docs/05](../../docs/05-adoption-playbook.md),
5
5
  "Definition of done"). Versions before the first one below are described in their GitHub Releases (`marketing-kit@x.y.z`).
6
6
 
7
+ ## 0.11.0
8
+
9
+ - **The final pass can publish H.264 High from a draft render (#1068):** `finishVideo: { preset, crf, maxBitrate? }`
10
+ on `renderFootage` and `renderFootageFilm` re-encodes the picture in the final pass instead of copying it: H.264
11
+ High, yuv420p, at that x264 preset and CRF, capped at `maxBitrate` (`-maxrate`, with a `-bufsize` of twice the cap)
12
+ when set. `quality: "draft", crf: 18` plus `finishVideo: { preset: "veryfast", crf: 20 }` gives High at a
13
+ controlled size for about a quarter of the `standard` tier's encode. The loudness pass, fast start and cover stay
14
+ as they are; the stage's progress follows the re-encode. Invalid values end the run with a sentence before anything
15
+ is bought or built. New exports: `FinishVideo`, `findFinishVideoProblems`; `buildFinishArgs` takes `video`. Without
16
+ the option nothing changes.
17
+
18
+ ## 0.10.0
19
+
20
+ - **A failed footage ffmpeg step hands over what it ran (#1063):** `onFfmpegFailure` on `prepareFootage`,
21
+ `transcribeFootage`, `renderFootage`, `renderFootageFilm`, `renderFootageDraft` and `cutFootageFilm` gets an
22
+ `FfmpegFailure` for every failing ffmpeg step inside them, nested ones included (normalize, tone map LUT, cut
23
+ frames, cut preview, speech, music, picture, final pass, cover): `step`, the exact `args` (`-progress` included),
24
+ `cwd`, `code`, `signal`, the whole `stderr` (up to its last 2000 lines) and every `-i` input. The hook runs before
25
+ the step throws and a returned promise is awaited. New export `writeFfmpegFailure(dir, failure, { signal })` writes
26
+ `command.sh` (re-runs the command from its folder, the graph read from `filtergraph.txt`), `filtergraph.txt` (one
27
+ chain per line), `stderr.log` and `inputs.json` (ffprobe of each input). Every failure also writes one `log` line
28
+ with the step and its full command, with or without the hook. The thrown error text is unchanged. Also exported:
29
+ `FfmpegFailure`, `FfmpegFailureHook`, `withFfmpegFailureReporting` and `runFfmpeg`'s `onFailure`, for a direct
30
+ `runFfmpeg` caller; `formatFfmpegCommand`, `splitFilterGraph`, `buildFfmpegFailureScript`, `FFMPEG_FAILURE_FILES`.
31
+ README "Footage films in a worker" says what to keep. Nothing to change for an app that does not pass the hook.
32
+
7
33
  ## 0.9.2
8
34
 
9
35
  - **Drafts and renders with a `fade` work on ffmpeg 7.1 (#1057):** ffmpeg 7.1's `setpts` leaves a stream's frame
package/README.md CHANGED
@@ -834,6 +834,30 @@ const result = await renderFootageFilm(film, {
834
834
  a folder that is too small, and `renderFootage` checks both folders before anything is bought or built, ending with
835
835
  `not enough disk space to render: …` instead of hyperframes' exit code. `findLowDiskProblems` is the check on its
836
836
  own.
837
+ - **When an ffmpeg step fails.** The thrown error names the step and the last five stderr lines. To keep the whole
838
+ failure, pass `onFfmpegFailure` to `renderFootageFilm`, `prepareFootage`, `transcribeFootage`, `renderFootage`,
839
+ `renderFootageDraft` or `cutFootageFilm`: it gets an `FfmpegFailure` (`step`, the exact `args` ffmpeg was spawned
840
+ with, the `cwd` it ran in, `code`, `signal`, the whole `stderr` and every `-i` input) before the step throws, and
841
+ a promise it returns is awaited. `writeFfmpegFailure(dir, failure, { signal })` writes it for a person to run again;
842
+ keep that folder with the job (and the build folder's `clips/` and `draft/`, which the command reads):
843
+
844
+ ```ts
845
+ const result = await renderFootageFilm(film, {
846
+ ...options,
847
+ onFfmpegFailure: (failure) => writeFfmpegFailure(join(jobDir, "ffmpeg-failure"), failure, { signal: job.signal }),
848
+ });
849
+ ```
850
+
851
+ | File | What it holds |
852
+ | --- | --- |
853
+ | `command.sh` | the command, run from the folder it ran in (`sh command.sh` fails the same way) |
854
+ | `filtergraph.txt` | the `-filter_complex` graph, one chain per line, read with `-/filter_complex` on ffmpeg 7.1+ and `-filter_complex_script` before it |
855
+ | `stderr.log` | the whole stderr |
856
+ | `inputs.json` | ffprobe's facts of every input (or why it cannot read one) |
857
+
858
+ With or without the hook, `log` gets one line: `ffmpeg failed: <step>, in <cwd>: ffmpeg <args>`, so an app that keeps
859
+ only its log still has the command. A direct `runFfmpeg` caller passes `onFailure`, or wraps the calls in
860
+ `withFfmpegFailureReporting({ onFailure, log }, run)`.
837
861
  - **A CPU-limited container.** hyperframes picks its capture workers from the host's cores, not the container's CPU
838
862
  quota: set `PRODUCER_MAX_WORKERS` to the quota. `HYPERFRAMES_EXTRACT_CACHE_MAX_MB` caps the extraction cache
839
863
  (default 2048).
@@ -875,6 +899,21 @@ const result = await renderFootageFilm(film, {
875
899
  `renderFootage` took 858 s with the fast tier when that pass still re-encoded the picture at `medium` (about 320 s),
876
900
  against 835 s for `standard`; with the copy the fast run takes about 540 s.
877
901
 
902
+ The copy keeps the draft's Constrained Baseline at about 21 Mbit/s. To publish H.264 High at a chosen size, pass
903
+ `finishVideo: { preset, crf, maxBitrate? }` (#1068): the final pass then re-encodes the picture to High yuv420p at
904
+ that x264 preset and CRF, capped at `maxBitrate` (an ffmpeg rate such as `"12M"`; the buffer is twice the cap).
905
+ Measured on a 20 s 1080×1920 grainy test pattern at one CPU:
906
+
907
+ | Encode | Time | Profile |
908
+ | --- | --- | --- |
909
+ | `ultrafast` CRF 18 (hyperframes `draft`) | 34 s | Constrained Baseline |
910
+ | `medium` CRF 18 (hyperframes `standard`) | 148 s | High |
911
+ | re-encode of the `ultrafast` file, `veryfast` CRF 20 | 37 s | High |
912
+ | re-encode of the `ultrafast` file, `veryfast` CRF 22 | 31 s | High |
913
+
914
+ So `quality: "draft", crf: 18, finishVideo: { preset: "veryfast", crf: 20 }` stays well under the `standard` tier's
915
+ time and publishes High.
916
+
878
917
  **Container recipe.** [`docker/footage-worker.Dockerfile`](docker/footage-worker.Dockerfile) is a worker base image:
879
918
  `node:22-trixie-slim`, Debian's ffmpeg 7.1 (libzimg, so `zscale` and `tonemap`, and the HEVC decoder), the libraries and
880
919
  fonts Chrome needs, and the chrome-headless-shell hyperframes 0.8.85 pins, named by `HYPERFRAMES_BROWSER_PATH`. CI
@@ -49,6 +49,7 @@ export type LocatorDescriptor = {
49
49
  export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
50
50
  role: z.ZodOptional<z.ZodEnum<{
51
51
  caption: "caption";
52
+ log: "log";
52
53
  code: "code";
53
54
  none: "none";
54
55
  alert: "alert";
@@ -84,7 +85,6 @@ export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
84
85
  list: "list";
85
86
  listbox: "listbox";
86
87
  listitem: "listitem";
87
- log: "log";
88
88
  main: "main";
89
89
  marquee: "marquee";
90
90
  math: "math";
@@ -177,7 +177,7 @@ export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
177
177
  hasText: TextMatch | null;
178
178
  nth: number | null;
179
179
  }, {
180
- role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
180
+ role?: "caption" | "log" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
181
181
  name?: string | {
182
182
  regex: string;
183
183
  flags: string;
@@ -208,6 +208,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
208
208
  target: z.ZodPipe<z.ZodObject<{
209
209
  role: z.ZodOptional<z.ZodEnum<{
210
210
  caption: "caption";
211
+ log: "log";
211
212
  code: "code";
212
213
  none: "none";
213
214
  alert: "alert";
@@ -243,7 +244,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
243
244
  list: "list";
244
245
  listbox: "listbox";
245
246
  listitem: "listitem";
246
- log: "log";
247
247
  main: "main";
248
248
  marquee: "marquee";
249
249
  math: "math";
@@ -336,7 +336,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
336
336
  hasText: TextMatch | null;
337
337
  nth: number | null;
338
338
  }, {
339
- role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
339
+ role?: "caption" | "log" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
340
340
  name?: string | {
341
341
  regex: string;
342
342
  flags: string;
@@ -380,6 +380,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
380
380
  target: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
381
381
  role: z.ZodOptional<z.ZodEnum<{
382
382
  caption: "caption";
383
+ log: "log";
383
384
  code: "code";
384
385
  none: "none";
385
386
  alert: "alert";
@@ -415,7 +416,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
415
416
  list: "list";
416
417
  listbox: "listbox";
417
418
  listitem: "listitem";
418
- log: "log";
419
419
  main: "main";
420
420
  marquee: "marquee";
421
421
  math: "math";
@@ -508,7 +508,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
508
508
  hasText: TextMatch | null;
509
509
  nth: number | null;
510
510
  }, {
511
- role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
511
+ role?: "caption" | "log" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
512
512
  name?: string | {
513
513
  regex: string;
514
514
  flags: string;
@@ -532,6 +532,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
532
532
  }>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
533
533
  role: z.ZodOptional<z.ZodEnum<{
534
534
  caption: "caption";
535
+ log: "log";
535
536
  code: "code";
536
537
  none: "none";
537
538
  alert: "alert";
@@ -567,7 +568,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
567
568
  list: "list";
568
569
  listbox: "listbox";
569
570
  listitem: "listitem";
570
- log: "log";
571
571
  main: "main";
572
572
  marquee: "marquee";
573
573
  math: "math";
@@ -660,7 +660,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
660
660
  hasText: TextMatch | null;
661
661
  nth: number | null;
662
662
  }, {
663
- role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
663
+ role?: "caption" | "log" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
664
664
  name?: string | {
665
665
  regex: string;
666
666
  flags: string;
@@ -689,6 +689,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
689
689
  target: z.ZodPipe<z.ZodObject<{
690
690
  role: z.ZodOptional<z.ZodEnum<{
691
691
  caption: "caption";
692
+ log: "log";
692
693
  code: "code";
693
694
  none: "none";
694
695
  alert: "alert";
@@ -724,7 +725,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
724
725
  list: "list";
725
726
  listbox: "listbox";
726
727
  listitem: "listitem";
727
- log: "log";
728
728
  main: "main";
729
729
  marquee: "marquee";
730
730
  math: "math";
@@ -817,7 +817,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
817
817
  hasText: TextMatch | null;
818
818
  nth: number | null;
819
819
  }, {
820
- role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
820
+ role?: "caption" | "log" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
821
821
  name?: string | {
822
822
  regex: string;
823
823
  flags: string;
@@ -847,6 +847,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
847
847
  target: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
848
848
  role: z.ZodOptional<z.ZodEnum<{
849
849
  caption: "caption";
850
+ log: "log";
850
851
  code: "code";
851
852
  none: "none";
852
853
  alert: "alert";
@@ -882,7 +883,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
882
883
  list: "list";
883
884
  listbox: "listbox";
884
885
  listitem: "listitem";
885
- log: "log";
886
886
  main: "main";
887
887
  marquee: "marquee";
888
888
  math: "math";
@@ -975,7 +975,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
975
975
  hasText: TextMatch | null;
976
976
  nth: number | null;
977
977
  }, {
978
- role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
978
+ role?: "caption" | "log" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
979
979
  name?: string | {
980
980
  regex: string;
981
981
  flags: string;
@@ -999,6 +999,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
999
999
  }>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
1000
1000
  role: z.ZodOptional<z.ZodEnum<{
1001
1001
  caption: "caption";
1002
+ log: "log";
1002
1003
  code: "code";
1003
1004
  none: "none";
1004
1005
  alert: "alert";
@@ -1034,7 +1035,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1034
1035
  list: "list";
1035
1036
  listbox: "listbox";
1036
1037
  listitem: "listitem";
1037
- log: "log";
1038
1038
  main: "main";
1039
1039
  marquee: "marquee";
1040
1040
  math: "math";
@@ -1127,7 +1127,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1127
1127
  hasText: TextMatch | null;
1128
1128
  nth: number | null;
1129
1129
  }, {
1130
- role?: "caption" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
1130
+ role?: "caption" | "log" | "code" | "none" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
1131
1131
  name?: string | {
1132
1132
  regex: string;
1133
1133
  flags: string;