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

checkpoint: File edit:

rUv2c82126bf363
diff --git a/v3/mcp/__tests__/task-tools.test.ts b/v3/mcp/__tests__/task-tools.test.ts
index 6862f7d43d..e9e092fe8e 100644
--- a/v3/mcp/__tests__/task-tools.test.ts
+++ b/v3/mcp/__tests__/task-tools.test.ts
@@ -417,17 +417,20 @@ describe('Task Tools', () => {
});
it('should remove dependencies', async () => {
+ // Use a context without orchestrator to test simple implementation
+ const simpleContext: ToolContext = { sessionId: 'test-session' };
+
const createResult = await createTaskTool.handler({
type: 'code',
description: 'Task with dependencies',
dependencies: ['task-1', 'task-2', 'task-3'],
- }, mockContext);
+ }, simpleContext);
const result = await taskDependenciesTool.handler({
taskId: createResult.taskId,
action: 'remove',
dependencies: ['task-2'],
- }, mockContext);
+ }, simpleContext);
expect(result.action).toBe('remove');
expect(result.dependencies).not.toContain('task-2');