snow-flow 1.1.77 → 1.1.78

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,77 +1,104 @@
1
- # Snow-Flow: The claude-flow ServiceNow Revolution 🚀
2
-
3
- **Snow-Flow** transforms ServiceNow development through the revolutionary **Queen Agent** and **claude-flow philosophy**. Experience **hive-mind intelligence** where one elegant command replaces complex multi-agent orchestration.
4
-
5
- **The claude-flow Philosophy:**
6
- - 🧠 **Hive-Mind Intelligence**: All agents share knowledge and learn collectively
7
- - đŸŽ¯ **Intent-Driven Development**: Describe what you want, not how to build it
8
- - 📊 **Memory-Driven Patterns**: Learn from every execution, improve over time
9
- - 👑 **Elegant Simplicity**: One command replaces complex coordination
10
-
11
- Powered by 11 specialized MCP (Model Context Protocol) servers and inspired by Claude's natural language understanding, Snow-Flow makes ServiceNow development as simple as having a conversation.
12
-
13
- ## 🆕 What's New in v1.1.50
14
-
15
- ### đŸŽ¯ CRITICAL FIXES - All User Issues Resolved!
16
- - **ROOT CAUSE SOLVED**: Flow Designer validation failures completely eliminated
17
- - **JSON SCHEMA FLEXIBILITY**: Accepts both "steps" and "activities" arrays with auto-conversion
18
- - **DOCUMENTATION SYNC**: Init command now creates comprehensive CLAUDE.md (373 lines vs 15)
19
- - **COMPLETE GUIDE**: New users get full Snow-Flow development environment from day one
20
-
21
- ### 🧠 Intelligent Error Recovery (v1.1.48-1.1.49)
22
- - **AUTOMATIC FALLBACKS**: Flow Designer → Business Rule conversion when deployment fails
23
- - **SMART SESSIONS**: Update Sets auto-create when none exist - no more "no active session" errors
24
- - **ZERO MANUAL WORK**: All systematic errors from user feedback now automatically handled
25
- - **COMPREHENSIVE TESTING**: Enhanced flow testing with Business Rule fallback detection
26
-
27
- ### 🚀 Enhanced Swarm Command (v1.1.42+)
28
- Most intelligent features are now **enabled by default** - ÊÊn command voor alles!
29
- - **DEFAULT TRUE**: `--smart-discovery`, `--live-testing`, `--auto-deploy`, `--auto-rollback`, `--shared-memory`, `--progress-monitoring`
30
- - **INTELLIGENT ORCHESTRATION**: Uses `snow_orchestrate_development` MCP tool automatically
31
- - **NO FLAGS NEEDED**: Just run `snow-flow swarm "create widget"` and everything works!
32
-
33
- ### 🔍 Real-Time ServiceNow Integration (v1.1.41+)
34
- - **LIVE VALIDATION**: `snow_validate_live_connection` - real-time auth and permission checking
35
- - **SMART PREVENTION**: `snow_discover_existing_flows` - prevents duplicate flows
36
- - **LIVE TESTING**: `snow_test_flow_execution` - real flow testing in live instances
37
- - **BATCH VALIDATION**: `batch_deployment_validator` - comprehensive multi-artifact validation
38
- - **AUTO ROLLBACK**: `deployment_rollback_manager` - automatic rollback with backup creation
39
-
40
- ## 🌟 Key Features
41
-
42
- ### 👑 Revolutionary Queen Agent
43
-
44
- - **🧠 Hive-Mind Intelligence**: All agents share knowledge and learn collectively from every execution
45
- - **đŸŽ¯ Intent-Driven Development**: Natural language understanding converts objectives into perfect solutions
46
- - **📊 Memory-Driven Patterns**: Learns successful patterns and automatically applies them to new projects
47
- - **🚀 One-Command Orchestration**: Replaces complex multi-step workflows with single elegant commands
48
- - **🔄 Graceful Fallbacks**: Automatically falls back to traditional methods when needed
49
- - **💾 Persistent Learning**: Export/import patterns for team sharing and backup
50
-
51
- ### 🤖 11 Specialized MCP Servers (Orchestrated by Queen)
52
- Each server provides autonomous capabilities for different aspects of ServiceNow development:
53
-
54
- 1. **Deployment MCP** - Autonomous widget, flow, and application deployment
55
- 2. **Flow Composer MCP** - Natural language flow creation with intelligent analysis
56
- 3. **Update Set MCP** - Professional change tracking and deployment management
57
- 4. **Intelligent MCP** - AI-powered artifact discovery and editing
58
- 5. **Graph Memory MCP** - Relationship tracking and impact analysis
59
- 6. **Platform Development MCP** - Development workflow automation
60
- 7. **Integration MCP** - Third-party system integration
61
- 8. **Operations MCP** - Operations and monitoring management
62
- 9. **Automation MCP** - Workflow and process automation
63
- 10. **Security & Compliance MCP** - Security auditing and compliance
64
- 11. **Reporting & Analytics MCP** - Data analysis and reporting
65
-
66
- ### đŸŽ¯ Core Capabilities (Enhanced by Queen Intelligence)
67
-
68
- - **Natural Language Processing**: Create complex ServiceNow artifacts using plain English/Dutch commands
69
- - **Hive-Mind Decision Making**: Collectively learns optimal architectures and applies them automatically
70
- - **Zero Configuration**: All values dynamically discovered from your ServiceNow instance
71
- - **Autonomous Deployment**: Direct deployment to ServiceNow with automatic error handling and learning
72
- - **Update Set Management**: Professional change tracking like ServiceNow pros use
73
- - **Global Scope Strategy**: Intelligent scope selection with fallback mechanisms
74
- - **Memory-Driven Coordination**: Parallel execution optimized by learned patterns
1
+ # Snow-Flow: ServiceNow Hive-Mind Intelligence 🧠
2
+
3
+ **Snow-Flow** revolutionizes ServiceNow development through **claude-flow inspired hive-mind architecture**. One elegant command spawns intelligent AI agents that collaborate to build, test, and deploy professional ServiceNow solutions automatically.
4
+
5
+ ## 🧠 The Hive-Mind Revolution
6
+
7
+ **Inspired by claude-flow philosophy: "One Queen, many simple agents, simple memory, learn and adapt"**
8
+
9
+ - 👑 **Queen Agent**: Master coordinator that analyzes objectives and spawns specialist agents
10
+ - 🤖 **Worker Agents**: ServiceNow specialists (Widget Creator, Flow Builder, Script Writer, Security, Test)
11
+ - 💾 **Shared Memory**: SQLite-based persistent coordination system
12
+ - đŸŽ¯ **Claude Code Integration**: All coordination happens through Claude Code interface
13
+ - 🚀 **One Command**: `snow-flow swarm "objective"` - everything else is automatic
14
+
15
+ ## ✨ What's New in v1.1.77 - Complete Architecture Transformation
16
+
17
+ ### đŸŽ¯ MAJOR BREAKTHROUGH: True Hive-Mind Implementation
18
+ - **Complete Claude-Flow Architecture**: Implemented true hive-mind based on https://github.com/ruvnet/claude-flow
19
+ - **Queen Agent Coordinator**: Intelligent objective analysis and agent spawning
20
+ - **5 Specialist Agents**: Widget Creator, Flow Builder, Script Writer, Security Agent, Test Agent
21
+ - **SQLite Memory System**: Persistent cross-agent coordination with <100ms query performance
22
+ - **Agent Communication**: Sophisticated handoff patterns and dependency management
23
+
24
+ ### 🔧 Agent-Based MCP Integration
25
+ - **Memory-Aware MCPs**: All 11 MCP servers now integrate with agent coordination
26
+ - **Progress Reporting**: Real-time progress updates to Queen Agent
27
+ - **No Mock Data**: All operations use real ServiceNow (removed all placeholders)
28
+ - **Error Recovery**: Comprehensive fallback strategies with Queen intervention
29
+
30
+ ### 🚀 Enhanced CLI Orchestration
31
+ - **Queen Agent Prompts**: Swarm command generates comprehensive orchestration instructions
32
+ - **Session Management**: Unique session IDs with progress tracking
33
+ - **Status Monitoring**: `snow-flow swarm-status <sessionId>` for real-time monitoring
34
+ - **Memory Coordination**: All agents communicate through shared SQLite memory
35
+
36
+ ## 🤖 Agent Ecosystem
37
+
38
+ ### 👑 Queen Agent (Master Coordinator)
39
+ - **Objective Analysis**: Analyzes natural language objectives and determines complexity
40
+ - **Agent Spawning**: Dynamically spawns required specialist agents based on requirements
41
+ - **Progress Monitoring**: Real-time tracking of task completion and agent coordination
42
+ - **Memory Management**: Stores patterns and learns from successful executions
43
+ - **Error Recovery**: Makes strategic decisions when agents encounter problems
44
+
45
+ ### 🎨 Widget Creator Agent
46
+ - **HTML Templates**: Creates responsive ServiceNow Service Portal widgets
47
+ - **Server Scripts**: Develops optimized server-side data processing logic
48
+ - **CSS Styling**: Implements professional styling with Chart.js integration
49
+ - **Deployment**: Uses `snow_deploy` MCP tools for direct ServiceNow deployment
50
+
51
+ ### 🔄 Flow Builder Agent
52
+ - **Flow Design**: Creates Flow Designer workflows with intelligent structure
53
+ - **Trigger Configuration**: Sets up optimal triggers (record events, scheduled, manual)
54
+ - **Approval Processes**: Implements complex approval hierarchies with escalation
55
+ - **Integration**: Uses `snow_create_flow` MCP tools with comprehensive testing
56
+
57
+ ### 📝 Script Writer Agent
58
+ - **Business Rules**: Creates optimized business logic with performance considerations
59
+ - **Script Includes**: Develops reusable server-side utilities with proper class structure
60
+ - **Client Scripts**: Implements UI behavior and validation logic
61
+ - **Performance**: Automatic optimization recommendations and best practices
62
+
63
+ ### đŸ›Ąī¸ Security Agent
64
+ - **Vulnerability Scanning**: Scans for XSS, SQL injection, hardcoded credentials
65
+ - **Access Control**: Validates permissions and role-based security
66
+ - **Compliance**: Checks SOX, GDPR, HIPAA compliance requirements
67
+ - **Remediation**: Generates actionable security improvement plans
68
+
69
+ ### đŸ§Ē Test Agent
70
+ - **Test Scenarios**: Creates comprehensive test cases (positive, negative, edge cases)
71
+ - **Mock Data**: Generates realistic test data for validation
72
+ - **Performance Testing**: Validates response times and resource usage
73
+ - **Integration Testing**: Tests cross-component interactions and workflows
74
+
75
+ ## 💾 Memory System Architecture
76
+
77
+ ### SQLite-Based Coordination
78
+ ```sql
79
+ -- Agent coordination and communication
80
+ agent_coordination: Track agent status, progress, and assignments
81
+ servicenow_artifacts: Store created widgets, flows, scripts with full metadata
82
+ agent_messages: Inter-agent communication and handoff coordination
83
+ shared_context: Session-wide shared data and configuration
84
+ deployment_history: Complete audit trail of all ServiceNow operations
85
+ agent_dependencies: Manage complex task dependencies and ordering
86
+ performance_metrics: Real-time performance tracking and optimization
87
+ ```
88
+
89
+ ### Memory Usage Patterns
90
+ ```javascript
91
+ // Agents store context for coordination
92
+ Memory.store("widget_requirements", {
93
+ type: "incident_dashboard",
94
+ charts: ["pie", "bar", "timeline"],
95
+ responsive: true
96
+ });
97
+
98
+ // Other agents read and build upon context
99
+ const requirements = Memory.get("widget_requirements");
100
+ // Agent creates widget based on shared requirements
101
+ ```
75
102
 
