@gnawbit/tabretake 0.4.1 → 0.4.2

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/CHANGELOG.md CHANGED
@@ -1,89 +1,95 @@
1
- # Changelog
2
-
3
- ## 0.4.1 — 2026-11-24
4
-
5
- - Add `init --auto` to automatically scan target web pages and generate runnable interactive steps.
6
- - Fit landscape recordings to their source aspect ratio and place captions below the content so captions never occlude UI interactions.
7
- - Add `vertical.zoom` and `--vertical-zoom` to enlarge portrait focus targets independently of landscape output.
8
- - Use the published npm package as the primary CLI installation route.
9
- - Add adoption measurement baseline and trial feedback issue template.
10
-
11
- ## 0.4.0 — 2026-11-23
12
-
13
- - Add story preview with step progress, JSON diagnostics and recording preservation, plus an explicit focus action for result elements.
14
- - Include rich-text editors and ARIA textboxes in page plans.
15
-
16
- - Rename the project to TabRetake. Install from `gnawbit/tabretake` at `v0.4.0` and use `tabretake` for the CLI, Agent Skill and Claude Code plugin. Stories and saved timelines can be reused. Tags through v0.3.3 use `demo-reel`.
17
- - Add pinned Vikunja and Memos reproduction recipes and a manually triggered TodoMVC recording workflow with downloadable artifacts.
18
- - Prefer exact button/link labels before partial controls and plain text, and keep explicit roles scoped, so a “Completed” link is not mistaken for a “Clear completed” button.
19
-
20
- ## 0.3.3 — 2026-11-23
21
-
22
- - Wait for click targets to become actionable and report blocked clicks as step timeouts instead of successful recordings.
23
- - Include form labels and native select options in page plans so Agents can identify controls without guessing from field values.
24
-
25
- ## 0.3.2 — 2026-11-23
26
-
27
- - Redact target URLs from manual login navigation failures while keeping HTTP 401/403 pages available for sign-in.
28
- - Fit portrait cards to the source aspect ratio so mobile and ultrawide recordings retain their edges at overview zoom.
29
- - Clarify rendering prerequisites and platform-neutral publishing examples; correct native Agent evaluation failure evidence.
30
-
31
- ## 0.3.1 — 2026-11-23
32
-
33
- - Start captions before action pauses so the pause provides reading time. Re-record older stories to adopt the corrected timestamps.
34
- - Distinguish unreachable pages from HTTP errors, preserve failed navigation step locations and avoid echoing target URLs in these errors.
35
- - Clarify public discovery and installation entrypoints; record independent Agent smoke tests with their limitations.
36
-
37
- ## 0.3.0 — 2026-11-23
38
-
39
- - Shorten the Skill entrypoint with focused references; add client metadata, a plugin icon and verified installation guidance.
40
- - Add JSON results and artifact manifests for init, plan, record and render; report failed recording steps and require interactive manual login.
41
- - Upgrade Sharp to 0.35.5 for patched image libraries; require Node.js 20.9 or newer.
42
- - Validate stories, marks and recorded timelines before execution; add a packaged JSON Schema and field-level JSON diagnostics.
43
- - Add machine-readable diagnostics, version and capability queries; keep diagnostics usable when dependencies are missing.
44
- - Wrap captions within the frame, prevent overlaps and preserve recording brightness under decorative frames.
45
- - Ease click zooms and pans without cutting the timeline; configure timing with `zoomDuration` or `--zoom-duration`.
46
- - Select poster frames with `posterAt` or `--poster-at`; default to a frame near the end and support short clips.
47
- - Add runnable README GIF, onboarding and release demo recipes with `demo --story`.
48
-
49
- ## 0.2.0 — 2026-11-20
50
-
51
- - Package the CLI as `@gnawbit/demo-reel` with an explicit runtime file list.
52
- - Add `setup` and support running the installed demo outside the source checkout.
53
- - Add `init --url` to create an editable story without overwriting existing files.
54
- - Improve skill task matching, input/output guidance and installation instructions.
55
- - Exclude password field values from page plans and logs.
56
- - Scroll targets into view before browser interactions and use the demo server's actual port.
57
- - Validate packaged installation, recording and rendering on Linux, Windows and macOS.
58
-
59
- ## 0.1.0 — 2026-11-04
60
-
61
- First public version.
62
-
63
- ### Added
64
-
65
- - `plan` — screenshot and inventory buttons, links and inputs
66
- - `record` — Playwright recording with a fake cursor, click ripple and events
67
- - `render` — 1080p MP4, GIF and poster with auto-zoom, captions, browser frame
68
- and a generated background
69
- - 9:16 vertical export (`--vertical`) with a card frame, top label and larger
70
- bottom captions
71
- - Configurable vertical badge, title lines, subtitle and CTA
72
- - Captions stay on screen until the next caption for easier reading
73
- - Screen-recording input (`--video` + normalized `marks`) for sites that block
74
- automation and for desktop/mobile apps
75
- - `drag` steps for sliders, carousels and comparison handles
76
- - Automatic CJK font selection for Chinese captions
77
- - Page-load pre-roll is trimmed from the final video
78
- - `demo` — one-command end-to-end demo on the bundled app
79
- - `doctor` — Node, Chromium, ffmpeg, ffprobe and font checks
80
- - Login flow via `--login` and reusable `auth.json`
81
- - Story format: `wait`, `goto`, `click`, `type`, `hover`, `scroll`, `press`,
82
- `waitFor`, `screenshot`
83
- - Agent skill instructions in `SKILL.md`
84
- - Demo site, hero GIF/MP4 and architecture diagram
85
-
86
- ### Known limitations
87
-
88
- - Screen-recording marks are manual; automatic click detection is not included
89
- - No voiceover or music
1
+ # Changelog
2
+
3
+ ## 0.4.2 — 2026-11-26
4
+
5
+ - Add automatic system Chrome/Edge fallback (`--browser auto|chromium|chrome|msedge`) so users can run `demo`, `init --auto`, `plan`, `preview`, and `record` immediately without waiting for `tabretake setup`.
6
+ - Add four built-in `brand.preset` / `--preset` themes (`midnight`, `daylight`, `paper`, `slate`) with high-contrast light/dark caption and window chrome styling.
7
+ - Refactor documentation for higher semantic density (`README.md`, `README.zh-CN.md`, `SKILL.md`), move legacy version caveats to `docs/compatibility.md`, and add `site/robots.txt`, `site/llms.txt`, and `SoftwareApplication` JSON-LD metadata.
8
+
9
+ ## 0.4.1 — 2026-11-24
10
+
11
+ - Add `init --auto` to automatically scan target web pages and generate runnable interactive steps.
12
+ - Fit landscape recordings to their source aspect ratio and place captions below the content so captions never occlude UI interactions.
13
+ - Add `vertical.zoom` and `--vertical-zoom` to enlarge portrait focus targets independently of landscape output.
14
+ - Use the published npm package as the primary CLI installation route.
15
+ - Add adoption measurement baseline and trial feedback issue template.
16
+
17
+ ## 0.4.0 — 2026-11-23
18
+
19
+ - Add story preview with step progress, JSON diagnostics and recording preservation, plus an explicit focus action for result elements.
20
+ - Include rich-text editors and ARIA textboxes in page plans.
21
+
22
+ - Rename the project to TabRetake. Install from `gnawbit/tabretake` at `v0.4.0` and use `tabretake` for the CLI, Agent Skill and Claude Code plugin. Stories and saved timelines can be reused. Tags through v0.3.3 use `demo-reel`.
23
+ - Add pinned Vikunja and Memos reproduction recipes and a manually triggered TodoMVC recording workflow with downloadable artifacts.
24
+ - Prefer exact button/link labels before partial controls and plain text, and keep explicit roles scoped, so a “Completed” link is not mistaken for a “Clear completed” button.
25
+
26
+ ## 0.3.3 — 2026-11-23
27
+
28
+ - Wait for click targets to become actionable and report blocked clicks as step timeouts instead of successful recordings.
29
+ - Include form labels and native select options in page plans so Agents can identify controls without guessing from field values.
30
+
31
+ ## 0.3.2 — 2026-11-23
32
+
33
+ - Redact target URLs from manual login navigation failures while keeping HTTP 401/403 pages available for sign-in.
34
+ - Fit portrait cards to the source aspect ratio so mobile and ultrawide recordings retain their edges at overview zoom.
35
+ - Clarify rendering prerequisites and platform-neutral publishing examples; correct native Agent evaluation failure evidence.
36
+
37
+ ## 0.3.1 — 2026-11-23
38
+
39
+ - Start captions before action pauses so the pause provides reading time. Re-record older stories to adopt the corrected timestamps.
40
+ - Distinguish unreachable pages from HTTP errors, preserve failed navigation step locations and avoid echoing target URLs in these errors.
41
+ - Clarify public discovery and installation entrypoints; record independent Agent smoke tests with their limitations.
42
+
43
+ ## 0.3.0 — 2026-11-23
44
+
45
+ - Shorten the Skill entrypoint with focused references; add client metadata, a plugin icon and verified installation guidance.
46
+ - Add JSON results and artifact manifests for init, plan, record and render; report failed recording steps and require interactive manual login.
47
+ - Upgrade Sharp to 0.35.5 for patched image libraries; require Node.js 20.9 or newer.
48
+ - Validate stories, marks and recorded timelines before execution; add a packaged JSON Schema and field-level JSON diagnostics.
49
+ - Add machine-readable diagnostics, version and capability queries; keep diagnostics usable when dependencies are missing.
50
+ - Wrap captions within the frame, prevent overlaps and preserve recording brightness under decorative frames.
51
+ - Ease click zooms and pans without cutting the timeline; configure timing with `zoomDuration` or `--zoom-duration`.
52
+ - Select poster frames with `posterAt` or `--poster-at`; default to a frame near the end and support short clips.
53
+ - Add runnable README GIF, onboarding and release demo recipes with `demo --story`.
54
+
55
+ ## 0.2.0 — 2026-11-20
56
+
57
+ - Package the CLI as `@gnawbit/demo-reel` with an explicit runtime file list.
58
+ - Add `setup` and support running the installed demo outside the source checkout.
59
+ - Add `init --url` to create an editable story without overwriting existing files.
60
+ - Improve skill task matching, input/output guidance and installation instructions.
61
+ - Exclude password field values from page plans and logs.
62
+ - Scroll targets into view before browser interactions and use the demo server's actual port.
63
+ - Validate packaged installation, recording and rendering on Linux, Windows and macOS.
64
+
65
+ ## 0.1.0 — 2026-11-04
66
+
67
+ First public version.
68
+
69
+ ### Added
70
+
71
+ - `plan` — screenshot and inventory buttons, links and inputs
72
+ - `record` — Playwright recording with a fake cursor, click ripple and events
73
+ - `render` — 1080p MP4, GIF and poster with auto-zoom, captions, browser frame
74
+ and a generated background
75
+ - 9:16 vertical export (`--vertical`) with a card frame, top label and larger
76
+ bottom captions
77
+ - Configurable vertical badge, title lines, subtitle and CTA
78
+ - Captions stay on screen until the next caption for easier reading
79
+ - Screen-recording input (`--video` + normalized `marks`) for sites that block
80
+ automation and for desktop/mobile apps
81
+ - `drag` steps for sliders, carousels and comparison handles
82
+ - Automatic CJK font selection for Chinese captions
83
+ - Page-load pre-roll is trimmed from the final video
84
+ - `demo` — one-command end-to-end demo on the bundled app
85
+ - `doctor` — Node, Chromium, ffmpeg, ffprobe and font checks
86
+ - Login flow via `--login` and reusable `auth.json`
87
+ - Story format: `wait`, `goto`, `click`, `type`, `hover`, `scroll`, `press`,
88
+ `waitFor`, `screenshot`
89
+ - Agent skill instructions in `SKILL.md`
90
+ - Demo site, hero GIF/MP4 and architecture diagram
91
+
92
+ ### Known limitations
93
+
94
+ - Screen-recording marks are manual; automatic click detection is not included
95
+ - No voiceover or music
package/README.md CHANGED
@@ -18,6 +18,17 @@ Turn editable JSON steps or AI Agent instructions into crisp **16:9 README GIFs*
18
18
 
