mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-23 10:15:49 +00:00
Add an html kind to the artifact generator: it renders a styled HTML report from a stored JSON spec (title + heading/paragraph/list/table/code blocks), producing text/html bytes the sidebar already previews inline in the sandboxed iframe, while keeping the spec as the source of truth so edit and rewrite make real versions. So a single artifact both renders inline and versions conversationally. The renderer is a fixed program fed the spec as data, and every spec text value is HTML-escaped into the output.