76
103
  ## 🚀 Quick Start
77
104
 
@@ -80,380 +107,225 @@ Each server provides autonomous capabilities for different aspects of ServiceNow
80
107
  - ServiceNow instance with admin access
81
108
  - OAuth application configured in ServiceNow
82
109
 
83
- ### Installation & Queen Agent Setup
110
+ ### Installation & Setup
84
111
 
85
112
  ```bash
86
113
  # Install Snow-Flow globally
87
114
  npm install -g snow-flow
88
115
 
89
- # Initialize Snow-Flow with claude-flow intelligence
116
+ # Initialize with complete hive-mind environment
90
117
  snow-flow init --sparc
91
118
 
92
- # Configure ServiceNow credentials (see Configuration section below)
93
- # Then authenticate
94
- snow-flow auth login
95
-
96
- # 🎉 Start developing with the Queen Agent!
97
- snow-flow queen "create incident dashboard with real-time charts"
98
- ```
99
-
100
- #### Alternative: Install from source
101
- ```bash
102
- # Clone the repository
103
- git clone https://github.com/groeimetai/snow-flow.git
104
- cd snow-flow
105
-
106
- # Install dependencies
107
- npm install
108
-
109
- # Build the project
110
- npm run build
111
-
112
- # Link globally (optional)
113
- npm link
114
- ```
119
+ # Configure ServiceNow credentials (.env file)
120
+ SNOW_INSTANCE=dev123456
121
+ SNOW_CLIENT_ID=your_oauth_client_id
122
+ SNOW_CLIENT_SECRET=your_oauth_client_secret
123
+ SNOW_USERNAME=admin
124
+ SNOW_PASSWORD=admin_password
115
125
 
