daybook/tests
peter fb69261218 Add GET /api/skill endpoint serving the posting skill
Serves skills/daybook-posting/SKILL.md so users/agents can fetch the
posting instructions from the running instance instead of hunting for the
file. The server rewrites the DAYBOOK_URL config line to the request's own
origin, so the text handed to an agent already points at the right server;
the recipient only supplies their token.

- Same auth as /api/capabilities (session or bearer token); no user data.
- Raw text/markdown by default, ?format=json returns {version, url, skill}.
- Advertised via skill_url + a /api/skill methods entry in capabilities.
- Ships in the Docker image (COPY . /app, skills/ not dockerignored).
- Tests for auth, origin rewrite, JSON mode, session auth, capabilities ad.
- docs/api.md + CHANGELOG updated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-03 15:50:04 +01:00
..
api Add GET /api/skill endpoint serving the posting skill 2026-09-03 15:50:04 +01:00
scripts Add json/csv support to the posting script (issue #012) 2026-09-02 15:38:47 +01:00
unit Convert uploaded .xlsx files to csv artifacts server-side 2026-09-02 16:29:39 +01:00
views Add per-artifact public sharing 2026-09-02 16:00:39 +01:00
__init__.py Initial public commit 2026-09-01 21:55:02 +01:00