snow-flow 1.3.25 → 1.3.28

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.
Files changed (36) hide show
  1. package/.claude/config.json +33 -9
  2. package/.claude-flow/queen/queen-memory.db +0 -0
  3. package/.roo/README.md +56 -0
  4. package/.roo/workflows/basic-tdd.json +32 -0
  5. package/.roomodes +122 -0
  6. package/CLAUDE.md +140 -752
  7. package/claude-flow +30 -75
  8. package/dist/cli.js +250 -7
  9. package/dist/compliance/advanced-compliance-system.js +857 -0
  10. package/dist/compliance/index.js +8 -0
  11. package/dist/documentation/index.js +8 -0
  12. package/dist/documentation/self-documenting-system.js +1006 -0
  13. package/dist/healing/index.js +8 -0
  14. package/dist/healing/self-healing-system.js +1041 -0
  15. package/dist/intelligence/performance-recommendations-engine.js +479 -4
  16. package/dist/managers/scope-manager.js +5 -2
  17. package/dist/mcp/servicenow-deployment-mcp.js +113 -15
  18. package/dist/mcp/servicenow-flow-composer-mcp.js +4 -2
  19. package/dist/mcp/servicenow-intelligent-mcp.js +351 -0
  20. package/dist/mcp/servicenow-operations-mcp.js +2 -2
  21. package/dist/memory/memory-system.js +146 -0
  22. package/dist/monitoring/enhanced-monitoring-system.js +1085 -0
  23. package/dist/optimization/cost-optimization-engine.js +771 -0
  24. package/dist/optimization/flow-performance-optimizer.js +723 -0
  25. package/dist/optimization/index.js +10 -0
  26. package/dist/orchestration/flow-update-orchestrator.js +648 -0
  27. package/dist/rollback/smart-rollback-system.js +462 -0
  28. package/dist/templates/flow-template-system.js +625 -0
  29. package/dist/testing/flow-testing-automation.js +641 -0
  30. package/dist/testing/integration-test-suite.js +890 -0
  31. package/dist/utils/flow-structure-builder.js +1 -1
  32. package/dist/utils/servicenow-client.js +50 -2
  33. package/dist/utils/snow-oauth.js +66 -8
  34. package/dist/utils/xml-first-flow-generator.js +6 -0
  35. package/dist/version.js +13 -1
  36. package/package.json +1 -1