116
- ### Configuration
126
+ # Authenticate with ServiceNow
127
+ snow-flow auth login
117
128
 
118
- 1. Create a `.env` file in the project root:
119
- ```env
120
- SNOW_INSTANCE=your-instance.service-now.com
121
- SNOW_CLIENT_ID=your-oauth-client-id
122
- SNOW_CLIENT_SECRET=your-oauth-client-secret
123
- SNOW_USERNAME=your-username
124
- SNOW_PASSWORD=your-password
129
+ # 🎉 Experience the hive-mind intelligence!
130
+ snow-flow swarm "Create incident management dashboard with real-time charts"
125
131
  ```
126
132
 
127
- 2. Set up OAuth in ServiceNow (see [SERVICENOW-OAUTH-SETUP.md](./SERVICENOW-OAUTH-SETUP.md))
133
+ ## đŸŽ¯ Core Commands
128
134
 
129
- 3. Authenticate with ServiceNow:
135
+ ### 🧠 Hive-Mind Orchestration
130
136
  ```bash
131
- snow-flow auth login
132
- ```
137
+ # Primary command - spawns Queen Agent with specialist workers
138
+ snow-flow swarm "objective"
133
139
 
134
- 4. **Start developing with Queen Agent:**
135
- ```bash
136
- # Your first Queen command - creates everything you need!
137
- snow-flow queen "create incident management dashboard"
140
+ # Monitor swarm progress
141
+ snow-flow swarm-status <sessionId>
138
142
 
139
- # Check what the Queen learned
140
- snow-flow queen-status --detailed
143
+ # System status and health
144
+ snow-flow status
141
145
 
142
- # Get AI insights for your next project
143
- snow-flow queen-insights
146
+ # Memory management
147
+ snow-flow memory stats
148
+ snow-flow memory export <file>
144
149
  ```
