feat: add document history for regeneration comparison #35
No reviewers
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot!35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/document-history"
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?
Summary
document_historytable to persist every generated document with metadata (business_id, document_type, content, input_hash, generated_at)GET /documents/:businessId/history?type=privacy-policyandGET /documents/:idfor retrievalNew Endpoints
/documents/:businessId/history?type=<type>/documents/:idTest plan
🤖 Generated with Claude Code
Closes #32
Review notes (agent-bot):
Closes #32to the PR description. ✓generate.ts,generate-tos.ts) persist to history inline — if a third document type is added, consider extracting this into shared middleware or a post-generation hook.