claude-flow-novice 2.9.1 → 2.10.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/agents/cfn-dev-team/CLAUDE.md +1086 -0
- package/.claude/agents/cfn-dev-team/README.md +116 -0
- package/.claude/agents/cfn-dev-team/architecture/api-designer-persona.md +149 -0
- package/.claude/agents/cfn-dev-team/architecture/base-template-generator.md +196 -0
- package/.claude/agents/cfn-dev-team/architecture/goal-planner.md +183 -0
- package/.claude/agents/cfn-dev-team/architecture/planner.md +182 -0
- package/.claude/agents/cfn-dev-team/architecture/system-architect.md +162 -0
- package/.claude/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +540 -0
- package/.claude/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +20 -14
- package/.claude/agents/cfn-dev-team/coordinators/consensus-builder.md +167 -0
- package/.claude/agents/cfn-dev-team/dev-ops/devops-engineer.md +148 -0
- package/.claude/agents/cfn-dev-team/dev-ops/github-commit-agent.md +118 -0
- package/.claude/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +540 -0
- package/.claude/agents/cfn-dev-team/developers/backend-dev.md +20 -0
- package/.claude/agents/cfn-dev-team/developers/data/data-engineer.md +585 -0
- package/.claude/agents/cfn-dev-team/developers/database/database-architect.md +276 -0
- package/.claude/agents/cfn-dev-team/developers/dev-backend-api.md +147 -0
- package/.claude/agents/cfn-dev-team/developers/frontend/mobile-dev.md +218 -0
- package/.claude/agents/cfn-dev-team/developers/{react-frontend-engineer.md → frontend/react-frontend-engineer.md} +53 -5
- package/.claude/agents/cfn-dev-team/developers/frontend/spec-mobile-react-native.md +199 -0
- package/.claude/agents/cfn-dev-team/developers/graphql-specialist.md +615 -0
- package/.claude/agents/cfn-dev-team/developers/rust-developer.md +174 -0
- package/.claude/agents/cfn-dev-team/documentation/README-VALIDATION.md +243 -0
- package/.claude/agents/cfn-dev-team/documentation/agent-type-guidelines.md +465 -0
- package/.claude/agents/cfn-dev-team/documentation/api-docs.md +103 -0
- package/.claude/agents/cfn-dev-team/documentation/docs-api-openapi.md +98 -0
- package/.claude/agents/cfn-dev-team/documentation/pseudocode.md +159 -0
- package/.claude/agents/cfn-dev-team/documentation/specification.md +157 -0
- package/.claude/agents/cfn-dev-team/product-owners/accessibility-advocate-persona.md +109 -0
- package/.claude/agents/cfn-dev-team/{coordinators → product-owners}/cto-agent.md +8 -6
- package/.claude/agents/cfn-dev-team/product-owners/power-user-persona.md +190 -0
- package/.claude/agents/cfn-dev-team/{coordinators → product-owners}/product-owner.md +85 -59
- package/.claude/agents/cfn-dev-team/reviewers/quality/analyze-code-quality.md +141 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/code-analyzer.md +200 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/cyclomatic-complexity-reducer.md +321 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +238 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +101 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/quality-metrics.md +375 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/security-specialist.md +193 -0
- package/.claude/agents/cfn-dev-team/reviewers/reviewer.md +39 -0
- package/.claude/agents/cfn-dev-team/testers/interaction-tester.md +31 -0
- package/.claude/agents/cfn-dev-team/testers/load-testing-specialist.md +469 -0
- package/.claude/agents/cfn-dev-team/testers/playwright-tester.md +24 -0
- package/.claude/agents/cfn-dev-team/testers/tester.md +20 -0
- package/.claude/agents/cfn-dev-team/utility/agent-builder.md +151 -0
- package/.claude/agents/cfn-dev-team/utility/analyst.md +178 -0
- package/.claude/agents/cfn-dev-team/utility/claude-code-expert.md +1043 -0
- package/.claude/agents/cfn-dev-team/utility/code-booster.md +139 -0
- package/.claude/agents/cfn-dev-team/utility/context-curator.md +99 -0
- package/.claude/agents/cfn-dev-team/{developers → utility}/researcher.md +6 -4
- package/.claude/commands/cfn/CFN_LOOP_FRONTEND.md +741 -0
- package/.claude/commands/cfn/CFN_LOOP_TASK_MODE.md +353 -0
- package/.claude/commands/cfn/cfn-loop-frontend.md +555 -0
- package/.claude/commands/cfn/cfn-loop.md +168 -7
- package/{CFN-CLAUDE.md → .claude/root-claude-distribute/CFN-CLAUDE.md} +23 -3
- package/.claude/skills/cfn-ace-system/SKILL.md +364 -0
- package/.claude/skills/cfn-ace-system/add-bullet.sh +145 -0
- package/.claude/skills/cfn-ace-system/analyze-anti-pattern-effectiveness.sh +56 -0
- package/.claude/skills/cfn-ace-system/classify-task.sh +18 -0
- package/.claude/skills/cfn-ace-system/export-ace-metrics.sh +48 -0
- package/.claude/skills/cfn-ace-system/extract-tags.sh +385 -0
- package/.claude/skills/cfn-ace-system/format-negative-context.sh +180 -0
- package/.claude/skills/cfn-ace-system/init-indexes.sql +160 -0
- package/.claude/skills/cfn-ace-system/invoke-context-curate.sh +192 -0
- package/.claude/skills/cfn-ace-system/invoke-context-inject.sh +361 -0
- package/.claude/skills/cfn-ace-system/invoke-context-query.sh +139 -0
- package/.claude/skills/cfn-ace-system/invoke-context-reflect.sh +343 -0
- package/.claude/skills/cfn-ace-system/invoke-context-stats.sh +227 -0
- package/.claude/skills/cfn-ace-system/log-merge.sh +67 -0
- package/.claude/skills/cfn-ace-system/monitor-injection-performance.sh +138 -0
- package/.claude/skills/cfn-ace-system/optimize-injection-pipeline.sh +169 -0
- package/.claude/skills/cfn-ace-system/query-anti-patterns.sh +276 -0
- package/.claude/skills/cfn-ace-system/query-contexts.sh +150 -0
- package/.claude/skills/cfn-ace-system/query-reflections.sh +35 -0
- package/.claude/skills/cfn-ace-system/schema/001-create-context-reflections.sql +237 -0
- package/.claude/skills/cfn-ace-system/schema/README.md +723 -0
- package/.claude/skills/cfn-ace-system/schema/SCHEMA_DESIGN_SUMMARY.md +564 -0
- package/.claude/skills/cfn-ace-system/schema/populate-test-data-simple.sh +62 -0
- package/.claude/skills/cfn-ace-system/schema/populate-test-data.sh +247 -0
- package/.claude/skills/cfn-ace-system/schema/run-migration.sh +231 -0
- package/.claude/skills/cfn-ace-system/schema/validate-schema.sql +280 -0
- package/.claude/skills/cfn-ace-system/score-relevance-adapter.sh +138 -0
- package/.claude/skills/cfn-ace-system/score-relevance.sh +253 -0
- package/.claude/skills/cfn-ace-system/sprint-7-lessons.json +46 -0
- package/.claude/skills/cfn-ace-system/store-reflection.sh +46 -0
- package/.claude/skills/cfn-ace-system/test-ace-skill.sh +312 -0
- package/.claude/skills/cfn-ace-system/track-ab-test.sh +42 -0
- package/.claude/skills/cfn-ace-system/update-reflection.sh +41 -0
- package/.claude/skills/cfn-agent-discovery/SKILL.md +40 -0
- package/.claude/skills/cfn-agent-discovery/agents-registry-clean.json +0 -0
- package/.claude/skills/cfn-agent-discovery/agents-registry-fixed.json +19 -0
- package/.claude/skills/cfn-agent-discovery/agents-registry.json +718 -0
- package/.claude/skills/cfn-agent-discovery/discover-agents.py +184 -0
- package/.claude/skills/cfn-agent-discovery/discover-agents.sh +87 -0
- package/.claude/skills/cfn-agent-discovery/invoke-registry.sh +11 -0
- package/.claude/skills/cfn-agent-discovery/temp_script.py +0 -0
- package/.claude/skills/cfn-agent-execution/execute-agent.sh +126 -0
- package/.claude/skills/cfn-agent-output-processing/SKILL.md +359 -0
- package/.claude/skills/cfn-agent-selector/SKILL.md +90 -0
- package/.claude/skills/cfn-agent-selector/select-agents.sh +112 -0
- package/.claude/skills/cfn-agent-spawning/SKILL.md +135 -0
- package/.claude/skills/cfn-agent-spawning/agent-selection-guide.md +814 -0
- package/.claude/skills/cfn-agent-spawning/check-dependencies.sh +30 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent.sh +263 -0
- package/.claude/skills/cfn-agent-spawning/spawn-templates.sh +613 -0
- package/.claude/skills/cfn-analytics/description-refinement-guide.md +164 -0
- package/.claude/skills/cfn-analytics/log-skill-invocation.js +122 -0
- package/.claude/skills/cfn-analytics/run-production-criteria-tests.sh +126 -0
- package/.claude/skills/cfn-analytics/skill-analytics-dashboard.js +113 -0
- package/.claude/skills/cfn-analytics/skill-invocation-hook.sh +28 -0
- package/.claude/skills/cfn-analytics/skill-invocations.sql +58 -0
- package/.claude/skills/cfn-analytics/test-corpus.json +32 -0
- package/.claude/skills/cfn-analytics/test-data-generator.js +115 -0
- package/.claude/skills/cfn-analytics/test-manual-override-rate.js +285 -0
- package/.claude/skills/cfn-analytics/validate-skill-selection.js +188 -0
- package/.claude/skills/cfn-config-management/SKILL.md +34 -0
- package/.claude/skills/cfn-config-management/check-dependencies.sh +56 -0
- package/.claude/skills/cfn-config-management/config.json +32 -0
- package/.claude/skills/cfn-config-management/manage-config.sh +113 -0
- package/.claude/skills/cfn-event-bus/SKILL.md +412 -0
- package/.claude/skills/cfn-event-bus/config.json +111 -0
- package/.claude/skills/cfn-event-bus/eventbus-wrapper.cjs +69 -0
- package/.claude/skills/cfn-event-bus/invoke-event-publish.sh +147 -0
- package/.claude/skills/cfn-event-bus/invoke-event-subscribe.sh +171 -0
- package/.claude/skills/cfn-event-bus/invoke-lifecycle-track.sh +201 -0
- package/.claude/skills/cfn-event-bus/test-event-bus.sh +280 -0
- package/.claude/skills/cfn-fleet-manager/SKILL.md +412 -0
- package/.claude/skills/cfn-fleet-manager/config.json +60 -0
- package/.claude/skills/cfn-fleet-manager/invoke-fleet-allocate.sh +182 -0
- package/.claude/skills/cfn-fleet-manager/invoke-fleet-balance.sh +239 -0
- package/.claude/skills/cfn-fleet-manager/invoke-fleet-metrics.sh +193 -0
- package/.claude/skills/cfn-fleet-manager/invoke-fleet-register.sh +124 -0
- package/.claude/skills/cfn-fleet-manager/test-fleet-manager.sh +345 -0
- package/.claude/skills/cfn-hook-pipeline/SKILL.md +148 -0
- package/.claude/skills/cfn-hook-pipeline/auto-resolve.sh +66 -0
- package/.claude/skills/cfn-hook-pipeline/check-dependencies.sh +40 -0
- package/.claude/skills/cfn-hook-pipeline/feedback-resolver.sh +452 -0
- package/.claude/skills/cfn-hook-pipeline/post-edit-handler.sh +154 -0
- package/.claude/skills/cfn-hook-pipeline/security-scan.json +60 -0
- package/.claude/skills/cfn-hook-pipeline/security-scanner.sh +121 -0
- package/.claude/skills/cfn-hook-pipeline/test-root-warning-resolution.sh +148 -0
- package/.claude/skills/cfn-hybrid-routing/SKILL.md +46 -0
- package/.claude/skills/cfn-hybrid-routing/check-dependencies.sh +52 -0
- package/.claude/skills/cfn-hybrid-routing/config.json +26 -0
- package/.claude/skills/cfn-hybrid-routing/spawn-worker.sh +44 -0
- package/.claude/skills/cfn-loop-orchestration/SKILL.md +299 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +228 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/consensus.sh +84 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/context-injection.sh +142 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/context-lookup.sh +359 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +71 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/gate-check.sh +90 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +87 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +271 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +51 -0
- package/.claude/skills/cfn-loop-orchestration/inject-loop-context.sh +41 -0
- package/.claude/skills/cfn-loop-orchestration/monitor-execution.sh +156 -0
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +884 -0
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup +840 -0
- package/.claude/skills/cfn-loop-orchestration/security_utils.sh +99 -0
- package/.claude/skills/cfn-loop-orchestration/test-cfn-orchestration.sh +281 -0
- package/.claude/skills/cfn-loop-orchestration/test-edge-cases.sh +188 -0
- package/.claude/skills/cfn-loop-validation/SKILL.md +353 -0
- package/.claude/skills/cfn-loop-validation/check-dependencies.sh +31 -0
- package/.claude/skills/cfn-loop-validation/config.json +161 -0
- package/.claude/skills/cfn-loop-validation/consensus-calculator.js +477 -0
- package/.claude/skills/cfn-loop-validation/evidence-chain.sql +163 -0
- package/.claude/skills/cfn-loop-validation/examples/README.md +453 -0
- package/.claude/skills/cfn-loop-validation/examples/coordinator-full-cfn-loop.sh +234 -0
- package/.claude/skills/cfn-loop-validation/examples/coordinator-loop2-consensus.sh +132 -0
- package/.claude/skills/cfn-loop-validation/examples/coordinator-loop3-gate.sh +115 -0
- package/.claude/skills/cfn-loop-validation/examples/coordinator-redis-integration.sh +186 -0
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -0
- package/.claude/skills/cfn-loop-validation/validate-iteration.sh +134 -0
- package/.claude/skills/cfn-process-lifecycle/SKILL.md +39 -0
- package/.claude/skills/cfn-process-lifecycle/check-dependencies.sh +58 -0
- package/.claude/skills/cfn-process-lifecycle/config.json +39 -0
- package/.claude/skills/cfn-process-lifecycle/process-manager.sh +144 -0
- package/.claude/skills/cfn-product-owner-decision/SKILL.md +332 -0
- package/.claude/skills/cfn-product-owner-decision/execute-decision.sh +176 -0
- package/.claude/skills/cfn-product-owner-decision/parse-decision.sh +66 -0
- package/.claude/skills/cfn-product-owner-decision/validate-deliverables.sh +82 -0
- package/.claude/skills/cfn-redis-coordination/AGENT_LOGGING.md +280 -0
- package/.claude/skills/cfn-redis-coordination/BZPOPMIN_FIX_SUMMARY.md +209 -0
- package/.claude/skills/cfn-redis-coordination/HEARTBEAT.md +57 -0
- package/.claude/skills/cfn-redis-coordination/HEARTBEAT_MONITORING.md +267 -0
- package/.claude/skills/cfn-redis-coordination/LOGGING.md +260 -0
- package/.claude/skills/cfn-redis-coordination/SECURITY_REVIEW.md +25 -0
- package/.claude/skills/cfn-redis-coordination/SHUTDOWN_HANDLING.md +164 -0
- package/.claude/skills/cfn-redis-coordination/SKILL.md +720 -0
- package/.claude/skills/cfn-redis-coordination/agent-log.sh +124 -0
- package/.claude/skills/cfn-redis-coordination/agent-recovery.sh +75 -0
- package/.claude/skills/cfn-redis-coordination/analyze-task-complexity.sh +277 -0
- package/.claude/skills/cfn-redis-coordination/cancel-swarm.sh +221 -0
- package/.claude/skills/cfn-redis-coordination/cfn-loop-exec.sh +468 -0
- package/.claude/skills/cfn-redis-coordination/cfn-loop-relaunch.sh +29 -0
- package/.claude/skills/cfn-redis-coordination/check-dependencies.sh +32 -0
- package/.claude/skills/cfn-redis-coordination/collect-confidence-scores.sh +179 -0
- package/.claude/skills/cfn-redis-coordination/collect-results.sh +75 -0
- package/.claude/skills/cfn-redis-coordination/complete-swarm.sh +75 -0
- package/.claude/skills/cfn-redis-coordination/config.json +61 -0
- package/.claude/skills/cfn-redis-coordination/data/cfn-loop.db +0 -0
- package/.claude/skills/cfn-redis-coordination/demos/phase4-wake-queue-test-report.md +82 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-bzpopmin-fix.sh +274 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-cancel-swarm.sh +276 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-dlq.sh +129 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-iteration-feedback.sh +320 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-orchestrator.sh +249 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-priority-wake-phase4-unix.sh +148 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-priority-wake-phase4.sh +163 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-priority-wake.sh +138 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quick-fix.sh +81 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum-absolute.sh +45 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum-fallback.sh +68 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum-percentage.sh +56 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum-with-retry.sh +81 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum.sh +57 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-shutdown-handling.sh +187 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-shutdown.sh +160 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-utils-unix.sh +97 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-utils.sh +97 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-waiting-mode.sh +59 -0
- package/.claude/skills/cfn-redis-coordination/examples/README.md +73 -0
- package/.claude/skills/cfn-redis-coordination/examples/grafana-dashboard.json +352 -0
- package/.claude/skills/cfn-redis-coordination/examples/hierarchical-pattern.sh +127 -0
- package/.claude/skills/cfn-redis-coordination/examples/mesh-pattern.sh +171 -0
- package/.claude/skills/cfn-redis-coordination/examples/timeout-handling.sh +227 -0
- package/.claude/skills/cfn-redis-coordination/examples/waiting-mode-pattern.sh +239 -0
- package/.claude/skills/cfn-redis-coordination/execute-product-owner-decision.sh +258 -0
- package/.claude/skills/cfn-redis-coordination/get-agent-timeout.sh +177 -0
- package/.claude/skills/cfn-redis-coordination/heartbeat-functions.sh +137 -0
- package/.claude/skills/cfn-redis-coordination/heartbeat-protocol.md +106 -0
- package/.claude/skills/cfn-redis-coordination/heartbeat.sh +126 -0
- package/.claude/skills/cfn-redis-coordination/init-swarm.sh +148 -0
- package/.claude/skills/cfn-redis-coordination/invoke-redis-pattern.sh +220 -0
- package/.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh +283 -0
- package/.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh.backup-p7 +423 -0
- package/.claude/skills/cfn-redis-coordination/list-active-swarms.sh +147 -0
- package/.claude/skills/cfn-redis-coordination/log-event.sh +109 -0
- package/.claude/skills/cfn-redis-coordination/metrics-export.sh +674 -0
- package/.claude/skills/cfn-redis-coordination/metrics-schema.json +66 -0
- package/.claude/skills/cfn-redis-coordination/metrics-storage.md +31 -0
- package/.claude/skills/cfn-redis-coordination/monitor-cfn-violations.sh +391 -0
- package/.claude/skills/cfn-redis-coordination/monitor-heartbeats.sh +101 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop-v3.sh +141 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh +31 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup +38 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +1672 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +1604 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +1550 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +1621 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +1621 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.bak +0 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.broken +1627 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.corrupted +80 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.deprecated +1864 -0
- package/.claude/skills/cfn-redis-coordination/priority-wake-mechanism.md +75 -0
- package/.claude/skills/cfn-redis-coordination/priority_wake.py +134 -0
- package/.claude/skills/cfn-redis-coordination/query-dlq.sh +162 -0
- package/.claude/skills/cfn-redis-coordination/query-logs.sh +103 -0
- package/.claude/skills/cfn-redis-coordination/redis-pattern.sh +619 -0
- package/.claude/skills/cfn-redis-coordination/retrieve-context.sh +58 -0
- package/.claude/skills/cfn-redis-coordination/select-specialist-agent.sh +371 -0
- package/.claude/skills/cfn-redis-coordination/semantic-match-tfidf.py +252 -0
- package/.claude/skills/cfn-redis-coordination/send-heartbeat.sh +165 -0
- package/.claude/skills/cfn-redis-coordination/signal.sh +38 -0
- package/.claude/skills/cfn-redis-coordination/store-context.sh +86 -0
- package/.claude/skills/cfn-redis-coordination/store-epic-context.sh +123 -0
- package/.claude/skills/cfn-redis-coordination/test-context-injection.sh +354 -0
- package/.claude/skills/cfn-redis-coordination/test-timeout-enforcement.sh +513 -0
- package/.claude/skills/cfn-redis-coordination/tests/convert-line-endings.sh +15 -0
- package/.claude/skills/cfn-redis-coordination/tests/dlq-functionality-test.sh +102 -0
- package/.claude/skills/cfn-redis-coordination/tests/edge-cases-test.sh +99 -0
- package/.claude/skills/cfn-redis-coordination/tests/integration-test.sh +170 -0
- package/.claude/skills/cfn-redis-coordination/tests/retry-mechanism-test.sh +82 -0
- package/.claude/skills/cfn-redis-coordination/tests/run-test-suite.sh +92 -0
- package/.claude/skills/cfn-redis-coordination/tests/run-tests.sh +4 -0
- package/.claude/skills/cfn-redis-coordination/tests/test-heartbeat-monitoring.sh +418 -0
- package/.claude/skills/cfn-redis-coordination/tests/test-heartbeat-simple.sh +124 -0
- package/.claude/skills/cfn-redis-coordination/tests/test-primitives.sh +166 -0
- package/.claude/skills/cfn-redis-coordination/tests/test-utils.sh +54 -0
- package/.claude/skills/cfn-redis-coordination/tests/test_coordination_primitives.sh.deprecated +20 -0
- package/.claude/skills/cfn-redis-coordination/tests/test_utils.sh +49 -0
- package/.claude/skills/cfn-redis-coordination/v2_modularization/core_orchestration.sh +76 -0
- package/.claude/skills/cfn-redis-coordination/validate-parameters.sh +492 -0
- package/.claude/skills/cfn-sqlite-memory/IMPLEMENTATION_REPORT.md +393 -0
- package/.claude/skills/cfn-sqlite-memory/QUICK_REFERENCE.md +204 -0
- package/.claude/skills/cfn-sqlite-memory/SKILL.md +415 -0
- package/.claude/skills/cfn-sqlite-memory/acl-queries.sql +452 -0
- package/.claude/skills/cfn-sqlite-memory/check-dependencies.sh +36 -0
- package/.claude/skills/cfn-sqlite-memory/config.json +45 -0
- package/.claude/skills/cfn-sqlite-memory/memory-cli.sh +88 -0
- package/.claude/skills/cfn-sqlite-memory/test-state-persistence.js +187 -0
- package/.claude/skills/cfn-sqlite-memory/ttl-cleanup.sh +274 -0
- package/.claude/skills/cfn-test-execution/SKILL.md +128 -0
- package/.claude/skills/cfn-test-execution/check-dependencies.sh +36 -0
- package/.claude/skills/cfn-test-execution/test-cache-reader.sh +134 -0
- package/.claude/skills/cfn-test-execution/test-concurrent-conflicts.sh +115 -0
- package/.claude/skills/cfn-test-execution/test-coordinator-pattern.sh +109 -0
- package/.claude/skills/cfn-transparency-middleware/Cargo.toml +18 -0
- package/.claude/skills/cfn-transparency-middleware/SECURITY.md +41 -0
- package/.claude/skills/cfn-transparency-middleware/SKILL.md +91 -0
- package/.claude/skills/cfn-transparency-middleware/TEST_RESULTS.md +174 -0
- package/.claude/skills/cfn-transparency-middleware/config.json +31 -0
- package/.claude/skills/cfn-transparency-middleware/examples/basic-usage.ts +39 -0
- package/.claude/skills/cfn-transparency-middleware/examples/batch-processing.ts +52 -0
- package/.claude/skills/cfn-transparency-middleware/examples/custom-filtering.ts +61 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-filter.sh +98 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-init.sh +224 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-level.sh +333 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-metrics.sh +345 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-observe.sh +140 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-stop.sh +235 -0
- package/.claude/skills/cfn-transparency-middleware/memory_query.rs +85 -0
- package/.claude/skills/cfn-transparency-middleware/memory_repository.rs +140 -0
- package/.claude/skills/cfn-transparency-middleware/memory_schema.rs +64 -0
- package/.claude/skills/cfn-transparency-middleware/middleware-config.sh +29 -0
- package/.claude/skills/cfn-transparency-middleware/performance-benchmark.sh +79 -0
- package/.claude/skills/cfn-transparency-middleware/test-e2e.sh +406 -0
- package/.claude/skills/cfn-transparency-middleware/test-integration.sh +162 -0
- package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh +368 -0
- package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh.unix +126 -0
- package/.claude/skills/cfn-transparency-middleware/tests/input-validation.sh +93 -0
- package/.claude/skills/cfn-transparency-middleware/wrap-agent.sh +132 -0
- package/.claude/skills/cfn-webapp-testing/SCREENSHOT_NAMING_CONVENTION.md +547 -0
- package/.claude/skills/cfn-webapp-testing/SKILL.md +877 -0
- package/.claude/skills/cfn-webapp-testing/capture-screenshot.sh +238 -0
- package/.claude/skills/cfn-webapp-testing/cfn-loop-integration.sh +265 -0
- package/.claude/skills/cfn-webapp-testing/compare-screenshots.sh +199 -0
- package/.claude/skills/cfn-webapp-testing/init-storage.sh +150 -0
- package/.claude/skills/cfn-webapp-testing/set-baseline.sh +196 -0
- package/.claude/skills/cfn-webapp-testing/test-webapp-testing.sh +233 -0
- package/README.md +51 -2
- package/dist/ace/ace-reflector.js +109 -10
- package/dist/ace/ace-reflector.js.map +1 -1
- package/dist/cli/agent-executor.js +1 -1
- package/dist/cli/agent-executor.js.map +1 -1
- package/package.json +43 -7
- package/readme/README.md +15 -4
- package/scripts/init-project.js +76 -6
- package/scripts/run-marketing-tests.sh +43 -0
- package/scripts/update_paths.sh +47 -0
- package/tools/install-lizard.sh +37 -0
- package/tools/simple-complexity.sh +44 -0
- package/.claude/agents/cfn-dev-team/developers/coder.md +0 -270
- package/.claude/agents/cfn-dev-team/developers/state-architect.md +0 -127
- package/.claude/agents/cfn-dev-team/reviewers/code-quality-validator.md +0 -128
- /package/.claude/agents/cfn-dev-team/developers/{ui-designer.md → frontend/ui-designer.md} +0 -0
- /package/.claude/agents/cfn-dev-team/{coordinators → product-owners}/product-owner-agent.md +0 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Redis Coordination Skill - Agent Heartbeat Sender
|
|
3
|
+
# Version: 2.0.0
|
|
4
|
+
# Last Updated: 2025-10-20
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# # One-shot heartbeat (original behavior)
|
|
8
|
+
# ./send-heartbeat.sh --task-id <id> --agent-id <id>
|
|
9
|
+
#
|
|
10
|
+
# # Start continuous heartbeat loop
|
|
11
|
+
# ./send-heartbeat.sh start --task-id <id> --agent-id <id> --interval 30 &
|
|
12
|
+
# HEARTBEAT_PID=$!
|
|
13
|
+
#
|
|
14
|
+
# # Stop heartbeat loop
|
|
15
|
+
# ./send-heartbeat.sh stop --task-id <id> --agent-id <id> --pid $HEARTBEAT_PID
|
|
16
|
+
|
|
17
|
+
# Strict error handling
|
|
18
|
+
set -euo pipefail
|
|
19
|
+
|
|
20
|
+
# Default values
|
|
21
|
+
ACTION=""
|
|
22
|
+
TASK_ID=""
|
|
23
|
+
AGENT_ID=""
|
|
24
|
+
STATUS="active"
|
|
25
|
+
TTL=60
|
|
26
|
+
INTERVAL=30 # For continuous mode
|
|
27
|
+
HEARTBEAT_PID=""
|
|
28
|
+
DETAILS='{}'
|
|
29
|
+
|
|
30
|
+
# Parse command-line arguments
|
|
31
|
+
while [[ $# -gt 0 ]]; do
|
|
32
|
+
case "$1" in
|
|
33
|
+
start|stop|once)
|
|
34
|
+
ACTION="$1"
|
|
35
|
+
shift
|
|
36
|
+
;;
|
|
37
|
+
--task-id)
|
|
38
|
+
TASK_ID="$2"
|
|
39
|
+
shift 2
|
|
40
|
+
;;
|
|
41
|
+
--agent-id)
|
|
42
|
+
AGENT_ID="$2"
|
|
43
|
+
shift 2
|
|
44
|
+
;;
|
|
45
|
+
--status)
|
|
46
|
+
STATUS="$2"
|
|
47
|
+
shift 2
|
|
48
|
+
;;
|
|
49
|
+
--ttl)
|
|
50
|
+
TTL="$2"
|
|
51
|
+
shift 2
|
|
52
|
+
;;
|
|
53
|
+
--interval)
|
|
54
|
+
INTERVAL="$2"
|
|
55
|
+
shift 2
|
|
56
|
+
;;
|
|
57
|
+
--pid)
|
|
58
|
+
HEARTBEAT_PID="$2"
|
|
59
|
+
shift 2
|
|
60
|
+
;;
|
|
61
|
+
--details)
|
|
62
|
+
DETAILS="$2"
|
|
63
|
+
shift 2
|
|
64
|
+
;;
|
|
65
|
+
*)
|
|
66
|
+
echo "Unknown parameter: $1"
|
|
67
|
+
exit 1
|
|
68
|
+
;;
|
|
69
|
+
esac
|
|
70
|
+
done
|
|
71
|
+
|
|
72
|
+
# Validate required parameters
|
|
73
|
+
if [[ -z "$TASK_ID" || -z "$AGENT_ID" ]]; then
|
|
74
|
+
echo "Error: task-id and agent-id are required"
|
|
75
|
+
exit 1
|
|
76
|
+
fi
|
|
77
|
+
|
|
78
|
+
# If no action specified, default to one-shot (backward compatibility)
|
|
79
|
+
if [ -z "$ACTION" ]; then
|
|
80
|
+
ACTION="once"
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
HEARTBEAT_KEY="swarm:${TASK_ID}:${AGENT_ID}:heartbeat"
|
|
84
|
+
MARKER_FILE="/tmp/heartbeat-${TASK_ID}-${AGENT_ID}.active"
|
|
85
|
+
|
|
86
|
+
##############################################################################
|
|
87
|
+
# Send single heartbeat
|
|
88
|
+
##############################################################################
|
|
89
|
+
function send_heartbeat() {
|
|
90
|
+
# Generate heartbeat payload
|
|
91
|
+
HEARTBEAT_PAYLOAD=$(jq -n \
|
|
92
|
+
--arg timestamp "$(date +%s)" \
|
|
93
|
+
--arg status "$STATUS" \
|
|
94
|
+
--arg task_id "$TASK_ID" \
|
|
95
|
+
--arg agent_id "$AGENT_ID" \
|
|
96
|
+
--argjson details "$DETAILS" \
|
|
97
|
+
'{
|
|
98
|
+
"timestamp": $timestamp,
|
|
99
|
+
"status": $status,
|
|
100
|
+
"task_id": $task_id,
|
|
101
|
+
"agent_id": $agent_id,
|
|
102
|
+
"details": $details
|
|
103
|
+
}')
|
|
104
|
+
|
|
105
|
+
# Send heartbeat via Redis with auto-expiration
|
|
106
|
+
redis-cli setex "$HEARTBEAT_KEY" "$TTL" "$HEARTBEAT_PAYLOAD" >/dev/null
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
##############################################################################
|
|
110
|
+
# Start continuous heartbeat loop
|
|
111
|
+
##############################################################################
|
|
112
|
+
function start_heartbeat() {
|
|
113
|
+
# Create marker file
|
|
114
|
+
touch "$MARKER_FILE"
|
|
115
|
+
|
|
116
|
+
# Background heartbeat loop
|
|
117
|
+
(
|
|
118
|
+
while [ -f "$MARKER_FILE" ]; do
|
|
119
|
+
send_heartbeat
|
|
120
|
+
sleep "$INTERVAL"
|
|
121
|
+
done
|
|
122
|
+
) &
|
|
123
|
+
|
|
124
|
+
echo "✓ Heartbeat started for $AGENT_ID (PID: $!, interval: ${INTERVAL}s)" >&2
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
##############################################################################
|
|
128
|
+
# Stop heartbeat loop
|
|
129
|
+
##############################################################################
|
|
130
|
+
function stop_heartbeat() {
|
|
131
|
+
# Remove marker file to stop loop
|
|
132
|
+
rm -f "$MARKER_FILE"
|
|
133
|
+
|
|
134
|
+
# Kill heartbeat process if PID provided
|
|
135
|
+
if [ -n "$HEARTBEAT_PID" ] && kill -0 "$HEARTBEAT_PID" 2>/dev/null; then
|
|
136
|
+
kill "$HEARTBEAT_PID" 2>/dev/null || true
|
|
137
|
+
fi
|
|
138
|
+
|
|
139
|
+
# Clean up heartbeat key
|
|
140
|
+
redis-cli DEL "$HEARTBEAT_KEY" >/dev/null
|
|
141
|
+
|
|
142
|
+
echo "✓ Heartbeat stopped for $AGENT_ID" >&2
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
##############################################################################
|
|
146
|
+
# Main
|
|
147
|
+
##############################################################################
|
|
148
|
+
case "$ACTION" in
|
|
149
|
+
start)
|
|
150
|
+
start_heartbeat
|
|
151
|
+
;;
|
|
152
|
+
stop)
|
|
153
|
+
stop_heartbeat
|
|
154
|
+
;;
|
|
155
|
+
once)
|
|
156
|
+
send_heartbeat
|
|
157
|
+
echo "✓ Heartbeat sent for $AGENT_ID" >&2
|
|
158
|
+
;;
|
|
159
|
+
*)
|
|
160
|
+
echo "Error: Invalid action: $ACTION"
|
|
161
|
+
exit 1
|
|
162
|
+
;;
|
|
163
|
+
esac
|
|
164
|
+
|
|
165
|
+
exit 0
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Parse arguments
|
|
4
|
+
while [[ $# -gt 0 ]]; do
|
|
5
|
+
case "$1" in
|
|
6
|
+
--key)
|
|
7
|
+
key="$2"
|
|
8
|
+
shift 2
|
|
9
|
+
;;
|
|
10
|
+
--value)
|
|
11
|
+
value="$2"
|
|
12
|
+
shift 2
|
|
13
|
+
;;
|
|
14
|
+
--ttl)
|
|
15
|
+
ttl="$2"
|
|
16
|
+
shift 2
|
|
17
|
+
;;
|
|
18
|
+
*)
|
|
19
|
+
echo "Unknown argument: $1"
|
|
20
|
+
exit 1
|
|
21
|
+
;;
|
|
22
|
+
esac
|
|
23
|
+
done
|
|
24
|
+
|
|
25
|
+
# Validate required arguments
|
|
26
|
+
if [[ -z "$key" || -z "$value" ]]; then
|
|
27
|
+
echo "Error: Both key and value are required"
|
|
28
|
+
exit 1
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Default TTL to 3600 if not provided
|
|
32
|
+
ttl=${ttl:-3600}
|
|
33
|
+
|
|
34
|
+
# Store signal in Redis with specified TTL
|
|
35
|
+
redis-cli setex "$key" "$ttl" "$value"
|
|
36
|
+
|
|
37
|
+
# Exit successfully
|
|
38
|
+
exit 0
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Redis Context Storage Primitive
|
|
4
|
+
# Updated interface to match orchestrator expectations
|
|
5
|
+
# Supports both legacy (--key --context) and new (--task-id --key --value --namespace) interfaces
|
|
6
|
+
|
|
7
|
+
# Initialize variables
|
|
8
|
+
task_id=""
|
|
9
|
+
key=""
|
|
10
|
+
value=""
|
|
11
|
+
namespace="swarm"
|
|
12
|
+
ttl=3600
|
|
13
|
+
append_mode=false
|
|
14
|
+
|
|
15
|
+
# Parse arguments
|
|
16
|
+
while [[ $# -gt 0 ]]; do
|
|
17
|
+
case "$1" in
|
|
18
|
+
--task-id)
|
|
19
|
+
task_id="$2"
|
|
20
|
+
shift 2
|
|
21
|
+
;;
|
|
22
|
+
--key)
|
|
23
|
+
key="$2"
|
|
24
|
+
shift 2
|
|
25
|
+
;;
|
|
26
|
+
--value)
|
|
27
|
+
value="$2"
|
|
28
|
+
shift 2
|
|
29
|
+
;;
|
|
30
|
+
--context)
|
|
31
|
+
# Legacy support: --context is alias for --value
|
|
32
|
+
value="$2"
|
|
33
|
+
shift 2
|
|
34
|
+
;;
|
|
35
|
+
--namespace)
|
|
36
|
+
namespace="$2"
|
|
37
|
+
shift 2
|
|
38
|
+
;;
|
|
39
|
+
--ttl)
|
|
40
|
+
ttl="$2"
|
|
41
|
+
shift 2
|
|
42
|
+
;;
|
|
43
|
+
--append)
|
|
44
|
+
append_mode=true
|
|
45
|
+
shift
|
|
46
|
+
;;
|
|
47
|
+
*)
|
|
48
|
+
echo "Unknown argument: $1" >&2
|
|
49
|
+
exit 1
|
|
50
|
+
;;
|
|
51
|
+
esac
|
|
52
|
+
done
|
|
53
|
+
|
|
54
|
+
# Construct Redis key based on interface mode
|
|
55
|
+
if [[ -n "$task_id" ]]; then
|
|
56
|
+
# New interface: {namespace}:{task_id}:{key}
|
|
57
|
+
redis_key="${namespace}:${task_id}:${key}"
|
|
58
|
+
else
|
|
59
|
+
# Legacy interface: key is used directly
|
|
60
|
+
redis_key="$key"
|
|
61
|
+
fi
|
|
62
|
+
|
|
63
|
+
# Validate required arguments
|
|
64
|
+
if [[ -z "$redis_key" || -z "$value" ]]; then
|
|
65
|
+
echo "Error: Both key and value are required" >&2
|
|
66
|
+
echo "Usage: $0 --task-id <id> --key <key> --value <data> [--namespace <ns>] [--ttl <seconds>] [--append]" >&2
|
|
67
|
+
echo " or: $0 --key <full-key> --context <data> [--ttl <seconds>]" >&2
|
|
68
|
+
exit 1
|
|
69
|
+
fi
|
|
70
|
+
|
|
71
|
+
# Handle append mode
|
|
72
|
+
if [ "$append_mode" = true ]; then
|
|
73
|
+
# Get existing value
|
|
74
|
+
existing=$(redis-cli get "$redis_key" 2>/dev/null)
|
|
75
|
+
|
|
76
|
+
# Append new value (comma-separated)
|
|
77
|
+
if [[ -n "$existing" && "$existing" != "(nil)" ]]; then
|
|
78
|
+
value="${existing},${value}"
|
|
79
|
+
fi
|
|
80
|
+
fi
|
|
81
|
+
|
|
82
|
+
# Store in Redis with specified TTL
|
|
83
|
+
redis-cli setex "$redis_key" "$ttl" "$value" >/dev/null
|
|
84
|
+
|
|
85
|
+
# Exit successfully
|
|
86
|
+
exit 0
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
##############################################################################
|
|
4
|
+
# Store Epic Context in Redis
|
|
5
|
+
# Stores epic-level context for CLI-spawned agents to access
|
|
6
|
+
#
|
|
7
|
+
# Usage:
|
|
8
|
+
# ./store-epic-context.sh --task-id <id> \
|
|
9
|
+
# --epic-context <json> \
|
|
10
|
+
# [--phase-context <json>] \
|
|
11
|
+
# [--success-criteria <json>] \
|
|
12
|
+
# [--ttl <seconds>]
|
|
13
|
+
#
|
|
14
|
+
# Example:
|
|
15
|
+
# ./store-epic-context.sh --task-id "epic-auth-123" \
|
|
16
|
+
# --epic-context '{
|
|
17
|
+
# "epicGoal": "Build authentication system",
|
|
18
|
+
# "inScope": ["JWT auth", "RBAC", "Session management"],
|
|
19
|
+
# "outOfScope": ["OAuth", "MFA", "Biometrics"],
|
|
20
|
+
# "phases": ["assessment", "implementation", "validation"]
|
|
21
|
+
# }' \
|
|
22
|
+
# --phase-context '{
|
|
23
|
+
# "currentPhase": "assessment",
|
|
24
|
+
# "dependencies": [],
|
|
25
|
+
# "deliverables": ["Requirements doc", "Architecture design"]
|
|
26
|
+
# }' \
|
|
27
|
+
# --success-criteria '{
|
|
28
|
+
# "acceptanceCriteria": [
|
|
29
|
+
# "Core functionality implemented",
|
|
30
|
+
# "Tests pass >80% coverage",
|
|
31
|
+
# "Security review complete"
|
|
32
|
+
# ],
|
|
33
|
+
# "gateThreshold": 0.75,
|
|
34
|
+
# "consensusThreshold": 0.90
|
|
35
|
+
# }' \
|
|
36
|
+
# --ttl 86400
|
|
37
|
+
#
|
|
38
|
+
# Redis Keys Created:
|
|
39
|
+
# - swarm:<task-id>:epic-context
|
|
40
|
+
# - swarm:<task-id>:phase-context
|
|
41
|
+
# - swarm:<task-id>:success-criteria
|
|
42
|
+
#
|
|
43
|
+
# These keys are automatically read by cfn-spawn and injected as environment
|
|
44
|
+
# variables into spawned agents:
|
|
45
|
+
# - EPIC_CONTEXT
|
|
46
|
+
# - PHASE_CONTEXT
|
|
47
|
+
# - SUCCESS_CRITERIA
|
|
48
|
+
##############################################################################
|
|
49
|
+
|
|
50
|
+
set -euo pipefail
|
|
51
|
+
|
|
52
|
+
# Configuration
|
|
53
|
+
TASK_ID=""
|
|
54
|
+
EPIC_CONTEXT=""
|
|
55
|
+
PHASE_CONTEXT=""
|
|
56
|
+
SUCCESS_CRITERIA=""
|
|
57
|
+
TTL=86400 # 24 hours default
|
|
58
|
+
|
|
59
|
+
# Parse arguments
|
|
60
|
+
while [[ $# -gt 0 ]]; do
|
|
61
|
+
case $1 in
|
|
62
|
+
--task-id)
|
|
63
|
+
TASK_ID="$2"
|
|
64
|
+
shift 2
|
|
65
|
+
;;
|
|
66
|
+
--epic-context)
|
|
67
|
+
EPIC_CONTEXT="$2"
|
|
68
|
+
shift 2
|
|
69
|
+
;;
|
|
70
|
+
--phase-context)
|
|
71
|
+
PHASE_CONTEXT="$2"
|
|
72
|
+
shift 2
|
|
73
|
+
;;
|
|
74
|
+
--success-criteria)
|
|
75
|
+
SUCCESS_CRITERIA="$2"
|
|
76
|
+
shift 2
|
|
77
|
+
;;
|
|
78
|
+
--ttl)
|
|
79
|
+
TTL="$2"
|
|
80
|
+
shift 2
|
|
81
|
+
;;
|
|
82
|
+
*)
|
|
83
|
+
echo "Unknown option: $1"
|
|
84
|
+
exit 1
|
|
85
|
+
;;
|
|
86
|
+
esac
|
|
87
|
+
done
|
|
88
|
+
|
|
89
|
+
# Validation
|
|
90
|
+
if [ -z "$TASK_ID" ]; then
|
|
91
|
+
echo "Error: --task-id is required"
|
|
92
|
+
exit 1
|
|
93
|
+
fi
|
|
94
|
+
|
|
95
|
+
if [ -z "$EPIC_CONTEXT" ]; then
|
|
96
|
+
echo "Error: --epic-context is required"
|
|
97
|
+
exit 1
|
|
98
|
+
fi
|
|
99
|
+
|
|
100
|
+
# Store epic context
|
|
101
|
+
echo "Storing epic context for task: $TASK_ID"
|
|
102
|
+
|
|
103
|
+
if [ -n "$EPIC_CONTEXT" ]; then
|
|
104
|
+
redis-cli set "swarm:${TASK_ID}:epic-context" "$EPIC_CONTEXT" EX "$TTL" > /dev/null
|
|
105
|
+
echo " ✓ Epic context stored (TTL: ${TTL}s)"
|
|
106
|
+
fi
|
|
107
|
+
|
|
108
|
+
if [ -n "$PHASE_CONTEXT" ]; then
|
|
109
|
+
redis-cli set "swarm:${TASK_ID}:phase-context" "$PHASE_CONTEXT" EX "$TTL" > /dev/null
|
|
110
|
+
echo " ✓ Phase context stored (TTL: ${TTL}s)"
|
|
111
|
+
fi
|
|
112
|
+
|
|
113
|
+
if [ -n "$SUCCESS_CRITERIA" ]; then
|
|
114
|
+
redis-cli set "swarm:${TASK_ID}:success-criteria" "$SUCCESS_CRITERIA" EX "$TTL" > /dev/null
|
|
115
|
+
echo " ✓ Success criteria stored (TTL: ${TTL}s)"
|
|
116
|
+
fi
|
|
117
|
+
|
|
118
|
+
echo "✅ Context storage complete"
|
|
119
|
+
echo ""
|
|
120
|
+
echo "CLI-spawned agents will automatically receive this context via environment variables:"
|
|
121
|
+
echo " - EPIC_CONTEXT"
|
|
122
|
+
echo " - PHASE_CONTEXT"
|
|
123
|
+
echo " - SUCCESS_CRITERIA"
|