145
150
 
146
- ### đŸŽ¯ MCP Server Activation (v1.1.25+)
147
-
148
- Snow-Flow now includes **automatic MCP server activation** for Claude Code! During initialization, you'll be prompted to automatically start Claude Code with all 11 MCP servers pre-loaded:
151
+ ### 🚀 Intelligent Features (Enabled by Default)
152
+ - **Smart Discovery**: Automatically discovers and reuses existing artifacts
153
+ - **Live Testing**: Real-time testing during development on your ServiceNow instance
154
+ - **Auto Deploy**: Automatic deployment when ready (safe with update sets)
155
+ - **Auto Rollback**: Automatic rollback on failures with backup restoration
156
+ - **Shared Memory**: All agents share context and coordination state
157
+ - **Progress Monitoring**: Real-time progress tracking and status updates
149
158
 
159
+ ### đŸŽ›ī¸ Advanced Options
150
160
  ```bash
151
- snow-flow init --sparc
152
-
153
- # You'll see:
154
- # 🚀 Would you like to start Claude Code with MCP servers automatically? (Y/n)
155
- # Press Y to launch Claude Code with all MCP servers ready to use!
161
+ # Enable automatic permission escalation for enterprise features
162
+ snow-flow swarm "create global workflow" --auto-permissions
163
+
164
+ # Disable specific features when needed
165
+ snow-flow swarm "test widget locally" --no-auto-deploy --no-live-testing
166
+
167
+ # Maximum control
168
+ snow-flow swarm "complex integration" \
169
+ --max-agents 8 \
170
+ --strategy development \
171
+ --mode distributed \
172
+ --parallel \
173
+ --auto-permissions
156
174
  ```
157
175
 
158
- The MCP servers are automatically:
159
- - ✅ Configured with correct paths for global npm installations
160
- - ✅ Registered in Claude Code's settings
161
- - ✅ Activated without manual approval steps
162
- - ✅ Ready to use immediately after initialization
176
+ ## 🔧 Configuration
163
177
 
164
- If you need to manually activate MCP servers later:
165
- ```bash
166
- # For Mac/Linux:
167
- claude --mcp-config .mcp.json .
168
-
169
- # For Windows:
170
- claude.exe --mcp-config .mcp.json .
178
+ ### ServiceNow Connection
179
+ Create `.env` file in your project:
180
+ ```env
181
+ SNOW_INSTANCE=dev123456
182
+ SNOW_CLIENT_ID=your_oauth_client_id
183
+ SNOW_CLIENT_SECRET=your_oauth_client_secret
184
+ SNOW_USERNAME=admin
185
+ SNOW_PASSWORD=admin_password
171
186
  ```
172
187
 
173
- ## 💡 Usage Examples
188
+ ### OAuth Setup in ServiceNow
189
+ 1. Navigate to System OAuth > Application Registry
190
+ 2. Create new OAuth application
191
+ 3. Set redirect URI to `http://localhost:3000/oauth/callback`
192
+ 4. Note the Client ID and Client Secret
193
+ 5. Grant necessary scopes for your development needs
174
194
 
