@claude-flow/cli 3.0.2 → 3.1.0-alpha.2
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/analysis/analyze-code-quality.md +179 -0
- package/.claude/agents/analysis/code-analyzer.md +210 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +179 -0
- package/.claude/agents/architecture/arch-system-design.md +157 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +155 -0
- package/.claude/agents/browser/browser-agent.yaml +182 -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 +453 -0
- package/.claude/agents/core/planner.md +375 -0
- package/.claude/agents/core/researcher.md +369 -0
- package/.claude/agents/core/reviewer.md +520 -0
- package/.claude/agents/core/tester.md +512 -0
- package/.claude/agents/custom/test-long-runner.md +44 -0
- package/.claude/agents/data/data-ml-model.md +445 -0
- package/.claude/agents/data/ml/data-ml-model.md +193 -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/devops/ops-cicd-github.md +165 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude/agents/documentation/docs-api-openapi.md +355 -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 +377 -0
- package/.claude/agents/github/github-modes.md +173 -0
- package/.claude/agents/github/issue-tracker.md +576 -0
- package/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude/agents/github/pr-manager.md +438 -0
- package/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude/agents/github/release-manager.md +605 -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 +903 -0
- package/.claude/agents/goal/agent.md +816 -0
- package/.claude/agents/goal/goal-planner.md +73 -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/sona/sona-learning-optimizer.md +74 -0
- package/.claude/agents/sparc/architecture.md +699 -0
- package/.claude/agents/sparc/pseudocode.md +520 -0
- package/.claude/agents/sparc/refinement.md +802 -0
- package/.claude/agents/sparc/specification.md +478 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +225 -0
- package/.claude/agents/specialized/spec-mobile-react-native.md +227 -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/adaptive-coordinator.md +1127 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +710 -0
- package/.claude/agents/swarm/mesh-coordinator.md +963 -0
- package/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude/agents/templates/base-template-generator.md +268 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +90 -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/orchestrator-task.md +139 -0
- package/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude/agents/templates/sparc-coordinator.md +514 -0
- package/.claude/agents/testing/production-validator.md +395 -0
- package/.claude/agents/testing/tdd-london-swarm.md +244 -0
- package/.claude/agents/v3/adr-architect.md +184 -0
- package/.claude/agents/v3/aidefence-guardian.md +282 -0
- package/.claude/agents/v3/claims-authorizer.md +208 -0
- package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -0
- package/.claude/agents/v3/ddd-domain-expert.md +220 -0
- package/.claude/agents/v3/injection-analyst.md +236 -0
- package/.claude/agents/v3/memory-specialist.md +995 -0
- package/.claude/agents/v3/performance-engineer.md +1233 -0
- package/.claude/agents/v3/pii-detector.md +151 -0
- package/.claude/agents/v3/reasoningbank-learner.md +213 -0
- package/.claude/agents/v3/security-architect-aidefence.md +410 -0
- package/.claude/agents/v3/security-architect.md +867 -0
- package/.claude/agents/v3/security-auditor.md +771 -0
- package/.claude/agents/v3/sparc-orchestrator.md +182 -0
- package/.claude/agents/v3/swarm-memory-manager.md +157 -0
- package/.claude/agents/v3/v3-integration-architect.md +205 -0
- package/.claude/commands/agents/README.md +50 -0
- package/.claude/commands/agents/agent-capabilities.md +140 -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 +216 -0
- package/.claude/commands/agents/health.md +139 -0
- package/.claude/commands/agents/list.md +100 -0
- package/.claude/commands/agents/logs.md +130 -0
- package/.claude/commands/agents/metrics.md +122 -0
- package/.claude/commands/agents/pool.md +127 -0
- package/.claude/commands/agents/spawn.md +140 -0
- package/.claude/commands/agents/status.md +115 -0
- package/.claude/commands/agents/stop.md +102 -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 +87 -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 +108 -0
- package/.claude/commands/training/neural-train.md +75 -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/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/memory.js +83 -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/post-commit +16 -0
- package/.claude/helpers/pre-commit +26 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/router.js +66 -0
- package/.claude/helpers/security-scanner.sh +127 -0
- package/.claude/helpers/session.js +127 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/helpers/standard-checkpoint-hooks.sh +189 -0
- package/.claude/helpers/statusline-hook.sh +21 -0
- package/.claude/helpers/statusline.cjs +509 -0
- package/.claude/helpers/statusline.js +316 -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/settings.json +237 -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/aidefence-scan.md +151 -0
- package/.claude/skills/aidefence.yaml +297 -0
- package/.claude/skills/browser/SKILL.md +204 -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/secure-review.md +181 -0
- package/{.claude-flow → .claude/skills/skill-builder/.claude-flow}/metrics/performance.json +3 -3
- 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/README.md +6512 -850
- package/bin/cli.js +144 -6
- package/bin/mcp-server.js +189 -0
- package/dist/src/benchmarks/pretrain/index.d.ts +58 -0
- package/dist/src/benchmarks/pretrain/index.d.ts.map +1 -0
- package/dist/src/benchmarks/pretrain/index.js +404 -0
- package/dist/src/benchmarks/pretrain/index.js.map +1 -0
- package/dist/src/commands/agent.d.ts.map +1 -1
- package/dist/src/commands/agent.js +49 -33
- package/dist/src/commands/agent.js.map +1 -1
- package/dist/src/commands/analyze.d.ts +19 -0
- package/dist/src/commands/analyze.d.ts.map +1 -0
- package/dist/src/commands/analyze.js +1823 -0
- package/dist/src/commands/analyze.js.map +1 -0
- package/dist/src/commands/benchmark.d.ts +10 -0
- package/dist/src/commands/benchmark.d.ts.map +1 -0
- package/dist/src/commands/benchmark.js +459 -0
- package/dist/src/commands/benchmark.js.map +1 -0
- package/dist/src/commands/categories.d.ts +75 -0
- package/dist/src/commands/categories.d.ts.map +1 -0
- package/dist/src/commands/categories.js +178 -0
- package/dist/src/commands/categories.js.map +1 -0
- package/dist/src/commands/claims.d.ts +10 -0
- package/dist/src/commands/claims.d.ts.map +1 -0
- package/dist/src/commands/claims.js +373 -0
- package/dist/src/commands/claims.js.map +1 -0
- package/dist/src/commands/completions.d.ts +10 -0
- package/dist/src/commands/completions.d.ts.map +1 -0
- package/dist/src/commands/completions.js +539 -0
- package/dist/src/commands/completions.js.map +1 -0
- package/dist/src/commands/config.js +1 -1
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/daemon.d.ts +8 -0
- package/dist/src/commands/daemon.d.ts.map +1 -0
- package/dist/src/commands/daemon.js +593 -0
- package/dist/src/commands/daemon.js.map +1 -0
- package/dist/src/commands/deployment.d.ts +10 -0
- package/dist/src/commands/deployment.d.ts.map +1 -0
- package/dist/src/commands/deployment.js +289 -0
- package/dist/src/commands/deployment.js.map +1 -0
- package/dist/src/commands/doctor.d.ts +10 -0
- package/dist/src/commands/doctor.d.ts.map +1 -0
- package/dist/src/commands/doctor.js +571 -0
- package/dist/src/commands/doctor.js.map +1 -0
- package/dist/src/commands/embeddings.d.ts +18 -0
- package/dist/src/commands/embeddings.d.ts.map +1 -0
- package/dist/src/commands/embeddings.js +1576 -0
- package/dist/src/commands/embeddings.js.map +1 -0
- package/dist/src/commands/guidance.d.ts +8 -0
- package/dist/src/commands/guidance.d.ts.map +1 -0
- package/dist/src/commands/guidance.js +560 -0
- package/dist/src/commands/guidance.js.map +1 -0
- package/dist/src/commands/hive-mind.d.ts +3 -0
- package/dist/src/commands/hive-mind.d.ts.map +1 -1
- package/dist/src/commands/hive-mind.js +673 -70
- package/dist/src/commands/hive-mind.js.map +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +1503 -52
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/index.d.ts +70 -13
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +287 -33
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +259 -13
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/issues.d.ts +21 -0
- package/dist/src/commands/issues.d.ts.map +1 -0
- package/dist/src/commands/issues.js +567 -0
- package/dist/src/commands/issues.js.map +1 -0
- package/dist/src/commands/mcp.d.ts.map +1 -1
- package/dist/src/commands/mcp.js +75 -37
- package/dist/src/commands/mcp.js.map +1 -1
- package/dist/src/commands/memory.d.ts.map +1 -1
- package/dist/src/commands/memory.js +355 -74
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/commands/migrate.d.ts.map +1 -1
- package/dist/src/commands/migrate.js +15 -3
- package/dist/src/commands/migrate.js.map +1 -1
- package/dist/src/commands/neural.d.ts +10 -0
- package/dist/src/commands/neural.d.ts.map +1 -0
- package/dist/src/commands/neural.js +1448 -0
- package/dist/src/commands/neural.js.map +1 -0
- package/dist/src/commands/performance.d.ts +10 -0
- package/dist/src/commands/performance.d.ts.map +1 -0
- package/dist/src/commands/performance.js +579 -0
- package/dist/src/commands/performance.js.map +1 -0
- package/dist/src/commands/plugins.d.ts +11 -0
- package/dist/src/commands/plugins.d.ts.map +1 -0
- package/dist/src/commands/plugins.js +820 -0
- package/dist/src/commands/plugins.js.map +1 -0
- package/dist/src/commands/progress.d.ts +11 -0
- package/dist/src/commands/progress.d.ts.map +1 -0
- package/dist/src/commands/progress.js +259 -0
- package/dist/src/commands/progress.js.map +1 -0
- package/dist/src/commands/providers.d.ts +10 -0
- package/dist/src/commands/providers.d.ts.map +1 -0
- package/dist/src/commands/providers.js +232 -0
- package/dist/src/commands/providers.js.map +1 -0
- package/dist/src/commands/route.d.ts +16 -0
- package/dist/src/commands/route.d.ts.map +1 -0
- package/dist/src/commands/route.js +813 -0
- package/dist/src/commands/route.js.map +1 -0
- package/dist/src/commands/ruvector/backup.d.ts +11 -0
- package/dist/src/commands/ruvector/backup.d.ts.map +1 -0
- package/dist/src/commands/ruvector/backup.js +746 -0
- package/dist/src/commands/ruvector/backup.js.map +1 -0
- package/dist/src/commands/ruvector/benchmark.d.ts +11 -0
- package/dist/src/commands/ruvector/benchmark.d.ts.map +1 -0
- package/dist/src/commands/ruvector/benchmark.js +480 -0
- package/dist/src/commands/ruvector/benchmark.js.map +1 -0
- package/dist/src/commands/ruvector/import.d.ts +18 -0
- package/dist/src/commands/ruvector/import.d.ts.map +1 -0
- package/dist/src/commands/ruvector/import.js +349 -0
- package/dist/src/commands/ruvector/import.js.map +1 -0
- package/dist/src/commands/ruvector/index.d.ts +29 -0
- package/dist/src/commands/ruvector/index.d.ts.map +1 -0
- package/dist/src/commands/ruvector/index.js +129 -0
- package/dist/src/commands/ruvector/index.js.map +1 -0
- package/dist/src/commands/ruvector/init.d.ts +11 -0
- package/dist/src/commands/ruvector/init.d.ts.map +1 -0
- package/dist/src/commands/ruvector/init.js +431 -0
- package/dist/src/commands/ruvector/init.js.map +1 -0
- package/dist/src/commands/ruvector/migrate.d.ts +11 -0
- package/dist/src/commands/ruvector/migrate.d.ts.map +1 -0
- package/dist/src/commands/ruvector/migrate.js +481 -0
- package/dist/src/commands/ruvector/migrate.js.map +1 -0
- package/dist/src/commands/ruvector/optimize.d.ts +11 -0
- package/dist/src/commands/ruvector/optimize.d.ts.map +1 -0
- package/dist/src/commands/ruvector/optimize.js +503 -0
- package/dist/src/commands/ruvector/optimize.js.map +1 -0
- package/dist/src/commands/ruvector/setup.d.ts +18 -0
- package/dist/src/commands/ruvector/setup.d.ts.map +1 -0
- package/dist/src/commands/ruvector/setup.js +765 -0
- package/dist/src/commands/ruvector/setup.js.map +1 -0
- package/dist/src/commands/ruvector/status.d.ts +11 -0
- package/dist/src/commands/ruvector/status.d.ts.map +1 -0
- package/dist/src/commands/ruvector/status.js +456 -0
- package/dist/src/commands/ruvector/status.js.map +1 -0
- package/dist/src/commands/security.d.ts +10 -0
- package/dist/src/commands/security.d.ts.map +1 -0
- package/dist/src/commands/security.js +575 -0
- package/dist/src/commands/security.js.map +1 -0
- package/dist/src/commands/session.js +9 -9
- package/dist/src/commands/start.d.ts.map +1 -1
- package/dist/src/commands/start.js +27 -7
- package/dist/src/commands/start.js.map +1 -1
- package/dist/src/commands/status.js +7 -7
- package/dist/src/commands/swarm.d.ts.map +1 -1
- package/dist/src/commands/swarm.js +214 -39
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/commands/task.js +8 -8
- package/dist/src/commands/transfer-store.d.ts +13 -0
- package/dist/src/commands/transfer-store.d.ts.map +1 -0
- package/dist/src/commands/transfer-store.js +428 -0
- package/dist/src/commands/transfer-store.js.map +1 -0
- package/dist/src/commands/update.d.ts +8 -0
- package/dist/src/commands/update.d.ts.map +1 -0
- package/dist/src/commands/update.js +276 -0
- package/dist/src/commands/update.js.map +1 -0
- package/dist/src/commands/workflow.js +5 -5
- package/dist/src/config-adapter.js +2 -1
- package/dist/src/config-adapter.js.map +1 -1
- package/dist/src/index.d.ts +22 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +153 -12
- package/dist/src/index.js.map +1 -1
- package/dist/src/init/claudemd-generator.d.ts +15 -5
- package/dist/src/init/claudemd-generator.d.ts.map +1 -1
- package/dist/src/init/claudemd-generator.js +399 -539
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/executor.d.ts +24 -0
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +874 -38
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/helpers-generator.js +1 -1
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/index.d.ts +4 -3
- package/dist/src/init/index.d.ts.map +1 -1
- package/dist/src/init/index.js +2 -2
- package/dist/src/init/index.js.map +1 -1
- package/dist/src/init/mcp-generator.d.ts +9 -0
- package/dist/src/init/mcp-generator.d.ts.map +1 -1
- package/dist/src/init/mcp-generator.js +57 -28
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +126 -89
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.d.ts +6 -0
- package/dist/src/init/statusline-generator.d.ts.map +1 -1
- package/dist/src/init/statusline-generator.js +1119 -84
- package/dist/src/init/statusline-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +37 -2
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +40 -3
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/mcp-client.d.ts +3 -3
- package/dist/src/mcp-client.d.ts.map +1 -1
- package/dist/src/mcp-client.js +46 -4
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-server.d.ts +9 -1
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +194 -46
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.d.ts +2 -1
- package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +479 -20
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
- package/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/analyze-tools.js +317 -0
- package/dist/src/mcp-tools/analyze-tools.js.map +1 -0
- package/dist/src/mcp-tools/auto-install.d.ts +83 -0
- package/dist/src/mcp-tools/auto-install.d.ts.map +1 -0
- package/dist/src/mcp-tools/auto-install.js +131 -0
- package/dist/src/mcp-tools/auto-install.js.map +1 -0
- package/dist/src/mcp-tools/browser-tools.d.ts +13 -0
- package/dist/src/mcp-tools/browser-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/browser-tools.js +550 -0
- package/dist/src/mcp-tools/browser-tools.js.map +1 -0
- package/dist/src/mcp-tools/claims-tools.d.ts +12 -0
- package/dist/src/mcp-tools/claims-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/claims-tools.js +732 -0
- package/dist/src/mcp-tools/claims-tools.js.map +1 -0
- package/dist/src/mcp-tools/config-tools.d.ts +1 -1
- package/dist/src/mcp-tools/config-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/config-tools.js +266 -19
- package/dist/src/mcp-tools/config-tools.js.map +1 -1
- package/dist/src/mcp-tools/coordination-tools.d.ts +13 -0
- package/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/coordination-tools.js +486 -0
- package/dist/src/mcp-tools/coordination-tools.js.map +1 -0
- package/dist/src/mcp-tools/daa-tools.d.ts +13 -0
- package/dist/src/mcp-tools/daa-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/daa-tools.js +426 -0
- package/dist/src/mcp-tools/daa-tools.js.map +1 -0
- package/dist/src/mcp-tools/embeddings-tools.d.ts +9 -0
- package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/embeddings-tools.js +782 -0
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -0
- package/dist/src/mcp-tools/github-tools.d.ts +13 -0
- package/dist/src/mcp-tools/github-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/github-tools.js +373 -0
- package/dist/src/mcp-tools/github-tools.js.map +1 -0
- package/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/hive-mind-tools.js +583 -0
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts +3 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +1307 -182
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/index.d.ts +9 -0
- package/dist/src/mcp-tools/index.d.ts.map +1 -1
- package/dist/src/mcp-tools/index.js +9 -0
- package/dist/src/mcp-tools/index.js.map +1 -1
- package/dist/src/mcp-tools/memory-tools.d.ts +8 -2
- package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/memory-tools.js +376 -132
- package/dist/src/mcp-tools/memory-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.d.ts +16 -0
- package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/neural-tools.js +456 -0
- package/dist/src/mcp-tools/neural-tools.js.map +1 -0
- package/dist/src/mcp-tools/performance-tools.d.ts +16 -0
- package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/performance-tools.js +534 -0
- package/dist/src/mcp-tools/performance-tools.js.map +1 -0
- package/dist/src/mcp-tools/progress-tools.d.ts +14 -0
- package/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/progress-tools.js +348 -0
- package/dist/src/mcp-tools/progress-tools.js.map +1 -0
- package/dist/src/mcp-tools/security-tools.d.ts +18 -0
- package/dist/src/mcp-tools/security-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/security-tools.js +434 -0
- package/dist/src/mcp-tools/security-tools.js.map +1 -0
- package/dist/src/mcp-tools/session-tools.d.ts +1 -1
- package/dist/src/mcp-tools/session-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/session-tools.js +241 -26
- package/dist/src/mcp-tools/session-tools.js.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.js +4 -4
- package/dist/src/mcp-tools/system-tools.d.ts +13 -0
- package/dist/src/mcp-tools/system-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/system-tools.js +314 -0
- package/dist/src/mcp-tools/system-tools.js.map +1 -0
- package/dist/src/mcp-tools/task-tools.d.ts +1 -1
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/task-tools.js +223 -21
- package/dist/src/mcp-tools/task-tools.js.map +1 -1
- package/dist/src/mcp-tools/terminal-tools.d.ts +13 -0
- package/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/terminal-tools.js +246 -0
- package/dist/src/mcp-tools/terminal-tools.js.map +1 -0
- package/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
- package/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/transfer-tools.js +396 -0
- package/dist/src/mcp-tools/transfer-tools.js.map +1 -0
- package/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/workflow-tools.js +481 -0
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -0
- package/dist/src/memory/ewc-consolidation.d.ts +271 -0
- package/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
- package/dist/src/memory/ewc-consolidation.js +542 -0
- package/dist/src/memory/ewc-consolidation.js.map +1 -0
- package/dist/src/memory/intelligence.d.ts +285 -0
- package/dist/src/memory/intelligence.d.ts.map +1 -0
- package/dist/src/memory/intelligence.js +766 -0
- package/dist/src/memory/intelligence.js.map +1 -0
- package/dist/src/memory/memory-initializer.d.ts +395 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -0
- package/dist/src/memory/memory-initializer.js +1924 -0
- package/dist/src/memory/memory-initializer.js.map +1 -0
- package/dist/src/memory/sona-optimizer.d.ts +227 -0
- package/dist/src/memory/sona-optimizer.d.ts.map +1 -0
- package/dist/src/memory/sona-optimizer.js +633 -0
- package/dist/src/memory/sona-optimizer.js.map +1 -0
- package/dist/src/output.d.ts +16 -0
- package/dist/src/output.d.ts.map +1 -1
- package/dist/src/output.js +42 -0
- package/dist/src/output.js.map +1 -1
- package/dist/src/parser.d.ts.map +1 -1
- package/dist/src/parser.js +27 -3
- package/dist/src/parser.js.map +1 -1
- package/dist/src/plugins/manager.d.ts +133 -0
- package/dist/src/plugins/manager.d.ts.map +1 -0
- package/dist/src/plugins/manager.js +383 -0
- package/dist/src/plugins/manager.js.map +1 -0
- package/dist/src/plugins/store/discovery.d.ts +88 -0
- package/dist/src/plugins/store/discovery.d.ts.map +1 -0
- package/dist/src/plugins/store/discovery.js +1147 -0
- package/dist/src/plugins/store/discovery.js.map +1 -0
- package/dist/src/plugins/store/index.d.ts +76 -0
- package/dist/src/plugins/store/index.d.ts.map +1 -0
- package/dist/src/plugins/store/index.js +141 -0
- package/dist/src/plugins/store/index.js.map +1 -0
- package/dist/src/plugins/store/search.d.ts +46 -0
- package/dist/src/plugins/store/search.d.ts.map +1 -0
- package/dist/src/plugins/store/search.js +230 -0
- package/dist/src/plugins/store/search.js.map +1 -0
- package/dist/src/plugins/store/types.d.ts +274 -0
- package/dist/src/plugins/store/types.d.ts.map +1 -0
- package/dist/src/plugins/store/types.js +7 -0
- package/dist/src/plugins/store/types.js.map +1 -0
- package/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
- package/dist/src/plugins/tests/demo-plugin-store.d.ts.map +1 -0
- package/dist/src/plugins/tests/demo-plugin-store.js +126 -0
- package/dist/src/plugins/tests/demo-plugin-store.js.map +1 -0
- package/dist/src/plugins/tests/standalone-test.d.ts +12 -0
- package/dist/src/plugins/tests/standalone-test.d.ts.map +1 -0
- package/dist/src/plugins/tests/standalone-test.js +188 -0
- package/dist/src/plugins/tests/standalone-test.js.map +1 -0
- package/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
- package/dist/src/plugins/tests/test-plugin-store.d.ts.map +1 -0
- package/dist/src/plugins/tests/test-plugin-store.js +206 -0
- package/dist/src/plugins/tests/test-plugin-store.js.map +1 -0
- package/dist/src/production/circuit-breaker.d.ts +101 -0
- package/dist/src/production/circuit-breaker.d.ts.map +1 -0
- package/dist/src/production/circuit-breaker.js +241 -0
- package/dist/src/production/circuit-breaker.js.map +1 -0
- package/dist/src/production/error-handler.d.ts +92 -0
- package/dist/src/production/error-handler.d.ts.map +1 -0
- package/dist/src/production/error-handler.js +299 -0
- package/dist/src/production/error-handler.js.map +1 -0
- package/dist/src/production/index.d.ts +23 -0
- package/dist/src/production/index.d.ts.map +1 -0
- package/dist/src/production/index.js +18 -0
- package/dist/src/production/index.js.map +1 -0
- package/dist/src/production/monitoring.d.ts +161 -0
- package/dist/src/production/monitoring.d.ts.map +1 -0
- package/dist/src/production/monitoring.js +356 -0
- package/dist/src/production/monitoring.js.map +1 -0
- package/dist/src/production/rate-limiter.d.ts +80 -0
- package/dist/src/production/rate-limiter.d.ts.map +1 -0
- package/dist/src/production/rate-limiter.js +201 -0
- package/dist/src/production/rate-limiter.js.map +1 -0
- package/dist/src/production/retry.d.ts +48 -0
- package/dist/src/production/retry.d.ts.map +1 -0
- package/dist/src/production/retry.js +179 -0
- package/dist/src/production/retry.js.map +1 -0
- package/dist/src/runtime/headless.d.ts +60 -0
- package/dist/src/runtime/headless.d.ts.map +1 -0
- package/dist/src/runtime/headless.js +284 -0
- package/dist/src/runtime/headless.js.map +1 -0
- package/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/ast-analyzer.js +277 -0
- package/dist/src/ruvector/ast-analyzer.js.map +1 -0
- package/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/dist/src/ruvector/coverage-router.d.ts.map +1 -0
- package/dist/src/ruvector/coverage-router.js +529 -0
- package/dist/src/ruvector/coverage-router.js.map +1 -0
- package/dist/src/ruvector/coverage-tools.d.ts +33 -0
- package/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
- package/dist/src/ruvector/coverage-tools.js +157 -0
- package/dist/src/ruvector/coverage-tools.js.map +1 -0
- package/dist/src/ruvector/diff-classifier.d.ts +175 -0
- package/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
- package/dist/src/ruvector/diff-classifier.js +698 -0
- package/dist/src/ruvector/diff-classifier.js.map +1 -0
- package/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
- package/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -0
- package/dist/src/ruvector/enhanced-model-router.js +519 -0
- package/dist/src/ruvector/enhanced-model-router.js.map +1 -0
- package/dist/src/ruvector/flash-attention.d.ts +195 -0
- package/dist/src/ruvector/flash-attention.d.ts.map +1 -0
- package/dist/src/ruvector/flash-attention.js +643 -0
- package/dist/src/ruvector/flash-attention.js.map +1 -0
- package/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/graph-analyzer.js +929 -0
- package/dist/src/ruvector/graph-analyzer.js.map +1 -0
- package/dist/src/ruvector/index.d.ts +34 -0
- package/dist/src/ruvector/index.d.ts.map +1 -0
- package/dist/src/ruvector/index.js +60 -0
- package/dist/src/ruvector/index.js.map +1 -0
- package/dist/src/ruvector/lora-adapter.d.ts +218 -0
- package/dist/src/ruvector/lora-adapter.d.ts.map +1 -0
- package/dist/src/ruvector/lora-adapter.js +455 -0
- package/dist/src/ruvector/lora-adapter.js.map +1 -0
- package/dist/src/ruvector/model-router.d.ts +220 -0
- package/dist/src/ruvector/model-router.d.ts.map +1 -0
- package/dist/src/ruvector/model-router.js +488 -0
- package/dist/src/ruvector/model-router.js.map +1 -0
- package/dist/src/ruvector/moe-router.d.ts +206 -0
- package/dist/src/ruvector/moe-router.d.ts.map +1 -0
- package/dist/src/ruvector/moe-router.js +626 -0
- package/dist/src/ruvector/moe-router.js.map +1 -0
- package/dist/src/ruvector/q-learning-router.d.ts +211 -0
- package/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
- package/dist/src/ruvector/q-learning-router.js +681 -0
- package/dist/src/ruvector/q-learning-router.js.map +1 -0
- package/dist/src/ruvector/semantic-router.d.ts +77 -0
- package/dist/src/ruvector/semantic-router.d.ts.map +1 -0
- package/dist/src/ruvector/semantic-router.js +178 -0
- package/dist/src/ruvector/semantic-router.js.map +1 -0
- package/dist/src/ruvector/vector-db.d.ts +69 -0
- package/dist/src/ruvector/vector-db.d.ts.map +1 -0
- package/dist/src/ruvector/vector-db.js +243 -0
- package/dist/src/ruvector/vector-db.js.map +1 -0
- package/dist/src/services/claim-service.d.ts +204 -0
- package/dist/src/services/claim-service.d.ts.map +1 -0
- package/dist/src/services/claim-service.js +818 -0
- package/dist/src/services/claim-service.js.map +1 -0
- package/dist/src/services/container-worker-pool.d.ts +197 -0
- package/dist/src/services/container-worker-pool.d.ts.map +1 -0
- package/dist/src/services/container-worker-pool.js +581 -0
- package/dist/src/services/container-worker-pool.js.map +1 -0
- package/dist/src/services/headless-worker-executor.d.ts +304 -0
- package/dist/src/services/headless-worker-executor.d.ts.map +1 -0
- package/dist/src/services/headless-worker-executor.js +999 -0
- package/dist/src/services/headless-worker-executor.js.map +1 -0
- package/dist/src/services/index.d.ts +13 -0
- package/dist/src/services/index.d.ts.map +1 -0
- package/dist/src/services/index.js +11 -0
- package/dist/src/services/index.js.map +1 -0
- package/dist/src/services/registry-api.d.ts +58 -0
- package/dist/src/services/registry-api.d.ts.map +1 -0
- package/dist/src/services/registry-api.js +146 -0
- package/dist/src/services/registry-api.js.map +1 -0
- package/dist/src/services/ruvector-training.d.ts +213 -0
- package/dist/src/services/ruvector-training.d.ts.map +1 -0
- package/dist/src/services/ruvector-training.js +498 -0
- package/dist/src/services/ruvector-training.js.map +1 -0
- package/dist/src/services/worker-daemon.d.ts +203 -0
- package/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/dist/src/services/worker-daemon.js +756 -0
- package/dist/src/services/worker-daemon.js.map +1 -0
- package/dist/src/services/worker-queue.d.ts +194 -0
- package/dist/src/services/worker-queue.d.ts.map +1 -0
- package/dist/src/services/worker-queue.js +511 -0
- package/dist/src/services/worker-queue.js.map +1 -0
- package/dist/src/suggest.d.ts +53 -0
- package/dist/src/suggest.d.ts.map +1 -0
- package/dist/src/suggest.js +200 -0
- package/dist/src/suggest.js.map +1 -0
- package/dist/src/tests/ruvector-integration-benchmark.d.ts +6 -0
- package/dist/src/tests/ruvector-integration-benchmark.d.ts.map +1 -0
- package/dist/src/tests/ruvector-integration-benchmark.js +385 -0
- package/dist/src/tests/ruvector-integration-benchmark.js.map +1 -0
- package/dist/src/transfer/anonymization/index.d.ts +25 -0
- package/dist/src/transfer/anonymization/index.d.ts.map +1 -0
- package/dist/src/transfer/anonymization/index.js +175 -0
- package/dist/src/transfer/anonymization/index.js.map +1 -0
- package/dist/src/transfer/deploy-seraphine.d.ts +13 -0
- package/dist/src/transfer/deploy-seraphine.d.ts.map +1 -0
- package/dist/src/transfer/deploy-seraphine.js +205 -0
- package/dist/src/transfer/deploy-seraphine.js.map +1 -0
- package/dist/src/transfer/export.d.ts +25 -0
- package/dist/src/transfer/export.d.ts.map +1 -0
- package/dist/src/transfer/export.js +113 -0
- package/dist/src/transfer/export.js.map +1 -0
- package/dist/src/transfer/index.d.ts +12 -0
- package/dist/src/transfer/index.d.ts.map +1 -0
- package/dist/src/transfer/index.js +31 -0
- package/dist/src/transfer/index.js.map +1 -0
- package/dist/src/transfer/ipfs/client.d.ts +109 -0
- package/dist/src/transfer/ipfs/client.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/client.js +299 -0
- package/dist/src/transfer/ipfs/client.js.map +1 -0
- package/dist/src/transfer/ipfs/upload.d.ts +95 -0
- package/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/upload.js +413 -0
- package/dist/src/transfer/ipfs/upload.js.map +1 -0
- package/dist/src/transfer/models/seraphine.d.ts +72 -0
- package/dist/src/transfer/models/seraphine.d.ts.map +1 -0
- package/dist/src/transfer/models/seraphine.js +373 -0
- package/dist/src/transfer/models/seraphine.js.map +1 -0
- package/dist/src/transfer/serialization/cfp.d.ts +49 -0
- package/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
- package/dist/src/transfer/serialization/cfp.js +180 -0
- package/dist/src/transfer/serialization/cfp.js.map +1 -0
- package/dist/src/transfer/storage/gcs.d.ts +82 -0
- package/dist/src/transfer/storage/gcs.d.ts.map +1 -0
- package/dist/src/transfer/storage/gcs.js +230 -0
- package/dist/src/transfer/storage/gcs.js.map +1 -0
- package/dist/src/transfer/storage/index.d.ts +6 -0
- package/dist/src/transfer/storage/index.d.ts.map +1 -0
- package/dist/src/transfer/storage/index.js +6 -0
- package/dist/src/transfer/storage/index.js.map +1 -0
- package/dist/src/transfer/store/discovery.d.ts +84 -0
- package/dist/src/transfer/store/discovery.d.ts.map +1 -0
- package/dist/src/transfer/store/discovery.js +382 -0
- package/dist/src/transfer/store/discovery.js.map +1 -0
- package/dist/src/transfer/store/download.d.ts +70 -0
- package/dist/src/transfer/store/download.d.ts.map +1 -0
- package/dist/src/transfer/store/download.js +334 -0
- package/dist/src/transfer/store/download.js.map +1 -0
- package/dist/src/transfer/store/index.d.ts +84 -0
- package/dist/src/transfer/store/index.d.ts.map +1 -0
- package/dist/src/transfer/store/index.js +153 -0
- package/dist/src/transfer/store/index.js.map +1 -0
- package/dist/src/transfer/store/publish.d.ts +76 -0
- package/dist/src/transfer/store/publish.d.ts.map +1 -0
- package/dist/src/transfer/store/publish.js +294 -0
- package/dist/src/transfer/store/publish.js.map +1 -0
- package/dist/src/transfer/store/registry.d.ts +58 -0
- package/dist/src/transfer/store/registry.d.ts.map +1 -0
- package/dist/src/transfer/store/registry.js +285 -0
- package/dist/src/transfer/store/registry.js.map +1 -0
- package/dist/src/transfer/store/search.d.ts +54 -0
- package/dist/src/transfer/store/search.d.ts.map +1 -0
- package/dist/src/transfer/store/search.js +232 -0
- package/dist/src/transfer/store/search.js.map +1 -0
- package/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
- package/dist/src/transfer/store/tests/standalone-test.d.ts.map +1 -0
- package/dist/src/transfer/store/tests/standalone-test.js +190 -0
- package/dist/src/transfer/store/tests/standalone-test.js.map +1 -0
- package/dist/src/transfer/store/types.d.ts +193 -0
- package/dist/src/transfer/store/types.d.ts.map +1 -0
- package/dist/src/transfer/store/types.js +6 -0
- package/dist/src/transfer/store/types.js.map +1 -0
- package/dist/src/transfer/test-seraphine.d.ts +6 -0
- package/dist/src/transfer/test-seraphine.d.ts.map +1 -0
- package/dist/src/transfer/test-seraphine.js +105 -0
- package/dist/src/transfer/test-seraphine.js.map +1 -0
- package/dist/src/transfer/tests/test-store.d.ts +7 -0
- package/dist/src/transfer/tests/test-store.d.ts.map +1 -0
- package/dist/src/transfer/tests/test-store.js +214 -0
- package/dist/src/transfer/tests/test-store.js.map +1 -0
- package/dist/src/transfer/types.d.ts +245 -0
- package/dist/src/transfer/types.d.ts.map +1 -0
- package/dist/src/transfer/types.js +6 -0
- package/dist/src/transfer/types.js.map +1 -0
- package/dist/src/types.d.ts +1 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/update/checker.d.ts +34 -0
- package/dist/src/update/checker.d.ts.map +1 -0
- package/dist/src/update/checker.js +190 -0
- package/dist/src/update/checker.js.map +1 -0
- package/dist/src/update/executor.d.ts +32 -0
- package/dist/src/update/executor.d.ts.map +1 -0
- package/dist/src/update/executor.js +181 -0
- package/dist/src/update/executor.js.map +1 -0
- package/dist/src/update/index.d.ts +33 -0
- package/dist/src/update/index.d.ts.map +1 -0
- package/dist/src/update/index.js +64 -0
- package/dist/src/update/index.js.map +1 -0
- package/dist/src/update/rate-limiter.d.ts +20 -0
- package/dist/src/update/rate-limiter.d.ts.map +1 -0
- package/dist/src/update/rate-limiter.js +96 -0
- package/dist/src/update/rate-limiter.js.map +1 -0
- package/dist/src/update/validator.d.ts +17 -0
- package/dist/src/update/validator.d.ts.map +1 -0
- package/dist/src/update/validator.js +123 -0
- package/dist/src/update/validator.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +88 -11
- package/.agentic-flow/intelligence.json +0 -17
- package/.claude-flow/metrics/task-metrics.json +0 -10
- package/__tests__/README.md +0 -140
- package/__tests__/TEST_SUMMARY.md +0 -144
- package/__tests__/cli.test.ts +0 -558
- package/__tests__/commands.test.ts +0 -726
- package/__tests__/config-adapter.test.ts +0 -362
- package/__tests__/config-loading.test.ts +0 -106
- package/__tests__/coverage/.tmp/coverage-0.json +0 -1
- package/__tests__/coverage/.tmp/coverage-1.json +0 -1
- package/__tests__/coverage/.tmp/coverage-2.json +0 -1
- package/__tests__/coverage/.tmp/coverage-3.json +0 -1
- package/__tests__/coverage/.tmp/coverage-4.json +0 -1
- package/__tests__/coverage/.tmp/coverage-5.json +0 -1
- package/__tests__/mcp-client.test.ts +0 -480
- package/__tests__/p1-commands.test.ts +0 -1064
- package/docs/CONFIG_LOADING.md +0 -236
- package/docs/IMPLEMENTATION_COMPLETE.md +0 -421
- package/docs/MCP_CLIENT_GUIDE.md +0 -620
- package/docs/REFACTORING_SUMMARY.md +0 -247
- package/src/commands/agent.ts +0 -941
- package/src/commands/config.ts +0 -452
- package/src/commands/hive-mind.ts +0 -762
- package/src/commands/hooks.ts +0 -2603
- package/src/commands/index.ts +0 -115
- package/src/commands/init.ts +0 -597
- package/src/commands/mcp.ts +0 -753
- package/src/commands/memory.ts +0 -1161
- package/src/commands/migrate.ts +0 -447
- package/src/commands/process.ts +0 -695
- package/src/commands/session.ts +0 -891
- package/src/commands/start.ts +0 -457
- package/src/commands/status.ts +0 -736
- package/src/commands/swarm.ts +0 -648
- package/src/commands/task.ts +0 -792
- package/src/commands/workflow.ts +0 -742
- package/src/config-adapter.ts +0 -210
- package/src/index.ts +0 -400
- package/src/infrastructure/in-memory-repositories.ts +0 -310
- package/src/init/claudemd-generator.ts +0 -631
- package/src/init/executor.ts +0 -762
- package/src/init/helpers-generator.ts +0 -628
- package/src/init/index.ts +0 -60
- package/src/init/mcp-generator.ts +0 -83
- package/src/init/settings-generator.ts +0 -274
- package/src/init/statusline-generator.ts +0 -211
- package/src/init/types.ts +0 -447
- package/src/mcp-client.ts +0 -229
- package/src/mcp-server.ts +0 -577
- package/src/mcp-tools/agent-tools.ts +0 -92
- package/src/mcp-tools/config-tools.ts +0 -88
- package/src/mcp-tools/hooks-tools.ts +0 -1849
- package/src/mcp-tools/index.ts +0 -14
- package/src/mcp-tools/memory-tools.ts +0 -270
- package/src/mcp-tools/session-tools.ts +0 -102
- package/src/mcp-tools/swarm-tools.ts +0 -105
- package/src/mcp-tools/task-tools.ts +0 -102
- package/src/mcp-tools/types.ts +0 -33
- package/src/output.ts +0 -593
- package/src/parser.ts +0 -417
- package/src/prompt.ts +0 -619
- package/src/types.ts +0 -287
- package/tsconfig.json +0 -16
- package/tsconfig.tsbuildinfo +0 -1
- package/vitest.config.ts +0 -13
- /package/{tmp.json → .claude/agents/tmp.json} +0 -0
- /package/{.claude-flow → .claude/skills/skill-builder/.claude-flow}/metrics/agent-metrics.json +0 -0
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 CLI Guidance Command
|
|
3
|
+
* Guidance Control Plane - compile, retrieve, enforce, optimize
|
|
4
|
+
*/
|
|
5
|
+
import { output } from '../output.js';
|
|
6
|
+
// compile subcommand
|
|
7
|
+
const compileCommand = {
|
|
8
|
+
name: 'compile',
|
|
9
|
+
description: 'Compile CLAUDE.md into a policy bundle (constitution + shards + manifest)',
|
|
10
|
+
options: [
|
|
11
|
+
{ name: 'root', short: 'r', type: 'string', description: 'Root guidance file path', default: './CLAUDE.md' },
|
|
12
|
+
{ name: 'local', short: 'l', type: 'string', description: 'Local guidance overlay file path' },
|
|
13
|
+
{ name: 'output', short: 'o', type: 'string', description: 'Output directory for compiled bundle' },
|
|
14
|
+
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
15
|
+
],
|
|
16
|
+
examples: [
|
|
17
|
+
{ command: 'claude-flow guidance compile', description: 'Compile default CLAUDE.md' },
|
|
18
|
+
{ command: 'claude-flow guidance compile -r ./CLAUDE.md -l ./CLAUDE.local.md', description: 'Compile with local overlay' },
|
|
19
|
+
{ command: 'claude-flow guidance compile --json', description: 'Output compiled bundle as JSON' },
|
|
20
|
+
],
|
|
21
|
+
action: async (ctx) => {
|
|
22
|
+
const rootPath = ctx.flags.root || './CLAUDE.md';
|
|
23
|
+
const localPath = ctx.flags.local;
|
|
24
|
+
const jsonOutput = ctx.flags.json === true;
|
|
25
|
+
output.writeln();
|
|
26
|
+
output.writeln(output.bold('Guidance Compiler'));
|
|
27
|
+
output.writeln(output.dim('─'.repeat(50)));
|
|
28
|
+
try {
|
|
29
|
+
const { readFile } = await import('node:fs/promises');
|
|
30
|
+
const { existsSync } = await import('node:fs');
|
|
31
|
+
if (!existsSync(rootPath)) {
|
|
32
|
+
output.writeln(output.error(`Root guidance file not found: ${rootPath}`));
|
|
33
|
+
return { success: false, message: `File not found: ${rootPath}` };
|
|
34
|
+
}
|
|
35
|
+
const rootContent = await readFile(rootPath, 'utf-8');
|
|
36
|
+
let localContent;
|
|
37
|
+
if (localPath && existsSync(localPath)) {
|
|
38
|
+
localContent = await readFile(localPath, 'utf-8');
|
|
39
|
+
}
|
|
40
|
+
const { GuidanceCompiler } = await import('@claude-flow/guidance/compiler');
|
|
41
|
+
const compiler = new GuidanceCompiler();
|
|
42
|
+
const bundle = compiler.compile(rootContent, localContent);
|
|
43
|
+
if (jsonOutput) {
|
|
44
|
+
output.writeln(JSON.stringify(bundle, null, 2));
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
output.writeln(output.success('Compiled successfully'));
|
|
48
|
+
output.writeln();
|
|
49
|
+
output.writeln(` Constitution rules: ${output.bold(String(bundle.constitution.rules.length))}`);
|
|
50
|
+
output.writeln(` Constitution hash: ${output.dim(bundle.constitution.hash)}`);
|
|
51
|
+
output.writeln(` Shard count: ${output.bold(String(bundle.shards.length))}`);
|
|
52
|
+
output.writeln(` Total rules: ${output.bold(String(bundle.manifest.totalRules))}`);
|
|
53
|
+
output.writeln(` Compiled at: ${output.dim(new Date(bundle.manifest.compiledAt).toISOString())}`);
|
|
54
|
+
if (localContent) {
|
|
55
|
+
output.writeln(` Local overlay: ${output.success('applied')}`);
|
|
56
|
+
}
|
|
57
|
+
output.writeln();
|
|
58
|
+
output.writeln(output.dim('Rule summary:'));
|
|
59
|
+
for (const rule of bundle.manifest.rules.slice(0, 10)) {
|
|
60
|
+
const risk = rule.riskClass === 'critical' ? output.error(rule.riskClass) :
|
|
61
|
+
rule.riskClass === 'high' ? output.warning(rule.riskClass) :
|
|
62
|
+
output.dim(rule.riskClass);
|
|
63
|
+
output.writeln(` ${output.bold(rule.id)} [${risk}] ${rule.source.slice(0, 60)}${rule.source.length > 60 ? '...' : ''}`);
|
|
64
|
+
}
|
|
65
|
+
if (bundle.manifest.rules.length > 10) {
|
|
66
|
+
output.writeln(output.dim(` ... and ${bundle.manifest.rules.length - 10} more`));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return { success: true, data: bundle };
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
73
|
+
output.writeln(output.error(`Compilation failed: ${msg}`));
|
|
74
|
+
return { success: false, message: msg };
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
// retrieve subcommand
|
|
79
|
+
const retrieveCommand = {
|
|
80
|
+
name: 'retrieve',
|
|
81
|
+
description: 'Retrieve task-relevant guidance shards for a given task description',
|
|
82
|
+
options: [
|
|
83
|
+
{ name: 'task', short: 't', type: 'string', description: 'Task description', required: true },
|
|
84
|
+
{ name: 'root', short: 'r', type: 'string', description: 'Root guidance file path', default: './CLAUDE.md' },
|
|
85
|
+
{ name: 'local', short: 'l', type: 'string', description: 'Local overlay file path' },
|
|
86
|
+
{ name: 'max-shards', short: 'n', type: 'number', description: 'Maximum number of shards to retrieve', default: '5' },
|
|
87
|
+
{ name: 'intent', short: 'i', type: 'string', description: 'Override detected intent' },
|
|
88
|
+
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
89
|
+
],
|
|
90
|
+
examples: [
|
|
91
|
+
{ command: 'claude-flow guidance retrieve -t "Fix SQL injection in user search"', description: 'Retrieve guidance for a security task' },
|
|
92
|
+
{ command: 'claude-flow guidance retrieve -t "Add unit tests" -n 3', description: 'Retrieve top 3 shards for testing' },
|
|
93
|
+
],
|
|
94
|
+
action: async (ctx) => {
|
|
95
|
+
const task = ctx.flags.task;
|
|
96
|
+
const rootPath = ctx.flags.root || './CLAUDE.md';
|
|
97
|
+
const localPath = ctx.flags.local;
|
|
98
|
+
const maxShards = parseInt(ctx.flags['max-shards'] || '5', 10);
|
|
99
|
+
const intentOverride = ctx.flags.intent;
|
|
100
|
+
const jsonOutput = ctx.flags.json === true;
|
|
101
|
+
if (!task) {
|
|
102
|
+
output.writeln(output.error('Task description is required (-t "...")'));
|
|
103
|
+
return { success: false, message: 'Missing task description' };
|
|
104
|
+
}
|
|
105
|
+
output.writeln();
|
|
106
|
+
output.writeln(output.bold('Guidance Retriever'));
|
|
107
|
+
output.writeln(output.dim('─'.repeat(50)));
|
|
108
|
+
try {
|
|
109
|
+
const { readFile } = await import('node:fs/promises');
|
|
110
|
+
const { existsSync } = await import('node:fs');
|
|
111
|
+
const { GuidanceCompiler } = await import('@claude-flow/guidance/compiler');
|
|
112
|
+
const { ShardRetriever, HashEmbeddingProvider } = await import('@claude-flow/guidance/retriever');
|
|
113
|
+
if (!existsSync(rootPath)) {
|
|
114
|
+
output.writeln(output.error(`Root guidance file not found: ${rootPath}`));
|
|
115
|
+
return { success: false, message: `File not found: ${rootPath}` };
|
|
116
|
+
}
|
|
117
|
+
const rootContent = await readFile(rootPath, 'utf-8');
|
|
118
|
+
let localContent;
|
|
119
|
+
if (localPath && existsSync(localPath)) {
|
|
120
|
+
localContent = await readFile(localPath, 'utf-8');
|
|
121
|
+
}
|
|
122
|
+
const compiler = new GuidanceCompiler();
|
|
123
|
+
const bundle = compiler.compile(rootContent, localContent);
|
|
124
|
+
const retriever = new ShardRetriever(new HashEmbeddingProvider(128));
|
|
125
|
+
await retriever.loadBundle(bundle);
|
|
126
|
+
const result = await retriever.retrieve({
|
|
127
|
+
taskDescription: task,
|
|
128
|
+
maxShards,
|
|
129
|
+
intent: intentOverride,
|
|
130
|
+
});
|
|
131
|
+
if (jsonOutput) {
|
|
132
|
+
output.writeln(JSON.stringify(result, null, 2));
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
output.writeln(` Detected intent: ${output.bold(result.detectedIntent)}`);
|
|
136
|
+
output.writeln(` Retrieval time: ${output.dim(result.latencyMs + 'ms')}`);
|
|
137
|
+
output.writeln(` Constitution: ${output.bold(String(result.constitution.rules.length))} rules`);
|
|
138
|
+
output.writeln(` Shards: ${output.bold(String(result.shards.length))} retrieved`);
|
|
139
|
+
output.writeln();
|
|
140
|
+
if (result.shards.length > 0) {
|
|
141
|
+
output.writeln(output.dim('Retrieved shards:'));
|
|
142
|
+
for (const shard of result.shards) {
|
|
143
|
+
output.writeln(` ${output.bold(shard.shard.rule.id)} [${shard.shard.rule.riskClass}] ${shard.shard.rule.text.slice(0, 60)}`);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
output.writeln();
|
|
147
|
+
output.writeln(output.dim('Policy text preview:'));
|
|
148
|
+
const lines = result.policyText.split('\n').slice(0, 15);
|
|
149
|
+
for (const line of lines) {
|
|
150
|
+
output.writeln(` ${line}`);
|
|
151
|
+
}
|
|
152
|
+
if (result.policyText.split('\n').length > 15) {
|
|
153
|
+
output.writeln(output.dim(' ...'));
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return { success: true, data: result };
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
160
|
+
output.writeln(output.error(`Retrieval failed: ${msg}`));
|
|
161
|
+
return { success: false, message: msg };
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
// gates subcommand
|
|
166
|
+
const gatesCommand = {
|
|
167
|
+
name: 'gates',
|
|
168
|
+
description: 'Evaluate enforcement gates against a command or content',
|
|
169
|
+
options: [
|
|
170
|
+
{ name: 'command', short: 'c', type: 'string', description: 'Command to evaluate' },
|
|
171
|
+
{ name: 'content', type: 'string', description: 'Content to check for secrets' },
|
|
172
|
+
{ name: 'tool', short: 't', type: 'string', description: 'Tool name to check against allowlist' },
|
|
173
|
+
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
174
|
+
],
|
|
175
|
+
examples: [
|
|
176
|
+
{ command: 'claude-flow guidance gates -c "rm -rf /tmp"', description: 'Check if a command is destructive' },
|
|
177
|
+
{ command: 'claude-flow guidance gates --content "api_key=sk-abc123..."', description: 'Check content for secrets' },
|
|
178
|
+
],
|
|
179
|
+
action: async (ctx) => {
|
|
180
|
+
const command = ctx.flags.command;
|
|
181
|
+
const content = ctx.flags.content;
|
|
182
|
+
const tool = ctx.flags.tool;
|
|
183
|
+
const jsonOutput = ctx.flags.json === true;
|
|
184
|
+
output.writeln();
|
|
185
|
+
output.writeln(output.bold('Enforcement Gates'));
|
|
186
|
+
output.writeln(output.dim('─'.repeat(50)));
|
|
187
|
+
try {
|
|
188
|
+
const { EnforcementGates } = await import('@claude-flow/guidance/gates');
|
|
189
|
+
const gates = new EnforcementGates();
|
|
190
|
+
const results = [];
|
|
191
|
+
if (command) {
|
|
192
|
+
const gateResults = gates.evaluateCommand(command);
|
|
193
|
+
results.push({ type: 'command', result: gateResults });
|
|
194
|
+
}
|
|
195
|
+
if (content) {
|
|
196
|
+
const secretResult = gates.evaluateSecrets(content);
|
|
197
|
+
results.push({ type: 'secrets', result: secretResult });
|
|
198
|
+
}
|
|
199
|
+
if (tool) {
|
|
200
|
+
const toolResult = gates.evaluateToolAllowlist(tool);
|
|
201
|
+
results.push({ type: 'tool-allowlist', result: toolResult });
|
|
202
|
+
}
|
|
203
|
+
if (results.length === 0) {
|
|
204
|
+
output.writeln(output.warning('No input provided. Use -c, --content, or -t to evaluate.'));
|
|
205
|
+
return { success: false, message: 'No input' };
|
|
206
|
+
}
|
|
207
|
+
if (jsonOutput) {
|
|
208
|
+
output.writeln(JSON.stringify(results, null, 2));
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
for (const { type, result } of results) {
|
|
212
|
+
output.writeln(` ${output.bold(type)}:`);
|
|
213
|
+
if (result === null) {
|
|
214
|
+
output.writeln(` ${output.success('ALLOW')} - No gate triggered`);
|
|
215
|
+
}
|
|
216
|
+
else if (Array.isArray(result)) {
|
|
217
|
+
if (result.length === 0) {
|
|
218
|
+
output.writeln(` ${output.success('ALLOW')} - All gates passed`);
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
for (const r of result) {
|
|
222
|
+
const color = r.decision === 'block' ? output.error.bind(output) :
|
|
223
|
+
r.decision === 'require-confirmation' ? output.warning.bind(output) :
|
|
224
|
+
output.dim.bind(output);
|
|
225
|
+
output.writeln(` ${color(r.decision.toUpperCase())} [${r.gateName}] ${r.reason}`);
|
|
226
|
+
if (r.remediation) {
|
|
227
|
+
output.writeln(` Remediation: ${output.dim(r.remediation)}`);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
const color = result.decision === 'block' ? output.error.bind(output) :
|
|
234
|
+
result.decision === 'require-confirmation' ? output.warning.bind(output) :
|
|
235
|
+
output.dim.bind(output);
|
|
236
|
+
output.writeln(` ${color(result.decision.toUpperCase())} [${result.gateName}] ${result.reason}`);
|
|
237
|
+
if (result.remediation) {
|
|
238
|
+
output.writeln(` Remediation: ${output.dim(result.remediation)}`);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return { success: true, data: results };
|
|
244
|
+
}
|
|
245
|
+
catch (error) {
|
|
246
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
247
|
+
output.writeln(output.error(`Gate evaluation failed: ${msg}`));
|
|
248
|
+
return { success: false, message: msg };
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
// status subcommand
|
|
253
|
+
const statusCommand = {
|
|
254
|
+
name: 'status',
|
|
255
|
+
description: 'Show guidance control plane status and metrics',
|
|
256
|
+
options: [
|
|
257
|
+
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
258
|
+
],
|
|
259
|
+
action: async (ctx) => {
|
|
260
|
+
const jsonOutput = ctx.flags.json === true;
|
|
261
|
+
output.writeln();
|
|
262
|
+
output.writeln(output.bold('Guidance Control Plane Status'));
|
|
263
|
+
output.writeln(output.dim('─'.repeat(50)));
|
|
264
|
+
try {
|
|
265
|
+
const { existsSync } = await import('node:fs');
|
|
266
|
+
const rootExists = existsSync('./CLAUDE.md');
|
|
267
|
+
const localExists = existsSync('./CLAUDE.local.md');
|
|
268
|
+
const statusData = {
|
|
269
|
+
rootGuidance: rootExists ? 'found' : 'not found',
|
|
270
|
+
localOverlay: localExists ? 'found' : 'not configured',
|
|
271
|
+
dataDir: existsSync('./.claude-flow/guidance') ? 'exists' : 'not created',
|
|
272
|
+
};
|
|
273
|
+
if (jsonOutput) {
|
|
274
|
+
output.writeln(JSON.stringify(statusData, null, 2));
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
output.writeln(` Root guidance: ${rootExists ? output.success('CLAUDE.md found') : output.warning('CLAUDE.md not found')}`);
|
|
278
|
+
output.writeln(` Local overlay: ${localExists ? output.success('CLAUDE.local.md found') : output.dim('not configured')}`);
|
|
279
|
+
output.writeln(` Data directory: ${statusData.dataDir === 'exists' ? output.success('exists') : output.dim('not created')}`);
|
|
280
|
+
if (rootExists) {
|
|
281
|
+
const { readFile } = await import('node:fs/promises');
|
|
282
|
+
const { GuidanceCompiler } = await import('@claude-flow/guidance/compiler');
|
|
283
|
+
const rootContent = await readFile('./CLAUDE.md', 'utf-8');
|
|
284
|
+
const compiler = new GuidanceCompiler();
|
|
285
|
+
const bundle = compiler.compile(rootContent);
|
|
286
|
+
output.writeln();
|
|
287
|
+
output.writeln(output.dim('Compiled bundle:'));
|
|
288
|
+
output.writeln(` Constitution rules: ${output.bold(String(bundle.constitution.rules.length))}`);
|
|
289
|
+
output.writeln(` Shard count: ${output.bold(String(bundle.shards.length))}`);
|
|
290
|
+
output.writeln(` Total rules: ${output.bold(String(bundle.manifest.totalRules))}`);
|
|
291
|
+
output.writeln(` Hash: ${output.dim(bundle.constitution.hash)}`);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return { success: true, data: statusData };
|
|
295
|
+
}
|
|
296
|
+
catch (error) {
|
|
297
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
298
|
+
output.writeln(output.error(`Status check failed: ${msg}`));
|
|
299
|
+
return { success: false, message: msg };
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
};
|
|
303
|
+
// optimize subcommand
|
|
304
|
+
const optimizeCommand = {
|
|
305
|
+
name: 'optimize',
|
|
306
|
+
description: 'Analyze and optimize a CLAUDE.md file for structure, coverage, and enforceability',
|
|
307
|
+
options: [
|
|
308
|
+
{ name: 'root', short: 'r', type: 'string', description: 'Root guidance file path', default: './CLAUDE.md' },
|
|
309
|
+
{ name: 'local', short: 'l', type: 'string', description: 'Local overlay file path' },
|
|
310
|
+
{ name: 'apply', short: 'a', type: 'boolean', description: 'Apply optimizations to the file', default: 'false' },
|
|
311
|
+
{ name: 'context-size', short: 's', type: 'string', description: 'Target context size: compact, standard, full', default: 'standard' },
|
|
312
|
+
{ name: 'target-score', type: 'number', description: 'Target composite score (0-100)', default: '90' },
|
|
313
|
+
{ name: 'max-iterations', type: 'number', description: 'Maximum optimization iterations', default: '5' },
|
|
314
|
+
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
315
|
+
],
|
|
316
|
+
examples: [
|
|
317
|
+
{ command: 'claude-flow guidance optimize', description: 'Analyze current CLAUDE.md and show suggestions' },
|
|
318
|
+
{ command: 'claude-flow guidance optimize --apply', description: 'Apply optimizations to CLAUDE.md' },
|
|
319
|
+
{ command: 'claude-flow guidance optimize -s compact --apply', description: 'Optimize for compact context window' },
|
|
320
|
+
{ command: 'claude-flow guidance optimize --target-score 95', description: 'Optimize until score reaches 95' },
|
|
321
|
+
],
|
|
322
|
+
action: async (ctx) => {
|
|
323
|
+
const rootPath = ctx.flags.root || './CLAUDE.md';
|
|
324
|
+
const localPath = ctx.flags.local;
|
|
325
|
+
const applyChanges = ctx.flags.apply === true;
|
|
326
|
+
const contextSize = (ctx.flags['context-size'] || 'standard');
|
|
327
|
+
const targetScore = parseInt(ctx.flags['target-score'] || '90', 10);
|
|
328
|
+
const maxIterations = parseInt(ctx.flags['max-iterations'] || '5', 10);
|
|
329
|
+
const jsonOutput = ctx.flags.json === true;
|
|
330
|
+
output.writeln();
|
|
331
|
+
output.writeln(output.bold('Guidance Optimizer'));
|
|
332
|
+
output.writeln(output.dim('─'.repeat(50)));
|
|
333
|
+
try {
|
|
334
|
+
const { readFile, writeFile } = await import('node:fs/promises');
|
|
335
|
+
const { existsSync } = await import('node:fs');
|
|
336
|
+
if (!existsSync(rootPath)) {
|
|
337
|
+
output.writeln(output.error(`Root guidance file not found: ${rootPath}`));
|
|
338
|
+
return { success: false, message: `File not found: ${rootPath}` };
|
|
339
|
+
}
|
|
340
|
+
const rootContent = await readFile(rootPath, 'utf-8');
|
|
341
|
+
let localContent;
|
|
342
|
+
if (localPath && existsSync(localPath)) {
|
|
343
|
+
localContent = await readFile(localPath, 'utf-8');
|
|
344
|
+
}
|
|
345
|
+
// Step 1: Analyze current state
|
|
346
|
+
const { analyze, formatReport, optimizeForSize, formatBenchmark } = await import('@claude-flow/guidance/analyzer');
|
|
347
|
+
const analysis = analyze(rootContent, localContent);
|
|
348
|
+
if (jsonOutput && !applyChanges) {
|
|
349
|
+
output.writeln(JSON.stringify(analysis, null, 2));
|
|
350
|
+
return { success: true, data: analysis };
|
|
351
|
+
}
|
|
352
|
+
// Show current analysis
|
|
353
|
+
output.writeln(formatReport(analysis));
|
|
354
|
+
output.writeln();
|
|
355
|
+
if (analysis.compositeScore >= targetScore) {
|
|
356
|
+
output.writeln(output.success(`Score ${analysis.compositeScore}/100 already meets target ${targetScore}. No optimization needed.`));
|
|
357
|
+
return { success: true, data: analysis };
|
|
358
|
+
}
|
|
359
|
+
// Step 2: Run optimization
|
|
360
|
+
output.writeln(output.dim(`Optimizing (target: ${targetScore}, context: ${contextSize}, max iterations: ${maxIterations})...`));
|
|
361
|
+
const result = optimizeForSize(rootContent, {
|
|
362
|
+
contextSize,
|
|
363
|
+
localContent,
|
|
364
|
+
maxIterations,
|
|
365
|
+
targetScore,
|
|
366
|
+
});
|
|
367
|
+
if (jsonOutput) {
|
|
368
|
+
output.writeln(JSON.stringify({
|
|
369
|
+
before: analysis,
|
|
370
|
+
after: result.benchmark.after,
|
|
371
|
+
delta: result.benchmark.delta,
|
|
372
|
+
steps: result.appliedSteps,
|
|
373
|
+
}, null, 2));
|
|
374
|
+
return { success: true, data: result };
|
|
375
|
+
}
|
|
376
|
+
// Show benchmark comparison
|
|
377
|
+
output.writeln();
|
|
378
|
+
output.writeln(formatBenchmark(result.benchmark));
|
|
379
|
+
output.writeln();
|
|
380
|
+
if (result.appliedSteps.length > 0) {
|
|
381
|
+
output.writeln(`Applied ${output.bold(String(result.appliedSteps.length))} optimization steps:`);
|
|
382
|
+
for (const step of result.appliedSteps) {
|
|
383
|
+
output.writeln(` ${output.success('+')} ${step}`);
|
|
384
|
+
}
|
|
385
|
+
output.writeln();
|
|
386
|
+
}
|
|
387
|
+
// Step 3: Apply if requested
|
|
388
|
+
if (applyChanges) {
|
|
389
|
+
await writeFile(rootPath, result.optimized, 'utf-8');
|
|
390
|
+
output.writeln(output.success(`Optimized CLAUDE.md written to ${rootPath}`));
|
|
391
|
+
output.writeln(` Before: ${analysis.compositeScore}/100 (${analysis.grade})`);
|
|
392
|
+
output.writeln(` After: ${result.benchmark.after.compositeScore}/100 (${result.benchmark.after.grade})`);
|
|
393
|
+
output.writeln(` Delta: ${result.benchmark.delta >= 0 ? '+' : ''}${result.benchmark.delta}`);
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
output.writeln(output.warning('Dry run - use --apply to write changes.'));
|
|
397
|
+
output.writeln(` Projected: ${analysis.compositeScore} → ${result.benchmark.after.compositeScore}/100`);
|
|
398
|
+
}
|
|
399
|
+
return { success: true, data: result };
|
|
400
|
+
}
|
|
401
|
+
catch (error) {
|
|
402
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
403
|
+
output.writeln(output.error(`Optimization failed: ${msg}`));
|
|
404
|
+
return { success: false, message: msg };
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
};
|
|
408
|
+
// ab-test subcommand
|
|
409
|
+
const abTestCommand = {
|
|
410
|
+
name: 'ab-test',
|
|
411
|
+
description: 'Run A/B behavioral comparison between two CLAUDE.md versions',
|
|
412
|
+
options: [
|
|
413
|
+
{ name: 'config-a', short: 'a', type: 'string', description: 'Path to Config A (baseline CLAUDE.md). Defaults to no guidance.' },
|
|
414
|
+
{ name: 'config-b', short: 'b', type: 'string', description: 'Path to Config B (candidate CLAUDE.md)', default: './CLAUDE.md' },
|
|
415
|
+
{ name: 'tasks', short: 't', type: 'string', description: 'Path to custom task JSON file (array of ABTask objects)' },
|
|
416
|
+
{ name: 'work-dir', short: 'w', type: 'string', description: 'Working directory for test execution' },
|
|
417
|
+
{ name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
|
|
418
|
+
],
|
|
419
|
+
examples: [
|
|
420
|
+
{ command: 'claude-flow guidance ab-test', description: 'Run default A/B test (no guidance vs ./CLAUDE.md)' },
|
|
421
|
+
{ command: 'claude-flow guidance ab-test -a old.md -b new.md', description: 'Compare two CLAUDE.md versions' },
|
|
422
|
+
{ command: 'claude-flow guidance ab-test --tasks custom-tasks.json', description: 'Run with custom test tasks' },
|
|
423
|
+
{ command: 'claude-flow guidance ab-test --json', description: 'Output full report as JSON' },
|
|
424
|
+
],
|
|
425
|
+
action: async (ctx) => {
|
|
426
|
+
const configAPath = ctx.flags['config-a'];
|
|
427
|
+
const configBPath = ctx.flags['config-b'] || './CLAUDE.md';
|
|
428
|
+
const tasksPath = ctx.flags.tasks;
|
|
429
|
+
const workDir = ctx.flags['work-dir'];
|
|
430
|
+
const jsonOutput = ctx.flags.json === true;
|
|
431
|
+
output.writeln();
|
|
432
|
+
output.writeln(output.bold('A/B Behavioral Benchmark'));
|
|
433
|
+
output.writeln(output.dim('─'.repeat(50)));
|
|
434
|
+
try {
|
|
435
|
+
const { readFile } = await import('node:fs/promises');
|
|
436
|
+
const { existsSync } = await import('node:fs');
|
|
437
|
+
const { abBenchmark, getDefaultABTasks } = await import('@claude-flow/guidance/analyzer');
|
|
438
|
+
// Load Config B (candidate) content
|
|
439
|
+
if (!existsSync(configBPath)) {
|
|
440
|
+
output.writeln(output.error(`Config B file not found: ${configBPath}`));
|
|
441
|
+
return { success: false, message: `File not found: ${configBPath}` };
|
|
442
|
+
}
|
|
443
|
+
const configBContent = await readFile(configBPath, 'utf-8');
|
|
444
|
+
// Optionally load Config A for display context
|
|
445
|
+
let configALabel = 'No control plane (baseline)';
|
|
446
|
+
if (configAPath) {
|
|
447
|
+
if (!existsSync(configAPath)) {
|
|
448
|
+
output.writeln(output.error(`Config A file not found: ${configAPath}`));
|
|
449
|
+
return { success: false, message: `File not found: ${configAPath}` };
|
|
450
|
+
}
|
|
451
|
+
configALabel = configAPath;
|
|
452
|
+
}
|
|
453
|
+
// Load custom tasks if provided
|
|
454
|
+
let customTasks;
|
|
455
|
+
if (tasksPath) {
|
|
456
|
+
if (!existsSync(tasksPath)) {
|
|
457
|
+
output.writeln(output.error(`Tasks file not found: ${tasksPath}`));
|
|
458
|
+
return { success: false, message: `File not found: ${tasksPath}` };
|
|
459
|
+
}
|
|
460
|
+
const tasksJson = await readFile(tasksPath, 'utf-8');
|
|
461
|
+
customTasks = JSON.parse(tasksJson);
|
|
462
|
+
output.writeln(` Custom tasks: ${output.bold(String(customTasks.length))} loaded from ${tasksPath}`);
|
|
463
|
+
}
|
|
464
|
+
output.writeln(` Config A: ${output.dim(configALabel)}`);
|
|
465
|
+
output.writeln(` Config B: ${output.dim(configBPath)}`);
|
|
466
|
+
output.writeln(` Tasks: ${output.dim(customTasks ? `${customTasks.length} custom` : `${getDefaultABTasks().length} default`)}`);
|
|
467
|
+
output.writeln();
|
|
468
|
+
output.writeln(output.dim('Running benchmark...'));
|
|
469
|
+
// Run the A/B benchmark
|
|
470
|
+
const report = await abBenchmark(configBContent, {
|
|
471
|
+
tasks: customTasks,
|
|
472
|
+
workDir,
|
|
473
|
+
});
|
|
474
|
+
if (jsonOutput) {
|
|
475
|
+
output.writeln(JSON.stringify({
|
|
476
|
+
configA: { label: configALabel, metrics: report.configA.metrics },
|
|
477
|
+
configB: { label: configBPath, metrics: report.configB.metrics },
|
|
478
|
+
compositeDelta: report.compositeDelta,
|
|
479
|
+
classDeltas: report.classDeltas,
|
|
480
|
+
categoryShift: report.categoryShift,
|
|
481
|
+
taskResults: {
|
|
482
|
+
configA: report.configA.taskResults.map(r => ({
|
|
483
|
+
taskId: r.taskId, taskClass: r.taskClass, passed: r.passed,
|
|
484
|
+
violations: r.violations.length, toolCalls: r.toolCalls,
|
|
485
|
+
})),
|
|
486
|
+
configB: report.configB.taskResults.map(r => ({
|
|
487
|
+
taskId: r.taskId, taskClass: r.taskClass, passed: r.passed,
|
|
488
|
+
violations: r.violations.length, toolCalls: r.toolCalls,
|
|
489
|
+
})),
|
|
490
|
+
},
|
|
491
|
+
}, null, 2));
|
|
492
|
+
return { success: true, data: report };
|
|
493
|
+
}
|
|
494
|
+
// Print formatted report
|
|
495
|
+
output.writeln(report.report);
|
|
496
|
+
output.writeln();
|
|
497
|
+
// Summary verdict
|
|
498
|
+
const delta = report.compositeDelta;
|
|
499
|
+
if (delta > 0.05) {
|
|
500
|
+
output.writeln(output.success(`Config B is better (+${delta} composite delta)`));
|
|
501
|
+
}
|
|
502
|
+
else if (delta < -0.05) {
|
|
503
|
+
output.writeln(output.error(`Config B is worse (${delta} composite delta)`));
|
|
504
|
+
}
|
|
505
|
+
else {
|
|
506
|
+
output.writeln(output.warning(`No significant difference (${delta} composite delta)`));
|
|
507
|
+
}
|
|
508
|
+
if (report.categoryShift) {
|
|
509
|
+
output.writeln(output.success('Category shift detected: 3+ task classes improved by 20%+'));
|
|
510
|
+
}
|
|
511
|
+
return { success: true, data: report };
|
|
512
|
+
}
|
|
513
|
+
catch (error) {
|
|
514
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
515
|
+
output.writeln(output.error(`A/B benchmark failed: ${msg}`));
|
|
516
|
+
return { success: false, message: msg };
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
};
|
|
520
|
+
// Main guidance command
|
|
521
|
+
export const guidanceCommand = {
|
|
522
|
+
name: 'guidance',
|
|
523
|
+
description: 'Guidance Control Plane - compile, retrieve, enforce, and optimize guidance rules',
|
|
524
|
+
aliases: ['guide', 'policy'],
|
|
525
|
+
subcommands: [
|
|
526
|
+
compileCommand,
|
|
527
|
+
retrieveCommand,
|
|
528
|
+
gatesCommand,
|
|
529
|
+
statusCommand,
|
|
530
|
+
optimizeCommand,
|
|
531
|
+
abTestCommand,
|
|
532
|
+
],
|
|
533
|
+
options: [],
|
|
534
|
+
examples: [
|
|
535
|
+
{ command: 'claude-flow guidance compile', description: 'Compile CLAUDE.md into policy bundle' },
|
|
536
|
+
{ command: 'claude-flow guidance retrieve -t "Fix auth bug"', description: 'Retrieve relevant guidance' },
|
|
537
|
+
{ command: 'claude-flow guidance gates -c "rm -rf /"', description: 'Check enforcement gates' },
|
|
538
|
+
{ command: 'claude-flow guidance status', description: 'Show control plane status' },
|
|
539
|
+
{ command: 'claude-flow guidance optimize', description: 'Analyze and optimize CLAUDE.md' },
|
|
540
|
+
{ command: 'claude-flow guidance ab-test', description: 'Run A/B behavioral comparison' },
|
|
541
|
+
],
|
|
542
|
+
action: async (ctx) => {
|
|
543
|
+
output.writeln();
|
|
544
|
+
output.writeln(output.bold('Guidance Control Plane'));
|
|
545
|
+
output.writeln(output.dim('─'.repeat(50)));
|
|
546
|
+
output.writeln();
|
|
547
|
+
output.writeln('Available subcommands:');
|
|
548
|
+
output.writeln(` ${output.bold('compile')} Compile CLAUDE.md into policy bundle`);
|
|
549
|
+
output.writeln(` ${output.bold('retrieve')} Retrieve task-relevant guidance shards`);
|
|
550
|
+
output.writeln(` ${output.bold('gates')} Evaluate enforcement gates`);
|
|
551
|
+
output.writeln(` ${output.bold('status')} Show control plane status`);
|
|
552
|
+
output.writeln(` ${output.bold('optimize')} Analyze and optimize CLAUDE.md`);
|
|
553
|
+
output.writeln(` ${output.bold('ab-test')} Run A/B behavioral comparison`);
|
|
554
|
+
output.writeln();
|
|
555
|
+
output.writeln(output.dim('Use claude-flow guidance <subcommand> --help for details'));
|
|
556
|
+
return { success: true };
|
|
557
|
+
},
|
|
558
|
+
};
|
|
559
|
+
export default guidanceCommand;
|
|
560
|
+
//# sourceMappingURL=guidance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guidance.js","sourceRoot":"","sources":["../../../src/commands/guidance.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,qBAAqB;AACrB,MAAM,cAAc,GAAY;IAC9B,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,2EAA2E;IACxF,OAAO,EAAE;QACP,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yBAAyB,EAAE,OAAO,EAAE,aAAa,EAAE;QAC5G,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kCAAkC,EAAE;QAC9F,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;QACnG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,E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EAAE,CAAC;QACjB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC;QACtD,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC3C,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,MAAM,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;QACzC,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,yCAAyC,CAAC,CAAC;QACrF,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,0CAA0C,CAAC,CAAC;QACvF,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC;QAC3E,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,+BAA+B,CAAC,CAAC;QAC1E,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,kCAAkC,CAAC,CAAC;QAC/E,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC;QAC9E,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC,CAAC;QAEvF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;CACF,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* V3 CLI Hive Mind Command
|
|
3
3
|
* Queen-led consensus-based multi-agent coordination
|
|
4
|
+
*
|
|
5
|
+
* Updated to support --claude flag for launching interactive Claude Code sessions
|
|
6
|
+
* PR: Fix #955 - Implement --claude flag for hive-mind spawn command
|
|
4
7
|
*/
|
|
5
8
|
import type { Command } from '../types.js';
|
|
6
9
|
export declare const hiveMindCommand: Command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hive-mind.d.ts","sourceRoot":"","sources":["../../../src/commands/hive-mind.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hive-mind.d.ts","sourceRoot":"","sources":["../../../src/commands/hive-mind.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AA+uC1E,eAAO,MAAM,eAAe,EAAE,OAiD7B,CAAC;AAqEF,eAAe,eAAe,CAAC"}
|