snow-flow 4.5.38 → 4.5.39
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.
|
@@ -490,22 +490,26 @@ class SnowFlowMCPServer {
|
|
|
490
490
|
task.assignedAgent = availableAgent.id;
|
|
491
491
|
availableAgent.status = 'busy';
|
|
492
492
|
}
|
|
493
|
-
// Fix: Handle
|
|
494
|
-
const dependencies = args.dependencies
|
|
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';
|
|
495
497
|
return {
|
|
496
498
|
content: [
|
|
497
499
|
{
|
|
498
500
|
type: 'text',
|
|
499
501
|
text: JSON.stringify({
|
|
500
502
|
taskId,
|
|
501
|
-
task:
|
|
503
|
+
task: taskDescription,
|
|
502
504
|
strategy: args.strategy || 'adaptive',
|
|
503
505
|
priority: args.priority || 'medium',
|
|
504
506
|
dependencies: dependencies,
|
|
505
507
|
dependency_count: dependencies.length,
|
|
506
508
|
status: 'orchestrating',
|
|
507
|
-
assignedAgent:
|
|
508
|
-
message: 'Task orchestration initiated with
|
|
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'
|
|
509
513
|
}),
|
|
510
514
|
},
|
|
511
515
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.39",
|
|
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",
|