feat(FN-5622): add goals REST API with store accessor and route handlers

Introduces a Goals REST API (`GET/POST/PUT /api/goals` and `GET/PUT /api/goals/:id`) backed by a new `@fusion/core` goal store and typed goal types, including comprehensive route and store test coverage. Documentation on architecture and storage is updated to reflect the new domain, and a changeset

Fusion-Task-Id: FN-5622

Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
Fusion-Task-Id: FN-5622
This commit is contained in:
gsxdsm
2026-05-28 10:30:12 -07:00
parent 8c0a75f50e
commit 2a3535893b
23 changed files with 1030 additions and 39 deletions

View File

@@ -0,0 +1,6 @@
---
"@runfusion/fusion": minor
---
Add Goals REST API (`/api/goals`) with list/create/update/archive/unarchive endpoints.
Creating a 6th active goal or unarchiving when already at 5 active now returns HTTP 409 with `ACTIVE_GOAL_LIMIT_EXCEEDED` details.

View File

@@ -0,0 +1,6 @@
---
"@runfusion/fusion": patch
---
Add a new project-level `goals` table to the core schema and fresh database DDL.
Bump `SCHEMA_VERSION` from 91 to 92 with an idempotent migration that creates `goals` and `idxGoalsStatus`.