snow-flow 1.4.9 → 1.4.10
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/.claude/commands/helpers/standard-checkpoint-hooks.sh +179 -0
- package/.claude/settings.json +109 -32
- package/CLAUDE.md +1425 -229
- package/README.md +372 -141
- package/SNOW_FLOW_ADVANCED_FEATURES_PLAIN.txt +78 -0
- package/claude-flow +81 -34
- package/claude-flow.bat +0 -0
- package/claude-flow.ps1 +0 -0
- package/dist/cli.js +156 -0
- package/dist/cli.js.map +1 -1
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.d.ts +925 -0
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.d.ts.map +1 -0
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.js +14159 -0
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.js.map +1 -0
- package/dist/mcp/servicenow-deployment-mcp.js +32 -0
- package/dist/mcp/servicenow-deployment-mcp.js.map +1 -1
- package/dist/utils/snow-memory-manager.d.ts +78 -0
- package/dist/utils/snow-memory-manager.d.ts.map +1 -0
- package/dist/utils/snow-memory-manager.js +530 -0
- package/dist/utils/snow-memory-manager.js.map +1 -0
- package/dist/version.d.ts +4 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +26 -1
- package/dist/version.js.map +1 -1
- package/package.json +268 -3
- package/.env.example +0 -284
package/.env.example
DELETED
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
# ===========================================
|
|
2
|
-
# ServiceNow OAuth Configuration
|
|
3
|
-
# ===========================================
|
|
4
|
-
# Replace these values with your actual ServiceNow instance and OAuth credentials
|
|
5
|
-
|
|
6
|
-
# ServiceNow Instance URL (without https://)
|
|
7
|
-
# Example: dev12345.service-now.com
|
|
8
|
-
SNOW_INSTANCE=your-instance.service-now.com
|
|
9
|
-
|
|
10
|
-
# OAuth Client ID from ServiceNow Application Registry
|
|
11
|
-
# How to get: System OAuth > Application Registry > New > Create an OAuth application
|
|
12
|
-
SNOW_CLIENT_ID=your-oauth-client-id
|
|
13
|
-
|
|
14
|
-
# OAuth Client Secret from ServiceNow Application Registry
|
|
15
|
-
SNOW_CLIENT_SECRET=your-oauth-client-secret
|
|
16
|
-
|
|
17
|
-
# Optional: Basic authentication (not recommended for production)
|
|
18
|
-
# SNOW_USERNAME=your-username
|
|
19
|
-
# SNOW_PASSWORD=your-password
|
|
20
|
-
|
|
21
|
-
# Authentication type: oauth (default) or basic
|
|
22
|
-
# SNOW_AUTH_TYPE=oauth
|
|
23
|
-
|
|
24
|
-
# API version to use (default: now)
|
|
25
|
-
# SNOW_API_VERSION=now
|
|
26
|
-
|
|
27
|
-
# ServiceNow request timeout in milliseconds (default: 60000 = 60s)
|
|
28
|
-
# SNOW_REQUEST_TIMEOUT=60000
|
|
29
|
-
|
|
30
|
-
# Max retry attempts for failed requests (default: 3)
|
|
31
|
-
# SNOW_MAX_RETRIES=3
|
|
32
|
-
|
|
33
|
-
# Delay between retry attempts in milliseconds (default: 2000 = 2s)
|
|
34
|
-
# SNOW_RETRY_DELAY=2000
|
|
35
|
-
|
|
36
|
-
# OAuth redirect configuration
|
|
37
|
-
# Host for OAuth callback (default: localhost)
|
|
38
|
-
# SNOW_REDIRECT_HOST=localhost
|
|
39
|
-
|
|
40
|
-
# Port for OAuth callback (default: 3005)
|
|
41
|
-
# SNOW_REDIRECT_PORT=3005
|
|
42
|
-
|
|
43
|
-
# Path for OAuth callback (default: /callback)
|
|
44
|
-
# SNOW_REDIRECT_PATH=/callback
|
|
45
|
-
|
|
46
|
-
# ===========================================
|
|
47
|
-
# Snow-Flow System Configuration
|
|
48
|
-
# ===========================================
|
|
49
|
-
|
|
50
|
-
# Environment: development, staging, production (default: development)
|
|
51
|
-
# SNOW_FLOW_ENV=development
|
|
52
|
-
|
|
53
|
-
# Log level: debug, info, warn, error (default: info)
|
|
54
|
-
# SNOW_FLOW_LOG_LEVEL=info
|
|
55
|
-
|
|
56
|
-
# Data directory for configuration, cache, logs (default: ~/.snow-flow)
|
|
57
|
-
# SNOW_FLOW_DATA_DIR=/path/to/custom/data/dir
|
|
58
|
-
|
|
59
|
-
# Maximum concurrent operations (default: 10)
|
|
60
|
-
# SNOW_FLOW_MAX_CONCURRENT_OPS=10
|
|
61
|
-
|
|
62
|
-
# Session timeout in milliseconds (default: 3600000 = 1 hour)
|
|
63
|
-
# SNOW_FLOW_SESSION_TIMEOUT=3600000
|
|
64
|
-
|
|
65
|
-
# ===========================================
|
|
66
|
-
# Agent Configuration
|
|
67
|
-
# ===========================================
|
|
68
|
-
|
|
69
|
-
# Maximum number of worker agents (default: 10)
|
|
70
|
-
# SNOW_FLOW_MAX_WORKER_AGENTS=10
|
|
71
|
-
|
|
72
|
-
# Agent spawn timeout in milliseconds (default: 30000 = 30s)
|
|
73
|
-
# SNOW_FLOW_SPAWN_TIMEOUT=30000
|
|
74
|
-
|
|
75
|
-
# Agent coordination interval in milliseconds (default: 5000 = 5s)
|
|
76
|
-
# SNOW_FLOW_COORDINATION_INTERVAL=5000
|
|
77
|
-
|
|
78
|
-
# Maximum retry attempts for agent operations (default: 3)
|
|
79
|
-
# SNOW_FLOW_RETRY_ATTEMPTS=3
|
|
80
|
-
|
|
81
|
-
# Worker agent heartbeat interval in milliseconds (default: 10000 = 10s)
|
|
82
|
-
# SNOW_FLOW_HEARTBEAT_INTERVAL=10000
|
|
83
|
-
|
|
84
|
-
# Task timeout for worker agents in milliseconds (default: 300000 = 5 minutes)
|
|
85
|
-
# SNOW_FLOW_TASK_TIMEOUT=300000
|
|
86
|
-
|
|
87
|
-
# Maximum memory usage per worker agent in MB (default: 500)
|
|
88
|
-
# SNOW_FLOW_MAX_MEMORY_USAGE=500
|
|
89
|
-
|
|
90
|
-
# Auto-shutdown idle time in milliseconds (default: 600000 = 10 minutes)
|
|
91
|
-
# SNOW_FLOW_AUTO_SHUTDOWN_IDLE=600000
|
|
92
|
-
|
|
93
|
-
# ===========================================
|
|
94
|
-
# MCP Server Configuration
|
|
95
|
-
# ===========================================
|
|
96
|
-
|
|
97
|
-
# MCP server ports (defaults: 3001, 3002, 3003, 3004, 3005)
|
|
98
|
-
# MCP_DEPLOYMENT_PORT=3001
|
|
99
|
-
# MCP_INTELLIGENT_PORT=3002
|
|
100
|
-
# MCP_OPERATIONS_PORT=3003
|
|
101
|
-
# MCP_FLOW_COMPOSER_PORT=3004
|
|
102
|
-
# MCP_PLATFORM_DEV_PORT=3005
|
|
103
|
-
|
|
104
|
-
# MCP server host (default: localhost)
|
|
105
|
-
# MCP_HOST=localhost
|
|
106
|
-
|
|
107
|
-
# MCP transport timeout in milliseconds (default: 30000 = 30s)
|
|
108
|
-
# MCP_TIMEOUT=30000
|
|
109
|
-
|
|
110
|
-
# MCP retry attempts (default: 3)
|
|
111
|
-
# MCP_RETRY_ATTEMPTS=3
|
|
112
|
-
|
|
113
|
-
# MCP retry delay in milliseconds (default: 5000 = 5s)
|
|
114
|
-
# MCP_RETRY_DELAY=5000
|
|
115
|
-
|
|
116
|
-
# MCP authentication token expiry in milliseconds (default: 86400000 = 24 hours)
|
|
117
|
-
# MCP_AUTH_TOKEN_EXPIRY=86400000
|
|
118
|
-
|
|
119
|
-
# ===========================================
|
|
120
|
-
# Memory System Configuration
|
|
121
|
-
# ===========================================
|
|
122
|
-
|
|
123
|
-
# Database path for persistent memory (default: auto-generated in data dir)
|
|
124
|
-
# SNOW_FLOW_DB_PATH=/path/to/custom/memory.db
|
|
125
|
-
|
|
126
|
-
# Enable memory cache (default: true)
|
|
127
|
-
# SNOW_FLOW_CACHE_ENABLED=true
|
|
128
|
-
|
|
129
|
-
# Cache maximum size in MB (default: 100)
|
|
130
|
-
# SNOW_FLOW_CACHE_MAX_SIZE=100
|
|
131
|
-
|
|
132
|
-
# Cache TTL in milliseconds (default: 3600000 = 1 hour)
|
|
133
|
-
# SNOW_FLOW_CACHE_TTL=3600000
|
|
134
|
-
|
|
135
|
-
# Default TTL for memory entries in milliseconds (default: 86400000 = 24 hours)
|
|
136
|
-
# SNOW_FLOW_DEFAULT_TTL=86400000
|
|
137
|
-
|
|
138
|
-
# Session memory TTL in milliseconds (default: 86400000 = 24 hours)
|
|
139
|
-
# SNOW_FLOW_SESSION_TTL=86400000
|
|
140
|
-
|
|
141
|
-
# Artifact memory TTL in milliseconds (default: 604800000 = 7 days)
|
|
142
|
-
# SNOW_FLOW_ARTIFACT_TTL=604800000
|
|
143
|
-
|
|
144
|
-
# Metrics memory TTL in milliseconds (default: 2592000000 = 30 days)
|
|
145
|
-
# SNOW_FLOW_METRIC_TTL=2592000000
|
|
146
|
-
|
|
147
|
-
# Memory cleanup interval in milliseconds (default: 86400000 = 24 hours)
|
|
148
|
-
# SNOW_FLOW_CLEANUP_INTERVAL=86400000
|
|
149
|
-
|
|
150
|
-
# Memory retention in days (default: 30)
|
|
151
|
-
# SNOW_FLOW_RETENTION_DAYS=30
|
|
152
|
-
|
|
153
|
-
# ===========================================
|
|
154
|
-
# Monitoring Configuration
|
|
155
|
-
# ===========================================
|
|
156
|
-
|
|
157
|
-
# Enable performance monitoring (default: true)
|
|
158
|
-
# SNOW_FLOW_PERFORMANCE_ENABLED=true
|
|
159
|
-
|
|
160
|
-
# Performance monitoring sample rate 0.0-1.0 (default: 1.0 = 100%)
|
|
161
|
-
# SNOW_FLOW_SAMPLE_RATE=1.0
|
|
162
|
-
|
|
163
|
-
# Metrics retention in milliseconds (default: 604800000 = 7 days)
|
|
164
|
-
# SNOW_FLOW_METRICS_RETENTION=604800000
|
|
165
|
-
|
|
166
|
-
# Metrics aggregation interval in milliseconds (default: 300000 = 5 minutes)
|
|
167
|
-
# SNOW_FLOW_AGGREGATION_INTERVAL=300000
|
|
168
|
-
|
|
169
|
-
# Health check interval in milliseconds (default: 60000 = 1 minute)
|
|
170
|
-
# SNOW_FLOW_HEALTH_CHECK_INTERVAL=60000
|
|
171
|
-
|
|
172
|
-
# Memory usage threshold 0.0-1.0 (default: 0.8 = 80%)
|
|
173
|
-
# SNOW_FLOW_MEMORY_THRESHOLD=0.8
|
|
174
|
-
|
|
175
|
-
# CPU usage threshold 0.0-1.0 (default: 0.8 = 80%)
|
|
176
|
-
# SNOW_FLOW_CPU_THRESHOLD=0.8
|
|
177
|
-
|
|
178
|
-
# Error rate threshold 0.0-1.0 (default: 0.05 = 5%)
|
|
179
|
-
# SNOW_FLOW_ERROR_RATE_THRESHOLD=0.05
|
|
180
|
-
|
|
181
|
-
# Webhook URL for alerts (optional)
|
|
182
|
-
# SNOW_FLOW_WEBHOOK_URL=https://your-webhook-url.com/alerts
|
|
183
|
-
|
|
184
|
-
# Alert severity threshold: info, warn, error (default: warn)
|
|
185
|
-
# SNOW_FLOW_ALERT_SEVERITY=warn
|
|
186
|
-
|
|
187
|
-
# ===========================================
|
|
188
|
-
# Health Check Thresholds
|
|
189
|
-
# ===========================================
|
|
190
|
-
|
|
191
|
-
# Response time threshold in milliseconds (default: 5000 = 5s)
|
|
192
|
-
# SNOW_FLOW_RESPONSE_TIME_THRESHOLD=5000
|
|
193
|
-
|
|
194
|
-
# Health check memory threshold in MB (default: 1000)
|
|
195
|
-
# SNOW_FLOW_HEALTH_MEMORY_THRESHOLD=1000
|
|
196
|
-
|
|
197
|
-
# Queue size threshold (default: 100)
|
|
198
|
-
# SNOW_FLOW_QUEUE_SIZE_THRESHOLD=100
|
|
199
|
-
|
|
200
|
-
# ===========================================
|
|
201
|
-
# Feature Flags
|
|
202
|
-
# ===========================================
|
|
203
|
-
|
|
204
|
-
# Enable automatic permission escalation (default: false)
|
|
205
|
-
# SNOW_FLOW_AUTO_PERMISSIONS=false
|
|
206
|
-
|
|
207
|
-
# Enable smart artifact discovery and reuse (default: true)
|
|
208
|
-
# SNOW_FLOW_SMART_DISCOVERY=true
|
|
209
|
-
|
|
210
|
-
# Enable live testing during development (default: true)
|
|
211
|
-
# SNOW_FLOW_LIVE_TESTING=true
|
|
212
|
-
|
|
213
|
-
# Enable automatic deployment when ready (default: true)
|
|
214
|
-
# SNOW_FLOW_AUTO_DEPLOY=true
|
|
215
|
-
|
|
216
|
-
# Enable automatic rollback on failures (default: true)
|
|
217
|
-
# SNOW_FLOW_AUTO_ROLLBACK=true
|
|
218
|
-
|
|
219
|
-
# Enable shared memory between agents (default: true)
|
|
220
|
-
# SNOW_FLOW_SHARED_MEMORY=true
|
|
221
|
-
|
|
222
|
-
# Enable real-time progress monitoring (default: true)
|
|
223
|
-
# SNOW_FLOW_PROGRESS_MONITORING=true
|
|
224
|
-
|
|
225
|
-
# Enable neural pattern recognition (default: false)
|
|
226
|
-
# SNOW_FLOW_NEURAL_PATTERNS=false
|
|
227
|
-
|
|
228
|
-
# Enable cognitive analysis features (default: false)
|
|
229
|
-
# SNOW_FLOW_COGNITIVE_ANALYSIS=false
|
|
230
|
-
|
|
231
|
-
# ===========================================
|
|
232
|
-
# Legacy Configuration (for backwards compatibility)
|
|
233
|
-
# ===========================================
|
|
234
|
-
|
|
235
|
-
# Legacy debug flag (use SNOW_FLOW_LOG_LEVEL=debug instead)
|
|
236
|
-
# SNOW_FLOW_DEBUG=false
|
|
237
|
-
|
|
238
|
-
# Legacy strategy flag (use swarm command options instead)
|
|
239
|
-
# SNOW_FLOW_STRATEGY=development
|
|
240
|
-
|
|
241
|
-
# Legacy max agents flag (use swarm command options instead)
|
|
242
|
-
# SNOW_FLOW_MAX_AGENTS=5
|
|
243
|
-
|
|
244
|
-
# Legacy timeout flag (use SNOW_FLOW_SESSION_TIMEOUT instead)
|
|
245
|
-
# SNOW_FLOW_TIMEOUT_MINUTES=0
|
|
246
|
-
|
|
247
|
-
# ===========================================
|
|
248
|
-
# How to Set Up ServiceNow OAuth
|
|
249
|
-
# ===========================================
|
|
250
|
-
# 1. Log into your ServiceNow instance as admin
|
|
251
|
-
# 2. Navigate to: System OAuth > Application Registry
|
|
252
|
-
# 3. Click "New" > "Create an OAuth application"
|
|
253
|
-
# 4. Fill in:
|
|
254
|
-
# - Name: Snow-Flow Development
|
|
255
|
-
# - Client ID: (will be generated)
|
|
256
|
-
# - Client Secret: (will be generated)
|
|
257
|
-
# - Redirect URL: http://localhost:3005/callback
|
|
258
|
-
# - Grant Type: Authorization Code
|
|
259
|
-
# - Scopes: useraccount write admin
|
|
260
|
-
# 5. Copy the Client ID and Client Secret to this file
|
|
261
|
-
# 6. Run: snow-flow auth login
|
|
262
|
-
|
|
263
|
-
# ===========================================
|
|
264
|
-
# Environment-Specific Examples
|
|
265
|
-
# ===========================================
|
|
266
|
-
|
|
267
|
-
# Development Environment (high logging, low timeouts)
|
|
268
|
-
# SNOW_FLOW_ENV=development
|
|
269
|
-
# SNOW_FLOW_LOG_LEVEL=debug
|
|
270
|
-
# SNOW_REQUEST_TIMEOUT=30000
|
|
271
|
-
# SNOW_FLOW_PERFORMANCE_ENABLED=true
|
|
272
|
-
|
|
273
|
-
# Production Environment (optimized for performance)
|
|
274
|
-
# SNOW_FLOW_ENV=production
|
|
275
|
-
# SNOW_FLOW_LOG_LEVEL=warn
|
|
276
|
-
# SNOW_REQUEST_TIMEOUT=60000
|
|
277
|
-
# SNOW_FLOW_MAX_CONCURRENT_OPS=20
|
|
278
|
-
# SNOW_FLOW_PERFORMANCE_ENABLED=false
|
|
279
|
-
|
|
280
|
-
# Testing Environment (isolated and controlled)
|
|
281
|
-
# SNOW_FLOW_ENV=staging
|
|
282
|
-
# SNOW_FLOW_LOG_LEVEL=info
|
|
283
|
-
# SNOW_FLOW_AUTO_DEPLOY=false
|
|
284
|
-
# SNOW_FLOW_AUTO_ROLLBACK=true
|