claude-flow 3.0.0-alpha.15 → 3.0.0-alpha.16
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/.claude-flow/metrics/system-metrics.json +2606 -0
- package/.claude/agents/MIGRATION_SUMMARY.md +222 -0
- package/.claude/agents/README.md +89 -0
- package/.claude/agents/analysis/analyze-code-quality.md +180 -0
- package/.claude/agents/analysis/code-analyzer.md +209 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude/agents/base-template-generator.md +42 -0
- package/.claude/agents/consensus/README.md +253 -0
- package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
- package/.claude/agents/consensus/gossip-coordinator.md +63 -0
- package/.claude/agents/consensus/performance-benchmarker.md +851 -0
- package/.claude/agents/consensus/quorum-manager.md +823 -0
- package/.claude/agents/consensus/raft-manager.md +63 -0
- package/.claude/agents/consensus/security-manager.md +622 -0
- package/.claude/agents/core/coder.md +266 -0
- package/.claude/agents/core/planner.md +168 -0
- package/.claude/agents/core/researcher.md +190 -0
- package/.claude/agents/core/reviewer.md +326 -0
- package/.claude/agents/core/tester.md +319 -0
- package/.claude/agents/custom/test-long-runner.md +44 -0
- package/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude/agents/database-specialist.yaml +21 -0
- package/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude/agents/development/dev-backend-api.md +345 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude/agents/flow-nexus/app-store.md +88 -0
- package/.claude/agents/flow-nexus/authentication.md +69 -0
- package/.claude/agents/flow-nexus/challenges.md +81 -0
- package/.claude/agents/flow-nexus/neural-network.md +88 -0
- package/.claude/agents/flow-nexus/payments.md +83 -0
- package/.claude/agents/flow-nexus/sandbox.md +76 -0
- package/.claude/agents/flow-nexus/swarm.md +76 -0
- package/.claude/agents/flow-nexus/user-tools.md +96 -0
- package/.claude/agents/flow-nexus/workflow.md +84 -0
- package/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude/agents/github/github-modes.md +173 -0
- package/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude/agents/github/pr-manager.md +191 -0
- package/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude/agents/github/release-manager.md +367 -0
- package/.claude/agents/github/release-swarm.md +583 -0
- package/.claude/agents/github/repo-architect.md +398 -0
- package/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude/agents/goal/agent.md +816 -0
- package/.claude/agents/goal/code-goal-planner.md +446 -0
- package/.claude/agents/goal/goal-planner.md +168 -0
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +130 -0
- package/.claude/agents/hive-mind/queen-coordinator.md +203 -0
- package/.claude/agents/hive-mind/scout-explorer.md +242 -0
- package/.claude/agents/hive-mind/swarm-memory-manager.md +193 -0
- package/.claude/agents/hive-mind/worker-specialist.md +217 -0
- package/.claude/agents/index.yaml +17 -0
- package/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude/agents/optimization/README.md +250 -0
- package/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude/agents/payments/agentic-payments.md +126 -0
- package/.claude/agents/project-coordinator.yaml +15 -0
- package/.claude/agents/python-specialist.yaml +21 -0
- package/.claude/agents/reasoning/agent.md +816 -0
- package/.claude/agents/reasoning/goal-planner.md +73 -0
- package/.claude/agents/security-auditor.yaml +20 -0
- package/.claude/agents/sona/sona-learning-optimizer.md +496 -0
- package/.claude/agents/sparc/architecture.md +472 -0
- package/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude/agents/sparc/refinement.md +525 -0
- package/.claude/agents/sparc/specification.md +276 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
- package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
- package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
- package/.claude/agents/sublinear/performance-optimizer.md +368 -0
- package/.claude/agents/sublinear/trading-predictor.md +246 -0
- package/.claude/agents/swarm/README.md +190 -0
- package/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +327 -0
- package/.claude/agents/swarm/mesh-coordinator.md +392 -0
- package/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +105 -0
- package/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude/agents/testing/production-validator.md +395 -0
- package/.claude/agents/testing/tdd-london-swarm.md +244 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude/agents/typescript-specialist.yaml +21 -0
- package/.claude/agents/v3/database-specialist.yaml +21 -0
- package/.claude/agents/v3/index.yaml +17 -0
- package/.claude/agents/v3/project-coordinator.yaml +15 -0
- package/.claude/agents/v3/python-specialist.yaml +21 -0
- package/.claude/agents/v3/test-architect.yaml +20 -0
- package/.claude/agents/v3/typescript-specialist.yaml +21 -0
- package/.claude/agents/v3/v3-integration-architect.md +346 -0
- package/.claude/agents/v3/v3-memory-specialist.md +318 -0
- package/.claude/agents/v3/v3-performance-engineer.md +397 -0
- package/.claude/agents/v3/v3-queen-coordinator.md +98 -0
- package/.claude/agents/v3/v3-security-architect.md +174 -0
- package/.claude/checkpoints/1767754460.json +8 -0
- package/.claude/commands/agents/README.md +10 -0
- package/.claude/commands/agents/agent-capabilities.md +21 -0
- package/.claude/commands/agents/agent-coordination.md +28 -0
- package/.claude/commands/agents/agent-spawning.md +28 -0
- package/.claude/commands/agents/agent-types.md +26 -0
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/README.md +9 -0
- package/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
- package/.claude/commands/analysis/performance-report.md +25 -0
- package/.claude/commands/analysis/token-efficiency.md +45 -0
- package/.claude/commands/analysis/token-usage.md +25 -0
- package/.claude/commands/automation/README.md +9 -0
- package/.claude/commands/automation/auto-agent.md +122 -0
- package/.claude/commands/automation/self-healing.md +106 -0
- package/.claude/commands/automation/session-memory.md +90 -0
- package/.claude/commands/automation/smart-agents.md +73 -0
- package/.claude/commands/automation/smart-spawn.md +25 -0
- package/.claude/commands/automation/workflow-select.md +25 -0
- package/.claude/commands/claude-flow-help.md +103 -0
- package/.claude/commands/claude-flow-memory.md +107 -0
- package/.claude/commands/claude-flow-swarm.md +205 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/coordination/agent-spawn.md +25 -0
- package/.claude/commands/coordination/init.md +44 -0
- package/.claude/commands/coordination/orchestrate.md +43 -0
- package/.claude/commands/coordination/spawn.md +45 -0
- package/.claude/commands/coordination/swarm-init.md +85 -0
- package/.claude/commands/coordination/task-orchestrate.md +25 -0
- package/.claude/commands/flow-nexus/app-store.md +124 -0
- package/.claude/commands/flow-nexus/challenges.md +120 -0
- package/.claude/commands/flow-nexus/login-registration.md +65 -0
- package/.claude/commands/flow-nexus/neural-network.md +134 -0
- package/.claude/commands/flow-nexus/payments.md +116 -0
- package/.claude/commands/flow-nexus/sandbox.md +83 -0
- package/.claude/commands/flow-nexus/swarm.md +87 -0
- package/.claude/commands/flow-nexus/user-tools.md +152 -0
- package/.claude/commands/flow-nexus/workflow.md +115 -0
- package/.claude/commands/github/README.md +11 -0
- package/.claude/commands/github/code-review-swarm.md +514 -0
- package/.claude/commands/github/code-review.md +25 -0
- package/.claude/commands/github/github-modes.md +147 -0
- package/.claude/commands/github/github-swarm.md +121 -0
- package/.claude/commands/github/issue-tracker.md +292 -0
- package/.claude/commands/github/issue-triage.md +25 -0
- package/.claude/commands/github/multi-repo-swarm.md +519 -0
- package/.claude/commands/github/pr-enhance.md +26 -0
- package/.claude/commands/github/pr-manager.md +170 -0
- package/.claude/commands/github/project-board-sync.md +471 -0
- package/.claude/commands/github/release-manager.md +338 -0
- package/.claude/commands/github/release-swarm.md +544 -0
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/github/repo-architect.md +367 -0
- package/.claude/commands/github/swarm-issue.md +482 -0
- package/.claude/commands/github/swarm-pr.md +285 -0
- package/.claude/commands/github/sync-coordinator.md +301 -0
- package/.claude/commands/github/workflow-automation.md +442 -0
- package/.claude/commands/hive-mind/README.md +17 -0
- package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-init.md +18 -0
- package/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
- package/.claude/commands/hive-mind/hive-mind-status.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
- package/.claude/commands/hive-mind/hive-mind.md +27 -0
- package/.claude/commands/hooks/README.md +11 -0
- package/.claude/commands/hooks/overview.md +58 -0
- package/.claude/commands/hooks/post-edit.md +117 -0
- package/.claude/commands/hooks/post-task.md +112 -0
- package/.claude/commands/hooks/pre-edit.md +113 -0
- package/.claude/commands/hooks/pre-task.md +111 -0
- package/.claude/commands/hooks/session-end.md +118 -0
- package/.claude/commands/hooks/setup.md +103 -0
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/commands/memory/memory-persist.md +25 -0
- package/.claude/commands/memory/memory-search.md +25 -0
- package/.claude/commands/memory/memory-usage.md +25 -0
- package/.claude/commands/memory/neural.md +47 -0
- package/.claude/commands/monitoring/README.md +9 -0
- package/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/.claude/commands/monitoring/agents.md +44 -0
- package/.claude/commands/monitoring/real-time-view.md +25 -0
- package/.claude/commands/monitoring/status.md +46 -0
- package/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/.claude/commands/optimization/README.md +9 -0
- package/.claude/commands/optimization/auto-topology.md +62 -0
- package/.claude/commands/optimization/cache-manage.md +25 -0
- package/.claude/commands/optimization/parallel-execute.md +25 -0
- package/.claude/commands/optimization/parallel-execution.md +50 -0
- package/.claude/commands/optimization/topology-optimize.md +25 -0
- package/.claude/commands/pair/README.md +261 -0
- package/.claude/commands/pair/commands.md +546 -0
- package/.claude/commands/pair/config.md +510 -0
- package/.claude/commands/pair/examples.md +512 -0
- package/.claude/commands/pair/modes.md +348 -0
- package/.claude/commands/pair/session.md +407 -0
- package/.claude/commands/pair/start.md +209 -0
- package/.claude/commands/sparc/analyzer.md +52 -0
- package/.claude/commands/sparc/architect.md +53 -0
- package/.claude/commands/sparc/ask.md +97 -0
- package/.claude/commands/sparc/batch-executor.md +54 -0
- package/.claude/commands/sparc/code.md +89 -0
- package/.claude/commands/sparc/coder.md +54 -0
- package/.claude/commands/sparc/debug.md +83 -0
- package/.claude/commands/sparc/debugger.md +54 -0
- package/.claude/commands/sparc/designer.md +53 -0
- package/.claude/commands/sparc/devops.md +109 -0
- package/.claude/commands/sparc/docs-writer.md +80 -0
- package/.claude/commands/sparc/documenter.md +54 -0
- package/.claude/commands/sparc/innovator.md +54 -0
- package/.claude/commands/sparc/integration.md +83 -0
- package/.claude/commands/sparc/mcp.md +117 -0
- package/.claude/commands/sparc/memory-manager.md +54 -0
- package/.claude/commands/sparc/optimizer.md +54 -0
- package/.claude/commands/sparc/orchestrator.md +132 -0
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
- package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
- package/.claude/commands/sparc/researcher.md +54 -0
- package/.claude/commands/sparc/reviewer.md +54 -0
- package/.claude/commands/sparc/security-review.md +80 -0
- package/.claude/commands/sparc/sparc-modes.md +174 -0
- package/.claude/commands/sparc/sparc.md +111 -0
- package/.claude/commands/sparc/spec-pseudocode.md +80 -0
- package/.claude/commands/sparc/supabase-admin.md +348 -0
- package/.claude/commands/sparc/swarm-coordinator.md +54 -0
- package/.claude/commands/sparc/tdd.md +54 -0
- package/.claude/commands/sparc/tester.md +54 -0
- package/.claude/commands/sparc/tutorial.md +79 -0
- package/.claude/commands/sparc/workflow-manager.md +54 -0
- package/.claude/commands/sparc.md +166 -0
- package/.claude/commands/stream-chain/pipeline.md +121 -0
- package/.claude/commands/stream-chain/run.md +70 -0
- package/.claude/commands/swarm/README.md +15 -0
- package/.claude/commands/swarm/analysis.md +95 -0
- package/.claude/commands/swarm/development.md +96 -0
- package/.claude/commands/swarm/examples.md +168 -0
- package/.claude/commands/swarm/maintenance.md +102 -0
- package/.claude/commands/swarm/optimization.md +117 -0
- package/.claude/commands/swarm/research.md +136 -0
- package/.claude/commands/swarm/swarm-analysis.md +8 -0
- package/.claude/commands/swarm/swarm-background.md +8 -0
- package/.claude/commands/swarm/swarm-init.md +19 -0
- package/.claude/commands/swarm/swarm-modes.md +8 -0
- package/.claude/commands/swarm/swarm-monitor.md +8 -0
- package/.claude/commands/swarm/swarm-spawn.md +19 -0
- package/.claude/commands/swarm/swarm-status.md +8 -0
- package/.claude/commands/swarm/swarm-strategies.md +8 -0
- package/.claude/commands/swarm/swarm.md +27 -0
- package/.claude/commands/swarm/testing.md +131 -0
- package/.claude/commands/training/README.md +9 -0
- package/.claude/commands/training/model-update.md +25 -0
- package/.claude/commands/training/neural-patterns.md +74 -0
- package/.claude/commands/training/neural-train.md +25 -0
- package/.claude/commands/training/pattern-learn.md +25 -0
- package/.claude/commands/training/specialization.md +63 -0
- package/.claude/commands/truth/start.md +143 -0
- package/.claude/commands/verify/check.md +50 -0
- package/.claude/commands/verify/start.md +128 -0
- package/.claude/commands/workflows/README.md +9 -0
- package/.claude/commands/workflows/development.md +78 -0
- package/.claude/commands/workflows/research.md +63 -0
- package/.claude/commands/workflows/workflow-create.md +25 -0
- package/.claude/commands/workflows/workflow-execute.md +25 -0
- package/.claude/commands/workflows/workflow-export.md +25 -0
- package/.claude/config/v3-dependency-optimization.json +266 -0
- package/.claude/config/v3-performance-targets.json +251 -0
- package/.claude/helpers/README.md +97 -0
- package/.claude/helpers/adr-compliance.sh +186 -0
- package/.claude/helpers/auto-commit.sh +178 -0
- package/.claude/helpers/checkpoint-manager.sh +251 -0
- package/.claude/helpers/daemon-manager.sh +252 -0
- package/.claude/helpers/ddd-tracker.sh +144 -0
- package/.claude/helpers/github-safe.js +106 -0
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/guidance-hook.sh +13 -0
- package/.claude/helpers/guidance-hooks.sh +102 -0
- package/.claude/helpers/health-monitor.sh +108 -0
- package/.claude/helpers/learning-hooks.sh +329 -0
- package/.claude/helpers/learning-optimizer.sh +127 -0
- package/.claude/helpers/learning-service.mjs +1144 -0
- package/.claude/helpers/metrics-db.mjs +488 -0
- package/.claude/helpers/pattern-consolidator.sh +86 -0
- package/.claude/helpers/perf-worker.sh +160 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/security-scanner.sh +127 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/helpers/standard-checkpoint-hooks.sh +189 -0
- package/.claude/helpers/swarm-comms.sh +353 -0
- package/.claude/helpers/swarm-hooks.sh +761 -0
- package/.claude/helpers/swarm-monitor.sh +211 -0
- package/.claude/helpers/sync-v3-metrics.sh +245 -0
- package/.claude/helpers/update-v3-progress.sh +166 -0
- package/.claude/helpers/v3-quick-status.sh +58 -0
- package/.claude/helpers/v3.sh +111 -0
- package/.claude/helpers/validate-v3-config.sh +216 -0
- package/.claude/helpers/worker-manager.sh +170 -0
- package/.claude/mcp.json +13 -0
- package/.claude/settings.json +526 -0
- package/.claude/settings.local.json +10 -0
- package/.claude/skills/.claude-flow/metrics/agent-metrics.json +1 -0
- package/.claude/skills/.claude-flow/metrics/performance.json +87 -0
- package/.claude/skills/.claude-flow/metrics/task-metrics.json +10 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
- package/.claude/skills/agentic-jujutsu/SKILL.md +645 -0
- package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
- package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
- package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
- package/.claude/skills/github-code-review/SKILL.md +1140 -0
- package/.claude/skills/github-multi-repo/SKILL.md +874 -0
- package/.claude/skills/github-project-management/SKILL.md +1277 -0
- package/.claude/skills/github-release-management/SKILL.md +1081 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
- package/.claude/skills/hooks-automation/SKILL.md +1201 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +563 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +1 -0
- package/.claude/skills/skill-builder/.claude-flow/metrics/performance.json +87 -0
- package/.claude/skills/skill-builder/.claude-flow/metrics/task-metrics.json +10 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
- package/.claude/skills/stream-chain/SKILL.md +563 -0
- package/.claude/skills/swarm-advanced/SKILL.md +973 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
- package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
- package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
- package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
- package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
- package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
- package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
- package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
- package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/skills/worker-benchmarks/skill.md +135 -0
- package/.claude/skills/worker-integration/skill.md +154 -0
- package/.claude/statusline-command.sh +176 -0
- package/.claude/statusline.mjs +109 -0
- package/.claude/statusline.sh +375 -0
- package/.claude-plugin/README.md +720 -0
- package/.claude-plugin/docs/INSTALLATION.md +261 -0
- package/.claude-plugin/docs/PLUGIN_SUMMARY.md +361 -0
- package/.claude-plugin/docs/QUICKSTART.md +361 -0
- package/.claude-plugin/docs/STRUCTURE.md +128 -0
- package/.claude-plugin/hooks/hooks.json +74 -0
- package/.claude-plugin/marketplace.json +96 -0
- package/.claude-plugin/plugin.json +71 -0
- package/.claude-plugin/scripts/install.sh +234 -0
- package/.claude-plugin/scripts/uninstall.sh +36 -0
- package/.claude-plugin/scripts/verify.sh +108 -0
- package/README.md +1093 -39
- package/package.json +54 -52
- package/v3/@claude-flow/cli/README.md +1352 -0
- package/v3/@claude-flow/cli/bin/cli.js +14 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.js +819 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts +19 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.js +1823 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.js +288 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.js +539 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.js +406 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.js +545 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.js +289 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js +448 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts +18 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.js +616 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.js +844 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js +2542 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.d.ts +65 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.js +162 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.js +532 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.js +662 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.js +977 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.js +398 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.js +224 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.js +262 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.js +280 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.js +641 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.js +259 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.js +232 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.js +603 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.js +261 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.js +750 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.js +398 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.js +584 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js +573 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.js +671 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.js +617 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.d.ts +15 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.js +185 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/index.d.ts +57 -0
- package/v3/@claude-flow/cli/dist/src/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/index.js +370 -0
- package/v3/@claude-flow/cli/dist/src/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.js +264 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +15 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js +482 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.js +652 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +42 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js +613 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/index.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/init/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/index.js +15 -0
- package/v3/@claude-flow/cli/dist/src/init/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +18 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js +71 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.js +267 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js +206 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/types.d.ts +240 -0
- package/v3/@claude-flow/cli/dist/src/init/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/types.js +210 -0
- package/v3/@claude-flow/cli/dist/src/init/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.d.ts +92 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.js +207 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts +153 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.js +453 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js +426 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js +317 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.js +333 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.js +447 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +41 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +1711 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +19 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js +18 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js +235 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js +343 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.js +315 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js +102 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.js +302 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +31 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.js +7 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.js +481 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/output.d.ts +133 -0
- package/v3/@claude-flow/cli/dist/src/output.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/output.js +513 -0
- package/v3/@claude-flow/cli/dist/src/output.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/parser.d.ts +41 -0
- package/v3/@claude-flow/cli/dist/src/parser.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/parser.js +353 -0
- package/v3/@claude-flow/cli/dist/src/parser.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/prompt.d.ts +44 -0
- package/v3/@claude-flow/cli/dist/src/prompt.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/prompt.js +501 -0
- package/v3/@claude-flow/cli/dist/src/prompt.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js +277 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js +491 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +33 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js +157 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +175 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js +662 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js +929 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts +27 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.js +53 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +211 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js +681 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +69 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js +243 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/index.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/services/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/index.js +6 -0
- package/v3/@claude-flow/cli/dist/src/services/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +153 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js +567 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/suggest.d.ts +53 -0
- package/v3/@claude-flow/cli/dist/src/suggest.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/suggest.js +200 -0
- package/v3/@claude-flow/cli/dist/src/suggest.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/types.d.ts +198 -0
- package/v3/@claude-flow/cli/dist/src/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/types.js +38 -0
- package/v3/@claude-flow/cli/dist/src/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/tsconfig.tsbuildinfo +1 -0
- package/v3/@claude-flow/cli/package.json +51 -0
- package/v3/@claude-flow/shared/README.md +323 -0
- package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts +41 -0
- package/v3/@claude-flow/shared/dist/core/config/defaults.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/defaults.js +186 -0
- package/v3/@claude-flow/shared/dist/core/config/defaults.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/index.d.ts +8 -0
- package/v3/@claude-flow/shared/dist/core/config/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/index.js +12 -0
- package/v3/@claude-flow/shared/dist/core/config/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/loader.d.ts +45 -0
- package/v3/@claude-flow/shared/dist/core/config/loader.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/loader.js +222 -0
- package/v3/@claude-flow/shared/dist/core/config/loader.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +1134 -0
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/schema.js +158 -0
- package/v3/@claude-flow/shared/dist/core/config/schema.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/validator.d.ts +92 -0
- package/v3/@claude-flow/shared/dist/core/config/validator.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/config/validator.js +147 -0
- package/v3/@claude-flow/shared/dist/core/config/validator.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/event-bus.d.ts +31 -0
- package/v3/@claude-flow/shared/dist/core/event-bus.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/event-bus.js +197 -0
- package/v3/@claude-flow/shared/dist/core/event-bus.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/index.d.ts +15 -0
- package/v3/@claude-flow/shared/dist/core/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/index.js +19 -0
- package/v3/@claude-flow/shared/dist/core/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts +200 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js +6 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/agent.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +310 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js +7 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts +224 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js +46 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/event.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/index.js +15 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts +298 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js +7 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/memory.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts +185 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js +6 -0
- package/v3/@claude-flow/shared/dist/core/interfaces/task.interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts +35 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js +101 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/event-coordinator.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts +60 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js +166 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/health-monitor.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts +46 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.js +64 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts +56 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js +195 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/lifecycle-manager.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts +83 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js +193 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/session-manager.js.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts +49 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js +253 -0
- package/v3/@claude-flow/shared/dist/core/orchestrator/task-manager.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/domain-events.d.ts +282 -0
- package/v3/@claude-flow/shared/dist/events/domain-events.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/domain-events.js +165 -0
- package/v3/@claude-flow/shared/dist/events/domain-events.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/event-store.d.ts +126 -0
- package/v3/@claude-flow/shared/dist/events/event-store.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/event-store.js +416 -0
- package/v3/@claude-flow/shared/dist/events/event-store.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts +8 -0
- package/v3/@claude-flow/shared/dist/events/event-store.test.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/event-store.test.js +293 -0
- package/v3/@claude-flow/shared/dist/events/event-store.test.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/example-usage.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/events/example-usage.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/example-usage.js +193 -0
- package/v3/@claude-flow/shared/dist/events/example-usage.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/index.d.ts +19 -0
- package/v3/@claude-flow/shared/dist/events/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/index.js +20 -0
- package/v3/@claude-flow/shared/dist/events/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/projections.d.ts +177 -0
- package/v3/@claude-flow/shared/dist/events/projections.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/projections.js +421 -0
- package/v3/@claude-flow/shared/dist/events/projections.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts +101 -0
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.js +263 -0
- package/v3/@claude-flow/shared/dist/events/state-reconstructor.js.map +1 -0
- package/v3/@claude-flow/shared/dist/events.d.ts +80 -0
- package/v3/@claude-flow/shared/dist/events.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/events.js +249 -0
- package/v3/@claude-flow/shared/dist/events.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts +42 -0
- package/v3/@claude-flow/shared/dist/hooks/example-usage.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/example-usage.js +351 -0
- package/v3/@claude-flow/shared/dist/hooks/example-usage.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/executor.d.ts +100 -0
- package/v3/@claude-flow/shared/dist/hooks/executor.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/executor.js +264 -0
- package/v3/@claude-flow/shared/dist/hooks/executor.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts +9 -0
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.js +322 -0
- package/v3/@claude-flow/shared/dist/hooks/hooks.test.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/index.d.ts +52 -0
- package/v3/@claude-flow/shared/dist/hooks/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/index.js +51 -0
- package/v3/@claude-flow/shared/dist/hooks/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/registry.d.ts +133 -0
- package/v3/@claude-flow/shared/dist/hooks/registry.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/registry.js +277 -0
- package/v3/@claude-flow/shared/dist/hooks/registry.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts +105 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js +481 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/bash-safety.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts +144 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js +328 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/file-organization.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts +158 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js +450 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/git-commit.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts +17 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/index.js +17 -0
- package/v3/@claude-flow/shared/dist/hooks/safety/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts +234 -0
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.js +334 -0
- package/v3/@claude-flow/shared/dist/hooks/session-hooks.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts +163 -0
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.js +326 -0
- package/v3/@claude-flow/shared/dist/hooks/task-hooks.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/types.d.ts +267 -0
- package/v3/@claude-flow/shared/dist/hooks/types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/types.js +62 -0
- package/v3/@claude-flow/shared/dist/hooks/types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts +9 -0
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js +93 -0
- package/v3/@claude-flow/shared/dist/hooks/verify-exports.test.js.map +1 -0
- package/v3/@claude-flow/shared/dist/index.d.ts +19 -0
- package/v3/@claude-flow/shared/dist/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/index.js +46 -0
- package/v3/@claude-flow/shared/dist/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts +98 -0
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.js +364 -0
- package/v3/@claude-flow/shared/dist/mcp/connection-pool.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/index.d.ts +69 -0
- package/v3/@claude-flow/shared/dist/mcp/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/index.js +84 -0
- package/v3/@claude-flow/shared/dist/mcp/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/server.d.ts +166 -0
- package/v3/@claude-flow/shared/dist/mcp/server.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/server.js +593 -0
- package/v3/@claude-flow/shared/dist/mcp/server.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts +136 -0
- package/v3/@claude-flow/shared/dist/mcp/session-manager.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/session-manager.js +335 -0
- package/v3/@claude-flow/shared/dist/mcp/session-manager.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts +178 -0
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.js +439 -0
- package/v3/@claude-flow/shared/dist/mcp/tool-registry.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts +104 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/http.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/http.js +476 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/http.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts +102 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/index.js +238 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts +104 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js +263 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/stdio.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts +133 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js +396 -0
- package/v3/@claude-flow/shared/dist/mcp/transport/websocket.js.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/types.d.ts +438 -0
- package/v3/@claude-flow/shared/dist/mcp/types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/mcp/types.js +54 -0
- package/v3/@claude-flow/shared/dist/mcp/types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-interface.d.ts +544 -0
- package/v3/@claude-flow/shared/dist/plugin-interface.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-interface.js +23 -0
- package/v3/@claude-flow/shared/dist/plugin-interface.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-loader.d.ts +139 -0
- package/v3/@claude-flow/shared/dist/plugin-loader.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-loader.js +434 -0
- package/v3/@claude-flow/shared/dist/plugin-loader.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-registry.d.ts +183 -0
- package/v3/@claude-flow/shared/dist/plugin-registry.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugin-registry.js +457 -0
- package/v3/@claude-flow/shared/dist/plugin-registry.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/index.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/plugins/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/index.js +10 -0
- package/v3/@claude-flow/shared/dist/plugins/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts +106 -0
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js +241 -0
- package/v3/@claude-flow/shared/dist/plugins/official/hive-mind-plugin.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/plugins/official/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/index.js +10 -0
- package/v3/@claude-flow/shared/dist/plugins/official/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts +121 -0
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js +355 -0
- package/v3/@claude-flow/shared/dist/plugins/official/maestro-plugin.js.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/types.d.ts +93 -0
- package/v3/@claude-flow/shared/dist/plugins/types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/plugins/types.js +9 -0
- package/v3/@claude-flow/shared/dist/plugins/types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts +105 -0
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.js +206 -0
- package/v3/@claude-flow/shared/dist/resilience/bulkhead.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts +132 -0
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js +233 -0
- package/v3/@claude-flow/shared/dist/resilience/circuit-breaker.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/index.d.ts +19 -0
- package/v3/@claude-flow/shared/dist/resilience/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/index.js +19 -0
- package/v3/@claude-flow/shared/dist/resilience/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts +168 -0
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js +314 -0
- package/v3/@claude-flow/shared/dist/resilience/rate-limiter.js.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/retry.d.ts +91 -0
- package/v3/@claude-flow/shared/dist/resilience/retry.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/resilience/retry.js +159 -0
- package/v3/@claude-flow/shared/dist/resilience/retry.js.map +1 -0
- package/v3/@claude-flow/shared/dist/security/index.d.ts +10 -0
- package/v3/@claude-flow/shared/dist/security/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/security/index.js +12 -0
- package/v3/@claude-flow/shared/dist/security/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/security/input-validation.d.ts +73 -0
- package/v3/@claude-flow/shared/dist/security/input-validation.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/security/input-validation.js +201 -0
- package/v3/@claude-flow/shared/dist/security/input-validation.js.map +1 -0
- package/v3/@claude-flow/shared/dist/security/secure-random.d.ts +92 -0
- package/v3/@claude-flow/shared/dist/security/secure-random.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/security/secure-random.js +142 -0
- package/v3/@claude-flow/shared/dist/security/secure-random.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/agent.types.d.ts +137 -0
- package/v3/@claude-flow/shared/dist/types/agent.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/agent.types.js +6 -0
- package/v3/@claude-flow/shared/dist/types/agent.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/index.d.ts +11 -0
- package/v3/@claude-flow/shared/dist/types/index.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/index.js +17 -0
- package/v3/@claude-flow/shared/dist/types/index.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts +266 -0
- package/v3/@claude-flow/shared/dist/types/mcp.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/mcp.types.js +7 -0
- package/v3/@claude-flow/shared/dist/types/mcp.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/memory.types.d.ts +236 -0
- package/v3/@claude-flow/shared/dist/types/memory.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/memory.types.js +7 -0
- package/v3/@claude-flow/shared/dist/types/memory.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts +186 -0
- package/v3/@claude-flow/shared/dist/types/swarm.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/swarm.types.js +65 -0
- package/v3/@claude-flow/shared/dist/types/swarm.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types/task.types.d.ts +178 -0
- package/v3/@claude-flow/shared/dist/types/task.types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types/task.types.js +32 -0
- package/v3/@claude-flow/shared/dist/types/task.types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/types.d.ts +197 -0
- package/v3/@claude-flow/shared/dist/types.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/types.js +21 -0
- package/v3/@claude-flow/shared/dist/types.js.map +1 -0
- package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts +69 -0
- package/v3/@claude-flow/shared/dist/utils/secure-logger.d.ts.map +1 -0
- package/v3/@claude-flow/shared/dist/utils/secure-logger.js +208 -0
- package/v3/@claude-flow/shared/dist/utils/secure-logger.js.map +1 -0
- package/v3/@claude-flow/shared/package.json +34 -0
- package/v3/README.md +493 -0
- package/bin/cli.js +0 -36
- package/dist/index.d.ts +0 -40
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -43
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 Task Lifecycle Hooks
|
|
3
|
+
*
|
|
4
|
+
* Provides pre-task and post-task hooks for task execution lifecycle.
|
|
5
|
+
* Integrates with ReasoningBank for learning and pattern recognition.
|
|
6
|
+
*
|
|
7
|
+
* @module v3/shared/hooks/task-hooks
|
|
8
|
+
*/
|
|
9
|
+
import { HookContext, HookResult } from './types.js';
|
|
10
|
+
import { HookRegistry } from './registry.js';
|
|
11
|
+
/**
|
|
12
|
+
* Pre-task hook result with agent suggestions
|
|
13
|
+
*/
|
|
14
|
+
export interface PreTaskHookResult extends HookResult {
|
|
15
|
+
/** Suggested agents for the task */
|
|
16
|
+
suggestedAgents?: AgentSuggestion[];
|
|
17
|
+
/** Task complexity estimation */
|
|
18
|
+
complexity?: 'low' | 'medium' | 'high';
|
|
19
|
+
/** Estimated duration in milliseconds */
|
|
20
|
+
estimatedDuration?: number;
|
|
21
|
+
/** Related patterns from ReasoningBank */
|
|
22
|
+
patterns?: TaskPattern[];
|
|
23
|
+
/** Potential risks */
|
|
24
|
+
risks?: string[];
|
|
25
|
+
/** Recommendations */
|
|
26
|
+
recommendations?: string[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Post-task hook result with learning data
|
|
30
|
+
*/
|
|
31
|
+
export interface PostTaskHookResult extends HookResult {
|
|
32
|
+
/** Task outcome */
|
|
33
|
+
outcome?: TaskOutcome;
|
|
34
|
+
/** Learning updates applied */
|
|
35
|
+
learningUpdates?: LearningUpdate;
|
|
36
|
+
/** Pattern ID if a new pattern was created */
|
|
37
|
+
patternId?: string;
|
|
38
|
+
/** Trajectory ID for ReasoningBank */
|
|
39
|
+
trajectoryId?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Agent suggestion for task routing
|
|
43
|
+
*/
|
|
44
|
+
export interface AgentSuggestion {
|
|
45
|
+
/** Agent type */
|
|
46
|
+
type: string;
|
|
47
|
+
/** Confidence score (0-1) */
|
|
48
|
+
confidence: number;
|
|
49
|
+
/** Reason for suggestion */
|
|
50
|
+
reason: string;
|
|
51
|
+
/** Capabilities relevant to this task */
|
|
52
|
+
capabilities?: string[];
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Task pattern from ReasoningBank
|
|
56
|
+
*/
|
|
57
|
+
export interface TaskPattern {
|
|
58
|
+
/** Pattern identifier */
|
|
59
|
+
id: string;
|
|
60
|
+
/** Pattern description */
|
|
61
|
+
description: string;
|
|
62
|
+
/** Match score (0-1) */
|
|
63
|
+
matchScore: number;
|
|
64
|
+
/** Historical success rate */
|
|
65
|
+
successRate: number;
|
|
66
|
+
/** Average duration in ms */
|
|
67
|
+
avgDuration: number;
|
|
68
|
+
/** Recommended strategies */
|
|
69
|
+
strategies?: string[];
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Task outcome for learning
|
|
73
|
+
*/
|
|
74
|
+
export interface TaskOutcome {
|
|
75
|
+
/** Whether the task succeeded */
|
|
76
|
+
success: boolean;
|
|
77
|
+
/** Duration in milliseconds */
|
|
78
|
+
duration: number;
|
|
79
|
+
/** Quality score (0-1) */
|
|
80
|
+
quality?: number;
|
|
81
|
+
/** Error details if failed */
|
|
82
|
+
error?: string;
|
|
83
|
+
/** Output artifacts */
|
|
84
|
+
artifacts?: string[];
|
|
85
|
+
/** Agent that executed the task */
|
|
86
|
+
agent?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Learning update result
|
|
90
|
+
*/
|
|
91
|
+
export interface LearningUpdate {
|
|
92
|
+
/** Number of patterns updated */
|
|
93
|
+
patternsUpdated: number;
|
|
94
|
+
/** Number of new patterns created */
|
|
95
|
+
newPatterns: number;
|
|
96
|
+
/** Confidence adjustments made */
|
|
97
|
+
confidenceAdjusted: number;
|
|
98
|
+
/** Trajectories recorded */
|
|
99
|
+
trajectoriesRecorded: number;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Task store for tracking active tasks
|
|
103
|
+
*/
|
|
104
|
+
interface TaskStore {
|
|
105
|
+
taskId: string;
|
|
106
|
+
description: string;
|
|
107
|
+
startTime: number;
|
|
108
|
+
metadata?: Record<string, unknown>;
|
|
109
|
+
suggestedAgents?: AgentSuggestion[];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Task Hooks Manager
|
|
113
|
+
*
|
|
114
|
+
* Manages pre-task and post-task hooks with ReasoningBank integration.
|
|
115
|
+
*/
|
|
116
|
+
export declare class TaskHooksManager {
|
|
117
|
+
private registry;
|
|
118
|
+
private activeTasks;
|
|
119
|
+
private taskPatterns;
|
|
120
|
+
constructor(registry: HookRegistry);
|
|
121
|
+
/**
|
|
122
|
+
* Register default task hooks
|
|
123
|
+
*/
|
|
124
|
+
private registerDefaultHooks;
|
|
125
|
+
/**
|
|
126
|
+
* Handle pre-task execution
|
|
127
|
+
*/
|
|
128
|
+
handlePreTask(context: HookContext): Promise<PreTaskHookResult>;
|
|
129
|
+
/**
|
|
130
|
+
* Handle post-task execution
|
|
131
|
+
*/
|
|
132
|
+
handlePostTask(context: HookContext): Promise<PostTaskHookResult>;
|
|
133
|
+
/**
|
|
134
|
+
* Analyze task for agent suggestions and patterns
|
|
135
|
+
*/
|
|
136
|
+
private analyzeTask;
|
|
137
|
+
/**
|
|
138
|
+
* Record learning trajectory
|
|
139
|
+
*/
|
|
140
|
+
private recordLearning;
|
|
141
|
+
/**
|
|
142
|
+
* Execute pre-task hook manually
|
|
143
|
+
*/
|
|
144
|
+
executePreTask(taskId: string, description: string, metadata?: Record<string, unknown>): Promise<PreTaskHookResult>;
|
|
145
|
+
/**
|
|
146
|
+
* Execute post-task hook manually
|
|
147
|
+
*/
|
|
148
|
+
executePostTask(taskId: string, success: boolean, metadata?: Record<string, unknown>): Promise<PostTaskHookResult>;
|
|
149
|
+
/**
|
|
150
|
+
* Get active tasks
|
|
151
|
+
*/
|
|
152
|
+
getActiveTasks(): Map<string, TaskStore>;
|
|
153
|
+
/**
|
|
154
|
+
* Clear all active tasks
|
|
155
|
+
*/
|
|
156
|
+
clearActiveTasks(): void;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Create task hooks manager
|
|
160
|
+
*/
|
|
161
|
+
export declare function createTaskHooksManager(registry: HookRegistry): TaskHooksManager;
|
|
162
|
+
export {};
|
|
163
|
+
//# sourceMappingURL=task-hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-hooks.d.ts","sourceRoot":"","sources":["../../src/hooks/task-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEL,WAAW,EACX,UAAU,EAGX,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,oCAAoC;IACpC,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IACpC,iCAAiC;IACjC,UAAU,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACvC,yCAAyC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,sBAAsB;IACtB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,mBAAmB;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,+BAA+B;IAC/B,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MA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Y,CAAyC;gBAEjD,QAAQ,EAAE,YAAY;IAKlC;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAkB5B;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA8CrE;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA2CvE;;OAEG;YACW,WAAW;IAmKzB;;OAEG;YACW,cAAc;IAkB5B;;OAEG;IACG,cAAc,CAClB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,OAAO,CAAC,iBAAiB,CAAC;IAc7B;;OAEG;IACG,eAAe,CACnB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAoB9B;;OAEG;IACH,cAAc,IAAI,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC;IAIxC;;OAEG;IACH,gBAAgB,IAAI,IAAI;CAIzB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,YAAY,GAAG,gBAAgB,CAE/E"}
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 Task Lifecycle Hooks
|
|
3
|
+
*
|
|
4
|
+
* Provides pre-task and post-task hooks for task execution lifecycle.
|
|
5
|
+
* Integrates with ReasoningBank for learning and pattern recognition.
|
|
6
|
+
*
|
|
7
|
+
* @module v3/shared/hooks/task-hooks
|
|
8
|
+
*/
|
|
9
|
+
import { HookEvent, HookPriority, } from './types.js';
|
|
10
|
+
/**
|
|
11
|
+
* Task Hooks Manager
|
|
12
|
+
*
|
|
13
|
+
* Manages pre-task and post-task hooks with ReasoningBank integration.
|
|
14
|
+
*/
|
|
15
|
+
export class TaskHooksManager {
|
|
16
|
+
registry;
|
|
17
|
+
activeTasks = new Map();
|
|
18
|
+
taskPatterns = new Map();
|
|
19
|
+
constructor(registry) {
|
|
20
|
+
this.registry = registry;
|
|
21
|
+
this.registerDefaultHooks();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Register default task hooks
|
|
25
|
+
*/
|
|
26
|
+
registerDefaultHooks() {
|
|
27
|
+
// Pre-task hook for agent suggestion
|
|
28
|
+
this.registry.register(HookEvent.PreTaskExecute, this.handlePreTask.bind(this), HookPriority.Normal, { name: 'task-hooks:pre-task' });
|
|
29
|
+
// Post-task hook for learning
|
|
30
|
+
this.registry.register(HookEvent.PostTaskExecute, this.handlePostTask.bind(this), HookPriority.Normal, { name: 'task-hooks:post-task' });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Handle pre-task execution
|
|
34
|
+
*/
|
|
35
|
+
async handlePreTask(context) {
|
|
36
|
+
const task = context.task;
|
|
37
|
+
if (!task) {
|
|
38
|
+
return { success: false, error: new Error('No task in context') };
|
|
39
|
+
}
|
|
40
|
+
// Store task for tracking
|
|
41
|
+
const taskStore = {
|
|
42
|
+
taskId: task.id,
|
|
43
|
+
description: task.description,
|
|
44
|
+
startTime: Date.now(),
|
|
45
|
+
metadata: task.metadata,
|
|
46
|
+
};
|
|
47
|
+
// Analyze task and suggest agents
|
|
48
|
+
const analysis = await this.analyzeTask(task);
|
|
49
|
+
taskStore.suggestedAgents = analysis.suggestedAgents;
|
|
50
|
+
this.activeTasks.set(task.id, taskStore);
|
|
51
|
+
// Store patterns for this task
|
|
52
|
+
if (analysis.patterns.length > 0) {
|
|
53
|
+
this.taskPatterns.set(task.id, analysis.patterns);
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
success: true,
|
|
57
|
+
suggestedAgents: analysis.suggestedAgents,
|
|
58
|
+
complexity: analysis.complexity,
|
|
59
|
+
estimatedDuration: analysis.estimatedDuration,
|
|
60
|
+
patterns: analysis.patterns,
|
|
61
|
+
risks: analysis.risks,
|
|
62
|
+
recommendations: analysis.recommendations,
|
|
63
|
+
data: {
|
|
64
|
+
task: {
|
|
65
|
+
...task,
|
|
66
|
+
metadata: {
|
|
67
|
+
...task.metadata,
|
|
68
|
+
suggestedAgents: analysis.suggestedAgents.map(a => a.type),
|
|
69
|
+
complexity: analysis.complexity,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Handle post-task execution
|
|
77
|
+
*/
|
|
78
|
+
async handlePostTask(context) {
|
|
79
|
+
const task = context.task;
|
|
80
|
+
if (!task) {
|
|
81
|
+
return { success: false, error: new Error('No task in context') };
|
|
82
|
+
}
|
|
83
|
+
const taskStore = this.activeTasks.get(task.id);
|
|
84
|
+
const patterns = this.taskPatterns.get(task.id);
|
|
85
|
+
// Calculate duration
|
|
86
|
+
const duration = taskStore ? Date.now() - taskStore.startTime : 0;
|
|
87
|
+
// Extract outcome from context metadata
|
|
88
|
+
const success = context.metadata?.success !== false;
|
|
89
|
+
const quality = context.metadata?.quality;
|
|
90
|
+
const error = context.metadata?.error;
|
|
91
|
+
const agent = context.metadata?.agent;
|
|
92
|
+
const outcome = {
|
|
93
|
+
success,
|
|
94
|
+
duration,
|
|
95
|
+
quality,
|
|
96
|
+
error,
|
|
97
|
+
agent,
|
|
98
|
+
artifacts: context.metadata?.artifacts,
|
|
99
|
+
};
|
|
100
|
+
// Record learning trajectory
|
|
101
|
+
const learningUpdates = await this.recordLearning(task, outcome, patterns);
|
|
102
|
+
// Clean up
|
|
103
|
+
this.activeTasks.delete(task.id);
|
|
104
|
+
this.taskPatterns.delete(task.id);
|
|
105
|
+
return {
|
|
106
|
+
success: true,
|
|
107
|
+
outcome,
|
|
108
|
+
learningUpdates,
|
|
109
|
+
patternId: learningUpdates.newPatterns > 0 ? `pattern-${task.id}` : undefined,
|
|
110
|
+
trajectoryId: `trajectory-${task.id}-${Date.now()}`,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Analyze task for agent suggestions and patterns
|
|
115
|
+
*/
|
|
116
|
+
async analyzeTask(task) {
|
|
117
|
+
const description = task.description.toLowerCase();
|
|
118
|
+
// Pattern-based agent suggestion
|
|
119
|
+
const suggestedAgents = [];
|
|
120
|
+
const patterns = [];
|
|
121
|
+
const risks = [];
|
|
122
|
+
const recommendations = [];
|
|
123
|
+
// Analyze task keywords for agent routing
|
|
124
|
+
const agentPatterns = [
|
|
125
|
+
{
|
|
126
|
+
keywords: ['implement', 'code', 'create', 'build', 'develop', 'write'],
|
|
127
|
+
agent: 'coder',
|
|
128
|
+
capabilities: ['code-generation', 'implementation', 'debugging'],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
keywords: ['test', 'spec', 'coverage', 'unit', 'integration'],
|
|
132
|
+
agent: 'tester',
|
|
133
|
+
capabilities: ['unit-testing', 'integration-testing', 'coverage-analysis'],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
keywords: ['review', 'check', 'audit', 'analyze'],
|
|
137
|
+
agent: 'reviewer',
|
|
138
|
+
capabilities: ['code-review', 'quality-analysis', 'best-practices'],
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
keywords: ['research', 'investigate', 'explore', 'study'],
|
|
142
|
+
agent: 'researcher',
|
|
143
|
+
capabilities: ['research', 'analysis', 'documentation'],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
keywords: ['security', 'vulnerability', 'cve', 'threat'],
|
|
147
|
+
agent: 'security-architect',
|
|
148
|
+
capabilities: ['security-analysis', 'vulnerability-detection', 'threat-modeling'],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
keywords: ['performance', 'optimize', 'speed', 'memory'],
|
|
152
|
+
agent: 'performance-engineer',
|
|
153
|
+
capabilities: ['performance-optimization', 'profiling', 'benchmarking'],
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
keywords: ['architect', 'design', 'structure', 'pattern'],
|
|
157
|
+
agent: 'core-architect',
|
|
158
|
+
capabilities: ['architecture-design', 'pattern-application', 'system-design'],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
keywords: ['memory', 'storage', 'database', 'cache'],
|
|
162
|
+
agent: 'memory-specialist',
|
|
163
|
+
capabilities: ['memory-management', 'data-persistence', 'caching'],
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
keywords: ['swarm', 'coordinate', 'orchestrate', 'agent'],
|
|
167
|
+
agent: 'swarm-specialist',
|
|
168
|
+
capabilities: ['swarm-coordination', 'agent-orchestration', 'distributed-systems'],
|
|
169
|
+
},
|
|
170
|
+
];
|
|
171
|
+
// Score each agent based on keyword matches
|
|
172
|
+
for (const pattern of agentPatterns) {
|
|
173
|
+
let matchCount = 0;
|
|
174
|
+
for (const keyword of pattern.keywords) {
|
|
175
|
+
if (description.includes(keyword)) {
|
|
176
|
+
matchCount++;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
if (matchCount > 0) {
|
|
180
|
+
const confidence = Math.min(0.3 + matchCount * 0.2, 0.95);
|
|
181
|
+
suggestedAgents.push({
|
|
182
|
+
type: pattern.agent,
|
|
183
|
+
confidence,
|
|
184
|
+
reason: `Matched keywords: ${pattern.keywords.filter(k => description.includes(k)).join(', ')}`,
|
|
185
|
+
capabilities: pattern.capabilities,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
// Sort by confidence
|
|
190
|
+
suggestedAgents.sort((a, b) => b.confidence - a.confidence);
|
|
191
|
+
// If no matches, default to coder
|
|
192
|
+
if (suggestedAgents.length === 0) {
|
|
193
|
+
suggestedAgents.push({
|
|
194
|
+
type: 'coder',
|
|
195
|
+
confidence: 0.5,
|
|
196
|
+
reason: 'Default agent for unclassified tasks',
|
|
197
|
+
capabilities: ['code-generation', 'implementation'],
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
// Estimate complexity based on description length and keywords
|
|
201
|
+
let complexity = 'medium';
|
|
202
|
+
const complexityKeywords = ['complex', 'large', 'multiple', 'refactor', 'redesign', 'critical'];
|
|
203
|
+
const simpleKeywords = ['simple', 'small', 'quick', 'fix', 'minor', 'typo'];
|
|
204
|
+
const hasComplexKeywords = complexityKeywords.some(k => description.includes(k));
|
|
205
|
+
const hasSimpleKeywords = simpleKeywords.some(k => description.includes(k));
|
|
206
|
+
if (hasComplexKeywords) {
|
|
207
|
+
complexity = 'high';
|
|
208
|
+
}
|
|
209
|
+
else if (hasSimpleKeywords) {
|
|
210
|
+
complexity = 'low';
|
|
211
|
+
}
|
|
212
|
+
else if (description.length > 200) {
|
|
213
|
+
complexity = 'high';
|
|
214
|
+
}
|
|
215
|
+
else if (description.length < 50) {
|
|
216
|
+
complexity = 'low';
|
|
217
|
+
}
|
|
218
|
+
// Estimate duration based on complexity
|
|
219
|
+
const durationMap = {
|
|
220
|
+
low: 5 * 60 * 1000, // 5 minutes
|
|
221
|
+
medium: 30 * 60 * 1000, // 30 minutes
|
|
222
|
+
high: 2 * 60 * 60 * 1000, // 2 hours
|
|
223
|
+
};
|
|
224
|
+
const estimatedDuration = durationMap[complexity];
|
|
225
|
+
// Detect risks
|
|
226
|
+
if (description.includes('production') || description.includes('live')) {
|
|
227
|
+
risks.push('Task involves production environment');
|
|
228
|
+
}
|
|
229
|
+
if (description.includes('delete') || description.includes('remove')) {
|
|
230
|
+
risks.push('Task involves destructive operations');
|
|
231
|
+
}
|
|
232
|
+
if (description.includes('security') || description.includes('auth')) {
|
|
233
|
+
risks.push('Task involves security-sensitive operations');
|
|
234
|
+
}
|
|
235
|
+
if (description.includes('database') || description.includes('migration')) {
|
|
236
|
+
risks.push('Task involves database changes');
|
|
237
|
+
}
|
|
238
|
+
// Add recommendations
|
|
239
|
+
if (complexity === 'high') {
|
|
240
|
+
recommendations.push('Consider breaking this task into smaller subtasks');
|
|
241
|
+
}
|
|
242
|
+
if (suggestedAgents.length > 1) {
|
|
243
|
+
recommendations.push('Consider using multiple agents for better coverage');
|
|
244
|
+
}
|
|
245
|
+
if (risks.length > 0) {
|
|
246
|
+
recommendations.push('Review risks before proceeding');
|
|
247
|
+
}
|
|
248
|
+
return {
|
|
249
|
+
suggestedAgents,
|
|
250
|
+
complexity,
|
|
251
|
+
estimatedDuration,
|
|
252
|
+
patterns,
|
|
253
|
+
risks,
|
|
254
|
+
recommendations,
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Record learning trajectory
|
|
259
|
+
*/
|
|
260
|
+
async recordLearning(task, outcome, patterns) {
|
|
261
|
+
// In a real implementation, this would integrate with ReasoningBank
|
|
262
|
+
// For now, we track basic statistics
|
|
263
|
+
const learningUpdate = {
|
|
264
|
+
patternsUpdated: patterns?.length || 0,
|
|
265
|
+
newPatterns: outcome.success ? 1 : 0,
|
|
266
|
+
confidenceAdjusted: patterns?.length || 0,
|
|
267
|
+
trajectoriesRecorded: 1,
|
|
268
|
+
};
|
|
269
|
+
return learningUpdate;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Execute pre-task hook manually
|
|
273
|
+
*/
|
|
274
|
+
async executePreTask(taskId, description, metadata) {
|
|
275
|
+
const context = {
|
|
276
|
+
event: HookEvent.PreTaskExecute,
|
|
277
|
+
timestamp: new Date(),
|
|
278
|
+
task: {
|
|
279
|
+
id: taskId,
|
|
280
|
+
description,
|
|
281
|
+
metadata,
|
|
282
|
+
},
|
|
283
|
+
};
|
|
284
|
+
return this.handlePreTask(context);
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Execute post-task hook manually
|
|
288
|
+
*/
|
|
289
|
+
async executePostTask(taskId, success, metadata) {
|
|
290
|
+
const taskStore = this.activeTasks.get(taskId);
|
|
291
|
+
const context = {
|
|
292
|
+
event: HookEvent.PostTaskExecute,
|
|
293
|
+
timestamp: new Date(),
|
|
294
|
+
task: {
|
|
295
|
+
id: taskId,
|
|
296
|
+
description: taskStore?.description || 'Unknown task',
|
|
297
|
+
metadata: taskStore?.metadata,
|
|
298
|
+
},
|
|
299
|
+
metadata: {
|
|
300
|
+
...metadata,
|
|
301
|
+
success,
|
|
302
|
+
},
|
|
303
|
+
};
|
|
304
|
+
return this.handlePostTask(context);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Get active tasks
|
|
308
|
+
*/
|
|
309
|
+
getActiveTasks() {
|
|
310
|
+
return new Map(this.activeTasks);
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Clear all active tasks
|
|
314
|
+
*/
|
|
315
|
+
clearActiveTasks() {
|
|
316
|
+
this.activeTasks.clear();
|
|
317
|
+
this.taskPatterns.clear();
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Create task hooks manager
|
|
322
|
+
*/
|
|
323
|
+
export function createTaskHooksManager(registry) {
|
|
324
|
+
return new TaskHooksManager(registry);
|
|
325
|
+
}
|
|
326
|
+
//# sourceMappingURL=task-hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-hooks.js","sourceRoot":"","sources":["../../src/hooks/task-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EAGT,YAAY,GAEb,MAAM,YAAY,CAAC;AA8GpB;;;;GAIG;AACH,MAAM,OAAO,gBAAgB;IACnB,QAAQ,CAAe;IACvB,WAAW,GAA2B,IAAI,GAAG,EAAE,CAAC;IAChD,YAAY,GAA+B,IAAI,GAAG,EAAE,CAAC;IAE7D,YAAY,QAAsB;QAChC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAED;;OAEG;IACK,oBAAoB;QAC1B,qCAAqC;QACrC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CACpB,SAAS,CAAC,cAAc,EACxB,IAAI,C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