19
19
  [Project page](https://gnawbit.github.io/tabretake/) · [Watch the demo](docs/hero.mp4) · [Install](#install) · [How it works](#how-it-works) · [Real Showcase](#-real-world-showcase-proven-on-production-open-source-apps) · [Roadmap](#roadmap)
20
20
 
21
+ ### 📊 Technical Specs at a Glance
22
+
23
+ | Spec | Value |
24
+ |---|---|
25
+ | **Runtime & License** | Node.js `>=20.9.0`, MIT License, 100% local execution (zero cloud upload, zero telemetry) |
26
+ | **Browser Engine** | Playwright Chromium with automatic fallback to local **Chrome / Edge** (`--browser auto`) |
27
+ | **Input Modes** | (1) Live Web URL + editable JSON steps (`init --auto`) · (2) Existing MP4/WebM recording + JSON `marks` |
28
+ | **Output Artifacts** | `16:9` 1080p MP4, `README GIF` (~400–900 KB), `9:16` portrait MP4/GIF, PNG posters, `record.json` |
29
+ | **Theme Presets** | `midnight` (dark studio), `daylight` (light minimal), `paper` (warm cream), `slate` (slate-emerald) |
30
+ | **Platforms & Agents** | Windows, macOS, Linux · Claude Code, Codex, Cursor, and any [Agent Skills](https://agentskills.io) client |
31
+
21
32
  ### ⚡ Why TabRetake vs Traditional Screen Recording?
22
33
 
23
34
  | Challenge | Traditional Screen Recording | TabRetake Automated Workflow |
@@ -31,14 +42,15 @@ Keep the story with your code and re-run it when the UI changes.
31
42
  Already have a screen recording? Supply timestamp marks to
32
43
  [render the same outputs without browser automation](#use-an-existing-screen-recording).
33
44
 
34
- ### 🚀 Quick Taste (30 Seconds)
45
+ ### 🚀 Quick Taste (Zero-Wait with Local Chrome/Edge)
35
46
 
36
47
  ```bash
37
- npm install --global @gnawbit/tabretake@0.4.1
38
- tabretake setup
39
- tabretake demo
48
+ npm install --global @gnawbit/tabretake@0.4.2
49
+ tabretake demo --preset daylight
40
50
  ```
41
51
 
52
+ > Already have Chrome or Edge installed? `tabretake demo` works immediately without waiting for a separate browser download. Run `tabretake setup` anytime if you want Playwright's pinned Chromium.
53
+
42
54
  ### 🎯 Real-World Showcase: Proven on Production Open-Source Apps
43
55
 
44
56
  No synthetic AI mockups. TabRetake is verified against real-world, complex DOMs and interactive components:
@@ -88,19 +100,18 @@ edit and run again after a release.
88
100
  Install the CLI from npm.
89
101
 
90
102
  ```bash
91
- npm install --global @gnawbit/tabretake@0.4.1
92
- tabretake setup
103
+ npm install --global @gnawbit/tabretake@0.4.2
93
104
  tabretake demo
94
105
  ```
95
106
 
96
107
  Requires Node 20.9+. Run `tabretake` from your working directory;
97
- the bundled demo writes its output to `./demo`. On Linux, use
98
- `tabretake setup --with-deps` if browser system libraries are missing.
99
- ffmpeg and ffprobe are included as dependencies.
108
+ the bundled demo writes its output to `./demo`. If Playwright Chromium is not
109
+ installed, TabRetake automatically falls back to local Chrome or Edge
110
+ (`--browser auto`). Run `tabretake setup` (or `tabretake setup --with-deps` on Linux)
111
+ to install Playwright's pinned Chromium. ffmpeg and ffprobe are included as dependencies.
100
112
 
101
- The npm package is [`@gnawbit/tabretake`](https://www.npmjs.com/package/@gnawbit/tabretake). If you installed
102
- `v0.3.3` or earlier, that release still uses `demo-reel` for the command and
103
- Skill. Existing JSON stories work with `tabretake`.
113
+ The npm package is [`@gnawbit/tabretake`](https://www.npmjs.com/package/@gnawbit/tabretake).
114
+ For legacy release notes (`v0.4.0` and earlier / `demo-reel`), see [compatibility](docs/compatibility.md).
104
115
 
105
116
  For development, install from a checkout:
106
117
 
@@ -108,7 +119,6 @@ For development, install from a checkout:
108
119
  git clone https://github.com/gnawbit/tabretake
109
120
  cd tabretake
110
121
  npm ci
111
- node bin/tabretake.mjs setup
112
122
  node bin/tabretake.mjs doctor
113
123
  ```
114
124
 
@@ -118,7 +128,7 @@ replace `node bin/tabretake.mjs` with `tabretake`.
118
128
  To add the agent workflow after setting up the CLI:
119
129
 
120
130
  ```bash
121
- npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.4.1" --skill tabretake
131
+ npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.4.2" --skill tabretake
122
132
  ```
123
133
 
124
134
  Run this in the target project; add `--agent codex`, `--agent claude-code` or
@@ -129,7 +139,7 @@ or a source checkout. Install the CLI and Skill from the same revision.
129
139
  Claude Code users can install the plugin instead (CLI 2.1.292+):
130
140
 
131
141
  ```bash
132
- claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.4.1"
142
+ claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.4.2"
133
143
  ```
134
144
 
135
145
  Install the workflow through one of these routes; the plugin still needs the
@@ -154,20 +164,15 @@ node bin/tabretake.mjs doctor
154
164
  # 2. See it work on the bundled demo app
155
165
  node bin/tabretake.mjs demo
156
166
 
157
- # 3. Use it on your own app (Auto-detect interactive steps)
158
- tabretake init --url https://your-app.com --auto
167
+ # 3. Use it on your own app (Auto-detect interactive steps + theme preset)
168
+ tabretake init --url https://your-app.com --auto --preset daylight
159
169
  tabretake record --config demo.json
160
170
  tabretake render --config demo/record.json --vertical
161
171
  ```
162
172
 
163
173
  `init --auto` scans your target page, detects visible inputs and buttons, and generates a runnable multi-step story with captions.
164
- Without `--auto`, `init` creates a minimal starter waiting on the page. Use `plan --url <url>` to inventory all available DOM controls.
165
-
166
- From v0.3.3, plans include a `label` from ARIA references or
167
- HTML labels and native select `options` with `label`, `value` and `disabled`.
168
- Use these to identify controls;
169
- `name` remains the HTML attribute and `selector` is the suggested CSS locator.
170
- This is a DOM inventory, not a complete accessibility tree.
174
+ Without `--auto`, `init` creates a minimal starter waiting on the page. Use `plan --url <url>` to inventory all available DOM controls (including ARIA/HTML `label` and native select `options`).
175
+ `name` remains the HTML attribute and `selector` is the suggested CSS locator; this is a DOM inventory rather than a full accessibility tree.
171
176
 
172
177
  ```bash
173
178
  node bin/tabretake.mjs record --config demo.json
@@ -249,19 +254,14 @@ Preview checks browser actions. Use a rendered clip to check zooms and captions.
249
254
  Actions: `wait`, `goto`, `click`, `type`, `hover`, `focus`, `drag`, `scroll`, `press`,
250
255
  `waitFor`, `screenshot`.
251
256
 
252
- From v0.3.3, `click` waits for an enabled, unobstructed target.
253
- Set step `timeout` in milliseconds (default 20,000); blocked clicks return
254
- `STEP_TIMEOUT`. v0.3.2 and earlier do not reliably wait for clickable targets.
257
+ `click` waits for an enabled, unobstructed target up to `timeout` (milliseconds, default 20,000; blocked clicks return `STEP_TIMEOUT`).
255
258
 
256
259
  Locator fields are `selector`, `role` + `name` (or `text`), `name`, or `text`.
257
- An explicit `selector` is tried first. From v0.4.0, label
258
- matching tries exact buttons/links, then partial buttons/links, then plain text
259
- (exact before partial). An explicit `role` restricts matching to that role,
260
- with exact names first.
261
- Each candidate keeps the first visible match. Use a scoped selector when labels
262
- repeat or overlap. On v0.3.3 and earlier, a partial button label can beat an
263
- exact link label: use `selector: "a[href='#/completed']"` instead of just
264
- `text: "Completed"` when a “Clear completed” button is also present.
260
+ An explicit `selector` is tried first. Label matching tries exact buttons/links,
261
+ then partial buttons/links, then plain text (exact before partial). An explicit
262
+ `role` restricts matching to that role, with exact names first. Each candidate
263
+ keeps the first visible match; use a scoped selector when labels repeat or overlap.
264
+ See [compatibility](docs/compatibility.md) for legacy matching behavior.
265
265
 
266
266
  Tips:
267
267
 
@@ -290,11 +290,14 @@ For an existing timeline, `render --config demo/record.json --poster-at 4.5`
290
290
  overrides that setting without recording again. Times are seconds into the
291
291
  trimmed output, starting at zero, and must be shorter than the video.
292
292
 
293
- ### Vertical branding
293
+ ### Theme presets & vertical branding
294
294
 
295
- The 9:16 output can carry a custom hook and CTA:
295
+ Choose a built-in `brand.preset` (`midnight`, `daylight`, `paper`, or `slate`) in your config or override it at render time with `--preset <name>`. Explicit `brand.background` and `brand.accent` override preset colors unless `--preset` is passed on the CLI.
296
296
 
297
297
  ```json
298
+ "brand": {
299
+ "preset": "daylight"
300
+ },
298
301
  "vertical": {
299
302
  "badge": "Your product",
300
303
  "titleLines": ["Ship faster", "without the busywork"],
@@ -307,17 +310,13 @@ The 9:16 output can carry a custom hook and CTA:
307
310
  `titleLines` is capped at two lines. `watermark: false` removes the small
308
311
  TabRetake mark. Chinese text automatically uses a CJK font.
309
312
 
310
- From v0.3.2, portrait cards fit the source video's aspect ratio. For a mobile
311
- flow, inspect with `plan --viewport 390x844`, then record at the same viewport.
312
- Render with `--vertical --zoom 1` to keep the full page in view; larger zooms
313
- crop around focus points. Wide desktop recordings may still have small text.
314
-
315
- From v0.4.1, landscape output fits the
316
- source aspect ratio and reserves space below the recording for captions.
313
+ Both 16:9 landscape and 9:16 portrait outputs fit the source video's aspect ratio
314
+ and reserve dedicated space below the content for captions. For a mobile flow,
315
+ inspect with `plan --viewport 390x844`, then record at the same viewport.
317
316
  Use `--vertical --zoom 1 --vertical-zoom 1.8` to keep landscape overview while
318
- enlarging portrait focus targets. Set `vertical.zoom` in the story to save that
319
- portrait setting; the CLI flag takes precedence. Steps with `zoom: false`
320
- still show the full view. Review the result for cropped context.
317
+ enlarging portrait focus targets (`vertical.zoom` saves it in config; the CLI flag
318
+ takes precedence). Steps with `zoom: false` keep the full view. Review the result
319
+ for cropped context.
321
320
 
322
321
  ## Commands
323
322
 
@@ -327,14 +326,14 @@ still show the full view. Review the result for cropped context.
327
326
  | `tabretake capabilities --json` | List supported commands, flags and JSON support |
328
327
  | `tabretake doctor [--json]` | Check Node, Chromium, ffmpeg, fonts |
329
328
  | `tabretake setup` | Install the Chromium version used by this CLI |
330
- | `tabretake init --url <url> [--auto]` | Create an editable story file (add `--auto` to scan page and generate interactive steps) |
329
+ | `tabretake init --url <url> [--auto] [--preset <name>]` | Create an editable story file (`--auto` scans controls; `--preset` sets theme) |
331
330
  | `tabretake validate --config demo.json [--json]` | Validate a story, marks or recorded timeline without recording |
332
331
  | `tabretake plan --url <url>` | Screenshot + list interactive elements |
333
332
  | `tabretake record --config demo.json` | Record the story |
334
333
  | `tabretake preview --config demo.json` | Execute steps in a visible browser before recording |
335
- | `tabretake render --config demo/record.json` | Render MP4 + GIF |
334
+ | `tabretake render --config demo/record.json [--preset <name>]` | Render MP4 + GIF |
336
335
  | `tabretake serve` | Serve the bundled demo app |
337
- | `tabretake demo` | Record + render the bundled demo |
336
+ | `tabretake demo [--preset <name>]` | Record + render the bundled demo |
338
337
 
339
338
  ### 🏷️ Project Badge
340
339
 
@@ -348,49 +347,27 @@ For agents, `capabilities --json` and `doctor --json` emit one JSON object on
348
347
  stdout with `schemaVersion: 1` and the installed version. Diagnostic checks have
349
348
  stable `id`, `required`, `status` and recovery `hint` fields on failure. Exit code
350
349
  `1` means a required check failed; missing caption fonts are warnings (exit `0`
351
- if required checks pass). Chromium is checked for installation, not launched.
352
- JSON workflows and validation require v0.3.0 or newer.
350
+ if required checks pass). Browser presence is checked without launching a window.
353
351
 
354
352
  `doctor` checks the whole toolkit. Rendering an existing recording or saved
355
- timeline does not need Chromium. If `chromium` is the only failed required
353
+ timeline does not need a browser: if `chromium` is the only failed required
356
354
  check, skip browser setup and continue with `validate` and `render`; fix other
357
- required errors first. Browser planning and recording still require Chromium.
358
-
359
- Before recording, run `validate --config demo.json --json`. It checks types,
360
- supported actions, required targets and unknown fields against the packaged
361
- [JSON Schema](schemas/story.schema.json). Failures return exit `1` and errors
362
- with a `code`, JSON Pointer `path` (for example `/steps/0/action`), `message` and
363
- `hint`. Invalid JSON and unreadable files use an `error` object. Validation
364
- does not open the browser or check selectors, login state or media files.
365
- `record` and `render` also validate their input before changing output files.
366
- For editor completion, add `"$schema": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json"`
367
- to the config.
368
-
369
- Useful flags:
355
+ required errors first. Browser planning and recording require Chromium or local Chrome/Edge.
370
356
 
371
- `init`, `plan`, `record` and `render` also accept `--json`: stdout contains one
372
- result object and progress goes to stderr. Success includes `command`, `ok`,
373
- `version`, `schemaVersion` and an `artifacts` list with absolute paths, kinds and
374
- byte sizes. Recording failures include a zero-based `error.step.index`, action,
375
- JSON Pointer path and recovery hint. Fix the reported step before retrying.
376
- Run manual `--login` in an interactive terminal without `--json`, then reuse
377
- `--storage-state` in automation. Failed runs may leave partial files; only a
378
- successful result's artifact list confirms the current run's outputs.
379
-
380
- In v0.3.1 or newer, navigation failures return `PAGE_UNREACHABLE` with
381
- URL/server/network checks, or `PAGE_HTTP_ERROR` with `error.status` for HTTP
382
- 4xx/5xx. Error pages are not recorded as successful demos. These errors omit
383
- the target URL so credentials and query tokens are not echoed. `doctor` checks
384
- dependencies; it cannot establish that an app is reachable.
385
-
386
- From v0.3.2, manual `--login` navigation failures also omit the target URL.
387
- HTTP 401/403 pages remain open for sign-in; other HTTP errors stop the command.
357
+ Before recording, run `validate --config demo.json --json` against the packaged
358
+ [JSON Schema](schemas/story.schema.json) (`record` and `render` also validate before writing outputs).
359
+ For editor completion, add `"$schema": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json"`
360
+ to your config.
388
361
 
389
- In v0.3.1 or newer, captions start when an action finishes, before its `pause`.
390
- Use the pause as reading time. On v0.3.0, use `pause: 0` plus a separate `wait`
391
- step instead. Re-record to update old timelines; re-rendering preserves timing.
362
+ `init`, `plan`, `record` and `render` accept `--json` (one JSON result object on stdout, progress on stderr).
363
+ Navigation failures return `PAGE_UNREACHABLE` or `PAGE_HTTP_ERROR` without echoing sensitive URLs;
364
+ captions start when an action completes and hold during its `pause`.
365
+ Run manual `--login` in an interactive terminal without `--json`, then reuse `--storage-state` in automation.
366
+ See [compatibility](docs/compatibility.md) for legacy version behavior (`v0.4.0` and earlier).
392
367
 
393
368
  ```bash
369
+ --browser auto # auto (bundled Chromium or local Chrome/Edge), chromium, chrome, msedge
370
+ --preset daylight # midnight (default), daylight, paper, slate
394
371
  --login # open a visible browser, log in once
395
372
  --storage-state auth.json
396
373
  --proxy http://127.0.0.1:10808
@@ -550,9 +527,9 @@ are yours or licensed.
550
527
 
551
528
  - [x] 9:16 vertical export
552
529
  - [x] Screen-recording input (`--video` + `marks`)
530
+ - [x] Brand presets (`midnight`, `daylight`, `paper`, `slate`)
553
531
  - [ ] Voiceover (TTS)
554
532
  - [ ] Device frames (iPhone, Android, macOS)
555
- - [ ] Brand presets
556
533
  - [ ] Cloud rendering
557
534
 
558
535
  ## Contributing