Skip to content

docs: switch README demo to a VHS recording (fixes truncation)#20

Merged
wavyx merged 8 commits into
mainfrom
docs/vhs-demo
Jun 16, 2026
Merged

docs: switch README demo to a VHS recording (fixes truncation)#20
wavyx merged 8 commits into
mainfrom
docs/vhs-demo

Conversation

@wavyx

@wavyx wavyx commented Jun 16, 2026

Copy link
Copy Markdown
Owner

The README demo was a 720px hand-built SMIL SVG with fabricated output — too narrow, so real output lines clipped (the 'truncated' look) and it was flat/synthetic.

Switches to VHS: docs/demo.tape records real pdcli at 1200px / 16px into a crisp, brand-themed animated WebP (smaller + sharper than GIF, renders on GitHub). Regenerable with npm run docs:demo.

  • add docs/demo.tape — read-only aggregate commands (pipeline health, deal summary, coverage); no PII; repeatable
  • docs:demovhs docs/demo.tapedocs/demo.webp
  • README <img>docs/demo.webp; CONTRIBUTING documents the vhs requirement
  • retire scripts/gen-demo.mjs, its test, and docs/demo.svg

⚠️ Do not merge yetdocs/demo.webp isn't generated (vhs needs a TTY + a binary, not available in CI). To finish:

git checkout docs/vhs-demo
brew install vhs
pdcli auth status            # ensure an authenticated sandbox profile
npm run docs:demo            # → docs/demo.webp
git add docs/demo.webp && git commit -m 'docs: add generated demo.webp'

Then merge. Until the webp is committed, the README image will 404.

The README demo was a 720px hand-authored SMIL SVG with fabricated output —
narrow enough that real output lines clipped ('truncated'). Switch to VHS
(charmbracelet/vhs): docs/demo.tape records REAL pdcli at 1200px/16px into a
crisp, brand-themed animated WebP, regenerable via 'npm run docs:demo'.

- add docs/demo.tape (read-only aggregate commands; no PII; repeatable)
- docs:demo now runs 'vhs docs/demo.tape' → docs/demo.webp
- README <img> → docs/demo.webp; CONTRIBUTING documents the vhs requirement
- retire scripts/gen-demo.mjs, its test, and docs/demo.svg

NOTE: docs/demo.webp must be generated (vhs needed; not in CI). Run
'npm run docs:demo' against a sandbox profile and commit the webp before merge.
@wavyx wavyx marked this pull request as draft June 16, 2026 08:11
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

wavyx added 7 commits June 16, 2026 10:22
Homebrew's ffmpeg ships without libwebp, so 'Output docs/demo.webp' fails with
'Encoder not found'. GIF uses ffmpeg's built-in encoder, renders in a GitHub
<img>, and the recording itself was already correct.
docs:demo is back to a clean 'vhs docs/demo.tape' producing docs/demo.webp.
Requires an ffmpeg built with libwebp (homebrew-ffmpeg tap --with-libwebp);
documented in the tape header and CONTRIBUTING.
The account has 2 pipelines, so 'pipeline health' / 'metrics coverage' errored
without --pipeline. Use --pipeline 1 and swap deal-summary/coverage (which
surfaced absurd sandbox values) for funnel + field-list — value-independent,
clean output that showcases the custom-field hash-key resolution.
… a short upsert

- Hide/clear/Show between scenes so each starts at the top (readability; no
  bleed, tall tables not caught mid-scroll).
- Replace 'field list deal' (30+ rows, overflowed the frame) with a one-line
  'person upsert --dry-run' that showcases idempotent match-or-create.
…ings

- Scene 3 → 'pdcli audit': a fixed ~11-row check table (name/severity/count),
  bounded and PII-free (no --verbose), showing the value-add differentiator —
  'your CRM, checked' — to close the see → act → improve arc.
- scripts/seed-demo.sh builds a clean 'pdcli demo' pipeline (4 stages, 10 deals
  with sane €values, a stale deal + duplicate person for audit findings) via the
  host-locked api passthrough, then rewrites --pipeline in docs/demo.tape. So the
  real recording renders as polished as the old fabricated frames, reproducibly.
@wavyx wavyx marked this pull request as ready for review June 16, 2026 09:51
@wavyx wavyx merged commit bb6aa8b into main Jun 16, 2026
11 checks passed
@wavyx wavyx deleted the docs/vhs-demo branch June 16, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants