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
|
@@ -8,13 +8,15 @@
|
|
|
8
8
|
"env": {
|
|
9
9
|
"SNOW_INSTANCE": "${SNOW_INSTANCE}",
|
|
10
10
|
"SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
|
|
11
|
-
"SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
|
|
11
|
+
"SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}",
|
|
12
|
+
"SNOW_DEPLOYMENT_TIMEOUT": "${SNOW_DEPLOYMENT_TIMEOUT}",
|
|
13
|
+
"MCP_DEPLOYMENT_TIMEOUT": "${MCP_DEPLOYMENT_TIMEOUT}"
|
|
12
14
|
}
|
|
13
15
|
},
|
|
14
|
-
"servicenow-
|
|
16
|
+
"servicenow-update-set": {
|
|
15
17
|
"command": "node",
|
|
16
18
|
"args": [
|
|
17
|
-
"/Users/nielsvanderwerf/Projects/servicenow_multiagent/dist/mcp/servicenow-
|
|
19
|
+
"/Users/nielsvanderwerf/Projects/servicenow_multiagent/dist/mcp/servicenow-update-set-mcp.js"
|
|
18
20
|
],
|
|
19
21
|
"env": {
|
|
20
22
|
"SNOW_INSTANCE": "${SNOW_INSTANCE}",
|
|
@@ -22,10 +24,10 @@
|
|
|
22
24
|
"SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
|
|
23
25
|
}
|
|
24
26
|
},
|
|
25
|
-
"servicenow-
|
|
27
|
+
"servicenow-intelligent": {
|
|
26
28
|
"command": "node",
|
|
27
29
|
"args": [
|
|
28
|
-
"/Users/nielsvanderwerf/Projects/servicenow_multiagent/dist/mcp/servicenow-
|
|
30
|
+
"/Users/nielsvanderwerf/Projects/servicenow_multiagent/dist/mcp/servicenow-intelligent-mcp.js"
|
|
29
31
|
],
|
|
30
32
|
"env": {
|
|
31
33
|
"SNOW_INSTANCE": "${SNOW_INSTANCE}",
|
|
@@ -33,15 +35,14 @@
|
|
|
33
35
|
"SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
|
|
34
36
|
}
|
|
35
37
|
},
|
|
36
|
-
"servicenow-
|
|
38
|
+
"servicenow-memory": {
|
|
37
39
|
"command": "node",
|
|
38
40
|
"args": [
|
|
39
|
-
"/Users/nielsvanderwerf/Projects/servicenow_multiagent/dist/mcp/servicenow-
|
|
41
|
+
"/Users/nielsvanderwerf/Projects/servicenow_multiagent/dist/mcp/servicenow-memory-mcp.js"
|
|
40
42
|
],
|
|
41
43
|
"env": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
|
|
44
|
+
"MEMORY_PATH": "${MEMORY_PATH}",
|
|
45
|
+
"SNOW_FLOW_HOME": "${SNOW_FLOW_HOME}"
|
|
45
46
|
}
|
|
46
47
|
},
|
|
47
48
|
"servicenow-graph-memory": {
|
|
@@ -124,10 +125,10 @@
|
|
|
124
125
|
"SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
|
|
125
126
|
}
|
|
126
127
|
},
|
|
127
|
-
"servicenow-
|
|
128
|
+
"servicenow-flow-composer": {
|
|
128
129
|
"command": "node",
|
|
129
130
|
"args": [
|
|
130
|
-
"/Users/nielsvanderwerf/Projects/servicenow_multiagent/dist/mcp/servicenow-
|
|
131
|
+
"/Users/nielsvanderwerf/Projects/servicenow_multiagent/dist/mcp/servicenow-flow-composer-mcp.js"
|
|
131
132
|
],
|
|
132
133
|
"env": {
|
|
133
134
|
"SNOW_INSTANCE": "${SNOW_INSTANCE}",
|
package/.releaserc.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"branches": [
|
|
3
|
+
"main",
|
|
4
|
+
{
|
|
5
|
+
"name": "develop",
|
|
6
|
+
"prerelease": "beta"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"plugins": [
|
|
10
|
+
"@semantic-release/commit-analyzer",
|
|
11
|
+
"@semantic-release/release-notes-generator",
|
|
12
|
+
[
|
|
13
|
+
"@semantic-release/changelog",
|
|
14
|
+
{
|
|
15
|
+
"changelogFile": "CHANGELOG.md"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"@semantic-release/npm",
|
|
20
|
+
{
|
|
21
|
+
"npmPublish": true
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"@semantic-release/github",
|
|
26
|
+
{
|
|
27
|
+
"assets": [
|
|
28
|
+
{
|
|
29
|
+
"path": "dist/**",
|
|
30
|
+
"label": "Distribution files"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "CHANGELOG.md",
|
|
34
|
+
"label": "Changelog"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
[
|
|
40
|
+
"@semantic-release/git",
|
|
41
|
+
{
|
|
42
|
+
"assets": ["CHANGELOG.md", "package.json", "package-lock.json"],
|
|
43
|
+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
]
|
|
47
|
+
}
|
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/snow-flow)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://github.com/groeimetai/snow-flow/actions/workflows/ci.yml)
|
|
6
|
+
[](https://codecov.io/gh/groeimetai/snow-flow)
|
|
7
|
+
[](https://www.npmjs.com/package/snow-flow)
|
|
8
|
+
[](https://www.npmjs.com/package/snow-flow)
|
|
9
|
+
[](https://github.com/groeimetai/snow-flow)
|
|
10
|
+
[](https://discord.gg/snow-flow)
|
|
5
11
|
|
|
6
12
|
Snow-Flow revolutionizes ServiceNow development by bringing the power of AI orchestration directly to your platform. With 100+ MCP tools and intelligent multi-agent coordination, Snow-Flow transforms how developers and administrators work with ServiceNow.
|
|
7
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Snow-Flow: ServiceNow Advanced Intelligence Platform - 100+ real MCP tools with AI-powered swarm orchestration. Zero Mock Data, 100% Real API Integration. Natural language interface for ServiceNow operations.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcpServers": {
|
|
3
|
-
"servicenow": {
|
|
4
|
-
"command": "node",
|
|
5
|
-
"args": [
|
|
6
|
-
"dist/mcp/start-servicenow-mcp.js"
|
|
7
|
-
],
|
|
8
|
-
"env": {
|
|
9
|
-
"SNOW_INSTANCE": "${SNOW_INSTANCE}",
|
|
10
|
-
"SNOW_CLIENT_ID": "${SNOW_CLIENT_ID}",
|
|
11
|
-
"SNOW_CLIENT_SECRET": "${SNOW_CLIENT_SECRET}"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Github Commands
|
|
2
|
-
|
|
3
|
-
Commands for github operations in Claude Flow.
|
|
4
|
-
|
|
5
|
-
## Available Commands
|
|
6
|
-
|
|
7
|
-
- [github-swarm](./github-swarm.md)
|
|
8
|
-
- [repo-analyze](./repo-analyze.md)
|
|
9
|
-
- [pr-enhance](./pr-enhance.md)
|
|
10
|
-
- [issue-triage](./issue-triage.md)
|
|
11
|
-
- [code-review](./code-review.md)
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Standard checkpoint hook functions for Claude settings.json (without GitHub features)
|
|
3
|
-
|
|
4
|
-
# Function to handle pre-edit checkpoints
|
|
5
|
-
pre_edit_checkpoint() {
|
|
6
|
-
local tool_input="$1"
|
|
7
|
-
local file=$(echo "$tool_input" | jq -r '.file_path // empty')
|
|
8
|
-
|
|
9
|
-
if [ -n "$file" ]; then
|
|
10
|
-
local checkpoint_branch="checkpoint/pre-edit-$(date +%Y%m%d-%H%M%S)"
|
|
11
|
-
local current_branch=$(git branch --show-current)
|
|
12
|
-
|
|
13
|
-
# Create checkpoint
|
|
14
|
-
git add -A
|
|
15
|
-
git stash push -m "Pre-edit checkpoint for $file" >/dev/null 2>&1
|
|
16
|
-
git branch "$checkpoint_branch"
|
|
17
|
-
|
|
18
|
-
# Store metadata
|
|
19
|
-
mkdir -p .claude/checkpoints
|
|
20
|
-
cat > ".claude/checkpoints/$(date +%s).json" <<EOF
|
|
21
|
-
{
|
|
22
|
-
"branch": "$checkpoint_branch",
|
|
23
|
-
"file": "$file",
|
|
24
|
-
"timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
|
25
|
-
"type": "pre-edit",
|
|
26
|
-
"original_branch": "$current_branch"
|
|
27
|
-
}
|
|
28
|
-
EOF
|
|
29
|
-
|
|
30
|
-
# Restore working directory
|
|
31
|
-
git stash pop --quiet >/dev/null 2>&1 || true
|
|
32
|
-
|
|
33
|
-
echo "✅ Created checkpoint: $checkpoint_branch for $file"
|
|
34
|
-
fi
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
# Function to handle post-edit checkpoints
|
|
38
|
-
post_edit_checkpoint() {
|
|
39
|
-
local tool_input="$1"
|
|
40
|
-
local file=$(echo "$tool_input" | jq -r '.file_path // empty')
|
|
41
|
-
|
|
42
|
-
if [ -n "$file" ] && [ -f "$file" ]; then
|
|
43
|
-
# Check if file was modified - first check if file is tracked
|
|
44
|
-
if ! git ls-files --error-unmatch "$file" >/dev/null 2>&1; then
|
|
45
|
-
# File is not tracked, add it first
|
|
46
|
-
git add "$file"
|
|
47
|
-
fi
|
|
48
|
-
|
|
49
|
-
# Now check if there are changes
|
|
50
|
-
if git diff --cached --quiet "$file" 2>/dev/null && git diff --quiet "$file" 2>/dev/null; then
|
|
51
|
-
echo "ℹ️ No changes to checkpoint for $file"
|
|
52
|
-
else
|
|
53
|
-
local tag_name="checkpoint-$(date +%Y%m%d-%H%M%S)"
|
|
54
|
-
local current_branch=$(git branch --show-current)
|
|
55
|
-
|
|
56
|
-
# Create commit
|
|
57
|
-
git add "$file"
|
|
58
|
-
if git commit -m "🔖 Checkpoint: Edit $file
|
|
59
|
-
|
|
60
|
-
Automatic checkpoint created by Claude
|
|
61
|
-
- File: $file
|
|
62
|
-
- Branch: $current_branch
|
|
63
|
-
- Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)
|
|
64
|
-
|
|
65
|
-
[Auto-checkpoint]" --quiet; then
|
|
66
|
-
# Create tag only if commit succeeded
|
|
67
|
-
git tag -a "$tag_name" -m "Checkpoint after editing $file"
|
|
68
|
-
|
|
69
|
-
# Store metadata
|
|
70
|
-
mkdir -p .claude/checkpoints
|
|
71
|
-
local diff_stats=$(git diff HEAD~1 --stat | tr '\n' ' ' | sed 's/"/\\"/g')
|
|
72
|
-
cat > ".claude/checkpoints/$(date +%s).json" <<EOF
|
|
73
|
-
{
|
|
74
|
-
"tag": "$tag_name",
|
|
75
|
-
"file": "$file",
|
|
76
|
-
"timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
|
77
|
-
"type": "post-edit",
|
|
78
|
-
"branch": "$current_branch",
|
|
79
|
-
"diff_summary": "$diff_stats"
|
|
80
|
-
}
|
|
81
|
-
EOF
|
|
82
|
-
|
|
83
|
-
echo "✅ Created checkpoint: $tag_name for $file"
|
|
84
|
-
else
|
|
85
|
-
echo "ℹ️ No commit created (no changes or commit failed)"
|
|
86
|
-
fi
|
|
87
|
-
fi
|
|
88
|
-
fi
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
# Function to handle task checkpoints
|
|
92
|
-
task_checkpoint() {
|
|
93
|
-
local user_prompt="$1"
|
|
94
|
-
local task=$(echo "$user_prompt" | head -c 100 | tr '\n' ' ')
|
|
95
|
-
|
|
96
|
-
if [ -n "$task" ]; then
|
|
97
|
-
local checkpoint_name="task-$(date +%Y%m%d-%H%M%S)"
|
|
98
|
-
|
|
99
|
-
# Commit current state
|
|
100
|
-
git add -A
|
|
101
|
-
git commit -m "🔖 Task checkpoint: $task..." --quiet || true
|
|
102
|
-
|
|
103
|
-
# Store metadata
|
|
104
|
-
mkdir -p .claude/checkpoints
|
|
105
|
-
cat > ".claude/checkpoints/task-$(date +%s).json" <<EOF
|
|
106
|
-
{
|
|
107
|
-
"checkpoint": "$checkpoint_name",
|
|
108
|
-
"task": "$task",
|
|
109
|
-
"timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
|
110
|
-
"commit": "$(git rev-parse HEAD)"
|
|
111
|
-
}
|
|
112
|
-
EOF
|
|
113
|
-
|
|
114
|
-
echo "✅ Created task checkpoint: $checkpoint_name"
|
|
115
|
-
fi
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
# Function to handle session end
|
|
119
|
-
session_end_checkpoint() {
|
|
120
|
-
local session_id="session-$(date +%Y%m%d-%H%M%S)"
|
|
121
|
-
local summary_file=".claude/checkpoints/summary-$session_id.md"
|
|
122
|
-
|
|
123
|
-
mkdir -p .claude/checkpoints
|
|
124
|
-
|
|
125
|
-
# Create summary
|
|
126
|
-
cat > "$summary_file" <<EOF
|
|
127
|
-
# Session Summary - $(date +'%Y-%m-%d %H:%M:%S')
|
|
128
|
-
|
|
129
|
-
## Checkpoints Created
|
|
130
|
-
$(find .claude/checkpoints -name '*.json' -mtime -1 -exec basename {} \; | sort)
|
|
131
|
-
|
|
132
|
-
## Files Modified
|
|
133
|
-
$(git diff --name-only $(git log --format=%H -n 1 --before="1 hour ago" 2>/dev/null) 2>/dev/null || echo "No files tracked")
|
|
134
|
-
|
|
135
|
-
## Recent Commits
|
|
136
|
-
$(git log --oneline -10 --grep="Checkpoint" || echo "No checkpoint commits")
|
|
137
|
-
|
|
138
|
-
## Rollback Instructions
|
|
139
|
-
To rollback to a specific checkpoint:
|
|
140
|
-
\`\`\`bash
|
|
141
|
-
# List all checkpoints
|
|
142
|
-
git tag -l 'checkpoint-*' | sort -r
|
|
143
|
-
|
|
144
|
-
# Rollback to a checkpoint
|
|
145
|
-
git checkout checkpoint-YYYYMMDD-HHMMSS
|
|
146
|
-
|
|
147
|
-
# Or reset to a checkpoint (destructive)
|
|
148
|
-
git reset --hard checkpoint-YYYYMMDD-HHMMSS
|
|
149
|
-
\`\`\`
|
|
150
|
-
EOF
|
|
151
|
-
|
|
152
|
-
# Create final checkpoint
|
|
153
|
-
git add -A
|
|
154
|
-
git commit -m "🏁 Session end checkpoint: $session_id" --quiet || true
|
|
155
|
-
git tag -a "session-end-$session_id" -m "End of Claude session"
|
|
156
|
-
|
|
157
|
-
echo "✅ Session summary saved to: $summary_file"
|
|
158
|
-
echo "📌 Final checkpoint: session-end-$session_id"
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
# Main entry point
|
|
162
|
-
case "$1" in
|
|
163
|
-
pre-edit)
|
|
164
|
-
pre_edit_checkpoint "$2"
|
|
165
|
-
;;
|
|
166
|
-
post-edit)
|
|
167
|
-
post_edit_checkpoint "$2"
|
|
168
|
-
;;
|
|
169
|
-
task)
|
|
170
|
-
task_checkpoint "$2"
|
|
171
|
-
;;
|
|
172
|
-
session-end)
|
|
173
|
-
session_end_checkpoint
|
|
174
|
-
;;
|
|
175
|
-
*)
|
|
176
|
-
echo "Usage: $0 {pre-edit|post-edit|task|session-end} [input]"
|
|
177
|
-
exit 1
|
|
178
|
-
;;
|
|
179
|
-
esac
|
package/.claude/config.json
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
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
|
-
]
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Setup GitHub integration for Claude Flow
|
|
3
|
-
|
|
4
|
-
echo "🔗 Setting up GitHub integration..."
|
|
5
|
-
|
|
6
|
-
# Check for gh CLI
|
|
7
|
-
if ! command -v gh &> /dev/null; then
|
|
8
|
-
echo "⚠️ GitHub CLI (gh) not found"
|
|
9
|
-
echo "Install from: https://cli.github.com/"
|
|
10
|
-
echo "Continuing without GitHub features..."
|
|
11
|
-
else
|
|
12
|
-
echo "✅ GitHub CLI found"
|
|
13
|
-
|
|
14
|
-
# Check auth status
|
|
15
|
-
if gh auth status &> /dev/null; then
|
|
16
|
-
echo "✅ GitHub authentication active"
|
|
17
|
-
else
|
|
18
|
-
echo "⚠️ Not authenticated with GitHub"
|
|
19
|
-
echo "Run: gh auth login"
|
|
20
|
-
fi
|
|
21
|
-
fi
|
|
22
|
-
|
|
23
|
-
echo ""
|
|
24
|
-
echo "📦 GitHub swarm commands available:"
|
|
25
|
-
echo " - npx snow-flow github swarm"
|
|
26
|
-
echo " - npx snow-flow repo analyze"
|
|
27
|
-
echo " - npx snow-flow pr enhance"
|
|
28
|
-
echo " - npx snow-flow issue triage"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Quick start guide for Claude Flow
|
|
3
|
-
|
|
4
|
-
echo "🚀 Snow-Flow Quick Start"
|
|
5
|
-
echo "=========================="
|
|
6
|
-
echo ""
|
|
7
|
-
echo "1. Initialize a swarm:"
|
|
8
|
-
echo " npx snow-flow swarm init --topology hierarchical"
|
|
9
|
-
echo ""
|
|
10
|
-
echo "2. Spawn agents:"
|
|
11
|
-
echo " npx snow-flow agent spawn --type coder --name "API Developer""
|
|
12
|
-
echo ""
|
|
13
|
-
echo "3. Orchestrate tasks:"
|
|
14
|
-
echo " npx snow-flow task orchestrate --task "Build REST API""
|
|
15
|
-
echo ""
|
|
16
|
-
echo "4. Monitor progress:"
|
|
17
|
-
echo " npx snow-flow swarm monitor"
|
|
18
|
-
echo ""
|
|
19
|
-
echo "📚 For more examples, see .claude/commands/"
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Setup MCP server for Snow-Flow
|
|
3
|
-
|
|
4
|
-
echo "🚀 Setting up Snow-Flow MCP server..."
|
|
5
|
-
|
|
6
|
-
# Check if claude command exists
|
|
7
|
-
if ! command -v claude &> /dev/null; then
|
|
8
|
-
echo "❌ Error: Claude Code CLI not found"
|
|
9
|
-
echo "Please install Claude Code first"
|
|
10
|
-
exit 1
|
|
11
|
-
fi
|
|
12
|
-
|
|
13
|
-
# Add MCP server
|
|
14
|
-
echo "📦 Adding Snow-Flow MCP server..."
|
|
15
|
-
claude mcp add snow-flow npx snow-flow mcp start
|
|
16
|
-
|
|
17
|
-
echo "✅ MCP server setup complete!"
|
|
18
|
-
echo "🎯 You can now use mcp__snow-flow__ tools in Claude Code"
|
package/.claude/settings.json
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"SNOW_FLOW_AUTO_COMMIT": "false",
|
|
4
|
-
"SNOW_FLOW_AUTO_PUSH": "false",
|
|
5
|
-
"SNOW_FLOW_HOOKS_ENABLED": "true",
|
|
6
|
-
"SNOW_FLOW_TELEMETRY_ENABLED": "true",
|
|
7
|
-
"SNOW_FLOW_REMOTE_EXECUTION": "true",
|
|
8
|
-
"SNOW_FLOW_CHECKPOINTS_ENABLED": "true"
|
|
9
|
-
},
|
|
10
|
-
"permissions": {
|
|
11
|
-
"allow": [
|
|
12
|
-
"Bash(npx snow-flow *)",
|
|
13
|
-
"Bash(npm run lint)",
|
|
14
|
-
"Bash(npm run test:*)",
|
|
15
|
-
"Bash(npm test *)",
|
|
16
|
-
"Bash(git status)",
|
|
17
|
-
"Bash(git diff *)",
|
|
18
|
-
"Bash(git log *)",
|
|
19
|
-
"Bash(git add *)",
|
|
20
|
-
"Bash(git commit *)",
|
|
21
|
-
"Bash(git push)",
|
|
22
|
-
"Bash(git config *)",
|
|
23
|
-
"Bash(git tag *)",
|
|
24
|
-
"Bash(git branch *)",
|
|
25
|
-
"Bash(git checkout *)",
|
|
26
|
-
"Bash(git stash *)",
|
|
27
|
-
"Bash(jq *)",
|
|
28
|
-
"Bash(node *)",
|
|
29
|
-
"Bash(which *)",
|
|
30
|
-
"Bash(pwd)",
|
|
31
|
-
"Bash(ls *)"
|
|
32
|
-
],
|
|
33
|
-
"deny": [
|
|
34
|
-
"Bash(rm -rf /)",
|
|
35
|
-
"Bash(curl * | bash)",
|
|
36
|
-
"Bash(wget * | sh)",
|
|
37
|
-
"Bash(eval *)"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
"hooks": {
|
|
41
|
-
"PreToolUse": [
|
|
42
|
-
{
|
|
43
|
-
"matcher": "Bash",
|
|
44
|
-
"hooks": [
|
|
45
|
-
{
|
|
46
|
-
"type": "command",
|
|
47
|
-
"command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx snow-flow hooks pre-command --command '{}' --validate-safety true --prepare-resources true"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"matcher": "Write|Edit|MultiEdit",
|
|
53
|
-
"hooks": [
|
|
54
|
-
{
|
|
55
|
-
"type": "command",
|
|
56
|
-
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx snow-flow hooks pre-edit --file '{}' --auto-assign-agents true --load-context true"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"PostToolUse": [
|
|
62
|
-
{
|
|
63
|
-
"matcher": "Bash",
|
|
64
|
-
"hooks": [
|
|
65
|
-
{
|
|
66
|
-
"type": "command",
|
|
67
|
-
"command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx snow-flow hooks post-command --command '{}' --track-metrics true --store-results true"
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"matcher": "Write|Edit|MultiEdit",
|
|
73
|
-
"hooks": [
|
|
74
|
-
{
|
|
75
|
-
"type": "command",
|
|
76
|
-
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx snow-flow hooks post-edit --file '{}' --format true --update-memory true"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"PreCompact": [
|
|
82
|
-
{
|
|
83
|
-
"matcher": "manual",
|
|
84
|
-
"hooks": [
|
|
85
|
-
{
|
|
86
|
-
"type": "command",
|
|
87
|
-
"command": "/bin/bash -c 'INPUT=$(cat); CUSTOM=$(echo \"$INPUT\" | jq -r \".custom_instructions // \\\"\\\"\"); echo \"🔄 PreCompact Guidance:\"; echo \"📋 IMPORTANT: Review CLAUDE.md in project root for:\"; echo \" • 54 available agents and concurrent usage patterns\"; echo \" • Swarm coordination strategies (hierarchical, mesh, adaptive)\"; echo \" • SPARC methodology workflows with batchtools optimization\"; echo \" • Critical concurrent execution rules (GOLDEN RULE: 1 MESSAGE = ALL OPERATIONS)\"; if [ -n \"$CUSTOM\" ]; then echo \"🎯 Custom compact instructions: $CUSTOM\"; fi; echo \"✅ Ready for compact operation\"'"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"matcher": "auto",
|
|
93
|
-
"hooks": [
|
|
94
|
-
{
|
|
95
|
-
"type": "command",
|
|
96
|
-
"command": "/bin/bash -c 'echo \"🔄 Auto-Compact Guidance (Context Window Full):\"; echo \"📋 CRITICAL: Before compacting, ensure you understand:\"; echo \" • All 54 agents available in .claude/agents/ directory\"; echo \" • Concurrent execution patterns from CLAUDE.md\"; echo \" • Batchtools optimization for 300% performance gains\"; echo \" • Swarm coordination strategies for complex tasks\"; echo \"⚡ Apply GOLDEN RULE: Always batch operations in single messages\"; echo \"✅ Auto-compact proceeding with full agent context\"'"
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"Stop": [
|
|
102
|
-
{
|
|
103
|
-
"hooks": [
|
|
104
|
-
{
|
|
105
|
-
"type": "command",
|
|
106
|
-
"command": "npx snow-flow hooks session-end --generate-summary true --persist-state true --export-metrics true"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
"includeCoAuthoredBy": true,
|
|
113
|
-
"enabledMcpjsonServers": ["snow-flow"]
|
|
114
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"mcp__snow-flow__*",
|
|
5
|
-
"Bash(touch:*)",
|
|
6
|
-
"Bash(npm login:*)",
|
|
7
|
-
"Bash(npm publish:*)",
|
|
8
|
-
"Bash(git add:*)",
|
|
9
|
-
"Bash(git commit:*)",
|
|
10
|
-
"Bash(git push:*)",
|
|
11
|
-
"Bash(npm run build:*)",
|
|
12
|
-
"Bash(./snow-flow --version)",
|
|
13
|
-
"Bash(snow-flow:*)",
|
|
14
|
-
"Bash(npm install:*)"
|
|
15
|
-
],
|
|
16
|
-
"deny": []
|
|
17
|
-
},
|
|
18
|
-
"enableAllProjectMcpServers": true,
|
|
19
|
-
"enabledMcpjsonServers": [
|
|
20
|
-
"servicenow-deployment",
|
|
21
|
-
"servicenow-flow-composer",
|
|
22
|
-
"servicenow-update-set",
|
|
23
|
-
"servicenow-intelligent",
|
|
24
|
-
"servicenow-graph-memory",
|
|
25
|
-
"servicenow-operations",
|
|
26
|
-
"servicenow-platform-development",
|
|
27
|
-
"servicenow-integration",
|
|
28
|
-
"servicenow-automation",
|
|
29
|
-
"servicenow-security-compliance",
|
|
30
|
-
"servicenow-reporting-analytics",
|
|
31
|
-
"snow-flow"
|
|
32
|
-
]
|
|
33
|
-
}
|