claude-flow-novice 2.15.2 → 2.15.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.
Files changed (98) hide show
  1. package/.claude/hooks/cfn-BACKUP_USAGE.md +243 -243
  2. package/.claude/hooks/cfn-invoke-security-validation.sh +69 -69
  3. package/.claude/hooks/cfn-post-edit-cfn-retrospective.sh +78 -78
  4. package/.claude/hooks/cfn-post-edit.config.json +44 -44
  5. package/.claude/skills/agent-lifecycle/SKILL.md +60 -0
  6. package/.claude/skills/agent-lifecycle/execute-lifecycle-hook.sh +573 -0
  7. package/.claude/skills/agent-lifecycle/simple-audit.sh +31 -0
  8. package/.claude/skills/cfn-hybrid-routing/check-dependencies.sh +51 -51
  9. package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -252
  10. package/.claude/skills/cfn-redis-coordination/agent-recovery.sh +74 -74
  11. package/.claude/skills/cfn-redis-coordination/get-context.sh +112 -112
  12. package/.claude/skills/cfn-transparency-middleware/middleware-config.sh +28 -28
  13. package/.claude/skills/cfn-transparency-middleware/performance-benchmark.sh +78 -78
  14. package/.claude/skills/cfn-transparency-middleware/test-integration.sh +161 -161
  15. package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh +367 -367
  16. package/.claude/skills/cfn-transparency-middleware/tests/input-validation.sh +92 -92
  17. package/.claude/skills/cfn-transparency-middleware/wrap-agent.sh +131 -131
  18. package/claude-assets/hooks/cfn-BACKUP_USAGE.md +243 -243
  19. package/claude-assets/hooks/cfn-invoke-security-validation.sh +69 -69
  20. package/claude-assets/hooks/cfn-post-edit-cfn-retrospective.sh +78 -78
  21. package/claude-assets/hooks/cfn-post-edit.config.json +44 -44
  22. package/claude-assets/hooks/cfn-post-execution/memory-cleanup.sh +19 -19
  23. package/claude-assets/hooks/cfn-pre-execution/memory-check.sh +19 -19
  24. package/claude-assets/skills/agent-lifecycle/execute-lifecycle-hook.sh +572 -572
  25. package/claude-assets/skills/agent-lifecycle/simple-audit.sh +30 -30
  26. package/claude-assets/skills/cfn-automatic-memory-persistence/persist-agent-output.sh +48 -48
  27. package/claude-assets/skills/cfn-automatic-memory-persistence/query-agent-history.sh +34 -34
  28. package/claude-assets/skills/cfn-deliverable-validation/confidence-calculator.sh +261 -261
  29. package/claude-assets/skills/cfn-expert-update/update-expert.sh +345 -345
  30. package/claude-assets/skills/cfn-hybrid-routing/check-dependencies.sh +51 -51
  31. package/claude-assets/skills/cfn-intervention-detector/detect-intervention.sh +110 -110
  32. package/claude-assets/skills/cfn-intervention-orchestrator/execute-intervention.sh +58 -58
  33. package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -252
  34. package/claude-assets/skills/cfn-loop2-output-processing/process-validator-output.sh +275 -275
  35. package/claude-assets/skills/cfn-memory-management/check-memory.sh +159 -159
  36. package/claude-assets/skills/cfn-memory-management/cleanup-memory.sh +196 -196
  37. package/claude-assets/skills/cfn-node-heap-sizer/task-mode-heap-limiter.sh +325 -325
  38. package/claude-assets/skills/cfn-playbook-auto-update/auto-update-playbook.sh +85 -85
  39. package/claude-assets/skills/cfn-redis-coordination/agent-recovery.sh +74 -74
  40. package/claude-assets/skills/cfn-redis-coordination/get-context.sh +112 -112
  41. package/claude-assets/skills/cfn-scope-simplifier/simplify-scope.sh +67 -67
  42. package/claude-assets/skills/cfn-specialist-injection/recommend-specialist.sh +56 -56
  43. package/claude-assets/skills/cfn-standardized-error-handling/capture-agent-error.sh +86 -86
  44. package/claude-assets/skills/cfn-standardized-error-handling/test-error-handling.sh +165 -165
  45. package/claude-assets/skills/cfn-task-config-init/initialize-config.sh +264 -264
  46. package/claude-assets/skills/cfn-task-decomposition/task-decomposer.sh +278 -278
  47. package/claude-assets/skills/cfn-transparency-middleware/middleware-config.sh +28 -28
  48. package/claude-assets/skills/cfn-transparency-middleware/performance-benchmark.sh +78 -78
  49. package/claude-assets/skills/cfn-transparency-middleware/test-integration.sh +161 -161
  50. package/claude-assets/skills/cfn-transparency-middleware/test-transparency-skill.sh +367 -367
  51. package/claude-assets/skills/cfn-transparency-middleware/tests/input-validation.sh +92 -92
  52. package/claude-assets/skills/cfn-transparency-middleware/wrap-agent.sh +131 -131
  53. package/claude-assets/skills/docker-build/SKILL.md +96 -203
  54. package/claude-assets/skills/docker-build/build.sh +73 -73
  55. package/claude-assets/skills/integration/agent-handoff.sh +494 -0
  56. package/claude-assets/skills/integration/file-operations.sh +414 -0
  57. package/claude-assets/skills/workflow-codification/APPROVAL_WORKFLOW.md +806 -0
  58. package/claude-assets/skills/workflow-codification/COST_TRACKING.md +637 -0
  59. package/claude-assets/skills/workflow-codification/EDGE_CASE_TRACKING.md +404 -0
  60. package/claude-assets/skills/workflow-codification/README_PHASE4.md +457 -0
  61. package/claude-assets/skills/workflow-codification/SKILL.md +110 -0
  62. package/claude-assets/skills/workflow-codification/analyze-patterns.sh +899 -0
  63. package/claude-assets/skills/workflow-codification/approval-workflow.sh +514 -0
  64. package/claude-assets/skills/workflow-codification/generate-skill-update.sh +525 -0
  65. package/claude-assets/skills/workflow-codification/review-skill.sh +643 -0
  66. package/claude-assets/skills/workflow-codification/templates/email-notification.txt +114 -0
  67. package/claude-assets/skills/workflow-codification/templates/slack-notification.md +85 -0
  68. package/claude-assets/skills/workflow-codification/test-integration.sh +281 -0
  69. package/claude-assets/skills/workflow-codification/track-cost-savings.sh +445 -0
  70. package/claude-assets/skills/workflow-codification/track-edge-case.sh +323 -0
  71. package/dist/cli/config-manager.js +91 -109
  72. package/dist/cli/config-manager.js.map +1 -1
  73. package/dist/integration/DatabaseHandoff.js +507 -0
  74. package/dist/integration/DatabaseHandoff.js.map +1 -0
  75. package/dist/integration/StandardAdapter.js +291 -0
  76. package/dist/integration/StandardAdapter.js.map +1 -0
  77. package/dist/lib/agent-output-parser.js +518 -0
  78. package/dist/lib/agent-output-parser.js.map +1 -0
  79. package/dist/lib/agent-output-validator.js +950 -0
  80. package/dist/lib/agent-output-validator.js.map +1 -0
  81. package/dist/lib/artifact-registry.js +443 -0
  82. package/dist/lib/artifact-registry.js.map +1 -0
  83. package/dist/lib/config-validator.js +687 -0
  84. package/dist/lib/config-validator.js.map +1 -0
  85. package/dist/types/agent-output.js +44 -0
  86. package/dist/types/agent-output.js.map +1 -0
  87. package/dist/types/config.js +28 -0
  88. package/dist/types/config.js.map +1 -0
  89. package/package.json +2 -1
  90. package/scripts/artifact-cleanup.sh +392 -0
  91. package/scripts/deploy-production.sh +355 -355
  92. package/scripts/docker-playwright-fix.sh +311 -311
  93. package/scripts/docker-rebuild-all-agents.sh +127 -127
  94. package/scripts/memory-leak-prevention.sh +305 -305
  95. package/scripts/migrate-artifacts.sh +563 -0
  96. package/scripts/migrate-yaml-to-json.sh +465 -0
  97. package/scripts/run-marketing-tests.sh +42 -42
  98. package/scripts/update_paths.sh +46 -46
