mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:21:08 +02:00
Foundational entity for the AI Workbench Runner. A Mission carries the user's standing instruction (concept + objective), references to the modules it should draw context from, a cadence, and an append-only history of iterations. Each iteration records the plan the AI generated for that run plus the resulting proposal statuses and user feedback. - `data/ai/missions/types.ts` — Mission, PlanStep, MissionIteration, MissionCadence union (manual / interval / daily / weekly / cron) - `data/ai/missions/cadence.ts` — pure `nextRunForCadence(cadence, from)` used by the store on create / update / finishIteration - `data/ai/missions/store.ts` — CRUD + lifecycle (pause / resume / complete / archive / delete) + iteration helpers (start / finish / addFeedback) - `data/ai/module.config.ts` — new `ai` sync app; Missions sync cross-device (unlike the local-only `pendingProposals`) - `db.version(18)` adds the `aiMissions` Dexie store with indexes on state, createdAt, nextRunAt, and [state+nextRunAt] for the Runner's "due now" query Iterations live inline on the Mission record — append-only, small N, always loaded together by the Planner. No separate child table. 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 | ||