@tandryukha/aidemo 0.8.0 → 0.15.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/.claude/skills/record-demo/SKILL.md +5 -2
- package/README.md +16 -4
- package/docs/AUTHORING.md +734 -48
- package/package.json +3 -2
- package/src/anchors.ts +128 -0
- package/src/attention.ts +365 -0
- package/src/caption-render.ts +17 -8
- package/src/captions.ts +244 -36
- package/src/capture.ts +113 -0
- package/src/cards.ts +15 -6
- package/src/cli.ts +711 -26
- package/src/compose.ts +1318 -101
- package/src/cursor-overlay.ts +7 -113
- package/src/cursor.ts +19 -4
- package/src/distribute.ts +37 -4
- package/src/expr.ts +130 -0
- package/src/ffmpeg.ts +224 -0
- package/src/frame.ts +205 -0
- package/src/frames.ts +208 -0
- package/src/golden.ts +27 -0
- package/src/guide.ts +102 -0
- package/src/i18n.ts +7 -4
- package/src/import-trace.ts +640 -0
- package/src/inspect.ts +316 -0
- package/src/lint.ts +673 -0
- package/src/login.ts +143 -0
- package/src/mcp/jobs.ts +5 -1
- package/src/mcp/server.ts +468 -27
- package/src/player.ts +1286 -41
- package/src/profile.ts +128 -0
- package/src/project.ts +12 -2
- package/src/qa.ts +295 -0
- package/src/recorder.ts +316 -21
- package/src/safe-regex.ts +36 -0
- package/src/setup.ts +248 -0
- package/src/starter.ts +244 -0
- package/src/stills.ts +15 -4
- package/src/types.ts +796 -22
- package/src/variants.ts +1 -1
- package/src/voice-local.ts +7 -1
- package/src/voice.ts +60 -1
- package/src/walkthrough.ts +250 -0
- package/src/zoom.ts +85 -39
|
@@ -26,8 +26,11 @@ fetch it first, then follow it:
|
|
|
26
26
|
and follow the guide. Pipeline operations (`probe`, `render`, `voice`,
|
|
27
27
|
`captions`, `compose`, `gif`) are **jobs**: they return a `jobId`
|
|
28
28
|
immediately — poll **`job_status`** for progress, results, and failure
|
|
29
|
-
artifacts.
|
|
30
|
-
|
|
29
|
+
artifacts. Discover selectors with **`inspect`** (unique selectors per
|
|
30
|
+
visible element — no guessing) before writing targets; validate storyboard
|
|
31
|
+
edits with **`validate_storyboard`** and **`lint_storyboard`** (pacing
|
|
32
|
+
forecast: which scenes will freeze or be cut) before rendering; read
|
|
33
|
+
`output/report.json` after. Pass **absolute** demo directories.
|
|
31
34
|
2. **Fallback — no MCP server registered**: run `aidemo guide` and follow the
|
|
32
35
|
same document using the CLI commands it maps out.
|
|
33
36
|
3. **After verifying the final video** (per the guide's "Verify before
|
package/README.md
CHANGED
|
@@ -15,12 +15,16 @@ demo.
|
|
|
15
15
|
[](https://aidemo.top)
|
|
16
16
|
[](https://github.com/tandryukha/aidemo/actions/workflows/ci.yml)
|
|
17
17
|
[](LICENSE)
|
|
18
|
-
[](https://www.npmjs.com/package/@tandryukha/aidemo)
|
|
19
|
+
[](https://github.com/tandryukha/homebrew-aidemo)
|
|
19
20
|
[](https://github.com/marketplace/actions/aidemo-demo-video)
|
|
21
|
+
[](https://registry.modelcontextprotocol.io)
|
|
20
22
|
[](#three-ways-to-use-it)
|
|
21
23
|
[](https://scorecard.dev/viewer/?uri=github.com/tandryukha/aidemo)
|
|
24
|
+
[](https://glama.ai/mcp/servers/tandryukha/aidemo)
|
|
22
25
|
|
|
23
|
-
**Install:** `/plugin marketplace add tandryukha/aidemo` (
|
|
26
|
+
**Install:** Claude Code `/plugin marketplace add tandryukha/aidemo` · any agent `npx skills add tandryukha/aidemo` (skill only; add the MCP server with `repo-init`) · CI `uses: tandryukha/aidemo@stable` · CLI `npx -y @tandryukha/aidemo` · Homebrew `brew install tandryukha/aidemo/aidemo`
|
|
27
|
+
<br>Published on the [GitHub Marketplace](https://github.com/marketplace/actions/aidemo-demo-video), [npm](https://www.npmjs.com/package/@tandryukha/aidemo), a [Homebrew tap](https://github.com/tandryukha/homebrew-aidemo), and the [MCP Registry](https://registry.modelcontextprotocol.io).
|
|
24
28
|
|
|
25
29
|
[](https://github.com/tandryukha/aidemo/releases/download/v0.3.0/wikipedia-showcase-demo.mp4)
|
|
26
30
|
|
|
@@ -171,19 +175,27 @@ re-recording, recompose without re-transcribing, etc.
|
|
|
171
175
|
|
|
172
176
|
```bash
|
|
173
177
|
aidemo init <name> # scaffold demos/<name>/ with a starter storyboard
|
|
178
|
+
aidemo init <name> --from-url <url> # …drafted from the live page's headings + real selectors
|
|
179
|
+
aidemo import-trace trace.zip --name <name> # …or from a Playwright trace / *.spec.ts (actions + selectors → scenes)
|
|
174
180
|
aidemo voice <dir> # per-scene TTS → narration.mp3 + voice.json
|
|
175
181
|
aidemo record <dir> # drive Chrome → raw video + timeline.json
|
|
176
182
|
aidemo probe <dir> # record-only dry run (verify selectors), no key needed
|
|
183
|
+
aidemo validate <dir> # schema-check the storyboard, no browser (non-zero exit on issues)
|
|
184
|
+
aidemo lint <dir> # predict freezes/cuts + selector pitfalls before spending a take
|
|
177
185
|
aidemo captions <dir> # Whisper → captions.{srt,vtt,cues.json} (--offline for no network)
|
|
178
186
|
aidemo compose <dir> # trim + sync + zoom + cards + caption + mux → final-demo.mp4
|
|
179
187
|
aidemo gif <dir> # final-demo.mp4 → README-ready GIF (autoplays on GitHub)
|
|
188
|
+
aidemo frames <dir> # evenly spaced PNGs from the video for review (--source raw)
|
|
180
189
|
aidemo render <dir> # voice → record → captions → compose
|
|
181
190
|
aidemo guide # print the canonical authoring guide
|
|
182
191
|
aidemo doctor # check Node, ffmpeg, Chrome, voice endpoint
|
|
183
192
|
```
|
|
184
193
|
|
|
185
194
|
Add `--headless` for CI/fixtures; omit it for real sites that need your
|
|
186
|
-
logged-in session. `--profile <dir>` picks the Chrome user-data dir;
|
|
195
|
+
logged-in session. `--profile <dir>` picks the Chrome user-data dir; `--fresh`
|
|
196
|
+
records on a wiped one; `--storage-state <file>` / `--cookie "name=value;domain=host"`
|
|
197
|
+
seed a cookie-gated site before the first action (or declare `setup` in the
|
|
198
|
+
storyboard, which can also run a `preflight` script before every take);
|
|
187
199
|
`--capture native|obs` switches to high-fidelity screen capture. `voice`/`render`
|
|
188
200
|
**skip TTS for unchanged scenes**, and `record` **salvages a failed take** (keeps
|
|
189
201
|
the footage + drops a screenshot/frame-dump in `logs/`).
|
|
@@ -264,7 +276,7 @@ demos/<name>/ ← your working area (untracked; scaffold with `aidemo i
|
|
|
264
276
|
fully local. The MCP server is **stdio-only** — no listener.
|
|
265
277
|
- **Small, auditable surface:** ~20 source files, 7 runtime deps, MIT. Pin an
|
|
266
278
|
immutable ref if you're wary of the moving `#stable` tag:
|
|
267
|
-
`npx -y github:tandryukha/aidemo#v0.
|
|
279
|
+
`npx -y github:tandryukha/aidemo#v0.14.0` (any released tag).
|
|
268
280
|
- Full detail: [docs/LOCAL_MODELS.md](docs/LOCAL_MODELS.md#what-leaves-the-machine)
|
|
269
281
|
· report vulnerabilities privately per [SECURITY.md](SECURITY.md).
|
|
270
282
|
|