claude-flow-novice 2.15.4 → 2.15.6

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 (456) hide show
  1. package/.claude/cfn-extras/.gs-api-quota.json +16 -0
  2. package/.claude/cfn-extras/.gs-progress-state.json +22 -0
  3. package/.claude/cfn-extras/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +414 -0
  4. package/.claude/cfn-extras/agents/google-sheets/README.md +114 -0
  5. package/.claude/cfn-extras/agents/google-sheets/google-sheets-advanced-analytics-specialist.md +288 -0
  6. package/.claude/cfn-extras/agents/google-sheets/google-sheets-api-integrator.md +127 -0
  7. package/.claude/cfn-extras/agents/google-sheets/google-sheets-automation-scripting-specialist.md +195 -0
  8. package/.claude/cfn-extras/agents/google-sheets/google-sheets-business-validator.md +179 -0
  9. package/.claude/cfn-extras/agents/google-sheets/google-sheets-collaboration-security-specialist.md +240 -0
  10. package/.claude/cfn-extras/agents/google-sheets/google-sheets-coordinator.md +214 -0
  11. package/.claude/cfn-extras/agents/google-sheets/google-sheets-data-transformer.md +127 -0
  12. package/.claude/cfn-extras/agents/google-sheets/google-sheets-data-validation-quality-specialist.md +177 -0
  13. package/.claude/cfn-extras/agents/google-sheets/google-sheets-data-validator.md +119 -0
  14. package/.claude/cfn-extras/agents/google-sheets/google-sheets-data-visualization-specialist.md +135 -0
  15. package/.claude/cfn-extras/agents/google-sheets/google-sheets-design-layout-specialist.md +109 -0
  16. package/.claude/cfn-extras/agents/google-sheets/google-sheets-formula-engineer.md +127 -0
  17. package/.claude/cfn-extras/agents/google-sheets/google-sheets-formula-engineering-specialist.md +138 -0
  18. package/.claude/cfn-extras/agents/google-sheets/google-sheets-formula-validator.md +128 -0
  19. package/.claude/cfn-extras/agents/google-sheets/google-sheets-generalist.md +645 -0
  20. package/.claude/cfn-extras/agents/google-sheets/google-sheets-integration-api-specialist.md +258 -0
  21. package/.claude/cfn-extras/agents/google-sheets/google-sheets-performance-analyst.md +125 -0
  22. package/.claude/cfn-extras/agents/google-sheets/google-sheets-performance-optimization-specialist.md +211 -0
  23. package/.claude/cfn-extras/agents/google-sheets/google-sheets-schema-designer.md +130 -0
  24. package/.claude/cfn-extras/agents/google-sheets/google-sheets-template-architecture-specialist.md +259 -0
  25. package/.claude/cfn-extras/docs/GOOGLE_SHEETS_CFN_LOOP.md +617 -0
  26. package/.claude/cfn-extras/skills/GOOGLE_SHEETS_SKILLS_README.md +453 -0
  27. package/.claude/cfn-extras/skills/google-sheets-api-coordinator/SKILL.md +272 -0
  28. package/.claude/cfn-extras/skills/google-sheets-api-coordinator/api-call.sh +254 -0
  29. package/.claude/cfn-extras/skills/google-sheets-api-coordinator/test.sh +174 -0
  30. package/.claude/cfn-extras/skills/google-sheets-api-coordinator/validate.sh +98 -0
  31. package/.claude/cfn-extras/skills/google-sheets-decomposition/SKILL.md +269 -0
  32. package/.claude/cfn-extras/skills/google-sheets-decomposition/decompose.sh +313 -0
  33. package/.claude/cfn-extras/skills/google-sheets-formula-builder/SKILL.md +237 -0
  34. package/.claude/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh +220 -0
  35. package/.claude/cfn-extras/skills/google-sheets-formula-builder/test.sh +172 -0
  36. package/.claude/cfn-extras/skills/google-sheets-formula-builder/validate.sh +98 -0
  37. package/.claude/cfn-extras/skills/google-sheets-progress/SKILL.md +287 -0
  38. package/.claude/cfn-extras/skills/google-sheets-progress/test.sh +385 -0
  39. package/.claude/cfn-extras/skills/google-sheets-progress/track-progress.sh +516 -0
  40. package/.claude/cfn-extras/skills/google-sheets-progress/validate.sh +119 -0
  41. package/.claude/cfn-extras/skills/google-sheets-sprint-order/SKILL.md +277 -0
  42. package/.claude/cfn-extras/skills/google-sheets-sprint-order/order-sprints.sh +233 -0
  43. package/.claude/cfn-extras/skills/google-sheets-validation/SKILL.md +352 -0
  44. package/.claude/cfn-extras/skills/google-sheets-validation/test.sh +355 -0
  45. package/.claude/cfn-extras/skills/google-sheets-validation/validate-state.sh +374 -0
  46. package/.claude/cfn-extras/skills/google-sheets-validation/validate.sh +128 -0
  47. package/.claude/commands/cfn-context.md +10 -0
  48. package/.claude/commands/cfn-loop-cli.md +44 -14
  49. package/.claude/commands/google-sheets/google-sheets-loop.md +289 -0
  50. package/.claude/skills/cfn-agent-selector/SKILL.md +143 -0
  51. package/.claude/skills/cfn-agent-selector/select-agents.sh +94 -0
  52. package/.claude/skills/cfn-agent-spawning/get-agent-provider-env.sh +22 -2
  53. package/.claude/skills/cfn-docker-agent-spawning/spawn-agent.sh +21 -2
  54. package/.claude/skills/cfn-docker-loop-orchestration/orchestrate.sh +11 -5
  55. package/.claude/skills/cfn-docker-redis-coordination/MIGRATION_SUMMARY.md +348 -0
  56. package/.claude/skills/cfn-docker-redis-coordination/README.md +294 -0
  57. package/.claude/skills/cfn-docker-redis-coordination/jest.config.js +37 -0
  58. package/.claude/skills/cfn-docker-redis-coordination/package-lock.json +5259 -0
  59. package/.claude/skills/cfn-docker-redis-coordination/package.json +40 -0
  60. package/.claude/skills/cfn-docker-redis-coordination/src/coordinator.ts +801 -0
  61. package/.claude/skills/cfn-docker-redis-coordination/src/index.ts +42 -0
  62. package/.claude/skills/cfn-docker-redis-coordination/src/types.ts +351 -0
  63. package/.claude/skills/cfn-docker-redis-coordination/tests/coordinator.test.ts +1464 -0
  64. package/.claude/skills/cfn-docker-redis-coordination/tsconfig.json +30 -0
  65. package/.claude/skills/cfn-loop-orchestration/.eslintrc.js +56 -0
  66. package/.claude/skills/cfn-loop-orchestration/.prettierrc.json +18 -0
  67. package/.claude/skills/cfn-loop-orchestration/README.md +149 -41
  68. package/.claude/skills/cfn-loop-orchestration/jest.config.js +67 -0
  69. package/.claude/skills/cfn-loop-orchestration/orchestrate-wrapper.sh +268 -0
  70. package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +147 -16
  71. package/.claude/skills/cfn-loop-orchestration/package-lock.json +5470 -0
  72. package/.claude/skills/cfn-loop-orchestration/package.json +49 -0
  73. package/.claude/skills/cfn-loop-orchestration/src/agent-spawner/agent-spawner.ts +34 -0
  74. package/.claude/skills/cfn-loop-orchestration/src/gate-checker/gate-checker.ts +36 -0
  75. package/.claude/skills/cfn-loop-orchestration/src/index.ts +14 -0
  76. package/.claude/skills/cfn-loop-orchestration/src/orchestrator/orchestrator.ts +31 -0
  77. package/.claude/skills/cfn-loop-orchestration/src/redis/redis-coordinator.ts +72 -0
  78. package/.claude/skills/cfn-loop-orchestration/src/types.ts +188 -0
  79. package/.claude/skills/cfn-loop-orchestration/src/utils/logger.ts +32 -0
  80. package/.claude/skills/cfn-loop-orchestration/tests/setup.ts +22 -0
  81. package/.claude/skills/cfn-loop-orchestration/tests/types.test.ts +132 -0
  82. package/.claude/skills/cfn-loop-orchestration/tsconfig.json +54 -0
  83. package/.claude/skills/cfn-redis-coordination/bash-wrappers/store-context.sh +23 -0
  84. package/.claude/skills/cfn-redis-coordination/dist/agent-logger.d.ts +92 -0
  85. package/.claude/skills/cfn-redis-coordination/dist/agent-logger.d.ts.map +1 -0
  86. package/.claude/skills/cfn-redis-coordination/dist/agent-logger.js +329 -0
  87. package/.claude/skills/cfn-redis-coordination/dist/agent-logger.js.map +1 -0
  88. package/.claude/skills/cfn-redis-coordination/dist/agent-recovery.d.ts +75 -0
  89. package/.claude/skills/cfn-redis-coordination/dist/agent-recovery.d.ts.map +1 -0
  90. package/.claude/skills/cfn-redis-coordination/dist/agent-recovery.js +302 -0
  91. package/.claude/skills/cfn-redis-coordination/dist/agent-recovery.js.map +1 -0
  92. package/.claude/skills/cfn-redis-coordination/dist/completion-reporter.d.ts +58 -0
  93. package/.claude/skills/cfn-redis-coordination/dist/completion-reporter.d.ts.map +1 -0
  94. package/.claude/skills/cfn-redis-coordination/dist/completion-reporter.js +237 -0
  95. package/.claude/skills/cfn-redis-coordination/dist/completion-reporter.js.map +1 -0
  96. package/.claude/skills/cfn-redis-coordination/dist/context-manager.d.ts +63 -0
  97. package/.claude/skills/cfn-redis-coordination/dist/context-manager.d.ts.map +1 -0
  98. package/.claude/skills/cfn-redis-coordination/dist/context-manager.js +230 -0
  99. package/.claude/skills/cfn-redis-coordination/dist/context-manager.js.map +1 -0
  100. package/.claude/skills/cfn-redis-coordination/dist/index.d.ts +45 -0
  101. package/.claude/skills/cfn-redis-coordination/dist/index.d.ts.map +1 -0
  102. package/.claude/skills/cfn-redis-coordination/dist/index.js +114 -0
  103. package/.claude/skills/cfn-redis-coordination/dist/index.js.map +1 -0
  104. package/.claude/skills/cfn-redis-coordination/dist/mode-detector.d.ts +31 -0
  105. package/.claude/skills/cfn-redis-coordination/dist/mode-detector.d.ts.map +1 -0
  106. package/.claude/skills/cfn-redis-coordination/dist/mode-detector.js +185 -0
  107. package/.claude/skills/cfn-redis-coordination/dist/mode-detector.js.map +1 -0
  108. package/.claude/skills/cfn-redis-coordination/dist/redis-client.d.ts +191 -0
  109. package/.claude/skills/cfn-redis-coordination/dist/redis-client.d.ts.map +1 -0
  110. package/.claude/skills/cfn-redis-coordination/dist/redis-client.js +509 -0
  111. package/.claude/skills/cfn-redis-coordination/dist/redis-client.js.map +1 -0
  112. package/.claude/skills/cfn-redis-coordination/dist/result-collector.d.ts +75 -0
  113. package/.claude/skills/cfn-redis-coordination/dist/result-collector.d.ts.map +1 -0
  114. package/.claude/skills/cfn-redis-coordination/dist/result-collector.js +281 -0
  115. package/.claude/skills/cfn-redis-coordination/dist/result-collector.js.map +1 -0
  116. package/.claude/skills/cfn-redis-coordination/dist/swarm-manager.d.ts +75 -0
  117. package/.claude/skills/cfn-redis-coordination/dist/swarm-manager.d.ts.map +1 -0
  118. package/.claude/skills/cfn-redis-coordination/dist/swarm-manager.js +354 -0
  119. package/.claude/skills/cfn-redis-coordination/dist/swarm-manager.js.map +1 -0
  120. package/.claude/skills/cfn-redis-coordination/dist/task-analyzer.d.ts +62 -0
  121. package/.claude/skills/cfn-redis-coordination/dist/task-analyzer.d.ts.map +1 -0
  122. package/.claude/skills/cfn-redis-coordination/dist/task-analyzer.js +305 -0
  123. package/.claude/skills/cfn-redis-coordination/dist/task-analyzer.js.map +1 -0
  124. package/.claude/skills/cfn-redis-coordination/dist/task-executor.d.ts +97 -0
  125. package/.claude/skills/cfn-redis-coordination/dist/task-executor.d.ts.map +1 -0
  126. package/.claude/skills/cfn-redis-coordination/dist/task-executor.js +283 -0
  127. package/.claude/skills/cfn-redis-coordination/dist/task-executor.js.map +1 -0
  128. package/.claude/skills/cfn-redis-coordination/dist/types.d.ts +176 -0
  129. package/.claude/skills/cfn-redis-coordination/dist/types.d.ts.map +1 -0
  130. package/.claude/skills/cfn-redis-coordination/dist/types.js +81 -0
  131. package/.claude/skills/cfn-redis-coordination/dist/types.js.map +1 -0
  132. package/.claude/skills/cfn-redis-coordination/dist/waiting-coordinator.d.ts +86 -0
  133. package/.claude/skills/cfn-redis-coordination/dist/waiting-coordinator.d.ts.map +1 -0
  134. package/.claude/skills/cfn-redis-coordination/dist/waiting-coordinator.js +419 -0
  135. package/.claude/skills/cfn-redis-coordination/dist/waiting-coordinator.js.map +1 -0
  136. package/.claude/skills/cfn-redis-coordination/docs/migration/PHASE_3_REDIS_COORDINATION_COMPLETION_REPORT.md +553 -0
  137. package/.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh +3 -2
  138. package/.claude/skills/cfn-redis-coordination/jest.config.js +23 -0
  139. package/.claude/skills/cfn-redis-coordination/package-lock.json +5272 -0
  140. package/.claude/skills/cfn-redis-coordination/package.json +45 -0
  141. package/.claude/skills/cfn-redis-coordination/redis-cli-wrapper.sh +21 -8
  142. package/.claude/skills/cfn-redis-coordination/redis-functions.sh +3 -2
  143. package/.claude/skills/cfn-redis-coordination/src/agent-logger.ts +446 -0
  144. package/.claude/skills/cfn-redis-coordination/src/agent-recovery.ts +454 -0
  145. package/.claude/skills/cfn-redis-coordination/src/completion-reporter.ts +396 -0
  146. package/.claude/skills/cfn-redis-coordination/src/context-manager.ts +327 -0
  147. package/.claude/skills/cfn-redis-coordination/src/index.ts +82 -0
  148. package/.claude/skills/cfn-redis-coordination/src/mode-detector.ts +155 -0
  149. package/.claude/skills/cfn-redis-coordination/src/redis/redis-client.ts +305 -0
  150. package/.claude/skills/cfn-redis-coordination/src/redis/redis-functions.ts +283 -0
  151. package/.claude/skills/cfn-redis-coordination/src/redis-client.ts +654 -0
  152. package/.claude/skills/cfn-redis-coordination/src/result-collector.ts +437 -0
  153. package/.claude/skills/cfn-redis-coordination/src/swarm-manager.ts +494 -0
  154. package/.claude/skills/cfn-redis-coordination/src/task-analyzer.ts +404 -0
  155. package/.claude/skills/cfn-redis-coordination/src/task-executor.ts +423 -0
  156. package/.claude/skills/cfn-redis-coordination/src/types.ts +235 -0
  157. package/.claude/skills/cfn-redis-coordination/src/waiting-coordinator.ts +587 -0
  158. package/.claude/skills/cfn-redis-coordination/test-connection-attempts.js +70 -0
  159. package/.claude/skills/cfn-redis-coordination/test-mode-simple.js +121 -0
  160. package/.claude/skills/cfn-redis-coordination/test-redis-check.js +84 -0
  161. package/.claude/skills/cfn-redis-coordination/test-task-mode-redis.cjs +391 -0
  162. package/.claude/skills/cfn-redis-coordination/tests/coordination.test.ts +779 -0
  163. package/.claude/skills/cfn-redis-coordination/tsconfig.json +31 -0
  164. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +172 -2
  165. package/claude-assets/agents/cfn-dev-team/testers/api-testing-specialist.md +1 -1
  166. package/claude-assets/agents/custom/cfn-redis-operations.md +530 -0
  167. package/claude-assets/agents/custom/cfn-system-expert.md +77 -0
  168. package/claude-assets/cfn-extras/.gs-api-quota.json +16 -0
  169. package/claude-assets/cfn-extras/.gs-progress-state.json +22 -0
  170. package/claude-assets/cfn-extras/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +414 -0
  171. package/claude-assets/cfn-extras/agents/google-sheets/README.md +114 -0
  172. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-advanced-analytics-specialist.md +288 -0
  173. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-api-integrator.md +127 -0
  174. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-automation-scripting-specialist.md +195 -0
  175. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-business-validator.md +179 -0
  176. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-collaboration-security-specialist.md +240 -0
  177. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-coordinator.md +214 -0
  178. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-data-transformer.md +127 -0
  179. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-data-validation-quality-specialist.md +177 -0
  180. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-data-validator.md +119 -0
  181. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-data-visualization-specialist.md +135 -0
  182. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-design-layout-specialist.md +109 -0
  183. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-formula-engineer.md +127 -0
  184. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-formula-engineering-specialist.md +138 -0
  185. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-formula-validator.md +128 -0
  186. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-generalist.md +645 -0
  187. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-integration-api-specialist.md +258 -0
  188. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-performance-analyst.md +125 -0
  189. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-performance-optimization-specialist.md +211 -0
  190. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-schema-designer.md +130 -0
  191. package/claude-assets/cfn-extras/agents/google-sheets/google-sheets-template-architecture-specialist.md +259 -0
  192. package/claude-assets/cfn-extras/docs/GOOGLE_SHEETS_CFN_LOOP.md +617 -0
  193. package/claude-assets/cfn-extras/skills/GOOGLE_SHEETS_SKILLS_README.md +453 -0
  194. package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/SKILL.md +272 -0
  195. package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/api-call.sh +254 -0
  196. package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/test.sh +174 -0
  197. package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/validate.sh +98 -0
  198. package/claude-assets/cfn-extras/skills/google-sheets-decomposition/SKILL.md +269 -0
  199. package/claude-assets/cfn-extras/skills/google-sheets-decomposition/decompose.sh +313 -0
  200. package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/SKILL.md +237 -0
  201. package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh +220 -0
  202. package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/test.sh +172 -0
  203. package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/validate.sh +98 -0
  204. package/claude-assets/cfn-extras/skills/google-sheets-progress/SKILL.md +287 -0
  205. package/claude-assets/cfn-extras/skills/google-sheets-progress/test.sh +385 -0
  206. package/claude-assets/cfn-extras/skills/google-sheets-progress/track-progress.sh +516 -0
  207. package/claude-assets/cfn-extras/skills/google-sheets-progress/validate.sh +119 -0
  208. package/claude-assets/cfn-extras/skills/google-sheets-sprint-order/SKILL.md +277 -0
  209. package/claude-assets/cfn-extras/skills/google-sheets-sprint-order/order-sprints.sh +233 -0
  210. package/claude-assets/cfn-extras/skills/google-sheets-validation/SKILL.md +352 -0
  211. package/claude-assets/cfn-extras/skills/google-sheets-validation/test.sh +355 -0
  212. package/claude-assets/cfn-extras/skills/google-sheets-validation/validate-state.sh +374 -0
  213. package/claude-assets/cfn-extras/skills/google-sheets-validation/validate.sh +128 -0
  214. package/claude-assets/commands/cfn-context.md +10 -0
  215. package/claude-assets/commands/cfn-loop-cli.md +44 -14
  216. package/claude-assets/commands/google-sheets/google-sheets-loop.md +289 -0
  217. package/claude-assets/hooks/cfn-pre-execution/SESSION_START_README.md +87 -0
  218. package/claude-assets/hooks/cfn-pre-execution/TEST_SESSION_START.md +128 -0
  219. package/claude-assets/hooks/cfn-pre-execution/session-start-context.sh +111 -0
  220. package/claude-assets/skills/cfn-agent-selection-with-fallback/INTEGRATION_EXAMPLE.md +209 -0
  221. package/claude-assets/skills/cfn-agent-selection-with-fallback/README.md +130 -0
  222. package/claude-assets/skills/cfn-agent-selection-with-fallback/SKILL.md +243 -0
  223. package/claude-assets/skills/cfn-agent-selection-with-fallback/agent-mappings.json +142 -0
  224. package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents.sh +173 -0
  225. package/claude-assets/skills/cfn-agent-selection-with-fallback/task-classifier.sh +71 -0
  226. package/claude-assets/skills/cfn-agent-selection-with-fallback/test-agent-selection.sh +282 -0
  227. package/claude-assets/skills/cfn-agent-selector/SKILL.md +143 -0
  228. package/claude-assets/skills/cfn-agent-selector/select-agents.sh +94 -0
  229. package/claude-assets/skills/cfn-agent-spawning/get-agent-provider-env.sh +22 -2
  230. package/claude-assets/skills/cfn-docker-agent-spawning/spawn-agent.sh +21 -2
  231. package/claude-assets/skills/cfn-docker-coordination/.eslintrc.json +33 -0
  232. package/claude-assets/skills/cfn-docker-coordination/README.md +349 -0
  233. package/claude-assets/skills/cfn-docker-coordination/docker-helpers.sh +433 -0
  234. package/claude-assets/skills/cfn-docker-coordination/jest.config.js +25 -0
  235. package/claude-assets/skills/cfn-docker-coordination/package-lock.json +6827 -0
  236. package/claude-assets/skills/cfn-docker-coordination/package.json +38 -0
  237. package/claude-assets/skills/cfn-docker-coordination/src/agent-container.ts +471 -0
  238. package/claude-assets/skills/cfn-docker-coordination/src/docker-client.ts +483 -0
  239. package/claude-assets/skills/cfn-docker-coordination/src/health-checker.ts +418 -0
  240. package/claude-assets/skills/cfn-docker-coordination/src/index.ts +45 -0
  241. package/claude-assets/skills/cfn-docker-coordination/src/network-manager.ts +377 -0
  242. package/claude-assets/skills/cfn-docker-coordination/src/types.ts +412 -0
  243. package/claude-assets/skills/cfn-docker-coordination/src/volume-manager.ts +389 -0
  244. package/claude-assets/skills/cfn-docker-coordination/tests/agent-container.test.ts +379 -0
  245. package/claude-assets/skills/cfn-docker-coordination/tests/docker-client.test.ts +345 -0
  246. package/claude-assets/skills/cfn-docker-coordination/tests/health-checker.test.ts +535 -0
  247. package/claude-assets/skills/cfn-docker-coordination/tests/integration.test.ts +193 -0
  248. package/claude-assets/skills/cfn-docker-coordination/tests/network-manager.test.ts +352 -0
  249. package/claude-assets/skills/cfn-docker-coordination/tests/setup.ts +36 -0
  250. package/claude-assets/skills/cfn-docker-coordination/tsconfig.json +29 -0
  251. package/claude-assets/skills/cfn-docker-logging/INTEGRATION.md +268 -0
  252. package/claude-assets/skills/cfn-docker-logging/SAMPLE_OUTPUTS.md +237 -0
  253. package/claude-assets/skills/cfn-docker-logging/SKILL.md +442 -0
  254. package/claude-assets/skills/cfn-docker-logging/capture-container-logs.sh +120 -0
  255. package/claude-assets/skills/cfn-docker-logging/enable-logging.sh +430 -0
  256. package/claude-assets/skills/cfn-docker-logging/init-hybrid-logging.sh +210 -0
  257. package/claude-assets/skills/cfn-docker-logging/queries/analytics-summary.sh +87 -0
  258. package/claude-assets/skills/cfn-docker-logging/queries/query-agent-timeline.sh +51 -0
  259. package/claude-assets/skills/cfn-docker-logging/queries/query-consensus-history.sh +56 -0
  260. package/claude-assets/skills/cfn-docker-logging/queries/query-coordination-timeline.sh +39 -0
  261. package/claude-assets/skills/cfn-docker-logging/queries/query-failed-containers.sh +40 -0
  262. package/claude-assets/skills/cfn-docker-logging/queries/query-gate-checks.sh +39 -0
  263. package/claude-assets/skills/cfn-docker-logging/schema.sql +111 -0
  264. package/claude-assets/skills/cfn-docker-logging/sqlite-helpers.sh +240 -0
  265. package/claude-assets/skills/cfn-docker-logging/test-hybrid-logging.sh +331 -0
  266. package/claude-assets/skills/cfn-docker-loop-orchestration/orchestrate.sh +11 -5
  267. package/claude-assets/skills/cfn-docker-redis-coordination/MIGRATION_SUMMARY.md +348 -0
  268. package/claude-assets/skills/cfn-docker-redis-coordination/README.md +294 -0
  269. package/claude-assets/skills/cfn-docker-redis-coordination/jest.config.js +37 -0
  270. package/claude-assets/skills/cfn-docker-redis-coordination/package-lock.json +5259 -0
  271. package/claude-assets/skills/cfn-docker-redis-coordination/package.json +40 -0
  272. package/claude-assets/skills/cfn-docker-redis-coordination/src/coordinator.ts +801 -0
  273. package/claude-assets/skills/cfn-docker-redis-coordination/src/index.ts +42 -0
  274. package/claude-assets/skills/cfn-docker-redis-coordination/src/types.ts +351 -0
  275. package/claude-assets/skills/cfn-docker-redis-coordination/tests/coordinator.test.ts +1464 -0
  276. package/claude-assets/skills/cfn-docker-redis-coordination/tsconfig.json +30 -0
  277. package/claude-assets/skills/cfn-error-logging/.eslintrc.json +57 -0
  278. package/claude-assets/skills/cfn-error-logging/.prettierrc.json +10 -0
  279. package/claude-assets/skills/cfn-error-logging/MIGRATION_SUMMARY.md +485 -0
  280. package/claude-assets/skills/cfn-error-logging/package.json +47 -0
  281. package/claude-assets/skills/cfn-error-logging/src/error-logger.ts +1042 -0
  282. package/claude-assets/skills/cfn-error-logging/src/index.ts +12 -0
  283. package/claude-assets/skills/cfn-error-logging/src/types.ts +456 -0
  284. package/claude-assets/skills/cfn-error-logging/tests/error-logger.test.ts +1302 -0
  285. package/claude-assets/skills/cfn-error-logging/tsconfig.json +38 -0
  286. package/claude-assets/skills/cfn-loop-orchestration/.eslintrc.js +56 -0
  287. package/claude-assets/skills/cfn-loop-orchestration/.prettierrc.json +18 -0
  288. package/claude-assets/skills/cfn-loop-orchestration/README.md +149 -41
  289. package/claude-assets/skills/cfn-loop-orchestration/jest.config.js +67 -0
  290. package/claude-assets/skills/cfn-loop-orchestration/orchestrate-wrapper.sh +268 -0
  291. package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +147 -16
  292. package/claude-assets/skills/cfn-loop-orchestration/package-lock.json +5470 -0
  293. package/claude-assets/skills/cfn-loop-orchestration/package.json +49 -0
  294. package/claude-assets/skills/cfn-loop-orchestration/src/agent-spawner/agent-spawner.ts +34 -0
  295. package/claude-assets/skills/cfn-loop-orchestration/src/gate-checker/gate-checker.ts +36 -0
  296. package/claude-assets/skills/cfn-loop-orchestration/src/index.ts +14 -0
  297. package/claude-assets/skills/cfn-loop-orchestration/src/orchestrator/orchestrator.ts +31 -0
  298. package/claude-assets/skills/cfn-loop-orchestration/src/redis/redis-coordinator.ts +72 -0
  299. package/claude-assets/skills/cfn-loop-orchestration/src/types.ts +188 -0
  300. package/claude-assets/skills/cfn-loop-orchestration/src/utils/logger.ts +32 -0
  301. package/claude-assets/skills/cfn-loop-orchestration/tests/setup.ts +22 -0
  302. package/claude-assets/skills/cfn-loop-orchestration/tests/types.test.ts +132 -0
  303. package/claude-assets/skills/cfn-loop-orchestration/tsconfig.json +54 -0
  304. package/claude-assets/skills/cfn-redis-coordination/bash-wrappers/store-context.sh +23 -0
  305. package/claude-assets/skills/cfn-redis-coordination/dist/agent-logger.d.ts +92 -0
  306. package/claude-assets/skills/cfn-redis-coordination/dist/agent-logger.d.ts.map +1 -0
  307. package/claude-assets/skills/cfn-redis-coordination/dist/agent-logger.js +329 -0
  308. package/claude-assets/skills/cfn-redis-coordination/dist/agent-logger.js.map +1 -0
  309. package/claude-assets/skills/cfn-redis-coordination/dist/agent-recovery.d.ts +75 -0
  310. package/claude-assets/skills/cfn-redis-coordination/dist/agent-recovery.d.ts.map +1 -0
  311. package/claude-assets/skills/cfn-redis-coordination/dist/agent-recovery.js +302 -0
  312. package/claude-assets/skills/cfn-redis-coordination/dist/agent-recovery.js.map +1 -0
  313. package/claude-assets/skills/cfn-redis-coordination/dist/completion-reporter.d.ts +58 -0
  314. package/claude-assets/skills/cfn-redis-coordination/dist/completion-reporter.d.ts.map +1 -0
  315. package/claude-assets/skills/cfn-redis-coordination/dist/completion-reporter.js +237 -0
  316. package/claude-assets/skills/cfn-redis-coordination/dist/completion-reporter.js.map +1 -0
  317. package/claude-assets/skills/cfn-redis-coordination/dist/context-manager.d.ts +63 -0
  318. package/claude-assets/skills/cfn-redis-coordination/dist/context-manager.d.ts.map +1 -0
  319. package/claude-assets/skills/cfn-redis-coordination/dist/context-manager.js +230 -0
  320. package/claude-assets/skills/cfn-redis-coordination/dist/context-manager.js.map +1 -0
  321. package/claude-assets/skills/cfn-redis-coordination/dist/index.d.ts +45 -0
  322. package/claude-assets/skills/cfn-redis-coordination/dist/index.d.ts.map +1 -0
  323. package/claude-assets/skills/cfn-redis-coordination/dist/index.js +114 -0
  324. package/claude-assets/skills/cfn-redis-coordination/dist/index.js.map +1 -0
  325. package/claude-assets/skills/cfn-redis-coordination/dist/mode-detector.d.ts +31 -0
  326. package/claude-assets/skills/cfn-redis-coordination/dist/mode-detector.d.ts.map +1 -0
  327. package/claude-assets/skills/cfn-redis-coordination/dist/mode-detector.js +185 -0
  328. package/claude-assets/skills/cfn-redis-coordination/dist/mode-detector.js.map +1 -0
  329. package/claude-assets/skills/cfn-redis-coordination/dist/redis-client.d.ts +191 -0
  330. package/claude-assets/skills/cfn-redis-coordination/dist/redis-client.d.ts.map +1 -0
  331. package/claude-assets/skills/cfn-redis-coordination/dist/redis-client.js +509 -0
  332. package/claude-assets/skills/cfn-redis-coordination/dist/redis-client.js.map +1 -0
  333. package/claude-assets/skills/cfn-redis-coordination/dist/result-collector.d.ts +75 -0
  334. package/claude-assets/skills/cfn-redis-coordination/dist/result-collector.d.ts.map +1 -0
  335. package/claude-assets/skills/cfn-redis-coordination/dist/result-collector.js +281 -0
  336. package/claude-assets/skills/cfn-redis-coordination/dist/result-collector.js.map +1 -0
  337. package/claude-assets/skills/cfn-redis-coordination/dist/swarm-manager.d.ts +75 -0
  338. package/claude-assets/skills/cfn-redis-coordination/dist/swarm-manager.d.ts.map +1 -0
  339. package/claude-assets/skills/cfn-redis-coordination/dist/swarm-manager.js +354 -0
  340. package/claude-assets/skills/cfn-redis-coordination/dist/swarm-manager.js.map +1 -0
  341. package/claude-assets/skills/cfn-redis-coordination/dist/task-analyzer.d.ts +62 -0
  342. package/claude-assets/skills/cfn-redis-coordination/dist/task-analyzer.d.ts.map +1 -0
  343. package/claude-assets/skills/cfn-redis-coordination/dist/task-analyzer.js +305 -0
  344. package/claude-assets/skills/cfn-redis-coordination/dist/task-analyzer.js.map +1 -0
  345. package/claude-assets/skills/cfn-redis-coordination/dist/task-executor.d.ts +97 -0
  346. package/claude-assets/skills/cfn-redis-coordination/dist/task-executor.d.ts.map +1 -0
  347. package/claude-assets/skills/cfn-redis-coordination/dist/task-executor.js +283 -0
  348. package/claude-assets/skills/cfn-redis-coordination/dist/task-executor.js.map +1 -0
  349. package/claude-assets/skills/cfn-redis-coordination/dist/types.d.ts +176 -0
  350. package/claude-assets/skills/cfn-redis-coordination/dist/types.d.ts.map +1 -0
  351. package/claude-assets/skills/cfn-redis-coordination/dist/types.js +81 -0
  352. package/claude-assets/skills/cfn-redis-coordination/dist/types.js.map +1 -0
  353. package/claude-assets/skills/cfn-redis-coordination/dist/waiting-coordinator.d.ts +86 -0
  354. package/claude-assets/skills/cfn-redis-coordination/dist/waiting-coordinator.d.ts.map +1 -0
  355. package/claude-assets/skills/cfn-redis-coordination/dist/waiting-coordinator.js +419 -0
  356. package/claude-assets/skills/cfn-redis-coordination/dist/waiting-coordinator.js.map +1 -0
  357. package/claude-assets/skills/cfn-redis-coordination/docs/migration/PHASE_3_REDIS_COORDINATION_COMPLETION_REPORT.md +553 -0
  358. package/claude-assets/skills/cfn-redis-coordination/invoke-waiting-mode.sh +3 -2
  359. package/claude-assets/skills/cfn-redis-coordination/jest.config.js +23 -0
  360. package/claude-assets/skills/cfn-redis-coordination/package-lock.json +5272 -0
  361. package/claude-assets/skills/cfn-redis-coordination/package.json +45 -0
  362. package/claude-assets/skills/cfn-redis-coordination/redis-cli-wrapper.sh +21 -8
  363. package/claude-assets/skills/cfn-redis-coordination/redis-functions.sh +3 -2
  364. package/claude-assets/skills/cfn-redis-coordination/src/agent-logger.ts +446 -0
  365. package/claude-assets/skills/cfn-redis-coordination/src/agent-recovery.ts +454 -0
  366. package/claude-assets/skills/cfn-redis-coordination/src/completion-reporter.ts +396 -0
  367. package/claude-assets/skills/cfn-redis-coordination/src/context-manager.ts +327 -0
  368. package/claude-assets/skills/cfn-redis-coordination/src/index.ts +82 -0
  369. package/claude-assets/skills/cfn-redis-coordination/src/mode-detector.ts +155 -0
  370. package/claude-assets/skills/cfn-redis-coordination/src/redis/redis-client.ts +305 -0
  371. package/claude-assets/skills/cfn-redis-coordination/src/redis/redis-functions.ts +283 -0
  372. package/claude-assets/skills/cfn-redis-coordination/src/redis-client.ts +654 -0
  373. package/claude-assets/skills/cfn-redis-coordination/src/result-collector.ts +437 -0
  374. package/claude-assets/skills/cfn-redis-coordination/src/swarm-manager.ts +494 -0
  375. package/claude-assets/skills/cfn-redis-coordination/src/task-analyzer.ts +404 -0
  376. package/claude-assets/skills/cfn-redis-coordination/src/task-executor.ts +423 -0
  377. package/claude-assets/skills/cfn-redis-coordination/src/types.ts +235 -0
  378. package/claude-assets/skills/cfn-redis-coordination/src/waiting-coordinator.ts +587 -0
  379. package/claude-assets/skills/cfn-redis-coordination/test-connection-attempts.js +70 -0
  380. package/claude-assets/skills/cfn-redis-coordination/test-mode-simple.js +121 -0
  381. package/claude-assets/skills/cfn-redis-coordination/test-redis-check.js +84 -0
  382. package/claude-assets/skills/cfn-redis-coordination/test-task-mode-redis.cjs +391 -0
  383. package/claude-assets/skills/cfn-redis-coordination/tests/coordination.test.ts +779 -0
  384. package/claude-assets/skills/cfn-redis-coordination/tsconfig.json +31 -0
  385. package/claude-assets/skills/cfn-skill-propagation/README.md +233 -0
  386. package/claude-assets/skills/cfn-skill-propagation/package-lock.json +5174 -0
  387. package/claude-assets/skills/cfn-skill-propagation/package.json +52 -0
  388. package/claude-assets/skills/cfn-skill-propagation/propagate-skill-update.sh +32 -0
  389. package/claude-assets/skills/cfn-skill-propagation/src/cli.ts +75 -0
  390. package/claude-assets/skills/cfn-skill-propagation/src/database-adapter.ts +239 -0
  391. package/claude-assets/skills/cfn-skill-propagation/src/file-system-adapter.ts +113 -0
  392. package/claude-assets/skills/cfn-skill-propagation/src/index.ts +72 -0
  393. package/claude-assets/skills/cfn-skill-propagation/src/logger.ts +43 -0
  394. package/claude-assets/skills/cfn-skill-propagation/src/metadata-parser.ts +154 -0
  395. package/claude-assets/skills/cfn-skill-propagation/src/skill-propagator.ts +274 -0
  396. package/claude-assets/skills/cfn-skill-propagation/src/skill-validator.ts +179 -0
  397. package/claude-assets/skills/cfn-skill-propagation/src/types.ts +143 -0
  398. package/claude-assets/skills/cfn-skill-propagation/src/version-manager.ts +118 -0
  399. package/claude-assets/skills/cfn-skill-propagation/tests/file-system-adapter.test.ts +91 -0
  400. package/claude-assets/skills/cfn-skill-propagation/tests/metadata-parser.test.ts +176 -0
  401. package/claude-assets/skills/cfn-skill-propagation/tests/skill-propagator.test.ts +209 -0
  402. package/claude-assets/skills/cfn-skill-propagation/tests/skill-validator.test.ts +203 -0
  403. package/claude-assets/skills/cfn-skill-propagation/tests/version-manager.test.ts +115 -0
  404. package/claude-assets/skills/cfn-skill-propagation/tsconfig.json +34 -0
  405. package/claude-assets/skills/task-classifier/SKILL.md +81 -0
  406. package/claude-assets/skills/task-classifier/classify-task.sh +62 -0
  407. package/claude-assets/skills/workflow-codification/package-lock.json +5170 -0
  408. package/claude-assets/skills/workflow-codification/package.json +30 -0
  409. package/claude-assets/skills/workflow-codification/src/index.ts +24 -0
  410. package/claude-assets/skills/workflow-codification/src/pattern-analyzer.ts +537 -0
  411. package/claude-assets/skills/workflow-codification/src/types.ts +180 -0
  412. package/claude-assets/skills/workflow-codification/tests/pattern-analyzer.test.ts +960 -0
  413. package/claude-assets/skills/workflow-codification/tsconfig.json +34 -0
  414. package/claude-assets/skills/workflow-codification/workflow-codification.db +0 -0
  415. package/dist/agent-spawner/agent-spawner.js +448 -0
  416. package/dist/agent-spawner/agent-spawner.js.map +1 -0
  417. package/dist/agent-spawner/index.js +10 -0
  418. package/dist/agent-spawner/index.js.map +1 -0
  419. package/dist/agent-spawner/types.js +14 -0
  420. package/dist/agent-spawner/types.js.map +1 -0
  421. package/dist/cli/agent-executor.js +47 -1
  422. package/dist/cli/agent-executor.js.map +1 -1
  423. package/dist/cli/agent-spawn.js +4 -1
  424. package/dist/cli/agent-spawn.js.map +1 -1
  425. package/dist/cli/config-manager.js +109 -91
  426. package/dist/cli/config-manager.js.map +1 -1
  427. package/dist/cli/conversation-fork-cleanup.js +201 -0
  428. package/dist/cli/conversation-fork-cleanup.js.map +1 -0
  429. package/dist/cli/conversation-fork.js +16 -3
  430. package/dist/cli/conversation-fork.js.map +1 -1
  431. package/dist/cli/tool-executor.js +3 -1
  432. package/dist/cli/tool-executor.js.map +1 -1
  433. package/dist/gate-checker/gate-checker.js +292 -0
  434. package/dist/gate-checker/gate-checker.js.map +1 -0
  435. package/dist/gate-checker/types.js +94 -0
  436. package/dist/gate-checker/types.js.map +1 -0
  437. package/dist/lib/database-service/connection-pool-manager.js +2 -1
  438. package/dist/lib/database-service/connection-pool-manager.js.map +1 -1
  439. package/dist/orchestrator/index.js +10 -0
  440. package/dist/orchestrator/index.js.map +1 -0
  441. package/dist/orchestrator/orchestrate.js +496 -0
  442. package/dist/orchestrator/orchestrate.js.map +1 -0
  443. package/dist/orchestrator/types.js +58 -0
  444. package/dist/orchestrator/types.js.map +1 -0
  445. package/docs/BUG_19_MEMORY_LEAK_TASK_MODE.md +405 -0
  446. package/docs/MEMORY_CLEANUP_GUIDE.md +358 -0
  447. package/docs/MEMORY_LEAK_FIX_SUMMARY.md +322 -0
  448. package/docs/REDIS_CLEANUP_EXECUTIVE_SUMMARY.md +319 -0
  449. package/docs/REDIS_CLEANUP_VERIFICATION_REPORT.md +574 -0
  450. package/package.json +208 -201
  451. package/readme/README.md +34 -1
  452. package/scripts/switch-api.sh +142 -4
  453. package/scripts/verify-no-secrets.sh +6 -13
  454. package/scripts/verify-redis-cleanup.sh +173 -0
  455. package/tests/README.md +201 -0
  456. package/tests/test-memory-leak-task-mode.sh +435 -0
