daybook/artifacts
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
..
migrations 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
admin.py Initial public commit 2026-09-01 21:55:02 +01:00
apps.py Initial public commit 2026-09-01 21:55:02 +01:00
demo_data.py Initial public commit 2026-09-01 21:55:02 +01:00
exception_handlers.py Fix #015 (nested-JSON 500) and #016 (ragged CSV data loss) 2026-09-03 10:57:07 +01:00
forms.py Initial public commit 2026-09-01 21:55:02 +01:00
models.py Add per-artifact public sharing 2026-09-02 16:00:39 +01:00
storage.py Fix concurrent posts racing past quota (issue #010) 2026-09-02 15:22:37 +01:00
urls.py Add GET /api/skill endpoint serving the posting skill 2026-09-03 15:50:04 +01:00
views.py Add GET /api/skill endpoint serving the posting skill 2026-09-03 15:50:04 +01:00