feat(ai): web-research pre-step + auto-kontext + save_news_article tool

Mission objectives matching /recherch|research|news|finde|suche|aktuelle|neueste/i
trigger a synchronous deep-research call (mana-search + mana-llm via the
existing /api/v1/research/start-sync pipeline) before the planner runs;
the summary plus top-8 source URLs are injected as a synthetic ResolvedInput
so the planner can stage save_news_article proposals against real URLs.

The kontext singleton is auto-attached to every mission's planner input
(decrypted client-side, gated on non-empty content + not already linked).

save_news_article is a new proposable tool routed through articlesStore
.saveFromUrl (Readability via /api/v1/news/extract/save). AiProposalInbox
mounted on /news so the user can approve/reject inline. mana-ai planner
tool list mirrors the new tool to keep the boot-time drift guard happy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-15 19:10:13 +02:00
parent 4c8034f9d0
commit fdb8e60d07
6 changed files with 182 additions and 5 deletions

View file

@ -24,6 +24,7 @@ export const AI_PROPOSABLE_TOOL_NAMES = [
'create_place',
'visit_place',
'undo_drink',
'save_news_article',
] as const;
export type AiProposableToolName = (typeof AI_PROPOSABLE_TOOL_NAMES)[number];