@gnawbit/tabretake 0.4.2 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.0 — 2026-11-26
4
+
5
+ - Add `tabretake capture` interactive recorder so users can click, type, select, and pin `focus` steps directly in a browser window to generate an editable `story.json` (with automatic password field skipping).
6
+ - Add `tabretake run` to validate, record, and render in a single command (supporting story, marks, and recorded timelines).
7
+ - Add `tabretake mark` local visual video marker studio for click-to-mark timestamps and normalized `(x, y)` coordinates on existing screen recordings.
8
+ - Upgrade `init --auto` element scoring to skip empty navigation links and destructive buttons while prioritizing main form/CTA controls and native `<select>` elements.
9
+ - Add `select` story step action, HiDPI `--scale 2` / `"scale": 2` recording, theme-matched cursor click ripples, rounded content corner masks, and `brand.frame` (`auto`, `browser`, `phone`, `none`).
10
+
3
11
  ## 0.4.2 — 2026-11-26
4
12
 
5
13
  - 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`.
package/README.md CHANGED
@@ -24,8 +24,8 @@ Turn editable JSON steps or AI Agent instructions into crisp **16:9 README GIFs*
24
24
  |---|---|
25
25
  | **Runtime & License** | Node.js `>=20.9.0`, MIT License, 100% local execution (zero cloud upload, zero telemetry) |
26
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` |
27
+ | **Input Modes** | (1) Interactive browser `capture`, `init --auto`, or editable JSON steps · (2) Existing MP4/WebM + visual `mark` studio |
28
+ | **Output Artifacts** | `16:9` 1080p MP4, `README GIF` (~400–900 KB), `9:16` portrait MP4/GIF, PNG posters, `record.json` (1x or 2x HiDPI `--scale 2`) |
29
29
  | **Theme Presets** | `midnight` (dark studio), `daylight` (light minimal), `paper` (warm cream), `slate` (slate-emerald) |
30
30
  | **Platforms & Agents** | Windows, macOS, Linux · Claude Code, Codex, Cursor, and any [Agent Skills](https://agentskills.io) client |
31
31
 
@@ -45,7 +45,7 @@ Already have a screen recording? Supply timestamp marks to
45
45
  ### 🚀 Quick Taste (Zero-Wait with Local Chrome/Edge)
46
46
 
47
47
  ```bash
48
- npm install --global @gnawbit/tabretake@0.4.2
48
+ npm install --global @gnawbit/tabretake@0.5.0
49
49
  tabretake demo --preset daylight
50
50
  ```
51
51
 
@@ -100,7 +100,7 @@ edit and run again after a release.
100
100
  Install the CLI from npm.
101
101
 
102
102
  ```bash
103
- npm install --global @gnawbit/tabretake@0.4.2
103
+ npm install --global @gnawbit/tabretake@0.5.0
104
104
  tabretake demo
105
105
  ```
106
106
 
@@ -128,7 +128,7 @@ replace `node bin/tabretake.mjs` with `tabretake`.
128
128
  To add the agent workflow after setting up the CLI:
129
129
 
130
130
  ```bash
131
- npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.4.2" --skill tabretake
131
+ npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.5.0" --skill tabretake
132
132
  ```
133
133
 
134
134
  Run this in the target project; add `--agent codex`, `--agent claude-code` or
@@ -139,7 +139,7 @@ or a source checkout. Install the CLI and Skill from the same revision.
139
139
  Claude Code users can install the plugin instead (CLI 2.1.292+):
140
140
 
141
141
  ```bash
142
- claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.4.2"
142
+ claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.5.0"
143
143
  ```
144
144
 
145
145
  Install the workflow through one of these routes; the plugin still needs the
@@ -164,14 +164,16 @@ node bin/tabretake.mjs doctor
164
164
  # 2. See it work on the bundled demo app
165
165
  node bin/tabretake.mjs demo
166
166
 
167
- # 3. Use it on your own app (Auto-detect interactive steps + theme preset)
167
+ # 3. Record your own app (choose interactive capture or auto-scan + one-command run)
168
+ tabretake capture --url https://your-app.com --out demo.json --run --vertical --preset daylight
169
+ # Or auto-scan DOM controls into an editable story, then run:
168
170
  tabretake init --url https://your-app.com --auto --preset daylight
169
- tabretake record --config demo.json
170
- tabretake render --config demo/record.json --vertical
171
+ tabretake run --config demo.json --vertical --scale 2
171
172
  ```
172
173
 
173
- `init --auto` scans your target page, detects visible inputs and buttons, and generates a runnable multi-step story with captions.
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`).
174
+ `capture` opens a browser window so you can click, type, select, and pin focus points directly — saving an editable `demo.json` (never storing password values) and optionally rendering immediately with `--run`.
175
+ `init --auto` scans your target page, skips navigation dead links and destructive actions, prioritizes main form/CTA controls, and generates a runnable multi-step story with captions.
176
+ `run` validates, records, and renders in a single command (or accepts an existing `marks` or `record.json` config). You can also run `record` and `render` separately, or use `plan --url <url>` to inspect all DOM controls (including ARIA/HTML `label` and native select `options`).
175
177
  `name` remains the HTML attribute and `selector` is the suggested CSS locator; this is a DOM inventory rather than a full accessibility tree.
