snow-flow 1.4.22 → 1.4.24

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.
Files changed (2) hide show
  1. package/README.md +198 -106
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -32,38 +32,52 @@ Snow-Flow is the **most advanced ServiceNow intelligence platform** available, c
32
32
 
33
33
  ---
34
34
 
35
- ## 🎯 **Core Capabilities**
35
+ ## 🤖 **The Power of Swarm: One Command, Infinite Possibilities**
36
+
37
+ **Snow-Flow's revolutionary approach: Just describe what you want in natural language, and our AI swarm makes it happen.**
38
+
39
+ ### ⚡ **The Only Command You Need**
40
+
41
+ ```bash
42
+ # Instead of manually using 14 different tools...
43
+ snow-flow swarm "Your natural language request here"
44
+
45
+ # Examples:
46
+ snow-flow swarm "Analyze my incident table for performance issues and unused fields"
47
+ snow-flow swarm "Discover all change management processes and identify bottlenecks"
48
+ snow-flow swarm "Optimize my ServiceNow instance for better performance"
49
+ snow-flow swarm "Create documentation for all my custom workflows"
50
+ ```
51
+
52
+ **Behind the scenes:** Our AI swarm automatically:
53
+ - 🎯 **Analyzes your request** and determines which of the 14 tools to use
54
+ - 🤖 **Spawns specialist agents** (Performance, Process Mining, Security, Analytics)
55
+ - ⚡ **Executes in parallel** for maximum speed and efficiency
56
+ - 🧠 **Learns from each interaction** to improve future responses
57
+ - 📊 **Delivers comprehensive results** with actionable insights
58
+
59
+ ### 🎯 **Why Swarm Changes Everything**
36
60
 
37
61
  <table>
38
62
  <tr>
39
63
  <td width="50%">
40
64
 
41
- ### 🧠 **AI Intelligence**
42
- - **Predictive Impact Analysis** with 90%+ accuracy
43
- - **Pattern Recognition** across all scripts
44
- - **Automated Documentation** generation
45
- - **Intelligent Code Refactoring**
46
-
47
- ### ⚡ **Performance Revolution**
48
- - **80% API call reduction** through smart batching
49
- - **60% faster analysis** with parallel processing
50
- - **Real-time monitoring** with anomaly detection
51
- - **Query optimization** with index recommendations
65
+ ### **❌ Traditional Approach**
66
+ - Learn 14 different tool syntaxes
67
+ - Manually coordinate multiple analyses
68
+ - Sequential execution (slow)
69
+ - Miss connections between insights
70
+ - Complex command-line operations
52
71
 
53
72
  </td>
54
73
  <td width="50%">
55
74
 
56
- ### 🔍 **Deep Analytics**
57
- - **Process Mining** from real event logs
58
- - **Cross-table process discovery**
59
- - **Field usage intelligence** across all components
60
- - **Migration planning** with risk assessment
61
-
62
- ### 🤖 **Multi-Agent Orchestration**
63
- - **Autonomous specialist agents** for every domain
64
- - **Swarm coordination** with shared memory
65
- - **Self-healing workflows** with auto-recovery
66
- - **Claude Code integration** for ultimate control
75
+ ### **✅ Snow-Flow Swarm Approach**
76
+ - **One natural language command**
77
+ - **AI automatically coordinates everything**
78
+ - **Parallel execution** (60% faster)
79
+ - **Holistic insights** across all domains
80
+ - **Conversational interface**
67
81
 
68
82
  </td>
69
83
  </tr>
@@ -71,7 +85,9 @@ Snow-Flow is the **most advanced ServiceNow intelligence platform** available, c
71
85
 
72
86
  ---
73
87
 
74
- ## 🛠️ **14 Advanced Intelligence Tools**
88
+ ## 🛠️ **Underlying AI Capabilities (Automatically Used by Swarm)**
89
+
90
+ *You don't need to learn these - the swarm uses them automatically based on your natural language requests*
75
91
 
76
92
  ### 📊 **Performance & Analytics**
77
93
 
@@ -272,102 +288,164 @@ snow-flow tool snow_analyze_table_deep \
272
288
 
273
289
  ---
274
290
 
275
- ## ⚡ **Quick Start**
291
+ ## ⚡ **Quick Start: From Zero to AI-Powered Analysis in 5 Minutes**
276
292
 
277
- ### 1. **Installation**
293
+ ### 0. **Prerequisites**
294
+
295
+ ⚠️ **IMPORTANT: Claude Code must be installed first** (Snow-Flow orchestrates through Claude Code):
278
296
 
