How krishnapollu/playwright-logbook works
Playwright Logbook captures Playwright test results into local history, then turns them into searchable HTML reports, CLI summaries, and bounded debugging evidence. A typical flow is Playwright run → reporter and persisted records → report/history views or an analysis task; CI shards can be merged and portable bundles can move evidence between stores. The VS Code extension reads history for browsing, comparison, and agent handoff. Edges are limited to relationships stated in the README or visible in excerpts/SOURCE INDEX references; unsampled implementation details are not assumed.
Main entry points: program.ts CLI commands · extension.ts VS Code extension · store.ts Local history store · detail.ts Failure details
Components 20
Capture and records
- Reporter capture
src/reporter.ts - Run records
src/schema.ts - History analysis
src/history.ts - Local history store
src/store.ts
Reports and investigation
- CLI commands
src/cli/program.ts - Report model
src/model.ts - HTML report
src/render.ts - Report interactions
src/clientlib.ts - Debug evidence
src/analyze.ts
CI and portability
- Bundle archive
src/bundles/archive.ts - Bundle export
src/bundles/export.ts - Bundle import
src/bundles/ingest.ts - GitHub artifacts
src/githubartifacts.ts
VS Code experience
- VS Code extension
packages/vscode/src/extension.ts - History reader
src/historyreader.ts - Failure details
packages/vscode/src/detail.ts - Run comparison
packages/vscode/src/comparison.ts - Editor insights
packages/vscode/src/insights.ts - Agent task prep
packages/vscode/src/analysis.ts
Other components
- Playwright tests
Connections 26
- Playwright tests → Reporter capture: reports results
README.md - Reporter capture → Local history store: persists runs
- Local history store → Run records: validates records
src/store.ts - CLI commands → Debug evidence: runs analysis
src/cli/program.ts - CLI commands → Bundle export: exports bundles
src/cli/program.ts - CLI commands → Bundle import: imports bundles
src/cli/program.ts - CLI commands → GitHub artifacts: fetches artifacts
src/cli/program.ts - CLI commands → Report model: builds report model
- CLI commands → HTML report: writes report
- Report model → History analysis: uses run trends
src/model.ts - HTML report → Report interactions: embeds interactions
src/render.ts - Local history store → Run records: loads validated runs
src/store.ts - Bundle export → Local history store: reads history
src/bundles/export.ts - Bundle export → Bundle archive: creates archive
src/bundles/export.ts - Bundle import → Bundle archive: inspects archive
src/bundles/ingest.ts - Bundle import → Local history store: writes imported runs
src/bundles/ingest.ts - VS Code extension → History reader: reads history
packages/vscode/src/extension.ts - History reader → Run records: validates records
src/historyreader.ts - VS Code extension → Failure details: opens failures
packages/vscode/src/extension.ts - VS Code extension → Run comparison: opens comparison
packages/vscode/src/extension.ts - VS Code extension → Editor insights: loads insights
packages/vscode/src/extension.ts - VS Code extension → Bundle import: imports bundles
packages/vscode/src/extension.ts - Failure details → Editor insights: uses insights
packages/vscode/src/detail.ts - Failure details → History reader: loads executions
packages/vscode/src/detail.ts - Failure details → Agent task prep: prepares task
packages/vscode/src/detail.ts - Agent task prep → Debug evidence: assembles evidence