claude-flow-novice 2.15.11 → 2.16.1
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/cfn-extras/agents/cfn-v3-coordinator.md +517 -0
- package/.claude/cfn-extras/skills/GOOGLE_SHEETS_SKILLS_README.md +1 -1
- package/.claude/cfn-extras/skills/google-sheets-api-coordinator/SKILL.md +1 -1
- package/.claude/cfn-extras/skills/google-sheets-formula-builder/SKILL.md +1 -1
- package/.claude/cfn-extras/skills/google-sheets-progress/SKILL.md +1 -1
- package/.claude/commands/CFN_LOOP_FRONTEND.md +1 -1
- package/.claude/commands/cfn-loop-cli.md +214 -442
- package/.claude/commands/cfn-loop-frontend.md +1 -1
- package/.claude/commands/cfn-loop-task.md +2 -2
- package/.claude/commands/cfn-loop-trigger.md +114 -0
- package/.claude/commands/deprecated/cfn-loop.md +2 -2
- package/.claude/hooks/cfn-invoke-post-edit-ts.sh +100 -0
- package/.claude/hooks/cfn-invoke-post-edit-ts.sh.backup +78 -0
- package/.claude/hooks/cfn-invoke-post-edit.sh +53 -5
- package/.claude/hooks/cfn-invoke-post-edit.sh.backup +87 -0
- package/.claude/hooks/cfn-invoke-pre-edit-ts.sh +116 -0
- package/.claude/hooks/cfn-invoke-pre-edit-ts.sh.backup +94 -0
- package/.claude/hooks/cfn-invoke-pre-edit.sh +22 -0
- package/.claude/hooks/cfn-invoke-pre-edit.sh.backup +88 -0
- package/.claude/hooks/cfn-post-edit.config.json +9 -2
- package/.claude/root-claude-distribute/CFN-CLAUDE.md +1 -1
- package/.claude/skills/cfn-agent-spawning/SKILL.md +48 -1
- package/.claude/skills/cfn-agent-spawning/SKILL.md.backup +135 -0
- package/.claude/skills/cfn-agent-spawning/TYPESCRIPT_MIGRATION.md +567 -0
- package/.claude/skills/cfn-agent-spawning/check-dependencies.sh +22 -0
- package/.claude/skills/{cfn-redis-coordination/check-dependencies.sh → cfn-agent-spawning/check-dependencies.sh.backup} +3 -5
- package/.claude/skills/cfn-agent-spawning/get-agent-provider-env.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/get-agent-provider-env.sh.backup +127 -0
- package/.claude/skills/cfn-agent-spawning/parse-agent-provider.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/parse-agent-provider.sh.backup +59 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent-wrapper.sh +63 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent-wrapper.sh.backup +41 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent.sh +26 -1
- package/.claude/skills/cfn-agent-spawning/spawn-templates.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/spawn-templates.sh.backup +613 -0
- package/.claude/skills/cfn-agent-spawning/spawn-worker.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/spawn-worker.sh.backup +176 -0
- package/.claude/skills/cfn-backlog-management/SKILL.md +1 -1
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/metadata.json +8 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/original +271 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/revert.sh +7 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/metadata.json +8 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/original +325 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/revert.sh +7 -0
- package/.claude/skills/cfn-loop-orchestration/CLI_IMPLEMENTATION_SUMMARY.md +330 -0
- package/.claude/skills/cfn-loop-orchestration/CONFIGURATION_IMPROVEMENTS.md +318 -0
- package/.claude/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_MIGRATION.md +308 -0
- package/.claude/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_QUICK_START.md +378 -0
- package/.claude/skills/cfn-loop-orchestration/E2E_VALIDATION_REPORT.md +262 -0
- package/.claude/skills/cfn-loop-orchestration/IMPLEMENTATION_SUMMARY.md +319 -519
- package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_E2E_REPORT.md +299 -0
- package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_EXECUTION_SUMMARY.md +403 -0
- package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_INDEX.md +323 -0
- package/.claude/skills/cfn-loop-orchestration/SKILL.md +159 -48
- package/.claude/skills/cfn-loop-orchestration/SPAWN_AGENTS_IMPLEMENTATION.md +188 -0
- package/.claude/skills/cfn-loop-orchestration/TEST_COVERAGE_REPORT.md +335 -0
- package/.claude/skills/cfn-loop-orchestration/TEST_COVERAGE_SUMMARY.md +456 -0
- package/.claude/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_REPORT.md +709 -0
- package/.claude/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_SUMMARY.md +257 -0
- package/.claude/skills/cfn-loop-orchestration/VALIDATION_REPORT.md +572 -0
- package/.claude/skills/cfn-loop-orchestration/VALIDATION_SUMMARY.txt +196 -0
- package/.claude/skills/cfn-loop-orchestration/VALIDATOR_MODULE_GUIDE.md +526 -0
- package/.claude/skills/cfn-loop-orchestration/archive/legacy-bash/README.md +167 -0
- package/.claude/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate-enhanced.sh +548 -0
- package/.claude/skills/cfn-loop-orchestration/{orchestrate-wrapper.sh → archive/legacy-bash/orchestrate-wrapper.sh} +11 -1
- package/.claude/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate.sh +182 -0
- package/.claude/skills/cfn-loop-orchestration/e2e-validation-fixed.js +240 -0
- package/.claude/skills/cfn-loop-orchestration/e2e-validation.js +213 -0
- package/.claude/skills/cfn-loop-orchestration/package-lock.json +3 -0
- package/.claude/skills/cfn-loop-orchestration/package.json +4 -0
- package/.claude/skills/cfn-loop-orchestration/run-north-star-e2e.ts +210 -0
- package/.claude/skills/cfn-loop-orchestration/src/cli/orchestrator-cli.ts +396 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR.md +564 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR_QUICK_REF.md +241 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_IMPLEMENTATION.md +375 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_QUICK_REFERENCE.md +362 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_README.md +307 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_USAGE_GUIDE.md +508 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/confidence-aggregator.ts +473 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/consensus.ts +1 -1
- package/.claude/skills/cfn-loop-orchestration/src/helpers/context-injector.ts +349 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/context-lookup.ts +486 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/deliverable-verifier.ts +6 -2
- package/.claude/skills/cfn-loop-orchestration/src/helpers/gate-check.ts +1 -1
- package/.claude/skills/cfn-loop-orchestration/src/helpers/product-owner-decision.ts +316 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/spawn-agents.ts +357 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/validator.ts +276 -0
- package/.claude/skills/cfn-loop-orchestration/src/index.ts +2 -0
- package/.claude/skills/cfn-loop-orchestration/src/orchestrate.ts +743 -2
- package/.claude/skills/cfn-loop-orchestration/src/types.ts +56 -0
- package/.claude/skills/cfn-loop-orchestration/test-cli.sh +92 -0
- package/.claude/skills/cfn-loop-orchestration/test-typescript-integration.sh +442 -0
- package/.claude/skills/cfn-loop-orchestration/tests/agent-spawner.test.ts +124 -0
- package/.claude/skills/cfn-loop-orchestration/tests/confidence-aggregator.test.ts +604 -0
- package/.claude/skills/cfn-loop-orchestration/tests/context-injector.test.ts +561 -0
- package/.claude/skills/cfn-loop-orchestration/tests/context-lookup.test.ts +661 -0
- package/.claude/skills/cfn-loop-orchestration/tests/deliverable-verifier.test.ts +2 -2
- package/.claude/skills/cfn-loop-orchestration/tests/gate-check-edge-cases.test.ts +422 -0
- package/.claude/skills/cfn-loop-orchestration/tests/gate-checker.test.ts +276 -0
- package/.claude/skills/cfn-loop-orchestration/tests/logger.test.ts +291 -0
- package/.claude/skills/cfn-loop-orchestration/tests/north-star-e2e.test.ts +334 -0
- package/.claude/skills/cfn-loop-orchestration/tests/redis-coordinator.test.ts +321 -0
- package/.claude/skills/cfn-loop-orchestration/tests/spawn-agents.test.ts +284 -0
- package/.claude/skills/cfn-loop-orchestration/tests/validator.test.ts +643 -0
- package/.claude/skills/cfn-loop-validation/IMPLEMENTATION_SUMMARY.md +672 -0
- package/.claude/skills/cfn-loop-validation/INDEX.md +531 -0
- package/.claude/skills/cfn-loop-validation/README_TYPESCRIPT.md +454 -0
- package/.claude/skills/cfn-loop-validation/SKILL.md +48 -1
- package/.claude/skills/cfn-loop-validation/SKILL.md.backup +353 -0
- package/.claude/skills/cfn-loop-validation/SKILL_TYPESCRIPT.md +782 -0
- package/.claude/skills/cfn-loop-validation/VAPOR_DETECTION_EXAMPLES.md +598 -0
- package/.claude/skills/cfn-loop-validation/check-dependencies.sh +22 -0
- package/{claude-assets/skills/cfn-redis-coordination/check-dependencies.sh → .claude/skills/cfn-loop-validation/check-dependencies.sh.backup} +4 -5
- package/.claude/skills/cfn-loop-validation/detect-vapor.sh +59 -0
- package/.claude/skills/cfn-loop-validation/detect-vapor.sh.backup +37 -0
- package/.claude/skills/cfn-loop-validation/dist/.tsbuildinfo +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts +14 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.js +185 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts +14 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.js +176 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts +19 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.js +123 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/types.d.ts +156 -0
- package/.claude/skills/cfn-loop-validation/dist/types.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/types.js +66 -0
- package/.claude/skills/cfn-loop-validation/dist/types.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.d.ts +85 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.js +411 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +22 -0
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh.backup +252 -0
- package/.claude/skills/cfn-loop-validation/package.json +93 -0
- package/.claude/skills/cfn-loop-validation/src/cli/detect-vapor.ts +177 -0
- package/.claude/skills/cfn-loop-validation/src/cli/validate-deliverables.ts +161 -0
- package/.claude/skills/cfn-loop-validation/src/cli/validate-gate.ts +139 -0
- package/.claude/skills/cfn-loop-validation/src/types.ts +215 -0
- package/.claude/skills/cfn-loop-validation/src/validator.ts +503 -0
- package/.claude/skills/cfn-loop-validation/tests/validator.test.ts +537 -0
- package/.claude/skills/{cfn-redis-coordination → cfn-loop-validation}/tsconfig.json +34 -31
- package/.claude/skills/cfn-loop-validation/validate-deliverables.sh +59 -0
- package/.claude/skills/cfn-loop-validation/validate-deliverables.sh.backup +37 -0
- package/.claude/skills/cfn-loop-validation/validate-gate.sh +63 -0
- package/.claude/skills/cfn-loop-validation/validate-gate.sh.backup +41 -0
- package/.claude/skills/cfn-loop-validation/validate-iteration.sh +22 -0
- package/.claude/skills/cfn-loop-validation/validate-iteration.sh.backup +134 -0
- package/.claude/skills/cfn-product-owner-decision/SKILL.md +479 -147
- package/.claude/skills/cfn-product-owner-decision/TYPESCRIPT_IMPLEMENTATION.md +653 -0
- package/.claude/skills/cfn-product-owner-decision/{execute-decision.sh → archive/legacy-bash/execute-decision.sh} +24 -2
- package/.claude/skills/pre-edit-backup/SKILL.md +324 -0
- package/.claude/skills/pre-edit-backup/SKILL.md.backup +277 -0
- package/.claude/skills/pre-edit-backup/backup.sh +22 -0
- package/.claude/skills/pre-edit-backup/backup.sh.backup +107 -0
- package/claude-assets/agents/cfn-dev-team/analysts/root-cause-analyst.md +2 -2
- package/claude-assets/agents/cfn-dev-team/architecture/base-template-generator.md +1 -1
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +3 -2
- package/claude-assets/agents/cfn-dev-team/coordinators/consensus-builder.md +1 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/handoff-coordinator.md +2 -1
- package/claude-assets/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +1 -0
- package/claude-assets/agents/cfn-dev-team/dev-ops/devops-engineer.md +11 -1
- package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +58 -35
- package/claude-assets/agents/cfn-dev-team/dev-ops/github-commit-agent.md +2 -2
- package/claude-assets/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +47 -37
- package/claude-assets/agents/cfn-dev-team/developers/api-gateway-specialist.md +18 -18
- package/claude-assets/agents/cfn-dev-team/developers/backend-developer.md +40 -58
- package/claude-assets/agents/cfn-dev-team/developers/data/data-engineer.md +19 -21
- package/claude-assets/agents/cfn-dev-team/developers/database/database-architect.md +20 -29
- package/claude-assets/agents/cfn-dev-team/developers/frontend/mobile-dev.md +15 -19
- package/claude-assets/agents/cfn-dev-team/developers/frontend/react-frontend-engineer.md +15 -10
- package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +16 -11
- package/claude-assets/agents/cfn-dev-team/developers/frontend/ui-designer.md +16 -26
- package/claude-assets/agents/cfn-dev-team/developers/graphql-specialist.md +18 -22
- package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +17 -21
- package/claude-assets/agents/cfn-dev-team/documentation/pseudocode.md +1 -1
- package/claude-assets/agents/cfn-dev-team/product-owners/accessibility-advocate-persona.md +1 -1
- package/claude-assets/agents/cfn-dev-team/product-owners/cto-agent.md +1 -1
- package/claude-assets/agents/cfn-dev-team/product-owners/power-user-persona.md +1 -1
- package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +1 -5
- package/claude-assets/agents/cfn-dev-team/reviewers/code-reviewer.md +20 -51
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +22 -71
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +21 -64
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +22 -67
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/security-specialist.md +24 -68
- package/claude-assets/agents/cfn-dev-team/testers/api-testing-specialist.md +8 -36
- package/claude-assets/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +9 -38
- package/claude-assets/agents/cfn-dev-team/testers/contract-tester.md +17 -55
- package/claude-assets/agents/cfn-dev-team/testers/e2e/playwright-tester.md +1 -1
- package/claude-assets/agents/cfn-dev-team/testers/integration-tester.md +18 -56
- package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +9 -37
- package/claude-assets/agents/cfn-dev-team/testers/load-testing-specialist.md +18 -56
- package/claude-assets/agents/cfn-dev-team/testers/mutation-testing-specialist.md +18 -49
- package/claude-assets/agents/cfn-dev-team/testers/playwright-tester.md +8 -37
- package/claude-assets/agents/cfn-dev-team/testers/tester.md +7 -27
- package/claude-assets/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +1 -1
- package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +11 -0
- package/claude-assets/agents/cfn-dev-team/utility/analyst.md +13 -29
- package/claude-assets/agents/cfn-dev-team/utility/claude-code-expert.md +1 -1
- package/claude-assets/agents/cfn-dev-team/utility/code-booster.md +13 -13
- package/claude-assets/agents/cfn-dev-team/utility/context-curator.md +7 -2
- package/claude-assets/agents/cfn-dev-team/utility/epic-creator.md +6 -11
- package/claude-assets/agents/cfn-dev-team/utility/memory-leak-specialist.md +121 -715
- package/claude-assets/agents/cfn-dev-team/utility/researcher.md +13 -22
- package/claude-assets/agents/cfn-dev-team/utility/z-ai-specialist.md +147 -573
- package/claude-assets/agents/custom/cfn-docker-expert.md +103 -0
- package/claude-assets/agents/custom/cfn-loops-cli-expert.md +438 -0
- package/claude-assets/agents/custom/cfn-redis-operations.md +529 -529
- package/claude-assets/agents/custom/cfn-system-expert.md +1 -1
- package/claude-assets/agents/custom/trigger-dev-expert.md +369 -0
- package/claude-assets/agents/docker-team/micro-sprint-planner.md +747 -747
- package/claude-assets/agents/project-only-agents/npm-package-specialist.md +1 -1
- package/claude-assets/cfn-extras/agents/cfn-v3-coordinator.md +517 -0
- package/claude-assets/cfn-extras/skills/GOOGLE_SHEETS_SKILLS_README.md +1 -1
- package/claude-assets/cfn-extras/skills/google-sheets-api-coordinator/SKILL.md +1 -1
- package/claude-assets/cfn-extras/skills/google-sheets-formula-builder/SKILL.md +1 -1
- package/claude-assets/cfn-extras/skills/google-sheets-progress/SKILL.md +1 -1
- package/claude-assets/commands/CFN_LOOP_FRONTEND.md +1 -1
- package/claude-assets/commands/cfn-loop-cli.md +214 -442
- package/claude-assets/commands/cfn-loop-frontend.md +1 -1
- package/claude-assets/commands/cfn-loop-task.md +2 -2
- package/claude-assets/commands/cfn-loop-trigger.md +114 -0
- package/claude-assets/commands/deprecated/cfn-loop.md +2 -2
- package/claude-assets/hooks/GIT-HOOKS-USAGE-EXAMPLES.md +116 -0
- package/claude-assets/hooks/README-GIT-HOOKS.md +443 -0
- package/claude-assets/hooks/SKILL.md +518 -0
- package/claude-assets/hooks/SKILL.md.backup +471 -0
- package/claude-assets/hooks/cfn-invoke-post-edit-ts.sh +100 -0
- package/claude-assets/hooks/cfn-invoke-post-edit-ts.sh.backup +78 -0
- package/claude-assets/hooks/cfn-invoke-post-edit.sh +53 -5
- package/claude-assets/hooks/cfn-invoke-post-edit.sh.backup +87 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit-ts.sh +116 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit-ts.sh.backup +94 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit.sh +22 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit.sh.backup +88 -0
- package/claude-assets/hooks/cfn-post-edit.config.json +9 -2
- package/claude-assets/hooks/install-git-hooks.sh +243 -0
- package/claude-assets/hooks/subagent-start.sh +98 -0
- package/claude-assets/hooks/subagent-stop.sh +93 -0
- package/claude-assets/hooks/validators/credential-scanner.sh +172 -0
- package/claude-assets/root-claude-distribute/CFN-CLAUDE.md +1 -1
- package/claude-assets/skills/cfn-agent-selection-with-fallback/DELIVERABLES.md +409 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/IMPLEMENTATION_SUMMARY.md +396 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/INTEGRATION_GUIDE.md +308 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/QUICK_REFERENCE.md +239 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/SKILL.md +107 -1
- package/claude-assets/skills/cfn-agent-selection-with-fallback/SKILL.md.backup +302 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/TYPESCRIPT_MIGRATION.md +295 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/agent-selector.cjs +297 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/agent-selector.js +297 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/cli.cjs +96 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/cli.js +96 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents-ts.sh +45 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents-ts.sh.backup +23 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents.sh +22 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents.sh.backup +173 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/src/agent-selector.test.ts +357 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/src/agent-selector.ts +350 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/src/cli.ts +74 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/task-classifier.sh +22 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/task-classifier.sh.backup +71 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/tsconfig.json +18 -0
- package/claude-assets/skills/cfn-agent-spawning/SKILL.md +48 -1
- package/claude-assets/skills/cfn-agent-spawning/SKILL.md.backup +135 -0
- package/claude-assets/skills/cfn-agent-spawning/TYPESCRIPT_MIGRATION.md +567 -0
- package/claude-assets/skills/cfn-agent-spawning/check-dependencies.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/check-dependencies.sh.backup +30 -0
- package/claude-assets/skills/cfn-agent-spawning/get-agent-provider-env.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/get-agent-provider-env.sh.backup +127 -0
- package/claude-assets/skills/cfn-agent-spawning/parse-agent-provider.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/parse-agent-provider.sh.backup +59 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent-wrapper.sh +63 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent-wrapper.sh.backup +41 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh +26 -1
- package/claude-assets/skills/cfn-agent-spawning/spawn-templates.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-templates.sh.backup +613 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-worker.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-worker.sh.backup +176 -0
- package/claude-assets/skills/cfn-backlog-management/SKILL.md +1 -1
- package/claude-assets/skills/cfn-coordination/agent-completion.sh.backup +36 -0
- package/claude-assets/skills/cfn-coordination/coordination-signal.sh.backup +36 -0
- package/claude-assets/skills/cfn-coordination/coordination-wait.sh.backup +36 -0
- package/claude-assets/skills/cfn-dependency-ingestion/README.md +101 -0
- package/claude-assets/skills/cfn-dependency-ingestion/SKILL.md +397 -0
- package/claude-assets/skills/cfn-dependency-ingestion/build.sh +23 -0
- package/claude-assets/skills/cfn-dependency-ingestion/dist/ingest-dependencies.js +478 -0
- package/claude-assets/skills/cfn-dependency-ingestion/ingest-dependencies.sh +295 -0
- package/claude-assets/skills/cfn-dependency-ingestion/ingest.sh +237 -0
- package/claude-assets/skills/cfn-dependency-ingestion/manifests/cli-mode-dependencies.txt +73 -0
- package/claude-assets/skills/cfn-dependency-ingestion/manifests/shared-dependencies.txt +57 -0
- package/claude-assets/skills/cfn-dependency-ingestion/manifests/trigger-dev-dependencies.txt +82 -0
- package/claude-assets/skills/cfn-dependency-ingestion/manifests/trigger-mode-dependencies.txt +80 -0
- package/claude-assets/skills/cfn-dependency-ingestion/src/ingest-dependencies.ts +563 -0
- package/claude-assets/skills/cfn-environment-sanitization/sanitize-environment.sh +14 -4
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/metadata.json +8 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/original +271 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/revert.sh +7 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/metadata.json +8 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/original +325 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/revert.sh +7 -0
- package/claude-assets/skills/cfn-loop-orchestration/CLI_IMPLEMENTATION_SUMMARY.md +330 -0
- package/claude-assets/skills/cfn-loop-orchestration/CONFIGURATION_IMPROVEMENTS.md +318 -0
- package/claude-assets/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_MIGRATION.md +308 -0
- package/claude-assets/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_QUICK_START.md +378 -0
- package/claude-assets/skills/cfn-loop-orchestration/E2E_VALIDATION_REPORT.md +262 -0
- package/claude-assets/skills/cfn-loop-orchestration/IMPLEMENTATION_SUMMARY.md +319 -519
- package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_E2E_REPORT.md +299 -0
- package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_EXECUTION_SUMMARY.md +403 -0
- package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_INDEX.md +323 -0
- package/claude-assets/skills/cfn-loop-orchestration/SKILL.md +159 -48
- package/claude-assets/skills/cfn-loop-orchestration/SPAWN_AGENTS_IMPLEMENTATION.md +188 -0
- package/claude-assets/skills/cfn-loop-orchestration/TEST_COVERAGE_REPORT.md +335 -0
- package/claude-assets/skills/cfn-loop-orchestration/TEST_COVERAGE_SUMMARY.md +456 -0
- package/claude-assets/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_REPORT.md +709 -0
- package/claude-assets/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_SUMMARY.md +257 -0
- package/claude-assets/skills/cfn-loop-orchestration/VALIDATION_REPORT.md +572 -0
- package/claude-assets/skills/cfn-loop-orchestration/VALIDATION_SUMMARY.txt +196 -0
- package/claude-assets/skills/cfn-loop-orchestration/VALIDATOR_MODULE_GUIDE.md +526 -0
- package/claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash/README.md +167 -0
- package/claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate-enhanced.sh +548 -0
- package/claude-assets/skills/cfn-loop-orchestration/{orchestrate-wrapper.sh → archive/legacy-bash/orchestrate-wrapper.sh} +11 -1
- package/claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate.sh +182 -0
- package/claude-assets/skills/cfn-loop-orchestration/e2e-validation-fixed.js +240 -0
- package/claude-assets/skills/cfn-loop-orchestration/e2e-validation.js +213 -0
- package/claude-assets/skills/cfn-loop-orchestration/package-lock.json +3 -0
- package/claude-assets/skills/cfn-loop-orchestration/package.json +4 -0
- package/claude-assets/skills/cfn-loop-orchestration/run-north-star-e2e.ts +210 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/cli/orchestrator-cli.ts +396 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR.md +564 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR_QUICK_REF.md +241 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_IMPLEMENTATION.md +375 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_QUICK_REFERENCE.md +362 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_README.md +307 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_USAGE_GUIDE.md +508 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/confidence-aggregator.ts +473 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/consensus.ts +1 -1
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/context-injector.ts +349 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/context-lookup.ts +486 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/deliverable-verifier.ts +6 -2
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/gate-check.ts +1 -1
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/product-owner-decision.ts +316 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/spawn-agents.ts +357 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/validator.ts +276 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/index.ts +2 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/orchestrate.ts +743 -2
- package/claude-assets/skills/cfn-loop-orchestration/src/types.ts +56 -0
- package/claude-assets/skills/cfn-loop-orchestration/test-cli.sh +92 -0
- package/claude-assets/skills/cfn-loop-orchestration/test-typescript-integration.sh +442 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/agent-spawner.test.ts +124 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/confidence-aggregator.test.ts +604 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/context-injector.test.ts +561 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/context-lookup.test.ts +661 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/deliverable-verifier.test.ts +2 -2
- package/claude-assets/skills/cfn-loop-orchestration/tests/gate-check-edge-cases.test.ts +422 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/gate-checker.test.ts +276 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/logger.test.ts +291 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/north-star-e2e.test.ts +334 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/redis-coordinator.test.ts +321 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/spawn-agents.test.ts +284 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/validator.test.ts +643 -0
- package/claude-assets/skills/cfn-loop-output-processing/.eslintrc.json +33 -0
- package/claude-assets/skills/cfn-loop-output-processing/DELIVERY_SUMMARY.txt +462 -0
- package/claude-assets/skills/cfn-loop-output-processing/DEPRECATION_NOTICE.md +183 -0
- package/claude-assets/skills/cfn-loop-output-processing/EXAMPLES.md +609 -0
- package/claude-assets/skills/cfn-loop-output-processing/IMPLEMENTATION_SUMMARY.md +418 -0
- package/claude-assets/skills/cfn-loop-output-processing/INDEX.md +531 -0
- package/claude-assets/skills/cfn-loop-output-processing/MIGRATION.md +362 -0
- package/claude-assets/skills/cfn-loop-output-processing/README.md +114 -0
- package/claude-assets/skills/cfn-loop-output-processing/SKILL.md +633 -0
- package/{.claude/skills/cfn-docker-redis-coordination → claude-assets/skills/cfn-loop-output-processing}/jest.config.js +7 -15
- package/claude-assets/skills/cfn-loop-output-processing/package.json +50 -0
- package/claude-assets/skills/cfn-loop-output-processing/src/cli/process-loop2.ts +195 -0
- package/claude-assets/skills/cfn-loop-output-processing/src/cli/process-loop3.ts +157 -0
- package/claude-assets/skills/cfn-loop-output-processing/src/output-processor.ts +632 -0
- package/claude-assets/skills/cfn-loop-output-processing/tests/output-processor.test.ts +617 -0
- package/claude-assets/skills/{cfn-docker-redis-coordination → cfn-loop-output-processing}/tsconfig.json +16 -7
- package/claude-assets/skills/cfn-loop-validation/IMPLEMENTATION_SUMMARY.md +672 -0
- package/claude-assets/skills/cfn-loop-validation/INDEX.md +531 -0
- package/claude-assets/skills/cfn-loop-validation/README_TYPESCRIPT.md +454 -0
- package/claude-assets/skills/cfn-loop-validation/SKILL.md +48 -1
- package/claude-assets/skills/cfn-loop-validation/SKILL.md.backup +353 -0
- package/claude-assets/skills/cfn-loop-validation/SKILL_TYPESCRIPT.md +782 -0
- package/claude-assets/skills/cfn-loop-validation/VAPOR_DETECTION_EXAMPLES.md +598 -0
- package/claude-assets/skills/cfn-loop-validation/check-dependencies.sh +22 -0
- package/claude-assets/skills/cfn-loop-validation/check-dependencies.sh.backup +31 -0
- package/claude-assets/skills/cfn-loop-validation/detect-vapor.sh +59 -0
- package/claude-assets/skills/cfn-loop-validation/detect-vapor.sh.backup +37 -0
- package/claude-assets/skills/cfn-loop-validation/dist/.tsbuildinfo +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts +14 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.js +185 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts +14 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.js +176 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts +19 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.js +123 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.d.ts +156 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.js +66 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.d.ts +85 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.js +411 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +22 -0
- package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh.backup +252 -0
- package/claude-assets/skills/cfn-loop-validation/package.json +93 -0
- package/claude-assets/skills/cfn-loop-validation/src/cli/detect-vapor.ts +177 -0
- package/claude-assets/skills/cfn-loop-validation/src/cli/validate-deliverables.ts +161 -0
- package/claude-assets/skills/cfn-loop-validation/src/cli/validate-gate.ts +139 -0
- package/claude-assets/skills/cfn-loop-validation/src/types.ts +215 -0
- package/claude-assets/skills/cfn-loop-validation/src/validator.ts +503 -0
- package/claude-assets/skills/cfn-loop-validation/tests/validator.test.ts +537 -0
- package/claude-assets/skills/{cfn-redis-coordination → cfn-loop-validation}/tsconfig.json +34 -31
- package/claude-assets/skills/cfn-loop-validation/validate-deliverables.sh +59 -0
- package/claude-assets/skills/cfn-loop-validation/validate-deliverables.sh.backup +37 -0
- package/claude-assets/skills/cfn-loop-validation/validate-gate.sh +63 -0
- package/claude-assets/skills/cfn-loop-validation/validate-gate.sh.backup +41 -0
- package/claude-assets/skills/cfn-loop-validation/validate-iteration.sh +22 -0
- package/claude-assets/skills/cfn-loop-validation/validate-iteration.sh.backup +134 -0
- package/claude-assets/skills/cfn-product-owner-decision/SKILL.md +479 -147
- package/claude-assets/skills/cfn-product-owner-decision/TYPESCRIPT_IMPLEMENTATION.md +653 -0
- package/claude-assets/skills/cfn-product-owner-decision/{execute-decision.sh → archive/legacy-bash/execute-decision.sh} +24 -2
- package/claude-assets/skills/cfn-provider-routing/README.md +129 -0
- package/claude-assets/skills/cfn-provider-routing/SKILL.md +215 -0
- package/claude-assets/skills/cfn-provider-routing/resolve-provider-model.ts +223 -0
- package/claude-assets/skills/docker-build/build.sh +1 -1
- package/claude-assets/skills/pre-edit-backup/SKILL.md +324 -0
- package/claude-assets/skills/pre-edit-backup/SKILL.md.backup +277 -0
- package/claude-assets/skills/pre-edit-backup/backup.sh +22 -0
- package/claude-assets/skills/pre-edit-backup/backup.sh.backup +107 -0
- package/dist/agent/skill-mcp-selector.js +2 -1
- package/dist/agent/skill-mcp-selector.js.map +1 -1
- package/dist/api/auth-endpoints.js +415 -0
- package/dist/api/auth-endpoints.js.map +1 -0
- package/dist/api/task-endpoints.js +562 -0
- package/dist/api/task-endpoints.js.map +1 -0
- package/dist/backend/server.js +418 -0
- package/dist/backend/server.js.map +1 -0
- package/dist/cfn-loop/product-owner/decision-parser.js +356 -0
- package/dist/cfn-loop/product-owner/decision-parser.js.map +1 -0
- package/dist/cfn-loop/product-owner/index.js +1 -0
- package/dist/cfn-loop/product-owner/index.js.map +1 -1
- package/dist/cli/agent-command.js +1 -1
- package/dist/cli/agent-command.js.map +1 -1
- package/dist/cli/agent-completion.js +273 -0
- package/dist/cli/agent-completion.js.map +1 -0
- package/dist/cli/agent-executor.js +470 -26
- package/dist/cli/agent-executor.js.map +1 -1
- package/dist/cli/agent-prompt-builder.js +83 -48
- package/dist/cli/agent-prompt-builder.js.map +1 -1
- package/dist/cli/agent-spawn.js +7 -4
- package/dist/cli/agent-spawn.js.map +1 -1
- package/dist/cli/agent-spawner.js +546 -0
- package/dist/cli/agent-spawner.js.map +1 -0
- package/dist/cli/agent-token-manager.js +2 -1
- package/dist/cli/agent-token-manager.js.map +1 -1
- package/dist/cli/anthropic-client.js +127 -14
- package/dist/cli/anthropic-client.js.map +1 -1
- package/dist/cli/cfn-context.js +2 -1
- package/dist/cli/cfn-context.js.map +1 -1
- package/dist/cli/cfn-metrics.js +2 -1
- package/dist/cli/cfn-metrics.js.map +1 -1
- package/dist/cli/cfn-redis.js +2 -1
- package/dist/cli/cfn-redis.js.map +1 -1
- package/dist/cli/cli-agent-context.js +2 -0
- package/dist/cli/cli-agent-context.js.map +1 -1
- package/dist/cli/config-manager.js +90 -356
- package/dist/cli/config-manager.js.map +1 -1
- package/dist/cli/conversation-fork-cleanup.js +2 -1
- package/dist/cli/conversation-fork-cleanup.js.map +1 -1
- package/dist/cli/conversation-fork.js +2 -1
- package/dist/cli/conversation-fork.js.map +1 -1
- package/dist/cli/coordination/agent-messaging.js +415 -0
- package/dist/cli/coordination/agent-messaging.js.map +1 -0
- package/dist/cli/coordination/wait-for-threshold.js +232 -0
- package/dist/cli/coordination/wait-for-threshold.js.map +1 -0
- package/dist/cli/index.js +11 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/iteration-history.js +2 -1
- package/dist/cli/iteration-history.js.map +1 -1
- package/dist/cli/parse-decision-cli.js +268 -0
- package/dist/cli/parse-decision-cli.js.map +1 -0
- package/dist/cli/post-edit-hook.js +83 -0
- package/dist/cli/post-edit-hook.js.map +1 -0
- package/dist/cli/pre-edit-hook.js +77 -0
- package/dist/cli/pre-edit-hook.js.map +1 -0
- package/dist/cli/process-lifecycle.js +5 -1
- package/dist/cli/process-lifecycle.js.map +1 -1
- package/dist/cli/spawn-agent-cli.js +244 -0
- package/dist/cli/spawn-agent-cli.js.map +1 -0
- package/dist/coordination/coordination-wrapper.js +383 -0
- package/dist/coordination/coordination-wrapper.js.map +1 -0
- package/dist/coordination/redis-waiting-mode.js +4 -0
- package/dist/coordination/redis-waiting-mode.js.map +1 -1
- package/dist/coordination/store-success-criteria.js +68 -0
- package/dist/coordination/store-success-criteria.js.map +1 -0
- package/dist/coordination/store-task-context.js +65 -0
- package/dist/coordination/store-task-context.js.map +1 -0
- package/dist/hooks/backup-manager.js +273 -0
- package/dist/hooks/backup-manager.js.map +1 -0
- package/dist/hooks/post-edit-validator.js +388 -0
- package/dist/hooks/post-edit-validator.js.map +1 -0
- package/dist/integration/index.js +19 -0
- package/dist/integration/index.js.map +1 -0
- package/dist/integration/task-mode-adapter.js +297 -0
- package/dist/integration/task-mode-adapter.js.map +1 -0
- package/dist/integration/trigger-dev-client.js +253 -0
- package/dist/integration/trigger-dev-client.js.map +1 -0
- package/dist/integration/trigger-dev-webhooks.js +362 -0
- package/dist/integration/trigger-dev-webhooks.js.map +1 -0
- package/dist/lib/artifact-registry.js +4 -0
- package/dist/lib/artifact-registry.js.map +1 -1
- package/dist/lib/connection-pool.js +390 -0
- package/dist/lib/connection-pool.js.map +1 -0
- package/dist/lib/environment-contract.js +258 -0
- package/dist/lib/environment-contract.js.map +1 -0
- package/dist/lib/path-validator.js +14 -5
- package/dist/lib/path-validator.js.map +1 -1
- package/dist/lib/query-optimizer.js +388 -0
- package/dist/lib/query-optimizer.js.map +1 -0
- package/dist/lib/redis-queue-manager.js +5 -1
- package/dist/lib/redis-queue-manager.js.map +1 -1
- package/dist/lib/result-cache.js +285 -0
- package/dist/lib/result-cache.js.map +1 -0
- package/dist/mcp/auth-middleware.js +2 -1
- package/dist/mcp/auth-middleware.js.map +1 -1
- package/dist/mcp/playwright-mcp-server-auth.js +2 -1
- package/dist/mcp/playwright-mcp-server-auth.js.map +1 -1
- package/dist/middleware/authentication.js +317 -0
- package/dist/middleware/authentication.js.map +1 -0
- package/dist/services/authentication.js +669 -0
- package/dist/services/authentication.js.map +1 -0
- package/dist/services/session-management.js +436 -0
- package/dist/services/session-management.js.map +1 -0
- package/dist/services/skill-deployment.js +8 -6
- package/dist/services/skill-deployment.js.map +1 -1
- package/dist/services/user-service.js +710 -0
- package/dist/services/user-service.js.map +1 -0
- package/dist/types/trigger-dev-events.d.js +10 -0
- package/dist/types/trigger-dev-events.d.js.map +1 -0
- package/docs/README.md +240 -0
- package/package.json +15 -4
- package/scripts/build-agent-image.sh +1 -1
- package/scripts/compare-workflow-performance.sh +556 -0
- package/scripts/cost-allocation-tracker.sh +632 -0
- package/scripts/docker-rebuild-all-agents.sh +2 -2
- package/scripts/migrate-to-optimized-workflows.sh +438 -0
- package/scripts/organize-docs.sh +338 -0
- package/scripts/reorganize-tests.sh +280 -0
- package/scripts/trigger-dev-setup.sh +279 -0
- package/tests/README.md +45 -0
- package/.claude/commands/cost-savings-status.md +0 -34
- package/.claude/commands/metrics-summary.md +0 -58
- package/.claude/skills/cfn-docker-redis-coordination/MIGRATION_SUMMARY.md +0 -348
- package/.claude/skills/cfn-docker-redis-coordination/README.md +0 -294
- package/.claude/skills/cfn-docker-redis-coordination/SKILL.md +0 -435
- package/.claude/skills/cfn-docker-redis-coordination/coordinate.sh +0 -650
- package/.claude/skills/cfn-docker-redis-coordination/coordinate.sh.backup-1763145142 +0 -641
- package/.claude/skills/cfn-docker-redis-coordination/package-lock.json +0 -5259
- package/.claude/skills/cfn-docker-redis-coordination/package.json +0 -40
- package/.claude/skills/cfn-docker-redis-coordination/src/coordinator.ts +0 -801
- package/.claude/skills/cfn-docker-redis-coordination/src/index.ts +0 -42
- package/.claude/skills/cfn-docker-redis-coordination/src/types.ts +0 -351
- package/.claude/skills/cfn-docker-redis-coordination/tests/coordinator.test.ts +0 -1464
- package/.claude/skills/cfn-docker-redis-coordination/tsconfig.json +0 -30
- package/.claude/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +0 -228
- package/.claude/skills/cfn-loop-orchestration/helpers/consensus-ts.sh +0 -104
- package/.claude/skills/cfn-loop-orchestration/helpers/consensus.sh +0 -94
- package/.claude/skills/cfn-loop-orchestration/helpers/context-injection.sh +0 -142
- package/.claude/skills/cfn-loop-orchestration/helpers/context-lookup.sh +0 -359
- package/.claude/skills/cfn-loop-orchestration/helpers/deliverable-verifier-ts.sh +0 -123
- package/.claude/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +0 -71
- package/.claude/skills/cfn-loop-orchestration/helpers/gate-check.sh +0 -56
- package/.claude/skills/cfn-loop-orchestration/helpers/iteration-manager-ts.sh +0 -89
- package/.claude/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +0 -87
- package/.claude/skills/cfn-loop-orchestration/helpers/orchestrate-ts.sh +0 -104
- package/.claude/skills/cfn-loop-orchestration/helpers/parse-test-results.sh +0 -56
- package/.claude/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +0 -290
- package/.claude/skills/cfn-loop-orchestration/helpers/timeout-calculator-ts.sh +0 -47
- package/.claude/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +0 -51
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +0 -1345
- package/.claude/skills/cfn-redis-coordination/AGENT_LOGGING.md +0 -280
- package/.claude/skills/cfn-redis-coordination/BZPOPMIN_FIX_SUMMARY.md +0 -209
- package/.claude/skills/cfn-redis-coordination/CENTRALIZED_REDIS_WRAPPER.md +0 -319
- package/.claude/skills/cfn-redis-coordination/agent-log.sh.bak +0 -124
- package/.claude/skills/cfn-redis-coordination/config.json +0 -61
- package/.claude/skills/cfn-redis-coordination/demos/phase4-wake-queue-test-report.md +0 -82
- package/.claude/skills/cfn-redis-coordination/demos/test-bzpopmin-fix.sh +0 -274
- package/.claude/skills/cfn-redis-coordination/demos/test-cancel-swarm.sh +0 -0
- package/.claude/skills/cfn-redis-coordination/docs/migration/PHASE_3_REDIS_COORDINATION_COMPLETION_REPORT.md +0 -553
- package/.claude/skills/cfn-redis-coordination/jest.config.js +0 -23
- package/.claude/skills/cfn-redis-coordination/package-lock.json +0 -5272
- package/.claude/skills/cfn-redis-coordination/package.json +0 -45
- package/.claude/skills/cfn-redis-coordination/src/agent-logger.ts +0 -446
- package/.claude/skills/cfn-redis-coordination/src/agent-recovery.ts +0 -454
- package/.claude/skills/cfn-redis-coordination/src/completion-reporter.ts +0 -396
- package/.claude/skills/cfn-redis-coordination/src/context-manager.ts +0 -327
- package/.claude/skills/cfn-redis-coordination/src/index.ts +0 -82
- package/.claude/skills/cfn-redis-coordination/src/mode-detector.ts +0 -155
- package/.claude/skills/cfn-redis-coordination/src/redis/redis-client.ts +0 -305
- package/.claude/skills/cfn-redis-coordination/src/redis/redis-functions.ts +0 -283
- package/.claude/skills/cfn-redis-coordination/src/redis-client.ts +0 -654
- package/.claude/skills/cfn-redis-coordination/src/result-collector.ts +0 -437
- package/.claude/skills/cfn-redis-coordination/src/swarm-manager.ts +0 -494
- package/.claude/skills/cfn-redis-coordination/src/task-analyzer.ts +0 -404
- package/.claude/skills/cfn-redis-coordination/src/task-executor.ts +0 -423
- package/.claude/skills/cfn-redis-coordination/src/types.ts +0 -235
- package/.claude/skills/cfn-redis-coordination/src/waiting-coordinator.ts +0 -587
- package/.claude/skills/cfn-redis-coordination/store-success-criteria.sh +0 -85
- package/.claude/skills/cfn-redis-coordination/test-connection-attempts.js +0 -70
- package/.claude/skills/cfn-redis-coordination/test-mode-simple.js +0 -121
- package/.claude/skills/cfn-redis-coordination/test-redis-check.js +0 -84
- package/.claude/skills/cfn-redis-coordination/test-task-mode-redis.cjs +0 -391
- package/.claude/skills/cfn-redis-coordination/tests/coordination.test.ts +0 -788
- package/.claude/skills/cfn-redis-coordination/update-all-scripts.sh +0 -67
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +0 -980
- package/claude-assets/agents/cfn-dev-team/dev-ops/monitoring-specialist.md +0 -759
- package/claude-assets/agents/custom/test-mcp-access.md +0 -24
- package/claude-assets/agents/typescript-specialist.md +0 -280
- package/claude-assets/commands/cost-savings-status.md +0 -34
- package/claude-assets/commands/metrics-summary.md +0 -58
- package/claude-assets/skills/cfn-docker-redis-coordination/MIGRATION_SUMMARY.md +0 -348
- package/claude-assets/skills/cfn-docker-redis-coordination/README.md +0 -294
- package/claude-assets/skills/cfn-docker-redis-coordination/SKILL.md +0 -435
- package/claude-assets/skills/cfn-docker-redis-coordination/coordinate.sh +0 -650
- package/claude-assets/skills/cfn-docker-redis-coordination/coordinate.sh.backup-1763145142 +0 -641
- package/claude-assets/skills/cfn-docker-redis-coordination/jest.config.js +0 -37
- package/claude-assets/skills/cfn-docker-redis-coordination/package-lock.json +0 -5259
- package/claude-assets/skills/cfn-docker-redis-coordination/package.json +0 -40
- package/claude-assets/skills/cfn-docker-redis-coordination/src/coordinator.ts +0 -801
- package/claude-assets/skills/cfn-docker-redis-coordination/src/index.ts +0 -42
- package/claude-assets/skills/cfn-docker-redis-coordination/src/types.ts +0 -351
- package/claude-assets/skills/cfn-docker-redis-coordination/tests/coordinator.test.ts +0 -1464
- package/claude-assets/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +0 -228
- package/claude-assets/skills/cfn-loop-orchestration/helpers/consensus-ts.sh +0 -104
- package/claude-assets/skills/cfn-loop-orchestration/helpers/consensus.sh +0 -94
- package/claude-assets/skills/cfn-loop-orchestration/helpers/context-injection.sh +0 -142
- package/claude-assets/skills/cfn-loop-orchestration/helpers/context-lookup.sh +0 -359
- package/claude-assets/skills/cfn-loop-orchestration/helpers/deliverable-verifier-ts.sh +0 -123
- package/claude-assets/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +0 -71
- package/claude-assets/skills/cfn-loop-orchestration/helpers/gate-check.sh +0 -56
- package/claude-assets/skills/cfn-loop-orchestration/helpers/iteration-manager-ts.sh +0 -89
- package/claude-assets/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +0 -87
- package/claude-assets/skills/cfn-loop-orchestration/helpers/orchestrate-ts.sh +0 -104
- package/claude-assets/skills/cfn-loop-orchestration/helpers/parse-test-results.sh +0 -56
- package/claude-assets/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +0 -290
- package/claude-assets/skills/cfn-loop-orchestration/helpers/timeout-calculator-ts.sh +0 -47
- package/claude-assets/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +0 -51
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +0 -1345
- package/claude-assets/skills/cfn-redis-cleanup/cleanup-redis.sh +0 -130
- package/claude-assets/skills/cfn-redis-coordination/AGENT_LOGGING.md +0 -280
- package/claude-assets/skills/cfn-redis-coordination/BZPOPMIN_FIX_SUMMARY.md +0 -209
- package/claude-assets/skills/cfn-redis-coordination/CENTRALIZED_REDIS_WRAPPER.md +0 -319
- package/claude-assets/skills/cfn-redis-coordination/agent-log.sh.bak +0 -124
- package/claude-assets/skills/cfn-redis-coordination/config.json +0 -61
- package/claude-assets/skills/cfn-redis-coordination/demos/phase4-wake-queue-test-report.md +0 -82
- package/claude-assets/skills/cfn-redis-coordination/demos/test-bzpopmin-fix.sh +0 -274
- package/claude-assets/skills/cfn-redis-coordination/demos/test-cancel-swarm.sh +0 -0
- package/claude-assets/skills/cfn-redis-coordination/docs/migration/PHASE_3_REDIS_COORDINATION_COMPLETION_REPORT.md +0 -553
- package/claude-assets/skills/cfn-redis-coordination/jest.config.js +0 -23
- package/claude-assets/skills/cfn-redis-coordination/package-lock.json +0 -5272
- package/claude-assets/skills/cfn-redis-coordination/package.json +0 -45
- package/claude-assets/skills/cfn-redis-coordination/src/agent-logger.ts +0 -446
- package/claude-assets/skills/cfn-redis-coordination/src/agent-recovery.ts +0 -454
- package/claude-assets/skills/cfn-redis-coordination/src/completion-reporter.ts +0 -396
- package/claude-assets/skills/cfn-redis-coordination/src/context-manager.ts +0 -327
- package/claude-assets/skills/cfn-redis-coordination/src/index.ts +0 -82
- package/claude-assets/skills/cfn-redis-coordination/src/mode-detector.ts +0 -155
- package/claude-assets/skills/cfn-redis-coordination/src/redis/redis-client.ts +0 -305
- package/claude-assets/skills/cfn-redis-coordination/src/redis/redis-functions.ts +0 -283
- package/claude-assets/skills/cfn-redis-coordination/src/redis-client.ts +0 -654
- package/claude-assets/skills/cfn-redis-coordination/src/result-collector.ts +0 -437
- package/claude-assets/skills/cfn-redis-coordination/src/swarm-manager.ts +0 -494
- package/claude-assets/skills/cfn-redis-coordination/src/task-analyzer.ts +0 -404
- package/claude-assets/skills/cfn-redis-coordination/src/task-executor.ts +0 -423
- package/claude-assets/skills/cfn-redis-coordination/src/types.ts +0 -235
- package/claude-assets/skills/cfn-redis-coordination/src/waiting-coordinator.ts +0 -587
- package/claude-assets/skills/cfn-redis-coordination/store-success-criteria.sh +0 -85
- package/claude-assets/skills/cfn-redis-coordination/test-connection-attempts.js +0 -70
- package/claude-assets/skills/cfn-redis-coordination/test-mode-simple.js +0 -121
- package/claude-assets/skills/cfn-redis-coordination/test-redis-check.js +0 -84
- package/claude-assets/skills/cfn-redis-coordination/test-task-mode-redis.cjs +0 -391
- package/claude-assets/skills/cfn-redis-coordination/tests/coordination.test.ts +0 -788
- package/claude-assets/skills/cfn-redis-coordination/update-all-scripts.sh +0 -67
- package/claude-assets/skills/cfn-redis-data-extraction/SKILL.md +0 -442
- package/claude-assets/skills/cfn-redis-data-extraction/extract.sh +0 -306
- package/dist/coordination/index.js +0 -25
- package/dist/coordination/index.js.map +0 -1
- package/docs/BUG_19_MEMORY_LEAK_TASK_MODE.md +0 -405
- package/docs/MEMORY_CLEANUP_GUIDE.md +0 -358
- package/docs/MEMORY_LEAK_FIX_SUMMARY.md +0 -322
- package/docs/REDIS_CLEANUP_EXECUTIVE_SUMMARY.md +0 -319
- package/docs/REDIS_CLEANUP_VERIFICATION_REPORT.md +0 -574
- package/tests/test-memory-leak-task-mode.sh +0 -435
- /package/.claude/skills/cfn-loop-orchestration/{inject-loop-context.sh → archive/legacy-bash/inject-loop-context.sh} +0 -0
- /package/.claude/skills/cfn-loop-orchestration/{monitor-execution.sh → archive/legacy-bash/monitor-execution.sh} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{agent-log.sh → agent-log.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{agent-recovery.sh → agent-recovery.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{analyze-task-complexity.sh → analyze-task-complexity.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/bash-wrappers/{store-context.sh → store-context.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{cancel-swarm.sh → cancel-swarm.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{cfn-loop-exec.sh → cfn-loop-exec.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{cfn-loop-relaunch.sh → cfn-loop-relaunch.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{collect-confidence-scores.sh → collect-confidence-scores.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{collect-results.sh → collect-results.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{complete-swarm.sh → complete-swarm.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{get-context.sh → get-context.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{get-success-criteria.sh → get-success-criteria.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{invoke-waiting-mode.sh → invoke-waiting-mode.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{redis-cli-wrapper.sh → redis-cli-wrapper.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{redis-functions.sh → redis-functions.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{report-completion.sh → report-completion.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{store-context.sh → store-context.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-loop-orchestration/{inject-loop-context.sh → archive/legacy-bash/inject-loop-context.sh} +0 -0
- /package/claude-assets/skills/cfn-loop-orchestration/{monitor-execution.sh → archive/legacy-bash/monitor-execution.sh} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{agent-log.sh → agent-log.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{agent-recovery.sh → agent-recovery.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{analyze-task-complexity.sh → analyze-task-complexity.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/bash-wrappers/{store-context.sh → store-context.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{cancel-swarm.sh → cancel-swarm.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{cfn-loop-exec.sh → cfn-loop-exec.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{cfn-loop-relaunch.sh → cfn-loop-relaunch.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{collect-confidence-scores.sh → collect-confidence-scores.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{collect-results.sh → collect-results.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{complete-swarm.sh → complete-swarm.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{get-context.sh → get-context.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{get-success-criteria.sh → get-success-criteria.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{invoke-waiting-mode.sh → invoke-waiting-mode.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{redis-cli-wrapper.sh → redis-cli-wrapper.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{redis-functions.sh → redis-functions.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{report-completion.sh → report-completion.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{store-context.sh → store-context.sh.backup} +0 -0
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Execute CFN Loop in CLI mode (
|
|
3
|
-
argument-hint: "<task description> [--mode=mvp|standard|enterprise] [--
|
|
4
|
-
allowed-tools: ["Task", "TodoWrite", "Read", "Bash"]
|
|
2
|
+
description: "Execute CFN Loop in simplified CLI mode (Main Chat coordination, provider routing)"
|
|
3
|
+
argument-hint: "<task description> [--mode=mvp|standard|enterprise] [--provider=zai|kimi|anthropic|openrouter] [--model=<model>] [--agents=N] [--threshold=0.75]"
|
|
4
|
+
allowed-tools: ["Task", "TodoWrite", "Read", "Bash", "SlashCommand"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# CFN Loop CLI Mode -
|
|
7
|
+
# CFN Loop CLI Mode - Parallel Agent Coordination
|
|
8
8
|
|
|
9
|
-
🚨 **
|
|
10
|
-
|
|
11
|
-
**DO NOT just show instructions. EXECUTE the bash command immediately after reading this.**
|
|
9
|
+
🚨 **v2.0 ARCHITECTURE:** Main Chat spawns parallel CLI agents with threshold-based completion
|
|
12
10
|
|
|
13
11
|
---
|
|
14
12
|
|
|
@@ -18,519 +16,293 @@ allowed-tools: ["Task", "TodoWrite", "Read", "Bash"]
|
|
|
18
16
|
```
|
|
19
17
|
TASK_DESCRIPTION: $ARGUMENTS (extract task, remove flags)
|
|
20
18
|
MODE: Parse from --mode flag or default to "standard"
|
|
21
|
-
|
|
19
|
+
PROVIDER: Parse from --provider flag or use Main Chat setting
|
|
20
|
+
MODEL: Parse from --model flag or use provider default
|
|
21
|
+
AGENTS: Parse from --agents flag or default to 4
|
|
22
|
+
THRESHOLD: Parse from --threshold flag or default to 0.75 (3/4 agents)
|
|
22
23
|
```
|
|
23
24
|
|
|
24
|
-
**Step 2: Set
|
|
25
|
+
**Step 2: Set Environment Variables**
|
|
25
26
|
```bash
|
|
26
|
-
#
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
# Generate task ID
|
|
28
|
+
TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
|
|
29
|
+
echo "📋 Task ID: $TASK_ID"
|
|
30
|
+
echo "🎯 Mode: $MODE"
|
|
31
|
+
echo "🤖 Provider: $PROVIDER (from --provider or Main Chat setting)"
|
|
32
|
+
echo "👥 Agents: $AGENTS (threshold: $THRESHOLD)"
|
|
33
|
+
if [ -n "$MODEL" ]; then
|
|
34
|
+
echo "🧠 Model: $MODEL"
|
|
35
|
+
fi
|
|
30
36
|
|
|
31
|
-
|
|
37
|
+
# Set working directory
|
|
38
|
+
export PROJECT_ROOT="${PROJECT_ROOT:-$(pwd)}"
|
|
39
|
+
export TASK_ID="$TASK_ID"
|
|
40
|
+
export MODE="$MODE"
|
|
32
41
|
```
|
|
33
42
|
|
|
34
|
-
**Step 3: Verify Redis Availability (
|
|
43
|
+
**Step 3: Verify Redis Availability (Required for coordination)**
|
|
35
44
|
```bash
|
|
36
|
-
#
|
|
37
|
-
if
|
|
38
|
-
|
|
39
|
-
else
|
|
40
|
-
REDIS_CLI="redis-cli -h $CFN_REDIS_HOST -p $CFN_REDIS_PORT"
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
# Test Redis connectivity (suppress password warning)
|
|
44
|
-
if ! $REDIS_CLI PING >/dev/null 2>&1; then
|
|
45
|
-
echo "❌ ERROR: Redis not available at $CFN_REDIS_HOST:$CFN_REDIS_PORT"
|
|
46
|
-
echo ""
|
|
47
|
-
echo " CLI mode REQUIRES Redis for agent coordination."
|
|
48
|
-
echo " Without Redis, CLI mode cannot function."
|
|
45
|
+
# Check Redis connection
|
|
46
|
+
if ! redis-cli ping >/dev/null 2>&1; then
|
|
47
|
+
echo "❌ ERROR: Redis not available for Main Chat coordination"
|
|
49
48
|
echo ""
|
|
49
|
+
echo " CLI mode requires Redis for agent coordination."
|
|
50
50
|
echo " Options:"
|
|
51
51
|
echo " 1. Start Redis: docker-compose up -d redis"
|
|
52
52
|
echo " 2. Use Task mode instead: /cfn-loop-task \"<task>\""
|
|
53
|
-
echo ""
|
|
54
|
-
echo " If Redis is running but authentication failed:"
|
|
55
|
-
echo " - Check CFN_REDIS_PASSWORD or REDIS_PASSWORD environment variable"
|
|
56
|
-
echo " - Verify Redis password in .env file"
|
|
57
53
|
exit 1
|
|
58
54
|
fi
|
|
59
55
|
|
|
60
|
-
echo "✅ Redis available
|
|
56
|
+
echo "✅ Redis available for Main Chat coordination"
|
|
61
57
|
```
|
|
62
58
|
|
|
63
|
-
**Step 4:
|
|
59
|
+
**Step 4: Spawn Parallel CLI Agents**
|
|
64
60
|
```bash
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
**Step 5: Spawn Coordinator (REQUIRED - Execute this command now via Bash tool)**
|
|
70
|
-
```bash
|
|
71
|
-
# Spawn coordinator with Redis environment variables
|
|
72
|
-
CFN_REDIS_HOST="$CFN_REDIS_HOST" \
|
|
73
|
-
CFN_REDIS_PORT="$CFN_REDIS_PORT" \
|
|
74
|
-
CFN_REDIS_PASSWORD="$CFN_REDIS_PASSWORD" \
|
|
75
|
-
npx claude-flow-novice agent cfn-v3-coordinator \
|
|
76
|
-
--task-id "$TASK_ID" \
|
|
77
|
-
--context "TASK_DESCRIPTION='$TASK_DESCRIPTION' MODE='$MODE' MAX_ITERATIONS=$MAX_ITERATIONS TASK_ID='$TASK_ID'" \
|
|
78
|
-
--timeout 300 \
|
|
79
|
-
--background=true
|
|
80
|
-
```
|
|
61
|
+
# Define agent types based on task complexity
|
|
62
|
+
# For comprehensive tasks, spawn multiple specialized agents
|
|
63
|
+
AGENT_TYPES=("backend-developer" "tester" "code-reviewer" "security-specialist")
|
|
81
64
|
|
|
82
|
-
|
|
83
|
-
After spawning coordinator, tell user:
|
|
84
|
-
- ✅ CFN Loop coordinator spawned with task ID: $TASK_ID
|
|
85
|
-
- 📊 Monitor progress: `redis-cli -h $CFN_REDIS_HOST -p $CFN_REDIS_PORT HGETALL "cfn_loop:task:$TASK_ID:context"`
|
|
86
|
-
- 🌐 Web dashboard: http://localhost:3000
|
|
65
|
+
echo "🚀 Spawning $AGENTS parallel CLI agents..."
|
|
87
66
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
**Task**: $ARGUMENTS
|
|
93
|
-
|
|
94
|
-
## What is CLI Mode?
|
|
67
|
+
# Spawn agents in BACKGROUND (use & to allow Main Chat to continue)
|
|
68
|
+
for i in $(seq 1 $AGENTS); do
|
|
69
|
+
AGENT_TYPE="${AGENT_TYPES[$((i-1)) % ${#AGENT_TYPES[@]}]}"
|
|
70
|
+
AGENT_ID="${AGENT_TYPE}-${TASK_ID}-${i}"
|
|
95
71
|
|
|
96
|
-
|
|
97
|
-
- Main Chat processes **slash command** then spawns coordinator agent via CLI with background=true
|
|
98
|
-
- Coordinator spawns **all workers via CLI** with background=true for cost optimization
|
|
99
|
-
- All CLI agents use **Z.ai custom routing** (when enabled)
|
|
100
|
-
- **Real-time monitoring** with automatic recovery from stuck agents
|
|
101
|
-
- Background execution with **Redis monitoring** and progress visibility
|
|
102
|
-
- **Enhanced features**: Process health checking, context validation, broadcast protocol
|
|
72
|
+
echo " → Spawning agent $i: $AGENT_TYPE ($AGENT_ID)"
|
|
103
73
|
|
|
74
|
+
npx claude-flow-novice agent "$AGENT_TYPE" \
|
|
75
|
+
--task-id "$TASK_ID" \
|
|
76
|
+
--mode "$MODE" \
|
|
77
|
+
--provider "$PROVIDER" \
|
|
78
|
+
--context "$TASK_DESCRIPTION" \
|
|
79
|
+
</dev/null >/tmp/agent-${AGENT_ID}.log 2>&1 &
|
|
80
|
+
done
|
|
104
81
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
**Enable Z.ai Custom Routing (One-Time Setup):**
|
|
108
|
-
```bash
|
|
109
|
-
/switch-api zai
|
|
82
|
+
echo "✅ All $AGENTS CLI agents spawned with Task ID: $TASK_ID"
|
|
110
83
|
```
|
|
111
84
|
|
|
112
|
-
**
|
|
85
|
+
**Step 5: Wait for Threshold Completion (FOREGROUND - Required for Main Chat)**
|
|
113
86
|
```bash
|
|
114
|
-
|
|
115
|
-
#
|
|
116
|
-
```
|
|
87
|
+
# CRITICAL: Run monitor in FOREGROUND so Main Chat receives completion signal
|
|
88
|
+
# DO NOT use run_in_background for this monitoring loop
|
|
117
89
|
|
|
118
|
-
|
|
90
|
+
COMPLETION_QUEUE="cfn:cli:${TASK_ID}:completion"
|
|
91
|
+
REQUIRED=$(echo "$AGENTS * $THRESHOLD" | bc | cut -d. -f1)
|
|
119
92
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
/cfn-loop-cli "Implement JWT authentication"
|
|
124
|
-
|
|
125
|
-
# MVP mode (fast, lower quality gates)
|
|
126
|
-
/cfn-loop-cli "Build prototype feature" --mode=mvp
|
|
93
|
+
echo "⏳ Monitoring for completion (${REQUIRED}/$AGENTS agents)..."
|
|
94
|
+
echo "📊 Queue: $COMPLETION_QUEUE"
|
|
95
|
+
echo ""
|
|
127
96
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
```
|
|
97
|
+
COMPLETED=0
|
|
98
|
+
END_TIME=$(($(date +%s) + 300)) # 5 minute timeout
|
|
131
99
|
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
- `--max-iterations=<n>`: Max iterations per loop (default: 10)
|
|
135
|
-
|
|
136
|
-
## Mode Comparison
|
|
100
|
+
while [ $(date +%s) -lt $END_TIME ] && [ $COMPLETED -lt $REQUIRED ]; do
|
|
101
|
+
QUEUE_LEN=$(redis-cli LLEN "$COMPLETION_QUEUE" 2>/dev/null || echo "0")
|
|
137
102
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
1. **Main Chat** invokes `/cfn-loop-cli` slash command
|
|
147
|
-
2. **SlashCommand tool** processes command and returns execution instructions to Main Chat
|
|
148
|
-
3. **Main Chat** spawns `cfn-v3-coordinator` agent via bash with background=true
|
|
149
|
-
4. **Coordinator** orchestrates the entire CFN Loop workflow in the background
|
|
150
|
-
5. **Coordinator** spawns **Loop 3 workers via CLI** with background=true
|
|
151
|
-
6. **Loop 3** agents implement the solution and validate against quality gates
|
|
152
|
-
7. **Coordinator** spawns **Loop 2 workers via CLI** for validation
|
|
153
|
-
8. **Product Owner** makes the final decision on deliverables
|
|
154
|
-
9. **Background execution** with Redis coordination for scalability
|
|
155
|
-
|
|
156
|
-
**CLI Architecture Pattern:**
|
|
157
|
-
- Main Chat → SlashCommand (processing) → Main Chat spawns coordinator via bash
|
|
158
|
-
```bash
|
|
159
|
-
npx claude-flow-novice agent cfn-v3-coordinator \
|
|
160
|
-
--task-id "cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}" \
|
|
161
|
-
--context "TASK_DESCRIPTION='Fix core infrastructure
|
|
162
|
-
dependencies' MODE='standard' MAX_ITERATIONS=10" \
|
|
163
|
-
--timeout 300 \
|
|
164
|
-
--background=true
|
|
165
|
-
```
|
|
166
|
-
- All agents spawned via CLI by coordinator with Z.ai routing and background execution
|
|
167
|
-
- Background execution enables monitoring and recovery capabilities
|
|
103
|
+
if [ "$QUEUE_LEN" -gt 0 ]; then
|
|
104
|
+
SIGNAL=$(redis-cli LPOP "$COMPLETION_QUEUE")
|
|
105
|
+
if [ -n "$SIGNAL" ] && [ "$SIGNAL" != "(nil)" ]; then
|
|
106
|
+
COMPLETED=$((COMPLETED + 1))
|
|
107
|
+
AGENT_ID=$(echo "$SIGNAL" | jq -r '.agentId' 2>/dev/null || echo "unknown")
|
|
108
|
+
CONFIDENCE=$(echo "$SIGNAL" | jq -r '.confidence' 2>/dev/null || echo "N/A")
|
|
109
|
+
PROVIDER=$(echo "$SIGNAL" | jq -r '.provider' 2>/dev/null || echo "N/A")
|
|
168
110
|
|
|
169
|
-
|
|
111
|
+
echo "✅ Agent $COMPLETED completed: $AGENT_ID"
|
|
112
|
+
echo " Confidence: $CONFIDENCE, Provider: $PROVIDER"
|
|
113
|
+
echo ""
|
|
170
114
|
|
|
171
|
-
|
|
115
|
+
if [ $COMPLETED -ge $REQUIRED ]; then
|
|
116
|
+
echo "🎉 THRESHOLD MET! ($COMPLETED/$AGENTS agents)"
|
|
117
|
+
echo "✅ CFN Loop CLI task completed"
|
|
118
|
+
exit 0
|
|
119
|
+
fi
|
|
120
|
+
fi
|
|
121
|
+
fi
|
|
172
122
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
# Verify coordinator spawned successfully
|
|
176
|
-
TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
|
|
177
|
-
pgrep -f "cfn-v3-coordinator" && echo "✅ Coordinator running" || echo "❌ Coordinator failed"
|
|
123
|
+
sleep 3
|
|
124
|
+
done
|
|
178
125
|
|
|
179
|
-
|
|
180
|
-
|
|
126
|
+
echo "⏰ Timeout: Only $COMPLETED/$AGENTS agents completed"
|
|
127
|
+
exit 1
|
|
181
128
|
```
|
|
182
129
|
|
|
183
|
-
|
|
130
|
+
**Step 6: Query Agent Status (Optional - Interactive)**
|
|
184
131
|
```bash
|
|
185
|
-
#
|
|
186
|
-
|
|
132
|
+
# Main Chat can query individual agent status during execution
|
|
133
|
+
# Example: npx tsx src/cli/coordination/agent-messaging.ts status --task-id "$TASK_ID" --agent-id <agent-id>
|
|
187
134
|
|
|
188
|
-
#
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
# Quick health check
|
|
192
|
-
redis-cli HGET "cfn_loop:task:$TASK_ID:health" "coordinator"
|
|
135
|
+
# Or send commands to running agents:
|
|
136
|
+
# npx tsx src/cli/coordination/agent-messaging.ts send --task-id "$TASK_ID" --agent-id <agent-id> --command status
|
|
193
137
|
```
|
|
194
138
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
# Start monitoring dashboard
|
|
198
|
-
npm run portal:start
|
|
199
|
-
|
|
200
|
-
# Access real-time progress at http://localhost:3000
|
|
201
|
-
# - Live agent status dashboard
|
|
202
|
-
# - Iteration progress visualization
|
|
203
|
-
# - Confidence score trends
|
|
204
|
-
# - Error rate monitoring
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### 4. Background Execution Monitoring Pattern
|
|
208
|
-
```bash
|
|
209
|
-
# For long-running tasks, use this monitoring pattern:
|
|
210
|
-
sleep 300 # Wait 5 minutes
|
|
211
|
-
redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep status
|
|
212
|
-
|
|
213
|
-
# If still running, continue monitoring
|
|
214
|
-
if [ $? -eq 0 ]; then
|
|
215
|
-
echo "Task in progress, monitoring..."
|
|
216
|
-
sleep 300 # Wait another 5 minutes
|
|
217
|
-
redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep status
|
|
218
|
-
fi
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
### 5. Troubleshooting If Coordinator Fails
|
|
222
|
-
```bash
|
|
223
|
-
# Investigate missing coordinator
|
|
224
|
-
./.claude/skills/cfn-loop-orchestration/investigate-missing-coordinator.sh "$TASK_ID"
|
|
225
|
-
|
|
226
|
-
# Check for process issues
|
|
227
|
-
ps aux | grep "claude-flow-novice agent" | grep -v grep
|
|
228
|
-
|
|
229
|
-
# Verify Redis connectivity
|
|
230
|
-
redis-cli PING
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
## CLI Mode Benefits
|
|
234
|
-
|
|
235
|
-
**Performance:**
|
|
236
|
-
- Scales linearly with iterations (Task mode scales exponentially)
|
|
237
|
-
- Background execution without timeout limitations
|
|
238
|
-
- Parallel agent spawning for improved throughput
|
|
239
|
-
|
|
240
|
-
**Production Features v3.0:**
|
|
241
|
-
- Background execution (no timeout issues)
|
|
242
|
-
- Redis state persistence (crash recovery)
|
|
243
|
-
- Zero-token waiting (BLPOP blocks without API calls)
|
|
244
|
-
- Web portal visibility (http://localhost:3000)
|
|
245
|
-
- **Enhanced monitoring**: Real-time agent progress tracking
|
|
246
|
-
- **Automatic recovery**: Dead process cleanup and agent restart
|
|
247
|
-
- **Protocol compliance**: Prevents "consensus on vapor" anti-patterns
|
|
248
|
-
- **Progress visibility**: Detailed reports with timestamps and health status
|
|
249
|
-
|
|
250
|
-
**Performance:**
|
|
251
|
-
- Parallel agent spawning (no sequential bottleneck)
|
|
252
|
-
- Instant wake-up (<100ms latency)
|
|
253
|
-
- Scalable (10+ agents, indefinite cycles)
|
|
139
|
+
**Step 7: Inform User**
|
|
140
|
+
Report completion status, which agents completed, and any additional information.
|
|
254
141
|
|
|
255
|
-
|
|
142
|
+
---
|
|
256
143
|
|
|
257
|
-
|
|
258
|
-
```bash
|
|
259
|
-
/switch-api status # Check current provider
|
|
260
|
-
/switch-api zai # Enable Z.ai routing
|
|
261
|
-
```
|
|
144
|
+
## Background Information (DO NOT show this to user unless they ask)
|
|
262
145
|
|
|
263
|
-
**
|
|
264
|
-
- Expected for long tasks (>10 min)
|
|
265
|
-
- Check web portal for progress: http://localhost:3000
|
|
266
|
-
- Query Redis: `redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"`
|
|
146
|
+
**Task**: $ARGUMENTS
|
|
267
147
|
|
|
268
|
-
|
|
269
|
-
- Orchestrator validates deliverables before PROCEED
|
|
270
|
-
- Will force ITERATE if git diff shows zero changes
|
|
271
|
-
- Check coordinator output for validation failures
|
|
148
|
+
## What is CLI Mode?
|
|
272
149
|
|
|
273
|
-
**
|
|
274
|
-
-
|
|
275
|
-
-
|
|
276
|
-
-
|
|
150
|
+
**v2.0 CLI Mode Architecture (Parallel + Messaging):**
|
|
151
|
+
- **Main Chat** spawns multiple CLI agents in parallel
|
|
152
|
+
- **CLI agents** execute tasks and send Redis completion signals
|
|
153
|
+
- **Main Chat** waits for threshold completion (e.g., 3/4 agents)
|
|
154
|
+
- **Bidirectional messaging** - Main Chat can send commands to running agents
|
|
155
|
+
- **Provider routing** via `--provider` and `--model` flags
|
|
156
|
+
- **Graceful degradation** - continues when threshold met, doesn't wait for stragglers
|
|
277
157
|
|
|
278
|
-
##
|
|
158
|
+
## New Features (v2.0)
|
|
279
159
|
|
|
280
|
-
|
|
160
|
+
### Parallel Agent Spawning
|
|
161
|
+
- Spawn multiple agents simultaneously (default: 4)
|
|
162
|
+
- Each agent works independently on the task
|
|
163
|
+
- Different agent types for comprehensive coverage
|
|
281
164
|
|
|
282
|
-
###
|
|
283
|
-
-
|
|
284
|
-
-
|
|
285
|
-
-
|
|
286
|
-
- **Error Detection**: Automatic identification of stuck or failed agents
|
|
165
|
+
### Threshold-Based Completion
|
|
166
|
+
- Exit when N/M agents complete (default: 75%)
|
|
167
|
+
- Don't wait for slow/stuck agents
|
|
168
|
+
- Configurable via `--threshold` flag
|
|
287
169
|
|
|
288
|
-
###
|
|
170
|
+
### Bidirectional Messaging
|
|
171
|
+
Main Chat can communicate with running agents:
|
|
289
172
|
|
|
290
|
-
**
|
|
173
|
+
**Query agent status:**
|
|
291
174
|
```bash
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
# Monitor agent completion status
|
|
296
|
-
redis-cli LRANGE "swarm:${TASK_ID}:agent:status" 0 -1
|
|
175
|
+
npx tsx src/cli/coordination/agent-messaging.ts status \
|
|
176
|
+
--task-id "$TASK_ID" --agent-id <agent-id>
|
|
297
177
|
```
|
|
298
178
|
|
|
299
|
-
**
|
|
179
|
+
**Send commands to agents:**
|
|
300
180
|
```bash
|
|
301
|
-
#
|
|
302
|
-
|
|
181
|
+
# Request status update
|
|
182
|
+
npx tsx src/cli/coordination/agent-messaging.ts send \
|
|
183
|
+
--task-id "$TASK_ID" --agent-id <agent-id> --command status
|
|
303
184
|
|
|
304
|
-
#
|
|
305
|
-
|
|
185
|
+
# Redirect agent to new task
|
|
186
|
+
npx tsx src/cli/coordination/agent-messaging.ts send \
|
|
187
|
+
--task-id "$TASK_ID" --agent-id <agent-id> --command redirect \
|
|
188
|
+
--payload '{"newTask": "Focus on security tests"}'
|
|
306
189
|
|
|
307
|
-
#
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
**Progress Monitoring:**
|
|
312
|
-
```bash
|
|
313
|
-
# Real-time agent completion monitoring
|
|
314
|
-
watch -n 5 'redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep -E "(iteration|confidence|status)"'
|
|
190
|
+
# Abort agent
|
|
191
|
+
npx tsx src/cli/coordination/agent-messaging.ts send \
|
|
192
|
+
--task-id "$TASK_ID" --agent-id <agent-id> --command abort
|
|
315
193
|
|
|
316
|
-
#
|
|
317
|
-
|
|
194
|
+
# Pause agent
|
|
195
|
+
npx tsx src/cli/coordination/agent-messaging.ts send \
|
|
196
|
+
--task-id "$TASK_ID" --agent-id <agent-id> --command pause \
|
|
197
|
+
--payload '{"seconds": 30}'
|
|
318
198
|
```
|
|
319
199
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
**Dead Process Detection:**
|
|
323
|
-
- Automatically detects and reports stuck agents
|
|
324
|
-
- Process health checking with configurable timeouts
|
|
325
|
-
- Automatic cleanup of orphaned Redis connections
|
|
326
|
-
|
|
327
|
-
**Agent Restart Capability:**
|
|
328
|
-
- Coordinator can restart failed agents automatically
|
|
329
|
-
- Context preservation across agent restarts
|
|
330
|
-
- Iteration state recovery from Redis persistence
|
|
331
|
-
|
|
332
|
-
**Error Recovery Patterns:**
|
|
333
|
-
- Timeout detection and agent termination
|
|
334
|
-
- Context validation before spawning replacements
|
|
335
|
-
- Graceful degradation with partial agent sets
|
|
336
|
-
|
|
337
|
-
### Monitoring Dashboard Features
|
|
338
|
-
|
|
339
|
-
**Web Portal (http://localhost:3000):**
|
|
340
|
-
- Live agent status dashboard
|
|
341
|
-
- Iteration progress visualization
|
|
342
|
-
- Confidence score trends
|
|
343
|
-
- Error rate monitoring
|
|
344
|
-
- Resource usage graphs
|
|
345
|
-
|
|
346
|
-
**CLI Monitoring Tools:**
|
|
347
|
-
- `cfn-portal` - Start/stop monitoring dashboard
|
|
348
|
-
- `cfn-context` - Query task context and status
|
|
349
|
-
- `cfn-metrics` - View performance analytics
|
|
350
|
-
- `cfn-redis` - Direct Redis inspection tools
|
|
351
|
-
|
|
352
|
-
### Troubleshooting Monitoring Issues
|
|
200
|
+
## Prerequisites
|
|
353
201
|
|
|
354
|
-
**
|
|
202
|
+
**Redis Required:**
|
|
355
203
|
```bash
|
|
356
|
-
#
|
|
357
|
-
|
|
204
|
+
# Start Redis for coordination
|
|
205
|
+
docker-compose up -d redis
|
|
358
206
|
|
|
359
|
-
#
|
|
360
|
-
redis-cli
|
|
207
|
+
# Verify Redis is running
|
|
208
|
+
redis-cli ping
|
|
361
209
|
```
|
|
362
210
|
|
|
363
|
-
**
|
|
211
|
+
**Provider Routing Setup (Optional):**
|
|
364
212
|
```bash
|
|
365
|
-
#
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
#
|
|
369
|
-
redis-cli HGET "cfn_loop:task:$TASK_ID:timeouts" "agent_timeouts"
|
|
213
|
+
# Configure Main Chat provider
|
|
214
|
+
/switch-api zai # Cost-optimized
|
|
215
|
+
/switch-api kimi # Mid-range quality
|
|
216
|
+
/switch-api max # High quality (Anthropic)
|
|
370
217
|
```
|
|
371
218
|
|
|
372
|
-
|
|
373
|
-
```bash
|
|
374
|
-
# Test Redis connectivity
|
|
375
|
-
redis-cli -n 0 PING
|
|
376
|
-
|
|
377
|
-
# Check Redis memory usage
|
|
378
|
-
redis-cli INFO memory | grep used_memory_human
|
|
219
|
+
## Command Options
|
|
379
220
|
|
|
380
|
-
|
|
381
|
-
redis-cli DBSIZE
|
|
221
|
+
**Usage Examples:**
|
|
382
222
|
```
|
|
223
|
+
# Standard mode with default provider
|
|
224
|
+
/cfn-loop-cli "Implement JWT authentication"
|
|
383
225
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
**Simple API Development:**
|
|
387
|
-
```
|
|
388
|
-
/cfn-loop-cli "Build REST API with user authentication"
|
|
389
|
-
```
|
|
226
|
+
# With specific provider
|
|
227
|
+
/cfn-loop-cli "Build API service" --provider kimi
|
|
390
228
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
/cfn-loop-cli "Implement payment processing with PCI compliance" --mode=enterprise --max-iterations=15
|
|
394
|
-
```
|
|
229
|
+
# With specific provider and model
|
|
230
|
+
/cfn-loop-cli "Create React component" --provider openrouter --model gpt-4
|
|
395
231
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
/cfn-loop-cli "Build MVP landing page" --mode=mvp
|
|
399
|
-
```
|
|
232
|
+
# MVP mode for fast prototyping
|
|
233
|
+
/cfn-loop-cli "Build feature prototype" --mode=mvp
|
|
400
234
|
|
|
401
|
-
|
|
235
|
+
# Enterprise mode for critical systems
|
|
236
|
+
/cfn-loop-cli "Security audit" --mode=enterprise --provider max
|
|
402
237
|
```
|
|
403
|
-
/cfn-loop-cli "Set up CI/CD pipeline for microservices"
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
## Related Commands
|
|
407
|
-
|
|
408
|
-
- **Task Mode**: `/cfn-loop-task` (debugging, full visibility)
|
|
409
|
-
- **Frontend**: `/cfn-loop-frontend` (visual iteration workflow)
|
|
410
|
-
- **Documentation**: `/cfn-loop-document` (generate docs)
|
|
411
|
-
|
|
412
|
-
## Related Documentation
|
|
413
|
-
|
|
414
|
-
- Task Mode Guide: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
|
|
415
|
-
- Coordinator Parameters: `.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md`
|
|
416
|
-
- Redis Coordination: `.claude/skills/cfn-redis-coordination/SKILL.md`
|
|
417
|
-
- Orchestration: `.claude/skills/cfn-loop-orchestration/SKILL.md`
|
|
418
|
-
|
|
419
|
-
---
|
|
420
|
-
|
|
421
|
-
## 🚨 EXECUTION INSTRUCTIONS (Internal Use)
|
|
422
|
-
|
|
423
|
-
**Main Chat: Slash command processing followed by CLI coordinator spawning:**
|
|
424
|
-
|
|
425
|
-
The SlashCommand tool processes the command and returns execution instructions. Main Chat then spawns the coordinator agent using CLI with background=true for monitoring capabilities.
|
|
426
238
|
|
|
427
|
-
**
|
|
239
|
+
**Options:**
|
|
240
|
+
- `--mode=<mvp|standard|enterprise>`: Quality mode (default: standard)
|
|
241
|
+
- `--provider=<zai|kimi|anthropic|openrouter>`: AI provider (default: Main Chat setting)
|
|
242
|
+
- `--model=<model>`: Specific model (provider-specific)
|
|
428
243
|
|
|
429
|
-
|
|
430
|
-
# Generate unique task ID
|
|
431
|
-
TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
|
|
244
|
+
## Provider Routing Behavior
|
|
432
245
|
|
|
433
|
-
|
|
434
|
-
TASK_DESCRIPTION="$ARGUMENTS"
|
|
435
|
-
MODE="${mode:-standard}"
|
|
436
|
-
MAX_ITERATIONS="${maxIterations:-10}"
|
|
437
|
-
|
|
438
|
-
# Spawn coordinator via CLI (background execution)
|
|
439
|
-
npx claude-flow-novice agent cfn-v3-coordinator \
|
|
440
|
-
--task-id "$TASK_ID" \
|
|
441
|
-
--context "TASK_DESCRIPTION='$TASK_DESCRIPTION' MODE='$MODE' MAX_ITERATIONS=$MAX_ITERATIONS" \
|
|
442
|
-
--timeout 300 \
|
|
443
|
-
--background=true
|
|
444
|
-
```
|
|
246
|
+
**Main Chat + Task() tools:** Controlled by `/switch-api` command
|
|
445
247
|
|
|
446
|
-
**
|
|
248
|
+
**CLI agents:**
|
|
249
|
+
- Uses `--provider` flag if specified
|
|
250
|
+
- Falls back to Main Chat provider setting
|
|
251
|
+
- Default to Z.ai glm-4.6 if no provider configured
|
|
447
252
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
--context "TASK_DESCRIPTION='Fix core infrastructure dependencies - lucide-wrappers.tsx LucideIcon React 18 compatibility, resolve module export errors in types/, establish proper import path resolution' MODE='standard' MAX_ITERATIONS=10" \
|
|
453
|
-
--timeout 300 \
|
|
454
|
-
--background=true
|
|
455
|
-
```
|
|
253
|
+
**Fallback Hierarchy:**
|
|
254
|
+
1. `--provider` flag (explicit)
|
|
255
|
+
2. Main Chat provider setting (from `/switch-api`)
|
|
256
|
+
3. Z.ai glm-4.6 (cost-effective default)
|
|
456
257
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
```bash
|
|
460
|
-
# Generate unique task ID
|
|
461
|
-
TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
|
|
462
|
-
|
|
463
|
-
# Extract task description and mode from slash command arguments
|
|
464
|
-
TASK_DESCRIPTION="parsed from $ARGUMENTS"
|
|
465
|
-
MODE="${mode:-standard}"
|
|
466
|
-
MAX_ITERATIONS="${maxIterations:-10}"
|
|
467
|
-
|
|
468
|
-
# Determine appropriate agents based on task complexity
|
|
469
|
-
TASK_COMPLEXITY="standard" # auto-detect or pass from command
|
|
470
|
-
case "$TASK_COMPLEXITY" in
|
|
471
|
-
"simple")
|
|
472
|
-
LOOP3_AGENTS="backend-dev,researcher"
|
|
473
|
-
LOOP2_AGENTS="reviewer,tester"
|
|
474
|
-
;;
|
|
475
|
-
"standard")
|
|
476
|
-
LOOP3_AGENTS="backend-dev,researcher,devops"
|
|
477
|
-
LOOP2_AGENTS="reviewer,tester,architect,security-specialist"
|
|
478
|
-
;;
|
|
479
|
-
"complex")
|
|
480
|
-
LOOP3_AGENTS="backend-dev,researcher,devops,rust-developer"
|
|
481
|
-
LOOP2_AGENTS="reviewer,tester,architect,security-specialist,code-analyzer"
|
|
482
|
-
;;
|
|
483
|
-
esac
|
|
484
|
-
|
|
485
|
-
# Coordinator spawns CLI workers (background execution)
|
|
486
|
-
npx claude-flow-novice agent "$LOOP3_AGENT" \
|
|
487
|
-
--task-id "$TASK_ID" \
|
|
488
|
-
--agent-id "$AGENT_ID" \
|
|
489
|
-
--context "Complete deliverables and acceptance criteria" \
|
|
490
|
-
--timeout 300 \
|
|
491
|
-
--background=true
|
|
492
|
-
|
|
493
|
-
# Monitor progress (required for background tasks)
|
|
494
|
-
# redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"
|
|
495
|
-
```
|
|
258
|
+
## Mode Comparison
|
|
496
259
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
-
|
|
519
|
-
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
260
|
+
| Mode | Quality | Use Case | Description |
|
|
261
|
+
|------|---------|----------|-------------|
|
|
262
|
+
| MVP | Fast (70% gates) | Prototypes, quick experiments | Lower quality gates, fewer iterations |
|
|
263
|
+
| Standard | Production (95% gates) | Most features | Balanced quality and speed |
|
|
264
|
+
| Enterprise | High (98% gates) | Security, compliance | Maximum quality, thorough validation |
|
|
265
|
+
|
|
266
|
+
## How New CLI Mode Works
|
|
267
|
+
|
|
268
|
+
1. **Main Chat** processes `/cfn-loop-cli` command
|
|
269
|
+
2. **Main Chat** spawns CLI agent directly with provider routing
|
|
270
|
+
3. **CLI Agent** executes task with specified AI provider
|
|
271
|
+
4. **CLI Agent** sends Redis completion signal when finished
|
|
272
|
+
5. **Main Chat** receives signal via Redis BLPOP and continues
|
|
273
|
+
6. **No complex orchestrator needed** - simple 2-layer coordination
|
|
274
|
+
|
|
275
|
+
## Agent Environment Variables
|
|
276
|
+
|
|
277
|
+
CLI agents automatically receive:
|
|
278
|
+
- `TASK_ID`: Unique task identifier
|
|
279
|
+
- `MODE`: Quality mode (mvp/standard/enterprise)
|
|
280
|
+
- `PROVIDER`: AI provider (zai/kimi/anthropic/openrouter)
|
|
281
|
+
- `MODEL`: Specific AI model
|
|
282
|
+
- `AGENT_ID`: Generated unique agent identifier
|
|
283
|
+
|
|
284
|
+
## Redis Signal Format
|
|
285
|
+
|
|
286
|
+
CLI agents send completion signals in this format:
|
|
287
|
+
```json
|
|
288
|
+
{
|
|
289
|
+
"agentId": "agent-backend-dev-12345",
|
|
290
|
+
"taskId": "cfn-cli-67890",
|
|
291
|
+
"status": "completed",
|
|
292
|
+
"timestamp": "2025-11-22T12:00:00.000Z",
|
|
293
|
+
"provider": "kimi",
|
|
294
|
+
"model": "moonshot-v1-8k",
|
|
295
|
+
"confidence": 0.90,
|
|
296
|
+
"metadata": {
|
|
297
|
+
"iteration": 1,
|
|
298
|
+
"mode": "standard"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
This simplified architecture provides:
|
|
304
|
+
- ✅ **Direct coordination** - Main Chat to CLI agents
|
|
305
|
+
- ✅ **Provider flexibility** - Different AI providers per agent
|
|
306
|
+
- ✅ **Cost optimization** - Use appropriate providers for each task
|
|
307
|
+
- ✅ **Reliable signaling** - Redis BLPOP for coordination
|
|
308
|
+
- ✅ **Simple architecture** - No complex orchestrator needed
|