175
- ### 👑 Primary Interface: Queen Agent (RECOMMENDED)
195
+ ## đŸŽ¯ Usage Examples
176
196
 
177
- **The Transformation:**
197
+ ### Widget Development
178
198
  ```bash
179
- # Before: Complex multi-agent coordination
180
- snow-flow swarm "Build incident system" --strategy development --mode hierarchical --max-agents 8 --parallel --monitor --shared-memory --validation --auto-deploy
181
-
182
- # After: Elegant Queen Agent - ONE COMMAND DOES EVERYTHING!
183
- snow-flow queen "Build a complete incident management system"
184
- ```
185
-
186
- **Examples:**
187
- ```bash
188
- # Create complex flows with natural language
189
- snow-flow queen "Create an approval workflow for iPhone orders with manager notifications"
190
-
191
- # Deploy widgets directly to ServiceNow
192
- snow-flow queen "Create and deploy a widget showing critical incidents with real-time updates"
193
-
194
- # Build complete ITSM solutions
195
- snow-flow queen "Build complete incident management with dashboard, workflows, and notifications"
196
-
197
- # Intelligent artifact discovery and modification
198
- snow-flow queen "Find and modify the approval workflow to add extra approval step for orders over $1000"
199
-
200
- # Multi-language support
201
- snow-flow queen "Maak een flow voor automatisch toewijzen van incidenten aan groepen"
199
+ # Complete widget with intelligent agent coordination
200
+ snow-flow swarm "Create incident dashboard widget with pie charts and filter options"
201
+
202
+ # The Queen Agent will:
203
+ # 1. Analyze objective and spawn Widget Creator + Test Agent
204
+ # 2. Widget Creator builds responsive HTML/CSS/JS with Chart.js
205
+ # 3. Test Agent creates comprehensive test scenarios
206
+ # 4. Automatic deployment to ServiceNow with Update Set tracking
202
207
  ```
203
208
 
204
- ### 🧠 Queen Memory Management
209
+ ### Flow Creation
205
210
  ```bash
206
- # Export learned patterns for backup
207
- snow-flow queen-memory export my-patterns.json
208
-
209
- # Import previous learning patterns
210
- snow-flow queen-memory import my-patterns.json
211
-
212
- # View hive-mind intelligence status
213
- snow-flow queen-status --detailed
214
-
215
- # Get AI-driven insights and recommendations
216
- snow-flow queen-insights
217
-
218
- # Reset learning (requires confirmation)
219
- snow-flow queen-memory clear --confirm
211
+ # Complex approval workflow
212
+ snow-flow swarm "Build approval flow for equipment requests with manager and finance approval"
213
+
214
+ # The Queen Agent will:
215
+ # 1. Spawn Flow Builder + Security Agent
216
+ # 2. Flow Builder designs multi-step approval process
217
+ # 3. Security Agent validates permissions and compliance
218
+ # 4. Live testing with mock data before deployment
220
219
  ```
221
220
 
222
- ### 🚀 Enhanced Legacy Commands (with Queen Intelligence)
221
+ ### Complete Solutions
223
222
  ```bash
224
- # Add Queen intelligence to existing swarm commands
225
- snow-flow swarm "Create enterprise workflow" --queen --auto-permissions
226
-
227
- # Queen-enhanced SPARC modes
228
- snow-flow sparc "Create widget" --queen
223
+ # End-to-end solution development
224
+ snow-flow swarm "Create complete ITSM incident management solution with dashboards, automation, and reporting"
225
+
226
+ # The Queen Agent will:
227
+ # 1. Analyze complexity and spawn all required agents
228
+ # 2. Coordinate parallel development of multiple components
229
+ # 3. Ensure integration between widgets, flows, and scripts
230
+ # 4. Comprehensive testing and phased deployment
229
231
  ```
230
232
 
231
- ## đŸ› ī¸ Advanced Features
233
+ ## đŸ—ī¸ Architecture
232
234
 
233
- ### Flow vs Subflow Intelligence
234
- Snow-Flow automatically analyzes your requirements and decides whether to create a main flow or break it into reusable subflows:
235
- - Complexity analysis
236
- - Reusability assessment
237
- - Performance optimization
238
- - Maintainability considerations
235
+ ### Hive-Mind Coordination Flow
236
+ 1. **CLI Analysis**: User runs `snow-flow swarm "objective"`
237
+ 2. **Queen Activation**: Queen Agent analyzes objective and determines requirements
238
+ 3. **Agent Spawning**: Queen spawns specialist agents based on complexity assessment
239
+ 4. **Memory Initialization**: SQLite memory system activated for coordination
240
+ 5. **Parallel Execution**: Agents work independently while sharing context through memory
241
+ 6. **Progress Monitoring**: Real-time status updates via shared memory state
242
+ 7. **ServiceNow Integration**: Agents use 11 specialized MCP servers for operations
243
+ 8. **Completion**: Final artifacts delivered with comprehensive audit trail
239
244
 
