Commit History
-
[KM-687] Add Dedicated /tools/help Endpoint + Regroup Tools List
pr/5 Phase 2 (Sofhia's part of the skills regroup under /tools): - New POST /api/v1/tools/help (src/api/v1/help.py): dedicated, deterministic help dispatch — the slash command IS the intent, so no router round-trip and no misclassification (contract open-Q #2, dedicated endpoint). SSE shape mirrors chat: sources ([]) -> chunk -> done {message_id}. Generative-only: does NOT persist the turn (Go owns analyses_messages). message_id is minted Python-side when Go omits it (open-Q #1), echoed on done. - ChatHandler.stream_help(): additive method reusing the warm HelpAgent + state store + is_report_ready. The router help path (handle() intent=="help") is left intact — BOTH paths stay live by design. - Rename GET /api/v1/tools -> GET /api/v1/tools/list (tools.py). - Mount help_router in main.py; mark the two rows done in DEV_PLAN §0. Verified: app imports clean, /api/v1/tools/help + /api/v1/tools/list mounted, old /api/v1/tools gone. Co-Authored-By: Claude Opus 4.8 <noreply@an…a881d38