176
178
 
177
179
  ```bash
@@ -251,7 +253,7 @@ Preview checks browser actions. Use a rendered clip to check zooms and captions.
251
253
  }
252
254
  ```
253
255
 
254
- Actions: `wait`, `goto`, `click`, `type`, `hover`, `focus`, `drag`, `scroll`, `press`,
256
+ Actions: `wait`, `goto`, `click`, `type`, `select`, `hover`, `focus`, `drag`, `scroll`, `press`,
255
257
  `waitFor`, `screenshot`.
256
258
 
257
259
  `click` waits for an enabled, unobstructed target up to `timeout` (milliseconds, default 20,000; blocked clicks return `STEP_TIMEOUT`).
@@ -292,7 +294,7 @@ trimmed output, starting at zero, and must be shorter than the video.
292
294
 
293
295
  ### Theme presets & vertical branding
294
296
 
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.
297
+ Choose a built-in `brand.preset` (`midnight`, `daylight`, `paper`, or `slate`) in your config or override it at render time with `--preset <name>`. Cursor click ripples automatically follow the theme's `accent` color, and `brand.frame` supports `"auto"` (default), `"browser"`, `"phone"` (lightweight portrait bezel), or `"none"`. Explicit `brand.background` and `brand.accent` override preset colors unless `--preset` is passed on the CLI. Use `"scale": 2` (or `--scale 2`) for HiDPI 2x recording so zoomed shots stay crisp.
296
298
 
297
299
  ```json
298
300
  "brand": {
@@ -327,11 +329,14 @@ for cropped context.
327
329
  | `tabretake doctor [--json]` | Check Node, Chromium, ffmpeg, fonts |
328
330
  | `tabretake setup` | Install the Chromium version used by this CLI |
329
331
  | `tabretake init --url <url> [--auto] [--preset <name>]` | Create an editable story file (`--auto` scans controls; `--preset` sets theme) |
332
+ | `tabretake capture --url <url> [--out demo.json] [--run]` | Record your real browser clicks/inputs into an editable `story.json` |
330
333
  | `tabretake validate --config demo.json [--json]` | Validate a story, marks or recorded timeline without recording |
331
334
  | `tabretake plan --url <url>` | Screenshot + list interactive elements |
332
335
  | `tabretake record --config demo.json` | Record the story |
333
336
  | `tabretake preview --config demo.json` | Execute steps in a visible browser before recording |
334
337
  | `tabretake render --config demo/record.json [--preset <name>]` | Render MP4 + GIF |
338
+ | `tabretake run --config demo.json [--vertical] [--scale 2]` | Validate, record, and render in one command |
339
+ | `tabretake mark --video recording.mp4 [--out story-video.json]` | Open local visual studio to click-mark timestamps & zoom points |
335
340
  | `tabretake serve` | Serve the bundled demo app |
336
341
  | `tabretake demo [--preset <name>]` | Record + render the bundled demo |
337
342
 
@@ -359,7 +364,7 @@ Before recording, run `validate --config demo.json --json` against the packaged
359
364
  For editor completion, add `"$schema": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json"`