240
- ### Update Set Management
241
- Professional change tracking just like ServiceNow developers use:
242
- ```bash
243
- # Create a new update set for your feature
244
- snow-flow sparc "Create update set for new approval features"
245
-
246
- # All subsequent changes are automatically tracked
247
- snow-flow sparc "Add approval widget to portal"
245
+ ### Memory-Driven Coordination
248
246
  ```
249
-
250
- ### Global Scope Strategy
251
- Intelligent deployment scope selection:
252
- - Automatic permission validation
253
- - Fallback mechanisms for restricted environments
254
- - Environment-aware deployment (dev/test/prod)
255
-
256
- ### Template Matching
257
- Recognizes common patterns and applies best practices:
258
- - Approval workflows
259
- - Fulfillment processes
260
- - Notification systems
261
- - Integration patterns
262
-
263
- ## 🔧 New MCP Tools (v1.1.44+)
264
-
265
- ### Catalog Item Search with Fuzzy Matching
266
- Find catalog items even when you don't know the exact name:
267
- ```javascript
268
- // In Claude Code with MCP tools
269
- snow_catalog_item_search({
270
- query: "iPhone", // Finds iPhone 6S, iPhone 7, etc.
271
- fuzzy_match: true, // Intelligent variations
272
- category_filter: "mobile devices",
273
- include_variables: true // Get catalog variables
274
- });
275
- ```
276
-
277
- ### Flow Testing with Mock Data
278
- Test flows without affecting production data:
279
- ```javascript
280
- snow_test_flow_with_mock({
281
- flow_id: "equipment_provisioning_flow",
282
- create_test_user: true, // Auto-creates test user
283
- mock_catalog_items: true, // Creates test items
284
- mock_catalog_data: [
285
- {
286
- name: "Test iPhone 6S",
287
- price: "699.00"
288
- }
289
- ],
290
- simulate_approvals: true, // Auto-approves
291
- cleanup_after_test: true // Removes test data
292
- });
293
- ```
294
-
295
- ### Direct Catalog-Flow Linking
296
- Link catalog items directly to flows for automated fulfillment:
297
- ```javascript
298
- snow_link_catalog_to_flow({
299
- catalog_item_id: "iPhone 6S",
300
- flow_id: "mobile_provisioning_flow",
301
- link_type: "flow_catalog_process", // Modern approach
302
- variable_mapping: [
303
- {
304
- catalog_variable: "phone_model",
305
- flow_input: "device_type"
306
- },
307
- {
308
- catalog_variable: "user_department",
309
- flow_input: "department"
310
- }
311
- ],
312
- trigger_condition: 'current.stage == "request_approved"',
313
- execution_options: {
314
- run_as: "system",
315
- wait_for_completion: true
316
- },
317
- test_link: true // Creates test request
318
- });
319
- ```
320
-
321
- ### Bulk Deployment
322
- Deploy multiple artifacts in a single transaction:
323
- ```javascript
324
- snow_bulk_deploy({
325
- artifacts: [
326
- { type: "widget", data: widgetData },
327
- { type: "flow", data: flowData },
328
- { type: "script", data: scriptData }
329
- ],
330
- transaction_mode: true, // All-or-nothing deployment
331
- parallel: true, // Deploy simultaneously
332
- dry_run: false
333
- });
247
+ ┌─────────────────────────────────────────────────────────────────┐
248
+ │ Snow-Flow Hive-Mind System │
249
+ ├─────────────────────────────────────────────────────────────────┤
250
+ │ │
251
+ │ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────┐ │
252
+ │ │ Claude Code │◄──â–ē│ Snow-Flow CLI │◄──â–ē│ ServiceNow │ │
253
+ │ │ Interface │ │ Orchestrator │ │ Instance │ │
254
+ │ └─────────────────┘ └─────────────────┘ └─────────────┘ │
255
+ │ │ │ │ │
256
+ │ â–ŧ â–ŧ â–ŧ │
257
+ │ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────┐ │
258
+ │ │ Swarm Memory │◄──â–ē│ Queen Agent │◄──â–ē│ MCP Tools │ │
259
+ │ │ (SQLite) │ │ Coordinator │ │ (11 MCPs) │ │
260
+ │ └─────────────────┘ └─────────────────┘ └─────────────┘ │
261
+ │ │ │ │
262
+ │ â–ŧ â–ŧ │
263
+ │ ┌─────────────────────────────────────────────────────────────┤
264
+ │ │ ServiceNow Specialist Agents │
265
+ │ │ │
266
+ │ │ Widget Creator │ Flow Builder │ Script Writer │ │
267
+ │ │ Security Agent │ Test Agent │ [Future Agents] │ │
268
+ │ └─────────────────────────────────────────────────────────────┘
269
+ │ │
270
+ └─────────────────────────────────────────────────────────────────┘
334
271
  ```
