Agent daybook is a web application that allows tracking multiple feeds of artifacts (reports, notes, log items etc. etc.) - all the things that AI agents would be producing all day long.
Find a file
peter e5d2f192df Add json and csv artifact kinds with interactive viewers
Gap 1 from planning/2026-09-02-artifact_kind_gaps_for_frequent_agent_output.md.
Chose new first-class kinds over riding on html_fragment, resolving that
doc's open design question in favor of filtering support, raw-source
preservation (like markdown's .md sidecar), and server-owned validation.

- json: validated with json.loads at post time (400 on invalid JSON),
  rendered with renderjson (collapsible tree), vendored locally.
- csv: parsed server-side with the stdlib csv module into columns/rows and
  handed to Grid.js as plain data - no client-side CSV-parsing plugin
  needed, keeping normalization server-owned. Vendored locally (MIT).
- Both preserve their original text as a sidecar file, generalizing what
  was previously markdown-only handling (storage.py's SIDECAR_SUFFIXES) so
  disk-size accounting, eviction cleanup, and ?raw=1 all cover json/csv too.
- Raw JSON is embedded in a <script type="application/json"> block with
  `</script` occurrences escaped (safe because JSON's \/ escape round-trips
  correctly) - verified with a live </script>-injection payload against the
  actual running server, not just unit tests.

New migration (0012) for the KIND_CHOICES change - SQLite doesn't enforce
choices at the schema level, but Django's migration state tracks it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 14:56:20 +01:00
.claude/commands Initial public commit 2026-09-01 21:55:02 +01:00
artifacts Add json and csv artifact kinds with interactive viewers 2026-09-02 14:56:20 +01:00
daybook_project Fix CSRF failure behind a TLS-terminating reverse proxy 2026-09-02 12:17:16 +01:00
deploy Close out issue 001: document CSRF/reverse-proxy requirement 2026-09-02 12:28:41 +01:00
docs Add json and csv artifact kinds with interactive viewers 2026-09-02 14:56:20 +01:00
issues Add handover doc summarizing issues #002-#006 fixes for the LLM test project 2026-09-02 13:56:43 +01:00
scripts Initial public commit 2026-09-01 21:55:02 +01:00
skills/daybook-posting Fix issues #002-#006 found by the LLM test harness 2026-09-02 13:38:59 +01:00
static Add json and csv artifact kinds with interactive viewers 2026-09-02 14:56:20 +01:00
templates/artifacts Add admin-only Settings -> Users page for creating accounts 2026-09-02 12:33:38 +01:00
tests Add json and csv artifact kinds with interactive viewers 2026-09-02 14:56:20 +01:00
.dockerignore Initial public commit 2026-09-01 21:55:02 +01:00
.gitignore Initial public commit 2026-09-01 21:55:02 +01:00
CLAUDE.md Note the permanent test/testpwd fixture user for LLM API testing 2026-09-02 12:59:14 +01:00
manage.py Initial public commit 2026-09-01 21:55:02 +01:00
requirements.txt Add syntax highlighting for fenced code blocks in markdown artifacts 2026-09-02 14:39:02 +01:00