Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix: update commands-deep test for PERF-03 lazy loading architecture

Reuvend7e05b443c1f
diff --git a/v3/@claude-flow/cli/__tests__/commands-deep.test.ts b/v3/@claude-flow/cli/__tests__/commands-deep.test.ts
index 747c76358a..2efa5fbdcb 100644
--- a/v3/@claude-flow/cli/__tests__/commands-deep.test.ts
+++ b/v3/@claude-flow/cli/__tests__/commands-deep.test.ts
@@ -547,16 +547,9 @@ describe('Command Registry (commands/index.ts)', () => {
expect(indexModule.sessionCommand).toBeDefined();
expect(indexModule.mcpCommand).toBeDefined();
expect(indexModule.hooksCommand).toBeDefined();
- expect(indexModule.daemonCommand).toBeDefined();
- expect(indexModule.doctorCommand).toBeDefined();
- expect(indexModule.embeddingsCommand).toBeDefined();
- expect(indexModule.neuralCommand).toBeDefined();
- expect(indexModule.performanceCommand).toBeDefined();
- expect(indexModule.securityCommand).toBeDefined();
- expect(indexModule.hiveMindCommand).toBeDefined();
- expect(indexModule.guidanceCommand).toBeDefined();
- expect(indexModule.applianceCommand).toBeDefined();
- expect(indexModule.ruvectorCommand).toBeDefined();
+ // Advanced commands are lazy-loaded (PERF-03) — verify async getters exist
+ expect(typeof indexModule.getCommandAsync).toBe('function');
+ expect(typeof indexModule.loadAllCommands).toBe('function');
});
it('should export commandsByCategory with all categories', async () => {
@@ -569,7 +562,7 @@ describe('Command Registry (commands/index.ts)', () => {
it('should export commands array with many entries', async () => {
const indexModule = await import('../src/commands/index.js');
expect(Array.isArray(indexModule.commands)).toBe(true);
- expect(indexModule.commands.length).toBeGreaterThanOrEqual(15);
+ expect(indexModule.commands.length).toBeGreaterThanOrEqual(10);
});
it('should export loadAllCommands as async function', async () => {