@@ -1,127 +1,127 @@
1
- #!/bin/bash
2
- # docker-rebuild-all-agents.sh
3
- # Rebuild all CFN agent Docker images after Redis connection fixes
4
-
5
- set -euo pipefail
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
9
-
10
- echo "🐳 Rebuilding All CFN Agent Images with Redis Fix"
11
- echo "=================================================="
12
- echo "Project Root: $PROJECT_ROOT"
13
- echo ""
14
-
15
- # Check if Docker is running
16
- if ! docker info >/dev/null 2>&1; then
17
- echo "❌ Docker is not running. Please start Docker first."
18
- exit 1
19
- fi
20
-
21
- # Change to project directory
22
- cd "$PROJECT_ROOT"
23
-
24
- # Enable BuildKit for faster builds
25
- export DOCKER_BUILDKIT=1
26
-
27
- BUILD_START=$(date +%s)
28
-
29
- # 1. Base agent image (used by all variants)
30
- echo "📦 [1/4] Building claude-flow-novice-agent:latest"
31
- echo " Dockerfile: Dockerfile.agent"
32
- docker build \
33
- --progress=plain \
34
- --cache-from claude-flow-novice-agent:latest \
35
- -f Dockerfile.agent \
36
- -t claude-flow-novice-agent:latest \
37
- . || {
38
- echo "❌ Failed to build claude-flow-novice-agent:latest"
39
- exit 1
40
- }
41
- echo "✅ claude-flow-novice-agent:latest built successfully"
42
- echo ""
43
-
44
- # 2. Frontend specialist (for TypeScript coordinator)
45
- echo "📦 [2/4] Building claude-flow-novice-agent:frontend"
46
- echo " Dockerfile: Dockerfile.agent-frontend"
47
- docker build \
48
- --progress=plain \
49
- --cache-from claude-flow-novice-agent:frontend \
50
- -f Dockerfile.agent-frontend \
51
- -t claude-flow-novice-agent:frontend \
52
- . || {
53
- echo "❌ Failed to build claude-flow-novice-agent:frontend"
54
- exit 1
55
- }
56
- echo "✅ claude-flow-novice-agent:frontend built successfully"
57
- echo ""
58
-
59
- # 3. Backend specialist (if Dockerfile exists)
60
- if [ -f "$PROJECT_ROOT/Dockerfile.agent-backend" ]; then
61
- echo "📦 [3/4] Building claude-flow-novice-agent:backend"
62
- echo " Dockerfile: Dockerfile.agent-backend"
63
- docker build \
64
- --progress=plain \
65
- --cache-from claude-flow-novice-agent:backend \
66
- -f Dockerfile.agent-backend \
67
- -t claude-flow-novice-agent:backend \
68
- . || {
69
- echo "❌ Failed to build claude-flow-novice-agent:backend"
70
- exit 1
71
- }
72
- echo "✅ claude-flow-novice-agent:backend built successfully"
73
- echo ""
74
- else
75
- echo "⏭️ [3/4] Skipping claude-flow-novice-agent:backend (Dockerfile not found)"
76
- echo ""
77
- fi
78
-
79
- # 4. Intelligent coordinator
80
- echo "📦 [4/4] Building cfn-intelligent-coordinator:latest"
81
- echo " Dockerfile: Dockerfile.coordinator"
82
- docker build \
83
- --progress=plain \
84
- --cache-from cfn-intelligent-coordinator:latest \
85
- -f Dockerfile.coordinator \
86
- -t cfn-intelligent-coordinator:latest \
87
- . || {
88
- echo "❌ Failed to build cfn-intelligent-coordinator:latest"
89
- exit 1
90
- }
91
- echo "✅ cfn-intelligent-coordinator:latest built successfully"
92
- echo ""
93
-
94
- BUILD_END=$(date +%s)
95
- BUILD_TIME=$((BUILD_END - BUILD_START))
96
-
97
- # Verify images
98
- echo "=================================================="
99
- echo "✅ All Images Built Successfully!"
100
- echo "=================================================="
101
- echo ""
102
- echo "📋 Image Details:"
103
- docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}\t{{.CreatedAt}}" | \
104
- grep -E "(claude-flow-novice-agent|cfn-intelligent-coordinator)" | \
105
- grep -E "(latest|frontend|backend)" | \
106
- head -10
107
-
108
- echo ""
109
- echo "⏱️ Build Time: ${BUILD_TIME}s"
110
- echo ""
111
- echo "🎯 Next Step: Run validation tests to confirm Redis connection"
112
- echo " Command: ./tests/docker/validate-redis-connection.sh"
113
- echo ""
114
- echo "📝 Rebuild Report:"
115
- echo " - Base agent: claude-flow-novice-agent:latest"
116
- echo " - Frontend specialist: claude-flow-novice-agent:frontend"
117
- echo " - Backend specialist: claude-flow-novice-agent:backend (if exists)"
118
- echo " - Intelligent coordinator: cfn-intelligent-coordinator:latest"
119
- echo ""
120
- echo "💾 Image Sizes:"
121
- TOTAL_SIZE=$(docker images --format "{{.Size}}" | \
122
- grep -E "MB|GB" | \
123
- awk '{gsub(/MB/, "", $1); gsub(/GB/, "", $1); if ($1 ~ /GB/) print $1*1024; else print $1}' | \
124
- awk '{sum+=$1} END {printf "%.0f MB\n", sum}')
125
- echo " Total disk usage: $TOTAL_SIZE"
126
- echo ""
127
- echo "🚀 Ready for Redis validation and integration testing!"
1
+ #!/bin/bash
2
+ # docker-rebuild-all-agents.sh
3
+ # Rebuild all CFN agent Docker images after Redis connection fixes
4
+
5
+ set -euo pipefail
6
+
7
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
+ PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
9
+
10
+ echo "🐳 Rebuilding All CFN Agent Images with Redis Fix"
11
+ echo "=================================================="
12
+ echo "Project Root: $PROJECT_ROOT"
13
+ echo ""
14
+
15
+ # Check if Docker is running
16
+ if ! docker info >/dev/null 2>&1; then
17
+ echo "❌ Docker is not running. Please start Docker first."
18
+ exit 1
19
+ fi
20
+
21
+ # Change to project directory
22
+ cd "$PROJECT_ROOT"
23
+
24
+ # Enable BuildKit for faster builds
25
+ export DOCKER_BUILDKIT=1
26
+
27
+ BUILD_START=$(date +%s)
28
+
29
+ # 1. Base agent image (used by all variants)
30
+ echo "📦 [1/4] Building claude-flow-novice-agent:latest"
31
+ echo " Dockerfile: Dockerfile.agent"
32
+ docker build \
33
+ --progress=plain \
34
+ --cache-from claude-flow-novice-agent:latest \
35
+ -f Dockerfile.agent \
36
+ -t claude-flow-novice-agent:latest \
37
+ . || {
38
+ echo "❌ Failed to build claude-flow-novice-agent:latest"
39
+ exit 1
40
+ }
41
+ echo "✅ claude-flow-novice-agent:latest built successfully"
42
+ echo ""
43
+
44
+ # 2. Frontend specialist (for TypeScript coordinator)
45
+ echo "📦 [2/4] Building claude-flow-novice-agent:frontend"
46
+ echo " Dockerfile: Dockerfile.agent-frontend"
47
+ docker build \
48
+ --progress=plain \
49
+ --cache-from claude-flow-novice-agent:frontend \
50
+ -f Dockerfile.agent-frontend \
51
+ -t claude-flow-novice-agent:frontend \
52
+ . || {
53
+ echo "❌ Failed to build claude-flow-novice-agent:frontend"
54
+ exit 1
55
+ }
56
+ echo "✅ claude-flow-novice-agent:frontend built successfully"
57
+ echo ""
58
+
59
+ # 3. Backend specialist (if Dockerfile exists)
60
+ if [ -f "$PROJECT_ROOT/Dockerfile.agent-backend" ]; then
61
+ echo "📦 [3/4] Building claude-flow-novice-agent:backend"
62
+ echo " Dockerfile: Dockerfile.agent-backend"
63
+ docker build \
64
+ --progress=plain \
65
+ --cache-from claude-flow-novice-agent:backend \
66
+ -f Dockerfile.agent-backend \
67
+ -t claude-flow-novice-agent:backend \
68
+ . || {
69
+ echo "❌ Failed to build claude-flow-novice-agent:backend"
70
+ exit 1
71
+ }
72
+ echo "✅ claude-flow-novice-agent:backend built successfully"
73
+ echo ""
74
+ else
75
+ echo "⏭️ [3/4] Skipping claude-flow-novice-agent:backend (Dockerfile not found)"
76
+ echo ""
77
+ fi
78
+
79
+ # 4. Intelligent coordinator
80
+ echo "📦 [4/4] Building cfn-intelligent-coordinator:latest"
81
+ echo " Dockerfile: Dockerfile.coordinator"
82
+ docker build \
83
+ --progress=plain \
84
+ --cache-from cfn-intelligent-coordinator:latest \
85
+ -f Dockerfile.coordinator \
86
+ -t cfn-intelligent-coordinator:latest \
87
+ . || {
88
+ echo "❌ Failed to build cfn-intelligent-coordinator:latest"
89
+ exit 1
90
+ }
91
+ echo "✅ cfn-intelligent-coordinator:latest built successfully"
92
+ echo ""
93
+
94
+ BUILD_END=$(date +%s)
95
+ BUILD_TIME=$((BUILD_END - BUILD_START))
96
+
97
+ # Verify images
98
+ echo "=================================================="
99
+ echo "✅ All Images Built Successfully!"
100
+ echo "=================================================="
101
+ echo ""
102
+ echo "📋 Image Details:"
103
+ docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}\t{{.CreatedAt}}" | \
104
+ grep -E "(claude-flow-novice-agent|cfn-intelligent-coordinator)" | \
105
+ grep -E "(latest|frontend|backend)" | \
106
+ head -10
107
+
108
+ echo ""
109
+ echo "⏱️ Build Time: ${BUILD_TIME}s"
110
+ echo ""
111
+ echo "🎯 Next Step: Run validation tests to confirm Redis connection"
112
+ echo " Command: ./tests/docker/validate-redis-connection.sh"
113
+ echo ""
114
+ echo "📝 Rebuild Report:"
115
+ echo " - Base agent: claude-flow-novice-agent:latest"
116
+ echo " - Frontend specialist: claude-flow-novice-agent:frontend"
117
+ echo " - Backend specialist: claude-flow-novice-agent:backend (if exists)"
118
+ echo " - Intelligent coordinator: cfn-intelligent-coordinator:latest"
119
+ echo ""
120
+ echo "💾 Image Sizes:"
121
+ TOTAL_SIZE=$(docker images --format "{{.Size}}" | \
122
+ grep -E "MB|GB" | \
123
+ awk '{gsub(/MB/, "", $1); gsub(/GB/, "", $1); if ($1 ~ /GB/) print $1*1024; else print $1}' | \
124
+ awk '{sum+=$1} END {printf "%.0f MB\n", sum}')
125
+ echo " Total disk usage: $TOTAL_SIZE"
126
+ echo ""
127
+ echo "🚀 Ready for Redis validation and integration testing!"