335
272
 
336
- ## 📁 Project Structure
273
+ ## 🔧 Development
337
274
 
275
+ ### Project Structure
338
276
  ```
339
277
  snow-flow/
340
278
  ├── src/
341
- │ ├── mcp/ # 11 MCP server implementations
342
- │ ├── orchestrator/ # Flow composition and intelligence
343
- │ ├── strategies/ # Deployment and scope strategies
344
- │ ├── api/ # ServiceNow API integration
345
- │ ├── managers/ # Resource and scope management
346
- │ └── utils/ # Utilities and helpers
347
- ├── .snow-flow/ # Snow-Flow configuration
348
- ├── .claude/ # Claude configuration
349
- ├── memory/ # Persistent agent memory
350
- └── coordination/ # Multi-agent coordination
279
+ │ ├── agents/ # Queen Agent and specialist agents
280
+ │ ├── memory/ # SQLite-based coordination system
281
+ │ ├── mcp/ # 11 ServiceNow MCP servers
282
+ │ ├── cli/ # Enhanced CLI with Queen orchestration
283
+ │ ├── config/ # Configuration management
284
+ │ ├── health/ # System health monitoring
285
+ │ └── monitoring/ # Performance tracking
286
+ ├── SNOW_FLOW_ARCHITECTURE.md # Complete system architecture
287
+ ├── MCP_ARCHITECTURE.md # Agent-specific MCP design
288
+ └── CLAUDE.md # Development configuration
351
289
  ```
352
290
 
353
- ## 🔧 Development Commands
354
-
291
+ ### Build and Test
355
292
  ```bash
356
- # Run tests
357
- npm test
293
+ # Build the project
294
+ npm run build
358
295
 
359
- # Run linting
360
- npm run lint
296
+ # Run tests
297
+ npm run test
361
298
 
362
299
  # Type checking
363
300
  npm run typecheck
364
301
 
365
- # Development mode
366
- npm run dev
302
+ # Memory system test
303
+ npm run test:memory
367
304
 
368
- # Build for production
369
- npm run build
305
+ # MCP integration test
306
+ npm run test:mcp-integration
370
307
  ```
371
308
 
372
- ## 📚 Documentation
373
-
374
- - [MCP Server Documentation](./MCP_SERVERS.md) - Detailed info on all 11 MCP servers
375
- - [OAuth Setup Guide](./SERVICENOW-OAUTH-SETUP.md) - ServiceNow OAuth configuration
376
- - [Flow Composer Guide](./ENHANCED_FLOW_COMPOSER_DOCUMENTATION.md) - Advanced flow creation
377
- - [Update Set Guide](./UPDATE_SET_DEPLOYMENT_GUIDE.md) - Professional change management
378
- - [API Integration Guide](./API_INTEGRATION_GUIDE.md) - ServiceNow API details
379
-
380
309
  ## 🤝 Contributing
381
310
 
382
- We welcome contributions! Please see our contributing guidelines (coming soon).
383
-
384
- ## 🔒 Security
385
-
386
- - All credentials stored securely in environment variables
387
- - OAuth 2.0 authentication with ServiceNow
388
- - No hardcoded values - everything discovered dynamically
389
- - Secure token management with automatic refresh
390
-
391
- ## đŸŽ¯ Use Cases
392
-
393
- ### For ServiceNow Developers
394
- - **🚀 Rapid Development**: One Queen command replaces hours of manual coordination
395
- - **📚 Pattern Learning**: Queen learns your preferences and applies them automatically
396
- - **🔄 Instant Prototyping**: Natural language to working artifacts in minutes
397
- - **📈 Productivity Boost**: Reduce development time by 90% with hive-mind intelligence
398
-
399
- ### For ServiceNow Architects
400
- - **🧠 Intelligent Architecture**: Queen applies learned architectural patterns automatically
401
- - **đŸŽ¯ Best Practice Enforcement**: Hive-mind ensures consistency across all projects
402
- - **🔍 Impact Analysis**: Graph memory tracks relationships and dependencies
403
- - **📊 Performance Optimization**: Memory-driven decisions optimize for performance
404
-
405
- ### For ServiceNow Administrators
406
- - **⚡ One-Command Deployments**: Queen handles entire deployment lifecycle automatically
407
- - **📋 Professional Change Tracking**: Automatic update set management
408
- - **đŸ›Ąī¸ Automated Testing**: Queen learns testing patterns and applies them
409
- - **🔄 Intelligent Migration**: Memory-driven migration between instances
410
-
411
- ## đŸšĻ Roadmap
412
-
413
- ### 👑 Queen Agent Enhancements
414
- - [ ] **Advanced Hive-Mind Learning**: Cross-project pattern sharing
415
- - [ ] **Visual Queen Dashboard**: Real-time hive-mind intelligence visualization
416
- - [ ] **Queen Teams**: Collaborative Queen agents for enterprise projects
417
- - [ ] **Predictive Development**: Queen suggests next steps based on learned patterns
311
+ We welcome contributions to the Snow-Flow hive-mind ecosystem! Please read our contributing guidelines and submit PRs for new agents, MCP enhancements, or architecture improvements.
418
312
 