279
297
  ```bash
280
- # Install globally for command-line use
281
- npm install -g snow-flow
298
+ # 1. Install Claude Code globally
299
+ npm install -g @anthropic-ai/claude-code
300
+
301
+ # 2. (Optional) Skip permissions check for faster setup
302
+ # Only use if you understand the security implications
303
+ claude --dangerously-skip-permissions
304
+ ```
305
+
306
+ **Platform Support:**
307
+ - ✅ **macOS**: Extensively tested and fully supported
308
+ - ⚙️ **Linux/Windows**: Should work but not extensively tested yet
282
309
 
283
- # Or install in your project
284
- npm install snow-flow
310
+ ### 1. **Install Snow-Flow**
311
+
312
+ ```bash
313
+ # Install Snow-Flow globally
314
+ npm install -g snow-flow
285
315
 
286
316
  # Verify installation
287
317
  snow-flow --version
288
318
  ```
289
319
 
290
- ### 2. **Authentication Setup**
320
+ ### 2. **Authentication (One-Time Setup)**
291
321
 
292
322
  ```bash
293
- # Interactive OAuth setup (recommended)
323
+ # Interactive OAuth setup (guided process)
294
324
  snow-flow auth login
295
325
 
296
- # Or use environment variables
297
- export SNOW_INSTANCE=your-instance.service-now.com
298
- export SNOW_CLIENT_ID=your-oauth-client-id
299
- export SNOW_CLIENT_SECRET=your-oauth-client-secret
326
+ # That's it! Snow-Flow handles the rest
300
327
  ```
301
328
 
302
- ### 3. **First Analysis**
329
+ ### 3. **Start Using Swarm (The Magic Begins)**
330
+
331
+ **How it works:** Snow-Flow orchestrates through Claude Code, giving you natural language control over 14 advanced ServiceNow tools.
303
332
 
304
333
  ```bash
305
- # Test connection and analyze your incident table
306
- snow-flow tool snow_analyze_table_deep \
307
- --table_name incident \
308
- --analysis_scope '["structure", "performance", "data_quality"]'
334
+ # Just tell Snow-Flow what you want in natural language:
309
335
 
310
- # Discover processes in your instance
311
- snow-flow tool snow_discover_process \
312
- --process_type incident_management --analysis_period 30d
313
- ```
336
+ # 🔍 Analyze your ServiceNow instance
337
+ snow-flow swarm "Give me a comprehensive health check of my ServiceNow instance"
314
338
 
315
- ### 4. **Multi-Agent Swarm (Advanced)**
339
+ # 📊 Performance optimization
340
+ snow-flow swarm "Find and fix performance issues in my incident management"
316
341
 
317
- ```bash
318
- # Let AI agents analyze and optimize your entire ServiceNow instance
319
- snow-flow swarm "Comprehensive ServiceNow health check and optimization" \
320
- --strategy analysis --parallel --agents 8
342
+ # 🔄 Process discovery
343
+ snow-flow swarm "Discover all my ITSM processes and identify bottlenecks"
344
+
345
+ # 📚 Documentation generation
346
+ snow-flow swarm "Create documentation for all my custom workflows and scripts"
321
347
 
322
- # AI-powered process optimization
323
- snow-flow swarm "Discover and optimize all incident management processes" \
324
- --strategy development --auto-deploy
348
+ # 🛡️ Security analysis
349
+ snow-flow swarm "Analyze my instance for security vulnerabilities and compliance issues"
325
350
  ```
326
351
 
352
+ **That's literally it!** No complex command syntax, no manual tool selection, no configuration. Just natural language requests and Snow-Flow's AI swarm handles everything through Claude Code's intelligent orchestration.
353
+
354
+ ### 🎯 **What Happens Behind the Scenes**
355
+
356
+ When you run a swarm command, Snow-Flow automatically:
357
+
358
+ 1. 🧠 **Understands your request** using advanced NLP
359
+ 2. 🎯 **Selects optimal tools** from the 14 available capabilities
360
+ 3. 🤖 **Spawns specialist agents** for each domain (Performance, Security, Process Mining)
361
+ 4. ⚡ **Executes everything in parallel** for maximum speed
362
+ 5. 🔗 **Combines insights** into a comprehensive, actionable report
363
+ 6. 💾 **Learns from the interaction** to improve future responses
364
+
327
365
  ---
328
366
 
329
- ## 🌟 **Real-World Examples**
367
+ ## 🌟 **Real-World Swarm Examples**
368
+
369
+ *Just describe what you need - no technical syntax required*
330
370
 
331
- ### 🎯 **Performance Optimization**
371
+ ### 🎯 **Performance Issues? Just Ask**
332
372
 
