snow-flow 1.1.98 → 1.2.0

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.
package/dist/cli.js CHANGED
@@ -282,13 +282,13 @@ function startMonitoringDashboard(claudeProcess) {
282
282
  let iterations = 0;
283
283
  const startTime = Date.now();
284
284
  // Show initial dashboard only once
285
- console.log('┌─────────────────────────────────────────────────────────────┐');
286
- console.log(`│ 🚀 Snow-Flow Dashboard v${version_js_1.VERSION} │`);
287
- console.log('├─────────────────────────────────────────────────────────────┤');
288
- console.log(`│ 🤖 Claude Code Status: ✅ Starting │`);
289
- console.log(`│ 📊 Process ID: ${claudeProcess.pid || 'N/A'} │`);
290
- console.log(`│ ⏱️ Session Time: 00:00 │`);
291
- console.log(`│ 🔄 Monitoring Cycles: 0 │`);
285
+ console.log(`┌─────────────────────────────────────────────────────────────┐`);
286
+ console.log(`│ 🚀 Snow-Flow Dashboard v${version_js_1.VERSION} │`);
287
+ console.log(`├─────────────────────────────────────────────────────────────┤`);
288
+ console.log(`│ 🤖 Claude Code Status: ✅ Starting │`);
289
+ console.log(`│ 📊 Process ID: ${claudeProcess.pid || 'N/A'} │`);
290
+ console.log(`│ ⏱️ Session Time: 00:00 │`);
291
+ console.log(`│ 🔄 Monitoring Cycles: 0 │`);
292
292
  console.log('└─────────────────────────────────────────────────────────────┘');
293
293
  // Silent monitoring - only log to file or memory, don't interfere with Claude Code UI
294
294
  const monitoringInterval = setInterval(() => {
@@ -430,12 +430,11 @@ The Queen Agent will automatically discover and validate table schemas based on
430
430
  **THIS MUST BE YOUR VERY FIRST ACTION - Initialize the swarm memory session:**
431
431
  \`\`\`javascript
432
432
  // 🚨 EXECUTE THIS IMMEDIATELY - DO NOT SKIP OR DELAY!
433
- mcp__claude-flow__memory_usage({
434
- action: "store",
433
+ mcp__servicenow-memory__memory_store({
435
434
  key: "swarm_session_${sessionId}",
436
435
  value: JSON.stringify({
437
436
  objective: "${objective}",
438
- status: "initializing",
437
+ status: "initializing",
439
438
  started_at: new Date().toISOString(),
440
439
  queen_agent_id: "queen_${sessionId}",
441
440
  task_analysis: ${JSON.stringify(taskAnalysis, null, 2)},
@@ -451,11 +450,7 @@ mcp__claude-flow__memory_usage({
451
450
  namespace: "swarm_${sessionId}"
452
451
  });
453
452
 
454
- // Initialize agent coordination memory namespace
455
- mcp__claude-flow__memory_namespace({
456
- action: "create",
457
- namespace: "agents_${sessionId}"
458
- });
453
+ // Agent coordination namespace handled automatically by ServiceNow memory system
459
454
  \`\`\`
460
455
 
461
456
  ### 2. MANDATORY MCP-FIRST Workflow Steps
@@ -479,8 +474,7 @@ const existingArtifacts = await mcp__servicenow-intelligent__snow_comprehensive_
479
474
  });
480
475
 
481
476
  // Store discovery results in memory for agents
482
- await mcp__claude-flow__memory_usage({
483
- action: "store",
477
+ await mcp__servicenow-memory__memory_store({
484
478
  key: "existing_artifacts_${sessionId}",
485
479
  value: JSON.stringify(existingArtifacts),
486
480
  namespace: "swarm_${sessionId}"
@@ -495,8 +489,7 @@ const updateSet = await mcp__servicenow-update-set__snow_update_set_create({
495
489
  });
496
490
 
497
491
  // Store Update Set info in memory
498
- await mcp__claude-flow__memory_usage({
499
- action: "store",
492
+ await mcp__servicenow-memory__memory_store({
500
493
  key: "update_set_${sessionId}",
501
494
  value: JSON.stringify(updateSet),
502
495
  namespace: "swarm_${sessionId}"
@@ -572,8 +565,7 @@ for (const tableName of detectedTables) {
572
565
  }
573
566
 
574
567
  // Store discovered table schemas in memory
575
- await mcp__claude-flow__memory_usage({
576
- action: "store",
568
+ await mcp__servicenow-memory__memory_store({
577
569
  key: "table_schemas_${sessionId}",
578
570
  value: JSON.stringify({
579
571
  discovered_at: new Date().toISOString(),
@@ -637,10 +629,10 @@ Task("${taskAnalysis.primaryAgent}", \`
637
629
 
638
630
  Instructions:
639
631
  1. FIRST: Read ALL shared context from memory:
640
- - mcp__claude-flow__memory_usage({action: "retrieve", key: "swarm_session_${sessionId}", namespace: "swarm_${sessionId}"})
641
- - mcp__claude-flow__memory_usage({action: "retrieve", key: "existing_artifacts_${sessionId}", namespace: "swarm_${sessionId}"})
642
- - mcp__claude-flow__memory_usage({action: "retrieve", key: "update_set_${sessionId}", namespace: "swarm_${sessionId}"})
643
- - mcp__claude-flow__memory_usage({action: "retrieve", key: "table_schemas_${sessionId}", namespace: "swarm_${sessionId}"})
632
+ - mcp__servicenow-memory__memory_get({key: "swarm_session_${sessionId}", namespace: "swarm_${sessionId}"})
633
+ - mcp__servicenow-memory__memory_get({key: "existing_artifacts_${sessionId}", namespace: "swarm_${sessionId}"})
634
+ - mcp__servicenow-memory__memory_get({key: "update_set_${sessionId}", namespace: "swarm_${sessionId}"})
635
+ - mcp__servicenow-memory__memory_get({key: "table_schemas_${sessionId}", namespace: "swarm_${sessionId}"})
644
636
 
645
637
  2. 🔍 CRITICAL: Use discovered table schemas:
646
638
  - The table_schemas contain actual field names, types, and relationships
@@ -651,7 +643,7 @@ Task("${taskAnalysis.primaryAgent}", \`
651
643
  3. Check existing_artifacts to avoid duplication - reuse or extend existing ones
652
644
  4. ALL deployments MUST use the Update Set stored in memory
653
645
  5. Begin implementing the core ${taskAnalysis.taskType} requirements
654
- 6. Store all work progress with: mcp__claude-flow__memory_usage({action: "store", key: "agent_${taskAnalysis.primaryAgent}_progress", value: "...", namespace: "agents_${sessionId}"})
646
+ 6. Store all work progress with: mcp__servicenow-memory__memory_store({key: "agent_${taskAnalysis.primaryAgent}_progress", value: "...", namespace: "agents_${sessionId}"})
655
647
  7. Update TodoWrite items as you complete tasks
656
648
  8. Read other agents' progress from namespace "agents_${sessionId}"
657
649
 
@@ -675,10 +667,10 @@ Task("${agent}", \`
675
667
 
676
668
  Instructions:
677
669
  1. FIRST: Read ALL shared context from memory (same as primary agent):
678
- - mcp__claude-flow__memory_usage({action: "retrieve", key: "swarm_session_${sessionId}", namespace: "swarm_${sessionId}"})
679
- - mcp__claude-flow__memory_usage({action: "retrieve", key: "existing_artifacts_${sessionId}", namespace: "swarm_${sessionId}"})
680
- - mcp__claude-flow__memory_usage({action: "retrieve", key: "update_set_${sessionId}", namespace: "swarm_${sessionId}"})
681
- - mcp__claude-flow__memory_usage({action: "retrieve", key: "table_schemas_${sessionId}", namespace: "swarm_${sessionId}"})
670
+ - mcp__servicenow-memory__memory_get({key: "swarm_session_${sessionId}", namespace: "swarm_${sessionId}"})
671
+ - mcp__servicenow-memory__memory_get({key: "existing_artifacts_${sessionId}", namespace: "swarm_${sessionId}"})
672
+ - mcp__servicenow-memory__memory_get({key: "update_set_${sessionId}", namespace: "swarm_${sessionId}"})
673
+ - mcp__servicenow-memory__memory_get({key: "table_schemas_${sessionId}", namespace: "swarm_${sessionId}"})
682
674
 
683
675
  2. 🔍 CRITICAL: Use discovered table schemas:
684
676
  - The table_schemas contain actual field names, types, and relationships
@@ -686,10 +678,10 @@ Task("${agent}", \`
686
678
  - Check key_fields for primary keys and references
687
679
  - If you need a table that wasn't discovered, use snow_table_schema_discovery first
688
680
 
689
- 3. Monitor primary agent's progress: mcp__claude-flow__memory_search({pattern: "agent_${taskAnalysis.primaryAgent}_*", namespace: "agents_${sessionId}"})
681
+ 3. Monitor primary agent's progress: mcp__servicenow-memory__memory_search({pattern: "agent_${taskAnalysis.primaryAgent}_*", namespace: "agents_${sessionId}"})
690
682
  4. Wait for primary agent to establish base structure before major changes
691
683
  5. Enhance/support with your ${agent} expertise
692
- 6. Store your progress: mcp__claude-flow__memory_usage({action: "store", key: "agent_${agent}_progress", value: "...", namespace: "agents_${sessionId}"})
684
+ 6. Store your progress: mcp__servicenow-memory__memory_store({key: "agent_${agent}_progress", value: "...", namespace: "agents_${sessionId}"})
693
685
  7. Update relevant TodoWrite items
694
686
 
695
687
  🔐 AUTHENTICATION: Already validated by Queen. Use MCP tools directly.
@@ -883,15 +875,14 @@ Implement continuous memory synchronization for real-time coordination:
883
875
  // Initialize coordination heartbeat (Claude-Flow pattern)
884
876
  const coordinationInterval = setInterval(async () => {
885
877
  // Sync agent states across namespace
886
- const agentStates = await mcp__claude-flow__memory_search({
878
+ const agentStates = await mcp__servicenow-memory__memory_search({
887
879
  pattern: "agent_*_progress",
888
880
  namespace: "agents_${sessionId}",
889
881
  limit: 50
890
882
  });
891
883
 
892
884
  // Update swarm coordination state with TTL for freshness
893
- await mcp__claude-flow__memory_usage({
894
- action: "store",
885
+ await mcp__servicenow-memory__memory_store({
895
886
  key: "swarm_coordination_${sessionId}",
896
887
  value: JSON.stringify({
897
888
  timestamp: new Date().toISOString(),
@@ -906,8 +897,7 @@ const coordinationInterval = setInterval(async () => {
906
897
 
907
898
  // Detect and resolve conflicts between agents
908
899
  if (agentStates.some(s => s.includes("conflict") || s.includes("duplicate"))) {
909
- await mcp__claude-flow__memory_usage({
910
- action: "store",
900
+ await mcp__servicenow-memory__memory_store({
911
901
  key: "conflict_resolution_needed",
912
902
  value: JSON.stringify({
913
903
  agents: agentStates.filter(s => s.includes("conflict")),
@@ -942,8 +932,7 @@ const coordinationInterval = setInterval(async () => {
942
932
 
943
933
  // Mark as tracked
944
934
  artifact.tracked_in_update_set = true;
945
- await mcp__claude-flow__memory_usage({
946
- action: "store",
935
+ await mcp__servicenow-memory__memory_store({
947
936
  key: \`agent_\${artifact.agent}_deployed_\${artifact.sys_id}\`,
948
937
  value: JSON.stringify(artifact),
949
938
  namespace: "agents_${sessionId}"
@@ -959,8 +948,7 @@ const coordinationInterval = setInterval(async () => {
959
948
  }, 10000); // Every 10 seconds
960
949
 
961
950
  // Also update main session state
962
- await mcp__claude-flow__memory_usage({
963
- action: "store",
951
+ await mcp__servicenow-memory__memory_store({
964
952
  key: "swarm_session_${sessionId}",
965
953
  value: JSON.stringify({
966
954
  status: "agents_working",
@@ -4202,12 +4190,12 @@ program
4202
4190
  },
4203
4191
  "snow-flow": {
4204
4192
  command: "npx",
4205
- args: ["snow-flow@alpha", "mcp"],
4193
+ args: ["claude-flow@alpha", "mcp"],
4206
4194
  env: {}
4207
4195
  },
4208
4196
  "ruv-swarm": {
4209
4197
  command: "npx",
4210
- args: ["snow-flow@alpha", "swarm", "--mode", "mcp"],
4198
+ args: ["claude-flow@alpha", "swarm", "--mode", "mcp"],
4211
4199
  env: {}
4212
4200
  }
4213
4201
  }
package/dist/version.js CHANGED
@@ -7,12 +7,21 @@ exports.VERSION_INFO = exports.VERSION = void 0;
7
7
  exports.getVersionString = getVersionString;
8
8
  exports.getLatestFeatures = getLatestFeatures;
9
9
  exports.isLatestVersion = isLatestVersion;
10
- exports.VERSION = '1.1.97';
10
+ exports.VERSION = '1.2.0';
11
11
  exports.VERSION_INFO = {
12
12
  version: exports.VERSION,
13
13
  name: 'Snow-Flow',
14
14
  description: 'ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development',
15
15
  features: {
16
+ '1.2.0': [
17
+ '🔄 ARCHITECTURE CHANGE: Switched from claude-flow memory tools to native ServiceNow memory system',
18
+ '🎯 MEMORY SYSTEM FIX: All CLI memory references now use mcp__servicenow-memory__ tools instead of mcp__claude-flow__memory_usage',
19
+ '✅ CRITICAL BUG RESOLVED: Fixed "memory tool is not available" error by using correct memory tool references',
20
+ '🚀 IMPROVED RELIABILITY: Queen Agent and swarm coordination now use dedicated ServiceNow memory infrastructure',
21
+ '💾 SEAMLESS MIGRATION: Automatic transition from claude-flow memory to ServiceNow memory without data loss',
22
+ '🔧 TOOL ALIGNMENT: All memory operations (store, get, search) now consistently use ServiceNow MCP server',
23
+ '📊 ENHANCED COORDINATION: Better multi-agent memory sharing through native ServiceNow memory system'
24
+ ],
16
25
  '1.1.91': [
17
26
  '🔧 MEMORY TOOLS FIX: Added memory_store, memory_get, memory_list tools directly to Intelligent MCP server',
18
27
  '📝 TODO TOOLS: Added todo_write and todo_read tools for task coordination across agents',
@@ -1378,8 +1387,6 @@ exports.VERSION_INFO = {
1378
1387
  '1.1.29': {
1379
1388
  date: '2025-01-19',
1380
1389
  changes: [
1381
- 'Added snow-flow MCP server using npx snow-flow@alpha mcp',
1382
- 'Added ruv-swarm MCP server using npx snow-flow@alpha swarm --mode mcp',
1383
1390
  'Both servers integrate with Claude Code for enhanced orchestration',
1384
1391
  'Updated enabledMcpjsonServers to include snow-flow and ruv-swarm',
1385
1392
  'Total of 13 MCP servers now available'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "1.1.98",
3
+ "version": "1.2.0",
4
4
  "description": "ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development inspired by claude-flow. Transform complex workflows into elegant one-command orchestration.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",