Generated PDF reports (#24) #45
Loading…
Reference in a new issue
No description provided.
Delete branch "pdf-reports"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ready for review.
Implements #24. Design and the tablet-check guide: docs/generated-pdfs.md.
Done
fe74570New PDF items in the cloud (Remarkable.NewPdf): .metadata + .content (formatVersion 2 with cPages, like tablet-written PDFs) + .pdf, root index schema 4. Written after a sync, snapshot first, 412 retry ×3, never added twice, printed text extracted after.a81654fTypst compiler (Reports,Reports.Typst): Typst 0.15.1 pinned (Dockerfile sha256, CI, mise). Templates summary / weekly-review / notes-digest. All Markdown text escaped. Package downloads blocked. rM2 screen-sized pages.395dcf5Base PDFs (Reports.Bases): bundled set inpriv/report_templates/base/(dot grid, lined, Cornell; made here with Typst, sources + license in README) and any library PDF by doc id, within the scope's reach.0a9c4a3RM_NEW_PDF_CONTENT=rmapifallback to the rmapi-js .content shape; tests that@previewimports fail and thatabc".len()stays text.3e773f7make_pdf(PdfReports): chat draft card (first page via pdf.js, Add to library / Discard, superseded by later drafts, retry-safe); MCP tool for write keys writes at once, only into folders and over PDFs the key reaches. Docs updated (generated-pdfs, mcp, verification).mix precommit: 834 tests pass.Still to do
Bundled bases (dot grid, lined, Cornell) made with Typst in priv/report_templates/base/, with sources, bases.json and a README listing each one's source and license. Reports.Bases resolves a bundled name or a library PDF by document id, within the scope's reach. compile/4 takes {:file, path} as well as a blob hash.check_parent now reads the parent's .metadata from the cloud snapshot: it must be a CollectionType that isn't deleted and isn't in the trash, itself or through a folder above it. A notebook or PDF parent gets a sentence an agent can act on ("Meetings" (a) is a notebook, not a folder). The chat and MCP make_pdf both write through NewPdf.plan, so both get the check against the cloud, not only the local library. Review finding F1.WIP: Generated PDF reports (#24)to Generated PDF reports (#24)