snow-flow 3.2.0 โ†’ 3.2.2

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ๐Ÿ”๏ธ Snow-Flow: AI-Powered ServiceNow Development Platform
1
+ # Snow-Flow: ServiceNow Development Platform
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/snow-flow.svg)](https://www.npmjs.com/package/snow-flow)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -8,453 +8,472 @@
8
8
  [![ServiceNow Compatible](https://img.shields.io/badge/ServiceNow-Compatible-00A1E0?logo=servicenow)](https://www.servicenow.com)
9
9
  [![GitHub Stars](https://img.shields.io/github/stars/groeimetai/snow-flow?style=social)](https://github.com/groeimetai/snow-flow)
10
10
 
11
- Snow-Flow revolutionizes ServiceNow development by bringing the power of AI orchestration directly to your platform. With 100+ MCP tools and intelligent multi-agent coordination, Snow-Flow transforms how developers and administrators work with ServiceNow.
11
+ Snow-Flow is an AI-powered development platform for ServiceNow that provides 180+ MCP tools and multi-agent coordination. It enables developers and administrators to interact with ServiceNow through natural language commands and automated workflows.
12
12
 
13
- ## ๐Ÿš€ Why Snow-Flow?
13
+ ## Core Functionality
14
14
 
15
- ### **Accelerate Development by 10x**
16
- Traditional ServiceNow development requires deep platform knowledge, manual coding, and countless hours of configuration. Snow-Flow changes this paradigm by understanding your intent and automatically orchestrating the right tools and agents to achieve your goals.
15
+ Snow-Flow connects directly to ServiceNow instances through OAuth 2.0 authentication and provides:
17
16
 
18
- ### **Learn While You Build**
19
- Every interaction with Snow-Flow provides insights into ServiceNow best practices, platform capabilities, and optimal implementation patterns. It's like having a ServiceNow expert guiding you through every step.
17
+ - Direct API integration with ServiceNow REST endpoints
18
+ - Multi-agent system with specialized agents for different tasks
19
+ - Natural language interface for ServiceNow operations
20
+ - Machine learning capabilities using TensorFlow.js
21
+ - Process automation and workflow optimization
20
22
 
21
- ### **Real Integration, Real Results**
22
- Unlike mock tools or simulations, Snow-Flow connects directly to your ServiceNow instance through secure OAuth authentication. Every operation is real, every deployment is functional, and every result is production-ready.
23
+ ## ServiceNow API Integration
23
24
 
24
- ## ๐ŸŽ‰ Version 3.0.2 - Init Command Fixed
25
+ ### Authentication
26
+ Snow-Flow uses OAuth 2.0 for secure authentication with ServiceNow:
25
27
 
26
- ### **Latest Fix (v3.0.2)**
27
- - ๐Ÿ”ง **Init Command Fixed** - Now correctly uses .env.template with v3.0.1 timeout configuration
28
- - ๐ŸŽฏ **No Timeouts by Default** - Operations run until completion for maximum reliability
29
- - ๐ŸŽ›๏ธ **Optional Timeout Configuration** - All timeouts commented out in generated .env file
30
- - ๐Ÿš€ **100% Completion Rate** - No artificial timeout limitations
31
-
32
- ### **What's New in v3.0.0**
33
- - โœ… **100% Real Implementation** - No more simulated/mock/demo code
34
- - โœ… **Fixed MCP Transport Layer** - Resolved memory_usage hanging issues
35
- - โœ… **Real TensorFlow.js ML** - Actual neural networks, not regex matching
36
- - โœ… **Direct ServiceNow API** - Widget deployment bypasses broken MCP
37
- - โœ… **Reliable Memory Manager** - In-memory storage with timeout protection
38
- - โœ… **Proper Error Handling** - All operations have timeout protection
39
- - โœ… **Production Ready** - All integration tests passing
40
-
41
- ### **Critical Issues Fixed**
42
- - **Memory Operations**: No more hanging on memory_usage calls
43
- - **Widget Deployment**: Direct API implementation that actually works
44
- - **ML Accuracy**: Real neural networks delivering actual predictions
45
- - **Process Management**: No more zombie MCP processes
46
- - **Error Messages**: Clear, actionable error messages throughout
47
-
48
- ## ๐Ÿ” ServiceNow API Integration & Security
49
-
50
- ### **Direct ServiceNow API Connection**
51
- All 100+ MCP tools use **official ServiceNow REST APIs** exclusively:
52
- - **No third-party services** - Your data stays between you and ServiceNow
53
- - **Standard OAuth 2.0** - Industry-standard authentication protocol
54
- - **ServiceNow ACLs respected** - Only access what your ServiceNow user can access
55
- - **Real-time operations** - Direct API calls, no data caching or storage
56
-
57
- ### **How OAuth Authentication Works**
58
28
  ```bash
59
29
  snow-flow auth login
60
- # 1. Opens ServiceNow OAuth consent screen in your browser
61
- # 2. You authenticate with YOUR ServiceNow credentials
62
- # 3. ServiceNow returns OAuth token directly to Snow-Flow
63
- # 4. Token stored locally in ~/.snow-flow/auth.json (encrypted)
64
- # 5. All API calls use this token with proper ServiceNow permissions
30
+ # Opens ServiceNow OAuth consent screen
31
+ # Authenticate with ServiceNow credentials
32
+ # Token stored locally in ~/.snow-flow/auth.json
65
33
  ```
66
34
 
67
- ### **Data Privacy & Security**
68
- - โœ… **Zero data collection** - Snow-Flow doesn't collect or store your ServiceNow data
69
- - โœ… **Local processing** - All operations happen on your machine
70
- - โœ… **No external servers** - Direct ServiceNow โ†” Snow-Flow communication only
71
- - โœ… **Audit compliance** - All actions logged in ServiceNow audit trails
72
- - โœ… **Role-based access** - Respects your ServiceNow user permissions exactly
35
+ ### Security
36
+ - OAuth 2.0 authentication protocol
37
+ - Respects ServiceNow ACLs and user permissions
38
+ - Local token storage with encryption
39
+ - No external data transmission
40
+ - All operations logged in ServiceNow audit trails
73
41
 
74
- ### **Network Architecture**
42
+ ### Network Architecture
75
43
  ```
76
44
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” OAuth 2.0 + REST APIs โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
77
45
  โ”‚ Snow-Flow โ”‚ โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚ Your ServiceNow โ”‚
78
46
  โ”‚ (Local) โ”‚ HTTPS Only โ”‚ Instance โ”‚
79
47
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
80
- โ–ฒ
81
- โ”‚ No external connections
82
- โ–ผ
83
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
84
- โ”‚ Claude Code โ”‚ โ—„โ”€โ”€ Local AI processing only
85
- โ”‚ (Local) โ”‚
86
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
87
48
  ```
88
49
 
89
- ## โœจ Core Capabilities
90
-
91
- ### ๐Ÿค– **Intelligent Multi-Agent System**
92
- - **38 Specialized Agents**: From architects to testers, each agent brings specific expertise
93
- - **Swarm Coordination**: Agents work together using hierarchical, mesh, or adaptive topologies
94
- - **Shared Memory**: Persistent knowledge base ensures consistency across all operations
95
- - **Neural Learning**: Pattern recognition improves suggestions and automation over time
96
-
97
- ### ๐Ÿ”ง **100+ ServiceNow MCP Tools**
98
-
99
- #### ๐ŸŽฏ **Universal Query Tool** - One Tool for ALL Tables
100
- The revolutionary `snow_query_table` replaces all table-specific query tools with intelligent performance optimization:
50
+ ## Available Tools
51
+
52
+ Snow-Flow provides 180+ tools across 17 specialized MCP servers:
53
+
54
+ ## Complete Tool Reference
55
+
56
+ ### MCP Server Overview
57
+
58
+ | Server | Tools | Primary Focus |
59
+ |--------|-------|---------------|
60
+ | servicenow-operations | 15 | CRUD operations, data management |
61
+ | servicenow-deployment | 20 | Widget, portal, and application deployment |
62
+ | servicenow-platform-development | 12 | Table creation, field management |
63
+ | servicenow-machine-learning | 15 | Neural networks, predictions, anomaly detection |
64
+ | servicenow-reporting-analytics | 18 | Dashboards, reports, KPIs |
65
+ | servicenow-security-compliance | 14 | Security scanning, ACLs, compliance |
66
+ | servicenow-update-set | 10 | Change packaging, version control |
67
+ | servicenow-automation | 22 | Business rules, scheduled jobs, ATF testing |
68
+ | servicenow-integration | 10 | REST/SOAP, data import/export |
69
+ | servicenow-advanced-features | 15 | Process mining, advanced analytics |
70
+ | servicenow-knowledge-catalog | 15 | Knowledge management, service catalog |
71
+ | servicenow-change-virtualagent-pa | 19 | Change management, virtual agent, PA |
72
+ | servicenow-flow-workspace-mobile | 20 | Flow Designer, agent workspace, mobile |
73
+ | servicenow-cmdb-event-hr-csm-devops | 23 | CMDB, events, HR, CSM, DevOps |
74
+ | servicenow-performance-optimization | 8 | Query optimization, batch operations |
75
+ | servicenow-process-intelligence | 10 | Process mining and discovery |
76
+ | snow-flow | 12 | Orchestration, memory management |
77
+
78
+ ### Detailed Tool Listing by Server
79
+
80
+ #### 1. ATF Testing Tools (servicenow-automation)
81
+ | Tool | Description | ServiceNow Table |
82
+ |------|-------------|------------------|
83
+ | snow_create_atf_test | Create automated test | sys_atf_test |
84
+ | snow_create_atf_test_step | Add test steps | sys_atf_step |
85
+ | snow_execute_atf_test | Execute tests | sys_atf_test_result |
86
+ | snow_get_atf_results | Get test results | sys_atf_test_result |
87
+ | snow_create_atf_test_suite | Create test suite | sys_atf_test_suite |
88
+ | snow_discover_atf_tests | Find existing tests | sys_atf_test, sys_atf_test_suite |
89
+
90
+ #### 2. Knowledge Management (servicenow-knowledge-catalog)
91
+ | Tool | Description | ServiceNow Table |
92
+ |------|-------------|------------------|
93
+ | snow_create_knowledge_article | Create KB article | kb_knowledge |
94
+ | snow_search_knowledge | Search articles | kb_knowledge |
95
+ | snow_update_knowledge_article | Update article | kb_knowledge |
96
+ | snow_retire_knowledge_article | Retire article | kb_knowledge |
97
+ | snow_create_knowledge_base | Create KB | kb_knowledge_base |
98
+ | snow_discover_knowledge_bases | List KBs | kb_knowledge_base |
99
+ | snow_get_knowledge_stats | Article statistics | kb_knowledge |
100
+ | snow_knowledge_feedback | Manage feedback | kb_feedback |
101
+
102
+ #### 3. Service Catalog (servicenow-knowledge-catalog)
103
+ | Tool | Description | ServiceNow Table |
104
+ |------|-------------|------------------|
105
+ | snow_create_catalog_item | Create catalog item | sc_cat_item |
106
+ | snow_create_catalog_variable | Create variables | item_option_new |
107
+ | snow_create_catalog_ui_policy | Create UI policies | catalog_ui_policy |
108
+ | snow_order_catalog_item | Submit order | sc_req_item |
109
+ | snow_search_catalog | Search catalog | sc_cat_item |
110
+ | snow_get_catalog_item_details | Get item details | sc_cat_item |
111
+ | snow_discover_catalogs | List catalogs | sc_catalog |
112
+
113
+ #### 4. Change Management (servicenow-change-virtualagent-pa)
114
+ | Tool | Description | ServiceNow Table |
115
+ |------|-------------|------------------|
116
+ | snow_create_change_request | Create change | change_request |
117
+ | snow_create_change_task | Create task | change_task |
118
+ | snow_get_change_request | Get change details | change_request |
119
+ | snow_update_change_state | Update state | change_request |
120
+ | snow_schedule_cab_meeting | Schedule CAB | cab_meeting |
121
+ | snow_search_change_requests | Search changes | change_request |
122
+
123
+ #### 5. Virtual Agent (servicenow-change-virtualagent-pa)
124
+ | Tool | Description | ServiceNow Table |
125
+ |------|-------------|------------------|
126
+ | snow_create_va_topic | Create topic | sys_cs_topic |
127
+ | snow_create_va_topic_block | Create blocks | sys_cs_topic_block |
128
+ | snow_get_va_conversation | Get conversation | sys_cs_conversation |
129
+ | snow_send_va_message | Send message | sys_cs_conversation |
130
+ | snow_handoff_to_agent | Escalate to agent | sys_cs_conversation |
131
+ | snow_discover_va_topics | List topics | sys_cs_topic |
132
+
133
+ #### 6. Performance Analytics (servicenow-change-virtualagent-pa)
134
+ | Tool | Description | ServiceNow Table |
135
+ |------|-------------|------------------|
136
+ | snow_create_pa_indicator | Create KPI | pa_indicators |
137
+ | snow_create_pa_widget | Create widget | pa_widgets |
138
+ | snow_create_pa_breakdown | Create breakdown | pa_breakdowns |
139
+ | snow_create_pa_threshold | Set threshold | pa_thresholds |
140
+ | snow_get_pa_scores | Get scores | pa_scores |
141
+ | snow_create_pa_target | Set target | pa_targets |
142
+ | snow_analyze_pa_trends | Analyze trends | pa_scores |
143
+
144
+ #### 7. Flow Designer (servicenow-flow-workspace-mobile)
145
+ | Tool | Description | ServiceNow Table |
146
+ |------|-------------|------------------|
147
+ | snow_create_flow | Create flow | sys_hub_flow |
148
+ | snow_create_flow_action | Create action | sys_hub_action_instance |
149
+ | snow_create_subflow | Create subflow | sys_hub_sub_flow |
150
+ | snow_add_flow_trigger | Add trigger | sys_hub_trigger_instance |
151
+ | snow_publish_flow | Publish flow | sys_hub_flow |
152
+ | snow_test_flow | Test flow | sys_flow_context |
153
+ | snow_get_flow_execution_details | Get execution | sys_flow_context |
154
+
155
+ #### 8. Agent Workspace (servicenow-flow-workspace-mobile)
156
+ | Tool | Description | ServiceNow Table |
157
+ |------|-------------|------------------|
158
+ | snow_create_workspace | Create workspace | sys_aw_workspace |
159
+ | snow_configure_workspace_tab | Configure tabs | sys_aw_tab |
160
+ | snow_add_workspace_list | Add lists | sys_aw_list |
161
+ | snow_create_workspace_form | Create forms | sys_aw_form |
162
+ | snow_configure_workspace_ui_action | Add UI actions | sys_aw_ui_action |
163
+ | snow_deploy_workspace | Deploy workspace | sys_aw_workspace |
164
+
165
+ #### 9. Mobile Platform (servicenow-flow-workspace-mobile)
166
+ | Tool | Description | ServiceNow Table |
167
+ |------|-------------|------------------|
168
+ | snow_create_mobile_app_config | Configure app | sys_mobile_config |
169
+ | snow_configure_mobile_layout | Configure layout | sys_mobile_layout |
170
+ | snow_create_mobile_applet | Create applet | sys_mobile_applet |
171
+ | snow_configure_offline_tables | Offline sync | sys_mobile_offline |
172
+ | snow_set_mobile_security | Security settings | sys_mobile_security |
173
+ | snow_push_notification_config | Push notifications | sys_push_notification |
174
+ | snow_deploy_mobile_app | Deploy app | sys_mobile_deployment |
175
+
176
+ #### 10. CMDB & Discovery (servicenow-cmdb-event-hr-csm-devops)
177
+ | Tool | Description | ServiceNow Table |
178
+ |------|-------------|------------------|
179
+ | snow_create_cmdb_ci | Create CI | cmdb_ci_* |
180
+ | snow_create_ci_relationship | Create relationship | cmdb_rel_ci |
181
+ | snow_discover_ci_dependencies | Find dependencies | cmdb_rel_ci |
182
+ | snow_run_discovery | Run discovery | discovery_status |
183
+ | snow_get_discovery_status | Get status | discovery_status |
184
+ | snow_import_cmdb_data | Import data | sys_import_set |
185
+
186
+ #### 11. Event Management (servicenow-cmdb-event-hr-csm-devops)
187
+ | Tool | Description | ServiceNow Table |
188
+ |------|-------------|------------------|
189
+ | snow_create_event | Create event | em_event |
190
+ | snow_create_alert_rule | Create rule | em_alert_rule |
191
+ | snow_correlate_alerts | Correlate alerts | em_alert |
192
+ | snow_get_event_metrics | Get metrics | em_event |
193
+
194
+ #### 12. HR Service Delivery (servicenow-cmdb-event-hr-csm-devops)
195
+ | Tool | Description | ServiceNow Table |
196
+ |------|-------------|------------------|
197
+ | snow_create_hr_case | Create HR case | sn_hr_core_case |
198
+ | snow_manage_onboarding | Onboarding | sn_hr_core_task |
199
+ | snow_manage_offboarding | Offboarding | sn_hr_core_task |
200
+ | snow_get_hr_analytics | HR analytics | sn_hr_core_case |
201
+
202
+ #### 13. Customer Service Management (servicenow-cmdb-event-hr-csm-devops)
203
+ | Tool | Description | ServiceNow Table |
204
+ |------|-------------|------------------|
205
+ | snow_create_csm_case | Create case | sn_customerservice_case |
206
+ | snow_manage_customer_account | Manage account | sn_customerservice_account |
207
+ | snow_create_csm_communication | Communications | sn_customerservice_communication |
208
+ | snow_get_customer_satisfaction | Get CSAT | sn_customerservice_csat |
209
+
210
+ #### 14. DevOps (servicenow-cmdb-event-hr-csm-devops)
211
+ | Tool | Description | ServiceNow Table |
212
+ |------|-------------|------------------|
213
+ | snow_create_devops_pipeline | Create pipeline | sn_devops_pipeline |
214
+ | snow_track_deployment | Track deployment | sn_devops_deployment |
215
+ | snow_manage_devops_change | DevOps change | sn_devops_change |
216
+ | snow_get_velocity_metrics | Team velocity | sn_devops_velocity |
217
+ | snow_create_devops_artifact | Build artifacts | sn_devops_artifact |
218
+
219
+ ### Table Operations
220
+ The universal `snow_query_table` tool works with all ServiceNow tables:
101
221
 
102
222
  ```javascript
103
- // Smart Performance Modes - System auto-detects the best approach:
104
-
105
- // 1. Analytics mode - OMIT limit for ALL records with minimal fields
223
+ // Query any table with optimized performance
106
224
  snow_query_table({
107
- table: "incident",
225
+ table: "incident", // Works with any table
108
226
  query: "state!=7",
109
- fields: ["sys_created_on", "priority"] // Get ALL records, minimal data
227
+ fields: ["number", "short_description", "priority"],
228
+ limit: 100
110
229
  })
111
- // Auto-detects analytics context and returns ALL records!
112
230
 
113
- // 2. Count-only mode - Ultra efficient for large datasets
231
+ // Analytics mode - retrieve all records with minimal fields
114
232
  snow_query_table({
115
- table: "sc_request",
116
- include_content: false // Just counts, no data
233
+ table: "incident",
234
+ fields: ["sys_created_on", "priority"] // Omit limit for all records
117
235
  })
118
- // Returns: {total_results: 15234} - Maximum efficiency!
119
236
 
120
- // 3. Display mode - Limited records with full details
237
+ // Count-only mode for large datasets
121
238
  snow_query_table({
122
- table: "problem",
123
- limit: 50, // Explicitly limit for display
124
- include_display_values: true
239
+ table: "sc_request",
240
+ include_content: false // Returns count only
125
241
  })
126
242
 
127
- // 4. Group by aggregation - Server-side analytics
243
+ // Server-side aggregation
128
244
  snow_query_table({
129
245
  table: "change_request",
130
246
  group_by: "risk",
131
- order_by: "-count" // Sorted by frequency
247
+ order_by: "-count"
132
248
  })
133
249
  ```
134
250
 
135
- Works with ANY table: `incident`, `sc_request`, `problem`, `cmdb_ci`, even `u_custom_table`!
136
-
137
- - **Operations**: Incident, Request, Problem, and Change management with AI analysis
138
- - **Development**: Create widgets, flows, scripts, and business rules with natural language
139
- - **Integration**: REST/SOAP endpoints, data transformation, and external system connectivity
140
- - **Analytics**: Real-time dashboards, KPIs, and predictive insights
141
- - **Security**: Compliance rules, audit trails, and vulnerability scanning
142
-
143
- ### ๐Ÿง  **Natural Language Interface**
144
- Simply describe what you want to achieve:
145
- - "Create an incident management dashboard with SLA tracking"
146
- - "Build an employee onboarding workflow with approval steps"
147
- - "Analyze our incident resolution patterns from the last quarter"
148
-
149
- Snow-Flow understands your intent and orchestrates the entire implementation.
150
-
151
- ### ๐Ÿค– **Machine Learning & Neural Networks**
152
- Snow-Flow includes real neural network capabilities powered by TensorFlow.js:
153
-
154
- #### **Incident Classification & Prediction**
155
- Train LSTM neural networks on your historical incident data to:
156
- - Automatically classify incidents with 95%+ accuracy
157
- - Predict categories, priorities, and assignment groups
158
- - Identify patterns in incident descriptions
159
- - Recommend resolution steps based on similar past incidents
160
-
251
+ ### Development Tools
252
+ - Widget creation and deployment
253
+ - Business rule development
254
+ - Script include management
255
+ - Flow Designer automation
256
+ - UI Page creation
257
+ - Portal configuration
258
+
259
+ ### Service Management
260
+ - Incident management
261
+ - Change management with CAB scheduling
262
+ - Problem management
263
+ - Request fulfillment
264
+ - Knowledge management
265
+
266
+ ### Enterprise APIs
267
+ - Performance Analytics (PA) with KPI management
268
+ - Virtual Agent configuration
269
+ - Agent Workspace customization
270
+ - Mobile platform deployment
271
+ - CMDB and Discovery
272
+ - Event Management
273
+ - HR Service Delivery
274
+ - Customer Service Management
275
+ - DevOps integration
276
+
277
+ ### Machine Learning
278
+
279
+ Snow-Flow includes TensorFlow.js for neural network capabilities:
280
+
281
+ #### Incident Classification
282
+ Train LSTM networks on historical incident data:
161
283
  ```bash
162
- # Train incident classifier on historical data
163
284
  snow-flow ml train-incident-classifier --sample-size 5000 --epochs 100
164
-
165
- # Classify new incidents automatically
166
285
  snow-flow ml classify-incident INC0123456
167
- # Output: Category: Software (98% confidence), Priority: 2, Assignment: Application Support
168
286
  ```
169
287
 
170
- #### **Change Risk Prediction**
171
- Neural networks analyze change requests to predict implementation risk:
172
- - Risk scoring based on historical success/failure patterns
173
- - Identify high-risk changes before implementation
174
- - Recommend additional testing or approval steps
175
- - Learn from past deployment outcomes
176
-
288
+ #### Change Risk Prediction
289
+ Analyze change requests to predict implementation risk:
177
290
  ```bash
178
- # Train change risk model
179
291
  snow-flow ml train-change-risk --include-failed-changes
180
-
181
- # Predict risk for upcoming change
182
292
  snow-flow ml predict-change-risk CHG0123456
183
- # Output: Risk Level: Medium (72% confidence), Recommendation: Additional UAT required
184
293
  ```
185
294
 
186
- #### **Incident Volume Forecasting**
187
- LSTM time series models predict future incident volumes:
188
- - Forecast daily/weekly incident counts
189
- - Identify upcoming peak periods
190
- - Plan staffing and resources proactively
191
- - Category-specific predictions
192
-
295
+ #### Time Series Forecasting
296
+ Predict future incident volumes:
193
297
  ```bash
194
- # Forecast next 7 days of incidents
195
298
  snow-flow ml forecast-incidents --days 7 --category network
196
- # Output: Day 3 peak expected (145 incidents), recommend 20% additional staff
197
299
  ```
198
300
 
199
- #### **Anomaly Detection**
200
- Autoencoder neural networks detect unusual patterns:
201
- - Identify abnormal incident spikes or drops
202
- - Detect unusual user behavior patterns
203
- - Find system performance anomalies
204
- - Alert on potential security incidents
205
-
301
+ #### Anomaly Detection
302
+ Detect unusual patterns using autoencoder networks:
206
303
  ```bash
207
- # Monitor for anomalies in real-time
208
304
  snow-flow ml detect-anomalies --metric incident_patterns --sensitivity 0.9
209
- # Output: Anomaly detected: 300% increase in password reset requests from Building A
210
305
  ```
211
306
 
212
- #### **ML Model Management**
213
- - Train models on your actual ServiceNow data
214
- - No external data leaves your instance
215
- - Models improve with more data over time
216
- - Export/import trained models between instances
217
- - Performance metrics and accuracy tracking
307
+ ### ServiceNow Native ML Integration
218
308
 
219
- ### ๐Ÿ”„ **Hybrid ML: Best of Both Worlds**
220
- Snow-Flow uniquely combines ServiceNow's native ML capabilities with custom neural networks:
309
+ Access ServiceNow's native ML capabilities when licensed:
221
310
 
222
- **๐Ÿšจ REAL APIs ONLY - NO MOCK DATA**
223
- Snow-Flow requires proper ServiceNow ML licensing for native ML features:
224
- - ๐Ÿ” **PA Required**: Performance Analytics plugin for KPI forecasting and analytics
225
- - ๐Ÿ” **PI Required**: Predictive Intelligence plugin for clustering and similarity
226
- - โœ… **Always Available**: Custom TensorFlow.js neural networks work regardless of ServiceNow plugins
227
-
228
- Proper error messages guide you when licenses are not available.
229
-
230
- #### **ServiceNow Native ML Integration**
231
- Access powerful platform ML features through Snow-Flow:
232
-
233
- **Performance Analytics ML**
311
+ #### Performance Analytics ML
234
312
  ```bash
235
- # Use PA's predictive models for KPI forecasting
236
313
  snow-flow ml performance-analytics --indicator "Incident Resolution Time" --forecast-days 90
237
- # Output: Trend analysis, seasonality detection, anomaly alerts
238
314
  ```
239
315
 
240
- **Predictive Intelligence Framework**
316
+ #### Predictive Intelligence
241
317
  ```bash
242
- # Find similar incidents using ServiceNow's clustering
243
318
  snow-flow ml predictive-intelligence --operation similar_incidents --incident INC0123456
244
- # Output: Top 10 similar incidents with resolution patterns
245
-
246
- # Get solution recommendations
247
- snow-flow ml predictive-intelligence --operation solution_recommendation --incident INC0123456
248
- # Output: KB articles, past resolutions, confidence scores
249
319
  ```
250
320
 
251
- **Agent Intelligence Work Assignment**
321
+ #### Agent Intelligence
252
322
  ```bash
253
- # Get AI-powered assignment recommendations
254
323
  snow-flow ml agent-intelligence --task incident --id INC0123456 --auto-assign
255
- # Output: Best agent match based on skills, workload, and success rate
256
324
  ```
257
325
 
258
- **Process Optimization ML**
259
- ```bash
260
- # Analyze and optimize business processes
261
- snow-flow ml process-optimization --process "Incident Management" --goal reduce_time
262
- # Output: Bottlenecks identified, 30% reduction possible, implementation steps
263
- ```
264
-
265
- #### **Hybrid Recommendations**
266
- Combine both approaches for superior results:
267
- ```bash
268
- # Use both ServiceNow ML and custom neural networks
269
- snow-flow ml hybrid-recommendation --use-case incident_resolution --native-weight 0.6 --custom-weight 0.4
270
- # Output: Combined insights from both systems, higher accuracy than either alone
271
- ```
326
+ Note: Native ML features require appropriate ServiceNow plugin licenses (PA, PI, Agent Intelligence).
272
327
 
273
- **Benefits of Hybrid Approach:**
274
- - โœ… **Higher Accuracy**: Ensemble learning from multiple models
275
- - โœ… **Fallback Options**: Works even if one system is unavailable
276
- - โœ… **Complementary Insights**: Platform knowledge + custom patterns
277
- - โœ… **License Clarity**: Clear error messages when PA/PI licenses needed
278
- - โœ… **Best Tool for Each Job**: Native for platform features, custom for specific needs
328
+ ## Multi-Agent System
279
329
 
280
- ## ๐ŸŽฏ Key Benefits
330
+ Snow-Flow includes 38 specialized agents that work together:
281
331
 
282
- ### **For Developers**
283
- - **Rapid Prototyping**: Build complex solutions in minutes instead of days
284
- - **Best Practices Built-In**: Every generated artifact follows ServiceNow standards
285
- - **Continuous Learning**: Discover new platform capabilities through AI suggestions
286
- - **Error Prevention**: Intelligent validation catches issues before deployment
332
+ ### Agent Types
333
+ - **Architect**: System design and architecture planning
334
+ - **Developer**: Code generation and implementation
335
+ - **Tester**: Test creation and execution
336
+ - **Analyst**: Data analysis and reporting
337
+ - **Security**: Compliance and security validation
338
+ - **Optimizer**: Performance optimization
339
+ - **Documenter**: Documentation generation
287
340
 
288
- ### **For Administrators**
289
- - **Process Optimization**: AI analyzes workflows and suggests improvements
290
- - **Predictive Insights**: Anticipate issues before they impact users
291
- - **Compliance Automation**: Ensure security and regulatory requirements are met
292
- - **Knowledge Capture**: Document institutional knowledge in the graph database
341
+ ### Coordination Modes
342
+ - **Hierarchical**: Top-down task delegation
343
+ - **Mesh**: Peer-to-peer collaboration
344
+ - **Swarm**: Distributed problem solving
345
+ - **Adaptive**: Dynamic reorganization based on task requirements
293
346
 
294
- ### **For Organizations**
295
- - **Reduced Time-to-Value**: Deploy solutions 80% faster
296
- - **Lower Training Costs**: New team members become productive immediately
297
- - **Consistent Quality**: AI ensures standardized, maintainable implementations
298
- - **Innovation Enablement**: Focus on business logic, not technical complexity
347
+ ## Installation
299
348
 
300
- ## ๐Ÿš€ Getting Started
349
+ ### Prerequisites
350
+ - Node.js 18.0 or higher
351
+ - npm 8.0 or higher
352
+ - ServiceNow instance with admin access
353
+ - OAuth application configured in ServiceNow
301
354
 
302
- ### 1. Installation
355
+ ### Install via npm
303
356
  ```bash
304
357
  npm install -g snow-flow
305
358
  ```
306
359
 
307
- ### 2. Initialize Snow-Flow
360
+ ### Initial Setup
308
361
  ```bash
362
+ # Initialize configuration
309
363
  snow-flow init
310
- ```
311
- This creates:
312
- - `.env` file for your credentials
313
- - `.mcp.json` for Claude Code integration
314
- - Project configuration files
315
364
 
316
- ### 3. Configure OAuth Credentials
317
- Edit the generated `.env` file with your ServiceNow OAuth details:
318
- ```env
319
- SNOW_INSTANCE=your-instance.service-now.com
320
- SNOW_CLIENT_ID=your-oauth-client-id
321
- SNOW_CLIENT_SECRET=your-oauth-client-secret
322
- ```
323
-
324
- ### 4. Authenticate
325
- ```bash
365
+ # Configure authentication
326
366
  snow-flow auth login
327
- ```
328
- This opens your browser for OAuth authentication.
329
367
 
330
- ### 5. Start Building!
331
- ```bash
332
- snow-flow swarm "Create an incident management dashboard with real-time updates"
368
+ # Verify connection
369
+ snow-flow auth test
333
370
  ```
334
371
 
335
- ### ๐Ÿ’ก Quick Examples
336
- ```bash
337
- # Analyze your ServiceNow instance
338
- snow-flow swarm "Give me a health check of my ServiceNow instance"
339
-
340
- # Build a widget
341
- snow-flow swarm "Create a widget showing open incidents by priority"
342
-
343
- # Optimize performance
344
- snow-flow swarm "Find and fix performance issues in my incident table"
345
-
346
- # ML-Powered Incident Solver Widget
347
- snow-flow swarm "Create a Service Portal widget that uses ML to suggest incident solutions based on historical data"
348
- # This will:
349
- # - First check if Predictive Intelligence (PI) is available (BEST: 95%+ accuracy)
350
- # - If PI available: Use native incident similarity & solution recommendations
351
- # - If not: Train custom LSTM neural network (FALLBACK: 80-85% accuracy)
352
- # - Build widget with real-time classification
353
- # - Suggest top 5 similar resolved incidents with confidence scores
354
-
355
- # Change Risk Assessment Dashboard
356
- snow-flow swarm "Build a dashboard that predicts change implementation risk using machine learning"
357
- # Intelligent approach:
358
- # - With PI license: Uses native change risk scoring (superior results)
359
- # - Without PI: Falls back to TensorFlow.js neural networks
360
- # - Hybrid option: Combines both for maximum accuracy
361
- ```
372
+ ## Usage Examples
362
373
 
363
- ### โš ๏ธ Troubleshooting
364
-
365
- **OAuth Issues?**
366
- - Ensure your OAuth client has the necessary scopes in ServiceNow
367
- - Check that the redirect URI is set to `http://localhost:3000/callback`
368
- - Try `snow-flow auth logout` then `snow-flow auth login` again
369
-
370
- **MCP Connection Failed?**
371
- - Run `snow-flow init --force` to regenerate configuration
372
- - Restart Claude Code after configuration changes
373
- - Check logs with `snow-flow logs`
374
-
375
- ## ๐Ÿ“Š Real-World Impact
376
-
377
- ### **80% Faster Development**
378
- AI orchestration eliminates repetitive tasks and automates complex workflows.
379
-
380
- ### **90% Error Reduction**
381
- Intelligent validation and best practice enforcement prevent common mistakes.
382
-
383
- ### **100% Platform Coverage**
384
- Every ServiceNow module and capability is accessible through natural language.
385
-
386
- ### **โˆž Learning Potential**
387
- Continuous pattern analysis reveals optimization opportunities you didn't know existed.
374
+ ### Natural Language Commands
375
+ ```bash
376
+ # Create an incident dashboard
377
+ snow-flow sparc "Create incident management dashboard with SLA tracking"
388
378
 
389
- ## ๐Ÿ›ฃ๏ธ Roadmap: Snow-Flow Pro (Coming Soon)
379
+ # Build a workflow
380
+ snow-flow sparc "Create employee onboarding workflow with approval steps"
390
381
 
391
- ### **Co-Op Mode** ๐Ÿค
392
- Perfect for environments where direct instance access isn't possible:
393
- - **No OAuth Required**: Work entirely offline with your table schemas
394
- - **Schema Import**: Provide your custom tables and field definitions
395
- - **Smart Development**: Snow-Flow develops against your exact configuration
396
- - **Export Ready**: Receive complete Update Sets or Import Sets
397
- - **Full Compatibility**: Generated artifacts work perfectly in your instance
382
+ # Analyze data
383
+ snow-flow sparc "Analyze incident resolution patterns from last quarter"
384
+ ```
398
385
 
399
- Example workflow:
386
+ ### Direct Tool Usage
400
387
  ```bash
401
- # Import your instance schema
402
- snow-flow coop import --tables incident,change_request,custom_table
388
+ # Query incidents
389
+ snow-flow query --table incident --limit 10
403
390
 
404
- # Develop without connection
405
- snow-flow coop develop "Create approval workflow for custom_table"
391
+ # Create a widget
392
+ snow-flow deploy widget --name "SLA Dashboard" --template dashboard
406
393
 
407
- # Export ready-to-import package
408
- snow-flow coop export --format update-set
394
+ # Generate documentation
395
+ snow-flow generate docs --scope "incident_management"
409
396
  ```
410
397
 
411
- ### **Bring Your Own LLM** ๐Ÿง 
412
- Choose your preferred AI backend:
413
- - **OpenAI GPT**: For maximum capability
414
- - **Anthropic Claude**: For nuanced understanding
415
- - **Local Models**: For complete data privacy
416
- - **Custom Fine-tuned**: For organization-specific patterns
398
+ ### Swarm Coordination
399
+ ```bash
400
+ # Multi-agent development
401
+ snow-flow swarm "Build complete HR service portal" \
402
+ --strategy development \
403
+ --mode hierarchical \
404
+ --max-agents 8
405
+
406
+ # Analysis swarm
407
+ snow-flow swarm "Analyze system performance bottlenecks" \
408
+ --strategy analysis \
409
+ --mode mesh \
410
+ --parallel
411
+ ```
417
412
 
418
- ### **Enterprise Features** ๐Ÿข
419
- - **Multi-Instance Management**: Develop once, deploy everywhere
420
- - **Team Collaboration**: Shared knowledge graphs and patterns
421
- - **Audit & Compliance**: Full tracking of AI-generated changes
422
- - **SLA Guarantees**: Priority support and uptime commitments
413
+ ## Configuration
423
414
 
424
- ## ๐ŸŒŸ Why Snow-Flow Transforms ServiceNow Development
415
+ Configuration file location: `~/.snow-flow/.env`
425
416
 
426
- ### **Democratizes Expertise**
427
- You don't need 10 years of ServiceNow experience to build enterprise-grade solutions. Snow-Flow bridges the knowledge gap, making expert-level development accessible to everyone.
417
+ ### Required Settings
418
+ ```env
419
+ SNOW_INSTANCE=your-instance.service-now.com
420
+ SNOW_CLIENT_ID=your-oauth-client-id
421
+ SNOW_CLIENT_SECRET=your-oauth-client-secret
422
+ ```
428
423
 
429
- ### **Accelerates Innovation**
430
- Stop spending time on boilerplate code and configuration. Focus on solving business problems while Snow-Flow handles the implementation details.
424
+ ### Optional Settings
425
+ ```env
426
+ # Timeout configuration (milliseconds)
427
+ # SNOW_FLOW_INIT_TIMEOUT=30000
428
+ # SNOW_FLOW_OPERATION_TIMEOUT=60000
429
+ # SNOW_FLOW_MEMORY_TIMEOUT=5000
430
+
431
+ # Agent configuration
432
+ SNOW_FLOW_MAX_AGENTS=10
433
+ SNOW_FLOW_AGENT_MODE=hierarchical
434
+
435
+ # ML configuration
436
+ SNOW_FLOW_ML_ENABLED=true
437
+ SNOW_FLOW_ML_MODEL_PATH=./models
438
+ ```
431
439
 
432
- ### **Ensures Quality**
433
- Every line of code, every configuration, and every deployment follows ServiceNow best practices. AI review catches issues human reviewers might miss.
440
+ ## Project Structure
441
+ ```
442
+ snow-flow/
443
+ โ”œโ”€โ”€ src/ # Source code
444
+ โ”‚ โ”œโ”€โ”€ agents/ # Agent implementations
445
+ โ”‚ โ”œโ”€โ”€ mcp/ # MCP server implementations
446
+ โ”‚ โ”œโ”€โ”€ utils/ # Utility functions
447
+ โ”‚ โ””โ”€โ”€ services/ # Service layer
448
+ โ”œโ”€โ”€ dist/ # Compiled JavaScript
449
+ โ”œโ”€โ”€ memory/ # Persistent storage
450
+ โ”œโ”€โ”€ models/ # ML models
451
+ โ””โ”€โ”€ tests/ # Test suite
452
+ ```
434
453
 
435
- ### **Builds Institutional Knowledge**
436
- Your development patterns, solutions, and optimizations are captured in the graph database, creating a growing knowledge base for your organization.
454
+ ## Documentation
437
455
 
438
- ## ๐Ÿค Community & Support
456
+ - [API Reference](docs/api.md)
457
+ - [Agent Documentation](docs/agents.md)
458
+ - [MCP Tools Reference](docs/tools.md)
459
+ - [ML Capabilities](docs/ml.md)
460
+ - [Configuration Guide](docs/configuration.md)
439
461
 
440
- - **Documentation**: [https://docs.snow-flow.ai](https://github.com/groeimetai/snow-flow/wiki)
441
- - **Discord Community**: [Join our Discord](https://discord.gg/snow-flow)
442
- - **GitHub Issues**: [Report bugs or request features](https://github.com/groeimetai/snow-flow/issues)
443
- - **Commercial Support**: Available with Snow-Flow Pro
462
+ ## Contributing
444
463
 
445
- ## ๐Ÿ“„ License
464
+ Contributions are welcome. Please read the [Contributing Guide](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
446
465
 
447
- Snow-Flow is MIT licensed. See [LICENSE](LICENSE) file for details.
466
+ ## Support
448
467
 
449
- ---
468
+ - GitHub Issues: [github.com/groeimetai/snow-flow/issues](https://github.com/groeimetai/snow-flow/issues)
469
+ - Documentation: [github.com/groeimetai/snow-flow/wiki](https://github.com/groeimetai/snow-flow/wiki)
450
470
 
451
- **Ready to transform your ServiceNow development?**
471
+ ## License
452
472
 
453
- ```bash
454
- npm install -g snow-flow
455
- snow-flow init
456
- ```
473
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
457
474
 
458
- Join thousands of developers who are already building faster, smarter, and better with Snow-Flow.
475
+ ## Acknowledgments
459
476
 
460
- ๐Ÿš€ **The future of ServiceNow development is here. The future is Snow-Flow.**
477
+ - ServiceNow for the comprehensive REST API
478
+ - TensorFlow.js for machine learning capabilities
479
+ - Model Context Protocol (MCP) for tool orchestration
@@ -36,7 +36,7 @@ function getDynamicVersion() {
36
36
  console.warn('Warning: Could not read version from package.json:', error);
37
37
  }
38
38
  // Fallback to hardcoded version
39
- return '3.2.0';
39
+ return '3.2.2';
40
40
  }
41
41
  // Export a constant that uses the dynamic version
42
42
  exports.VERSION = getDynamicVersion();
@@ -219,7 +219,7 @@ class ServiceNowAutomationMCP {
219
219
  },
220
220
  {
221
221
  name: 'snow_create_atf_test',
222
- description: '๐Ÿงช Creates an Automated Test Framework (ATF) test for automated testing of ServiceNow applications and configurations.',
222
+ description: 'Creates an Automated Test Framework (ATF) test for automated testing of ServiceNow applications and configurations using the sys_atf_test table.',
223
223
  inputSchema: {
224
224
  type: 'object',
225
225
  properties: {
@@ -235,7 +235,7 @@ class ServiceNowAutomationMCP {
235
235
  },
236
236
  {
237
237
  name: 'snow_create_atf_test_step',
238
- description: 'โž• Adds a test step to an existing ATF test. Steps define the actions and assertions for testing.',
238
+ description: 'Adds a test step to an existing ATF test. Steps define the actions and assertions for testing using the sys_atf_step table.',
239
239
  inputSchema: {
240
240
  type: 'object',
241
241
  properties: {
@@ -251,7 +251,7 @@ class ServiceNowAutomationMCP {
251
251
  },
252
252
  {
253
253
  name: 'snow_execute_atf_test',
254
- description: 'โ–ถ๏ธ Executes an ATF test or test suite and returns the results. Tests run asynchronously in ServiceNow.',
254
+ description: 'Executes an ATF test or test suite and returns the results. Tests run asynchronously in ServiceNow using sys_atf_test_result table.',
255
255
  inputSchema: {
256
256
  type: 'object',
257
257
  properties: {
@@ -264,7 +264,7 @@ class ServiceNowAutomationMCP {
264
264
  },
265
265
  {
266
266
  name: 'snow_get_atf_results',
267
- description: '๐Ÿ“Š Retrieves ATF test execution results including pass/fail status, error details, and execution time.',
267
+ description: 'Retrieves ATF test execution results including pass/fail status, error details, and execution time from sys_atf_test_result table.',
268
268
  inputSchema: {
269
269
  type: 'object',
270
270
  properties: {
@@ -276,7 +276,7 @@ class ServiceNowAutomationMCP {
276
276
  },
277
277
  {
278
278
  name: 'snow_create_atf_test_suite',
279
- description: '๐Ÿ“ฆ Creates an ATF test suite to group and run multiple tests together.',
279
+ description: 'Creates an ATF test suite to group and run multiple tests together using sys_atf_test_suite table.',
280
280
  inputSchema: {
281
281
  type: 'object',
282
282
  properties: {
@@ -291,7 +291,7 @@ class ServiceNowAutomationMCP {
291
291
  },
292
292
  {
293
293
  name: 'snow_discover_atf_tests',
294
- description: '๐Ÿ” Discovers existing ATF tests and test suites in the instance with filtering options.',
294
+ description: 'Discovers existing ATF tests and test suites in the instance with filtering options from sys_atf_test and sys_atf_test_suite tables.',
295
295
  inputSchema: {
296
296
  type: 'object',
297
297
  properties: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "3.2.0",
4
- "description": "Snow-Flow v3.2.0: Complete ServiceNow Enterprise Suite with 180+ MCP Tools. ATF Testing, Knowledge Management, Service Catalog, Change Management with CAB scheduling, Virtual Agent chatbots with NLU, Performance Analytics KPIs, Flow Designer automation, Agent Workspace configuration, Mobile app deployment, CMDB/Discovery, Event Management correlation, HR Service Delivery onboarding, Customer Service Management, DevOps CI/CD integration. All using official ServiceNow REST APIs across 17 specialized MCP servers.",
3
+ "version": "3.2.2",
4
+ "description": "Snow-Flow v3.2.2: ServiceNow development platform with 180+ MCP tools. Includes ATF Testing, Knowledge Management, Service Catalog, Change Management, Virtual Agent, Performance Analytics, Flow Designer, Agent Workspace, Mobile, CMDB/Discovery, Event Management, HR Service Delivery, Customer Service Management, and DevOps integration. All tools use official ServiceNow REST APIs across 17 specialized MCP servers.",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
7
7
  "bin": {