@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,1276 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Monomind V1 Statusline Generator (Optimized)
|
|
4
|
+
* Displays real-time v1 implementation progress and system status
|
|
5
|
+
*
|
|
6
|
+
* Usage: node statusline.cjs [--json] [--compact]
|
|
7
|
+
*
|
|
8
|
+
* Performance notes:
|
|
9
|
+
* - Single git execSync call (combines branch + status + upstream)
|
|
10
|
+
* - No recursive file reading (only stat/readdir, never read test contents)
|
|
11
|
+
* - No ps aux calls (uses process.memoryUsage() + file-based metrics)
|
|
12
|
+
* - Strict 2s timeout on all execSync calls
|
|
13
|
+
* - Shared settings cache across functions
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
17
|
+
const fs = require('fs');
|
|
18
|
+
const path = require('path');
|
|
19
|
+
const { execSync } = require('child_process');
|
|
20
|
+
const os = require('os');
|
|
21
|
+
|
|
22
|
+
// Configuration
|
|
23
|
+
const CONFIG = {
|
|
24
|
+
maxAgents: 15,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const CWD = process.env.CLAUDE_PROJECT_DIR || process.cwd();
|
|
28
|
+
|
|
29
|
+
// Read monomind version โ check global install first, then CWD package.json
|
|
30
|
+
function getVersion() {
|
|
31
|
+
// 1. Walk up from script location to find monomind package.json
|
|
32
|
+
const scriptDir = path.dirname(__filename);
|
|
33
|
+
const walkCandidates = [
|
|
34
|
+
path.join(scriptDir, '..', '..', 'package.json'),
|
|
35
|
+
path.join(scriptDir, '..', '..', '..', 'package.json'),
|
|
36
|
+
path.join(scriptDir, '..', '..', '..', '..', 'package.json'),
|
|
37
|
+
];
|
|
38
|
+
for (const p of walkCandidates) {
|
|
39
|
+
try {
|
|
40
|
+
const pkg = JSON.parse(fs.readFileSync(p, 'utf-8'));
|
|
41
|
+
if (pkg.version && (pkg.name === 'monomind' || pkg.name === '@monomind/cli' || (pkg.name || '').startsWith('@monomind'))) {
|
|
42
|
+
return `v${pkg.version}`;
|
|
43
|
+
}
|
|
44
|
+
} catch { /* ignore */ }
|
|
45
|
+
}
|
|
46
|
+
// 2. Fallback: npm global prefix
|
|
47
|
+
try {
|
|
48
|
+
const prefix = execSync('npm config get prefix', { encoding: 'utf-8', timeout: 2000 }).trim();
|
|
49
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(prefix, 'lib', 'node_modules', 'monomind', 'package.json'), 'utf-8'));
|
|
50
|
+
if (pkg.version) return `v${pkg.version}`;
|
|
51
|
+
} catch { /* ignore */ }
|
|
52
|
+
return 'v1.0.6';
|
|
53
|
+
}
|
|
54
|
+
const VERSION = getVersion();
|
|
55
|
+
|
|
56
|
+
// ANSI colors
|
|
57
|
+
const c = {
|
|
58
|
+
reset: '\x1b[0m',
|
|
59
|
+
bold: '\x1b[1m',
|
|
60
|
+
dim: '\x1b[2m',
|
|
61
|
+
red: '\x1b[0;31m',
|
|
62
|
+
green: '\x1b[0;32m',
|
|
63
|
+
yellow: '\x1b[0;33m',
|
|
64
|
+
blue: '\x1b[0;34m',
|
|
65
|
+
purple: '\x1b[0;35m',
|
|
66
|
+
cyan: '\x1b[0;36m',
|
|
67
|
+
brightRed: '\x1b[1;31m',
|
|
68
|
+
brightGreen: '\x1b[1;32m',
|
|
69
|
+
brightYellow: '\x1b[1;33m',
|
|
70
|
+
brightBlue: '\x1b[1;34m',
|
|
71
|
+
brightPurple: '\x1b[1;35m',
|
|
72
|
+
brightCyan: '\x1b[1;36m',
|
|
73
|
+
brightWhite: '\x1b[1;37m',
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// Safe execSync with strict timeout (returns empty string on failure)
|
|
77
|
+
function safeExec(cmd, timeoutMs = 2000) {
|
|
78
|
+
try {
|
|
79
|
+
return execSync(cmd, {
|
|
80
|
+
encoding: 'utf-8',
|
|
81
|
+
timeout: timeoutMs,
|
|
82
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
83
|
+
}).trim();
|
|
84
|
+
} catch {
|
|
85
|
+
return '';
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Safe JSON file reader (returns null on failure)
|
|
90
|
+
function readJSON(filePath) {
|
|
91
|
+
try {
|
|
92
|
+
if (fs.existsSync(filePath)) {
|
|
93
|
+
return JSON.parse(fs.readFileSync(filePath, 'utf-8'));
|
|
94
|
+
}
|
|
95
|
+
} catch { /* ignore */ }
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Safe file stat (returns null on failure)
|
|
100
|
+
function safeStat(filePath) {
|
|
101
|
+
try {
|
|
102
|
+
return fs.statSync(filePath);
|
|
103
|
+
} catch { /* ignore */ }
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Shared settings cache โ read once, used by multiple functions
|
|
108
|
+
let _settingsCache = undefined;
|
|
109
|
+
function getSettings() {
|
|
110
|
+
if (_settingsCache !== undefined) return _settingsCache;
|
|
111
|
+
_settingsCache = readJSON(path.join(CWD, '.claude', 'settings.json'))
|
|
112
|
+
|| readJSON(path.join(CWD, '.claude', 'settings.local.json'))
|
|
113
|
+
|| null;
|
|
114
|
+
return _settingsCache;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// โโโ Data Collection (all pure-Node.js or single-exec) โโโโโโโโโโ
|
|
118
|
+
|
|
119
|
+
// Get all git info in ONE shell call
|
|
120
|
+
function getGitInfo() {
|
|
121
|
+
const result = {
|
|
122
|
+
name: 'user', gitBranch: '', modified: 0, untracked: 0,
|
|
123
|
+
staged: 0, ahead: 0, behind: 0,
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// Single shell: get user.name, branch, porcelain status, and upstream diff
|
|
127
|
+
const script = [
|
|
128
|
+
'git config user.name 2>/dev/null || echo user',
|
|
129
|
+
'echo "---SEP---"',
|
|
130
|
+
'git branch --show-current 2>/dev/null',
|
|
131
|
+
'echo "---SEP---"',
|
|
132
|
+
'git status --porcelain 2>/dev/null',
|
|
133
|
+
'echo "---SEP---"',
|
|
134
|
+
'git rev-list --left-right --count HEAD...@{upstream} 2>/dev/null || echo "0 0"',
|
|
135
|
+
].join('; ');
|
|
136
|
+
|
|
137
|
+
const raw = safeExec(`sh -c '${script}'`, 3000);
|
|
138
|
+
if (!raw) return result;
|
|
139
|
+
|
|
140
|
+
const parts = raw.split('---SEP---').map(s => s.trim());
|
|
141
|
+
if (parts.length >= 4) {
|
|
142
|
+
result.name = parts[0] || 'user';
|
|
143
|
+
result.gitBranch = parts[1] || '';
|
|
144
|
+
|
|
145
|
+
// Parse porcelain status
|
|
146
|
+
if (parts[2]) {
|
|
147
|
+
for (const line of parts[2].split('\n')) {
|
|
148
|
+
if (!line || line.length < 2) continue;
|
|
149
|
+
const x = line[0], y = line[1];
|
|
150
|
+
if (x === '?' && y === '?') { result.untracked++; continue; }
|
|
151
|
+
if (x !== ' ' && x !== '?') result.staged++;
|
|
152
|
+
if (y !== ' ' && y !== '?') result.modified++;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Parse ahead/behind
|
|
157
|
+
const ab = (parts[3] || '0 0').split(/\s+/);
|
|
158
|
+
result.ahead = parseInt(ab[0]) || 0;
|
|
159
|
+
result.behind = parseInt(ab[1]) || 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return result;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// Normalise a model ID string to a short display name
|
|
166
|
+
function modelLabel(id) {
|
|
167
|
+
if (id.includes('opus')) return 'Opus 4.6';
|
|
168
|
+
if (id.includes('sonnet')) return 'Sonnet 4.6';
|
|
169
|
+
if (id.includes('haiku')) return 'Haiku 4.5';
|
|
170
|
+
return id.split('-').slice(1, 3).join(' ');
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Read the last assistant model from the most recent session JSONL.
|
|
174
|
+
// Claude Code writes each assistant turn to ~/.claude/projects/<escaped-cwd>/<uuid>.jsonl
|
|
175
|
+
// with a "message.model" field โ this is the most accurate live source and
|
|
176
|
+
// correctly reflects /model session overrides.
|
|
177
|
+
function getModelFromSessionJSONL() {
|
|
178
|
+
try {
|
|
179
|
+
// Escape CWD the same way Claude Code does: replace '/' with '-'
|
|
180
|
+
const escaped = CWD.replace(/\//g, '-');
|
|
181
|
+
const projectsDir = path.join(os.homedir(), '.claude', 'projects', escaped);
|
|
182
|
+
if (!fs.existsSync(projectsDir)) return null;
|
|
183
|
+
|
|
184
|
+
// Most recently modified JSONL = current (or latest) session
|
|
185
|
+
const files = fs.readdirSync(projectsDir)
|
|
186
|
+
.filter(f => f.endsWith('.jsonl'))
|
|
187
|
+
.map(f => ({ f, mt: (() => { try { return fs.statSync(path.join(projectsDir, f)).mtimeMs; } catch { return 0; } })() }))
|
|
188
|
+
.sort((a, b) => b.mt - a.mt);
|
|
189
|
+
if (files.length === 0) return null;
|
|
190
|
+
|
|
191
|
+
const sessionFile = path.join(projectsDir, files[0].f);
|
|
192
|
+
const raw = fs.readFileSync(sessionFile, 'utf-8');
|
|
193
|
+
const lines = raw.split('\n').filter(Boolean);
|
|
194
|
+
|
|
195
|
+
// Scan from the end to find the most recent assistant model
|
|
196
|
+
for (let i = lines.length - 1; i >= 0; i--) {
|
|
197
|
+
try {
|
|
198
|
+
const entry = JSON.parse(lines[i]);
|
|
199
|
+
const model = entry?.message?.model || entry?.model;
|
|
200
|
+
if (model && typeof model === 'string' && model.startsWith('claude')) {
|
|
201
|
+
return model;
|
|
202
|
+
}
|
|
203
|
+
} catch { /* skip malformed line */ }
|
|
204
|
+
}
|
|
205
|
+
} catch { /* ignore */ }
|
|
206
|
+
return null;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Detect model name from Claude config (pure file reads, no exec)
|
|
210
|
+
function getModelName() {
|
|
211
|
+
// PRIMARY: scan the live session JSONL โ reflects /model overrides in real time
|
|
212
|
+
const sessionModel = getModelFromSessionJSONL();
|
|
213
|
+
if (sessionModel) return modelLabel(sessionModel);
|
|
214
|
+
|
|
215
|
+
// SECONDARY: ~/.claude.json lastModelUsage for this exact project path
|
|
216
|
+
// (longest-prefix match to avoid short paths like /Users matching first)
|
|
217
|
+
try {
|
|
218
|
+
const claudeConfig = readJSON(path.join(os.homedir(), '.claude.json'));
|
|
219
|
+
if (claudeConfig?.projects) {
|
|
220
|
+
let bestMatch = null;
|
|
221
|
+
let bestLen = -1;
|
|
222
|
+
for (const [projectPath, projectConfig] of Object.entries(claudeConfig.projects)) {
|
|
223
|
+
if (CWD === projectPath || CWD.startsWith(projectPath + '/')) {
|
|
224
|
+
if (projectPath.length > bestLen) {
|
|
225
|
+
bestLen = projectPath.length;
|
|
226
|
+
bestMatch = projectConfig;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
if (bestMatch?.lastModelUsage) {
|
|
231
|
+
const usage = bestMatch.lastModelUsage;
|
|
232
|
+
const ids = Object.keys(usage);
|
|
233
|
+
if (ids.length > 0) {
|
|
234
|
+
let bestId = ids[ids.length - 1];
|
|
235
|
+
let bestTokens = -1;
|
|
236
|
+
for (const id of ids) {
|
|
237
|
+
const e = usage[id] || {};
|
|
238
|
+
const tokens = (e.inputTokens || 0) + (e.outputTokens || 0);
|
|
239
|
+
if (tokens > bestTokens) { bestTokens = tokens; bestId = id; }
|
|
240
|
+
}
|
|
241
|
+
return modelLabel(bestId);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
} catch { /* ignore */ }
|
|
246
|
+
|
|
247
|
+
// TERTIARY: settings.json model field (configured default, not live session).
|
|
248
|
+
const settings = getSettings();
|
|
249
|
+
if (settings?.model) return modelLabel(settings.model);
|
|
250
|
+
|
|
251
|
+
// QUATERNARY: read ANTHROPIC_MODEL or CLAUDE_MODEL env var (set by the CLI at launch)
|
|
252
|
+
const envModel = process.env.ANTHROPIC_MODEL || process.env.CLAUDE_MODEL || process.env.MODEL;
|
|
253
|
+
if (envModel && envModel.startsWith('claude')) return modelLabel(envModel);
|
|
254
|
+
|
|
255
|
+
// QUINARY: current model from the model ID in the env injected by Claude Code itself
|
|
256
|
+
const claudeModel = process.env.CLAUDE_CODE_MODEL;
|
|
257
|
+
if (claudeModel) return modelLabel(claudeModel);
|
|
258
|
+
|
|
259
|
+
return 'Sonnet 4.6'; // known current default rather than the generic "Claude Code"
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// Get learning stats from memory database (pure stat calls)
|
|
263
|
+
function getLearningStats() {
|
|
264
|
+
const memoryPaths = [
|
|
265
|
+
path.join(CWD, '.swarm', 'memory.db'),
|
|
266
|
+
path.join(CWD, '.monomind', 'memory.db'),
|
|
267
|
+
path.join(CWD, '.claude', 'memory.db'),
|
|
268
|
+
path.join(CWD, 'data', 'memory.db'),
|
|
269
|
+
path.join(CWD, '.agentdb', 'memory.db'),
|
|
270
|
+
];
|
|
271
|
+
|
|
272
|
+
for (const dbPath of memoryPaths) {
|
|
273
|
+
const stat = safeStat(dbPath);
|
|
274
|
+
if (stat) {
|
|
275
|
+
const sizeKB = stat.size / 1024;
|
|
276
|
+
const patterns = Math.floor(sizeKB / 2);
|
|
277
|
+
return {
|
|
278
|
+
patterns,
|
|
279
|
+
sessions: Math.max(1, Math.floor(patterns / 10)),
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// Check session files count
|
|
285
|
+
let sessions = 0;
|
|
286
|
+
try {
|
|
287
|
+
const sessDir = path.join(CWD, '.claude', 'sessions');
|
|
288
|
+
if (fs.existsSync(sessDir)) {
|
|
289
|
+
sessions = fs.readdirSync(sessDir).filter(f => f.endsWith('.json')).length;
|
|
290
|
+
}
|
|
291
|
+
} catch { /* ignore */ }
|
|
292
|
+
|
|
293
|
+
return { patterns: 0, sessions };
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// progress from metrics files (pure file reads)
|
|
297
|
+
function getv1Progress() {
|
|
298
|
+
const learning = getLearningStats();
|
|
299
|
+
const totalDomains = 5;
|
|
300
|
+
|
|
301
|
+
const dddData = readJSON(path.join(CWD, '.monomind', 'metrics', 'ddd-progress.json'));
|
|
302
|
+
let dddProgress = dddData?.progress || 0;
|
|
303
|
+
let domainsCompleted = Math.min(5, Math.floor(dddProgress / 20));
|
|
304
|
+
|
|
305
|
+
if (dddProgress === 0 && learning.patterns > 0) {
|
|
306
|
+
if (learning.patterns >= 500) domainsCompleted = 5;
|
|
307
|
+
else if (learning.patterns >= 200) domainsCompleted = 4;
|
|
308
|
+
else if (learning.patterns >= 100) domainsCompleted = 3;
|
|
309
|
+
else if (learning.patterns >= 50) domainsCompleted = 2;
|
|
310
|
+
else if (learning.patterns >= 10) domainsCompleted = 1;
|
|
311
|
+
dddProgress = Math.floor((domainsCompleted / totalDomains) * 100);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return {
|
|
315
|
+
domainsCompleted, totalDomains, dddProgress,
|
|
316
|
+
patternsLearned: learning.patterns,
|
|
317
|
+
sessionsCompleted: learning.sessions,
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// Security status (pure file reads)
|
|
322
|
+
function getSecurityStatus() {
|
|
323
|
+
const auditData = readJSON(path.join(CWD, '.monomind', 'security', 'audit-status.json'));
|
|
324
|
+
if (auditData) {
|
|
325
|
+
const auditDate = auditData.lastAudit || auditData.lastScan;
|
|
326
|
+
if (!auditDate) {
|
|
327
|
+
// No audit has ever run โ show as pending, not stale
|
|
328
|
+
return { status: 'PENDING', cvesFixed: 0, totalCves: 0 };
|
|
329
|
+
}
|
|
330
|
+
const auditAge = Date.now() - new Date(auditDate).getTime();
|
|
331
|
+
const isStale = auditAge > 7 * 24 * 60 * 60 * 1000;
|
|
332
|
+
return {
|
|
333
|
+
status: isStale ? 'STALE' : (auditData.status || 'PENDING'),
|
|
334
|
+
cvesFixed: auditData.cvesFixed || 0,
|
|
335
|
+
totalCves: auditData.totalCves || 0,
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
let scanCount = 0;
|
|
340
|
+
try {
|
|
341
|
+
const scanDir = path.join(CWD, '.claude', 'security-scans');
|
|
342
|
+
if (fs.existsSync(scanDir)) {
|
|
343
|
+
scanCount = fs.readdirSync(scanDir).filter(f => f.endsWith('.json')).length;
|
|
344
|
+
}
|
|
345
|
+
} catch { /* ignore */ }
|
|
346
|
+
|
|
347
|
+
return {
|
|
348
|
+
status: scanCount > 0 ? 'SCANNED' : 'NONE',
|
|
349
|
+
cvesFixed: 0,
|
|
350
|
+
totalCves: 0,
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// Swarm status (pure file reads, NO ps aux)
|
|
355
|
+
function getSwarmStatus() {
|
|
356
|
+
const staleThresholdMs = 5 * 60 * 1000;
|
|
357
|
+
const agentRegTtlMs = 30 * 60 * 1000; // registration files expire after 30 min
|
|
358
|
+
const now = Date.now();
|
|
359
|
+
|
|
360
|
+
// PRIMARY: count live registration files written by SubagentStart hook
|
|
361
|
+
// Each file = one active sub-agent. Stale files (>30 min) are ignored.
|
|
362
|
+
const regDir = path.join(CWD, '.monomind', 'agents', 'registrations');
|
|
363
|
+
if (fs.existsSync(regDir)) {
|
|
364
|
+
try {
|
|
365
|
+
const files = fs.readdirSync(regDir).filter(f => f.endsWith('.json'));
|
|
366
|
+
const liveCount = files.filter(f => {
|
|
367
|
+
try {
|
|
368
|
+
return (now - fs.statSync(path.join(regDir, f)).mtimeMs) < agentRegTtlMs;
|
|
369
|
+
} catch { return false; }
|
|
370
|
+
}).length;
|
|
371
|
+
if (liveCount > 0) {
|
|
372
|
+
return {
|
|
373
|
+
activeAgents: liveCount,
|
|
374
|
+
maxAgents: CONFIG.maxAgents,
|
|
375
|
+
coordinationActive: true,
|
|
376
|
+
lastActive: liveCount,
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
} catch { /* fall through */ }
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// SECONDARY: swarm-state.json written by MCP swarm_init โ trust if fresh
|
|
383
|
+
const swarmStatePath = path.join(CWD, '.monomind', 'swarm', 'swarm-state.json');
|
|
384
|
+
const swarmState = readJSON(swarmStatePath);
|
|
385
|
+
if (swarmState) {
|
|
386
|
+
const updatedAt = swarmState.updatedAt || swarmState.startedAt;
|
|
387
|
+
const age = updatedAt ? now - new Date(updatedAt).getTime() : Infinity;
|
|
388
|
+
if (age < staleThresholdMs) {
|
|
389
|
+
const sc = swarmState.agents?.length || swarmState.agentCount || 0;
|
|
390
|
+
return {
|
|
391
|
+
activeAgents: sc,
|
|
392
|
+
maxAgents: swarmState.maxAgents || CONFIG.maxAgents,
|
|
393
|
+
coordinationActive: true,
|
|
394
|
+
lastActive: sc,
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
// TERTIARY: swarm-activity.json refreshed by post-task hook
|
|
400
|
+
const activityData = readJSON(path.join(CWD, '.monomind', 'metrics', 'swarm-activity.json'));
|
|
401
|
+
if (activityData?.swarm) {
|
|
402
|
+
const updatedAt = activityData.timestamp || activityData.swarm.timestamp;
|
|
403
|
+
const age = updatedAt ? now - new Date(updatedAt).getTime() : Infinity;
|
|
404
|
+
if (age < staleThresholdMs) {
|
|
405
|
+
return {
|
|
406
|
+
activeAgents: activityData.swarm.agent_count || 0,
|
|
407
|
+
maxAgents: CONFIG.maxAgents,
|
|
408
|
+
coordinationActive: activityData.swarm.coordination_active || activityData.swarm.active || false,
|
|
409
|
+
lastActive: activityData.swarm.lastActive || 0,
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
// Only show lastActive if data is recent enough (< 1 hour) and plausible (โค maxAgents)
|
|
413
|
+
const displayTtlMs = 60 * 60 * 1000;
|
|
414
|
+
const lastActive = (age < displayTtlMs)
|
|
415
|
+
? Math.min(activityData.swarm.lastActive || 0, CONFIG.maxAgents)
|
|
416
|
+
: 0;
|
|
417
|
+
return {
|
|
418
|
+
activeAgents: 0,
|
|
419
|
+
maxAgents: CONFIG.maxAgents,
|
|
420
|
+
coordinationActive: false,
|
|
421
|
+
lastActive,
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
return { activeAgents: 0, maxAgents: CONFIG.maxAgents, coordinationActive: false, lastActive: 0 };
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// System metrics (uses process.memoryUsage() โ no shell spawn)
|
|
429
|
+
function getSystemMetrics() {
|
|
430
|
+
const memoryMB = Math.floor(process.memoryUsage().heapUsed / 1024 / 1024);
|
|
431
|
+
const learning = getLearningStats();
|
|
432
|
+
const agentdb = getAgentDBStats();
|
|
433
|
+
|
|
434
|
+
// Intelligence from learning.json
|
|
435
|
+
const learningData = readJSON(path.join(CWD, '.monomind', 'metrics', 'learning.json'));
|
|
436
|
+
let intelligencePct = 0;
|
|
437
|
+
let contextPct = 0;
|
|
438
|
+
|
|
439
|
+
if (learningData?.intelligence?.score !== undefined) {
|
|
440
|
+
intelligencePct = Math.min(100, Math.floor(learningData.intelligence.score));
|
|
441
|
+
} else {
|
|
442
|
+
// Use actual vector/entry counts โ 2000 entries = 100%
|
|
443
|
+
const fromPatterns = learning.patterns > 0 ? Math.min(100, Math.floor(learning.patterns / 20)) : 0;
|
|
444
|
+
const fromVectors = agentdb.vectorCount > 0 ? Math.min(100, Math.floor(agentdb.vectorCount / 20)) : 0;
|
|
445
|
+
intelligencePct = Math.max(fromPatterns, fromVectors);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// Maturity fallback (pure fs checks, no git exec)
|
|
449
|
+
if (intelligencePct === 0) {
|
|
450
|
+
let score = 0;
|
|
451
|
+
if (fs.existsSync(path.join(CWD, '.claude'))) score += 15;
|
|
452
|
+
const srcDirs = ['src', 'lib', 'app', 'packages', 'v1'];
|
|
453
|
+
for (const d of srcDirs) { if (fs.existsSync(path.join(CWD, d))) { score += 15; break; } }
|
|
454
|
+
const testDirs = ['tests', 'test', '__tests__', 'spec'];
|
|
455
|
+
for (const d of testDirs) { if (fs.existsSync(path.join(CWD, d))) { score += 10; break; } }
|
|
456
|
+
const cfgFiles = ['package.json', 'tsconfig.json', 'pyproject.toml', 'Cargo.toml', 'go.mod'];
|
|
457
|
+
for (const f of cfgFiles) { if (fs.existsSync(path.join(CWD, f))) { score += 5; break; } }
|
|
458
|
+
intelligencePct = Math.min(100, score);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
if (learningData?.sessions?.total !== undefined) {
|
|
462
|
+
contextPct = Math.min(100, learningData.sessions.total * 5);
|
|
463
|
+
} else {
|
|
464
|
+
contextPct = Math.min(100, Math.floor(learning.sessions * 5));
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// Sub-agents from file metrics (no ps aux)
|
|
468
|
+
let subAgents = 0;
|
|
469
|
+
const activityData = readJSON(path.join(CWD, '.monomind', 'metrics', 'swarm-activity.json'));
|
|
470
|
+
if (activityData?.processes?.estimated_agents) {
|
|
471
|
+
subAgents = activityData.processes.estimated_agents;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
return { memoryMB, contextPct, intelligencePct, subAgents };
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// ADR status (count files only โ don't read contents)
|
|
478
|
+
function getADRStatus() {
|
|
479
|
+
// Count actual ADR files first โ compliance JSON may be stale
|
|
480
|
+
const adrPaths = [
|
|
481
|
+
path.join(CWD, 'packages', 'implementation', 'adrs'),
|
|
482
|
+
path.join(CWD, 'docs', 'adrs'),
|
|
483
|
+
path.join(CWD, '.monomind', 'adrs'),
|
|
484
|
+
];
|
|
485
|
+
|
|
486
|
+
for (const adrPath of adrPaths) {
|
|
487
|
+
try {
|
|
488
|
+
if (fs.existsSync(adrPath)) {
|
|
489
|
+
const files = fs.readdirSync(adrPath).filter(f =>
|
|
490
|
+
f.endsWith('.md') && (f.startsWith('ADR-') || f.startsWith('adr-') || /^\d{4}-/.test(f))
|
|
491
|
+
);
|
|
492
|
+
// Report actual count โ don't guess compliance without reading files
|
|
493
|
+
return { count: files.length, implemented: files.length, compliance: 0 };
|
|
494
|
+
}
|
|
495
|
+
} catch { /* ignore */ }
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
return { count: 0, implemented: 0, compliance: 0 };
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
// Hooks status (shared settings cache)
|
|
502
|
+
function getHooksStatus() {
|
|
503
|
+
let enabled = 0;
|
|
504
|
+
let total = 0;
|
|
505
|
+
const settings = getSettings();
|
|
506
|
+
|
|
507
|
+
if (settings?.hooks) {
|
|
508
|
+
for (const category of Object.keys(settings.hooks)) {
|
|
509
|
+
const matchers = settings.hooks[category];
|
|
510
|
+
if (!Array.isArray(matchers)) continue;
|
|
511
|
+
for (const matcher of matchers) {
|
|
512
|
+
const hooks = matcher?.hooks;
|
|
513
|
+
if (Array.isArray(hooks)) {
|
|
514
|
+
total += hooks.length;
|
|
515
|
+
enabled += hooks.length;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
try {
|
|
522
|
+
const hooksDir = path.join(CWD, '.claude', 'hooks');
|
|
523
|
+
if (fs.existsSync(hooksDir)) {
|
|
524
|
+
const hookFiles = fs.readdirSync(hooksDir).filter(f => f.endsWith('.js') || f.endsWith('.sh')).length;
|
|
525
|
+
total = Math.max(total, hookFiles);
|
|
526
|
+
enabled = Math.max(enabled, hookFiles);
|
|
527
|
+
}
|
|
528
|
+
} catch { /* ignore */ }
|
|
529
|
+
|
|
530
|
+
return { enabled, total };
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
// Active agent โ reads last routing result persisted by hook-handler
|
|
534
|
+
function getActiveAgent() {
|
|
535
|
+
const routeFile = path.join(CWD, '.monomind', 'last-route.json');
|
|
536
|
+
try {
|
|
537
|
+
if (!fs.existsSync(routeFile)) return null;
|
|
538
|
+
const data = JSON.parse(fs.readFileSync(routeFile, 'utf-8'));
|
|
539
|
+
if (!data || !data.agent) return null;
|
|
540
|
+
|
|
541
|
+
// Stale after 30 minutes (session likely changed)
|
|
542
|
+
const age = Date.now() - new Date(data.updatedAt || 0).getTime();
|
|
543
|
+
if (age > 30 * 60 * 1000) return null;
|
|
544
|
+
|
|
545
|
+
// Prefer display name if set (from load-agent), else format the slug
|
|
546
|
+
const displayName = data.name || data.agent
|
|
547
|
+
.replace(/-/g, ' ')
|
|
548
|
+
.replace(/\b\w/g, c => c.toUpperCase());
|
|
549
|
+
|
|
550
|
+
return {
|
|
551
|
+
slug: data.agent,
|
|
552
|
+
name: displayName,
|
|
553
|
+
category: data.category || null,
|
|
554
|
+
confidence: data.confidence || 0,
|
|
555
|
+
activated: data.activated || false, // true = manually loaded extras agent
|
|
556
|
+
extrasMatches: data.extrasMatches || [],
|
|
557
|
+
};
|
|
558
|
+
} catch { return null; }
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
// AgentDB stats โ count real entries, not file-size heuristics
|
|
562
|
+
function getAgentDBStats() {
|
|
563
|
+
let vectorCount = 0;
|
|
564
|
+
let dbSizeKB = 0;
|
|
565
|
+
let namespaces = 0;
|
|
566
|
+
let hasHnsw = false;
|
|
567
|
+
|
|
568
|
+
// 0. PRIMARY: Count drawers from Memory Palace (this is where memories actually live)
|
|
569
|
+
const drawersPath = path.join(CWD, '.monomind', 'palace', 'drawers.jsonl');
|
|
570
|
+
const drawersStat = safeStat(drawersPath);
|
|
571
|
+
if (drawersStat) {
|
|
572
|
+
dbSizeKB += drawersStat.size / 1024;
|
|
573
|
+
try {
|
|
574
|
+
const lines = fs.readFileSync(drawersPath, 'utf-8').split('\n').filter(Boolean);
|
|
575
|
+
if (lines.length > vectorCount) vectorCount = lines.length;
|
|
576
|
+
} catch { /* ignore */ }
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// 1. Count real entries from auto-memory-store.json (intelligence layer)
|
|
580
|
+
const storePath = path.join(CWD, '.monomind', 'data', 'auto-memory-store.json');
|
|
581
|
+
const storeStat = safeStat(storePath);
|
|
582
|
+
if (storeStat) {
|
|
583
|
+
dbSizeKB += storeStat.size / 1024;
|
|
584
|
+
try {
|
|
585
|
+
const store = JSON.parse(fs.readFileSync(storePath, 'utf-8'));
|
|
586
|
+
const storeCount = Array.isArray(store) ? store.length : (store?.entries?.length || 0);
|
|
587
|
+
if (storeCount > vectorCount) vectorCount = storeCount;
|
|
588
|
+
} catch { /* fall back to size estimate */ }
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
// 2. Count entries from ranked-context.json
|
|
592
|
+
const rankedPath = path.join(CWD, '.monomind', 'data', 'ranked-context.json');
|
|
593
|
+
try {
|
|
594
|
+
const ranked = readJSON(rankedPath);
|
|
595
|
+
if (ranked?.entries?.length > vectorCount) vectorCount = ranked.entries.length;
|
|
596
|
+
} catch { /* ignore */ }
|
|
597
|
+
|
|
598
|
+
// 3. Add DB file sizes
|
|
599
|
+
const dbFiles = [
|
|
600
|
+
path.join(CWD, 'data', 'memory.db'),
|
|
601
|
+
path.join(CWD, '.monomind', 'memory.db'),
|
|
602
|
+
path.join(CWD, '.swarm', 'memory.db'),
|
|
603
|
+
];
|
|
604
|
+
for (const f of dbFiles) {
|
|
605
|
+
const stat = safeStat(f);
|
|
606
|
+
if (stat) {
|
|
607
|
+
dbSizeKB += stat.size / 1024;
|
|
608
|
+
namespaces++;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
// 4. Check for graph data
|
|
613
|
+
const graphPath = path.join(CWD, 'data', 'memory.graph');
|
|
614
|
+
const graphStat = safeStat(graphPath);
|
|
615
|
+
if (graphStat) dbSizeKB += graphStat.size / 1024;
|
|
616
|
+
|
|
617
|
+
// 5. HNSW index
|
|
618
|
+
const hnswPaths = [
|
|
619
|
+
path.join(CWD, '.swarm', 'hnsw.index'),
|
|
620
|
+
path.join(CWD, '.monomind', 'hnsw.index'),
|
|
621
|
+
];
|
|
622
|
+
for (const p of hnswPaths) {
|
|
623
|
+
const stat = safeStat(p);
|
|
624
|
+
if (stat) {
|
|
625
|
+
hasHnsw = true;
|
|
626
|
+
break;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// HNSW is available if memory package is present
|
|
631
|
+
if (!hasHnsw) {
|
|
632
|
+
const memPkgPaths = [
|
|
633
|
+
path.join(CWD, 'packages', '@monomind', 'memory', 'dist'),
|
|
634
|
+
path.join(CWD, 'node_modules', '@monomind', 'memory'),
|
|
635
|
+
];
|
|
636
|
+
for (const p of memPkgPaths) {
|
|
637
|
+
if (fs.existsSync(p)) { hasHnsw = true; break; }
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
return { vectorCount, dbSizeKB: Math.floor(dbSizeKB), namespaces, hasHnsw };
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
// Memory Palace stats โ drawers.jsonl + kg.json (the real persistent memory)
|
|
645
|
+
function getMemoryPalaceStats() {
|
|
646
|
+
const palaceDir = path.join(CWD, '.monomind', 'palace');
|
|
647
|
+
let drawers = 0, triples = 0, palaceSizeKB = 0;
|
|
648
|
+
|
|
649
|
+
try {
|
|
650
|
+
const drawersPath = path.join(palaceDir, 'drawers.jsonl');
|
|
651
|
+
if (fs.existsSync(drawersPath)) {
|
|
652
|
+
const stat = safeStat(drawersPath);
|
|
653
|
+
if (stat) palaceSizeKB += stat.size / 1024;
|
|
654
|
+
drawers = fs.readFileSync(drawersPath, 'utf-8').split('\n').filter(Boolean).length;
|
|
655
|
+
}
|
|
656
|
+
} catch { /* ignore */ }
|
|
657
|
+
|
|
658
|
+
try {
|
|
659
|
+
const kgPath = path.join(palaceDir, 'kg.json');
|
|
660
|
+
const kg = readJSON(kgPath);
|
|
661
|
+
if (kg?.triples) {
|
|
662
|
+
triples = kg.triples.length;
|
|
663
|
+
const kgStat = safeStat(kgPath);
|
|
664
|
+
if (kgStat) palaceSizeKB += kgStat.size / 1024;
|
|
665
|
+
}
|
|
666
|
+
} catch { /* ignore */ }
|
|
667
|
+
|
|
668
|
+
return { drawers, triples, palaceSizeKB: Math.floor(palaceSizeKB) };
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// Auto-memory file stats โ reads ~/.claude/projects/<slug>/memory/*.md
|
|
672
|
+
function getAutoMemoryStats() {
|
|
673
|
+
const homeDir = os.homedir();
|
|
674
|
+
const slug = path.resolve(CWD).replace(/\//g, '-');
|
|
675
|
+
const memDir = path.join(homeDir, '.claude', 'projects', slug, 'memory');
|
|
676
|
+
let files = [];
|
|
677
|
+
try {
|
|
678
|
+
files = fs.readdirSync(memDir).filter(f => f.endsWith('.md') && f !== 'MEMORY.md');
|
|
679
|
+
} catch { /* dir may not exist */ }
|
|
680
|
+
|
|
681
|
+
const byType = {};
|
|
682
|
+
for (const fname of files) {
|
|
683
|
+
let type = 'project';
|
|
684
|
+
try {
|
|
685
|
+
const raw = fs.readFileSync(path.join(memDir, fname), 'utf-8').replace(/\r\n/g, '\n');
|
|
686
|
+
const m = raw.match(/^---\n[\s\S]*?type:\s*(\S+)/);
|
|
687
|
+
if (m) type = m[1].trim();
|
|
688
|
+
} catch { /* ignore */ }
|
|
689
|
+
byType[type] = (byType[type] || 0) + 1;
|
|
690
|
+
}
|
|
691
|
+
return { count: files.length, byType };
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
// Token summary โ reads cache written by session-restore hook.
|
|
695
|
+
// Valid for the entire UTC day it was written; expires at midnight UTC.
|
|
696
|
+
function getTokenStats() {
|
|
697
|
+
const cachePath = path.join(CWD, '.monomind', 'metrics', 'token-summary.json');
|
|
698
|
+
const data = readJSON(cachePath);
|
|
699
|
+
if (!data) return null;
|
|
700
|
+
// Reject only if cache is from a different UTC day (midnight boundary)
|
|
701
|
+
const cachedDay = (data.cachedAt || '').slice(0, 10); // "2026-04-15"
|
|
702
|
+
const todayUTC = new Date().toISOString().slice(0, 10);
|
|
703
|
+
if (cachedDay && cachedDay !== todayUTC) return null;
|
|
704
|
+
return {
|
|
705
|
+
todayCost: data.todayCost || 0,
|
|
706
|
+
todayCalls: data.todayCalls || 0,
|
|
707
|
+
monthCost: data.monthCost || 0,
|
|
708
|
+
monthCalls: data.monthCalls || 0,
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
// Test stats (count files only โ NO reading file contents)
|
|
713
|
+
function getTestStats() {
|
|
714
|
+
let testFiles = 0;
|
|
715
|
+
|
|
716
|
+
function countTestFiles(dir, depth = 0) {
|
|
717
|
+
if (depth > 6) return;
|
|
718
|
+
try {
|
|
719
|
+
if (!fs.existsSync(dir)) return;
|
|
720
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
721
|
+
for (const entry of entries) {
|
|
722
|
+
if (entry.isDirectory() && !entry.name.startsWith('.') && entry.name !== 'node_modules') {
|
|
723
|
+
countTestFiles(path.join(dir, entry.name), depth + 1);
|
|
724
|
+
} else if (entry.isFile()) {
|
|
725
|
+
const n = entry.name;
|
|
726
|
+
if (n.includes('.test.') || n.includes('.spec.') || n.includes('_test.') || n.includes('_spec.')) {
|
|
727
|
+
testFiles++;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
} catch { /* ignore */ }
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
// Scan all source directories
|
|
735
|
+
for (const d of ['tests', 'test', '__tests__', 'src', 'v1']) {
|
|
736
|
+
countTestFiles(path.join(CWD, d));
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
// Estimate ~4 test cases per file (avoids reading every file)
|
|
740
|
+
return { testFiles, testCases: testFiles * 4 };
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
// Integration status (shared settings + file checks)
|
|
744
|
+
function getIntegrationStatus() {
|
|
745
|
+
const mcpServers = { total: 0, enabled: 0 };
|
|
746
|
+
const settings = getSettings();
|
|
747
|
+
|
|
748
|
+
if (settings?.mcpServers && typeof settings.mcpServers === 'object') {
|
|
749
|
+
const servers = Object.keys(settings.mcpServers);
|
|
750
|
+
mcpServers.total = servers.length;
|
|
751
|
+
mcpServers.enabled = settings.enabledMcpjsonServers
|
|
752
|
+
? settings.enabledMcpjsonServers.filter(s => servers.includes(s)).length
|
|
753
|
+
: servers.length;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// Fallback: .mcp.json
|
|
757
|
+
if (mcpServers.total === 0) {
|
|
758
|
+
const mcpConfig = readJSON(path.join(CWD, '.mcp.json'))
|
|
759
|
+
|| readJSON(path.join(os.homedir(), '.claude', 'mcp.json'));
|
|
760
|
+
if (mcpConfig?.mcpServers) {
|
|
761
|
+
const s = Object.keys(mcpConfig.mcpServers);
|
|
762
|
+
mcpServers.total = s.length;
|
|
763
|
+
mcpServers.enabled = s.length;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
const hasDatabase = ['.swarm/memory.db', '.monomind/memory.db', 'data/memory.db']
|
|
768
|
+
.some(p => fs.existsSync(path.join(CWD, p)));
|
|
769
|
+
const hasApi = !!(process.env.ANTHROPIC_API_KEY || process.env.OPENAI_API_KEY);
|
|
770
|
+
|
|
771
|
+
return { mcpServers, hasDatabase, hasApi };
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
// Session stats (pure file reads)
|
|
775
|
+
function getSessionStats() {
|
|
776
|
+
for (const p of ['.monomind/session.json', '.claude/session.json']) {
|
|
777
|
+
const data = readJSON(path.join(CWD, p));
|
|
778
|
+
if (data?.startTime) {
|
|
779
|
+
const diffMs = Date.now() - new Date(data.startTime).getTime();
|
|
780
|
+
const mins = Math.floor(diffMs / 60000);
|
|
781
|
+
const duration = mins < 60 ? `${mins}m` : `${Math.floor(mins / 60)}h${mins % 60}m`;
|
|
782
|
+
return { duration };
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
return { duration: '' };
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
// โโโ Extended 256-color palette โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
789
|
+
const x = {
|
|
790
|
+
// Backgrounds (used sparingly for labels)
|
|
791
|
+
bgPurple: '\x1b[48;5;55m',
|
|
792
|
+
bgTeal: '\x1b[48;5;23m',
|
|
793
|
+
bgReset: '\x1b[49m',
|
|
794
|
+
// Foregrounds
|
|
795
|
+
purple: '\x1b[38;5;141m', // soft lavender-purple (brand)
|
|
796
|
+
violet: '\x1b[38;5;99m', // deeper purple
|
|
797
|
+
teal: '\x1b[38;5;51m', // bright teal
|
|
798
|
+
mint: '\x1b[38;5;120m', // soft green
|
|
799
|
+
gold: '\x1b[38;5;220m', // warm gold
|
|
800
|
+
orange: '\x1b[38;5;208m', // alert orange
|
|
801
|
+
coral: '\x1b[38;5;203m', // error red-pink
|
|
802
|
+
sky: '\x1b[38;5;117m', // soft blue
|
|
803
|
+
rose: '\x1b[38;5;218m', // warm pink
|
|
804
|
+
slate: '\x1b[38;5;245m', // neutral grey
|
|
805
|
+
white: '\x1b[38;5;255m', // bright white
|
|
806
|
+
green: '\x1b[38;5;82m', // vivid green
|
|
807
|
+
red: '\x1b[38;5;196m', // vivid red
|
|
808
|
+
yellow: '\x1b[38;5;226m', // vivid yellow
|
|
809
|
+
// Shared
|
|
810
|
+
bold: '\x1b[1m',
|
|
811
|
+
dim: '\x1b[2m',
|
|
812
|
+
reset: '\x1b[0m',
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
// โโ Helpers โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
816
|
+
|
|
817
|
+
// Block progress bar: โฐโฐโฐโฑโฑ (5 blocks)
|
|
818
|
+
function blockBar(current, total, width = 5) {
|
|
819
|
+
const filled = Math.min(width, Math.round((current / Math.max(total, 1)) * width));
|
|
820
|
+
return '\u25B0'.repeat(filled) + `${x.slate}\u25B1${x.reset}`.repeat(width - filled);
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
// Health dot: โ colored by status
|
|
824
|
+
function dot(ok) {
|
|
825
|
+
if (ok === 'good') return `${x.green}โ${x.reset}`;
|
|
826
|
+
if (ok === 'warn') return `${x.gold}โ${x.reset}`;
|
|
827
|
+
if (ok === 'error') return `${x.coral}โ${x.reset}`;
|
|
828
|
+
return `${x.slate}โ${x.reset}`; // 'none'
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// Pill badge: [ LABEL ] with background
|
|
832
|
+
function badge(label, color) {
|
|
833
|
+
return `${color}[${label}]${x.reset}`;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
// Divider character
|
|
837
|
+
const DIV = `${x.slate}โ${x.reset}`;
|
|
838
|
+
const SEP = `${x.slate}โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ${x.reset}`;
|
|
839
|
+
|
|
840
|
+
// Pct โ color
|
|
841
|
+
function pctColor(pct) {
|
|
842
|
+
if (pct >= 75) return x.green;
|
|
843
|
+
if (pct >= 40) return x.gold;
|
|
844
|
+
if (pct > 0) return x.orange;
|
|
845
|
+
return x.slate;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
// Security status โ label + color
|
|
849
|
+
function secBadge(status) {
|
|
850
|
+
if (status === 'CLEAN') return { label: 'โ CLEAN', col: x.green };
|
|
851
|
+
if (status === 'STALE') return { label: 'โณ STALE', col: x.gold };
|
|
852
|
+
if (status === 'IN_PROGRESS') return { label: 'โณ RUNNING', col: x.sky };
|
|
853
|
+
if (status === 'SCANNED') return { label: 'โ SCANNED', col: x.mint };
|
|
854
|
+
if (status === 'PENDING') return { label: 'โธ PENDING', col: x.gold };
|
|
855
|
+
return { label: 'โ NONE', col: x.slate };
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
// โโ Knowledge & trigger stats (Tasks 28 + 32) โโโโโโโโโโโโโโโโโโโโ
|
|
859
|
+
function getKnowledgeStats() {
|
|
860
|
+
const chunksPath = path.join(CWD, '.monomind', 'knowledge', 'chunks.jsonl');
|
|
861
|
+
const skillsPath = path.join(CWD, '.monomind', 'skills.jsonl');
|
|
862
|
+
let chunks = 0, skills = 0;
|
|
863
|
+
try {
|
|
864
|
+
if (fs.existsSync(chunksPath)) {
|
|
865
|
+
chunks = fs.readFileSync(chunksPath, 'utf-8').split('\n').filter(Boolean).length;
|
|
866
|
+
}
|
|
867
|
+
} catch { /* ignore */ }
|
|
868
|
+
try {
|
|
869
|
+
if (fs.existsSync(skillsPath)) {
|
|
870
|
+
skills = fs.readFileSync(skillsPath, 'utf-8').split('\n').filter(Boolean).length;
|
|
871
|
+
}
|
|
872
|
+
} catch { /* ignore */ }
|
|
873
|
+
return { chunks, skills };
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
function getTriggerStats() {
|
|
877
|
+
const indexPath = path.join(CWD, '.monomind', 'trigger-index.json');
|
|
878
|
+
try {
|
|
879
|
+
if (!fs.existsSync(indexPath)) return { triggers: 0, agents: 0 };
|
|
880
|
+
const raw = JSON.parse(fs.readFileSync(indexPath, 'utf-8'));
|
|
881
|
+
const idx = raw.index || raw;
|
|
882
|
+
const triggers = Object.keys(idx).length;
|
|
883
|
+
const agents = Object.values(idx).flat().length;
|
|
884
|
+
return { triggers, agents };
|
|
885
|
+
} catch { return { triggers: 0, agents: 0 }; }
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
function getSIBudget() {
|
|
889
|
+
const SI_LIMIT = 1500;
|
|
890
|
+
const siPath = path.join(CWD, '.agents', 'shared_instructions.md');
|
|
891
|
+
try {
|
|
892
|
+
if (!fs.existsSync(siPath)) return null;
|
|
893
|
+
const len = fs.readFileSync(siPath, 'utf-8').length;
|
|
894
|
+
return { len, pct: Math.round((len / SI_LIMIT) * 100), limit: SI_LIMIT };
|
|
895
|
+
} catch { return null; }
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
// โโ Single-line statusline (compact) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
899
|
+
function generateStatusline() {
|
|
900
|
+
const git = getGitInfo();
|
|
901
|
+
const swarm = getSwarmStatus();
|
|
902
|
+
const system = getSystemMetrics();
|
|
903
|
+
const hooks = getHooksStatus();
|
|
904
|
+
const knowledge = getKnowledgeStats();
|
|
905
|
+
const triggers = getTriggerStats();
|
|
906
|
+
const palace = getMemoryPalaceStats();
|
|
907
|
+
const tokens = getTokenStats();
|
|
908
|
+
const parts = [];
|
|
909
|
+
|
|
910
|
+
// Brand + swarm dot
|
|
911
|
+
const swarmDot = swarm.coordinationActive ? `${x.green}โ${x.reset}` : `${x.slate}โ${x.reset}`;
|
|
912
|
+
parts.push(`${x.bold}${x.purple}โ Monomind${x.reset} ${swarmDot}`);
|
|
913
|
+
|
|
914
|
+
// Git branch + changes (compact)
|
|
915
|
+
if (git.gitBranch) {
|
|
916
|
+
let b = `${x.sky}โ ${x.bold}${git.gitBranch}${x.reset}`;
|
|
917
|
+
if (git.staged > 0) b += ` ${x.green}+${git.staged}${x.reset}`;
|
|
918
|
+
if (git.modified > 0) b += ` ${x.gold}~${git.modified}${x.reset}`;
|
|
919
|
+
if (git.ahead > 0) b += ` ${x.green}โ${git.ahead}${x.reset}`;
|
|
920
|
+
if (git.behind > 0) b += ` ${x.coral}โ${git.behind}${x.reset}`;
|
|
921
|
+
parts.push(b);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
// Model
|
|
925
|
+
parts.push(`${x.violet}${getModelName()}${x.reset}`);
|
|
926
|
+
|
|
927
|
+
// Active agent
|
|
928
|
+
const activeAgent = getActiveAgent();
|
|
929
|
+
if (activeAgent) {
|
|
930
|
+
const isExtras = activeAgent.slug === 'extras' || activeAgent.name === 'Extras';
|
|
931
|
+
if (isExtras && activeAgent.extrasMatches && activeAgent.extrasMatches.length > 0) {
|
|
932
|
+
// Show first specialist name in compact mode
|
|
933
|
+
const first = activeAgent.extrasMatches[0];
|
|
934
|
+
parts.push(`${x.sky}๐ค ${x.bold}${first.name}${x.reset}`);
|
|
935
|
+
} else if (!isExtras) {
|
|
936
|
+
const col = activeAgent.activated ? x.green : x.sky;
|
|
937
|
+
const icon = activeAgent.activated ? 'โ' : '';
|
|
938
|
+
parts.push(icon
|
|
939
|
+
? `${col}${icon} ${x.bold}${activeAgent.name}${x.reset}`
|
|
940
|
+
: `${col}๐ค ${x.bold}${activeAgent.name}${x.reset}`);
|
|
941
|
+
}
|
|
942
|
+
// else: suppress extras with no matches
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
// Intelligence
|
|
946
|
+
const ic = pctColor(system.intelligencePct);
|
|
947
|
+
parts.push(`${ic}๐ก ${system.intelligencePct}%${x.reset}`);
|
|
948
|
+
|
|
949
|
+
// Auto-memory files
|
|
950
|
+
const autoMemCompact = getAutoMemoryStats();
|
|
951
|
+
if (autoMemCompact.count > 0) {
|
|
952
|
+
const typeOrder = ['handoff', 'user', 'feedback', 'project', 'reference'];
|
|
953
|
+
const typeColors = { user: x.sky, feedback: x.gold, project: x.teal, reference: x.violet, handoff: x.coral };
|
|
954
|
+
const typeParts = typeOrder
|
|
955
|
+
.filter(t => autoMemCompact.byType[t] > 0)
|
|
956
|
+
.map(t => `${typeColors[t] || x.slate}${autoMemCompact.byType[t]}${t.slice(0,1)}${x.reset}`);
|
|
957
|
+
const typeSuffix = typeParts.length > 0 ? ` ${typeParts.join(' ')}` : '';
|
|
958
|
+
parts.push(`${x.purple}๐ง ${autoMemCompact.count}m${x.reset}${typeSuffix}`);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
// Knowledge chunks (Task 28) โ show when populated
|
|
962
|
+
if (knowledge.chunks > 0) {
|
|
963
|
+
parts.push(`${x.teal}๐ ${knowledge.chunks}k${x.reset}`);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
// Triggers (Task 32) โ show when populated
|
|
967
|
+
if (triggers.triggers > 0) {
|
|
968
|
+
parts.push(`${x.mint}๐ฏ ${triggers.triggers}t${x.reset}`);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
// Swarm agents โ show active count, or dim recent count when idle
|
|
972
|
+
if (swarm.activeAgents > 0) {
|
|
973
|
+
parts.push(`${x.gold}๐ ${swarm.activeAgents}/${swarm.maxAgents}${x.reset}`);
|
|
974
|
+
} else if ((swarm.lastActive || 0) > 0) {
|
|
975
|
+
parts.push(`${x.slate}๐ ${swarm.lastActive}โ${x.reset}`);
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
// Hooks
|
|
979
|
+
if (hooks.enabled > 0) {
|
|
980
|
+
parts.push(`${x.mint}โก ${hooks.enabled}h${x.reset}`);
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
// Token cost today (from cache)
|
|
984
|
+
if (tokens && tokens.todayCost > 0) {
|
|
985
|
+
const todayFmt = tokens.todayCost >= 100 ? `$${tokens.todayCost.toFixed(2)}` : tokens.todayCost >= 1 ? `$${tokens.todayCost.toFixed(3)}` : `$${tokens.todayCost.toFixed(4)}`;
|
|
986
|
+
parts.push(`${x.gold}๐ฐ ${todayFmt}${x.reset}`);
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
return parts.join(` ${DIV} `);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
// โโ Multi-line dashboard (full mode) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
993
|
+
function generateDashboard() {
|
|
994
|
+
const git = getGitInfo();
|
|
995
|
+
const modelName = getModelName();
|
|
996
|
+
const progress = getv1Progress();
|
|
997
|
+
const security = getSecurityStatus();
|
|
998
|
+
const swarm = getSwarmStatus();
|
|
999
|
+
const system = getSystemMetrics();
|
|
1000
|
+
const adrs = getADRStatus();
|
|
1001
|
+
const hooks = getHooksStatus();
|
|
1002
|
+
const agentdb = getAgentDBStats();
|
|
1003
|
+
const tests = getTestStats();
|
|
1004
|
+
const session = getSessionStats();
|
|
1005
|
+
const integration = getIntegrationStatus();
|
|
1006
|
+
const knowledge = getKnowledgeStats();
|
|
1007
|
+
const triggers = getTriggerStats();
|
|
1008
|
+
const si = getSIBudget();
|
|
1009
|
+
const palace = getMemoryPalaceStats();
|
|
1010
|
+
const autoMem = getAutoMemoryStats();
|
|
1011
|
+
const tokens = getTokenStats();
|
|
1012
|
+
const sec = secBadge(security.status);
|
|
1013
|
+
const activeAgent = getActiveAgent();
|
|
1014
|
+
const lines = [];
|
|
1015
|
+
|
|
1016
|
+
// โโ Header: brand + git + model + session โโโโโโโโโโโโโโโโโโโโ
|
|
1017
|
+
const swarmDot = swarm.coordinationActive ? `${x.green}โ LIVE${x.reset}` : `${x.slate}โ IDLE${x.reset}`;
|
|
1018
|
+
let hdr = `${x.bold}${x.purple}โ Monomind ${VERSION}${x.reset} ${swarmDot} ${x.teal}${x.bold}${git.name}${x.reset}`;
|
|
1019
|
+
|
|
1020
|
+
if (git.gitBranch) {
|
|
1021
|
+
hdr += ` ${DIV} ${x.sky}โ ${x.bold}${git.gitBranch}${x.reset}`;
|
|
1022
|
+
if (git.staged > 0) hdr += ` ${x.green}+${git.staged}${x.reset}`;
|
|
1023
|
+
if (git.modified > 0) hdr += ` ${x.gold}~${git.modified} mod${x.reset}`;
|
|
1024
|
+
if (git.untracked > 0) hdr += ` ${x.slate}?${git.untracked}${x.reset}`;
|
|
1025
|
+
if (git.ahead > 0) hdr += ` ${x.green}โ${git.ahead}${x.reset}`;
|
|
1026
|
+
if (git.behind > 0) hdr += ` ${x.coral}โ${git.behind}${x.reset}`;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
hdr += ` ${DIV} ๐ค ${x.violet}${x.bold}${modelName}${x.reset}`;
|
|
1030
|
+
if (session.duration) hdr += ` ${x.dim}โฑ ${session.duration}${x.reset}`;
|
|
1031
|
+
if (tokens) {
|
|
1032
|
+
const todayFmt = tokens.todayCost >= 100 ? `$${tokens.todayCost.toFixed(2)}` : tokens.todayCost >= 1 ? `$${tokens.todayCost.toFixed(3)}` : `$${tokens.todayCost.toFixed(4)}`;
|
|
1033
|
+
hdr += ` ${DIV} ${x.gold}๐ฐ ${x.bold}${todayFmt}${x.reset}${x.slate} today ยท ${tokens.todayCalls} calls${x.reset}`;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
lines.push(hdr);
|
|
1037
|
+
lines.push(SEP);
|
|
1038
|
+
|
|
1039
|
+
// โโ Row 1: Intelligence & Learning โโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1040
|
+
const intellCol = pctColor(system.intelligencePct);
|
|
1041
|
+
const intellBar = blockBar(system.intelligencePct, 100, 6);
|
|
1042
|
+
|
|
1043
|
+
// Knowledge (Task 28)
|
|
1044
|
+
const knowStr = knowledge.chunks > 0
|
|
1045
|
+
? `${x.teal}๐ ${x.bold}${knowledge.chunks}${x.reset}${x.slate} chunks${x.reset}`
|
|
1046
|
+
: `${x.slate}๐ no chunks${x.reset}`;
|
|
1047
|
+
|
|
1048
|
+
// Skills (Task 45)
|
|
1049
|
+
const skillStr = knowledge.skills > 0
|
|
1050
|
+
? ` ${x.mint}โฆ ${knowledge.skills} skills${x.reset}`
|
|
1051
|
+
: '';
|
|
1052
|
+
|
|
1053
|
+
// Patterns
|
|
1054
|
+
const patStr = progress.patternsLearned > 0
|
|
1055
|
+
? `${x.gold}${progress.patternsLearned >= 1000 ? (progress.patternsLearned / 1000).toFixed(1) + 'k' : progress.patternsLearned} patterns${x.reset}`
|
|
1056
|
+
: `${x.slate}0 patterns${x.reset}`;
|
|
1057
|
+
|
|
1058
|
+
lines.push(
|
|
1059
|
+
`${x.purple}๐ก INTEL${x.reset} ` +
|
|
1060
|
+
`${intellCol}${intellBar} ${x.bold}${system.intelligencePct}%${x.reset} ${DIV} ` +
|
|
1061
|
+
`${knowStr}${skillStr} ${DIV} ` +
|
|
1062
|
+
patStr
|
|
1063
|
+
);
|
|
1064
|
+
lines.push(SEP);
|
|
1065
|
+
|
|
1066
|
+
// โโ Row 2: Agents & Triggers โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1067
|
+
const agentCol = swarm.activeAgents > 0 ? x.green : x.slate;
|
|
1068
|
+
const hookCol = hooks.enabled > 0 ? x.mint : x.slate;
|
|
1069
|
+
|
|
1070
|
+
// Triggers (Task 32)
|
|
1071
|
+
const trigStr = triggers.triggers > 0
|
|
1072
|
+
? `${x.mint}๐ฏ ${x.bold}${triggers.triggers}${x.reset}${x.slate} triggers ยท ${triggers.agents} agents${x.reset}`
|
|
1073
|
+
: `${x.slate}๐ฏ no triggers${x.reset}`;
|
|
1074
|
+
|
|
1075
|
+
// Active agent badge
|
|
1076
|
+
let agentBadge;
|
|
1077
|
+
if (activeAgent) {
|
|
1078
|
+
const isExtras = activeAgent.slug === 'extras' || activeAgent.name === 'Extras';
|
|
1079
|
+
if (isExtras && activeAgent.extrasMatches && activeAgent.extrasMatches.length > 0) {
|
|
1080
|
+
// Show specific specialist names instead of generic "Extras"
|
|
1081
|
+
const specialists = activeAgent.extrasMatches.slice(0, 3);
|
|
1082
|
+
const badgeParts = specialists.map(s => `${x.sky}๐ค ${x.bold}${s.name}${x.reset}`);
|
|
1083
|
+
agentBadge = badgeParts.join(`${x.slate} ${x.reset}`);
|
|
1084
|
+
} else if (isExtras) {
|
|
1085
|
+
// "extras" with no specific matches โ suppress
|
|
1086
|
+
agentBadge = `${x.slate}๐ค no agent routed${x.reset}`;
|
|
1087
|
+
} else {
|
|
1088
|
+
const col = activeAgent.activated ? x.green : x.sky;
|
|
1089
|
+
const mark = activeAgent.activated ? 'โ ACTIVE' : '';
|
|
1090
|
+
const conf = activeAgent.activated ? '' : ` ${x.slate}${(activeAgent.confidence * 100).toFixed(0)}%${x.reset}`;
|
|
1091
|
+
const cat = activeAgent.category ? ` ${x.slate}[${activeAgent.category}]${x.reset}` : '';
|
|
1092
|
+
agentBadge = mark
|
|
1093
|
+
? `${col}${x.bold}${mark}${x.reset} ${col}๐ค ${x.bold}${activeAgent.name}${x.reset}${cat}${conf}`
|
|
1094
|
+
: `${col}๐ค ${x.bold}${activeAgent.name}${x.reset}${cat}${conf}`;
|
|
1095
|
+
}
|
|
1096
|
+
} else {
|
|
1097
|
+
agentBadge = `${x.slate}๐ค no agent routed${x.reset}`;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
// Swarm line: show active count, or "N โ idle" when recently used, or "idle" when never used
|
|
1101
|
+
const swarmCountStr = swarm.activeAgents > 0
|
|
1102
|
+
? `${agentCol}${x.bold}${swarm.activeAgents}${x.reset}${x.slate}/${x.reset}${x.white}${swarm.maxAgents}${x.reset} agents`
|
|
1103
|
+
: (swarm.lastActive || 0) > 0
|
|
1104
|
+
? `${x.slate}${swarm.lastActive}${x.reset}${x.slate}/${swarm.maxAgents} (${x.reset}${x.green}โ done${x.slate})${x.reset}`
|
|
1105
|
+
: `${x.slate}idle${x.reset} `;
|
|
1106
|
+
lines.push(
|
|
1107
|
+
`${x.gold}๐ SWARM${x.reset} ` +
|
|
1108
|
+
`${swarmCountStr} ` +
|
|
1109
|
+
`${hookCol}โก ${hooks.enabled}/${hooks.total} hooks${x.reset} ${DIV} ` +
|
|
1110
|
+
`${trigStr} ${DIV} ` +
|
|
1111
|
+
agentBadge
|
|
1112
|
+
);
|
|
1113
|
+
lines.push(SEP);
|
|
1114
|
+
|
|
1115
|
+
// โโ Row 3: Architecture & Security โโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1116
|
+
const adrCol = adrs.count > 0
|
|
1117
|
+
? (adrs.implemented >= adrs.count ? x.green : x.gold)
|
|
1118
|
+
: x.slate;
|
|
1119
|
+
const adrStr = adrs.count > 0
|
|
1120
|
+
? `${adrCol}${x.bold}${adrs.implemented}${x.reset}${x.slate}/${x.reset}${x.white}${adrs.count}${x.reset} ADRs`
|
|
1121
|
+
: `${x.slate}no ADRs${x.reset}`;
|
|
1122
|
+
|
|
1123
|
+
const dddCol = pctColor(progress.dddProgress);
|
|
1124
|
+
const dddBar = blockBar(progress.dddProgress, 100, 5);
|
|
1125
|
+
|
|
1126
|
+
const cveStatus = security.totalCves === 0
|
|
1127
|
+
? (security.status === 'NONE' ? `${x.slate}not scanned${x.reset}` : `${x.green}โ clean${x.reset}`)
|
|
1128
|
+
: `${x.coral}${security.cvesFixed}/${security.totalCves} fixed${x.reset}`;
|
|
1129
|
+
|
|
1130
|
+
lines.push(
|
|
1131
|
+
`${x.purple}๐งฉ ARCH${x.reset} ` +
|
|
1132
|
+
`${adrStr} ${DIV} ` +
|
|
1133
|
+
`DDD ${dddBar} ${dddCol}${x.bold}${progress.dddProgress}%${x.reset} ${DIV} ` +
|
|
1134
|
+
`๐ก๏ธ ${sec.col}${sec.label}${x.reset} ${DIV} ` +
|
|
1135
|
+
`CVE ${cveStatus}`
|
|
1136
|
+
);
|
|
1137
|
+
lines.push(SEP);
|
|
1138
|
+
|
|
1139
|
+
// โโ Row 4: Memory & Tests โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1140
|
+
const testCol = tests.testFiles > 0 ? x.green : x.slate;
|
|
1141
|
+
const memCol = system.memoryMB > 200 ? x.orange : x.sky;
|
|
1142
|
+
|
|
1143
|
+
// Auto-memory files display
|
|
1144
|
+
const memFileCol = autoMem.count > 0 ? x.purple : x.slate;
|
|
1145
|
+
const memFileStr = autoMem.count > 0
|
|
1146
|
+
? `${memFileCol}${x.bold}${autoMem.count}${x.reset}${x.slate} memories${x.reset}`
|
|
1147
|
+
: `${x.slate}no memories${x.reset}`;
|
|
1148
|
+
const memTypeOrder = ['handoff', 'user', 'feedback', 'project', 'reference'];
|
|
1149
|
+
const typeColors = { user: x.sky, feedback: x.gold, project: x.teal, reference: x.violet, handoff: x.coral };
|
|
1150
|
+
const typeParts = memTypeOrder
|
|
1151
|
+
.filter(t => autoMem.byType[t] > 0)
|
|
1152
|
+
.map(t => `${typeColors[t] || x.slate}${autoMem.byType[t]}${t.slice(0,1)}${x.reset}`);
|
|
1153
|
+
const kgStr = typeParts.length > 0 ? ` ${typeParts.join(' ')}` : '';
|
|
1154
|
+
|
|
1155
|
+
// Total memory size (palace + agentdb)
|
|
1156
|
+
const totalSizeKB = agentdb.dbSizeKB + palace.palaceSizeKB;
|
|
1157
|
+
const sizeDisp = totalSizeKB >= 1024
|
|
1158
|
+
? `${(totalSizeKB / 1024).toFixed(1)} MB` : `${totalSizeKB} KB`;
|
|
1159
|
+
|
|
1160
|
+
// HNSW tag only meaningful if vectors exist
|
|
1161
|
+
const vecTotal = agentdb.vectorCount;
|
|
1162
|
+
const hnswTag = agentdb.hasHnsw ? ` ${x.green}โก HNSW${x.reset}` : '';
|
|
1163
|
+
|
|
1164
|
+
const chips = [];
|
|
1165
|
+
if (integration.mcpServers.total > 0) {
|
|
1166
|
+
const mc = integration.mcpServers.enabled === integration.mcpServers.total ? x.green
|
|
1167
|
+
: integration.mcpServers.enabled > 0 ? x.gold : x.coral;
|
|
1168
|
+
chips.push(`${mc}MCP ${integration.mcpServers.enabled}/${integration.mcpServers.total}${x.reset}`);
|
|
1169
|
+
}
|
|
1170
|
+
if (integration.hasDatabase) chips.push(`${x.green}DB โ${x.reset}`);
|
|
1171
|
+
if (integration.hasApi) chips.push(`${x.green}API โ${x.reset}`);
|
|
1172
|
+
const integStr = chips.length ? chips.join(' ') : `${x.slate}none${x.reset}`;
|
|
1173
|
+
|
|
1174
|
+
lines.push(
|
|
1175
|
+
`${x.teal}๐๏ธ MEMORY${x.reset} ` +
|
|
1176
|
+
`${memFileStr}${kgStr}${hnswTag} ${DIV} ` +
|
|
1177
|
+
`${x.white}${sizeDisp}${x.reset} ${DIV} ` +
|
|
1178
|
+
`${testCol}๐งช ${tests.testFiles} test files${x.reset} ${DIV} ` +
|
|
1179
|
+
integStr
|
|
1180
|
+
);
|
|
1181
|
+
lines.push(SEP);
|
|
1182
|
+
|
|
1183
|
+
// โโ Row 5: Context budget โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1184
|
+
// SI budget (Task 23 monitor)
|
|
1185
|
+
let siStr;
|
|
1186
|
+
if (si) {
|
|
1187
|
+
const siCol = si.pct > 100 ? x.coral : si.pct > 80 ? x.gold : x.green;
|
|
1188
|
+
siStr = `${siCol}๐ SI ${si.pct}% budget${x.reset} ${x.dim}(${si.len}/${si.limit} chars)${x.reset}`;
|
|
1189
|
+
} else {
|
|
1190
|
+
siStr = `${x.slate}๐ no shared instructions${x.reset}`;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
// Domains
|
|
1194
|
+
const domCol = progress.domainsCompleted >= 4 ? x.green
|
|
1195
|
+
: progress.domainsCompleted >= 2 ? x.gold
|
|
1196
|
+
: progress.domainsCompleted >= 1 ? x.orange
|
|
1197
|
+
: x.slate;
|
|
1198
|
+
const domBar = blockBar(progress.domainsCompleted, progress.totalDomains);
|
|
1199
|
+
|
|
1200
|
+
let monthStr = '';
|
|
1201
|
+
if (tokens) {
|
|
1202
|
+
const mFmt = tokens.monthCost >= 100 ? `$${tokens.monthCost.toFixed(2)}` : tokens.monthCost >= 1 ? `$${tokens.monthCost.toFixed(3)}` : `$${tokens.monthCost.toFixed(4)}`;
|
|
1203
|
+
monthStr = ` ${DIV} ${x.gold}๐ ${x.bold}${mFmt}${x.reset}${x.slate} month ยท ${tokens.monthCalls} calls${x.reset}`;
|
|
1204
|
+
}
|
|
1205
|
+
lines.push(
|
|
1206
|
+
`${x.slate}๐ CONTEXT${x.reset} ` +
|
|
1207
|
+
`${siStr} ${DIV} ` +
|
|
1208
|
+
`${x.teal}๐ ${domBar} ${domCol}${x.bold}${progress.domainsCompleted}${x.reset}${x.slate}/${x.reset}${x.white}${progress.totalDomains}${x.reset} domains ${DIV} ` +
|
|
1209
|
+
`${x.dim}๐พ ${system.memoryMB} MB RAM${x.reset}` +
|
|
1210
|
+
monthStr
|
|
1211
|
+
);
|
|
1212
|
+
|
|
1213
|
+
return lines.join('\n');
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
// โโ JSON output โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1217
|
+
function generateJSON() {
|
|
1218
|
+
const git = getGitInfo();
|
|
1219
|
+
return {
|
|
1220
|
+
user: { name: git.name, gitBranch: git.gitBranch, modelName: getModelName() },
|
|
1221
|
+
domains: getv1Progress(),
|
|
1222
|
+
security: getSecurityStatus(),
|
|
1223
|
+
swarm: getSwarmStatus(),
|
|
1224
|
+
system: getSystemMetrics(),
|
|
1225
|
+
adrs: getADRStatus(),
|
|
1226
|
+
hooks: getHooksStatus(),
|
|
1227
|
+
agentdb: getAgentDBStats(),
|
|
1228
|
+
palace: getMemoryPalaceStats(),
|
|
1229
|
+
tokens: getTokenStats(),
|
|
1230
|
+
tests: getTestStats(),
|
|
1231
|
+
git: { modified: git.modified, untracked: git.untracked, staged: git.staged, ahead: git.ahead, behind: git.behind },
|
|
1232
|
+
lastUpdated: new Date().toISOString(),
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
// โโโ Mode state file โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1237
|
+
const MODE_FILE = path.join(CWD, '.monomind', 'statusline-mode.txt');
|
|
1238
|
+
|
|
1239
|
+
function readMode() {
|
|
1240
|
+
try {
|
|
1241
|
+
if (fs.existsSync(MODE_FILE)) {
|
|
1242
|
+
return fs.readFileSync(MODE_FILE, 'utf-8').trim();
|
|
1243
|
+
}
|
|
1244
|
+
} catch { /* ignore */ }
|
|
1245
|
+
return 'full'; // default
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
// โโโ Main โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1249
|
+
if (process.argv.includes('--json')) {
|
|
1250
|
+
console.log(JSON.stringify(generateJSON(), null, 2));
|
|
1251
|
+
} else if (process.argv.includes('--compact')) {
|
|
1252
|
+
console.log(JSON.stringify(generateJSON()));
|
|
1253
|
+
} else if (process.argv.includes('--single-line')) {
|
|
1254
|
+
console.log(generateStatusline());
|
|
1255
|
+
} else if (process.argv.includes('--toggle')) {
|
|
1256
|
+
// Toggle mode and print the new view
|
|
1257
|
+
const current = readMode();
|
|
1258
|
+
const next = current === 'compact' ? 'full' : 'compact';
|
|
1259
|
+
try {
|
|
1260
|
+
fs.mkdirSync(path.dirname(MODE_FILE), { recursive: true });
|
|
1261
|
+
fs.writeFileSync(MODE_FILE, next, 'utf-8');
|
|
1262
|
+
} catch { /* ignore */ }
|
|
1263
|
+
if (next === 'compact') {
|
|
1264
|
+
console.log(generateStatusline());
|
|
1265
|
+
} else {
|
|
1266
|
+
console.log(generateDashboard());
|
|
1267
|
+
}
|
|
1268
|
+
} else {
|
|
1269
|
+
// Default: respect mode state file
|
|
1270
|
+
const mode = readMode();
|
|
1271
|
+
if (mode === 'compact') {
|
|
1272
|
+
console.log(generateStatusline());
|
|
1273
|
+
} else {
|
|
1274
|
+
console.log(generateDashboard());
|
|
1275
|
+
}
|
|
1276
|
+
}
|