feat(FN-3162): add plugin-owned roadmap schema hook and store bootstrap

The merge introduces a plugin-owned roadmap schema system (FN-3162), allowing plugins to define their own schema initialization hook, with tests bootstrapped in the roadmap store and documentation added to the plugin authoring guide. The parallel FN-3281 work delivers review revisions, updates the l

Fusion-Task-Id: FN-3162
This commit is contained in:
Fusion
2026-05-08 17:34:33 -07:00
committed by gsxdsm
parent a4550ff4f6
commit a3299f72b0
6 changed files with 88 additions and 44 deletions

View File

@@ -1,6 +1,7 @@
import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
import { Database, createDatabase } from "@fusion/core";
import { RoadmapStore } from "../roadmap-store.js";
import { ensureRoadmapSchema } from "../../roadmap-schema.js";
import type {
RoadmapCreateInput,
RoadmapUpdateInput,
@@ -33,6 +34,7 @@ describe("RoadmapStore", () => {
// Database instances explicitly (search for `persistDb`).
db = new Database(join(tmpDir, ".fusion"), { inMemory: true });
db.init();
ensureRoadmapSchema(db);
store = new RoadmapStore(db);
});