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 +256 -384
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,77 +1,104 @@
|
|
|
1
|
-
# Snow-Flow:
|
|
2
|
-
|
|
3
|
-
**Snow-Flow**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- đ **
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- **
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- **
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- **
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- **
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
###
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- **
|
|
71
|
-
- **
|
|
72
|
-
- **
|
|
73
|
-
- **
|
|
74
|
-
|
|
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 &
|
|
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
|
|
116
|
+
# Initialize with complete hive-mind environment
|
|
90
117
|
snow-flow init --sparc
|
|
91
118
|
|
|
92
|
-
# Configure ServiceNow credentials (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
126
|
+
# Authenticate with ServiceNow
|
|
127
|
+
snow-flow auth login
|
|
117
128
|
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
133
|
+
## đ¯ Core Commands
|
|
128
134
|
|
|
129
|
-
|
|
135
|
+
### đ§ Hive-Mind Orchestration
|
|
130
136
|
```bash
|
|
131
|
-
|
|
132
|
-
|
|
137
|
+
# Primary command - spawns Queen Agent with specialist workers
|
|
138
|
+
snow-flow swarm "objective"
|
|
133
139
|
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
#
|
|
140
|
-
snow-flow
|
|
143
|
+
# System status and health
|
|
144
|
+
snow-flow status
|
|
141
145
|
|
|
142
|
-
#
|
|
143
|
-
snow-flow
|
|
146
|
+
# Memory management
|
|
147
|
+
snow-flow memory stats
|
|
148
|
+
snow-flow memory export <file>
|
|
144
149
|
```
|
|
145
150
|
|
|
146
|
-
###
|
|
147
|
-
|
|
148
|
-
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
#
|
|
155
|
-
|
|
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
|
-
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
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
|
-
|
|
195
|
+
## đ¯ Usage Examples
|
|
176
196
|
|
|
177
|
-
|
|
197
|
+
### Widget Development
|
|
178
198
|
```bash
|
|
179
|
-
#
|
|
180
|
-
snow-flow swarm "
|
|
181
|
-
|
|
182
|
-
#
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
###
|
|
209
|
+
### Flow Creation
|
|
205
210
|
```bash
|
|
206
|
-
#
|
|
207
|
-
snow-flow
|
|
208
|
-
|
|
209
|
-
#
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
#
|
|
213
|
-
|
|
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
|
-
###
|
|
221
|
+
### Complete Solutions
|
|
223
222
|
```bash
|
|
224
|
-
#
|
|
225
|
-
snow-flow swarm "Create
|
|
226
|
-
|
|
227
|
-
# Queen
|
|
228
|
-
|
|
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
|
-
##
|
|
233
|
+
## đī¸ Architecture
|
|
232
234
|
|
|
233
|
-
###
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
-
###
|
|
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
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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
|
-
##
|
|
273
|
+
## đ§ Development
|
|
337
274
|
|
|
275
|
+
### Project Structure
|
|
338
276
|
```
|
|
339
277
|
snow-flow/
|
|
340
278
|
âââ src/
|
|
341
|
-
â âââ
|
|
342
|
-
â âââ
|
|
343
|
-
â âââ
|
|
344
|
-
â âââ
|
|
345
|
-
â âââ
|
|
346
|
-
â
|
|
347
|
-
|
|
348
|
-
âââ .
|
|
349
|
-
âââ
|
|
350
|
-
âââ
|
|
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
|
-
|
|
354
|
-
|
|
291
|
+
### Build and Test
|
|
355
292
|
```bash
|
|
356
|
-
#
|
|
357
|
-
npm
|
|
293
|
+
# Build the project
|
|
294
|
+
npm run build
|
|
358
295
|
|
|
359
|
-
# Run
|
|
360
|
-
npm run
|
|
296
|
+
# Run tests
|
|
297
|
+
npm run test
|
|
361
298
|
|
|
362
299
|
# Type checking
|
|
363
300
|
npm run typecheck
|
|
364
301
|
|
|
365
|
-
#
|
|
366
|
-
npm run
|
|
302
|
+
# Memory system test
|
|
303
|
+
npm run test:memory
|
|
367
304
|
|
|
368
|
-
#
|
|
369
|
-
npm run
|
|
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
|
|
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
|
-
###
|
|
420
|
-
-
|
|
421
|
-
-
|
|
422
|
-
-
|
|
423
|
-
-
|
|
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
|
-
|
|
321
|
+
MIT License - see LICENSE file for details.
|
|
443
322
|
|
|
444
|
-
##
|
|
323
|
+
## đ Future Vision
|
|
445
324
|
|
|
446
|
-
|
|
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
|
-
**
|
|
327
|
+
**Core Promise**: "Describe what you want in ServiceNow, and our AI swarm will build it for you."
|
|
451
328
|
|
|
452
|
-
|
|
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
|
-
|
|
331
|
+
*Experience the future of ServiceNow development with Snow-Flow's hive-mind intelligence.* đ§ â¨
|
package/dist/version.d.ts
CHANGED
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.
|
|
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.
|
|
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",
|