mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 13:01:09 +02:00
Turns a Mission (concept + objective + linked inputs + iteration history) into a structured plan of tool-call proposals via the shared LlmOrchestrator. - `data/ai/missions/planner/types.ts` — AiPlanInput, AiPlanOutput, PlannedStep, ResolvedInput, AvailableTool - `data/ai/missions/planner/prompt.ts` — pure builder producing system + user messages. System prompt enforces a strict fenced-JSON contract and lists available tools with parameter schema. User prompt injects the mission content, resolved input records, and the last 3 iterations (especially any userFeedback so the planner can course-correct). - `data/ai/missions/planner/parser.ts` — strict parser with a discriminated ParseResult union. Rejects unknown tools, missing rationale, malformed shape. Tolerates missing optional fields. - `llm-tasks/ai-plan.ts` — aiPlanTask LlmTask, minTier 'browser', contentClass 'personal'. On parse failure returns an empty plan with an explanatory summary rather than throwing, so the Runner can record a failed iteration without killing the queue. No Runner yet — the planner is pure (input in, plan out). Runner (next commit) will resolve inputs from modules, invoke the task, stage each PlannedStep as a Proposal under the AI actor, and update the Mission iteration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| food | ||
| guides | ||
| inventory | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| photos | ||
| picture | ||
| plants | ||
| presi | ||
| questions | ||
| quotes/packages/content | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||