333
373
  ```bash
334
- # Scenario: Slow incident queries affecting user experience
335
- snow-flow tool snow_analyze_query \
336
- --query 'state=1^priority<=2^assigned_toISNOTEMPTY' \
337
- --table incident --analyze_indexes true
374
+ # You say:
375
+ snow-flow swarm "My incident table is really slow, can you fix it?"
376
+
377
+ # Swarm automatically:
378
+ # ✅ Analyzes query performance patterns
379
+ # ✅ Identifies slow queries and bottlenecks
380
+ # ✅ Recommends database indexes
381
+ # ✅ Suggests field usage optimizations
382
+ # ✅ Provides concrete improvement plan
338
383
 
339
- # Result: Index recommendations, query optimization, 70% faster response
384
+ # Result: 70% faster incident queries, detailed optimization roadmap
340
385
  ```
341
386
 
342
- ### 🔍 **Technical Debt Reduction**
387
+ ### 🔍 **ServiceNow Cleanup Made Simple**
343
388
 
344
389
  ```bash
345
- # Scenario: Too many unused fields cluttering the instance
346
- snow-flow tool snow_analyze_field_usage \
347
- --table incident --analyze_queries true --unused_threshold_days 90
390
+ # You say:
391
+ snow-flow swarm "My ServiceNow instance feels cluttered and messy"
348
392
 
349
- # Result: List of unused fields, deprecation plan, cleaner data model
393
+ # Swarm automatically:
394
+ # ✅ Scans for unused fields across all tables
395
+ # ✅ Identifies orphaned workflows and rules
396
+ # ✅ Analyzes technical debt patterns
397
+ # ✅ Creates prioritized cleanup plan
398
+ # ✅ Estimates impact of each cleanup action
399
+
400
+ # Result: Clean instance roadmap with risk assessment and ROI calculations
350
401
  ```
351
402
 
352
- ### 📊 **Process Discovery**
403
+ ### 📊 **Process Understanding Without the Hassle**
353
404
 
354
405
  ```bash
355
- # Scenario: Unknown bottlenecks in change management
356
- snow-flow tool snow_discover_process \
357
- --process_type change_management --analysis_period 90d
406
+ # You say:
407
+ snow-flow swarm "I need to understand how our change management actually works"
358
408
 
359
- # Result: Process map, bottleneck identification, optimization recommendations
409
+ # Swarm automatically:
410
+ # ✅ Mines actual process flows from event logs
411
+ # ✅ Discovers real vs. designed processes
412
+ # ✅ Identifies bottlenecks and delays
413
+ # ✅ Maps cross-table data flows
414
+ # ✅ Creates visual process diagrams
415
+
416
+ # Result: Complete process maps, bottleneck analysis, optimization opportunities
360
417
  ```
361
418
 
362
- ### 🤖 **AI-Powered Refactoring**
419
+ ### 🛡️ **Security & Compliance on Autopilot**
363
420
 
364
421
  ```bash
365
- # Scenario: Legacy business rules need modernization
366
- snow-flow tool snow_refactor_code \
367
- --refactoring_scope '["business_rules"]' \
368
- --refactoring_goals '["performance", "security", "maintainability"]'
422
+ # You say:
423
+ snow-flow swarm "Check my ServiceNow instance for security issues and compliance problems"
369
424
 
370
- # Result: Modern code patterns, improved performance, enhanced security
425
+ # Swarm automatically:
426
+ # ✅ Scans code patterns for vulnerabilities
427
+ # ✅ Analyzes access control configurations
428
+ # ✅ Checks compliance framework alignment
429
+ # ✅ Identifies security anti-patterns
430
+ # ✅ Provides remediation recommendations
431
+
432
+ # Result: Security audit report with prioritized actions and compliance gaps
433
+ ```
434
+
435
+ ### 🤖 **Documentation That Writes Itself**
436
+
437
+ ```bash
438
+ # You say:
439
+ snow-flow swarm "Create documentation for all my custom stuff"
440
+
441
+ # Swarm automatically:
442
+ # ✅ Discovers all custom workflows, scripts, and configurations
443
+ # ✅ Analyzes code to understand functionality
444
+ # ✅ Generates technical documentation
445
+ # ✅ Creates user guides and process maps
446
+ # ✅ Includes best practices and usage examples
447
+
448
+ # Result: Comprehensive, always-current documentation suite
371
449
  ```
372
450
 
373
451
  ---
@@ -384,40 +462,54 @@ snow-flow tool snow_refactor_code \
384
462
 
385
463
  ---
386
464
 
387
- ## 🧠 **Multi-Agent Architecture**
465
+ ## 🧠 **How Swarm Intelligence Works**
388
466
 
389
- Snow-Flow includes revolutionary multi-agent orchestration inspired by hive-mind intelligence:
467
+ *The magic behind "snow-flow swarm" - you just talk, AI does everything*
390
468
 
391
- ### 🎯 **Core Concepts**
469
+ ### 🎯 **What Happens When You Run a Swarm Command**
392
470
 
