mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 17:49:39 +02:00
First pilot of the AI Workbench ghost-state pattern. A reusable `<AiProposalInbox module="todo" />` component renders pending proposals for a given module as dashed-outline ghost cards above the real content — zero UI when the AI is idle, approve / reject inline when it's not. - `data/ai/proposals/queries.ts` — reactive `useAiProposals` live query with module / status / missionId filters. Module filter resolves via the tool registry so each proposal auto-routes to the right page. - `components/ai/AiProposalInbox.svelte` — the drop-in inbox component. Shows tool description + params + AI rationale; approve runs the original intent under the AI actor context (preserving attribution), reject stores the row with status=rejected for the next planner pass. - Wired into /todo for the pilot. Other modules opt in by adding one line once their tools land in DEFAULT_AI_POLICY. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| settings | ||
| +layout.svelte | ||
| +page.svelte | ||