Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: isolate Mind tool inventory from recipe storage (#7196)

[._.]/ Adam Eivy098d6de7788e
diff --git a/server/routes/cosMindRoutes.test.js b/server/routes/cosMindRoutes.test.js
index 85fc2d5b3b..12df5e7164 100644
--- a/server/routes/cosMindRoutes.test.js
+++ b/server/routes/cosMindRoutes.test.js
@@ -28,6 +28,7 @@ const mocks = vi.hoisted(() => ({
inspectPersistentMindRuntime: vi.fn(),
readPersistentMindVisibility: vi.fn(),
readPersistentMindTaskCatalog: vi.fn(),
+ listMindToolRecipes: vi.fn(),
resolveImageCapability: vi.fn(),
cleanupPersistentMind: vi.fn(),
}));
@@ -65,6 +66,9 @@ vi.mock('../services/persistentMindMaintenance.js', () => ({
vi.mock('../services/persistentMindTaskCapability.js', () => ({
readPersistentMindTaskCatalog: mocks.readPersistentMindTaskCatalog,
}));
+vi.mock('../services/mindToolRecipes.js', () => ({
+ listRecipes: mocks.listMindToolRecipes,
+}));
vi.mock('../services/persistentMindAttachments.js', () => ({
createPersistentMindAttachment: mocks.createPersistentMindAttachment,
deletePersistentMindAttachment: mocks.deletePersistentMindAttachment,
@@ -189,6 +193,7 @@ describe('persistent mind routes', () => {
apps: [{ id: 'demo-app', name: 'Demo App', planOnly: true }],
providers: [{ id: 'codex', name: 'Codex', type: 'cli', models: [{ id: 'gpt-5', efforts: ['low', 'high'] }] }],
});
+ mocks.listMindToolRecipes.mockResolvedValue({ recipes: [] });
});
it('requests an immediate manual wake', async () => {