@@ -1,12 +1,36 @@
1
1
  {
2
- "version": "1.1.63",
3
- "name": "snow-flow",
4
- "description": "ServiceNow Multi-Agent Development Framework",
5
- "created": "2025-07-21T08:23:52.638Z",
6
- "features": {
7
- "swarmCoordination": true,
8
- "persistentMemory": true,
9
- "serviceNowIntegration": true,
10
- "sparcModes": true
2
+ "version": "1.0",
3
+ "sparc": {
4
+ "enabled": true,
5
+ "modes": [
6
+ "orchestrator",
7
+ "coder",
8
+ "researcher",
9
+ "tdd",
10
+ "architect",
11
+ "reviewer",
12
+ "debugger",
13
+ "tester",
14
+ "analyzer",
15
+ "optimizer",
16
+ "documenter",
17
+ "designer",
18
+ "innovator",
19
+ "swarm-coordinator",
20
+ "memory-manager",
21
+ "batch-executor",
22
+ "workflow-manager"
23
+ ]
24
+ },
25
+ "swarm": {
26
+ "enabled": true,
27
+ "strategies": [
28
+ "research",
29
+ "development",
30
+ "analysis",
31
+ "testing",
32
+ "optimization",
33
+ "maintenance"
34
+ ]
11
35
  }
12
36
  }
Binary file
package/.roo/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # .roo Directory - SPARC Development Environment
2
+
3
+ This directory contains the SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) development environment configuration and templates.
4
+
5
+ ## Directory Structure
6
+
7
+ ```
8
+ .roo/
9
+ ├── README.md # This file
10
+ ├── templates/ # Template files for common patterns
11
+ ├── workflows/ # Predefined SPARC workflows
12
+ │ └── basic-tdd.json # Basic TDD workflow
13
+ ├── modes/ # Custom mode definitions (optional)
14
+ └── configs/ # Configuration files
15
+ ```
16
+
17
+ ## SPARC Methodology
18
+
19
+ SPARC is a systematic approach to software development:
20
+
21
+ 1. **Specification**: Define clear requirements and constraints
22
+ 2. **Pseudocode**: Create detailed logic flows and algorithms
23
+ 3. **Architecture**: Design system structure and components
24
+ 4. **Refinement**: Implement, test, and optimize using TDD
25
+ 5. **Completion**: Integrate, document, and validate
26
+
27
+ ## Usage with Claude-Flow
28
+
29
+ Use the claude-flow SPARC commands to leverage this environment:
30
+
31
+ ```bash
32
+ # List available modes
33
+ claude-flow sparc modes
34
+
35
+ # Run specific mode
36
+ claude-flow sparc run code "implement user authentication"
37
+
38
+ # Execute full TDD workflow
39
+ claude-flow sparc tdd "payment processing system"
40
+
41
+ # Use custom workflow
42
+ claude-flow sparc workflow .roo/workflows/basic-tdd.json
43
+ ```
44
+
45
+ ## Configuration
46
+
47
+ The main configuration is in `.roomodes` at the project root. This directory provides additional templates and workflows to support the SPARC development process.
48
+
49
+ ## Customization
50
+
51
+ You can customize this environment by:
52
+ - Adding new workflow templates to `workflows/`
53
+ - Creating mode-specific templates in `templates/`
54
+ - Adding project-specific configurations in `configs/`
55
+
56
+ For more information, see: https://github.com/ruvnet/claude-code-flow/docs/sparc.md
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "Basic TDD Workflow",
3
+ "description": "A simple SPARC-based TDD workflow for development",
4
+ "sequential": true,
5
+ "steps": [
6
+ {
7
+ "mode": "spec-pseudocode",
8
+ "description": "Create detailed specifications and pseudocode",
9
+ "phase": "specification"
10
+ },
11
+ {
12
+ "mode": "tdd",
13
+ "description": "Write failing tests (Red phase)",
14
+ "phase": "red"
15
+ },
16
+ {
17
+ "mode": "code",
18
+ "description": "Implement minimal code to pass tests (Green phase)",
19
+ "phase": "green"
20
+ },
21
+ {
22
+ "mode": "tdd",
23
+ "description": "Refactor and optimize (Refactor phase)",
24
+ "phase": "refactor"
25
+ },
26
+ {
27
+ "mode": "integration",
28
+ "description": "Integrate and verify complete solution",
29
+ "phase": "integration"
30
+ }
31
+ ]
32
+ }
package/.roomodes ADDED
@@ -0,0 +1,122 @@
1
+ {
2
+ "customModes": [
3
+ {
4
+ "slug": "architect",
5
+ "name": "🏗️ Architect",
6
+ "roleDefinition": "You design scalable, secure, and modular architectures based on functional specs and user needs. You define responsibilities across services, APIs, and components.",
7
+ "customInstructions": "Create architecture mermaid diagrams, data flows, and integration points. Ensure no part of the design includes secrets or hardcoded env values. Emphasize modular boundaries and maintain extensibility.",
8
+ "groups": [
9
+ "read",
10
+ "edit"
11
+ ],
12
+ "source": "project"
13
+ },
14
+ {
15
+ "slug": "code",
16
+ "name": "🧠 Auto-Coder",
17
+ "roleDefinition": "You write clean, efficient, modular code based on pseudocode and architecture. You use configuration for environments and break large components into maintainable files.",
18
+ "customInstructions": "Write modular code using clean architecture principles. Never hardcode secrets or environment values. Split code into files < 500 lines. Use config files or environment abstractions. Use `new_task` for subtasks and finish with `attempt_completion`.",
19
+ "groups": [
20
+ "read",
21
+ "edit",
22
+ "browser",
23
+ "mcp",
24
+ "command"
25
+ ],
26
+ "source": "project"
27
+ },
28
+ {
29
+ "slug": "tdd",
30
+ "name": "🧪 Tester (TDD)",
31
+ "roleDefinition": "You implement Test-Driven Development (TDD, London School), writing tests first and refactoring after minimal implementation passes.",
32
+ "customInstructions": "Write failing tests first. Implement only enough code to pass. Refactor after green. Ensure tests do not hardcode secrets. Keep files < 500 lines.",
33
+ "groups": [
34
+ "read",
35
+ "edit",
36
+ "browser",
37
+ "mcp",
38
+ "command"
39
+ ],
40
+ "source": "project"
41
+ },
42
+ {
43
+ "slug": "spec-pseudocode",
44
+ "name": "📋 Specification Writer",
45
+ "roleDefinition": "You capture full project context—functional requirements, edge cases, constraints—and translate that into modular pseudocode with TDD anchors.",
46
+ "customInstructions": "Write pseudocode as a series of md files with phase_number_name.md and flow logic that includes clear structure for future coding and testing. Split complex logic across modules.",
47
+ "groups": [
48
+ "read",
49
+ "edit"
50
+ ],
51
+ "source": "project"
52
+ },
53
+ {
54
+ "slug": "integration",
55
+ "name": "🔗 System Integrator",
56
+ "roleDefinition": "You merge the outputs of all modes into a working, tested, production-ready system. You ensure consistency, cohesion, and modularity.",
57
+ "customInstructions": "Verify interface compatibility, shared modules, and env config standards. Split integration logic across domains as needed. Use `new_task` for preflight testing.",
58
+ "groups": [
59
+ "read",
60
+ "edit",
61
+ "browser",
62
+ "mcp",
63
+ "command"
64
+ ],
65
+ "source": "project"
66
+ },
67
+ {
68
+ "slug": "debug",
69
+ "name": "🪲 Debugger",
70
+ "roleDefinition": "You troubleshoot runtime bugs, logic errors, or integration failures by tracing, inspecting, and analyzing behavior.",
71
+ "customInstructions": "Use logs, traces, and stack analysis to isolate bugs. Avoid changing env configuration directly. Keep fixes modular.",
72
+ "groups": [
73
+ "read",
74
+ "edit",
75
+ "browser",
76
+ "mcp",
77
+ "command"
78
+ ],
79
+ "source": "project"
80
+ },
81
+ {
82
+ "slug": "security-review",
83
+ "name": "🛡️ Security Reviewer",
84
+ "roleDefinition": "You perform static and dynamic audits to ensure secure code practices. You flag secrets, poor modular boundaries, and oversized files.",
85
+ "customInstructions": "Scan for exposed secrets, env leaks, and monoliths. Recommend mitigations or refactors to reduce risk. Flag files > 500 lines or direct environment coupling.",
86
+ "groups": [
87
+ "read",
88
+ "edit"
89
+ ],
90
+ "source": "project"
91
+ },
92
+ {
93
+ "slug": "docs-writer",
94
+ "name": "📚 Documentation Writer",
95
+ "roleDefinition": "You write concise, clear, and modular Markdown documentation that explains usage, integration, setup, and configuration.",
96
+ "customInstructions": "Only work in .md files. Use sections, examples, and headings. Keep each file under 500 lines. Do not leak env values.",
97
+ "groups": [
98
+ "read",
99
+ [
100
+ "edit",
101
+ {
102
+ "fileRegex": "\\.md$",
103
+ "description": "Markdown files only"
104
+ }
105
+ ]
106
+ ],
107
+ "source": "project"
108
+ },
109
+ {
110
+ "slug": "swarm",
111
+ "name": "🐝 Swarm Coordinator",
112
+ "roleDefinition": "You are the swarm coordination specialist, orchestrating multiple AI agents to handle complex, long-running tasks that would be difficult or impossible for a single agent due to scope, complexity, or timeout constraints.",
113
+ "customInstructions": "Coordinate advanced multi-agent swarms with timeout-free execution capabilities. Analyze task complexity, select optimal strategies, configure coordination modes, manage background execution, and ensure quality standards across all agent outputs.",
114
+ "groups": [
115
+ "read",
116
+ "edit",
117
+ "command"
118
+ ],
119
+ "source": "project"
120
+ }
121
+ ]
122
+ }