419
- ### Traditional Feature Enhancements
420
- - [ ] Enhanced Neo4j graph visualization
421
- - [ ] Multi-instance synchronization
422
- - [ ] AI-powered code review
423
- - [ ] Automated testing framework
424
- - [ ] Performance optimization recommendations
425
-
426
- ## 🆕 What's New in v1.1.25
427
-
428
- ### Automatic MCP Server Activation đŸŽ¯
429
- - **Interactive Prompt**: During `snow-flow init --sparc`, you're now prompted to automatically start Claude Code with all MCP servers
430
- - **Zero Manual Steps**: No more manual MCP approval in Claude Code - servers load automatically using `claude --mcp-config`
431
- - **Cross-Platform Support**: Works on Mac, Linux, and Windows with platform-specific activation scripts
432
- - **Instant Availability**: All 11 ServiceNow MCP servers are immediately available in Claude Code after initialization
433
-
434
- ### Previous Updates
435
- - **v1.1.24**: Added `snow-flow mcp debug` command for troubleshooting MCP configurations
436
- - **v1.1.23**: Fixed .npmignore to include essential .claude configuration files
437
- - **v1.1.22**: Verified global npm installation correctly registers all MCP servers
438
- - **v1.1.20**: Added enabledMcpjsonServers to ensure MCP visibility in Claude Code
313
+ ### Priority Areas
314
+ - Additional specialist agents (Integration, Reporting, etc.)
315
+ - Enhanced memory patterns and learning algorithms
316
+ - Advanced Queen Agent decision-making capabilities
317
+ - ServiceNow-specific optimizations and best practices
439
318
 
440
319
  ## 📝 License
441
320
 
442
- This project is licensed under the MIT License - see the LICENSE file for details.
321
+ MIT License - see LICENSE file for details.
443
322
 
444
- ## 🙏 Acknowledgments
323
+ ## 🚀 Future Vision
445
324
 
446
- Built with the power of Claude AI and the ServiceNow platform. Special thanks to the ServiceNow developer community for inspiration and best practices.
447
-
448
- ---
325
+ Snow-Flow will become the **definitive AI-driven ServiceNow development platform**, where developers describe any ServiceNow objective in natural language and watch intelligent agents collaborate to build, test, and deploy professional solutions automatically.
449
326
 
450
- **Ready to experience the claude-flow revolution?**
327
+ **Core Promise**: "Describe what you want in ServiceNow, and our AI swarm will build it for you."
451
328
 
452
- ```bash
453
- # Install and start with Queen Agent in under 2 minutes!
454
- snow-flow init --sparc
455
- snow-flow auth login
456
- snow-flow queen "create my first ServiceNow solution"
457
- ```
329
+ ---
458
330
 
459
- **Join the hive-mind intelligence revolution!** 👑🚀
331
+ *Experience the future of ServiceNow development with Snow-Flow's hive-mind intelligence.* 🧠✨
package/dist/version.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Snow-Flow Version Management
3
3
  */
4
- export declare const VERSION = "1.1.76";
4
+ export declare const VERSION = "1.1.78";
5
5
  export declare const VERSION_INFO: {
6
6
  version: string;
7
7
  name: string;
package/dist/version.js CHANGED
@@ -7,7 +7,7 @@ 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.76';
10
+ exports.VERSION = '1.1.78';
11
11
  exports.VERSION_INFO = {
12
12
  version: exports.VERSION,
13
13
  name: 'Snow-Flow',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-flow",
3
- "version": "1.1.77",
3
+ "version": "1.1.78",
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",