feat(FN-3207): remove runtime memory-backend side-load

Merged FN-3207 and FN-3242: streamlined the memory backend by removing the runtime side-load pattern in `project-memory.ts` (simplified from 25+ lines), added regression tests across core, engine, and CLI bundle to catch the import issue at build time, and updated ChatView with a CSS fix for file me

Fusion-Task-Id: FN-3207
This commit is contained in:
Fusion
2026-05-03 07:18:52 -07:00
committed by gsxdsm
parent 07a2a42808
commit 3878132c4e
5 changed files with 86 additions and 21 deletions

View File

@@ -42,6 +42,12 @@ describe("CLI bundle output", () => {
expect(content).not.toContain('"@fusion/engine"');
});
it("does not contain runtime memory-backend side-load imports", () => {
const content = readFileSync(bundlePath, "utf-8");
expect(content).not.toMatch(/await\s+import\(\s*["']\.\/memory-backend\.js["']\s*\)/);
expect(content).not.toMatch(/await\s+import\(\s*["']\.\.\/memory-backend\.js["']\s*\)/);
});
it("contains inlined workspace code", () => {
const content = readFileSync(bundlePath, "utf-8");
// TaskStore from @fusion/core