393
- - **👑 Coordinator Agent**: Master strategist that analyzes objectives and spawns specialists
394
- - **🤖 Specialist Agents**: Domain experts (Performance, Security, Process Mining, Analytics)
395
- - **💾 Shared Memory**: Persistent learning and coordination across all agents
396
- - **🔄 Self-Healing**: Automatic error recovery and workflow adaptation
471
+ ```bash
472
+ snow-flow swarm "Optimize my ServiceNow for better performance"
473
+ ```
397
474
 
398
- ### 🚀 **Swarm Commands**
475
+ **Behind the scenes in seconds:**
399
476
 
400
- ```bash
401
- # Intelligent health check with auto-spawning specialists
402
- snow-flow swarm "Complete ServiceNow instance analysis and optimization" \
403
- --strategy analysis --parallel --auto-spawn
477
+ 1. **🧠 Natural Language Understanding**
478
+ - AI parses your request and intent
479
+ - Identifies scope, urgency, and objectives
480
+ - Maps to relevant ServiceNow domains
404
481
 
405
- # Process mining with coordinated specialist agents
406
- snow-flow swarm "Discover bottlenecks in all ITSM processes" \
407
- --agents 6 --strategy development --shared-memory
482
+ 2. **🎯 Intelligent Agent Spawning**
483
+ - **Performance Specialist** Query optimization, indexing analysis
484
+ - **Process Mining Expert** → Workflow efficiency analysis
485
+ - **Security Analyst** → Performance-related security checks
486
+ - **Data Specialist** → Field usage and data quality assessment
408
487
 
409
- # Real-time monitoring setup with self-healing
410
- snow-flow swarm "Setup monitoring for critical ServiceNow workflows" \
411
- --auto-deploy --self-healing --predictive-alerts
412
- ```
488
+ 3. **⚡ Parallel Execution**
489
+ - All agents work simultaneously
490
+ - Each uses multiple underlying tools automatically
491
+ - Real-time coordination through shared memory
492
+
493
+ 4. **🔗 Insight Integration**
494
+ - Combines findings from all specialists
495
+ - Identifies cross-domain patterns and dependencies
496
+ - Prioritizes recommendations by impact
497
+
498
+ 5. **📊 Comprehensive Reporting**
499
+ - Single, unified report with all insights
500
+ - Actionable recommendations with clear next steps
501
+ - Performance predictions and ROI estimates
502
+
503
+ ### 🌟 **Why This Changes Everything**
413
504
 
414
- ### 🌟 **Advanced Features**
505
+ **Traditional approach:** Learn 14 tools, understand complex syntax, manually coordinate analyses
506
+ **Swarm approach:** Just describe what you need in plain English
415
507
 
416
- - **🎯 Auto-Agent Spawning**: AI automatically creates the right specialists for your task
417
- - **⚡ Parallel Execution**: All agents work simultaneously for maximum efficiency
418
- - **🧠 Continuous Learning**: Agents learn from every analysis and improve over time
419
- - **🔄 Self-Healing Workflows**: Automatic error recovery and retry mechanisms
420
- - **💾 Cross-Session Memory**: Persistent context and learning across all sessions
508
+ - **🎯 Zero Learning Curve**: No commands to memorize, no syntax to learn
509
+ - **⚡ 60% Faster Results**: Parallel execution vs. sequential tool use
510
+ - **🧠 Holistic Insights**: Connections across domains that manual analysis misses
511
+ - **🔄 Continuous Improvement**: Each interaction makes future responses smarter
512
+ - **💾 Persistent Memory**: Remembers your instance and preferences across sessions
421
513
 
422
514
  ---
423
515
 
@@ -523,11 +615,11 @@ npm run build
523
615
  npm test
524
616
  ```
525
617
 
526
- ### **Roadmap**
527
- - 🚀 **Q1 2024**: Advanced ML models for process optimization
528
- - 🧠 **Q2 2024**: Natural language query interface
529
- - 🔮 **Q3 2024**: Predictive maintenance capabilities
530
- - 🌟 **Q4 2024**: Integration with additional ITSM platforms
618
+ ### **Future Vision (2025-2026)**
619
+ - 🧠 **Q4 2025**: Advanced ML models for process optimization and prediction
620
+ - 🔮 **Q1 2026**: Predictive maintenance capabilities with anomaly detection
621
+ - 🌟 **Q2 2026**: Multi-platform ITSM integration (Jira, Azure DevOps, etc.)
622
+ - 🚀 **Q3 2026**: Enhanced natural language processing with domain-specific understanding
531
623
 
532
624
  ---
533
625
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "1.4.22",
3
+ "version": "1.4.24",
4
4
  "description": "Snow-Flow: ServiceNow Advanced Intelligence Platform - 14 AI-powered analysis tools with multi-agent orchestration. Zero Mock Data, 100% Real API Integration. Revolutionize ServiceNow development with hive-mind intelligence.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",