@@ -0,0 +1,142 @@
1
+ {
2
+ "categories": {
3
+ "backend-api": {
4
+ "loop3": [
5
+ "backend-developer",
6
+ "api-gateway-specialist"
7
+ ],
8
+ "loop2": [
9
+ "code-reviewer",
10
+ "tester",
11
+ "api-testing-specialist"
12
+ ],
13
+ "confidence": 0.92
14
+ },
15
+ "fullstack": {
16
+ "loop3": [
17
+ "backend-developer",
18
+ "react-frontend-engineer",
19
+ "typescript-specialist"
20
+ ],
21
+ "loop2": [
22
+ "code-reviewer",
23
+ "tester",
24
+ "integration-tester",
25
+ "playwright-tester"
26
+ ],
27
+ "confidence": 0.90
28
+ },
29
+ "mobile": {
30
+ "loop3": [
31
+ "mobile-dev",
32
+ "backend-developer"
33
+ ],
34
+ "loop2": [
35
+ "code-reviewer",
36
+ "tester",
37
+ "interaction-tester"
38
+ ],
39
+ "confidence": 0.88
40
+ },
41
+ "infrastructure": {
42
+ "loop3": [
43
+ "devops-engineer",
44
+ "docker-specialist",
45
+ "kubernetes-specialist"
46
+ ],
47
+ "loop2": [
48
+ "code-reviewer",
49
+ "tester",
50
+ "chaos-engineering-specialist"
51
+ ],
52
+ "confidence": 0.93
53
+ },
54
+ "security": {
55
+ "loop3": [
56
+ "security-specialist",
57
+ "backend-developer"
58
+ ],
59
+ "loop2": [
60
+ "code-reviewer",
61
+ "tester",
62
+ "security-specialist"
63
+ ],
64
+ "confidence": 0.95
65
+ },
66
+ "frontend": {
67
+ "loop3": [
68
+ "react-frontend-engineer",
69
+ "typescript-specialist",
70
+ "ui-designer"
71
+ ],
72
+ "loop2": [
73
+ "code-reviewer",
74
+ "tester",
75
+ "playwright-tester"
76
+ ],
77
+ "confidence": 0.89
78
+ },
79
+ "database": {
80
+ "loop3": [
81
+ "database-architect",
82
+ "backend-developer"
83
+ ],
84
+ "loop2": [
85
+ "code-reviewer",
86
+ "tester",
87
+ "data-engineer"
88
+ ],
89
+ "confidence": 0.91
90
+ },
91
+ "performance": {
92
+ "loop3": [
93
+ "backend-developer",
94
+ "perf-analyzer"
95
+ ],
96
+ "loop2": [
97
+ "code-reviewer",
98
+ "tester",
99
+ "performance-benchmarker"
100
+ ],
101
+ "confidence": 0.87
102
+ },
103
+ "default": {
104
+ "loop3": [
105
+ "backend-developer",
106
+ "devops-engineer"
107
+ ],
108
+ "loop2": [
109
+ "code-reviewer",
110
+ "tester",
111
+ "code-quality-validator"
112
+ ],
113
+ "confidence": 0.70
114
+ }
115
+ },
116
+ "product_owner": "product-owner",
117
+ "agent_aliases": {
118
+ "backend-developer": "developers/backend-developer.md",
119
+ "api-gateway-specialist": "developers/api-gateway-specialist.md",
120
+ "react-frontend-engineer": "developers/frontend/react-frontend-engineer.md",
121
+ "typescript-specialist": "developers/frontend/typescript-specialist.md",
122
+ "mobile-dev": "developers/frontend/mobile-dev.md",
123
+ "devops-engineer": "dev-ops/devops-engineer.md",
124
+ "docker-specialist": "dev-ops/docker-specialist.md",
125
+ "kubernetes-specialist": "dev-ops/kubernetes-specialist.md",
126
+ "security-specialist": "reviewers/quality/security-specialist.md",
127
+ "ui-designer": "developers/frontend/ui-designer.md",
128
+ "database-architect": "developers/database/database-architect.md",
129
+ "perf-analyzer": "reviewers/quality/perf-analyzer.md",
130
+ "code-reviewer": "reviewers/code-reviewer.md",
131
+ "tester": "testers/tester.md",
132
+ "api-testing-specialist": "testers/api-testing-specialist.md",
133
+ "integration-tester": "testers/integration-tester.md",
134
+ "playwright-tester": "testers/playwright-tester.md",
135
+ "interaction-tester": "testers/interaction-tester.md",
136
+ "chaos-engineering-specialist": "testers/chaos-engineering-specialist.md",
137
+ "data-engineer": "developers/data/data-engineer.md",
138
+ "performance-benchmarker": "reviewers/quality/performance-benchmarker.md",
139
+ "code-quality-validator": "reviewers/quality/code-quality-validator.md",
140
+ "product-owner": "product-owners/product-owner.md"
141
+ }
142
+ }
@@ -0,0 +1,173 @@
1
+ #!/usr/bin/env bash
2
+ set -eu
3
+
4
+ # Agent Selection with Fallback
5
+ # Usage: ./select-agents.sh "task description" [--min-validators N]
6
+
7
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
+ AGENTS_DIR="${SCRIPT_DIR}/../../agents/cfn-dev-team"
9
+ MAPPINGS_FILE="${SCRIPT_DIR}/agent-mappings.json"
10
+ CLASSIFIER="${SCRIPT_DIR}/task-classifier.sh"
11
+
12
+ # Check dependencies
13
+ if ! command -v jq &> /dev/null; then
14
+ echo '{"error": "jq not installed", "loop3": ["backend-developer"], "loop2": ["code-reviewer", "tester"], "product_owner": "product-owner", "category": "default", "confidence": 0.0}' >&2
15
+ exit 1
16
+ fi
17
+
18
+ # Parse arguments
19
+ TASK_DESCRIPTION="${1:-}"
20
+ MIN_VALIDATORS=3
21
+
22
+ shift || true
23
+ while [ $# -gt 0 ]; do
24
+ case "$1" in
25
+ --min-validators)
26
+ MIN_VALIDATORS="$2"
27
+ shift 2
28
+ ;;
29
+ *)
30
+ shift
31
+ ;;
32
+ esac
33
+ done
34
+
35
+ # Validate task description
36
+ if [ -z "$TASK_DESCRIPTION" ]; then
37
+ echo '{"error": "empty task description", "loop3": ["backend-developer", "devops-engineer"], "loop2": ["code-reviewer", "tester", "code-quality-validator"], "product_owner": "product-owner", "category": "default", "confidence": 0.70}' | jq -c .
38
+ exit 0
39
+ fi
40
+
41
+ # Classify task
42
+ CATEGORY="default"
43
+ if [ -x "$CLASSIFIER" ]; then
44
+ CATEGORY=$("$CLASSIFIER" "$TASK_DESCRIPTION" || echo "default")
45
+ fi
46
+
47
+ # Validate category exists in agent-mappings.json
48
+ if [ -f "$MAPPINGS_FILE" ]; then
49
+ VALID_CATEGORIES=$(jq -r '.categories | keys[]' "$MAPPINGS_FILE" 2>/dev/null | tr '\n' '|' | sed 's/|$//')
50
+ if [[ ! "$CATEGORY" =~ ^($VALID_CATEGORIES)$ ]]; then
51
+ echo "Warning: Invalid category '$CATEGORY', falling back to 'default'" >&2
52
+ CATEGORY="default"
53
+ fi
54
+ fi
55
+
56
+ # Load agent mappings
57
+ if [ ! -f "$MAPPINGS_FILE" ]; then
58
+ # Hardcoded fallback if mappings file missing
59
+ echo '{"loop3": ["backend-developer", "devops-engineer"], "loop2": ["code-reviewer", "tester", "code-quality-validator"], "product_owner": "product-owner", "category": "default", "confidence": 0.70}' | jq -c .
60
+ exit 0
61
+ fi
62
+
63
+ MAPPINGS=$(cat "$MAPPINGS_FILE")
64
+
65
+ # Extract agents for category
66
+ LOOP3_AGENTS=$(echo "$MAPPINGS" | jq -r --arg cat "$CATEGORY" '.categories[$cat].loop3[]? // empty' | jq -R -s -c 'split("\n") | map(select(length > 0))')
67
+ LOOP2_AGENTS=$(echo "$MAPPINGS" | jq -r --arg cat "$CATEGORY" '.categories[$cat].loop2[]? // empty' | jq -R -s -c 'split("\n") | map(select(length > 0))')
68
+ CONFIDENCE=$(echo "$MAPPINGS" | jq -r --arg cat "$CATEGORY" '.categories[$cat].confidence // 0.70')
69
+ PRODUCT_OWNER=$(echo "$MAPPINGS" | jq -r '.product_owner // "product-owner"')
70
+
71
+ # Fallback if empty arrays
72
+ if [ "$(echo "$LOOP3_AGENTS" | jq 'length')" -eq 0 ]; then
73
+ echo "[WARN] Empty Loop 3 agents for category '$CATEGORY', using default" >&2
74
+ LOOP3_AGENTS=$(echo "$MAPPINGS" | jq -r '.categories.default.loop3[]' | jq -R -s -c 'split("\n") | map(select(length > 0))')
75
+ CONFIDENCE=0.70
76
+ fi
77
+
78
+ if [ "$(echo "$LOOP2_AGENTS" | jq 'length')" -eq 0 ]; then
79
+ echo "[WARN] Empty Loop 2 agents for category '$CATEGORY', using default" >&2
80
+ LOOP2_AGENTS=$(echo "$MAPPINGS" | jq -r '.categories.default.loop2[]' | jq -R -s -c 'split("\n") | map(select(length > 0))')
81
+ CONFIDENCE=0.70
82
+ fi
83
+
84
+ # Validate agents exist in agent profiles
85
+ AGENT_ALIASES=$(echo "$MAPPINGS" | jq -r '.agent_aliases')
86
+
87
+ validate_agent() {
88
+ local agent="$1"
89
+ local agent_path=$(echo "$AGENT_ALIASES" | jq -r --arg agent "$agent" '.[$agent] // empty')
90
+
91
+ if [ -z "$agent_path" ]; then
92
+ return 1
93
+ fi
94
+
95
+ local full_path="${AGENTS_DIR}/${agent_path}"
96
+
97
+ # Validate file exists
98
+ if [ ! -f "$full_path" ]; then
99
+ return 1
100
+ fi
101
+
102
+ # Validate realpath stays within AGENTS_DIR (prevent path traversal)
103
+ local real_path=$(realpath "$full_path" 2>/dev/null || echo "")
104
+ local real_agents_dir=$(realpath "$AGENTS_DIR" 2>/dev/null || echo "")
105
+
106
+ if [[ -z "$real_path" || -z "$real_agents_dir" ]]; then
107
+ return 1
108
+ fi
109
+
110
+ # Check if resolved path is inside agents directory
111
+ if [[ "$real_path" != "$real_agents_dir"* ]]; then
112
+ echo "Warning: Agent path '$agent_path' escapes agents directory" >&2
113
+ return 1
114
+ fi
115
+
116
+ return 0
117
+ }
118
+
119
+ # Validate and replace invalid Loop 3 agents
120
+ VALID_LOOP3=()
121
+ for agent in $(echo "$LOOP3_AGENTS" | jq -r '.[]'); do
122
+ if validate_agent "$agent"; then
123
+ VALID_LOOP3+=("$agent")
124
+ else
125
+ echo "[WARN] Invalid Loop 3 agent '$agent', replacing with backend-developer" >&2
126
+ VALID_LOOP3+=("backend-developer")
127
+ fi
128
+ done
129
+
130
+ # Ensure minimum 2 Loop 3 agents
131
+ if [ ${#VALID_LOOP3[@]} -lt 2 ]; then
132
+ echo "[WARN] Less than 2 Loop 3 agents, adding devops-engineer" >&2
133
+ VALID_LOOP3+=("devops-engineer")
134
+ fi
135
+
136
+ # Validate and replace invalid Loop 2 agents
137
+ VALID_LOOP2=()
138
+ for agent in $(echo "$LOOP2_AGENTS" | jq -r '.[]'); do
139
+ if validate_agent "$agent"; then
140
+ VALID_LOOP2+=("$agent")
141
+ else
142
+ echo "[WARN] Invalid Loop 2 agent '$agent', replacing with tester" >&2
143
+ VALID_LOOP2+=("tester")
144
+ fi
145
+ done
146
+
147
+ # Ensure minimum validators (default 3)
148
+ while [ ${#VALID_LOOP2[@]} -lt $MIN_VALIDATORS ]; do
149
+ echo "[WARN] Less than $MIN_VALIDATORS Loop 2 validators, adding code-quality-validator" >&2
150
+ VALID_LOOP2+=("code-quality-validator")
151
+ done
152
+
153
+ # Convert arrays to JSON
154
+ LOOP3_JSON=$(printf '%s\n' "${VALID_LOOP3[@]}" | jq -R . | jq -s -c .)
155
+ LOOP2_JSON=$(printf '%s\n' "${VALID_LOOP2[@]}" | jq -R . | jq -s -c .)
156
+
157
+ # Build output JSON
158
+ OUTPUT=$(jq -n \
159
+ --argjson loop3 "$LOOP3_JSON" \
160
+ --argjson loop2 "$LOOP2_JSON" \
161
+ --arg product_owner "$PRODUCT_OWNER" \
162
+ --arg category "$CATEGORY" \
163
+ --argjson confidence "$CONFIDENCE" \
164
+ '{
165
+ loop3: $loop3,
166
+ loop2: $loop2,
167
+ product_owner: $product_owner,
168
+ category: $category,
169
+ confidence: $confidence
170
+ }')
171
+
172
+ echo "$OUTPUT" | jq -c .
173
+ exit 0
@@ -0,0 +1,71 @@
1
+ #!/usr/bin/env bash
2
+ set -eu
3
+
4
+ # Task Classifier - Categorize tasks into predefined types
5
+ # Usage: ./task-classifier.sh "task description"
6
+
7
+ TASK_DESCRIPTION="${1:-}"
8
+
9
+ if [ -z "$TASK_DESCRIPTION" ]; then
10
+ echo "default"
11
+ exit 0
12
+ fi
13
+
14
+ # Convert to lowercase for matching
15
+ TASK_LOWER=$(echo "$TASK_DESCRIPTION" | tr '[:upper:]' '[:lower:]')
16
+
17
+ # Classification logic (priority order matters)
18
+
19
+ # Security (highest priority - security-critical)
20
+ if echo "$TASK_LOWER" | grep -qE "(security|vulnerability|exploit|encryption|ssl|tls|certificate|oauth|saml|rbac|permission|auth|jwt|authentication|authorization)"; then
21
+ echo "security"
22
+ exit 0
23
+ fi
24
+
25
+ # Infrastructure (DevOps, Docker, K8s)
26
+ if echo "$TASK_LOWER" | grep -qE "(docker|kubernetes|k8s|helm|deployment|ci/cd|pipeline|aws|gcp|azure|cloud|terraform|ansible|infrastructure)"; then
27
+ echo "infrastructure"
28
+ exit 0
29
+ fi
30
+
31
+ # Mobile (iOS, Android, React Native)
32
+ if echo "$TASK_LOWER" | grep -qE "(mobile|ios|android|react-native|react native|swift|kotlin|flutter|app store|play store)"; then
33
+ echo "mobile"
34
+ exit 0
35
+ fi
36
+
37
+ # Fullstack (Frontend + Backend keywords)
38
+ if echo "$TASK_LOWER" | grep -qE "(fullstack|full-stack|full stack)" || \
39
+ (echo "$TASK_LOWER" | grep -qE "(react|vue|angular|svelte|frontend|ui)" && \
40
+ echo "$TASK_LOWER" | grep -qE "(api|backend|server|database|endpoint)"); then
41
+ echo "fullstack"
42
+ exit 0
43
+ fi
44
+
45
+ # Performance (Optimization, benchmarking) - Check early due to broad keywords
46
+ if echo "$TASK_LOWER" | grep -qE "(performance|benchmark|latency|throughput|profiling|memory leak|cpu usage|slow|optimize|optimiz)"; then
47
+ echo "performance"
48
+ exit 0
49
+ fi
50
+
51
+ # Database (Schema, migrations, design)
52
+ if echo "$TASK_LOWER" | grep -qE "(schema|migration|index|database.*query|sql|nosql|postgres|mongodb|redis|mysql|database design|table design|user.*table|create.*table)"; then
53
+ echo "database"
54
+ exit 0
55
+ fi
56
+
57
+ # Frontend (React, TypeScript, UI/UX)
58
+ if echo "$TASK_LOWER" | grep -qE "(react|vue|angular|svelte|typescript|javascript|css|scss|tailwind|ui|ux|design|component|frontend|next\.js|remix)"; then
59
+ echo "frontend"
60
+ exit 0
61
+ fi
62
+
63
+ # Backend API (REST, GraphQL, endpoints)
64
+ if echo "$TASK_LOWER" | grep -qE "(api|rest|graphql|endpoint|middleware|express|fastify|nest\.js|backend|server|microservice)"; then
65
+ echo "backend-api"
66
+ exit 0
67
+ fi
68
+
69
+ # Default fallback
70
+ echo "default"
71
+ exit 0
@@ -0,0 +1,282 @@
1
+ #!/usr/bin/env bash
2
+ set -eu
3
+
4
+ # Test Suite for Agent Selection Skill
5
+ # Tests classification, selection, fallback, and validation
6
+
7
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
+ SELECT_SCRIPT="${SCRIPT_DIR}/select-agents.sh"
9
+ CLASSIFIER="${SCRIPT_DIR}/task-classifier.sh"
10
+
11
+ # Colors for output
12
+ GREEN='\033[0;32m'
13
+ RED='\033[0;31m'
14
+ YELLOW='\033[1;33m'
15
+ NC='\033[0m' # No Color
16
+
17
+ TESTS_PASSED=0
18
+ TESTS_FAILED=0
19
+
20
+ # Test helper functions
21
+ assert_equals() {
22
+ local expected="$1"
23
+ local actual="$2"
24
+ local test_name="$3"
25
+
26
+ if [ "$expected" = "$actual" ]; then
27
+ echo -e "${GREEN}✓${NC} $test_name"
28
+ ((TESTS_PASSED++))
29
+ else
30
+ echo -e "${RED}✗${NC} $test_name"
31
+ echo " Expected: $expected"
32
+ echo " Got: $actual"
33
+ ((TESTS_FAILED++))
34
+ fi
35
+ }
36
+
37
+ assert_not_empty() {
38
+ local value="$1"
39
+ local test_name="$2"
40
+
41
+ if [ -n "$value" ] && [ "$value" != "[]" ] && [ "$value" != "null" ]; then
42
+ echo -e "${GREEN}✓${NC} $test_name"
43
+ ((TESTS_PASSED++))
44
+ else
45
+ echo -e "${RED}✗${NC} $test_name"
46
+ echo " Value is empty or null: $value"
47
+ ((TESTS_FAILED++))
48
+ fi
49
+ }
50
+
51
+ assert_min_length() {
52
+ local array_json="$1"
53
+ local min_length="$2"
54
+ local test_name="$3"
55
+
56
+ local actual_length=$(echo "$array_json" | jq 'length')
57
+
58
+ if [ "$actual_length" -ge "$min_length" ]; then
59
+ echo -e "${GREEN}✓${NC} $test_name (length: $actual_length)"
60
+ ((TESTS_PASSED++))
61
+ else
62
+ echo -e "${RED}✗${NC} $test_name"
63
+ echo " Expected min length: $min_length"
64
+ echo " Got: $actual_length"
65
+ ((TESTS_FAILED++))
66
+ fi
67
+ }
68
+
69
+ echo "======================================"
70
+ echo "Agent Selection Skill Test Suite"
71
+ echo "======================================"
72
+ echo ""
73
+
74
+ # Test 1: Task Classification
75
+ echo "Test Group: Task Classification"
76
+ echo "--------------------------------------"
77
+
78
+ test_classifier() {
79
+ local task="$1"
80
+ local expected_category="$2"
81
+ local actual_category=$("$CLASSIFIER" "$task")
82
+ assert_equals "$expected_category" "$actual_category" "Classify: '$task'"
83
+ }
84
+
85
+ test_classifier "Implement JWT authentication API" "security"
86
+ test_classifier "Deploy Kubernetes cluster with Helm" "infrastructure"
87
+ test_classifier "Build React dashboard with TypeScript" "frontend"
88
+ test_classifier "Create mobile app for iOS and Android" "mobile"
89
+ test_classifier "Optimize database query performance" "performance"
90
+ test_classifier "Design database schema for users" "database"
91
+ test_classifier "Build fullstack application with Next.js" "fullstack"
92
+ test_classifier "Create REST API with Express" "backend-api"
93
+ test_classifier "Random unclassified task xyz" "default"
94
+
95
+ echo ""
96
+
97
+ # Test 2: Agent Selection Output Format
98
+ echo "Test Group: Agent Selection Output"
99
+ echo "--------------------------------------"
100
+
101
+ RESULT=$("$SELECT_SCRIPT" "Implement JWT authentication")
102
+
103
+ # Validate JSON structure
104
+ assert_not_empty "$(echo "$RESULT" | jq -r '.loop3')" "Loop 3 agents present"
105
+ assert_not_empty "$(echo "$RESULT" | jq -r '.loop2')" "Loop 2 validators present"
106
+ assert_not_empty "$(echo "$RESULT" | jq -r '.product_owner')" "Product owner present"
107
+ assert_not_empty "$(echo "$RESULT" | jq -r '.category')" "Category present"
108
+ assert_not_empty "$(echo "$RESULT" | jq -r '.confidence')" "Confidence score present"
109
+
110
+ echo ""
111
+
112
+ # Test 3: Minimum Agent Counts
113
+ echo "Test Group: Minimum Agent Counts"
114
+ echo "--------------------------------------"
115
+
116
+ test_min_agents() {
117
+ local task="$1"
118
+ local min_loop3="$2"
119
+ local min_loop2="$3"
120
+
121
+ local result=$("$SELECT_SCRIPT" "$task")
122
+ local loop3=$(echo "$result" | jq -c '.loop3')
123
+ local loop2=$(echo "$result" | jq -c '.loop2')
124
+
125
+ assert_min_length "$loop3" "$min_loop3" "Min Loop 3 agents for: '$task'"
126
+ assert_min_length "$loop2" "$min_loop2" "Min Loop 2 validators for: '$task'"
127
+ }
128
+
129
+ test_min_agents "Implement JWT authentication" 2 3
130
+ test_min_agents "Deploy Docker containers" 2 3
131
+ test_min_agents "Build React UI" 2 3
132
+ test_min_agents "Mobile app development" 2 3
133
+
134
+ echo ""
135
+
136
+ # Test 4: Category-Specific Selections
137
+ echo "Test Group: Category-Specific Agent Selection"
138
+ echo "--------------------------------------"
139
+
140
+ test_category_agents() {
141
+ local task="$1"
142
+ local expected_category="$2"
143
+ local expected_loop3_agent="$3" # At least one of these should be present
144
+
145
+ local result=$("$SELECT_SCRIPT" "$task")
146
+ local category=$(echo "$result" | jq -r '.category')
147
+ local loop3=$(echo "$result" | jq -r '.loop3[]' | tr '\n' ' ')
148
+
149
+ assert_equals "$expected_category" "$category" "Category for: '$task'"
150
+
151
+ if echo "$loop3" | grep -q "$expected_loop3_agent"; then
152
+ echo -e "${GREEN}✓${NC} Loop 3 includes '$expected_loop3_agent' for: '$task'"
153
+ ((TESTS_PASSED++))
154
+ else
155
+ echo -e "${RED}✗${NC} Loop 3 missing '$expected_loop3_agent' for: '$task'"
156
+ echo " Loop 3 agents: $loop3"
157
+ ((TESTS_FAILED++))
158
+ fi
159
+ }
160
+
161
+ test_category_agents "Implement REST API with Express" "backend-api" "backend-developer"
162
+ test_category_agents "Deploy with Kubernetes" "infrastructure" "devops-engineer"
163
+ test_category_agents "Build React components" "frontend" "react-frontend-engineer"
164
+ test_category_agents "Fix security vulnerability" "security" "security-specialist"
165
+ test_category_agents "Create iOS mobile app" "mobile" "mobile-dev"
166
+
167
+ echo ""
168
+
169
+ # Test 5: Fallback Behavior
170
+ echo "Test Group: Fallback Behavior"
171
+ echo "--------------------------------------"
172
+
173
+ # Test empty task description
174
+ EMPTY_RESULT=$("$SELECT_SCRIPT" "")
175
+ assert_not_empty "$(echo "$EMPTY_RESULT" | jq -r '.loop3')" "Empty task: Loop 3 fallback"
176
+ assert_not_empty "$(echo "$EMPTY_RESULT" | jq -r '.loop2')" "Empty task: Loop 2 fallback"
177
+
178
+ EMPTY_CATEGORY=$(echo "$EMPTY_RESULT" | jq -r '.category')
179
+ assert_equals "default" "$EMPTY_CATEGORY" "Empty task: default category"
180
+
181
+ # Test unclassified task
182
+ UNCLASS_RESULT=$("$SELECT_SCRIPT" "Some random xyz task qwerty")
183
+ assert_not_empty "$(echo "$UNCLASS_RESULT" | jq -r '.loop3')" "Unclassified: Loop 3 fallback"
184
+ assert_not_empty "$(echo "$UNCLASS_RESULT" | jq -r '.loop2')" "Unclassified: Loop 2 fallback"
185
+
186
+ echo ""
187
+
188
+ # Test 6: Confidence Scoring
189
+ echo "Test Group: Confidence Scoring"
190
+ echo "--------------------------------------"
191
+
192
+ test_confidence_range() {
193
+ local task="$1"
194
+ local min_confidence="$2"
195
+
196
+ local result=$("$SELECT_SCRIPT" "$task")
197
+ local confidence=$(echo "$result" | jq -r '.confidence')
198
+
199
+ # Compare floats using awk
200
+ if awk -v conf="$confidence" -v min="$min_confidence" 'BEGIN {exit !(conf >= min)}'; then
201
+ echo -e "${GREEN}✓${NC} Confidence ≥ $min_confidence for: '$task' (got: $confidence)"
202
+ ((TESTS_PASSED++))
203
+ else
204
+ echo -e "${RED}✗${NC} Confidence < $min_confidence for: '$task' (got: $confidence)"
205
+ ((TESTS_FAILED++))
206
+ fi
207
+ }
208
+
209
+ test_confidence_range "Implement JWT authentication API" 0.85
210
+ test_confidence_range "Deploy Kubernetes cluster" 0.85
211
+ test_confidence_range "Some random task" 0.70
212
+
213
+ echo ""
214
+
215
+ # Test 7: Custom Validator Count
216
+ echo "Test Group: Custom Validator Count"
217
+ echo "--------------------------------------"
218
+
219
+ CUSTOM_RESULT=$("$SELECT_SCRIPT" "Build API" --min-validators 5)
220
+ CUSTOM_LOOP2=$(echo "$CUSTOM_RESULT" | jq -c '.loop2')
221
+ assert_min_length "$CUSTOM_LOOP2" 5 "Custom min validators (5)"
222
+
223
+ echo ""
224
+
225
+ # Test 8: JSON Parsability
226
+ echo "Test Group: JSON Output Parsability"
227
+ echo "--------------------------------------"
228
+
229
+ PARSE_RESULT=$("$SELECT_SCRIPT" "Test task description")
230
+ if echo "$PARSE_RESULT" | jq empty 2>/dev/null; then
231
+ echo -e "${GREEN}✓${NC} JSON output is valid and parseable"
232
+ ((TESTS_PASSED++))
233
+ else
234
+ echo -e "${RED}✗${NC} JSON output is invalid"
235
+ ((TESTS_FAILED++))
236
+ fi
237
+
238
+ # Test all required fields parseable
239
+ LOOP3_PARSE=$(echo "$PARSE_RESULT" | jq -r '.loop3[]')
240
+ LOOP2_PARSE=$(echo "$PARSE_RESULT" | jq -r '.loop2[]')
241
+ PO_PARSE=$(echo "$PARSE_RESULT" | jq -r '.product_owner')
242
+ CAT_PARSE=$(echo "$PARSE_RESULT" | jq -r '.category')
243
+ CONF_PARSE=$(echo "$PARSE_RESULT" | jq -r '.confidence')
244
+
245
+ assert_not_empty "$LOOP3_PARSE" "Loop 3 array parseable"
246
+ assert_not_empty "$LOOP2_PARSE" "Loop 2 array parseable"
247
+ assert_not_empty "$PO_PARSE" "Product owner parseable"
248
+ assert_not_empty "$CAT_PARSE" "Category parseable"
249
+ assert_not_empty "$CONF_PARSE" "Confidence parseable"
250
+
251
+ echo ""
252
+
253
+ # Test 9: Agent Name Validation
254
+ echo "Test Group: Agent Name Validation"
255
+ echo "--------------------------------------"
256
+
257
+ # Test that common agent names are recognized
258
+ VALID_RESULT=$("$SELECT_SCRIPT" "Build backend API")
259
+ LOOP3_AGENTS=$(echo "$VALID_RESULT" | jq -r '.loop3[]')
260
+
261
+ echo "Selected Loop 3 agents: $(echo "$LOOP3_AGENTS" | tr '\n' ', ' | sed 's/,$//')"
262
+ echo -e "${YELLOW}Note: Agent validation happens internally, checking non-empty output${NC}"
263
+ assert_not_empty "$LOOP3_AGENTS" "Valid agents returned for backend-api task"
264
+
265
+ echo ""
266
+
267
+ # Summary
268
+ echo "======================================"
269
+ echo "Test Summary"
270
+ echo "======================================"
271
+ echo -e "Tests Passed: ${GREEN}$TESTS_PASSED${NC}"
272
+ echo -e "Tests Failed: ${RED}$TESTS_FAILED${NC}"
273
+ echo "Total Tests: $((TESTS_PASSED + TESTS_FAILED))"
274
+ echo ""
275
+
276
+ if [ $TESTS_FAILED -eq 0 ]; then
277
+ echo -e "${GREEN}All tests passed!${NC}"
278
+ exit 0
279
+ else
280
+ echo -e "${RED}Some tests failed!${NC}"
281
+ exit 1
282
+ fi