snow-flow 2.0.2 → 2.0.3
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/mcp-config.json → .mcp.json} +13 -12
- package/.releaserc.json +47 -0
- package/README.md +6 -0
- package/package.json +1 -1
- package/.claude/claude-settings.json +0 -15
- package/.claude/commands/analysis/README.md +0 -9
- package/.claude/commands/automation/README.md +0 -9
- package/.claude/commands/github/README.md +0 -11
- package/.claude/commands/helpers/standard-checkpoint-hooks.sh +0 -179
- package/.claude/commands/hooks/README.md +0 -11
- package/.claude/commands/monitoring/README.md +0 -9
- package/.claude/commands/optimization/README.md +0 -9
- package/.claude/commands/training/README.md +0 -9
- package/.claude/commands/workflows/README.md +0 -9
- package/.claude/config.json +0 -36
- package/.claude/helpers/github-setup.sh +0 -28
- package/.claude/helpers/quick-start.sh +0 -19
- package/.claude/helpers/setup-mcp.sh +0 -18
- package/.claude/settings.json +0 -114
- package/.claude/settings.local.json +0 -33
- package/.claude-flow/metrics/agent-metrics.json +0 -1
- package/.claude-flow/metrics/performance.json +0 -9
- package/.claude-flow/metrics/system-metrics.json +0 -15986
- package/.claude-flow/metrics/task-metrics.json +0 -10
- package/.roo/README.md +0 -402
- package/.roo/mcp-list.txt +0 -257
- package/.roo/mcp.json +0 -32
- package/.roo/workflows/basic-tdd.json +0 -32
- package/.roomodes +0 -201
- package/CLAUDE.md +0 -393
- package/bin/snow-flow.js +0 -3
- package/dist/cli.js.bak +0 -2052
- package/dist/config/snow-flow-config.d.ts +0 -1492
- package/dist/config/snow-flow-config.js +0 -938
- package/scripts/create-env.js +0 -91
- package/scripts/postinstall.js +0 -30
- package/scripts/register-mcp-servers.js +0 -210
- package/scripts/reset-mcp-servers.js +0 -246
- package/scripts/setup-mcp.js +0 -106
- package/scripts/update-version.js +0 -31
- package/src/agents/README.md +0 -192
- package/src/agents/base-agent.ts +0 -251
- package/src/agents/coordinator.ts +0 -971
- package/src/agents/index.ts +0 -18
- package/src/agents/queen-403-handler.ts +0 -230
- package/src/agents/queen-agent.ts +0 -1399
- package/src/agents/script-writer-agent.ts +0 -769
- package/src/agents/security-agent.ts +0 -726
- package/src/agents/widget-creator-agent.ts +0 -568
- package/src/api/error-handling.ts +0 -1758
- package/src/api/natural-language-mapper.ts +0 -630
- package/src/api/performance-optimizer.ts +0 -891
- package/src/api/transaction-manager.ts +0 -754
- package/src/cli/deploy-artifact.ts +0 -304
- package/src/cli/snow-flow-cli-integration.ts +0 -434
- package/src/cli.ts +0 -4455
- package/src/cli.ts.bak +0 -5616
- package/src/compliance/advanced-compliance-system.ts +0 -1268
- package/src/compliance/index.ts +0 -19
- package/src/config/snow-flow-config.ts +0 -1019
- package/src/documentation/index.ts +0 -16
- package/src/documentation/self-documenting-system.ts +0 -1421
- package/src/dynamic-version.ts +0 -44
- package/src/healing/index.ts +0 -20
- package/src/healing/self-healing-system.ts +0 -1435
- package/src/health/README.md +0 -161
- package/src/health/system-health.ts +0 -995
- package/src/index.ts +0 -60
- package/src/intelligence/acl-analyzer.ts +0 -377
- package/src/intelligence/auto-resolution-engine.ts +0 -643
- package/src/intelligence/gap-analysis-engine.ts +0 -488
- package/src/intelligence/manual-instructions-generator.ts +0 -744
- package/src/intelligence/mcp-coverage-analyzer.ts +0 -708
- package/src/intelligence/multi-pass-requirements-analyzer.ts +0 -603
- package/src/intelligence/performance-recommendations-engine.ts +0 -1223
- package/src/intelligence/requirements-analyzer.ts +0 -1148
- package/src/intelligence/task-analyzer.ts +0 -628
- package/src/managers/scope-manager.ts +0 -555
- package/src/mcp/advanced/servicenow-advanced-features-mcp.ts +0 -16110
- package/src/mcp/base-mcp-server.ts +0 -660
- package/src/mcp/http-transport-wrapper.ts +0 -426
- package/src/mcp/service-discovery-client.ts +0 -312
- package/src/mcp/servicenow-automation-mcp-refactored.ts +0 -678
- package/src/mcp/servicenow-automation-mcp.ts +0 -838
- package/src/mcp/servicenow-deployment-mcp-refactored.ts +0 -1292
- package/src/mcp/servicenow-deployment-mcp.ts +0 -7244
- package/src/mcp/servicenow-graph-memory-mcp-refactored.ts +0 -721
- package/src/mcp/servicenow-graph-memory-mcp.ts +0 -832
- package/src/mcp/servicenow-integration-mcp-refactored.ts +0 -655
- package/src/mcp/servicenow-integration-mcp.ts +0 -819
- package/src/mcp/servicenow-intelligent-mcp-refactored.ts +0 -977
- package/src/mcp/servicenow-intelligent-mcp.ts +0 -4638
- package/src/mcp/servicenow-mcp-server.ts +0 -728
- package/src/mcp/servicenow-memory-mcp.ts +0 -474
- package/src/mcp/servicenow-operations-mcp-refactored.ts +0 -1995
- package/src/mcp/servicenow-operations-mcp.ts +0 -3384
- package/src/mcp/servicenow-platform-development-mcp-refactored.ts +0 -611
- package/src/mcp/servicenow-platform-development-mcp.ts +0 -970
- package/src/mcp/servicenow-progressive-indexer.ts +0 -370
- package/src/mcp/servicenow-reporting-analytics-mcp-refactored.ts +0 -695
- package/src/mcp/servicenow-reporting-analytics-mcp.ts +0 -1123
- package/src/mcp/servicenow-security-compliance-mcp-refactored.ts +0 -642
- package/src/mcp/servicenow-security-compliance-mcp.ts +0 -1157
- package/src/mcp/servicenow-update-set-mcp-refactored.ts +0 -751
- package/src/mcp/servicenow-update-set-mcp.ts +0 -811
- package/src/mcp/shared/agent-context-provider.ts +0 -365
- package/src/mcp/shared/base-mcp-server.ts +0 -2463
- package/src/mcp/shared/mcp-memory-manager.ts +0 -540
- package/src/mcp/shared/mcp-resource-manager.ts +0 -367
- package/src/mcp/snow-flow-mcp.ts +0 -911
- package/src/mcp/start-all-mcp-servers.ts +0 -102
- package/src/mcp/start-servicenow-mcp.ts +0 -67
- package/src/monitoring/enhanced-monitoring-system.ts +0 -1345
- package/src/monitoring/performance-tracker.ts +0 -777
- package/src/optimization/cost-optimization-engine.ts +0 -1125
- package/src/optimization/index.ts +0 -10
- package/src/queen/README.md +0 -403
- package/src/queen/agent-factory.ts +0 -574
- package/src/queen/index.ts +0 -94
- package/src/queen/mcp-execution-bridge.ts +0 -681
- package/src/queen/neural-learning.ts +0 -319
- package/src/queen/parallel-agent-engine.ts +0 -848
- package/src/queen/queen-memory-system.ts +0 -490
- package/src/queen/queen-memory.ts +0 -456
- package/src/queen/servicenow-queen.ts +0 -1029
- package/src/queen/types.ts +0 -87
- package/src/rollback/smart-rollback-system.ts +0 -866
- package/src/schemas/deployment.schema.json +0 -58
- package/src/schemas/flow.schema.json +0 -79
- package/src/schemas/widget.schema.json +0 -72
- package/src/snow-flow-system.ts +0 -541
- package/src/sparc/sparc-help.ts +0 -49
- package/src/sparc/team-sparc.ts +0 -88
- package/src/strategies/global-scope-strategy.ts +0 -736
- package/src/templates/base/application.template.json +0 -45
- package/src/templates/base/business_rule.template.json +0 -33
- package/src/templates/base/script_include.template.json +0 -18
- package/src/templates/base/table.template.json +0 -64
- package/src/templates/base/widget.template.json +0 -25
- package/src/templates/patterns/composite.incident-management.template.json +0 -140
- package/src/templates/patterns/widget.dashboard.template.json +0 -238
- package/src/templates/patterns/widget.datatable.template.json +0 -292
- package/src/testing/integration-test-suite.ts +0 -1276
- package/src/types/index.ts +0 -183
- package/src/types/neo4j-driver.d.ts +0 -23
- package/src/types/servicenow.types.ts +0 -307
- package/src/types/snow-flow.types.ts +0 -186
- package/src/types/todo.types.ts +0 -70
- package/src/utils/action-type-cache.ts +0 -286
- package/src/utils/agent-detector.ts +0 -573
- package/src/utils/artifact-tracker.ts +0 -379
- package/src/utils/dependency-detector.ts +0 -233
- package/src/utils/deployment-metadata-handler.ts +0 -518
- package/src/utils/error-recovery.ts +0 -680
- package/src/utils/logger.ts +0 -60
- package/src/utils/mcp-auth-middleware.ts +0 -262
- package/src/utils/mcp-config-manager.ts +0 -270
- package/src/utils/mcp-server-manager.ts +0 -446
- package/src/utils/mcp-tool-registry.ts +0 -298
- package/src/utils/migrate-snow-flow.ts +0 -98
- package/src/utils/oauth-html-templates.ts +0 -188
- package/src/utils/scope-utils.ts +0 -443
- package/src/utils/servicenow-client.ts +0 -3321
- package/src/utils/servicenow-id-generator.ts +0 -181
- package/src/utils/snow-memory-manager.ts +0 -605
- package/src/utils/snow-oauth.ts +0 -797
- package/src/utils/template-engine.ts +0 -463
- package/src/utils/theme-manager.ts +0 -295
- package/src/utils/unified-auth-store.ts +0 -222
- package/src/utils/update-set-importer.ts +0 -422
- package/src/utils/update-set-xml-packager.ts +0 -371
- package/src/utils/widget-template-generator.ts +0 -1744
- package/src/version.ts +0 -1950
package/CLAUDE.md
DELETED
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
# Claude Code Configuration - Snow-Flow Development Environment
|
|
2
|
-
|
|
3
|
-
## 🚨 CRITICAL: CONCURRENT EXECUTION FOR ALL ACTIONS
|
|
4
|
-
|
|
5
|
-
**ABSOLUTE RULE**: ALL operations MUST be concurrent/parallel in a single message:
|
|
6
|
-
|
|
7
|
-
### 🔴 MANDATORY CONCURRENT PATTERNS:
|
|
8
|
-
|
|
9
|
-
1. **TodoWrite**: ALWAYS batch ALL todos in ONE call (5-10+ todos minimum)
|
|
10
|
-
2. **Task tool**: ALWAYS spawn ALL agents in ONE message with full instructions
|
|
11
|
-
3. **File operations**: ALWAYS batch ALL reads/writes/edits in ONE message
|
|
12
|
-
4. **Bash commands**: ALWAYS batch ALL terminal operations in ONE message
|
|
13
|
-
5. **Memory operations**: ALWAYS batch ALL memory store/retrieve in ONE message
|
|
14
|
-
|
|
15
|
-
### ⚡ GOLDEN RULE: "1 MESSAGE = ALL RELATED OPERATIONS"
|
|
16
|
-
|
|
17
|
-
**✅ CORRECT: Everything in ONE message**
|
|
18
|
-
```javascript
|
|
19
|
-
[Single Message]:
|
|
20
|
-
- TodoWrite { todos: [10+ todos with all statuses/priorities] }
|
|
21
|
-
- Task("Agent 1 with full instructions and hooks")
|
|
22
|
-
- Task("Agent 2 with full instructions and hooks")
|
|
23
|
-
- Multiple Read/Write operations
|
|
24
|
-
- Multiple Bash commands
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
**❌ WRONG: Multiple messages (NEVER DO THIS)**
|
|
28
|
-
```javascript
|
|
29
|
-
Message 1: TodoWrite { todos: [single todo] }
|
|
30
|
-
Message 2: Task("Agent 1")
|
|
31
|
-
Message 3: Read("file1.js")
|
|
32
|
-
// This is 3x slower and breaks coordination!
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Build Commands
|
|
36
|
-
- `npm run build`: Build the project
|
|
37
|
-
- `npm run test`: Run the full test suite
|
|
38
|
-
- `npm run lint`: Run ESLint and format checks
|
|
39
|
-
- `npm run typecheck`: Run TypeScript type checking
|
|
40
|
-
- `./snow-flow --help`: Show all available commands
|
|
41
|
-
|
|
42
|
-
## Snow-Flow Complete Command Reference
|
|
43
|
-
|
|
44
|
-
### Core System Commands
|
|
45
|
-
- `./snow-flow start [--ui] [--port 3000]`: Start orchestration system
|
|
46
|
-
- `./snow-flow status`: Show comprehensive system status
|
|
47
|
-
- `./snow-flow config <subcommand>`: Configuration management
|
|
48
|
-
|
|
49
|
-
### Agent Management
|
|
50
|
-
- `./snow-flow agent spawn <type>`: Create AI agents
|
|
51
|
-
- `./snow-flow agent list`: List all active agents
|
|
52
|
-
|
|
53
|
-
### Task Orchestration
|
|
54
|
-
- `./snow-flow task create <type>`: Create and manage tasks
|
|
55
|
-
- `./snow-flow workflow <file>`: Execute workflow automation
|
|
56
|
-
|
|
57
|
-
### Memory Management
|
|
58
|
-
- `./snow-flow memory store <key> <data>`: Store persistent data
|
|
59
|
-
- `./snow-flow memory get <key>`: Retrieve stored information
|
|
60
|
-
- `./snow-flow memory list`: List all memory keys
|
|
61
|
-
|
|
62
|
-
### SPARC Development Modes
|
|
63
|
-
- `./snow-flow sparc "<task>"`: Run orchestrator mode (default)
|
|
64
|
-
- `./snow-flow sparc run <mode> "<task>"`: Run specific SPARC mode
|
|
65
|
-
- `./snow-flow sparc tdd "<feature>"`: Test-driven development mode
|
|
66
|
-
|
|
67
|
-
### Swarm Coordination - 🚀 Enhanced with Complete Solution
|
|
68
|
-
- `./snow-flow swarm "<objective>" [options]`: Multi-agent swarm coordination - één command voor alles!
|
|
69
|
-
- `--strategy`: research, development, analysis, testing, optimization, maintenance
|
|
70
|
-
- `--mode`: centralized, distributed, hierarchical, mesh, hybrid
|
|
71
|
-
- `--max-agents <n>`: Maximum number of agents (default: 5)
|
|
72
|
-
- `--parallel`: Enable parallel execution
|
|
73
|
-
- `--monitor`: Real-time monitoring
|
|
74
|
-
|
|
75
|
-
**🧠 Intelligent Features (enabled by default):**
|
|
76
|
-
- `--smart-discovery`: Smart artifact discovery and reuse (default: **true**)
|
|
77
|
-
- `--live-testing`: Enable live testing during development (default: **true**)
|
|
78
|
-
- `--auto-deploy`: Automatic deployment when ready (default: **true**)
|
|
79
|
-
- `--shared-memory`: Enable shared memory between agents (default: **true**)
|
|
80
|
-
|
|
81
|
-
## Quick Start Workflows
|
|
82
|
-
|
|
83
|
-
### 🚀 Intelligent Development Workflow
|
|
84
|
-
```bash
|
|
85
|
-
# Simple usage - all intelligent features enabled by default!
|
|
86
|
-
./snow-flow swarm "Create incident management dashboard with real-time updates"
|
|
87
|
-
# This automatically:
|
|
88
|
-
# ✅ Discovers existing artifacts to reuse
|
|
89
|
-
# ✅ Tests in real-time on your ServiceNow instance
|
|
90
|
-
# ✅ Deploys automatically when ready
|
|
91
|
-
# ✅ Shares context between all agents
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
### Research Workflow
|
|
95
|
-
```bash
|
|
96
|
-
./snow-flow swarm "Research modern web frameworks" --strategy research --mode distributed --parallel
|
|
97
|
-
./snow-flow sparc run researcher "Analyze React vs Vue performance"
|
|
98
|
-
./snow-flow memory store "research_findings" "Key insights"
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Development Workflow
|
|
102
|
-
```bash
|
|
103
|
-
./snow-flow start --ui --port 3000
|
|
104
|
-
./snow-flow sparc tdd "User authentication system with JWT tokens"
|
|
105
|
-
./snow-flow swarm "Build e-commerce API" --strategy development --max-agents 8
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## Integration Patterns
|
|
109
|
-
|
|
110
|
-
### Memory-Driven Coordination
|
|
111
|
-
```bash
|
|
112
|
-
# Store architecture decisions
|
|
113
|
-
./snow-flow memory store "system_architecture" "Microservices with API Gateway"
|
|
114
|
-
|
|
115
|
-
# All subsequent operations reference this decision
|
|
116
|
-
./snow-flow sparc run coder "Implement user service based on system_architecture"
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### Multi-Stage Development
|
|
120
|
-
```bash
|
|
121
|
-
# Stage 1: Research and planning
|
|
122
|
-
./snow-flow sparc run researcher "Research authentication best practices"
|
|
123
|
-
./snow-flow sparc run architect "Design authentication system"
|
|
124
|
-
|
|
125
|
-
# Stage 2: Implementation
|
|
126
|
-
./snow-flow sparc tdd "User registration and login functionality"
|
|
127
|
-
|
|
128
|
-
# Stage 3: Testing and deployment
|
|
129
|
-
./snow-flow sparc run tester "Comprehensive security testing"
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
## Advanced Batch Tool Patterns
|
|
133
|
-
|
|
134
|
-
### TodoWrite Coordination
|
|
135
|
-
Always use TodoWrite for complex task coordination:
|
|
136
|
-
|
|
137
|
-
```javascript
|
|
138
|
-
TodoWrite([
|
|
139
|
-
{
|
|
140
|
-
id: "architecture_design",
|
|
141
|
-
content: "Design system architecture and component interfaces",
|
|
142
|
-
status: "pending",
|
|
143
|
-
priority: "high",
|
|
144
|
-
dependencies: [],
|
|
145
|
-
estimatedTime: "60min",
|
|
146
|
-
assignedAgent: "architect"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
id: "frontend_development",
|
|
150
|
-
content: "Develop React components and user interface",
|
|
151
|
-
status: "pending",
|
|
152
|
-
priority: "medium",
|
|
153
|
-
dependencies: ["architecture_design"],
|
|
154
|
-
estimatedTime: "120min",
|
|
155
|
-
assignedAgent: "frontend_team"
|
|
156
|
-
}
|
|
157
|
-
]);
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
## Code Style Preferences
|
|
161
|
-
- Use ES modules (import/export) syntax
|
|
162
|
-
- Destructure imports when possible
|
|
163
|
-
- Use TypeScript for all new code
|
|
164
|
-
- Follow existing naming conventions
|
|
165
|
-
- Add JSDoc comments for public APIs
|
|
166
|
-
- Use async/await instead of Promise chains
|
|
167
|
-
- Prefer const/let over var
|
|
168
|
-
|
|
169
|
-
## Workflow Guidelines
|
|
170
|
-
- Always run typecheck after making code changes
|
|
171
|
-
- Run tests before committing changes
|
|
172
|
-
- Use meaningful commit messages
|
|
173
|
-
- Create feature branches for new functionality
|
|
174
|
-
- Ensure all tests pass before merging
|
|
175
|
-
|
|
176
|
-
## 📊 MANDATORY AGENT COORDINATION PROTOCOL
|
|
177
|
-
|
|
178
|
-
### 🔴 CRITICAL: Every Agent MUST Follow This Protocol
|
|
179
|
-
|
|
180
|
-
When you spawn an agent using the Task tool, that agent MUST:
|
|
181
|
-
|
|
182
|
-
**1️⃣ BEFORE Starting Work:**
|
|
183
|
-
```bash
|
|
184
|
-
npx snow-flow hooks pre-task --description "[agent task]" --auto-spawn-agents false
|
|
185
|
-
npx snow-flow hooks session-restore --session-id "swarm-[id]" --load-memory true
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
**2️⃣ DURING Work (After EVERY Major Step):**
|
|
189
|
-
```bash
|
|
190
|
-
npx snow-flow hooks post-edit --file "[filepath]" --memory-key "swarm/[agent]/[step]"
|
|
191
|
-
npx snow-flow hooks notify --message "[what was done]" --telemetry true
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
**3️⃣ AFTER Completing Work:**
|
|
195
|
-
```bash
|
|
196
|
-
npx snow-flow hooks post-task --task-id "[task]" --analyze-performance true
|
|
197
|
-
npx snow-flow hooks session-end --export-metrics true --generate-summary true
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
### 🎯 AGENT PROMPT TEMPLATE
|
|
201
|
-
|
|
202
|
-
When spawning agents, ALWAYS include these coordination instructions:
|
|
203
|
-
|
|
204
|
-
```
|
|
205
|
-
You are the [Agent Type] agent in a coordinated swarm.
|
|
206
|
-
|
|
207
|
-
MANDATORY COORDINATION:
|
|
208
|
-
1. START: Run `npx snow-flow hooks pre-task --description "[your task]"`
|
|
209
|
-
2. DURING: After EVERY file operation, run `npx snow-flow hooks post-edit --file "[file]"`
|
|
210
|
-
3. MEMORY: Store ALL decisions using `npx snow-flow hooks notify --message "[decision]"`
|
|
211
|
-
4. END: Run `npx snow-flow hooks post-task --task-id "[task]"`
|
|
212
|
-
|
|
213
|
-
Your specific task: [detailed task description]
|
|
214
|
-
|
|
215
|
-
REMEMBER: Coordinate with other agents by checking memory BEFORE making decisions!
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
## ⚡ PARALLEL EXECUTION IS MANDATORY
|
|
219
|
-
|
|
220
|
-
**✅ CORRECT (Parallel - ALWAYS DO THIS):**
|
|
221
|
-
```
|
|
222
|
-
Message 1: [BatchTool]
|
|
223
|
-
// MCP coordination setup
|
|
224
|
-
- mcp__snow-flow__swarm_init
|
|
225
|
-
- mcp__snow-flow__agent_spawn (researcher)
|
|
226
|
-
- mcp__snow-flow__agent_spawn (coder)
|
|
227
|
-
- mcp__snow-flow__agent_spawn (analyst)
|
|
228
|
-
|
|
229
|
-
// Task agents with full coordination instructions
|
|
230
|
-
- Task("You are researcher agent. MANDATORY: Run hooks. Task: Research API patterns")
|
|
231
|
-
- Task("You are coder agent. MANDATORY: Run hooks. Task: Implement REST endpoints")
|
|
232
|
-
|
|
233
|
-
// TodoWrite with ALL todos batched
|
|
234
|
-
- TodoWrite { todos: [
|
|
235
|
-
{id: "research", content: "Research API patterns", status: "in_progress", priority: "high"},
|
|
236
|
-
{id: "design", content: "Design database schema", status: "pending", priority: "high"},
|
|
237
|
-
{id: "implement", content: "Build REST endpoints", status: "pending", priority: "high"},
|
|
238
|
-
{id: "test", content: "Write unit tests", status: "pending", priority: "medium"}
|
|
239
|
-
]}
|
|
240
|
-
|
|
241
|
-
// File operations in parallel
|
|
242
|
-
- Write "api/package.json"
|
|
243
|
-
- Write "api/server.js"
|
|
244
|
-
- Bash "mkdir -p api/{routes,models,tests}"
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
## 🔄 MEMORY COORDINATION PATTERN
|
|
248
|
-
|
|
249
|
-
Every agent coordination step MUST use memory:
|
|
250
|
-
|
|
251
|
-
```javascript
|
|
252
|
-
// After each major decision or implementation
|
|
253
|
-
mcp__snow-flow__memory_usage({
|
|
254
|
-
action: "store",
|
|
255
|
-
key: "swarm-{id}/agent-{name}/{step}",
|
|
256
|
-
value: {
|
|
257
|
-
timestamp: Date.now(),
|
|
258
|
-
decision: "what was decided",
|
|
259
|
-
implementation: "what was built",
|
|
260
|
-
nextSteps: ["step1", "step2"],
|
|
261
|
-
dependencies: ["dep1", "dep2"]
|
|
262
|
-
}
|
|
263
|
-
})
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
## Snow-Flow MCP Tools (100+ Total)
|
|
267
|
-
|
|
268
|
-
Snow-Flow provides comprehensive ServiceNow intelligence through 16 specialized MCP servers:
|
|
269
|
-
|
|
270
|
-
### 🐝 **Snow-Flow AI Swarm Orchestration** (10+ tools) - NATIVE IMPLEMENTATION!
|
|
271
|
-
**IMPORTANT: Use Snow-Flow's built-in swarm orchestration - no external tools needed!**
|
|
272
|
-
- `swarm_init` - Initialize AI swarm coordination topology
|
|
273
|
-
- `agent_spawn` - Create specialized AI agents for different tasks
|
|
274
|
-
- `task_orchestrate` - Orchestrate complex task workflows in parallel
|
|
275
|
-
- `swarm_status` - Monitor swarm health and performance
|
|
276
|
-
- `memory_usage` - Persistent memory across sessions with namespacing
|
|
277
|
-
- `neural_status` - Neural network pattern effectiveness
|
|
278
|
-
- `neural_train` - Train neural patterns with WASM SIMD acceleration
|
|
279
|
-
- `neural_patterns` - Analyze cognitive patterns for better coordination
|
|
280
|
-
- `memory_search` - Search memory with pattern matching
|
|
281
|
-
- `performance_report` - Generate performance reports with metrics
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
### 🔄 **Process Mining & Workflow Analysis** (4 tools)
|
|
285
|
-
- `snow_discover_process` - Real process mining from ServiceNow audit logs
|
|
286
|
-
- `snow_analyze_workflow_execution` - Analyze how workflows REALLY work vs design
|
|
287
|
-
- `snow_discover_cross_table_process` - Discover end-to-end processes across tables
|
|
288
|
-
- `snow_monitor_process` - Real-time process monitoring with anomaly detection
|
|
289
|
-
|
|
290
|
-
### ⚡ **Advanced Analytics & Performance** (6 tools)
|
|
291
|
-
- `snow_batch_api` - 80% API call reduction through intelligent batching
|
|
292
|
-
- `snow_get_table_relationships` - Deep table relationship mapping with visualizations
|
|
293
|
-
- `snow_analyze_query` - Query performance analysis with optimization suggestions
|
|
294
|
-
- `snow_predict_change_impact` - AI-powered change impact prediction (90% accuracy)
|
|
295
|
-
- `snow_detect_code_patterns` - Security & performance anti-pattern detection
|
|
296
|
-
- `snow_generate_documentation` - Auto-generate documentation from code analysis
|
|
297
|
-
|
|
298
|
-
### 📊 **ServiceNow Operations** (15+ tools)
|
|
299
|
-
- Complete ITIL lifecycle management (Incident, Request, Problem, Change)
|
|
300
|
-
- CMDB and User management with intelligent analysis
|
|
301
|
-
- AI-powered incident analysis and auto-resolution capabilities
|
|
302
|
-
- Pattern recognition and predictive analytics
|
|
303
|
-
- Knowledge base integration with smart suggestions
|
|
304
|
-
|
|
305
|
-
### 🔧 **Platform Development** (8+ tools)
|
|
306
|
-
- UI component creation (Pages, scripts, policies, actions)
|
|
307
|
-
- Business rule management with dynamic rule creation
|
|
308
|
-
- Client script development and form automation
|
|
309
|
-
- Complete table schema discovery and analysis
|
|
310
|
-
- Field management with dynamic discovery
|
|
311
|
-
- Script include development for reusable code libraries
|
|
312
|
-
|
|
313
|
-
### 🔗 **Integration** (10+ tools)
|
|
314
|
-
- REST/SOAP endpoint discovery for external system integration
|
|
315
|
-
- Transform map creation and data transformation
|
|
316
|
-
- Import set management and data import automation
|
|
317
|
-
- Web service integration with WSDL-based connections
|
|
318
|
-
- Email configuration and communication integration
|
|
319
|
-
- Comprehensive data source discovery and analysis
|
|
320
|
-
|
|
321
|
-
### 📈 **Reporting & Analytics** (12+ tools)
|
|
322
|
-
- Dynamic report creation with no hardcoded configurations
|
|
323
|
-
- Interactive ServiceNow dashboard generation
|
|
324
|
-
- KPI management and business metrics tracking
|
|
325
|
-
- Advanced data visualization (charts, graphs, visual analytics)
|
|
326
|
-
- System performance monitoring and analytics
|
|
327
|
-
- Automated report delivery and scheduling
|
|
328
|
-
|
|
329
|
-
### ⚙️ **Automation** (11+ tools)
|
|
330
|
-
- Scheduled job management with dynamic schedule discovery
|
|
331
|
-
- Event rule creation and automated event handling
|
|
332
|
-
- Smart notification management and delivery
|
|
333
|
-
- SLA definition and service level automation
|
|
334
|
-
- Escalation rules and automated escalation processes
|
|
335
|
-
- Comprehensive workflow activities and process automation
|
|
336
|
-
|
|
337
|
-
### 🛡️ **Security & Compliance** (12+ tools)
|
|
338
|
-
- Security policy management with dynamic configurations
|
|
339
|
-
- Compliance rule enforcement (SOX, GDPR, HIPAA)
|
|
340
|
-
- Audit trail analysis and security incident detection
|
|
341
|
-
- Access control management and role/permission analysis
|
|
342
|
-
- Proactive vulnerability scanning and assessment
|
|
343
|
-
- Comprehensive security risk assessment and analysis
|
|
344
|
-
|
|
345
|
-
### 🔄 **XML Flow Generation** (5+ tools)
|
|
346
|
-
- XML-first flow creation to bypass API limitations
|
|
347
|
-
- Direct XML deployment with alternative deployment methods
|
|
348
|
-
- Flow template generation for standardized workflows
|
|
349
|
-
- Natural language mapping with AI-powered flow design
|
|
350
|
-
|
|
351
|
-
## Available Agents (25+ Total)
|
|
352
|
-
|
|
353
|
-
### Core Development Agents
|
|
354
|
-
- `coder` - Implementation specialist
|
|
355
|
-
- `reviewer` - Code quality assurance
|
|
356
|
-
- `tester` - Test creation and validation
|
|
357
|
-
- `planner` - Strategic planning
|
|
358
|
-
- `researcher` - Information gathering
|
|
359
|
-
|
|
360
|
-
### Swarm Coordination Agents
|
|
361
|
-
- `hierarchical-coordinator` - Queen-led coordination
|
|
362
|
-
- `mesh-coordinator` - Peer-to-peer networks
|
|
363
|
-
- `adaptive-coordinator` - Dynamic topology
|
|
364
|
-
- `collective-intelligence-coordinator` - Hive-mind intelligence
|
|
365
|
-
|
|
366
|
-
### Specialized Development
|
|
367
|
-
- `backend-dev` - API development
|
|
368
|
-
- `mobile-dev` - React Native development
|
|
369
|
-
- `ml-developer` - Machine learning
|
|
370
|
-
- `system-architect` - High-level design
|
|
371
|
-
- `security-agent` - Security analysis
|
|
372
|
-
|
|
373
|
-
### GitHub & Repository Management
|
|
374
|
-
- `github-modes` - Comprehensive GitHub integration
|
|
375
|
-
- `pr-manager` - Pull request management
|
|
376
|
-
- `code-review-swarm` - Multi-agent code review
|
|
377
|
-
|
|
378
|
-
### SPARC Methodology Agents
|
|
379
|
-
- `sparc-coord` - SPARC orchestration
|
|
380
|
-
- `sparc-coder` - TDD implementation
|
|
381
|
-
- `specification` - Requirements analysis
|
|
382
|
-
- `architecture` - System design
|
|
383
|
-
|
|
384
|
-
## Important Notes
|
|
385
|
-
- **Use TodoWrite extensively** for all complex task coordination
|
|
386
|
-
- **Leverage Task tool** for parallel agent execution on independent work
|
|
387
|
-
- **Store all important information in Memory** for cross-agent coordination
|
|
388
|
-
- **Use batch file operations** whenever reading/writing multiple files
|
|
389
|
-
- **All swarm operations include automatic batch tool coordination**
|
|
390
|
-
- **Monitor progress** with TodoRead during long-running operations
|
|
391
|
-
- **Enable parallel execution** with --parallel flags for maximum efficiency
|
|
392
|
-
|
|
393
|
-
This configuration ensures optimal use of Claude Code's batch tools for swarm orchestration and parallel task execution with full Snow-Flow capabilities.
|
package/bin/snow-flow.js
DELETED