Conversation
…Embedded AI via Embabel) Milestone 4 — Playwright Test Video Integration: - Reuse existing Playwright test suites as visual sources for demo videos - Extract browser events from Playwright traces for audio sync - Sync narration to clicks/navigations the same way Manim syncs to timing.json - 10 detailed issues covering trace extraction, test runner, sync engine, video retiming, config extensions, pipeline integration, auto-discovery, anchor detection, validation, and dogfooding Milestone 5 — Embedded AI via Embabel & Chatbot Interface: - AI provider abstraction layer to decouple from direct OpenAI calls - Embabel agent framework (JVM) as MCP server for intelligent orchestration - Python MCP client connecting docgen to Embabel agents - CLI chat interface (docgen chat) for conversational pipeline control - Wizard chatbot panel for in-context AI assistance - Script generation and error diagnosis agents - Local model support via Ollama - 8 detailed issues covering provider abstraction, Embabel agents, MCP client, CLI chat, wizard panel, script gen, error diagnosis, and Ollama support Co-authored-by: John Menke <jmjava@gmail.com>
This was referenced Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR delivers both planning artifacts (2 milestones, 18 issue specs) and full working implementation of the core Playwright test video integration pipeline and embedded AI infrastructure.
Implemented (all tested, 174 passing, 0 regressions)
Issue 11: AI Provider Abstraction Layer —
src/docgen/ai_provider.pyDecouples docgen from direct OpenAI API calls. Enables switching providers via config.
AIProviderprotocolchat(),tts(),transcribe()OpenAIProviderOllamaProviderHybridProviderget_provider(config)docgen.yamlorDOCGEN_AI_PROVIDERenv varThree call sites refactored:
wizard.py,tts.py,timestamps.py— all use the provider abstraction now. Whisper model is configurable (was hard-coded).Issue 1: Playwright Trace Event Extractor —
src/docgen/playwright_trace.pyParses Playwright
trace.ziparchives, extracts browser actions with normalized timestamps.before/after,action, andevententry formatsevents.jsonfor narration syncdocgen trace-extract [--trace path]Issue 2: Playwright Test Runner —
src/docgen/playwright_test_runner.pyRuns existing Playwright tests with video+tracing enabled, collects artifacts.
pytestandnpx playwright testframeworksdocgen playwright-test [--test filter] [--timeout 300]Issue 3: Event-to-Narration Synchronizer —
src/docgen/playwright_sync.pyAligns narration audio timing to browser events — the core sync engine.
sync_map.jsonwith anchors and speed segmentsdocgen sync-playwright [--segment 03] [--dry-run]Issue 4: Video Speed Adjustment + Compose —
src/docgen/compose.pyIntegrates
type: playwright_testinto the existing Composer.setptsfilterIssue 5: Config Extensions —
src/docgen/config.pyNew config blocks for playwright test integration:
Issue 6: Pipeline Integration —
src/docgen/pipeline.pyFull pipeline flow with Playwright test stages:
--skip-playwright-testsflag fordocgen generate-allplaywright_testsegments existIssue 14: CLI Chat Interface —
src/docgen/chat.pyInteractive terminal chat backed by the AI provider:
/help,/status,/clear,/quitcommands--non-interactivemode:echo "prompt" | docgen chat --non-interactive--providerand--modeloverridesTest Coverage
test_ai_provider.pytest_playwright_trace.pytest_playwright_sync.pytest_playwright_test_runner.pytest_chat.pyNew CLI Commands
docgen chatdocgen playwright-testdocgen trace-extractdocgen sync-playwrightdocgen ai-providerIssue Implementation Status
Milestone 4 — Playwright Test Video Integration
Milestone 5 — Embedded AI via Embabel
Files Changed