Repository navigation
feat: add live inspector, CLI and quality toolkit documentation - #48
Conversation
Apply the inspector and CLI changes from the uploaded patch: - New src/cli/ for dev server and one-shot inspect command - src/inspect/ for HTML reports, diffs and styles - Examples, tests, fixtures and updated configs - Docs updated for the new commands Move the email quality toolkit proposal into docs/email-quality-toolkit.md as planned future work and remove the temporary source files.
Rendered emailsThis PR rendered email templates.
Open the run → Artifacts → download → open |
The worker fixtures intentionally use console, process, and timers. Extend the existing Node globals config so CI lint and code scanning pass.
|
Addressed the CI failures and the security notice:
Pushed |
Export small pure helpers (withReload, isLoopbackHost, requestPath, appendStderr) so every defensive branch is unit-tested, and add fixtures that exercise the remaining CLI edge cases.
Agents must run npm run test:coverage and keep 100% on every metric, and must run Prettier (write then check) before handing work back. Also reformat test/diff.test.ts so format:check is clean.
Summary
patch.txt: introduces a live inspector (devserver) and one-shotinspectCLI command, with supporting modules undersrc/cli/andsrc/inspect/, new examples, tests, fixtures, and updated documentation/configs.issue-email-quality-toolkit.md) intodocs/email-quality-toolkit.mdas an addon for the documentation (planned future work for lint, plain-text, dark-mode and size checks).issue-email-quality-toolkit.mdandpatch.txt) from the repository root.The inspector lets you see exactly which part broke, preview at multiple widths, and diff renders. Quality checks are documented as next steps.
Test plan
npm run checkpasses (format, lint, typecheck, build, test, smoke, publint)npm run demostarts the live inspector on the examplenpx template-runtime-display inspect ./examples/inspect-demo.mjsproduces a report and exits non-zero due to the broken partCloses the temporary files that were added for this work.