@monoes/monomindcli 1.6.0
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/academic/academic-anthropologist.md +126 -0
- package/.claude/agents/academic/academic-geographer.md +128 -0
- package/.claude/agents/academic/academic-historian.md +124 -0
- package/.claude/agents/academic/academic-narratologist.md +119 -0
- package/.claude/agents/academic/academic-psychologist.md +119 -0
- package/.claude/agents/analysis/analyze-code-quality.md +58 -0
- package/.claude/agents/analysis/code-analyzer.md +189 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +58 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +54 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +977 -0
- package/.claude/agents/consensus/performance-benchmarker.md +831 -0
- package/.claude/agents/consensus/quorum-manager.md +803 -0
- package/.claude/agents/consensus/security-manager.md +602 -0
- package/.claude/agents/core/coder.md +262 -0
- package/.claude/agents/core/planner.md +170 -0
- package/.claude/agents/core/researcher.md +192 -0
- package/.claude/agents/core/reviewer.md +327 -0
- package/.claude/agents/core/tester.md +318 -0
- package/.claude/agents/data/ml/data-ml-model.md +76 -0
- package/.claude/agents/design/design-brand-guardian.md +323 -0
- package/.claude/agents/design/design-image-prompt-engineer.md +237 -0
- package/.claude/agents/design/design-inclusive-visuals-specialist.md +72 -0
- package/.claude/agents/design/design-ui-designer.md +384 -0
- package/.claude/agents/design/design-ux-architect.md +470 -0
- package/.claude/agents/design/design-ux-researcher.md +330 -0
- package/.claude/agents/design/design-visual-storyteller.md +150 -0
- package/.claude/agents/design/design-whimsy-injector.md +439 -0
- package/.claude/agents/development/dev-backend-api.md +178 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +52 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +63 -0
- package/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +212 -0
- package/.claude/agents/engineering/engineering-ai-engineer.md +165 -0
- package/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +108 -0
- package/.claude/agents/engineering/engineering-backend-architect.md +254 -0
- package/.claude/agents/engineering/engineering-code-reviewer.md +95 -0
- package/.claude/agents/engineering/engineering-data-engineer.md +307 -0
- package/.claude/agents/engineering/engineering-database-optimizer.md +200 -0
- package/.claude/agents/engineering/engineering-devops-automator.md +430 -0
- package/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +174 -0
- package/.claude/agents/engineering/engineering-feishu-integration-developer.md +607 -0
- package/.claude/agents/engineering/engineering-frontend-developer.md +249 -0
- package/.claude/agents/engineering/engineering-git-workflow-master.md +108 -0
- package/.claude/agents/engineering/engineering-incident-response-commander.md +482 -0
- package/.claude/agents/engineering/engineering-mobile-app-builder.md +499 -0
- package/.claude/agents/engineering/engineering-rapid-prototyper.md +463 -0
- package/.claude/agents/engineering/engineering-security-engineer.md +303 -0
- package/.claude/agents/engineering/engineering-senior-developer.md +195 -0
- package/.claude/agents/engineering/engineering-software-architect.md +100 -0
- package/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +528 -0
- package/.claude/agents/engineering/engineering-sre.md +114 -0
- package/.claude/agents/engineering/engineering-technical-writer.md +412 -0
- package/.claude/agents/engineering/engineering-threat-detection-engineer.md +540 -0
- package/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +351 -0
- package/.claude/agents/game-development/blender/blender-addon-engineer.md +235 -0
- package/.claude/agents/game-development/game-audio-engineer.md +265 -0
- package/.claude/agents/game-development/game-designer.md +168 -0
- package/.claude/agents/game-development/godot/godot-gameplay-scripter.md +335 -0
- package/.claude/agents/game-development/godot/godot-multiplayer-engineer.md +298 -0
- package/.claude/agents/game-development/godot/godot-shader-developer.md +267 -0
- package/.claude/agents/game-development/level-designer.md +209 -0
- package/.claude/agents/game-development/narrative-designer.md +244 -0
- package/.claude/agents/game-development/roblox-studio/roblox-avatar-creator.md +298 -0
- package/.claude/agents/game-development/roblox-studio/roblox-experience-designer.md +306 -0
- package/.claude/agents/game-development/roblox-studio/roblox-systems-scripter.md +326 -0
- package/.claude/agents/game-development/technical-artist.md +230 -0
- package/.claude/agents/game-development/unity/unity-architect.md +272 -0
- package/.claude/agents/game-development/unity/unity-editor-tool-developer.md +311 -0
- package/.claude/agents/game-development/unity/unity-multiplayer-engineer.md +322 -0
- package/.claude/agents/game-development/unity/unity-shader-graph-artist.md +270 -0
- package/.claude/agents/game-development/unreal-engine/unreal-multiplayer-architect.md +314 -0
- package/.claude/agents/game-development/unreal-engine/unreal-systems-engineer.md +311 -0
- package/.claude/agents/game-development/unreal-engine/unreal-technical-artist.md +257 -0
- package/.claude/agents/game-development/unreal-engine/unreal-world-builder.md +274 -0
- package/.claude/agents/github/code-review-swarm.md +557 -0
- package/.claude/agents/github/github-modes.md +154 -0
- package/.claude/agents/github/issue-tracker.md +299 -0
- package/.claude/agents/github/multi-repo-swarm.md +525 -0
- package/.claude/agents/github/pr-manager.md +163 -0
- package/.claude/agents/github/project-board-sync.md +478 -0
- package/.claude/agents/github/release-manager.md +352 -0
- package/.claude/agents/github/release-swarm.md +597 -0
- package/.claude/agents/github/repo-architect.md +378 -0
- package/.claude/agents/github/swarm-issue.md +548 -0
- package/.claude/agents/github/swarm-pr.md +427 -0
- package/.claude/agents/github/sync-coordinator.md +423 -0
- package/.claude/agents/github/workflow-automation.md +640 -0
- package/.claude/agents/goal/agent.md +804 -0
- package/.claude/agents/goal/code-goal-planner.md +445 -0
- package/.claude/agents/goal/goal-planner.md +168 -0
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +129 -0
- package/.claude/agents/hive-mind/queen-coordinator.md +202 -0
- package/.claude/agents/hive-mind/scout-explorer.md +241 -0
- package/.claude/agents/hive-mind/swarm-memory-manager.md +192 -0
- package/.claude/agents/hive-mind/worker-specialist.md +216 -0
- package/.claude/agents/marketing/marketing-ai-citation-strategist.md +171 -0
- package/.claude/agents/marketing/marketing-app-store-optimizer.md +322 -0
- package/.claude/agents/marketing/marketing-baidu-seo-specialist.md +227 -0
- package/.claude/agents/marketing/marketing-bilibili-content-strategist.md +200 -0
- package/.claude/agents/marketing/marketing-book-co-author.md +111 -0
- package/.claude/agents/marketing/marketing-carousel-growth-engine.md +200 -0
- package/.claude/agents/marketing/marketing-china-ecommerce-operator.md +284 -0
- package/.claude/agents/marketing/marketing-content-creator.md +54 -0
- package/.claude/agents/marketing/marketing-cross-border-ecommerce.md +260 -0
- package/.claude/agents/marketing/marketing-douyin-strategist.md +150 -0
- package/.claude/agents/marketing/marketing-growth-hacker.md +54 -0
- package/.claude/agents/marketing/marketing-instagram-curator.md +114 -0
- package/.claude/agents/marketing/marketing-kuaishou-strategist.md +224 -0
- package/.claude/agents/marketing/marketing-linkedin-content-creator.md +215 -0
- package/.claude/agents/marketing/marketing-livestream-commerce-coach.md +306 -0
- package/.claude/agents/marketing/marketing-podcast-strategist.md +278 -0
- package/.claude/agents/marketing/marketing-private-domain-operator.md +309 -0
- package/.claude/agents/marketing/marketing-reddit-community-builder.md +124 -0
- package/.claude/agents/marketing/marketing-seo-specialist.md +279 -0
- package/.claude/agents/marketing/marketing-short-video-editing-coach.md +413 -0
- package/.claude/agents/marketing/marketing-social-media-strategist.md +125 -0
- package/.claude/agents/marketing/marketing-tiktok-strategist.md +126 -0
- package/.claude/agents/marketing/marketing-twitter-engager.md +127 -0
- package/.claude/agents/marketing/marketing-wechat-official-account.md +146 -0
- package/.claude/agents/marketing/marketing-weibo-strategist.md +241 -0
- package/.claude/agents/marketing/marketing-xiaohongshu-specialist.md +139 -0
- package/.claude/agents/marketing/marketing-zhihu-strategist.md +163 -0
- package/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude/agents/optimization/benchmark-suite.md +663 -0
- package/.claude/agents/optimization/load-balancer.md +429 -0
- package/.claude/agents/optimization/performance-monitor.md +670 -0
- package/.claude/agents/optimization/resource-allocator.md +672 -0
- package/.claude/agents/optimization/topology-optimizer.md +806 -0
- package/.claude/agents/paid-media/paid-media-auditor.md +71 -0
- package/.claude/agents/paid-media/paid-media-creative-strategist.md +71 -0
- package/.claude/agents/paid-media/paid-media-paid-social-strategist.md +71 -0
- package/.claude/agents/paid-media/paid-media-ppc-strategist.md +71 -0
- package/.claude/agents/paid-media/paid-media-programmatic-buyer.md +71 -0
- package/.claude/agents/paid-media/paid-media-search-query-analyst.md +71 -0
- package/.claude/agents/paid-media/paid-media-tracking-specialist.md +71 -0
- package/.claude/agents/payments/agentic-payments.md +126 -0
- package/.claude/agents/product/product-behavioral-nudge-engine.md +81 -0
- package/.claude/agents/product/product-feedback-synthesizer.md +119 -0
- package/.claude/agents/product/product-manager.md +469 -0
- package/.claude/agents/product/product-sprint-prioritizer.md +154 -0
- package/.claude/agents/product/product-trend-researcher.md +159 -0
- package/.claude/agents/project-management/project-management-experiment-tracker.md +199 -0
- package/.claude/agents/project-management/project-management-jira-workflow-steward.md +231 -0
- package/.claude/agents/project-management/project-management-project-shepherd.md +195 -0
- package/.claude/agents/project-management/project-management-studio-operations.md +201 -0
- package/.claude/agents/project-management/project-management-studio-producer.md +204 -0
- package/.claude/agents/project-management/project-manager-senior.md +136 -0
- package/.claude/agents/reasoning/agent.md +804 -0
- package/.claude/agents/reasoning/goal-planner.md +73 -0
- package/.claude/agents/sales/sales-account-strategist.md +228 -0
- package/.claude/agents/sales/sales-coach.md +272 -0
- package/.claude/agents/sales/sales-deal-strategist.md +181 -0
- package/.claude/agents/sales/sales-discovery-coach.md +226 -0
- package/.claude/agents/sales/sales-engineer.md +183 -0
- package/.claude/agents/sales/sales-outbound-strategist.md +202 -0
- package/.claude/agents/sales/sales-pipeline-analyst.md +268 -0
- package/.claude/agents/sales/sales-proposal-strategist.md +218 -0
- package/.claude/agents/schemas/architecture-output.json +43 -0
- package/.claude/agents/schemas/code-review-output.json +28 -0
- package/.claude/agents/schemas/generic-task-input.json +12 -0
- package/.claude/agents/schemas/implementation-output.json +18 -0
- package/.claude/agents/schemas/research-output.json +31 -0
- package/.claude/agents/schemas/security-audit-output.json +29 -0
- package/.claude/agents/schemas/test-report-output.json +29 -0
- package/.claude/agents/sona/sona-learning-optimizer.md +65 -0
- package/.claude/agents/sparc/architecture.md +453 -0
- package/.claude/agents/sparc/pseudocode.md +299 -0
- package/.claude/agents/sparc/refinement.md +504 -0
- package/.claude/agents/sparc/specification.md +258 -0
- package/.claude/agents/spatial-computing/macos-spatial-metal-engineer.md +338 -0
- package/.claude/agents/spatial-computing/terminal-integration-specialist.md +71 -0
- package/.claude/agents/spatial-computing/visionos-spatial-engineer.md +55 -0
- package/.claude/agents/specialized/accounts-payable-agent.md +186 -0
- package/.claude/agents/specialized/agentic-identity-trust.md +388 -0
- package/.claude/agents/specialized/agents-orchestrator.md +368 -0
- package/.claude/agents/specialized/automation-governance-architect.md +217 -0
- package/.claude/agents/specialized/blockchain-security-auditor.md +497 -0
- package/.claude/agents/specialized/compliance-auditor.md +159 -0
- package/.claude/agents/specialized/corporate-training-designer.md +193 -0
- package/.claude/agents/specialized/data-consolidation-agent.md +61 -0
- package/.claude/agents/specialized/government-digital-presales-consultant.md +364 -0
- package/.claude/agents/specialized/healthcare-marketing-compliance.md +396 -0
- package/.claude/agents/specialized/identity-graph-operator.md +261 -0
- package/.claude/agents/specialized/lsp-index-engineer.md +315 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +89 -0
- package/.claude/agents/specialized/recruitment-specialist.md +510 -0
- package/.claude/agents/specialized/report-distribution-agent.md +66 -0
- package/.claude/agents/specialized/sales-data-extraction-agent.md +68 -0
- package/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +89 -0
- package/.claude/agents/specialized/specialized-developer-advocate.md +318 -0
- package/.claude/agents/specialized/specialized-document-generator.md +56 -0
- package/.claude/agents/specialized/specialized-french-consulting-market.md +193 -0
- package/.claude/agents/specialized/specialized-korean-business-navigator.md +217 -0
- package/.claude/agents/specialized/specialized-mcp-builder.md +64 -0
- package/.claude/agents/specialized/specialized-model-qa.md +489 -0
- package/.claude/agents/specialized/specialized-salesforce-architect.md +181 -0
- package/.claude/agents/specialized/specialized-workflow-architect.md +598 -0
- package/.claude/agents/specialized/study-abroad-advisor.md +283 -0
- package/.claude/agents/specialized/supply-chain-strategist.md +583 -0
- package/.claude/agents/specialized/zk-steward.md +212 -0
- package/.claude/agents/sublinear/consensus-coordinator.md +333 -0
- package/.claude/agents/sublinear/matrix-optimizer.md +180 -0
- package/.claude/agents/sublinear/pagerank-analyzer.md +295 -0
- package/.claude/agents/sublinear/performance-optimizer.md +363 -0
- package/.claude/agents/sublinear/trading-predictor.md +242 -0
- package/.claude/agents/support/support-analytics-reporter.md +366 -0
- package/.claude/agents/support/support-executive-summary-generator.md +213 -0
- package/.claude/agents/support/support-finance-tracker.md +443 -0
- package/.claude/agents/support/support-infrastructure-maintainer.md +619 -0
- package/.claude/agents/support/support-legal-compliance-checker.md +589 -0
- package/.claude/agents/support/support-support-responder.md +586 -0
- package/.claude/agents/swarm/adaptive-coordinator.md +364 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +318 -0
- package/.claude/agents/swarm/mesh-coordinator.md +363 -0
- package/.claude/agents/templates/automation-smart-agent.md +185 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +83 -0
- package/.claude/agents/templates/github-pr-manager.md +155 -0
- package/.claude/agents/templates/implementer-sparc-coder.md +231 -0
- package/.claude/agents/templates/memory-coordinator.md +163 -0
- package/.claude/agents/templates/migration-plan.md +724 -0
- package/.claude/agents/templates/orchestrator-task.md +120 -0
- package/.claude/agents/templates/performance-analyzer.md +179 -0
- package/.claude/agents/templates/sparc-coordinator.md +163 -0
- package/.claude/agents/testing/production-validator.md +374 -0
- package/.claude/agents/testing/tdd-london-swarm.md +241 -0
- package/.claude/agents/testing/testing-accessibility-auditor.md +322 -0
- package/.claude/agents/testing/testing-api-tester.md +307 -0
- package/.claude/agents/testing/testing-evidence-collector.md +211 -0
- package/.claude/agents/testing/testing-performance-benchmarker.md +269 -0
- package/.claude/agents/testing/testing-reality-checker.md +237 -0
- package/.claude/agents/testing/testing-test-results-analyzer.md +306 -0
- package/.claude/agents/testing/testing-tool-evaluator.md +395 -0
- package/.claude/agents/testing/testing-workflow-optimizer.md +451 -0
- package/.claude/agents/v3/integration-architect.md +338 -0
- package/.claude/agents/v3/memory-specialist.md +298 -0
- package/.claude/agents/v3/performance-engineer.md +387 -0
- package/.claude/agents/v3/queen-coordinator.md +67 -0
- package/.claude/agents/v3/security-architect.md +154 -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/browse.md +27 -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/github/README.md +11 -0
- package/.claude/commands/github/code-review-swarm.md +550 -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 +355 -0
- package/.claude/commands/github/release-swarm.md +590 -0
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/github/repo-architect.md +381 -0
- package/.claude/commands/github/swarm-issue.md +482 -0
- package/.claude/commands/github/swarm-pr.md +310 -0
- package/.claude/commands/github/sync-coordinator.md +301 -0
- package/.claude/commands/github/workflow-automation.md +468 -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/list-agents.md +17 -0
- package/.claude/commands/mastermind.md +121 -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/metrics.md +11 -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/monobrain-help.md +103 -0
- package/.claude/commands/monobrain-memory.md +107 -0
- package/.claude/commands/monobrain-swarm.md +205 -0
- package/.claude/commands/monomind-do.md +276 -0
- package/.claude/commands/monomind-idea.md +269 -0
- package/.claude/commands/monomind-repeat.md +95 -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-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-modes.md +8 -0
- package/.claude/commands/swarm/swarm-monitor.md +8 -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/tokens.md +13 -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/ts.md +9 -0
- package/.claude/commands/use-agent.md +67 -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 +105 -0
- package/.claude/helpers/auto-memory-hook.mjs +369 -0
- package/.claude/helpers/context-persistence-hook.mjs +1988 -0
- package/.claude/helpers/extras-registry.json +3028 -0
- package/.claude/helpers/graphify-freshen.cjs +109 -0
- package/.claude/helpers/hook-handler.cjs +1446 -0
- package/.claude/helpers/intelligence.cjs +227 -0
- package/.claude/helpers/learning-service.mjs +1144 -0
- package/.claude/helpers/memory-palace.cjs +401 -0
- package/.claude/helpers/memory.cjs +84 -0
- package/.claude/helpers/metrics-db.mjs +488 -0
- package/.claude/helpers/router.cjs +306 -0
- package/.claude/helpers/session.cjs +125 -0
- package/.claude/helpers/skill-registry.json +961 -0
- package/.claude/helpers/statusline.cjs +1276 -0
- package/.claude/helpers/swarm-hooks.sh +761 -0
- package/.claude/helpers/toggle-statusline.cjs +58 -0
- package/.claude/helpers/token-tracker.cjs +934 -0
- package/.claude/skills/agent-browser-testing/SKILL.md +312 -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/github-code-review/SKILL.md +1148 -0
- package/.claude/skills/github-multi-repo/SKILL.md +916 -0
- package/.claude/skills/github-project-management/SKILL.md +1250 -0
- package/.claude/skills/github-release-management/SKILL.md +1124 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1111 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +709 -0
- package/.claude/skills/hooks-automation/SKILL.md +1200 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +560 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1106 -0
- package/.claude/skills/specialagent/SKILL.md +208 -0
- package/.claude/skills/stream-chain/SKILL.md +560 -0
- package/.claude/skills/swarm-advanced/SKILL.md +970 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/v3-cli-modernization/SKILL.md +941 -0
- package/.claude/skills/v3-core-implementation/SKILL.md +867 -0
- package/.claude/skills/v3-ddd-architecture/SKILL.md +451 -0
- package/.claude/skills/v3-integration-deep/SKILL.md +258 -0
- package/.claude/skills/v3-mcp-optimization/SKILL.md +816 -0
- package/.claude/skills/v3-memory-unification/SKILL.md +180 -0
- package/.claude/skills/v3-performance-optimization/SKILL.md +408 -0
- package/.claude/skills/v3-security-overhaul/SKILL.md +91 -0
- package/.claude/skills/v3-swarm-coordination/SKILL.md +433 -0
- package/.claude/skills/verification-quality/SKILL.md +674 -0
- package/README.md +687 -0
- package/bin/cli.js +156 -0
- package/bin/mcp-server.js +189 -0
- package/bin/preinstall.cjs +2 -0
- package/dist/src/agents/halt-signal.d.ts +25 -0
- package/dist/src/agents/halt-signal.d.ts.map +1 -0
- package/dist/src/agents/halt-signal.js +50 -0
- package/dist/src/agents/halt-signal.js.map +1 -0
- package/dist/src/agents/index.d.ts +18 -0
- package/dist/src/agents/index.d.ts.map +1 -0
- package/dist/src/agents/index.js +13 -0
- package/dist/src/agents/index.js.map +1 -0
- package/dist/src/agents/managed-agent.d.ts +41 -0
- package/dist/src/agents/managed-agent.d.ts.map +1 -0
- package/dist/src/agents/managed-agent.js +66 -0
- package/dist/src/agents/managed-agent.js.map +1 -0
- package/dist/src/agents/prompt-experiment.d.ts +22 -0
- package/dist/src/agents/prompt-experiment.d.ts.map +1 -0
- package/dist/src/agents/prompt-experiment.js +49 -0
- package/dist/src/agents/prompt-experiment.js.map +1 -0
- package/dist/src/agents/prompt-version-manager.d.ts +19 -0
- package/dist/src/agents/prompt-version-manager.d.ts.map +1 -0
- package/dist/src/agents/prompt-version-manager.js +58 -0
- package/dist/src/agents/prompt-version-manager.js.map +1 -0
- package/dist/src/agents/registry-builder.d.ts +36 -0
- package/dist/src/agents/registry-builder.d.ts.map +1 -0
- package/dist/src/agents/registry-builder.js +200 -0
- package/dist/src/agents/registry-builder.js.map +1 -0
- package/dist/src/agents/registry-query.d.ts +71 -0
- package/dist/src/agents/registry-query.d.ts.map +1 -0
- package/dist/src/agents/registry-query.js +125 -0
- package/dist/src/agents/registry-query.js.map +1 -0
- package/dist/src/agents/score-decay.d.ts +19 -0
- package/dist/src/agents/score-decay.d.ts.map +1 -0
- package/dist/src/agents/score-decay.js +22 -0
- package/dist/src/agents/score-decay.js.map +1 -0
- package/dist/src/agents/shared-instructions-loader.d.ts +13 -0
- package/dist/src/agents/shared-instructions-loader.d.ts.map +1 -0
- package/dist/src/agents/shared-instructions-loader.js +40 -0
- package/dist/src/agents/shared-instructions-loader.js.map +1 -0
- package/dist/src/agents/specialization-scorer.d.ts +54 -0
- package/dist/src/agents/specialization-scorer.d.ts.map +1 -0
- package/dist/src/agents/specialization-scorer.js +204 -0
- package/dist/src/agents/specialization-scorer.js.map +1 -0
- package/dist/src/agents/termination-watcher.d.ts +30 -0
- package/dist/src/agents/termination-watcher.d.ts.map +1 -0
- package/dist/src/agents/termination-watcher.js +84 -0
- package/dist/src/agents/termination-watcher.js.map +1 -0
- package/dist/src/agents/trigger-index.d.ts +20 -0
- package/dist/src/agents/trigger-index.d.ts.map +1 -0
- package/dist/src/agents/trigger-index.js +38 -0
- package/dist/src/agents/trigger-index.js.map +1 -0
- package/dist/src/agents/trigger-scanner.d.ts +62 -0
- package/dist/src/agents/trigger-scanner.d.ts.map +1 -0
- package/dist/src/agents/trigger-scanner.js +260 -0
- package/dist/src/agents/trigger-scanner.js.map +1 -0
- package/dist/src/agents/version-diff.d.ts +18 -0
- package/dist/src/agents/version-diff.d.ts.map +1 -0
- package/dist/src/agents/version-diff.js +64 -0
- package/dist/src/agents/version-diff.js.map +1 -0
- package/dist/src/agents/version-store.d.ts +61 -0
- package/dist/src/agents/version-store.d.ts.map +1 -0
- package/dist/src/agents/version-store.js +212 -0
- package/dist/src/agents/version-store.js.map +1 -0
- package/dist/src/autopilot-state.d.ts +77 -0
- package/dist/src/autopilot-state.d.ts.map +1 -0
- package/dist/src/autopilot-state.js +279 -0
- package/dist/src/autopilot-state.js.map +1 -0
- package/dist/src/benchmarks/benchmark-runner.d.ts +82 -0
- package/dist/src/benchmarks/benchmark-runner.d.ts.map +1 -0
- package/dist/src/benchmarks/benchmark-runner.js +261 -0
- package/dist/src/benchmarks/benchmark-runner.js.map +1 -0
- package/dist/src/benchmarks/metric-evaluators.d.ts +35 -0
- package/dist/src/benchmarks/metric-evaluators.d.ts.map +1 -0
- package/dist/src/benchmarks/metric-evaluators.js +91 -0
- package/dist/src/benchmarks/metric-evaluators.js.map +1 -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-wasm.d.ts +14 -0
- package/dist/src/commands/agent-wasm.d.ts.map +1 -0
- package/dist/src/commands/agent-wasm.js +333 -0
- package/dist/src/commands/agent-wasm.js.map +1 -0
- package/dist/src/commands/agent.d.ts +8 -0
- package/dist/src/commands/agent.d.ts.map +1 -0
- package/dist/src/commands/agent.js +941 -0
- package/dist/src/commands/agent.js.map +1 -0
- 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 +2048 -0
- package/dist/src/commands/analyze.js.map +1 -0
- package/dist/src/commands/appliance-advanced.d.ts +9 -0
- package/dist/src/commands/appliance-advanced.d.ts.map +1 -0
- package/dist/src/commands/appliance-advanced.js +215 -0
- package/dist/src/commands/appliance-advanced.js.map +1 -0
- package/dist/src/commands/appliance.d.ts +8 -0
- package/dist/src/commands/appliance.d.ts.map +1 -0
- package/dist/src/commands/appliance.js +406 -0
- package/dist/src/commands/appliance.js.map +1 -0
- package/dist/src/commands/autopilot.d.ts +15 -0
- package/dist/src/commands/autopilot.d.ts.map +1 -0
- package/dist/src/commands/autopilot.js +362 -0
- package/dist/src/commands/autopilot.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 +460 -0
- package/dist/src/commands/benchmark.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 +624 -0
- package/dist/src/commands/claims.js.map +1 -0
- package/dist/src/commands/cleanup.d.ts +13 -0
- package/dist/src/commands/cleanup.d.ts.map +1 -0
- package/dist/src/commands/cleanup.js +218 -0
- package/dist/src/commands/cleanup.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.d.ts +8 -0
- package/dist/src/commands/config.d.ts.map +1 -0
- package/dist/src/commands/config.js +428 -0
- package/dist/src/commands/config.js.map +1 -0
- 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 +669 -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 +672 -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 +619 -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 +11 -0
- package/dist/src/commands/hive-mind.d.ts.map +1 -0
- package/dist/src/commands/hive-mind.js +1237 -0
- package/dist/src/commands/hive-mind.js.map +1 -0
- package/dist/src/commands/hooks.d.ts +8 -0
- package/dist/src/commands/hooks.d.ts.map +1 -0
- package/dist/src/commands/hooks.js +4442 -0
- package/dist/src/commands/hooks.js.map +1 -0
- package/dist/src/commands/index.d.ts +117 -0
- package/dist/src/commands/index.d.ts.map +1 -0
- package/dist/src/commands/index.js +391 -0
- package/dist/src/commands/index.js.map +1 -0
- package/dist/src/commands/init.d.ts +8 -0
- package/dist/src/commands/init.d.ts.map +1 -0
- package/dist/src/commands/init.js +817 -0
- package/dist/src/commands/init.js.map +1 -0
- 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 +11 -0
- package/dist/src/commands/mcp.d.ts.map +1 -0
- package/dist/src/commands/mcp.js +718 -0
- package/dist/src/commands/mcp.js.map +1 -0
- package/dist/src/commands/memory.d.ts +8 -0
- package/dist/src/commands/memory.d.ts.map +1 -0
- package/dist/src/commands/memory.js +1565 -0
- package/dist/src/commands/memory.js.map +1 -0
- package/dist/src/commands/migrate.d.ts +8 -0
- package/dist/src/commands/migrate.d.ts.map +1 -0
- package/dist/src/commands/migrate.js +742 -0
- package/dist/src/commands/migrate.js.map +1 -0
- 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 +1454 -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/process.d.ts +10 -0
- package/dist/src/commands/process.d.ts.map +1 -0
- package/dist/src/commands/process.js +695 -0
- package/dist/src/commands/process.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 +359 -0
- package/dist/src/commands/providers.js.map +1 -0
- package/dist/src/commands/replay.d.ts +8 -0
- package/dist/src/commands/replay.d.ts.map +1 -0
- package/dist/src/commands/replay.js +60 -0
- package/dist/src/commands/replay.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 +907 -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 +489 -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 +466 -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 +497 -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 +504 -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 +478 -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 +794 -0
- package/dist/src/commands/security.js.map +1 -0
- package/dist/src/commands/session.d.ts +8 -0
- package/dist/src/commands/session.d.ts.map +1 -0
- package/dist/src/commands/session.js +750 -0
- package/dist/src/commands/session.js.map +1 -0
- package/dist/src/commands/start.d.ts +8 -0
- package/dist/src/commands/start.d.ts.map +1 -0
- package/dist/src/commands/start.js +418 -0
- package/dist/src/commands/start.js.map +1 -0
- package/dist/src/commands/status.d.ts +8 -0
- package/dist/src/commands/status.d.ts.map +1 -0
- package/dist/src/commands/status.js +591 -0
- package/dist/src/commands/status.js.map +1 -0
- package/dist/src/commands/swarm.d.ts +8 -0
- package/dist/src/commands/swarm.d.ts.map +1 -0
- package/dist/src/commands/swarm.js +801 -0
- package/dist/src/commands/swarm.js.map +1 -0
- package/dist/src/commands/task.d.ts +8 -0
- package/dist/src/commands/task.d.ts.map +1 -0
- package/dist/src/commands/task.js +671 -0
- package/dist/src/commands/task.js.map +1 -0
- package/dist/src/commands/tokens.d.ts +8 -0
- package/dist/src/commands/tokens.d.ts.map +1 -0
- package/dist/src/commands/tokens.js +107 -0
- package/dist/src/commands/tokens.js.map +1 -0
- 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/ui.js +68 -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.d.ts +8 -0
- package/dist/src/commands/workflow.d.ts.map +1 -0
- package/dist/src/commands/workflow.js +617 -0
- package/dist/src/commands/workflow.js.map +1 -0
- package/dist/src/config-adapter.d.ts +15 -0
- package/dist/src/config-adapter.d.ts.map +1 -0
- package/dist/src/config-adapter.js +186 -0
- package/dist/src/config-adapter.js.map +1 -0
- package/dist/src/consensus/audit-writer.d.ts +50 -0
- package/dist/src/consensus/audit-writer.d.ts.map +1 -0
- package/dist/src/consensus/audit-writer.js +109 -0
- package/dist/src/consensus/audit-writer.js.map +1 -0
- package/dist/src/consensus/index.d.ts +7 -0
- package/dist/src/consensus/index.d.ts.map +1 -0
- package/dist/src/consensus/index.js +6 -0
- package/dist/src/consensus/index.js.map +1 -0
- package/dist/src/consensus/vote-signer.d.ts +39 -0
- package/dist/src/consensus/vote-signer.d.ts.map +1 -0
- package/dist/src/consensus/vote-signer.js +63 -0
- package/dist/src/consensus/vote-signer.js.map +1 -0
- package/dist/src/context/context-provider.d.ts +44 -0
- package/dist/src/context/context-provider.d.ts.map +1 -0
- package/dist/src/context/context-provider.js +25 -0
- package/dist/src/context/context-provider.js.map +1 -0
- package/dist/src/context/git-state-provider.d.ts +12 -0
- package/dist/src/context/git-state-provider.d.ts.map +1 -0
- package/dist/src/context/git-state-provider.js +34 -0
- package/dist/src/context/git-state-provider.js.map +1 -0
- package/dist/src/context/index.d.ts +12 -0
- package/dist/src/context/index.d.ts.map +1 -0
- package/dist/src/context/index.js +12 -0
- package/dist/src/context/index.js.map +1 -0
- package/dist/src/context/project-conventions-provider.d.ts +15 -0
- package/dist/src/context/project-conventions-provider.d.ts.map +1 -0
- package/dist/src/context/project-conventions-provider.js +19 -0
- package/dist/src/context/project-conventions-provider.js.map +1 -0
- package/dist/src/context/prompt-assembler.d.ts +26 -0
- package/dist/src/context/prompt-assembler.d.ts.map +1 -0
- package/dist/src/context/prompt-assembler.js +93 -0
- package/dist/src/context/prompt-assembler.js.map +1 -0
- package/dist/src/context/task-history-provider.d.ts +24 -0
- package/dist/src/context/task-history-provider.d.ts.map +1 -0
- package/dist/src/context/task-history-provider.js +32 -0
- package/dist/src/context/task-history-provider.js.map +1 -0
- package/dist/src/context/user-preferences-provider.d.ts +14 -0
- package/dist/src/context/user-preferences-provider.d.ts.map +1 -0
- package/dist/src/context/user-preferences-provider.js +27 -0
- package/dist/src/context/user-preferences-provider.js.map +1 -0
- package/dist/src/dlq/dlq-reader.d.ts +29 -0
- package/dist/src/dlq/dlq-reader.d.ts.map +1 -0
- package/dist/src/dlq/dlq-reader.js +64 -0
- package/dist/src/dlq/dlq-reader.js.map +1 -0
- package/dist/src/dlq/dlq-replayer.d.ts +20 -0
- package/dist/src/dlq/dlq-replayer.d.ts.map +1 -0
- package/dist/src/dlq/dlq-replayer.js +56 -0
- package/dist/src/dlq/dlq-replayer.js.map +1 -0
- package/dist/src/dlq/dlq-writer.d.ts +24 -0
- package/dist/src/dlq/dlq-writer.d.ts.map +1 -0
- package/dist/src/dlq/dlq-writer.js +43 -0
- package/dist/src/dlq/dlq-writer.js.map +1 -0
- package/dist/src/dlq/index.d.ts +10 -0
- package/dist/src/dlq/index.d.ts.map +1 -0
- package/dist/src/dlq/index.js +7 -0
- package/dist/src/dlq/index.js.map +1 -0
- package/dist/src/eval/dataset-manager.d.ts +33 -0
- package/dist/src/eval/dataset-manager.d.ts.map +1 -0
- package/dist/src/eval/dataset-manager.js +97 -0
- package/dist/src/eval/dataset-manager.js.map +1 -0
- package/dist/src/eval/dataset-runner.d.ts +23 -0
- package/dist/src/eval/dataset-runner.d.ts.map +1 -0
- package/dist/src/eval/dataset-runner.js +59 -0
- package/dist/src/eval/dataset-runner.js.map +1 -0
- package/dist/src/eval/index.d.ts +10 -0
- package/dist/src/eval/index.d.ts.map +1 -0
- package/dist/src/eval/index.js +7 -0
- package/dist/src/eval/index.js.map +1 -0
- package/dist/src/eval/trace-collector.d.ts +40 -0
- package/dist/src/eval/trace-collector.d.ts.map +1 -0
- package/dist/src/eval/trace-collector.js +82 -0
- package/dist/src/eval/trace-collector.js.map +1 -0
- package/dist/src/graph/enrich.mjs +362 -0
- package/dist/src/index.d.ts +82 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +578 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
- package/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
- package/dist/src/infrastructure/in-memory-repositories.js +264 -0
- package/dist/src/infrastructure/in-memory-repositories.js.map +1 -0
- package/dist/src/init/claudemd-generator.d.ts +25 -0
- package/dist/src/init/claudemd-generator.d.ts.map +1 -0
- package/dist/src/init/claudemd-generator.js +522 -0
- package/dist/src/init/claudemd-generator.js.map +1 -0
- package/dist/src/init/executor.d.ts +38 -0
- package/dist/src/init/executor.d.ts.map +1 -0
- package/dist/src/init/executor.js +1919 -0
- package/dist/src/init/executor.js.map +1 -0
- package/dist/src/init/helpers-generator.d.ts +60 -0
- package/dist/src/init/helpers-generator.d.ts.map +1 -0
- package/dist/src/init/helpers-generator.js +1222 -0
- package/dist/src/init/helpers-generator.js.map +1 -0
- package/dist/src/init/index.d.ts +13 -0
- package/dist/src/init/index.d.ts.map +1 -0
- package/dist/src/init/index.js +15 -0
- package/dist/src/init/index.js.map +1 -0
- package/dist/src/init/mcp-generator.d.ts +26 -0
- package/dist/src/init/mcp-generator.d.ts.map +1 -0
- package/dist/src/init/mcp-generator.js +99 -0
- package/dist/src/init/mcp-generator.js.map +1 -0
- package/dist/src/init/settings-generator.d.ts +14 -0
- package/dist/src/init/settings-generator.d.ts.map +1 -0
- package/dist/src/init/settings-generator.js +392 -0
- package/dist/src/init/settings-generator.js.map +1 -0
- package/dist/src/init/statusline-generator.d.ts +25 -0
- package/dist/src/init/statusline-generator.d.ts.map +1 -0
- package/dist/src/init/statusline-generator.js +1157 -0
- package/dist/src/init/statusline-generator.js.map +1 -0
- package/dist/src/init/types.d.ts +291 -0
- package/dist/src/init/types.d.ts.map +1 -0
- package/dist/src/init/types.js +258 -0
- package/dist/src/init/types.js.map +1 -0
- package/dist/src/interactive/interrupt.d.ts +22 -0
- package/dist/src/interactive/interrupt.d.ts.map +1 -0
- package/dist/src/interactive/interrupt.js +66 -0
- package/dist/src/interactive/interrupt.js.map +1 -0
- package/dist/src/mcp/deprecation-injector.d.ts +25 -0
- package/dist/src/mcp/deprecation-injector.d.ts.map +1 -0
- package/dist/src/mcp/deprecation-injector.js +48 -0
- package/dist/src/mcp/deprecation-injector.js.map +1 -0
- package/dist/src/mcp/tool-registry.d.ts +61 -0
- package/dist/src/mcp/tool-registry.d.ts.map +1 -0
- package/dist/src/mcp/tool-registry.js +212 -0
- package/dist/src/mcp/tool-registry.js.map +1 -0
- package/dist/src/mcp-client.d.ts +92 -0
- package/dist/src/mcp-client.d.ts.map +1 -0
- package/dist/src/mcp-client.js +261 -0
- package/dist/src/mcp-client.js.map +1 -0
- package/dist/src/mcp-server.d.ts +163 -0
- package/dist/src/mcp-server.d.ts.map +1 -0
- package/dist/src/mcp-server.js +682 -0
- package/dist/src/mcp-server.js.map +1 -0
- package/dist/src/mcp-tools/a2a-tools.d.ts +14 -0
- package/dist/src/mcp-tools/a2a-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/a2a-tools.js +244 -0
- package/dist/src/mcp-tools/a2a-tools.js.map +1 -0
- package/dist/src/mcp-tools/agent-tools.d.ts +9 -0
- package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/agent-tools.js +564 -0
- package/dist/src/mcp-tools/agent-tools.js.map +1 -0
- package/dist/src/mcp-tools/agentdb-tools.d.ts +30 -0
- package/dist/src/mcp-tools/agentdb-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/agentdb-tools.js +569 -0
- package/dist/src/mcp-tools/agentdb-tools.js.map +1 -0
- 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/autopilot-tools.d.ts +12 -0
- package/dist/src/mcp-tools/autopilot-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/autopilot-tools.js +227 -0
- package/dist/src/mcp-tools/autopilot-tools.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 +747 -0
- package/dist/src/mcp-tools/claims-tools.js.map +1 -0
- package/dist/src/mcp-tools/config-tools.d.ts +8 -0
- package/dist/src/mcp-tools/config-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/config-tools.js +353 -0
- package/dist/src/mcp-tools/config-tools.js.map +1 -0
- 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 +673 -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 +473 -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 +9 -0
- package/dist/src/mcp-tools/github-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/github-tools.js +472 -0
- package/dist/src/mcp-tools/github-tools.js.map +1 -0
- package/dist/src/mcp-tools/graphify-tools.d.ts +73 -0
- package/dist/src/mcp-tools/graphify-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/graphify-tools.js +1235 -0
- package/dist/src/mcp-tools/graphify-tools.js.map +1 -0
- package/dist/src/mcp-tools/guidance-tools.d.ts +15 -0
- package/dist/src/mcp-tools/guidance-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/guidance-tools.js +618 -0
- package/dist/src/mcp-tools/guidance-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 +877 -0
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts +44 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/hooks-tools.js +3397 -0
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -0
- package/dist/src/mcp-tools/index.d.ts +38 -0
- package/dist/src/mcp-tools/index.d.ts.map +1 -0
- package/dist/src/mcp-tools/index.js +40 -0
- package/dist/src/mcp-tools/index.js.map +1 -0
- package/dist/src/mcp-tools/memory-tools.d.ts +14 -0
- package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/memory-tools.js +514 -0
- package/dist/src/mcp-tools/memory-tools.js.map +1 -0
- 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 +634 -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 +643 -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/request-tracker.d.ts +17 -0
- package/dist/src/mcp-tools/request-tracker.d.ts.map +1 -0
- package/dist/src/mcp-tools/request-tracker.js +27 -0
- package/dist/src/mcp-tools/request-tracker.js.map +1 -0
- package/dist/src/mcp-tools/ruvllm-tools.d.ts +9 -0
- package/dist/src/mcp-tools/ruvllm-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/ruvllm-tools.js +284 -0
- package/dist/src/mcp-tools/ruvllm-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 +8 -0
- package/dist/src/mcp-tools/session-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/session-tools.js +338 -0
- package/dist/src/mcp-tools/session-tools.js.map +1 -0
- package/dist/src/mcp-tools/swarm-tools.d.ts +9 -0
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/swarm-tools.js +289 -0
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -0
- 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 +551 -0
- package/dist/src/mcp-tools/system-tools.js.map +1 -0
- package/dist/src/mcp-tools/task-tools.d.ts +8 -0
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/task-tools.js +406 -0
- package/dist/src/mcp-tools/task-tools.js.map +1 -0
- package/dist/src/mcp-tools/terminal-tools.d.ts +8 -0
- package/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/terminal-tools.js +260 -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/types.d.ts +37 -0
- package/dist/src/mcp-tools/types.d.ts.map +1 -0
- package/dist/src/mcp-tools/types.js +14 -0
- package/dist/src/mcp-tools/types.js.map +1 -0
- package/dist/src/mcp-tools/wasm-agent-tools.d.ts +9 -0
- package/dist/src/mcp-tools/wasm-agent-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/wasm-agent-tools.js +230 -0
- package/dist/src/mcp-tools/wasm-agent-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 +562 -0
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -0
- package/dist/src/memory/ewc-consolidation.d.ts +295 -0
- package/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
- package/dist/src/memory/ewc-consolidation.js +601 -0
- package/dist/src/memory/ewc-consolidation.js.map +1 -0
- package/dist/src/memory/intelligence.d.ts +338 -0
- package/dist/src/memory/intelligence.d.ts.map +1 -0
- package/dist/src/memory/intelligence.js +1023 -0
- package/dist/src/memory/intelligence.js.map +1 -0
- package/dist/src/memory/memory-bridge.d.ts +409 -0
- package/dist/src/memory/memory-bridge.d.ts.map +1 -0
- package/dist/src/memory/memory-bridge.js +1561 -0
- package/dist/src/memory/memory-bridge.js.map +1 -0
- package/dist/src/memory/memory-initializer.d.ts +414 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -0
- package/dist/src/memory/memory-initializer.js +2222 -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/model/complexity-scorer.d.ts +21 -0
- package/dist/src/model/complexity-scorer.d.ts.map +1 -0
- package/dist/src/model/complexity-scorer.js +106 -0
- package/dist/src/model/complexity-scorer.js.map +1 -0
- package/dist/src/model/index.d.ts +4 -0
- package/dist/src/model/index.d.ts.map +1 -0
- package/dist/src/model/index.js +4 -0
- package/dist/src/model/index.js.map +1 -0
- package/dist/src/model/model-settings.d.ts +22 -0
- package/dist/src/model/model-settings.d.ts.map +1 -0
- package/dist/src/model/model-settings.js +33 -0
- package/dist/src/model/model-settings.js.map +1 -0
- package/dist/src/model/model-tier-resolver.d.ts +24 -0
- package/dist/src/model/model-tier-resolver.d.ts.map +1 -0
- package/dist/src/model/model-tier-resolver.js +65 -0
- package/dist/src/model/model-tier-resolver.js.map +1 -0
- package/dist/src/orchestration/index.d.ts +7 -0
- package/dist/src/orchestration/index.d.ts.map +1 -0
- package/dist/src/orchestration/index.js +6 -0
- package/dist/src/orchestration/index.js.map +1 -0
- package/dist/src/orchestration/mode-dispatcher.d.ts +11 -0
- package/dist/src/orchestration/mode-dispatcher.d.ts.map +1 -0
- package/dist/src/orchestration/mode-dispatcher.js +31 -0
- package/dist/src/orchestration/mode-dispatcher.js.map +1 -0
- package/dist/src/orchestration/routing-modes.d.ts +68 -0
- package/dist/src/orchestration/routing-modes.d.ts.map +1 -0
- package/dist/src/orchestration/routing-modes.js +150 -0
- package/dist/src/orchestration/routing-modes.js.map +1 -0
- package/dist/src/output.d.ts +133 -0
- package/dist/src/output.d.ts.map +1 -0
- package/dist/src/output.js +514 -0
- package/dist/src/output.js.map +1 -0
- package/dist/src/parser.d.ts +51 -0
- package/dist/src/parser.d.ts.map +1 -0
- package/dist/src/parser.js +425 -0
- package/dist/src/parser.js.map +1 -0
- 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 +400 -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 +841 -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/prompt.d.ts +44 -0
- package/dist/src/prompt.d.ts.map +1 -0
- package/dist/src/prompt.js +501 -0
- package/dist/src/prompt.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/agent-wasm.d.ts +182 -0
- package/dist/src/ruvector/agent-wasm.d.ts.map +1 -0
- package/dist/src/ruvector/agent-wasm.js +316 -0
- package/dist/src/ruvector/agent-wasm.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 +529 -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 +40 -0
- package/dist/src/ruvector/index.d.ts.map +1 -0
- package/dist/src/ruvector/index.js +76 -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/ruvllm-wasm.d.ts +179 -0
- package/dist/src/ruvector/ruvllm-wasm.d.ts.map +1 -0
- package/dist/src/ruvector/ruvllm-wasm.js +363 -0
- package/dist/src/ruvector/ruvllm-wasm.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/agentic-flow-bridge.d.ts +50 -0
- package/dist/src/services/agentic-flow-bridge.d.ts.map +1 -0
- package/dist/src/services/agentic-flow-bridge.js +95 -0
- package/dist/src/services/agentic-flow-bridge.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/config-file-manager.d.ts +37 -0
- package/dist/src/services/config-file-manager.d.ts.map +1 -0
- package/dist/src/services/config-file-manager.js +224 -0
- package/dist/src/services/config-file-manager.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 +583 -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 +1024 -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 +222 -0
- package/dist/src/services/ruvector-training.d.ts.map +1 -0
- package/dist/src/services/ruvector-training.js +688 -0
- package/dist/src/services/ruvector-training.js.map +1 -0
- package/dist/src/services/worker-daemon.d.ts +245 -0
- package/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/dist/src/services/worker-daemon.js +999 -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 +513 -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/swarm/communication-graph.d.ts +25 -0
- package/dist/src/swarm/communication-graph.d.ts.map +1 -0
- package/dist/src/swarm/communication-graph.js +77 -0
- package/dist/src/swarm/communication-graph.js.map +1 -0
- package/dist/src/swarm/flow-enforcer.d.ts +29 -0
- package/dist/src/swarm/flow-enforcer.d.ts.map +1 -0
- package/dist/src/swarm/flow-enforcer.js +49 -0
- package/dist/src/swarm/flow-enforcer.js.map +1 -0
- package/dist/src/swarm/flow-visualizer.d.ts +16 -0
- package/dist/src/swarm/flow-visualizer.d.ts.map +1 -0
- package/dist/src/swarm/flow-visualizer.js +44 -0
- package/dist/src/swarm/flow-visualizer.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 +307 -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 +411 -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 +183 -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 +272 -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 +198 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +38 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/ui/.monomind/data/pending-insights.jsonl +0 -0
- package/dist/src/ui/.monomind/data/ranked-context.json +5 -0
- package/dist/src/ui/.monomind/sessions/current.json +13 -0
- package/dist/src/ui/collector.mjs +517 -0
- package/dist/src/ui/dashboard.html +4409 -0
- package/dist/src/ui/server.mjs +909 -0
- 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 +185 -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 +118 -0
- package/dist/src/update/validator.js.map +1 -0
- package/dist/src/workflow/condition-evaluator.d.ts +10 -0
- package/dist/src/workflow/condition-evaluator.d.ts.map +1 -0
- package/dist/src/workflow/condition-evaluator.js +48 -0
- package/dist/src/workflow/condition-evaluator.js.map +1 -0
- package/dist/src/workflow/context-resolver.d.ts +12 -0
- package/dist/src/workflow/context-resolver.d.ts.map +1 -0
- package/dist/src/workflow/context-resolver.js +23 -0
- package/dist/src/workflow/context-resolver.js.map +1 -0
- package/dist/src/workflow/dag-builder.d.ts +17 -0
- package/dist/src/workflow/dag-builder.d.ts.map +1 -0
- package/dist/src/workflow/dag-builder.js +113 -0
- package/dist/src/workflow/dag-builder.js.map +1 -0
- package/dist/src/workflow/dag-executor.d.ts +9 -0
- package/dist/src/workflow/dag-executor.d.ts.map +1 -0
- package/dist/src/workflow/dag-executor.js +78 -0
- package/dist/src/workflow/dag-executor.js.map +1 -0
- package/dist/src/workflow/dag-types.d.ts +41 -0
- package/dist/src/workflow/dag-types.d.ts.map +1 -0
- package/dist/src/workflow/dag-types.js +8 -0
- package/dist/src/workflow/dag-types.js.map +1 -0
- package/dist/src/workflow/dsl-parser.d.ts +12 -0
- package/dist/src/workflow/dsl-parser.d.ts.map +1 -0
- package/dist/src/workflow/dsl-parser.js +20 -0
- package/dist/src/workflow/dsl-parser.js.map +1 -0
- package/dist/src/workflow/dsl-schema.d.ts +162 -0
- package/dist/src/workflow/dsl-schema.d.ts.map +1 -0
- package/dist/src/workflow/dsl-schema.js +78 -0
- package/dist/src/workflow/dsl-schema.js.map +1 -0
- package/dist/src/workflow/index.d.ts +13 -0
- package/dist/src/workflow/index.d.ts.map +1 -0
- package/dist/src/workflow/index.js +11 -0
- package/dist/src/workflow/index.js.map +1 -0
- package/dist/src/workflow/template-engine.d.ts +11 -0
- package/dist/src/workflow/template-engine.d.ts.map +1 -0
- package/dist/src/workflow/template-engine.js +33 -0
- package/dist/src/workflow/template-engine.js.map +1 -0
- package/dist/src/workflow/workflow-executor.d.ts +29 -0
- package/dist/src/workflow/workflow-executor.d.ts.map +1 -0
- package/dist/src/workflow/workflow-executor.js +146 -0
- package/dist/src/workflow/workflow-executor.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +105 -0
|
@@ -0,0 +1,1157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Statusline Configuration Generator (Optimized)
|
|
3
|
+
* Creates fast, reliable statusline for V1 progress display
|
|
4
|
+
*
|
|
5
|
+
* Performance:
|
|
6
|
+
* - Single combined git execSync call (not 8+ separate ones)
|
|
7
|
+
* - process.memoryUsage() instead of ps aux
|
|
8
|
+
* - No recursive test file content reading
|
|
9
|
+
* - Shared settings cache
|
|
10
|
+
* - Strict 2s timeouts on all shell calls
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Generate optimized statusline script
|
|
14
|
+
* Output format:
|
|
15
|
+
* ▊ Monomind ● user │ ⎇ branch │ Opus 4.6 (1M context)
|
|
16
|
+
* ─────────────────────────────────────────────────────
|
|
17
|
+
* 🏗️ DDD Domains [●●○○○] 2/5 ⚡ HNSW 150x
|
|
18
|
+
* 🤖 Swarm ◉ [ 5/15] 👥 2 🪝 10/17 🟢 CVE 3/3 💾 4MB 🧠 63%
|
|
19
|
+
* 🔧 Architecture ADRs ●71% │ DDD ● 13% │ Security ●CLEAN
|
|
20
|
+
* 📊 AgentDB Vectors ●3104⚡ │ Size 216KB │ Tests ●6 (~24 cases) │ MCP ●1/1
|
|
21
|
+
*/
|
|
22
|
+
export function generateStatuslineScript(options) {
|
|
23
|
+
const maxAgents = options.runtime.maxAgents;
|
|
24
|
+
return `#!/usr/bin/env node
|
|
25
|
+
/**
|
|
26
|
+
* Monomind V1 Statusline Generator (Optimized)
|
|
27
|
+
* Displays real-time v1 implementation progress and system status
|
|
28
|
+
*
|
|
29
|
+
* Usage: node statusline.cjs [--json] [--compact]
|
|
30
|
+
*
|
|
31
|
+
* Performance notes:
|
|
32
|
+
* - Single git execSync call (combines branch + status + upstream)
|
|
33
|
+
* - No recursive file reading (only stat/readdir, never read test contents)
|
|
34
|
+
* - No ps aux calls (uses process.memoryUsage() + file-based metrics)
|
|
35
|
+
* - Strict 2s timeout on all execSync calls
|
|
36
|
+
* - Shared settings cache across functions
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
40
|
+
const fs = require('fs');
|
|
41
|
+
const path = require('path');
|
|
42
|
+
const { execSync } = require('child_process');
|
|
43
|
+
const os = require('os');
|
|
44
|
+
|
|
45
|
+
// Configuration
|
|
46
|
+
const CONFIG = {
|
|
47
|
+
maxAgents: ${maxAgents},
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const CWD = process.env.CLAUDE_PROJECT_DIR || process.cwd();
|
|
51
|
+
|
|
52
|
+
// Read monomind version — check global install first, then CWD package.json
|
|
53
|
+
function getVersion() {
|
|
54
|
+
// 1. Monomind global install: script lives at <install>/packages/@monomind/cli/dist/src/init/
|
|
55
|
+
// or user project: .claude/helpers/statusline.cjs
|
|
56
|
+
// Walk up to find a monomind package.json (has "name":"monomind" or "@monomind/cli")
|
|
57
|
+
const scriptDir = path.dirname(__filename);
|
|
58
|
+
const walkCandidates = [
|
|
59
|
+
path.join(scriptDir, '..', '..', 'package.json'), // dist/src -> @monomind/cli
|
|
60
|
+
path.join(scriptDir, '..', '..', '..', 'package.json'), // -> monomind umbrella
|
|
61
|
+
path.join(scriptDir, '..', '..', '..', '..', 'package.json'),
|
|
62
|
+
];
|
|
63
|
+
for (const p of walkCandidates) {
|
|
64
|
+
try {
|
|
65
|
+
const pkg = JSON.parse(fs.readFileSync(p, 'utf-8'));
|
|
66
|
+
if (pkg.version && (pkg.name === 'monomind' || pkg.name === '@monomind/cli' || (pkg.name || '').startsWith('@monomind'))) {
|
|
67
|
+
return \`v\${pkg.version}\`;
|
|
68
|
+
}
|
|
69
|
+
} catch { /* ignore */ }
|
|
70
|
+
}
|
|
71
|
+
// 2. Fallback: npm global prefix
|
|
72
|
+
try {
|
|
73
|
+
const { execSync } = require('child_process');
|
|
74
|
+
const prefix = execSync('npm config get prefix', { encoding: 'utf-8', timeout: 2000 }).trim();
|
|
75
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(prefix, 'lib', 'node_modules', 'monomind', 'package.json'), 'utf-8'));
|
|
76
|
+
if (pkg.version) return \`v\${pkg.version}\`;
|
|
77
|
+
} catch { /* ignore */ }
|
|
78
|
+
return 'v1.0.6';
|
|
79
|
+
}
|
|
80
|
+
const VERSION = getVersion();
|
|
81
|
+
|
|
82
|
+
// ANSI colors
|
|
83
|
+
const c = {
|
|
84
|
+
reset: '\\x1b[0m',
|
|
85
|
+
bold: '\\x1b[1m',
|
|
86
|
+
dim: '\\x1b[2m',
|
|
87
|
+
red: '\\x1b[0;31m',
|
|
88
|
+
green: '\\x1b[0;32m',
|
|
89
|
+
yellow: '\\x1b[0;33m',
|
|
90
|
+
blue: '\\x1b[0;34m',
|
|
91
|
+
purple: '\\x1b[0;35m',
|
|
92
|
+
cyan: '\\x1b[0;36m',
|
|
93
|
+
brightRed: '\\x1b[1;31m',
|
|
94
|
+
brightGreen: '\\x1b[1;32m',
|
|
95
|
+
brightYellow: '\\x1b[1;33m',
|
|
96
|
+
brightBlue: '\\x1b[1;34m',
|
|
97
|
+
brightPurple: '\\x1b[1;35m',
|
|
98
|
+
brightCyan: '\\x1b[1;36m',
|
|
99
|
+
brightWhite: '\\x1b[1;37m',
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// Safe execSync with strict timeout (returns empty string on failure)
|
|
103
|
+
function safeExec(cmd, timeoutMs = 2000) {
|
|
104
|
+
try {
|
|
105
|
+
return execSync(cmd, {
|
|
106
|
+
encoding: 'utf-8',
|
|
107
|
+
timeout: timeoutMs,
|
|
108
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
109
|
+
}).trim();
|
|
110
|
+
} catch {
|
|
111
|
+
return '';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Safe JSON file reader (returns null on failure)
|
|
116
|
+
function readJSON(filePath) {
|
|
117
|
+
try {
|
|
118
|
+
if (fs.existsSync(filePath)) {
|
|
119
|
+
return JSON.parse(fs.readFileSync(filePath, 'utf-8'));
|
|
120
|
+
}
|
|
121
|
+
} catch { /* ignore */ }
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Safe file stat (returns null on failure)
|
|
126
|
+
function safeStat(filePath) {
|
|
127
|
+
try {
|
|
128
|
+
return fs.statSync(filePath);
|
|
129
|
+
} catch { /* ignore */ }
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Shared settings cache — read once, used by multiple functions
|
|
134
|
+
let _settingsCache = undefined;
|
|
135
|
+
function getSettings() {
|
|
136
|
+
if (_settingsCache !== undefined) return _settingsCache;
|
|
137
|
+
_settingsCache = readJSON(path.join(CWD, '.claude', 'settings.json'))
|
|
138
|
+
|| readJSON(path.join(CWD, '.claude', 'settings.local.json'))
|
|
139
|
+
|| null;
|
|
140
|
+
return _settingsCache;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// ─── Data Collection (all pure-Node.js or single-exec) ──────────
|
|
144
|
+
|
|
145
|
+
// Get all git info in ONE shell call
|
|
146
|
+
function getGitInfo() {
|
|
147
|
+
const result = {
|
|
148
|
+
name: 'user', gitBranch: '', modified: 0, untracked: 0,
|
|
149
|
+
staged: 0, ahead: 0, behind: 0,
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// Single shell: get user.name, branch, porcelain status, and upstream diff
|
|
153
|
+
const script = [
|
|
154
|
+
'git config user.name 2>/dev/null || echo user',
|
|
155
|
+
'echo "---SEP---"',
|
|
156
|
+
'git branch --show-current 2>/dev/null',
|
|
157
|
+
'echo "---SEP---"',
|
|
158
|
+
'git status --porcelain 2>/dev/null',
|
|
159
|
+
'echo "---SEP---"',
|
|
160
|
+
'git rev-list --left-right --count HEAD...@{upstream} 2>/dev/null || echo "0 0"',
|
|
161
|
+
].join('; ');
|
|
162
|
+
|
|
163
|
+
const raw = safeExec(\`sh -c '\${script}'\`, 3000);
|
|
164
|
+
if (!raw) return result;
|
|
165
|
+
|
|
166
|
+
const parts = raw.split('---SEP---').map(s => s.trim());
|
|
167
|
+
if (parts.length >= 4) {
|
|
168
|
+
result.name = parts[0] || 'user';
|
|
169
|
+
result.gitBranch = parts[1] || '';
|
|
170
|
+
|
|
171
|
+
// Parse porcelain status
|
|
172
|
+
if (parts[2]) {
|
|
173
|
+
for (const line of parts[2].split('\\n')) {
|
|
174
|
+
if (!line || line.length < 2) continue;
|
|
175
|
+
const x = line[0], y = line[1];
|
|
176
|
+
if (x === '?' && y === '?') { result.untracked++; continue; }
|
|
177
|
+
if (x !== ' ' && x !== '?') result.staged++;
|
|
178
|
+
if (y !== ' ' && y !== '?') result.modified++;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// Parse ahead/behind
|
|
183
|
+
const ab = (parts[3] || '0 0').split(/\\s+/);
|
|
184
|
+
result.ahead = parseInt(ab[0]) || 0;
|
|
185
|
+
result.behind = parseInt(ab[1]) || 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return result;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// Normalise a model ID string to a short display name
|
|
192
|
+
function modelLabel(id) {
|
|
193
|
+
if (id.includes('opus')) return 'Opus 4.6';
|
|
194
|
+
if (id.includes('sonnet')) return 'Sonnet 4.6';
|
|
195
|
+
if (id.includes('haiku')) return 'Haiku 4.5';
|
|
196
|
+
return id.split('-').slice(1, 3).join(' ');
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Read the last assistant model from the most recent session JSONL.
|
|
200
|
+
// Claude Code writes each assistant turn to ~/.claude/projects/<escaped-cwd>/<uuid>.jsonl
|
|
201
|
+
// with a "message.model" field — this is the most accurate live source and
|
|
202
|
+
// correctly reflects /model session overrides.
|
|
203
|
+
function getModelFromSessionJSONL() {
|
|
204
|
+
try {
|
|
205
|
+
// Escape CWD the same way Claude Code does: replace '/' with '-'
|
|
206
|
+
const escaped = CWD.replace(/\\//g, '-');
|
|
207
|
+
const projectsDir = path.join(os.homedir(), '.claude', 'projects', escaped);
|
|
208
|
+
if (!fs.existsSync(projectsDir)) return null;
|
|
209
|
+
|
|
210
|
+
// Most recently modified JSONL = current (or latest) session
|
|
211
|
+
const files = fs.readdirSync(projectsDir)
|
|
212
|
+
.filter(f => f.endsWith('.jsonl'))
|
|
213
|
+
.map(f => ({ f, mt: (() => { try { return fs.statSync(path.join(projectsDir, f)).mtimeMs; } catch { return 0; } })() }))
|
|
214
|
+
.sort((a, b) => b.mt - a.mt);
|
|
215
|
+
if (files.length === 0) return null;
|
|
216
|
+
|
|
217
|
+
const sessionFile = path.join(projectsDir, files[0].f);
|
|
218
|
+
const raw = fs.readFileSync(sessionFile, 'utf-8');
|
|
219
|
+
const lines = raw.split('\\n').filter(Boolean);
|
|
220
|
+
|
|
221
|
+
// Scan from the end to find the most recent assistant model
|
|
222
|
+
for (let i = lines.length - 1; i >= 0; i--) {
|
|
223
|
+
try {
|
|
224
|
+
const entry = JSON.parse(lines[i]);
|
|
225
|
+
const model = entry?.message?.model || entry?.model;
|
|
226
|
+
if (model && typeof model === 'string' && model.startsWith('claude')) {
|
|
227
|
+
return model;
|
|
228
|
+
}
|
|
229
|
+
} catch { /* skip malformed line */ }
|
|
230
|
+
}
|
|
231
|
+
} catch { /* ignore */ }
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// Detect model name from Claude config (pure file reads, no exec)
|
|
236
|
+
function getModelName() {
|
|
237
|
+
// PRIMARY: scan the live session JSONL — reflects /model overrides in real time
|
|
238
|
+
const sessionModel = getModelFromSessionJSONL();
|
|
239
|
+
if (sessionModel) return modelLabel(sessionModel);
|
|
240
|
+
|
|
241
|
+
// SECONDARY: ~/.claude.json lastModelUsage for this exact project path
|
|
242
|
+
// (longest-prefix match to avoid short paths like /Users matching first)
|
|
243
|
+
try {
|
|
244
|
+
const claudeConfig = readJSON(path.join(os.homedir(), '.claude.json'));
|
|
245
|
+
if (claudeConfig?.projects) {
|
|
246
|
+
let bestMatch = null;
|
|
247
|
+
let bestLen = -1;
|
|
248
|
+
for (const [projectPath, projectConfig] of Object.entries(claudeConfig.projects)) {
|
|
249
|
+
if (CWD === projectPath || CWD.startsWith(projectPath + '/')) {
|
|
250
|
+
if (projectPath.length > bestLen) {
|
|
251
|
+
bestLen = projectPath.length;
|
|
252
|
+
bestMatch = projectConfig;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if (bestMatch?.lastModelUsage) {
|
|
257
|
+
const usage = bestMatch.lastModelUsage;
|
|
258
|
+
const ids = Object.keys(usage);
|
|
259
|
+
if (ids.length > 0) {
|
|
260
|
+
let bestId = ids[ids.length - 1];
|
|
261
|
+
let bestTokens = -1;
|
|
262
|
+
for (const id of ids) {
|
|
263
|
+
const e = usage[id] || {};
|
|
264
|
+
const tokens = (e.inputTokens || 0) + (e.outputTokens || 0);
|
|
265
|
+
if (tokens > bestTokens) { bestTokens = tokens; bestId = id; }
|
|
266
|
+
}
|
|
267
|
+
return modelLabel(bestId);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
} catch { /* ignore */ }
|
|
272
|
+
|
|
273
|
+
// TERTIARY: settings.json model field (configured default, not live session).
|
|
274
|
+
const settings = getSettings();
|
|
275
|
+
if (settings?.model) return modelLabel(settings.model);
|
|
276
|
+
|
|
277
|
+
// QUATERNARY: read ANTHROPIC_MODEL or CLAUDE_MODEL env var (set by the CLI at launch)
|
|
278
|
+
const envModel = process.env.ANTHROPIC_MODEL || process.env.CLAUDE_MODEL || process.env.MODEL;
|
|
279
|
+
if (envModel && envModel.startsWith('claude')) return modelLabel(envModel);
|
|
280
|
+
|
|
281
|
+
// QUINARY: current model from the model ID in the env injected by Claude Code itself
|
|
282
|
+
const claudeModel = process.env.CLAUDE_CODE_MODEL;
|
|
283
|
+
if (claudeModel) return modelLabel(claudeModel);
|
|
284
|
+
|
|
285
|
+
return 'Sonnet 4.6'; // known current default rather than the generic "Claude Code"
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// Get learning stats from memory database (pure stat calls)
|
|
289
|
+
function getLearningStats() {
|
|
290
|
+
const memoryPaths = [
|
|
291
|
+
path.join(CWD, '.swarm', 'memory.db'),
|
|
292
|
+
path.join(CWD, '.monomind', 'memory.db'),
|
|
293
|
+
path.join(CWD, '.claude', 'memory.db'),
|
|
294
|
+
path.join(CWD, 'data', 'memory.db'),
|
|
295
|
+
path.join(CWD, '.agentdb', 'memory.db'),
|
|
296
|
+
];
|
|
297
|
+
|
|
298
|
+
for (const dbPath of memoryPaths) {
|
|
299
|
+
const stat = safeStat(dbPath);
|
|
300
|
+
if (stat) {
|
|
301
|
+
const sizeKB = stat.size / 1024;
|
|
302
|
+
const patterns = Math.floor(sizeKB / 2);
|
|
303
|
+
return {
|
|
304
|
+
patterns,
|
|
305
|
+
sessions: Math.max(1, Math.floor(patterns / 10)),
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// Check session files count
|
|
311
|
+
let sessions = 0;
|
|
312
|
+
try {
|
|
313
|
+
const sessDir = path.join(CWD, '.claude', 'sessions');
|
|
314
|
+
if (fs.existsSync(sessDir)) {
|
|
315
|
+
sessions = fs.readdirSync(sessDir).filter(f => f.endsWith('.json')).length;
|
|
316
|
+
}
|
|
317
|
+
} catch { /* ignore */ }
|
|
318
|
+
|
|
319
|
+
return { patterns: 0, sessions };
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// progress from metrics files (pure file reads)
|
|
323
|
+
function getv1Progress() {
|
|
324
|
+
const learning = getLearningStats();
|
|
325
|
+
const totalDomains = 5;
|
|
326
|
+
|
|
327
|
+
const dddData = readJSON(path.join(CWD, '.monomind', 'metrics', 'ddd-progress.json'));
|
|
328
|
+
let dddProgress = dddData?.progress || 0;
|
|
329
|
+
let domainsCompleted = Math.min(5, Math.floor(dddProgress / 20));
|
|
330
|
+
|
|
331
|
+
if (dddProgress === 0 && learning.patterns > 0) {
|
|
332
|
+
if (learning.patterns >= 500) domainsCompleted = 5;
|
|
333
|
+
else if (learning.patterns >= 200) domainsCompleted = 4;
|
|
334
|
+
else if (learning.patterns >= 100) domainsCompleted = 3;
|
|
335
|
+
else if (learning.patterns >= 50) domainsCompleted = 2;
|
|
336
|
+
else if (learning.patterns >= 10) domainsCompleted = 1;
|
|
337
|
+
dddProgress = Math.floor((domainsCompleted / totalDomains) * 100);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
return {
|
|
341
|
+
domainsCompleted, totalDomains, dddProgress,
|
|
342
|
+
patternsLearned: learning.patterns,
|
|
343
|
+
sessionsCompleted: learning.sessions,
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// Security status (pure file reads)
|
|
348
|
+
function getSecurityStatus() {
|
|
349
|
+
const auditData = readJSON(path.join(CWD, '.monomind', 'security', 'audit-status.json'));
|
|
350
|
+
if (auditData) {
|
|
351
|
+
const auditDate = auditData.lastAudit || auditData.lastScan;
|
|
352
|
+
if (!auditDate) {
|
|
353
|
+
// No audit has ever run — show as pending, not stale
|
|
354
|
+
return { status: 'PENDING', cvesFixed: 0, totalCves: 0 };
|
|
355
|
+
}
|
|
356
|
+
const auditAge = Date.now() - new Date(auditDate).getTime();
|
|
357
|
+
const isStale = auditAge > 7 * 24 * 60 * 60 * 1000;
|
|
358
|
+
return {
|
|
359
|
+
status: isStale ? 'STALE' : (auditData.status || 'PENDING'),
|
|
360
|
+
cvesFixed: auditData.cvesFixed || 0,
|
|
361
|
+
totalCves: auditData.totalCves || 0,
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
let scanCount = 0;
|
|
366
|
+
try {
|
|
367
|
+
const scanDir = path.join(CWD, '.claude', 'security-scans');
|
|
368
|
+
if (fs.existsSync(scanDir)) {
|
|
369
|
+
scanCount = fs.readdirSync(scanDir).filter(f => f.endsWith('.json')).length;
|
|
370
|
+
}
|
|
371
|
+
} catch { /* ignore */ }
|
|
372
|
+
|
|
373
|
+
return {
|
|
374
|
+
status: scanCount > 0 ? 'SCANNED' : 'NONE',
|
|
375
|
+
cvesFixed: 0,
|
|
376
|
+
totalCves: 0,
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// Swarm status (pure file reads, NO ps aux)
|
|
381
|
+
function getSwarmStatus() {
|
|
382
|
+
const staleThresholdMs = 5 * 60 * 1000;
|
|
383
|
+
const agentRegTtlMs = 30 * 60 * 1000; // registration files expire after 30 min
|
|
384
|
+
const now = Date.now();
|
|
385
|
+
|
|
386
|
+
// PRIMARY: count live registration files written by SubagentStart hook
|
|
387
|
+
// Each file = one active sub-agent. Stale files (>30 min) are ignored.
|
|
388
|
+
const regDir = path.join(CWD, '.monomind', 'agents', 'registrations');
|
|
389
|
+
if (fs.existsSync(regDir)) {
|
|
390
|
+
try {
|
|
391
|
+
const files = fs.readdirSync(regDir).filter(f => f.endsWith('.json'));
|
|
392
|
+
const liveCount = files.filter(f => {
|
|
393
|
+
try {
|
|
394
|
+
return (now - fs.statSync(path.join(regDir, f)).mtimeMs) < agentRegTtlMs;
|
|
395
|
+
} catch { return false; }
|
|
396
|
+
}).length;
|
|
397
|
+
if (liveCount > 0) {
|
|
398
|
+
return {
|
|
399
|
+
activeAgents: liveCount,
|
|
400
|
+
maxAgents: CONFIG.maxAgents,
|
|
401
|
+
coordinationActive: true,
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
} catch { /* fall through */ }
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// SECONDARY: swarm-state.json written by MCP swarm_init — trust if fresh
|
|
408
|
+
const swarmStatePath = path.join(CWD, '.monomind', 'swarm', 'swarm-state.json');
|
|
409
|
+
const swarmState = readJSON(swarmStatePath);
|
|
410
|
+
if (swarmState) {
|
|
411
|
+
const updatedAt = swarmState.updatedAt || swarmState.startedAt;
|
|
412
|
+
const age = updatedAt ? now - new Date(updatedAt).getTime() : Infinity;
|
|
413
|
+
if (age < staleThresholdMs) {
|
|
414
|
+
return {
|
|
415
|
+
activeAgents: swarmState.agents?.length || swarmState.agentCount || 0,
|
|
416
|
+
maxAgents: swarmState.maxAgents || CONFIG.maxAgents,
|
|
417
|
+
coordinationActive: true,
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
// TERTIARY: swarm-activity.json refreshed by post-task hook
|
|
423
|
+
const activityData = readJSON(path.join(CWD, '.monomind', 'metrics', 'swarm-activity.json'));
|
|
424
|
+
if (activityData?.swarm) {
|
|
425
|
+
const updatedAt = activityData.timestamp || activityData.swarm.timestamp;
|
|
426
|
+
const age = updatedAt ? now - new Date(updatedAt).getTime() : Infinity;
|
|
427
|
+
if (age < staleThresholdMs) {
|
|
428
|
+
return {
|
|
429
|
+
activeAgents: activityData.swarm.agent_count || 0,
|
|
430
|
+
maxAgents: CONFIG.maxAgents,
|
|
431
|
+
coordinationActive: activityData.swarm.coordination_active || activityData.swarm.active || false,
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
return { activeAgents: 0, maxAgents: CONFIG.maxAgents, coordinationActive: false };
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// System metrics (uses process.memoryUsage() — no shell spawn)
|
|
440
|
+
function getSystemMetrics() {
|
|
441
|
+
const memoryMB = Math.floor(process.memoryUsage().heapUsed / 1024 / 1024);
|
|
442
|
+
const learning = getLearningStats();
|
|
443
|
+
const agentdb = getAgentDBStats();
|
|
444
|
+
|
|
445
|
+
// Intelligence from learning.json
|
|
446
|
+
const learningData = readJSON(path.join(CWD, '.monomind', 'metrics', 'learning.json'));
|
|
447
|
+
let intelligencePct = 0;
|
|
448
|
+
let contextPct = 0;
|
|
449
|
+
|
|
450
|
+
if (learningData?.intelligence?.score !== undefined) {
|
|
451
|
+
intelligencePct = Math.min(100, Math.floor(learningData.intelligence.score));
|
|
452
|
+
} else {
|
|
453
|
+
// Use actual vector/entry counts — 2000 entries = 100%
|
|
454
|
+
const fromPatterns = learning.patterns > 0 ? Math.min(100, Math.floor(learning.patterns / 20)) : 0;
|
|
455
|
+
const fromVectors = agentdb.vectorCount > 0 ? Math.min(100, Math.floor(agentdb.vectorCount / 20)) : 0;
|
|
456
|
+
intelligencePct = Math.max(fromPatterns, fromVectors);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
// Maturity fallback (pure fs checks, no git exec)
|
|
460
|
+
if (intelligencePct === 0) {
|
|
461
|
+
let score = 0;
|
|
462
|
+
if (fs.existsSync(path.join(CWD, '.claude'))) score += 15;
|
|
463
|
+
const srcDirs = ['src', 'lib', 'app', 'packages', 'v1'];
|
|
464
|
+
for (const d of srcDirs) { if (fs.existsSync(path.join(CWD, d))) { score += 15; break; } }
|
|
465
|
+
const testDirs = ['tests', 'test', '__tests__', 'spec'];
|
|
466
|
+
for (const d of testDirs) { if (fs.existsSync(path.join(CWD, d))) { score += 10; break; } }
|
|
467
|
+
const cfgFiles = ['package.json', 'tsconfig.json', 'pyproject.toml', 'Cargo.toml', 'go.mod'];
|
|
468
|
+
for (const f of cfgFiles) { if (fs.existsSync(path.join(CWD, f))) { score += 5; break; } }
|
|
469
|
+
intelligencePct = Math.min(100, score);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
if (learningData?.sessions?.total !== undefined) {
|
|
473
|
+
contextPct = Math.min(100, learningData.sessions.total * 5);
|
|
474
|
+
} else {
|
|
475
|
+
contextPct = Math.min(100, Math.floor(learning.sessions * 5));
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// Sub-agents from file metrics (no ps aux)
|
|
479
|
+
let subAgents = 0;
|
|
480
|
+
const activityData = readJSON(path.join(CWD, '.monomind', 'metrics', 'swarm-activity.json'));
|
|
481
|
+
if (activityData?.processes?.estimated_agents) {
|
|
482
|
+
subAgents = activityData.processes.estimated_agents;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
return { memoryMB, contextPct, intelligencePct, subAgents };
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// ADR status (count files only — don't read contents)
|
|
489
|
+
function getADRStatus() {
|
|
490
|
+
// Count actual ADR files first — compliance JSON may be stale
|
|
491
|
+
const adrPaths = [
|
|
492
|
+
path.join(CWD, 'packages', 'implementation', 'adrs'),
|
|
493
|
+
path.join(CWD, 'docs', 'adrs'),
|
|
494
|
+
path.join(CWD, '.monomind', 'adrs'),
|
|
495
|
+
];
|
|
496
|
+
|
|
497
|
+
for (const adrPath of adrPaths) {
|
|
498
|
+
try {
|
|
499
|
+
if (fs.existsSync(adrPath)) {
|
|
500
|
+
const files = fs.readdirSync(adrPath).filter(f =>
|
|
501
|
+
f.endsWith('.md') && (f.startsWith('ADR-') || f.startsWith('adr-') || /^\\d{4}-/.test(f))
|
|
502
|
+
);
|
|
503
|
+
// Report actual count — don't guess compliance without reading files
|
|
504
|
+
return { count: files.length, implemented: files.length, compliance: 0 };
|
|
505
|
+
}
|
|
506
|
+
} catch { /* ignore */ }
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
return { count: 0, implemented: 0, compliance: 0 };
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
// Hooks status (shared settings cache)
|
|
513
|
+
function getHooksStatus() {
|
|
514
|
+
let enabled = 0;
|
|
515
|
+
let total = 0;
|
|
516
|
+
const settings = getSettings();
|
|
517
|
+
|
|
518
|
+
if (settings?.hooks) {
|
|
519
|
+
for (const category of Object.keys(settings.hooks)) {
|
|
520
|
+
const matchers = settings.hooks[category];
|
|
521
|
+
if (!Array.isArray(matchers)) continue;
|
|
522
|
+
for (const matcher of matchers) {
|
|
523
|
+
const hooks = matcher?.hooks;
|
|
524
|
+
if (Array.isArray(hooks)) {
|
|
525
|
+
total += hooks.length;
|
|
526
|
+
enabled += hooks.length;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
try {
|
|
533
|
+
const hooksDir = path.join(CWD, '.claude', 'hooks');
|
|
534
|
+
if (fs.existsSync(hooksDir)) {
|
|
535
|
+
const hookFiles = fs.readdirSync(hooksDir).filter(f => f.endsWith('.js') || f.endsWith('.sh')).length;
|
|
536
|
+
total = Math.max(total, hookFiles);
|
|
537
|
+
enabled = Math.max(enabled, hookFiles);
|
|
538
|
+
}
|
|
539
|
+
} catch { /* ignore */ }
|
|
540
|
+
|
|
541
|
+
return { enabled, total };
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
// Active agent — reads last routing result persisted by hook-handler
|
|
545
|
+
function getActiveAgent() {
|
|
546
|
+
const routeFile = path.join(CWD, '.monomind', 'last-route.json');
|
|
547
|
+
try {
|
|
548
|
+
if (!fs.existsSync(routeFile)) return null;
|
|
549
|
+
const data = JSON.parse(fs.readFileSync(routeFile, 'utf-8'));
|
|
550
|
+
if (!data || !data.agent) return null;
|
|
551
|
+
|
|
552
|
+
// Stale after 30 minutes (session likely changed)
|
|
553
|
+
const age = Date.now() - new Date(data.updatedAt || 0).getTime();
|
|
554
|
+
if (age > 30 * 60 * 1000) return null;
|
|
555
|
+
|
|
556
|
+
// Prefer display name if set (from load-agent), else format the slug
|
|
557
|
+
const displayName = data.name || data.agent
|
|
558
|
+
.replace(/-/g, ' ')
|
|
559
|
+
.replace(/\\b\\w/g, c => c.toUpperCase());
|
|
560
|
+
|
|
561
|
+
return {
|
|
562
|
+
slug: data.agent,
|
|
563
|
+
name: displayName,
|
|
564
|
+
category: data.category || null,
|
|
565
|
+
confidence: data.confidence || 0,
|
|
566
|
+
activated: data.activated || false, // true = manually loaded extras agent
|
|
567
|
+
};
|
|
568
|
+
} catch { return null; }
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
// AgentDB stats — count real entries, not file-size heuristics
|
|
572
|
+
function getAgentDBStats() {
|
|
573
|
+
let vectorCount = 0;
|
|
574
|
+
let dbSizeKB = 0;
|
|
575
|
+
let namespaces = 0;
|
|
576
|
+
let hasHnsw = false;
|
|
577
|
+
|
|
578
|
+
// 1. Count real entries from auto-memory-store.json
|
|
579
|
+
const storePath = path.join(CWD, '.monomind', 'data', 'auto-memory-store.json');
|
|
580
|
+
const storeStat = safeStat(storePath);
|
|
581
|
+
if (storeStat) {
|
|
582
|
+
dbSizeKB += storeStat.size / 1024;
|
|
583
|
+
try {
|
|
584
|
+
const store = JSON.parse(fs.readFileSync(storePath, 'utf-8'));
|
|
585
|
+
if (Array.isArray(store)) vectorCount += store.length;
|
|
586
|
+
else if (store?.entries) vectorCount += store.entries.length;
|
|
587
|
+
} catch { /* fall back to size estimate */ }
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// 2. Count entries from ranked-context.json
|
|
591
|
+
const rankedPath = path.join(CWD, '.monomind', 'data', 'ranked-context.json');
|
|
592
|
+
try {
|
|
593
|
+
const ranked = readJSON(rankedPath);
|
|
594
|
+
if (ranked?.entries?.length > vectorCount) vectorCount = ranked.entries.length;
|
|
595
|
+
} catch { /* ignore */ }
|
|
596
|
+
|
|
597
|
+
// 3. Add DB file sizes
|
|
598
|
+
const dbFiles = [
|
|
599
|
+
path.join(CWD, 'data', 'memory.db'),
|
|
600
|
+
path.join(CWD, '.monomind', 'memory.db'),
|
|
601
|
+
path.join(CWD, '.swarm', 'memory.db'),
|
|
602
|
+
];
|
|
603
|
+
for (const f of dbFiles) {
|
|
604
|
+
const stat = safeStat(f);
|
|
605
|
+
if (stat) {
|
|
606
|
+
dbSizeKB += stat.size / 1024;
|
|
607
|
+
namespaces++;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
// 4. Check for graph data
|
|
612
|
+
const graphPath = path.join(CWD, 'data', 'memory.graph');
|
|
613
|
+
const graphStat = safeStat(graphPath);
|
|
614
|
+
if (graphStat) dbSizeKB += graphStat.size / 1024;
|
|
615
|
+
|
|
616
|
+
// 5. HNSW index
|
|
617
|
+
const hnswPaths = [
|
|
618
|
+
path.join(CWD, '.swarm', 'hnsw.index'),
|
|
619
|
+
path.join(CWD, '.monomind', 'hnsw.index'),
|
|
620
|
+
];
|
|
621
|
+
for (const p of hnswPaths) {
|
|
622
|
+
const stat = safeStat(p);
|
|
623
|
+
if (stat) {
|
|
624
|
+
hasHnsw = true;
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
// HNSW is available if memory package is present
|
|
630
|
+
if (!hasHnsw) {
|
|
631
|
+
const memPkgPaths = [
|
|
632
|
+
path.join(CWD, 'packages', '@monomind', 'memory', 'dist'),
|
|
633
|
+
path.join(CWD, 'node_modules', '@monomind', 'memory'),
|
|
634
|
+
];
|
|
635
|
+
for (const p of memPkgPaths) {
|
|
636
|
+
if (fs.existsSync(p)) { hasHnsw = true; break; }
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
return { vectorCount, dbSizeKB: Math.floor(dbSizeKB), namespaces, hasHnsw };
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// Test stats (count files only — NO reading file contents)
|
|
644
|
+
function getTestStats() {
|
|
645
|
+
let testFiles = 0;
|
|
646
|
+
|
|
647
|
+
function countTestFiles(dir, depth = 0) {
|
|
648
|
+
if (depth > 6) return;
|
|
649
|
+
try {
|
|
650
|
+
if (!fs.existsSync(dir)) return;
|
|
651
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
652
|
+
for (const entry of entries) {
|
|
653
|
+
if (entry.isDirectory() && !entry.name.startsWith('.') && entry.name !== 'node_modules') {
|
|
654
|
+
countTestFiles(path.join(dir, entry.name), depth + 1);
|
|
655
|
+
} else if (entry.isFile()) {
|
|
656
|
+
const n = entry.name;
|
|
657
|
+
if (n.includes('.test.') || n.includes('.spec.') || n.includes('_test.') || n.includes('_spec.')) {
|
|
658
|
+
testFiles++;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
} catch { /* ignore */ }
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
// Scan all source directories
|
|
666
|
+
for (const d of ['tests', 'test', '__tests__', 'src', 'v1']) {
|
|
667
|
+
countTestFiles(path.join(CWD, d));
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
// Estimate ~4 test cases per file (avoids reading every file)
|
|
671
|
+
return { testFiles, testCases: testFiles * 4 };
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
// Integration status (shared settings + file checks)
|
|
675
|
+
function getIntegrationStatus() {
|
|
676
|
+
const mcpServers = { total: 0, enabled: 0 };
|
|
677
|
+
const settings = getSettings();
|
|
678
|
+
|
|
679
|
+
if (settings?.mcpServers && typeof settings.mcpServers === 'object') {
|
|
680
|
+
const servers = Object.keys(settings.mcpServers);
|
|
681
|
+
mcpServers.total = servers.length;
|
|
682
|
+
mcpServers.enabled = settings.enabledMcpjsonServers
|
|
683
|
+
? settings.enabledMcpjsonServers.filter(s => servers.includes(s)).length
|
|
684
|
+
: servers.length;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
// Fallback: .mcp.json
|
|
688
|
+
if (mcpServers.total === 0) {
|
|
689
|
+
const mcpConfig = readJSON(path.join(CWD, '.mcp.json'))
|
|
690
|
+
|| readJSON(path.join(os.homedir(), '.claude', 'mcp.json'));
|
|
691
|
+
if (mcpConfig?.mcpServers) {
|
|
692
|
+
const s = Object.keys(mcpConfig.mcpServers);
|
|
693
|
+
mcpServers.total = s.length;
|
|
694
|
+
mcpServers.enabled = s.length;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
const hasDatabase = ['.swarm/memory.db', '.monomind/memory.db', 'data/memory.db']
|
|
699
|
+
.some(p => fs.existsSync(path.join(CWD, p)));
|
|
700
|
+
const hasApi = !!(process.env.ANTHROPIC_API_KEY || process.env.OPENAI_API_KEY);
|
|
701
|
+
|
|
702
|
+
return { mcpServers, hasDatabase, hasApi };
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
// Session stats (pure file reads)
|
|
706
|
+
function getSessionStats() {
|
|
707
|
+
for (const p of ['.monomind/session.json', '.claude/session.json']) {
|
|
708
|
+
const data = readJSON(path.join(CWD, p));
|
|
709
|
+
if (data?.startTime) {
|
|
710
|
+
const diffMs = Date.now() - new Date(data.startTime).getTime();
|
|
711
|
+
const mins = Math.floor(diffMs / 60000);
|
|
712
|
+
const duration = mins < 60 ? \`\${mins}m\` : \`\${Math.floor(mins / 60)}h\${mins % 60}m\`;
|
|
713
|
+
return { duration };
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
return { duration: '' };
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
// ─── Extended 256-color palette ─────────────────────────────────
|
|
720
|
+
const x = {
|
|
721
|
+
// Backgrounds (used sparingly for labels)
|
|
722
|
+
bgPurple: '\\x1b[48;5;55m',
|
|
723
|
+
bgTeal: '\\x1b[48;5;23m',
|
|
724
|
+
bgReset: '\\x1b[49m',
|
|
725
|
+
// Foregrounds
|
|
726
|
+
purple: '\\x1b[38;5;141m', // soft lavender-purple (brand)
|
|
727
|
+
violet: '\\x1b[38;5;99m', // deeper purple
|
|
728
|
+
teal: '\\x1b[38;5;51m', // bright teal
|
|
729
|
+
mint: '\\x1b[38;5;120m', // soft green
|
|
730
|
+
gold: '\\x1b[38;5;220m', // warm gold
|
|
731
|
+
orange: '\\x1b[38;5;208m', // alert orange
|
|
732
|
+
coral: '\\x1b[38;5;203m', // error red-pink
|
|
733
|
+
sky: '\\x1b[38;5;117m', // soft blue
|
|
734
|
+
rose: '\\x1b[38;5;218m', // warm pink
|
|
735
|
+
slate: '\\x1b[38;5;245m', // neutral grey
|
|
736
|
+
white: '\\x1b[38;5;255m', // bright white
|
|
737
|
+
green: '\\x1b[38;5;82m', // vivid green
|
|
738
|
+
red: '\\x1b[38;5;196m', // vivid red
|
|
739
|
+
yellow: '\\x1b[38;5;226m', // vivid yellow
|
|
740
|
+
// Shared
|
|
741
|
+
bold: '\\x1b[1m',
|
|
742
|
+
dim: '\\x1b[2m',
|
|
743
|
+
reset: '\\x1b[0m',
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
// ── Helpers ──────────────────────────────────────────────────────
|
|
747
|
+
|
|
748
|
+
// Block progress bar: ▰▰▰▱▱ (5 blocks)
|
|
749
|
+
function blockBar(current, total, width = 5) {
|
|
750
|
+
const filled = Math.min(width, Math.round((current / Math.max(total, 1)) * width));
|
|
751
|
+
return '\\u25B0'.repeat(filled) + \`\${x.slate}\\u25B1\${x.reset}\`.repeat(width - filled);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
// Health dot: ● colored by status
|
|
755
|
+
function dot(ok) {
|
|
756
|
+
if (ok === 'good') return \`\${x.green}●\${x.reset}\`;
|
|
757
|
+
if (ok === 'warn') return \`\${x.gold}●\${x.reset}\`;
|
|
758
|
+
if (ok === 'error') return \`\${x.coral}●\${x.reset}\`;
|
|
759
|
+
return \`\${x.slate}●\${x.reset}\`; // 'none'
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// Pill badge: [ LABEL ] with background
|
|
763
|
+
function badge(label, color) {
|
|
764
|
+
return \`\${color}[\${label}]\${x.reset}\`;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
// Divider character
|
|
768
|
+
const DIV = \`\${x.slate}│\${x.reset}\`;
|
|
769
|
+
const SEP = \`\${x.slate}──────────────────────────────────────────────────────\${x.reset}\`;
|
|
770
|
+
|
|
771
|
+
// Pct → color
|
|
772
|
+
function pctColor(pct) {
|
|
773
|
+
if (pct >= 75) return x.green;
|
|
774
|
+
if (pct >= 40) return x.gold;
|
|
775
|
+
if (pct > 0) return x.orange;
|
|
776
|
+
return x.slate;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// Security status → label + color
|
|
780
|
+
function secBadge(status) {
|
|
781
|
+
if (status === 'CLEAN') return { label: '✔ CLEAN', col: x.green };
|
|
782
|
+
if (status === 'STALE') return { label: '⟳ STALE', col: x.gold };
|
|
783
|
+
if (status === 'IN_PROGRESS') return { label: '⟳ RUNNING', col: x.sky };
|
|
784
|
+
if (status === 'SCANNED') return { label: '✔ SCANNED', col: x.mint };
|
|
785
|
+
if (status === 'PENDING') return { label: '⏸ PENDING', col: x.gold };
|
|
786
|
+
return { label: '✖ NONE', col: x.slate };
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
// ── Knowledge & trigger stats (Tasks 28 + 32) ────────────────────
|
|
790
|
+
function getKnowledgeStats() {
|
|
791
|
+
const chunksPath = path.join(CWD, '.monomind', 'knowledge', 'chunks.jsonl');
|
|
792
|
+
const skillsPath = path.join(CWD, '.monomind', 'skills.jsonl');
|
|
793
|
+
let chunks = 0, skills = 0;
|
|
794
|
+
try {
|
|
795
|
+
if (fs.existsSync(chunksPath)) {
|
|
796
|
+
chunks = fs.readFileSync(chunksPath, 'utf-8').split('\\n').filter(Boolean).length;
|
|
797
|
+
}
|
|
798
|
+
} catch { /* ignore */ }
|
|
799
|
+
try {
|
|
800
|
+
if (fs.existsSync(skillsPath)) {
|
|
801
|
+
skills = fs.readFileSync(skillsPath, 'utf-8').split('\\n').filter(Boolean).length;
|
|
802
|
+
}
|
|
803
|
+
} catch { /* ignore */ }
|
|
804
|
+
return { chunks, skills };
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
function getTriggerStats() {
|
|
808
|
+
const indexPath = path.join(CWD, '.monomind', 'trigger-index.json');
|
|
809
|
+
try {
|
|
810
|
+
if (!fs.existsSync(indexPath)) return { triggers: 0, agents: 0 };
|
|
811
|
+
const raw = JSON.parse(fs.readFileSync(indexPath, 'utf-8'));
|
|
812
|
+
const idx = raw.index || raw;
|
|
813
|
+
const triggers = Object.keys(idx).length;
|
|
814
|
+
const agents = Object.values(idx).flat().length;
|
|
815
|
+
return { triggers, agents };
|
|
816
|
+
} catch { return { triggers: 0, agents: 0 }; }
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
function getSIBudget() {
|
|
820
|
+
const SI_LIMIT = 1500;
|
|
821
|
+
const siPath = path.join(CWD, '.agents', 'shared_instructions.md');
|
|
822
|
+
try {
|
|
823
|
+
if (!fs.existsSync(siPath)) return null;
|
|
824
|
+
const len = fs.readFileSync(siPath, 'utf-8').length;
|
|
825
|
+
return { len, pct: Math.round((len / SI_LIMIT) * 100), limit: SI_LIMIT };
|
|
826
|
+
} catch { return null; }
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
// ── Single-line statusline (compact) ─────────────────────────────
|
|
830
|
+
function generateStatusline() {
|
|
831
|
+
const git = getGitInfo();
|
|
832
|
+
const swarm = getSwarmStatus();
|
|
833
|
+
const system = getSystemMetrics();
|
|
834
|
+
const hooks = getHooksStatus();
|
|
835
|
+
const knowledge = getKnowledgeStats();
|
|
836
|
+
const triggers = getTriggerStats();
|
|
837
|
+
const parts = [];
|
|
838
|
+
|
|
839
|
+
// Brand + swarm dot
|
|
840
|
+
const swarmDot = swarm.coordinationActive ? \`\${x.green}●\${x.reset}\` : \`\${x.slate}○\${x.reset}\`;
|
|
841
|
+
parts.push(\`\${x.bold}\${x.purple}▊ Monomind\${x.reset} \${swarmDot}\`);
|
|
842
|
+
|
|
843
|
+
// Git branch + changes (compact)
|
|
844
|
+
if (git.gitBranch) {
|
|
845
|
+
let b = \`\${x.sky}⎇ \${x.bold}\${git.gitBranch}\${x.reset}\`;
|
|
846
|
+
if (git.staged > 0) b += \` \${x.green}+\${git.staged}\${x.reset}\`;
|
|
847
|
+
if (git.modified > 0) b += \` \${x.gold}~\${git.modified}\${x.reset}\`;
|
|
848
|
+
if (git.ahead > 0) b += \` \${x.green}↑\${git.ahead}\${x.reset}\`;
|
|
849
|
+
if (git.behind > 0) b += \` \${x.coral}↓\${git.behind}\${x.reset}\`;
|
|
850
|
+
parts.push(b);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
// Model
|
|
854
|
+
parts.push(\`\${x.violet}\${getModelName()}\${x.reset}\`);
|
|
855
|
+
|
|
856
|
+
// Active agent
|
|
857
|
+
const activeAgent = getActiveAgent();
|
|
858
|
+
if (activeAgent) {
|
|
859
|
+
const col = activeAgent.activated ? x.green : x.sky;
|
|
860
|
+
const icon = activeAgent.activated ? '●' : '→';
|
|
861
|
+
parts.push(\`\${col}\${icon} \${x.bold}\${activeAgent.name}\${x.reset}\`);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
// Intelligence
|
|
865
|
+
const ic = pctColor(system.intelligencePct);
|
|
866
|
+
parts.push(\`\${ic}💡 \${system.intelligencePct}%\${x.reset}\`);
|
|
867
|
+
|
|
868
|
+
// Knowledge chunks (Task 28) — show when populated
|
|
869
|
+
if (knowledge.chunks > 0) {
|
|
870
|
+
parts.push(\`\${x.teal}📚 \${knowledge.chunks}k\${x.reset}\`);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
// Triggers (Task 32) — show when populated
|
|
874
|
+
if (triggers.triggers > 0) {
|
|
875
|
+
parts.push(\`\${x.mint}🎯 \${triggers.triggers}t\${x.reset}\`);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
// Swarm agents (only when active)
|
|
879
|
+
if (swarm.activeAgents > 0) {
|
|
880
|
+
parts.push(\`\${x.gold}🐝 \${swarm.activeAgents}/\${swarm.maxAgents}\${x.reset}\`);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
// Hooks
|
|
884
|
+
if (hooks.enabled > 0) {
|
|
885
|
+
parts.push(\`\${x.mint}⚡ \${hooks.enabled}h\${x.reset}\`);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
return parts.join(\` \${DIV} \`);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
// ── Multi-line dashboard (full mode) ─────────────────────────────
|
|
892
|
+
function generateDashboard() {
|
|
893
|
+
const git = getGitInfo();
|
|
894
|
+
const modelName = getModelName();
|
|
895
|
+
const progress = getv1Progress();
|
|
896
|
+
const security = getSecurityStatus();
|
|
897
|
+
const swarm = getSwarmStatus();
|
|
898
|
+
const system = getSystemMetrics();
|
|
899
|
+
const adrs = getADRStatus();
|
|
900
|
+
const hooks = getHooksStatus();
|
|
901
|
+
const agentdb = getAgentDBStats();
|
|
902
|
+
const tests = getTestStats();
|
|
903
|
+
const session = getSessionStats();
|
|
904
|
+
const integration = getIntegrationStatus();
|
|
905
|
+
const knowledge = getKnowledgeStats();
|
|
906
|
+
const triggers = getTriggerStats();
|
|
907
|
+
const si = getSIBudget();
|
|
908
|
+
const sec = secBadge(security.status);
|
|
909
|
+
const activeAgent = getActiveAgent();
|
|
910
|
+
const lines = [];
|
|
911
|
+
|
|
912
|
+
// ── Header: brand + git + model + session ────────────────────
|
|
913
|
+
const swarmDot = swarm.coordinationActive ? \`\${x.green}● LIVE\${x.reset}\` : \`\${x.slate}○ IDLE\${x.reset}\`;
|
|
914
|
+
let hdr = \`\${x.bold}\${x.purple}▊ Monomind \${VERSION}\${x.reset} \${swarmDot} \${x.teal}\${x.bold}\${git.name}\${x.reset}\`;
|
|
915
|
+
|
|
916
|
+
if (git.gitBranch) {
|
|
917
|
+
hdr += \` \${DIV} \${x.sky}⎇ \${x.bold}\${git.gitBranch}\${x.reset}\`;
|
|
918
|
+
if (git.staged > 0) hdr += \` \${x.green}+\${git.staged}\${x.reset}\`;
|
|
919
|
+
if (git.modified > 0) hdr += \` \${x.gold}~\${git.modified} mod\${x.reset}\`;
|
|
920
|
+
if (git.untracked > 0) hdr += \` \${x.slate}?\${git.untracked}\${x.reset}\`;
|
|
921
|
+
if (git.ahead > 0) hdr += \` \${x.green}↑\${git.ahead}\${x.reset}\`;
|
|
922
|
+
if (git.behind > 0) hdr += \` \${x.coral}↓\${git.behind}\${x.reset}\`;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
hdr += \` \${DIV} 🤖 \${x.violet}\${x.bold}\${modelName}\${x.reset}\`;
|
|
926
|
+
if (session.duration) hdr += \` \${x.dim}⏱ \${session.duration}\${x.reset}\`;
|
|
927
|
+
|
|
928
|
+
lines.push(hdr);
|
|
929
|
+
lines.push(SEP);
|
|
930
|
+
|
|
931
|
+
// ── Row 1: Intelligence & Learning ───────────────────────────
|
|
932
|
+
const intellCol = pctColor(system.intelligencePct);
|
|
933
|
+
const intellBar = blockBar(system.intelligencePct, 100, 6);
|
|
934
|
+
|
|
935
|
+
// Knowledge (Task 28)
|
|
936
|
+
const knowStr = knowledge.chunks > 0
|
|
937
|
+
? \`\${x.teal}📚 \${x.bold}\${knowledge.chunks}\${x.reset}\${x.slate} chunks\${x.reset}\`
|
|
938
|
+
: \`\${x.slate}📚 no chunks\${x.reset}\`;
|
|
939
|
+
|
|
940
|
+
// Skills (Task 45)
|
|
941
|
+
const skillStr = knowledge.skills > 0
|
|
942
|
+
? \` \${x.mint}✦ \${knowledge.skills} skills\${x.reset}\`
|
|
943
|
+
: '';
|
|
944
|
+
|
|
945
|
+
// Patterns
|
|
946
|
+
const patStr = progress.patternsLearned > 0
|
|
947
|
+
? \`\${x.gold}\${progress.patternsLearned >= 1000 ? (progress.patternsLearned / 1000).toFixed(1) + 'k' : progress.patternsLearned} patterns\${x.reset}\`
|
|
948
|
+
: \`\${x.slate}0 patterns\${x.reset}\`;
|
|
949
|
+
|
|
950
|
+
lines.push(
|
|
951
|
+
\`\${x.purple}💡 INTEL\${x.reset} \` +
|
|
952
|
+
\`\${intellCol}\${intellBar} \${x.bold}\${system.intelligencePct}%\${x.reset} \${DIV} \` +
|
|
953
|
+
\`\${knowStr}\${skillStr} \${DIV} \` +
|
|
954
|
+
patStr
|
|
955
|
+
);
|
|
956
|
+
lines.push(SEP);
|
|
957
|
+
|
|
958
|
+
// ── Row 2: Agents & Triggers ──────────────────────────────────
|
|
959
|
+
const agentCol = swarm.activeAgents > 0 ? x.green : x.slate;
|
|
960
|
+
const hookCol = hooks.enabled > 0 ? x.mint : x.slate;
|
|
961
|
+
|
|
962
|
+
// Triggers (Task 32)
|
|
963
|
+
const trigStr = triggers.triggers > 0
|
|
964
|
+
? \`\${x.mint}🎯 \${x.bold}\${triggers.triggers}\${x.reset}\${x.slate} triggers · \${triggers.agents} agents\${x.reset}\`
|
|
965
|
+
: \`\${x.slate}🎯 no triggers\${x.reset}\`;
|
|
966
|
+
|
|
967
|
+
// Active agent badge
|
|
968
|
+
let agentBadge;
|
|
969
|
+
if (activeAgent) {
|
|
970
|
+
const col = activeAgent.activated ? x.green : x.sky;
|
|
971
|
+
const mark = activeAgent.activated ? '● ACTIVE' : '→ ROUTED';
|
|
972
|
+
const conf = activeAgent.activated ? '' : \` \${x.slate}\${(activeAgent.confidence * 100).toFixed(0)}%\${x.reset}\`;
|
|
973
|
+
const cat = activeAgent.category ? \` \${x.slate}[\${activeAgent.category}]\${x.reset}\` : '';
|
|
974
|
+
agentBadge = \`\${col}\${x.bold}\${mark}\${x.reset} \${col}👤 \${x.bold}\${activeAgent.name}\${x.reset}\${cat}\${conf}\`;
|
|
975
|
+
} else {
|
|
976
|
+
agentBadge = \`\${x.slate}👤 no agent routed\${x.reset}\`;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
lines.push(
|
|
980
|
+
\`\${x.gold}🐝 SWARM\${x.reset} \` +
|
|
981
|
+
\`\${agentCol}\${x.bold}\${swarm.activeAgents}\${x.reset}\${x.slate}/\${x.reset}\${x.white}\${swarm.maxAgents}\${x.reset} agents \` +
|
|
982
|
+
\`\${hookCol}⚡ \${hooks.enabled}/\${hooks.total} hooks\${x.reset} \${DIV} \` +
|
|
983
|
+
\`\${trigStr} \${DIV} \` +
|
|
984
|
+
agentBadge
|
|
985
|
+
);
|
|
986
|
+
lines.push(SEP);
|
|
987
|
+
|
|
988
|
+
// ── Row 3: Architecture & Security ───────────────────────────
|
|
989
|
+
const adrCol = adrs.count > 0
|
|
990
|
+
? (adrs.implemented >= adrs.count ? x.green : x.gold)
|
|
991
|
+
: x.slate;
|
|
992
|
+
const adrStr = adrs.count > 0
|
|
993
|
+
? \`\${adrCol}\${x.bold}\${adrs.implemented}\${x.reset}\${x.slate}/\${x.reset}\${x.white}\${adrs.count}\${x.reset} ADRs\`
|
|
994
|
+
: \`\${x.slate}no ADRs\${x.reset}\`;
|
|
995
|
+
|
|
996
|
+
const dddCol = pctColor(progress.dddProgress);
|
|
997
|
+
const dddBar = blockBar(progress.dddProgress, 100, 5);
|
|
998
|
+
|
|
999
|
+
const cveStatus = security.totalCves === 0
|
|
1000
|
+
? (security.status === 'NONE' ? \`\${x.slate}not scanned\${x.reset}\` : \`\${x.green}✔ clean\${x.reset}\`)
|
|
1001
|
+
: \`\${x.coral}\${security.cvesFixed}/\${security.totalCves} fixed\${x.reset}\`;
|
|
1002
|
+
|
|
1003
|
+
lines.push(
|
|
1004
|
+
\`\${x.purple}🧩 ARCH\${x.reset} \` +
|
|
1005
|
+
\`\${adrStr} \${DIV} \` +
|
|
1006
|
+
\`DDD \${dddBar} \${dddCol}\${x.bold}\${progress.dddProgress}%\${x.reset} \${DIV} \` +
|
|
1007
|
+
\`🛡️ \${sec.col}\${sec.label}\${x.reset} \${DIV} \` +
|
|
1008
|
+
\`CVE \${cveStatus}\`
|
|
1009
|
+
);
|
|
1010
|
+
lines.push(SEP);
|
|
1011
|
+
|
|
1012
|
+
// ── Row 4: Memory & Tests ─────────────────────────────────────
|
|
1013
|
+
const vecCol = agentdb.vectorCount > 0 ? x.green : x.slate;
|
|
1014
|
+
const hnswTag = agentdb.hasHnsw && agentdb.vectorCount > 0 ? \` \${x.green}⚡ HNSW\${x.reset}\` : '';
|
|
1015
|
+
const sizeDisp = agentdb.dbSizeKB >= 1024
|
|
1016
|
+
? \`\${(agentdb.dbSizeKB / 1024).toFixed(1)} MB\` : \`\${agentdb.dbSizeKB} KB\`;
|
|
1017
|
+
const testCol = tests.testFiles > 0 ? x.green : x.slate;
|
|
1018
|
+
const memCol = system.memoryMB > 200 ? x.orange : x.sky;
|
|
1019
|
+
|
|
1020
|
+
const chips = [];
|
|
1021
|
+
if (integration.mcpServers.total > 0) {
|
|
1022
|
+
const mc = integration.mcpServers.enabled === integration.mcpServers.total ? x.green
|
|
1023
|
+
: integration.mcpServers.enabled > 0 ? x.gold : x.coral;
|
|
1024
|
+
chips.push(\`\${mc}MCP \${integration.mcpServers.enabled}/\${integration.mcpServers.total}\${x.reset}\`);
|
|
1025
|
+
}
|
|
1026
|
+
if (integration.hasDatabase) chips.push(\`\${x.green}DB ✔\${x.reset}\`);
|
|
1027
|
+
if (integration.hasApi) chips.push(\`\${x.green}API ✔\${x.reset}\`);
|
|
1028
|
+
const integStr = chips.length ? chips.join(' ') : \`\${x.slate}none\${x.reset}\`;
|
|
1029
|
+
|
|
1030
|
+
lines.push(
|
|
1031
|
+
\`\${x.teal}🗄️ MEMORY\${x.reset} \` +
|
|
1032
|
+
\`\${vecCol}\${x.bold}\${agentdb.vectorCount}\${x.reset}\${x.slate} vectors\${x.reset}\${hnswTag} \${DIV} \` +
|
|
1033
|
+
\`\${x.white}\${sizeDisp}\${x.reset} \${DIV} \` +
|
|
1034
|
+
\`\${testCol}🧪 \${tests.testFiles} test files\${x.reset} \${DIV} \` +
|
|
1035
|
+
integStr
|
|
1036
|
+
);
|
|
1037
|
+
lines.push(SEP);
|
|
1038
|
+
|
|
1039
|
+
// ── Row 5: Context budget ─────────────────────────────────────
|
|
1040
|
+
// SI budget (Task 23 monitor)
|
|
1041
|
+
let siStr;
|
|
1042
|
+
if (si) {
|
|
1043
|
+
const siCol = si.pct > 100 ? x.coral : si.pct > 80 ? x.gold : x.green;
|
|
1044
|
+
siStr = \`\${siCol}📄 SI \${si.pct}% budget\${x.reset} \${x.dim}(\${si.len}/\${si.limit} chars)\${x.reset}\`;
|
|
1045
|
+
} else {
|
|
1046
|
+
siStr = \`\${x.slate}📄 no shared instructions\${x.reset}\`;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
// Domains
|
|
1050
|
+
const domCol = progress.domainsCompleted >= 4 ? x.green
|
|
1051
|
+
: progress.domainsCompleted >= 2 ? x.gold
|
|
1052
|
+
: progress.domainsCompleted >= 1 ? x.orange
|
|
1053
|
+
: x.slate;
|
|
1054
|
+
const domBar = blockBar(progress.domainsCompleted, progress.totalDomains);
|
|
1055
|
+
|
|
1056
|
+
lines.push(
|
|
1057
|
+
\`\${x.slate}📋 CONTEXT\${x.reset} \` +
|
|
1058
|
+
\`\${siStr} \${DIV} \` +
|
|
1059
|
+
\`\${x.teal}🏗 \${domBar} \${domCol}\${x.bold}\${progress.domainsCompleted}\${x.reset}\${x.slate}/\${x.reset}\${x.white}\${progress.totalDomains}\${x.reset} domains \${DIV} \` +
|
|
1060
|
+
\`\${x.dim}💾 \${system.memoryMB} MB RAM\${x.reset}\`
|
|
1061
|
+
);
|
|
1062
|
+
|
|
1063
|
+
return lines.join('\\n');
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
// ── JSON output ──────────────────────────────────────────────────
|
|
1067
|
+
function generateJSON() {
|
|
1068
|
+
const git = getGitInfo();
|
|
1069
|
+
return {
|
|
1070
|
+
user: { name: git.name, gitBranch: git.gitBranch, modelName: getModelName() },
|
|
1071
|
+
domains: getv1Progress(),
|
|
1072
|
+
security: getSecurityStatus(),
|
|
1073
|
+
swarm: getSwarmStatus(),
|
|
1074
|
+
system: getSystemMetrics(),
|
|
1075
|
+
adrs: getADRStatus(),
|
|
1076
|
+
hooks: getHooksStatus(),
|
|
1077
|
+
agentdb: getAgentDBStats(),
|
|
1078
|
+
tests: getTestStats(),
|
|
1079
|
+
git: { modified: git.modified, untracked: git.untracked, staged: git.staged, ahead: git.ahead, behind: git.behind },
|
|
1080
|
+
lastUpdated: new Date().toISOString(),
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
// ─── Mode state file ─────────────────────────────────────────────
|
|
1085
|
+
const MODE_FILE = path.join(CWD, '.monomind', 'statusline-mode.txt');
|
|
1086
|
+
|
|
1087
|
+
function readMode() {
|
|
1088
|
+
try {
|
|
1089
|
+
if (fs.existsSync(MODE_FILE)) {
|
|
1090
|
+
return fs.readFileSync(MODE_FILE, 'utf-8').trim();
|
|
1091
|
+
}
|
|
1092
|
+
} catch { /* ignore */ }
|
|
1093
|
+
return 'full'; // default
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// ─── Main ───────────────────────────────────────────────────────
|
|
1097
|
+
if (process.argv.includes('--json')) {
|
|
1098
|
+
console.log(JSON.stringify(generateJSON(), null, 2));
|
|
1099
|
+
} else if (process.argv.includes('--compact')) {
|
|
1100
|
+
console.log(JSON.stringify(generateJSON()));
|
|
1101
|
+
} else if (process.argv.includes('--single-line')) {
|
|
1102
|
+
console.log(generateStatusline());
|
|
1103
|
+
} else if (process.argv.includes('--toggle')) {
|
|
1104
|
+
// Toggle mode and print the new view
|
|
1105
|
+
const current = readMode();
|
|
1106
|
+
const next = current === 'compact' ? 'full' : 'compact';
|
|
1107
|
+
try {
|
|
1108
|
+
fs.mkdirSync(path.dirname(MODE_FILE), { recursive: true });
|
|
1109
|
+
fs.writeFileSync(MODE_FILE, next, 'utf-8');
|
|
1110
|
+
} catch { /* ignore */ }
|
|
1111
|
+
if (next === 'compact') {
|
|
1112
|
+
console.log(generateStatusline());
|
|
1113
|
+
} else {
|
|
1114
|
+
console.log(generateDashboard());
|
|
1115
|
+
}
|
|
1116
|
+
} else {
|
|
1117
|
+
// Default: respect mode state file
|
|
1118
|
+
const mode = readMode();
|
|
1119
|
+
if (mode === 'compact') {
|
|
1120
|
+
console.log(generateStatusline());
|
|
1121
|
+
} else {
|
|
1122
|
+
console.log(generateDashboard());
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
`;
|
|
1126
|
+
}
|
|
1127
|
+
export function generateStatuslineHook(options) {
|
|
1128
|
+
if (!options.statusline.enabled) {
|
|
1129
|
+
return '#!/bin/bash\n# Statusline disabled\n';
|
|
1130
|
+
}
|
|
1131
|
+
return `#!/bin/bash
|
|
1132
|
+
# Monomind Statusline Hook
|
|
1133
|
+
# Source this in your .bashrc/.zshrc for terminal statusline
|
|
1134
|
+
|
|
1135
|
+
# Function to get statusline
|
|
1136
|
+
monomind_statusline() {
|
|
1137
|
+
local statusline_script="\${MONOMIND_DIR:-.claude}/helpers/statusline.cjs"
|
|
1138
|
+
if [ -f "$statusline_script" ]; then
|
|
1139
|
+
node "$statusline_script" 2>/dev/null || echo ""
|
|
1140
|
+
fi
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
# Bash: Add to PS1
|
|
1144
|
+
# export PS1='$(monomind_statusline) \\n\\$ '
|
|
1145
|
+
|
|
1146
|
+
# Zsh: Add to RPROMPT
|
|
1147
|
+
# export RPROMPT='$(monomind_statusline)'
|
|
1148
|
+
|
|
1149
|
+
# Claude Code: Add to .claude/settings.json
|
|
1150
|
+
# "statusLine": {
|
|
1151
|
+
# "type": "command",
|
|
1152
|
+
# "command": "node .claude/helpers/statusline.cjs 2>/dev/null"
|
|
1153
|
+
# "when": "test -f .claude/helpers/statusline.cjs"
|
|
1154
|
+
# }
|
|
1155
|
+
`;
|
|
1156
|
+
}
|
|
1157
|
+
//# sourceMappingURL=statusline-generator.js.map
|