360
365
  to your config.
361
366
 
362
- `init`, `plan`, `record` and `render` accept `--json` (one JSON result object on stdout, progress on stderr).
367
+ `init`, `capture`, `plan`, `record`, `render`, `run` and `mark` accept `--json` (one JSON result object on stdout, progress on stderr).
363
368
  Navigation failures return `PAGE_UNREACHABLE` or `PAGE_HTTP_ERROR` without echoing sensitive URLs;
364
369
  captions start when an action completes and hold during its `pause`.
365
370
  Run manual `--login` in an interactive terminal without `--json`, then reuse `--storage-state` in automation.
@@ -372,6 +377,7 @@ See [compatibility](docs/compatibility.md) for legacy version behavior (`v0.4.0`
372
377
  --storage-state auth.json
373
378
  --proxy http://127.0.0.1:10808
374
379
  --viewport 1440x810
380
+ --scale 2 # 1 (default) or 2 (HiDPI Retina recording for crisp zooms)
375
381
  --headed # watch the recording happen
376
382
  --vertical # also render 9:16 + vertical GIF
377
383
  --video recording.mp4 # render an existing recording + marks
@@ -441,8 +447,14 @@ node bin/tabretake.mjs demo --story release --port 0 --out demo-release
441
447
  ## Use an existing screen recording
442
448
 
443
449
  If a site blocks automation, or you are demoing a desktop or mobile app, record
444
- the flow with OBS, Screen Studio, QuickTime or the OS recorder, then describe
445
- where to zoom in `marks`:
450
+ the flow with OBS, Screen Studio, QuickTime or the OS recorder, then run the
451
+ local visual studio to click on zoom targets directly (no manual math required):
452
+
453
+ ```bash
454
+ tabretake mark --video recording.mp4 --out story-video.json
455
+ ```
456
+
457
+ Or author `marks` JSON directly to describe where to zoom:
446
458
 
447
459
  ```json
448
460
  {
package/README.zh-CN.md CHANGED
@@ -24,8 +24,8 @@
24
24
  |---|---|
25
25
  | **运行环境与协议** | Node.js `>=20.9.0`,MIT 协议,100% 本地运行(无云端上传、无遥测收集) |
26
26
  | **浏览器引擎** | Playwright Chromium,支持未执行 `setup` 时自动回退本机 **Chrome / Edge**(`--browser auto`) |
27
- | **双输入模式** | (1) 实时网页 URL + 可编辑 JSON 步骤(支持 `init --auto`) · (2) 已有录屏(OBS/QuickTime)+ 时间标记 `marks` |
28
- | **输出产物** | `16:9` 1080p MP4、`README GIF`(约 400–900 KB)、`9:16` 竖屏 MP4/GIF、PNG 封面、`record.json` 时间线 |
27
+ | **双输入模式** | (1) 交互式 `capture` / `init --auto` / 可编辑 JSON 步骤 · (2) 已有录屏(OBS/QuickTime)+ 可视化 `mark` 打点 |
28
+ | **输出产物** | `16:9` 1080p MP4、`README GIF`(约 400–900 KB)、`9:16` 竖屏 MP4/GIF、PNG 封面、`record.json`(支持 2x HiDPI `--scale 2`) |
29
29
  | **内置品牌主题** | `midnight`(暗夜紫)、`daylight`(浅色极简)、`paper`(暖纸复古)、`slate`(石板翠绿) |
30
30
  | **平台与智能体** | Windows、macOS、Linux · 支持 Claude Code、Codex、Cursor 及所有 [Agent Skills](https://agentskills.io) 客户端 |
31
31
 
@@ -44,7 +44,7 @@
44
44
  ### 🚀 零等待极速体验(自动适配本机 Chrome/Edge)
45
45
 
46
46
  ```bash
47
- npm install --global @gnawbit/tabretake@0.4.2
47
+ npm install --global @gnawbit/tabretake@0.5.0
48
48
  tabretake demo --preset daylight
49
49
  ```
50
50
 
@@ -98,7 +98,7 @@ tabretake demo --preset daylight
98
98
  从 npm 安装 CLI。
99
99
 
100
100
  ```bash
101
- npm install --global @gnawbit/tabretake@0.4.2
101
+ npm install --global @gnawbit/tabretake@0.5.0
102
102
  tabretake demo
103
103
  ```
104
104
 
@@ -123,7 +123,7 @@ node bin/tabretake.mjs doctor
123
123
  CLI 环境就绪后,可安装 agent 工作流:
124
124
 
125
125
  ```bash
126
- npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.4.2" --skill tabretake
126
+ npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.5.0" --skill tabretake
127
127
  ```
128
128
 
129
129
  在目标项目中运行,可加 `--agent codex`、`--agent claude-code` 或 `--agent cursor`
@@ -133,7 +133,7 @@ npx skills@1.9.0 add "https://github.com/gnawbit/tabretake.git#v0.4.2" --skill t
133
133
  Claude Code 也可以通过插件安装(命令行版本需 2.1.292+):
134
134
 
135
135
  ```bash
136
- claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.4.2"
136
+ claude plugin install tabretake --marketplace "gnawbit/tabretake#v0.5.0"
137
137
  ```
138
138
 
139
139
  两种工作流安装方式任选其一;插件仍需先安装上述 TabRetake 运行环境。
@@ -156,14 +156,16 @@ node bin/tabretake.mjs doctor
156
156
  # 2. 跑一遍内置 demo
157
157
  node bin/tabretake.mjs demo
158
158
 
159
- # 3. 录你自己的产品(支持 --auto 自动生成步骤,--preset 选择主题)
159
+ # 3. 录你自己的产品(交互式点击捕获,或自动扫描后一条命令出片)
160
+ tabretake capture --url https://your-app.com --out demo.json --run --vertical --preset daylight
161
+ # 或先自动生成可编辑故事,再一键录制渲染(--scale 2 开启 2x 高清放大):
160
162
  tabretake init --url https://your-app.com --auto --preset daylight
161
- tabretake record --config demo.json
162
- tabretake render --config demo/record.json --vertical
163
+ tabretake run --config demo.json --vertical --scale 2
163
164
  ```
164
165
 
165
- `init --auto` 会自动扫描目标网页,识别可见的输入框与按钮,直接生成一段包含输入、点击和字幕的多步骤演示故事。
166
- 若不加 `--auto` 则生成初始占位模板。也可用 `tabretake plan --url <url>` 查看完整的 DOM 控件清单(包含 ARIA/HTML `label` 与原生 `<select>` `options`)。
166
+ `capture` 会打开真实浏览器窗口,让你像平时一样点击、输入、选下拉框、快捷键标 `focus`(密码框自动脱敏不落盘),结束即生成可编辑的 `demo.json`,加上 `--run` 还可直接出片。
167
+ `init --auto` 会自动扫描目标网页,跳过空导航链接与危险按钮,优先主区域表单和主操作按钮生成多步骤故事。
168
+ `run` 将校验、录制与渲染合并为一条命令(同样支持直接传入 `marks` 或 `record.json`)。你也可以继续分别调用 `record` 和 `render`,或用 `tabretake plan --url <url>` 查看完整 DOM 控件清单(含 ARIA/HTML `label` 与原生 `<select>` `options`)。
167
169
  `name` 仍是 HTML 属性,`selector` 是建议使用的 CSS 定位器。这是 DOM 清单,不是完整的无障碍树。
168
170
 
169
171
  ```bash
@@ -240,7 +242,7 @@ demo/
240
242
  }
241
243
  ```
242
244
 
243
- 动作:`wait`、`goto`、`click`、`type`、`hover`、`focus`、`drag`、`scroll`、`press`、`waitFor`、`screenshot`。
245
+ 动作:`wait`、`goto`、`click`、`type`、`select`、`hover`、`focus`、`drag`、`scroll`、`press`、`waitFor`、`screenshot`。
244
246
 
245
247
  `click` 会等待目标启用且不被遮挡(步骤 `timeout` 使用毫秒,默认 20,000;持续阻挡会返回 `STEP_TIMEOUT`)。
246
248
 
@@ -275,7 +277,7 @@ demo/
275
277
 
276
278
  ### 主题预设与竖屏品牌配置
277
279
 
278
- 支持在配置中选择内置主题 `brand.preset`(`midnight`、`daylight`、`paper`、`slate`),或在渲染时通过 `--preset <name>` 一键切换皮肤。显式指定的 `brand.background` / `brand.accent` 会覆盖预设颜色(除非传入命令行 `--preset`)。
280
+ 支持在配置中选择内置主题 `brand.preset`(`midnight`、`daylight`、`paper`、`slate`),或在渲染时通过 `--preset <name>` 一键切换皮肤。点击波纹颜色会自动跟随主题 `accent`;`brand.frame` 支持 `"auto"`(默认)、`"browser"`、`"phone"`(轻量竖屏手机边框)或 `"none"`。显式指定的 `brand.background` / `brand.accent` 会覆盖预设颜色(除非传入命令行 `--preset`)。传入 `"scale": 2` 或 `--scale 2` 可开启 2x HiDPI 录制,放大局部时更清晰。
279
281
 
280
282
  ```json
281
283
  "brand": {
@@ -310,11 +312,14 @@ demo/
310
312
  | `tabretake doctor [--json]` | 检查 Node、Chromium、ffmpeg、字体 |
311
313
  | `tabretake setup` | 安装与当前 CLI 匹配的 Chromium |
312
314
  | `tabretake init --url <url> [--auto] [--preset <name>]` | 创建可编辑的故事文件(`--auto` 自动生成步骤,`--preset` 设置主题) |
315
+ | `tabretake capture --url <url> [--out demo.json] [--run]` | 打开浏览器亲自点一遍流程,自动生成可编辑 `story.json` |
313
316
  | `tabretake validate --config demo.json [--json]` | 预检故事、录屏标记或录制时间线 |
314
317
  | `tabretake plan --url <url>` | 截图 + 列出可交互元素 |
315
318
  | `tabretake record --config demo.json` | 录制故事 |
316
319
  | `tabretake preview --config demo.json` | 在可见浏览器中执行步骤,提前检查故事 |
317
320
  | `tabretake render --config demo/record.json [--preset <name>]` | 渲染 MP4 + GIF |
321
+ | `tabretake run --config demo.json [--vertical] [--scale 2]` | 一条命令完成校验、录制与渲染出片 |
322
+ | `tabretake mark --video recording.mp4 [--out story-video.json]` | 打开本地可视化打点器,点击视频画面自动生成 `marks` |
318
323
  | `tabretake serve` | 启动内置 demo 站点 |
319
324
  | `tabretake demo [--preset <name>]` | 录制 + 渲染内置 demo |
320
325
 
@@ -340,7 +345,7 @@ Agent 可用 `capabilities --json` 和 `doctor --json` 获取标准输出上的
340
345
  (`record` 与 `render` 在改写输出前也会自动校验)。编辑器补全可在配置中加入
341
346
  `"$schema": "https://raw.githubusercontent.com/gnawbit/tabretake/main/schemas/story.schema.json"`。
342
347
 
343
- `init`、`plan`、`record`、`render` 均支持 `--json`(标准输出返回结果对象,进度写入 stderr)。
348
+ `init`、`capture`、`plan`、`record`、`render`、`run`、`mark` 均支持 `--json`(标准输出返回结果对象,进度写入 stderr)。
344
349
  导航异常返回 `PAGE_UNREACHABLE` 或 `PAGE_HTTP_ERROR` 且不回显敏感 URL;动作完成后字幕即刻显示并在 `pause` 期间保持。
345
350
  手动 `--login` 需在交互终端运行且不带 `--json`,自动调用使用 `--storage-state`。
346
351
  旧版本历史兼容细节见[版本兼容性指南](docs/compatibility.md)。
@@ -352,6 +357,7 @@ Agent 可用 `capabilities --json` 和 `doctor --json` 获取标准输出上的
352
357
  --storage-state auth.json
353
358
  --proxy http://127.0.0.1:10808
354
359
  --viewport 1440x810
360
+ --scale 2 # 1(默认)或 2(2x Retina 高清录制,放大不发虚)
355
361
  --headed # 看着它录
356
362
  --vertical # 同时输出 9:16 和竖屏 GIF
357
363
  --video recording.mp4 # 渲染已有录屏 + marks
@@ -416,7 +422,13 @@ node bin/tabretake.mjs demo --story release --port 0 --out demo-release
416
422
  ## 用已有录屏
417
423
 
418
424
  如果站点有验证码、强反爬,或者你要演示的是桌面 App / 手机 App,先用 OBS、
419
- Screen Studio、QuickTime 或系统录屏录下来,再用 `marks` 描述哪里该放大:
425
+ Screen Studio、QuickTime 或系统录屏录下来,直接用本地可视化打点器在视频画面上点选需要放大的区域(无需手算时间与坐标):
426
+
427
+ ```bash
428
+ tabretake mark --video recording.mp4 --out story-video.json
429
+ ```
430
+
431
+ 也可以直接编写 `marks` JSON 描述哪里该放大:
420
432
 
421
433
  ```json
422
434
  {
package/SKILL.md CHANGED
@@ -4,7 +4,7 @@ description: Create repeatable product demo videos, screen recording walkthrough
4
4
  license: MIT
5
5
  metadata:
6
6
  author: gnawbit
7
- version: "0.4.2"
7
+ version: "0.5.0"
8
8
  repository: https://github.com/gnawbit/tabretake
9
9
  compatibility: Node.js 20.9+, local Chrome/Edge or Chromium via tabretake setup, Windows/macOS/Linux. Target app access is required. Rendering is local.
10
10
  ---
@@ -27,7 +27,7 @@ For legacy release notes (`v0.4.0` and earlier / `demo-reel`), see [compatibilit
27
27
 
28
28
  Use an installed `tabretake` CLI when available. For a source checkout, replace
29
29
  `tabretake` with `node /absolute/path/to/tabretake/bin/tabretake.mjs` (quote paths with spaces).
30
- If missing, install with `npm install --global @gnawbit/tabretake@0.4.2`.
30
+ If missing, install with `npm install --global @gnawbit/tabretake@0.5.0`.
31
31
  When Playwright Chromium is absent, TabRetake automatically falls back to local
32
32
  Chrome or Edge (`--browser auto`), or you can install pinned Chromium via `tabretake setup`.
33
33
 
@@ -46,8 +46,11 @@ required errors first. Node.js 20.9+ is required; Chinese captions need a CJK sy
46
46
  ## Choose the input
47
47
 
48
48
  - **Web app:** confirm the URL and intended flow. Use a test account and non-sensitive demo data.
49
- - **Existing recording:** get the file and moments to highlight. Read
49
+ - **Existing recording:** get the file and moments to highlight, or launch
50
+ `tabretake mark --video recording.mp4` for interactive timestamp picking. Read
50
51
  [recording input and branding](references/rendering.md); do not invent marks.
52
+ - **Interactive capture:** `tabretake capture --url https://your-app.com --out demo.json --run`
53
+ lets the user perform the steps in a visible browser and saves a reusable story.
51
54
  - **Example requested:** `tabretake demo --story readme|onboarding|release --port 0`
52
55
  runs a fictional bundled app (not evidence of external adoption).
53
56
 
@@ -69,18 +72,21 @@ theme preset (`midnight`, `daylight`, `paper`, `slate`), or output orientation.
69
72
  and native select `options`; `name` remains the HTML attribute. Use scoped `selector`
70
73
  when labels repeat or overlap. `init` will not overwrite an existing story.
71
74
 
72
- 3. Validate, preview, record and render:
75
+ 3. Validate, preview, record and render (or use `tabretake run` for one-command execution):
73
76
 
74
77
  ```bash
75
78
  tabretake validate --config demo.json --json
76
79
  tabretake preview --config demo.json --headless --json
77
- tabretake record --config demo.json --out demo --json
80
+ tabretake run --config demo.json --out demo --vertical --scale 2 --json
81
+ # Or run record and render separately:
82
+ tabretake record --config demo.json --out demo --scale 2 --json
78
83
  tabretake render --config demo/record.json --vertical --json
79
84
  ```
80
85
 
81
86
  Omit `--vertical` for landscape only; add `--no-gif` to skip GIFs; pass
82
87
  `--preset daylight|paper|slate|midnight` to switch themes without re-recording;
83
- pass `--browser chrome|msedge|chromium|auto` to pick a browser engine.
88
+ pass `--browser chrome|msedge|chromium|auto` to pick a browser engine;
89
+ pass `--scale 2` for HiDPI Retina recording when zooming in.
84
90
  Use `--vertical --zoom 1 --vertical-zoom 1.8` to keep landscape overview while
85
91
  enlarging portrait focus targets (`vertical.zoom` saves it in config; `zoom: false`
86
92
  keeps full view). Record narrow viewports (e.g. `390x844`) for mobile flows.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnawbit/tabretake",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "Create repeatable web app demos, README GIFs and 9:16 videos from editable JSON steps or existing screen recordings. Local CLI and Agent Skill for Claude Code, Codex and Cursor.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,10 +20,13 @@ checks still apply, and missing fonts need visual inspection of captions.
20
20
  ```
21
21
 
22
22
  ```bash
23
+ tabretake mark --video recording.mp4 --out story-video.json
23
24
  tabretake validate --config story-video.json --json
24
25
  tabretake render --config story-video.json --video recording.mp4 --vertical --json
25
26
  ```
26
27
 
28
+ Use `tabretake mark` to click directly on the video frame in a local browser UI instead of estimating normalized `x`, `y` and `t` manually.
29
+
27
30
  `video` in the config is relative to the config file; `--video` is relative to
28
31
  the current working directory. Marks use **seconds**. Prefer normalized `x`, `y`
29
32
  coordinates from 0 to 1; larger values are source pixels. `duration` delays the
@@ -71,7 +74,7 @@ Branding belongs at the top of a story/marks config, or inside a timeline's `con
71
74
  }
72
75
  ```
73
76
 
74
- Built-in `brand.preset` (or `--preset`) themes: `midnight` (dark studio, default), `daylight` (light minimal), `paper` (warm cream), and `slate` (dark slate-emerald). Explicit `background` and `accent` override preset colors unless `--preset` is passed to `render`.
77
+ Built-in `brand.preset` (or `--preset`) themes: `midnight` (dark studio, default), `daylight` (light minimal), `paper` (warm cream), and `slate` (dark slate-emerald). Cursor click ripples automatically adopt `accent`; `brand.frame` supports `"auto"` (default), `"browser"`, `"phone"` (lightweight vertical device bezel), or `"none"`. Explicit `background` and `accent` override preset colors unless `--preset` is passed to `render`. Use `"scale": 2` (or `--scale 2` on `record`/`run`) for HiDPI 2x recording.
75
78
 
76
79
  Use at most two title lines. Captions wrap and fit within the frame; excessively
77
80
  long captions produce an error. Chinese text needs a CJK font such as Microsoft
@@ -36,6 +36,7 @@ An editable story:
36
36
  | `click`, `hover` | locator, `pause`, `caption`, `zoom` |
37
37
  | `focus` | locator, `pause`, `caption`, `zoom`; measure the target after scrolling into view |
38
38
  | `type` | locator, `value`, `pause`, `caption`, `zoom` |
39
+ | `select` | locator, `value` or `text`, `pause`, `caption`, `zoom` |
39
40
  | `drag` | locator, `dx`, `dy`, `steps`, `pause`, `caption`, `zoom` |
40
41
  | `scroll` | `y`, `pause`, `caption`, `zoom` |
41
42
  | `press` | `key`, `pause`, `caption`, `zoom` |
@@ -74,7 +75,7 @@ new timing; saved timelines keep their original timestamps.
74
75
  Set `zoom: false` when the result is elsewhere on screen. Avoid
75
76
  recording a blank initial load or ending on an unfinished dialog.
76
77
 
77
- To improve blurry output, record at a larger viewport such as 1920x1080.
78
+ To improve blurry output when zooming, record with `"scale": 2` (or `--scale 2`) for HiDPI 2x capture, or use a larger viewport such as `1920x1080`. To capture an editable story by clicking through the app interactively, run `tabretake capture --url <url> --out story.json`.
78
79
  If text does not fit, shorten the caption or split it across meaningful steps.
79
80
  If a selector fails, inspect the reported step and refresh the page plan rather
80
81
  than guessing at selectors or increasing every timeout.
@@ -33,6 +33,15 @@
33
33
  "accent": {
34
34
  "type": "string",
35
35
  "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
36
+ },
37
+ "frame": {
38
+ "type": "string",
39
+ "enum": [
40
+ "auto",
41
+ "browser",
42
+ "phone",
43
+ "none"
44
+ ]
36
45
  }
37
46
  },
38
47
  "additionalProperties": false
@@ -120,6 +129,7 @@
120
129
  "goto",
121
130
  "click",
122
131
  "type",
132
+ "select",
123
133
  "hover",
124
134
  "focus",
125
135
  "drag",
@@ -207,6 +217,7 @@
207
217
  "enum": [
208
218
  "click",
209
219
  "type",
220
+ "select",
210
221
  "hover",
211
222
  "focus",
212
223
  "drag"
@@ -243,7 +254,10 @@
243
254
  "if": {
244
255
  "properties": {
245
256
  "action": {
246
- "const": "type"
257
+ "enum": [
258
+ "type",
259
+ "select"
260
+ ]
247
261
  }
248
262
  }
249
263
  },
@@ -420,7 +434,11 @@
420
434
  "pattern": "^https?://"
421
435
  },
422
436
  "scale": {
423
- "const": 1
437
+ "type": "integer",
438
+ "enum": [
439
+ 1,
440
+ 2
441
+ ]
424
442
  },
425
443
  "initialWait": {
426
444
  "type": "number",
@@ -477,7 +495,11 @@
477
495
  "pattern": "^https?://"
478
496
  },
479
497
  "scale": {
480
- "const": 1
498
+ "type": "integer",
499
+ "enum": [
500
+ 1,
501
+ 2
502
+ ]
481
503
  },
482
504
  "initialWait": {
483
505
  "type": "number",
@@ -572,7 +594,11 @@
572
594
  "$ref": "#/definitions/viewport"
573
595
  },
574
596
  "scale": {
575
- "const": 1
597
+ "type": "integer",
598
+ "enum": [
599
+ 1,
600
+ 2
601
+ ]
576
602
  },
577
603
  "video": {
578
604
  "type": "string",