snow-flow 4.5.39 → 4.5.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,30 +89,6 @@ class SnowFlowMCPServer {
89
89
  required: ['type'],
90
90
  },
91
91
  },
92
- {
93
- name: 'task_orchestrate',
94
- description: 'Orchestrates complex task workflows using intelligent agent assignment and dependency management. Features real AI-based task analysis.',
95
- inputSchema: {
96
- type: 'object',
97
- properties: {
98
- task: {
99
- type: 'string',
100
- },
101
- strategy: {
102
- type: 'string',
103
- enum: ['parallel', 'sequential', 'adaptive', 'balanced'],
104
- },
105
- priority: {
106
- type: 'string',
107
- enum: ['low', 'medium', 'high', 'critical'],
108
- },
109
- dependencies: {
110
- type: 'array',
111
- },
112
- },
113
- required: ['task'],
114
- },
115
- },
116
92
  {
117
93
  name: 'swarm_status',
118
94
  description: 'Monitors swarm health metrics, agent status, and performance indicators in real-time.',
@@ -347,8 +323,6 @@ class SnowFlowMCPServer {
347
323
  return await this.handleSwarmInit(args);
348
324
  case 'agent_spawn':
349
325
  return await this.handleAgentSpawn(args);
350
- case 'task_orchestrate':
351
- return await this.handleTaskOrchestrate(args);
352
326
  case 'swarm_status':
353
327
  return await this.handleSwarmStatus(args);
354
328
  case 'memory_usage':
@@ -471,50 +445,6 @@ class SnowFlowMCPServer {
471
445
  ],
472
446
  };
473
447
  }
474
- async handleTaskOrchestrate(args) {
475
- const taskId = `task_${Date.now()}`;
476
- const task = {
477
- id: taskId,
478
- description: args.task,
479
- status: 'pending',
480
- createdAt: new Date(),
481
- };
482
- this.tasks.set(taskId, task);
483
- // Real task orchestration with intelligent agent assignment
484
- task.status = 'in_progress';
485
- // Use AI to determine best agent for the task
486
- const taskAnalysis = await this.analyzeTaskRequirements(args.task);
487
- // Find best matching agent based on capabilities
488
- const availableAgent = this.findBestAgentForTask(taskAnalysis);
489
- if (availableAgent) {
490
- task.assignedAgent = availableAgent.id;
491
- availableAgent.status = 'busy';
492
- }
493
- // Fix: Handle all parameters safely to prevent undefined errors
494
- const dependencies = Array.isArray(args.dependencies) ? args.dependencies : [];
495
- const taskDescription = task?.description || args.task || 'Unknown task';
496
- const assignedAgent = task?.assignedAgent || availableAgent?.id || 'unassigned';
497
- return {
498
- content: [
499
- {
500
- type: 'text',
501
- text: JSON.stringify({
502
- taskId,
503
- task: taskDescription,
504
- strategy: args.strategy || 'adaptive',
505
- priority: args.priority || 'medium',
506
- dependencies: dependencies,
507
- dependency_count: dependencies.length,
508
- status: 'orchestrating',
509
- assignedAgent: assignedAgent,
510
- message: 'Task orchestration initiated with comprehensive parameter validation',
511
- real_agent_coordination: 'Available via RealAgentSpawner',
512
- recommendation: 'Use Task tool for real agent spawning instead of task_orchestrate'
513
- }),
514
- },
515
- ],
516
- };
517
- }
518
448
  async handleSwarmStatus(args) {
519
449
  const swarmId = args.swarmId;
520
450
  if (!swarmId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "4.5.39",
3
+ "version": "4.5.41",
4
4
  "description": "Conversational ServiceNow development platform using Claude Code. Multi-agent orchestration with 20+ MCP servers providing 200+ ServiceNow tools for comprehensive platform development.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",