WIP 2.0.0: the five AI helpers' API

src/ai/helpers.ts: instructions, schemas and inputs for draft event,
summarise report (people-free reports only), draft message, summarise
feedback (no names, access-logged) and improve text. Contact details
are swapped for placeholders before sending and restored after; every
helper gets today's date; weekday clashes and break-even over capacity
are checked in code. v2 routes /ai/draft-event and friends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 17:38:16 +02:00
co-authored by Claude Opus 5.5
parent cbdc7ad10a
commit d4f54f2cc8
7 changed files with 2423 additions and 1 deletions
@@ -18,6 +18,7 @@ const ACCESS_ACTIONS = {
kids_rooms: 'Kids check-in desk or room opened',
kids_offline: 'Kids check-in list downloaded for offline use',
volunteer_roster: 'Volunteer roster opened',
ai_feedback: 'Feedback comments summarised by the AI helper',
};
/**