From c119fd7a62c36df2704b18b3bd50b0976f780254 Mon Sep 17 00:00:00 2001 From: Till JS Date: Sun, 19 Apr 2026 19:50:52 +0200 Subject: [PATCH] docs(quiz): refresh tools.ts header to list all 8 tools The header still showed the original three-tool surface after the update/delete/stats additions landed. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../apps/web/src/lib/modules/quiz/tools.ts | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/apps/mana/apps/web/src/lib/modules/quiz/tools.ts b/apps/mana/apps/web/src/lib/modules/quiz/tools.ts index f487c9378..38b0dc182 100644 --- a/apps/mana/apps/web/src/lib/modules/quiz/tools.ts +++ b/apps/mana/apps/web/src/lib/modules/quiz/tools.ts @@ -1,11 +1,19 @@ /** - * Quiz tools — AI-accessible read + write over the encrypted quiz tables. + * Quiz tools — AI-accessible CRUD over the encrypted quiz tables. * - * - `create_quiz` (propose) — mints an empty quiz shell. - * - `add_quiz_question` (propose) — appends a question; options payload is - * shape-dependent on the question type (see description in the catalog). - * - `list_quizzes` (auto) — returns decrypted metadata so the planner - * can reference an existing quiz when extending it. + * Propose (needs user approval): + * - create_quiz — mint an empty quiz shell + * - update_quiz — edit title/description/category/pin/archive + * - add_quiz_question — append a question (options shape depends on type) + * - update_quiz_question — edit text / type+options / explanation + * - delete_quiz_question — soft-delete a question + recount + * + * Auto (read-only context): + * - list_quizzes — decrypted metadata summary + * - get_quiz_questions — full decrypted question list for a quiz + * - get_quiz_stats — attemptCount, avgScore, bestScore, lastAttemptAt + * + * delete_quiz is deliberately absent — too destructive to hand to the agent. */ import type { ModuleTool } from '$lib/data/tools/types';