monomind 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/monomind.js +50 -0
- package/package.json +10 -69
- package/.claude/agents/academic/academic-anthropologist.md +0 -126
- package/.claude/agents/academic/academic-geographer.md +0 -128
- package/.claude/agents/academic/academic-historian.md +0 -124
- package/.claude/agents/academic/academic-narratologist.md +0 -119
- package/.claude/agents/academic/academic-psychologist.md +0 -119
- package/.claude/agents/analysis/analyze-code-quality.md +0 -58
- package/.claude/agents/analysis/code-analyzer.md +0 -189
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -58
- package/.claude/agents/architecture/system-design/arch-system-design.md +0 -54
- package/.claude/agents/consensus/crdt-synchronizer.md +0 -977
- package/.claude/agents/consensus/performance-benchmarker.md +0 -831
- package/.claude/agents/consensus/quorum-manager.md +0 -803
- package/.claude/agents/consensus/security-manager.md +0 -602
- package/.claude/agents/core/coder.md +0 -262
- package/.claude/agents/core/planner.md +0 -170
- package/.claude/agents/core/researcher.md +0 -192
- package/.claude/agents/core/reviewer.md +0 -327
- package/.claude/agents/core/tester.md +0 -318
- package/.claude/agents/data/ml/data-ml-model.md +0 -76
- package/.claude/agents/design/design-brand-guardian.md +0 -323
- package/.claude/agents/design/design-image-prompt-engineer.md +0 -237
- package/.claude/agents/design/design-inclusive-visuals-specialist.md +0 -72
- package/.claude/agents/design/design-ui-designer.md +0 -384
- package/.claude/agents/design/design-ux-architect.md +0 -470
- package/.claude/agents/design/design-ux-researcher.md +0 -330
- package/.claude/agents/design/design-visual-storyteller.md +0 -150
- package/.claude/agents/design/design-whimsy-injector.md +0 -439
- package/.claude/agents/development/dev-backend-api.md +0 -178
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -52
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -63
- package/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +0 -212
- package/.claude/agents/engineering/engineering-ai-engineer.md +0 -165
- package/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +0 -108
- package/.claude/agents/engineering/engineering-backend-architect.md +0 -254
- package/.claude/agents/engineering/engineering-code-reviewer.md +0 -95
- package/.claude/agents/engineering/engineering-data-engineer.md +0 -307
- package/.claude/agents/engineering/engineering-database-optimizer.md +0 -200
- package/.claude/agents/engineering/engineering-devops-automator.md +0 -430
- package/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +0 -174
- package/.claude/agents/engineering/engineering-feishu-integration-developer.md +0 -607
- package/.claude/agents/engineering/engineering-frontend-developer.md +0 -249
- package/.claude/agents/engineering/engineering-git-workflow-master.md +0 -108
- package/.claude/agents/engineering/engineering-incident-response-commander.md +0 -482
- package/.claude/agents/engineering/engineering-mobile-app-builder.md +0 -499
- package/.claude/agents/engineering/engineering-rapid-prototyper.md +0 -463
- package/.claude/agents/engineering/engineering-security-engineer.md +0 -303
- package/.claude/agents/engineering/engineering-senior-developer.md +0 -195
- package/.claude/agents/engineering/engineering-software-architect.md +0 -100
- package/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +0 -528
- package/.claude/agents/engineering/engineering-sre.md +0 -114
- package/.claude/agents/engineering/engineering-technical-writer.md +0 -412
- package/.claude/agents/engineering/engineering-threat-detection-engineer.md +0 -540
- package/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +0 -351
- package/.claude/agents/game-development/blender/blender-addon-engineer.md +0 -235
- package/.claude/agents/game-development/game-audio-engineer.md +0 -265
- package/.claude/agents/game-development/game-designer.md +0 -168
- package/.claude/agents/game-development/godot/godot-gameplay-scripter.md +0 -335
- package/.claude/agents/game-development/godot/godot-multiplayer-engineer.md +0 -298
- package/.claude/agents/game-development/godot/godot-shader-developer.md +0 -267
- package/.claude/agents/game-development/level-designer.md +0 -209
- package/.claude/agents/game-development/narrative-designer.md +0 -244
- package/.claude/agents/game-development/roblox-studio/roblox-avatar-creator.md +0 -298
- package/.claude/agents/game-development/roblox-studio/roblox-experience-designer.md +0 -306
- package/.claude/agents/game-development/roblox-studio/roblox-systems-scripter.md +0 -326
- package/.claude/agents/game-development/technical-artist.md +0 -230
- package/.claude/agents/game-development/unity/unity-architect.md +0 -272
- package/.claude/agents/game-development/unity/unity-editor-tool-developer.md +0 -311
- package/.claude/agents/game-development/unity/unity-multiplayer-engineer.md +0 -322
- package/.claude/agents/game-development/unity/unity-shader-graph-artist.md +0 -270
- package/.claude/agents/game-development/unreal-engine/unreal-multiplayer-architect.md +0 -314
- package/.claude/agents/game-development/unreal-engine/unreal-systems-engineer.md +0 -311
- package/.claude/agents/game-development/unreal-engine/unreal-technical-artist.md +0 -257
- package/.claude/agents/game-development/unreal-engine/unreal-world-builder.md +0 -274
- package/.claude/agents/github/code-review-swarm.md +0 -557
- package/.claude/agents/github/github-modes.md +0 -154
- package/.claude/agents/github/issue-tracker.md +0 -299
- package/.claude/agents/github/multi-repo-swarm.md +0 -525
- package/.claude/agents/github/pr-manager.md +0 -163
- package/.claude/agents/github/project-board-sync.md +0 -478
- package/.claude/agents/github/release-manager.md +0 -352
- package/.claude/agents/github/release-swarm.md +0 -597
- package/.claude/agents/github/repo-architect.md +0 -378
- package/.claude/agents/github/swarm-issue.md +0 -548
- package/.claude/agents/github/swarm-pr.md +0 -427
- package/.claude/agents/github/sync-coordinator.md +0 -423
- package/.claude/agents/github/workflow-automation.md +0 -640
- package/.claude/agents/goal/agent.md +0 -804
- package/.claude/agents/goal/code-goal-planner.md +0 -445
- package/.claude/agents/goal/goal-planner.md +0 -168
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -129
- package/.claude/agents/hive-mind/queen-coordinator.md +0 -202
- package/.claude/agents/hive-mind/scout-explorer.md +0 -241
- package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -192
- package/.claude/agents/hive-mind/worker-specialist.md +0 -216
- package/.claude/agents/marketing/marketing-ai-citation-strategist.md +0 -171
- package/.claude/agents/marketing/marketing-app-store-optimizer.md +0 -322
- package/.claude/agents/marketing/marketing-baidu-seo-specialist.md +0 -227
- package/.claude/agents/marketing/marketing-bilibili-content-strategist.md +0 -200
- package/.claude/agents/marketing/marketing-book-co-author.md +0 -111
- package/.claude/agents/marketing/marketing-carousel-growth-engine.md +0 -200
- package/.claude/agents/marketing/marketing-china-ecommerce-operator.md +0 -284
- package/.claude/agents/marketing/marketing-content-creator.md +0 -54
- package/.claude/agents/marketing/marketing-cross-border-ecommerce.md +0 -260
- package/.claude/agents/marketing/marketing-douyin-strategist.md +0 -150
- package/.claude/agents/marketing/marketing-growth-hacker.md +0 -54
- package/.claude/agents/marketing/marketing-instagram-curator.md +0 -114
- package/.claude/agents/marketing/marketing-kuaishou-strategist.md +0 -224
- package/.claude/agents/marketing/marketing-linkedin-content-creator.md +0 -215
- package/.claude/agents/marketing/marketing-livestream-commerce-coach.md +0 -306
- package/.claude/agents/marketing/marketing-podcast-strategist.md +0 -278
- package/.claude/agents/marketing/marketing-private-domain-operator.md +0 -309
- package/.claude/agents/marketing/marketing-reddit-community-builder.md +0 -124
- package/.claude/agents/marketing/marketing-seo-specialist.md +0 -279
- package/.claude/agents/marketing/marketing-short-video-editing-coach.md +0 -413
- package/.claude/agents/marketing/marketing-social-media-strategist.md +0 -125
- package/.claude/agents/marketing/marketing-tiktok-strategist.md +0 -126
- package/.claude/agents/marketing/marketing-twitter-engager.md +0 -127
- package/.claude/agents/marketing/marketing-wechat-official-account.md +0 -146
- package/.claude/agents/marketing/marketing-weibo-strategist.md +0 -241
- package/.claude/agents/marketing/marketing-xiaohongshu-specialist.md +0 -139
- package/.claude/agents/marketing/marketing-zhihu-strategist.md +0 -163
- package/.claude/agents/neural/safla-neural.md +0 -74
- package/.claude/agents/optimization/benchmark-suite.md +0 -663
- package/.claude/agents/optimization/load-balancer.md +0 -429
- package/.claude/agents/optimization/performance-monitor.md +0 -670
- package/.claude/agents/optimization/resource-allocator.md +0 -672
- package/.claude/agents/optimization/topology-optimizer.md +0 -806
- package/.claude/agents/paid-media/paid-media-auditor.md +0 -71
- package/.claude/agents/paid-media/paid-media-creative-strategist.md +0 -71
- package/.claude/agents/paid-media/paid-media-paid-social-strategist.md +0 -71
- package/.claude/agents/paid-media/paid-media-ppc-strategist.md +0 -71
- package/.claude/agents/paid-media/paid-media-programmatic-buyer.md +0 -71
- package/.claude/agents/paid-media/paid-media-search-query-analyst.md +0 -71
- package/.claude/agents/paid-media/paid-media-tracking-specialist.md +0 -71
- package/.claude/agents/payments/agentic-payments.md +0 -126
- package/.claude/agents/product/product-behavioral-nudge-engine.md +0 -81
- package/.claude/agents/product/product-feedback-synthesizer.md +0 -119
- package/.claude/agents/product/product-manager.md +0 -469
- package/.claude/agents/product/product-sprint-prioritizer.md +0 -154
- package/.claude/agents/product/product-trend-researcher.md +0 -159
- package/.claude/agents/project-management/project-management-experiment-tracker.md +0 -199
- package/.claude/agents/project-management/project-management-jira-workflow-steward.md +0 -231
- package/.claude/agents/project-management/project-management-project-shepherd.md +0 -195
- package/.claude/agents/project-management/project-management-studio-operations.md +0 -201
- package/.claude/agents/project-management/project-management-studio-producer.md +0 -204
- package/.claude/agents/project-management/project-manager-senior.md +0 -136
- package/.claude/agents/reasoning/agent.md +0 -804
- package/.claude/agents/reasoning/goal-planner.md +0 -73
- package/.claude/agents/sales/sales-account-strategist.md +0 -228
- package/.claude/agents/sales/sales-coach.md +0 -272
- package/.claude/agents/sales/sales-deal-strategist.md +0 -181
- package/.claude/agents/sales/sales-discovery-coach.md +0 -226
- package/.claude/agents/sales/sales-engineer.md +0 -183
- package/.claude/agents/sales/sales-outbound-strategist.md +0 -202
- package/.claude/agents/sales/sales-pipeline-analyst.md +0 -268
- package/.claude/agents/sales/sales-proposal-strategist.md +0 -218
- package/.claude/agents/schemas/architecture-output.json +0 -43
- package/.claude/agents/schemas/code-review-output.json +0 -28
- package/.claude/agents/schemas/generic-task-input.json +0 -12
- package/.claude/agents/schemas/implementation-output.json +0 -18
- package/.claude/agents/schemas/research-output.json +0 -31
- package/.claude/agents/schemas/security-audit-output.json +0 -29
- package/.claude/agents/schemas/test-report-output.json +0 -29
- package/.claude/agents/sona/sona-learning-optimizer.md +0 -65
- package/.claude/agents/sparc/architecture.md +0 -453
- package/.claude/agents/sparc/pseudocode.md +0 -299
- package/.claude/agents/sparc/refinement.md +0 -504
- package/.claude/agents/sparc/specification.md +0 -258
- package/.claude/agents/spatial-computing/macos-spatial-metal-engineer.md +0 -338
- package/.claude/agents/spatial-computing/terminal-integration-specialist.md +0 -71
- package/.claude/agents/spatial-computing/visionos-spatial-engineer.md +0 -55
- package/.claude/agents/specialized/accounts-payable-agent.md +0 -186
- package/.claude/agents/specialized/agentic-identity-trust.md +0 -388
- package/.claude/agents/specialized/agents-orchestrator.md +0 -368
- package/.claude/agents/specialized/automation-governance-architect.md +0 -217
- package/.claude/agents/specialized/blockchain-security-auditor.md +0 -497
- package/.claude/agents/specialized/compliance-auditor.md +0 -159
- package/.claude/agents/specialized/corporate-training-designer.md +0 -193
- package/.claude/agents/specialized/data-consolidation-agent.md +0 -61
- package/.claude/agents/specialized/government-digital-presales-consultant.md +0 -364
- package/.claude/agents/specialized/healthcare-marketing-compliance.md +0 -396
- package/.claude/agents/specialized/identity-graph-operator.md +0 -261
- package/.claude/agents/specialized/lsp-index-engineer.md +0 -315
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -89
- package/.claude/agents/specialized/recruitment-specialist.md +0 -510
- package/.claude/agents/specialized/report-distribution-agent.md +0 -66
- package/.claude/agents/specialized/sales-data-extraction-agent.md +0 -68
- package/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +0 -89
- package/.claude/agents/specialized/specialized-developer-advocate.md +0 -318
- package/.claude/agents/specialized/specialized-document-generator.md +0 -56
- package/.claude/agents/specialized/specialized-french-consulting-market.md +0 -193
- package/.claude/agents/specialized/specialized-korean-business-navigator.md +0 -217
- package/.claude/agents/specialized/specialized-mcp-builder.md +0 -64
- package/.claude/agents/specialized/specialized-model-qa.md +0 -489
- package/.claude/agents/specialized/specialized-salesforce-architect.md +0 -181
- package/.claude/agents/specialized/specialized-workflow-architect.md +0 -598
- package/.claude/agents/specialized/study-abroad-advisor.md +0 -283
- package/.claude/agents/specialized/supply-chain-strategist.md +0 -583
- package/.claude/agents/specialized/zk-steward.md +0 -212
- package/.claude/agents/sublinear/consensus-coordinator.md +0 -333
- package/.claude/agents/sublinear/matrix-optimizer.md +0 -180
- package/.claude/agents/sublinear/pagerank-analyzer.md +0 -295
- package/.claude/agents/sublinear/performance-optimizer.md +0 -363
- package/.claude/agents/sublinear/trading-predictor.md +0 -242
- package/.claude/agents/support/support-analytics-reporter.md +0 -366
- package/.claude/agents/support/support-executive-summary-generator.md +0 -213
- package/.claude/agents/support/support-finance-tracker.md +0 -443
- package/.claude/agents/support/support-infrastructure-maintainer.md +0 -619
- package/.claude/agents/support/support-legal-compliance-checker.md +0 -589
- package/.claude/agents/support/support-support-responder.md +0 -586
- package/.claude/agents/swarm/adaptive-coordinator.md +0 -364
- package/.claude/agents/swarm/hierarchical-coordinator.md +0 -318
- package/.claude/agents/swarm/mesh-coordinator.md +0 -363
- package/.claude/agents/templates/automation-smart-agent.md +0 -185
- package/.claude/agents/templates/coordinator-swarm-init.md +0 -83
- package/.claude/agents/templates/github-pr-manager.md +0 -155
- package/.claude/agents/templates/implementer-sparc-coder.md +0 -231
- package/.claude/agents/templates/memory-coordinator.md +0 -163
- package/.claude/agents/templates/migration-plan.md +0 -724
- package/.claude/agents/templates/orchestrator-task.md +0 -120
- package/.claude/agents/templates/performance-analyzer.md +0 -179
- package/.claude/agents/templates/sparc-coordinator.md +0 -163
- package/.claude/agents/testing/production-validator.md +0 -374
- package/.claude/agents/testing/tdd-london-swarm.md +0 -241
- package/.claude/agents/testing/testing-accessibility-auditor.md +0 -322
- package/.claude/agents/testing/testing-api-tester.md +0 -307
- package/.claude/agents/testing/testing-evidence-collector.md +0 -211
- package/.claude/agents/testing/testing-performance-benchmarker.md +0 -269
- package/.claude/agents/testing/testing-reality-checker.md +0 -237
- package/.claude/agents/testing/testing-test-results-analyzer.md +0 -306
- package/.claude/agents/testing/testing-tool-evaluator.md +0 -395
- package/.claude/agents/testing/testing-workflow-optimizer.md +0 -451
- package/.claude/agents/v3/integration-architect.md +0 -338
- package/.claude/agents/v3/memory-specialist.md +0 -298
- package/.claude/agents/v3/performance-engineer.md +0 -387
- package/.claude/agents/v3/queen-coordinator.md +0 -67
- package/.claude/agents/v3/security-architect.md +0 -154
- package/.claude/checkpoints/1767754460.json +0 -8
- package/.claude/commands/agents/README.md +0 -10
- package/.claude/commands/agents/agent-capabilities.md +0 -21
- package/.claude/commands/agents/agent-coordination.md +0 -28
- package/.claude/commands/agents/agent-spawning.md +0 -28
- package/.claude/commands/agents/agent-types.md +0 -26
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
- package/.claude/commands/analysis/README.md +0 -9
- package/.claude/commands/analysis/bottleneck-detect.md +0 -162
- package/.claude/commands/analysis/performance-bottlenecks.md +0 -59
- package/.claude/commands/analysis/performance-report.md +0 -25
- package/.claude/commands/analysis/token-efficiency.md +0 -45
- package/.claude/commands/analysis/token-usage.md +0 -25
- package/.claude/commands/automation/README.md +0 -9
- package/.claude/commands/automation/auto-agent.md +0 -122
- package/.claude/commands/automation/self-healing.md +0 -106
- package/.claude/commands/automation/session-memory.md +0 -90
- package/.claude/commands/automation/smart-agents.md +0 -73
- package/.claude/commands/automation/smart-spawn.md +0 -25
- package/.claude/commands/automation/workflow-select.md +0 -25
- package/.claude/commands/browse.md +0 -27
- package/.claude/commands/coordination/README.md +0 -9
- package/.claude/commands/coordination/agent-spawn.md +0 -25
- package/.claude/commands/coordination/init.md +0 -44
- package/.claude/commands/coordination/orchestrate.md +0 -43
- package/.claude/commands/coordination/spawn.md +0 -45
- package/.claude/commands/coordination/swarm-init.md +0 -85
- package/.claude/commands/coordination/task-orchestrate.md +0 -25
- package/.claude/commands/github/README.md +0 -11
- package/.claude/commands/github/code-review-swarm.md +0 -550
- package/.claude/commands/github/code-review.md +0 -25
- package/.claude/commands/github/github-modes.md +0 -147
- package/.claude/commands/github/github-swarm.md +0 -121
- package/.claude/commands/github/issue-tracker.md +0 -292
- package/.claude/commands/github/issue-triage.md +0 -25
- package/.claude/commands/github/multi-repo-swarm.md +0 -519
- package/.claude/commands/github/pr-enhance.md +0 -26
- package/.claude/commands/github/pr-manager.md +0 -170
- package/.claude/commands/github/project-board-sync.md +0 -471
- package/.claude/commands/github/release-manager.md +0 -355
- package/.claude/commands/github/release-swarm.md +0 -590
- package/.claude/commands/github/repo-analyze.md +0 -25
- package/.claude/commands/github/repo-architect.md +0 -381
- package/.claude/commands/github/swarm-issue.md +0 -482
- package/.claude/commands/github/swarm-pr.md +0 -310
- package/.claude/commands/github/sync-coordinator.md +0 -301
- package/.claude/commands/github/workflow-automation.md +0 -468
- package/.claude/commands/hive-mind/README.md +0 -17
- package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
- package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
- package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/.claude/commands/hive-mind/hive-mind.md +0 -27
- package/.claude/commands/hooks/README.md +0 -11
- package/.claude/commands/hooks/overview.md +0 -58
- package/.claude/commands/hooks/post-edit.md +0 -117
- package/.claude/commands/hooks/post-task.md +0 -112
- package/.claude/commands/hooks/pre-edit.md +0 -113
- package/.claude/commands/hooks/pre-task.md +0 -111
- package/.claude/commands/hooks/session-end.md +0 -118
- package/.claude/commands/hooks/setup.md +0 -103
- package/.claude/commands/list-agents.md +0 -17
- package/.claude/commands/mastermind.md +0 -121
- package/.claude/commands/memory/README.md +0 -9
- package/.claude/commands/memory/memory-persist.md +0 -25
- package/.claude/commands/memory/memory-search.md +0 -25
- package/.claude/commands/memory/memory-usage.md +0 -25
- package/.claude/commands/memory/neural.md +0 -47
- package/.claude/commands/metrics.md +0 -11
- package/.claude/commands/monitoring/README.md +0 -9
- package/.claude/commands/monitoring/agent-metrics.md +0 -25
- package/.claude/commands/monitoring/agents.md +0 -44
- package/.claude/commands/monitoring/real-time-view.md +0 -25
- package/.claude/commands/monitoring/status.md +0 -46
- package/.claude/commands/monitoring/swarm-monitor.md +0 -25
- package/.claude/commands/monobrain-help.md +0 -103
- package/.claude/commands/monobrain-memory.md +0 -107
- package/.claude/commands/monobrain-swarm.md +0 -205
- package/.claude/commands/monomind-do.md +0 -276
- package/.claude/commands/monomind-idea.md +0 -269
- package/.claude/commands/monomind-repeat.md +0 -95
- package/.claude/commands/optimization/README.md +0 -9
- package/.claude/commands/optimization/auto-topology.md +0 -62
- package/.claude/commands/optimization/cache-manage.md +0 -25
- package/.claude/commands/optimization/parallel-execution.md +0 -50
- package/.claude/commands/optimization/topology-optimize.md +0 -25
- package/.claude/commands/pair/README.md +0 -261
- package/.claude/commands/pair/commands.md +0 -546
- package/.claude/commands/pair/config.md +0 -510
- package/.claude/commands/pair/examples.md +0 -512
- package/.claude/commands/pair/modes.md +0 -348
- package/.claude/commands/pair/session.md +0 -407
- package/.claude/commands/pair/start.md +0 -209
- package/.claude/commands/sparc/analyzer.md +0 -52
- package/.claude/commands/sparc/architect.md +0 -53
- package/.claude/commands/sparc/ask.md +0 -97
- package/.claude/commands/sparc/batch-executor.md +0 -54
- package/.claude/commands/sparc/code.md +0 -89
- package/.claude/commands/sparc/coder.md +0 -54
- package/.claude/commands/sparc/debug.md +0 -83
- package/.claude/commands/sparc/debugger.md +0 -54
- package/.claude/commands/sparc/designer.md +0 -53
- package/.claude/commands/sparc/devops.md +0 -109
- package/.claude/commands/sparc/docs-writer.md +0 -80
- package/.claude/commands/sparc/documenter.md +0 -54
- package/.claude/commands/sparc/innovator.md +0 -54
- package/.claude/commands/sparc/integration.md +0 -83
- package/.claude/commands/sparc/mcp.md +0 -117
- package/.claude/commands/sparc/memory-manager.md +0 -54
- package/.claude/commands/sparc/optimizer.md +0 -54
- package/.claude/commands/sparc/orchestrator.md +0 -132
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +0 -83
- package/.claude/commands/sparc/refinement-optimization-mode.md +0 -83
- package/.claude/commands/sparc/researcher.md +0 -54
- package/.claude/commands/sparc/reviewer.md +0 -54
- package/.claude/commands/sparc/security-review.md +0 -80
- package/.claude/commands/sparc/sparc-modes.md +0 -174
- package/.claude/commands/sparc/sparc.md +0 -111
- package/.claude/commands/sparc/spec-pseudocode.md +0 -80
- package/.claude/commands/sparc/supabase-admin.md +0 -348
- package/.claude/commands/sparc/swarm-coordinator.md +0 -54
- package/.claude/commands/sparc/tdd.md +0 -54
- package/.claude/commands/sparc/tester.md +0 -54
- package/.claude/commands/sparc/tutorial.md +0 -79
- package/.claude/commands/sparc/workflow-manager.md +0 -54
- package/.claude/commands/sparc.md +0 -166
- package/.claude/commands/stream-chain/pipeline.md +0 -121
- package/.claude/commands/stream-chain/run.md +0 -70
- package/.claude/commands/swarm/README.md +0 -15
- package/.claude/commands/swarm/analysis.md +0 -95
- package/.claude/commands/swarm/development.md +0 -96
- package/.claude/commands/swarm/examples.md +0 -168
- package/.claude/commands/swarm/maintenance.md +0 -102
- package/.claude/commands/swarm/optimization.md +0 -117
- package/.claude/commands/swarm/research.md +0 -136
- package/.claude/commands/swarm/swarm-analysis.md +0 -8
- package/.claude/commands/swarm/swarm-background.md +0 -8
- package/.claude/commands/swarm/swarm-modes.md +0 -8
- package/.claude/commands/swarm/swarm-monitor.md +0 -8
- package/.claude/commands/swarm/swarm-status.md +0 -8
- package/.claude/commands/swarm/swarm-strategies.md +0 -8
- package/.claude/commands/swarm/swarm.md +0 -27
- package/.claude/commands/swarm/testing.md +0 -131
- package/.claude/commands/tokens.md +0 -13
- package/.claude/commands/training/README.md +0 -9
- package/.claude/commands/training/model-update.md +0 -25
- package/.claude/commands/training/neural-patterns.md +0 -74
- package/.claude/commands/training/neural-train.md +0 -25
- package/.claude/commands/training/pattern-learn.md +0 -25
- package/.claude/commands/training/specialization.md +0 -63
- package/.claude/commands/truth/start.md +0 -143
- package/.claude/commands/ts.md +0 -9
- package/.claude/commands/use-agent.md +0 -67
- package/.claude/commands/verify/check.md +0 -50
- package/.claude/commands/verify/start.md +0 -128
- package/.claude/commands/workflows/README.md +0 -9
- package/.claude/commands/workflows/development.md +0 -78
- package/.claude/commands/workflows/research.md +0 -63
- package/.claude/commands/workflows/workflow-create.md +0 -25
- package/.claude/commands/workflows/workflow-execute.md +0 -25
- package/.claude/commands/workflows/workflow-export.md +0 -25
- package/.claude/config/v1-dependency-optimization.json +0 -266
- package/.claude/config/v1-performance-targets.json +0 -251
- package/.claude/helpers/README.md +0 -105
- package/.claude/helpers/auto-memory-hook.mjs +0 -369
- package/.claude/helpers/context-persistence-hook.mjs +0 -1988
- package/.claude/helpers/extras-registry.json +0 -3028
- package/.claude/helpers/graphify-freshen.cjs +0 -109
- package/.claude/helpers/hook-handler.cjs +0 -1446
- package/.claude/helpers/intelligence.cjs +0 -227
- package/.claude/helpers/learning-service.mjs +0 -1144
- package/.claude/helpers/memory-palace.cjs +0 -401
- package/.claude/helpers/memory.cjs +0 -84
- package/.claude/helpers/metrics-db.mjs +0 -488
- package/.claude/helpers/router.cjs +0 -306
- package/.claude/helpers/session.cjs +0 -125
- package/.claude/helpers/skill-registry.json +0 -961
- package/.claude/helpers/statusline.cjs +0 -1276
- package/.claude/helpers/swarm-hooks.sh +0 -761
- package/.claude/helpers/toggle-statusline.cjs +0 -58
- package/.claude/helpers/token-tracker.cjs +0 -934
- package/.claude/mcp.json +0 -3
- package/.claude/settings.json +0 -303
- package/.claude/settings.local.json +0 -48
- package/.claude/skills/agent-browser-testing/SKILL.md +0 -312
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
- package/.claude/skills/agentdb-learning/SKILL.md +0 -545
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
- package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
- package/.claude/skills/github-code-review/SKILL.md +0 -1148
- package/.claude/skills/github-multi-repo/SKILL.md +0 -916
- package/.claude/skills/github-project-management/SKILL.md +0 -1250
- package/.claude/skills/github-release-management/SKILL.md +0 -1124
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1111
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -709
- package/.claude/skills/hooks-automation/SKILL.md +0 -1200
- package/.claude/skills/pair-programming/SKILL.md +0 -1202
- package/.claude/skills/performance-analysis/SKILL.md +0 -560
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
- package/.claude/skills/skill-builder/SKILL.md +0 -910
- package/.claude/skills/sparc-methodology/SKILL.md +0 -1106
- package/.claude/skills/specialagent/SKILL.md +0 -208
- package/.claude/skills/stream-chain/SKILL.md +0 -560
- package/.claude/skills/swarm-advanced/SKILL.md +0 -970
- package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
- package/.claude/skills/v3-cli-modernization/SKILL.md +0 -941
- package/.claude/skills/v3-core-implementation/SKILL.md +0 -867
- package/.claude/skills/v3-ddd-architecture/SKILL.md +0 -451
- package/.claude/skills/v3-integration-deep/SKILL.md +0 -258
- package/.claude/skills/v3-mcp-optimization/SKILL.md +0 -816
- package/.claude/skills/v3-memory-unification/SKILL.md +0 -180
- package/.claude/skills/v3-performance-optimization/SKILL.md +0 -408
- package/.claude/skills/v3-security-overhaul/SKILL.md +0 -91
- package/.claude/skills/v3-swarm-coordination/SKILL.md +0 -433
- package/.claude/skills/verification-quality/SKILL.md +0 -674
- package/.claude/statusline-command.sh +0 -176
- package/.claude/statusline.mjs +0 -109
- package/.claude/statusline.sh +0 -431
- package/.claude/workflows/feature-dev.yaml +0 -18
- package/.claude/workflows/security-audit.yaml +0 -10
- package/.claude-plugin/README.md +0 -705
- package/.claude-plugin/docs/INSTALLATION.md +0 -258
- package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -359
- package/.claude-plugin/docs/QUICKSTART.md +0 -360
- package/.claude-plugin/docs/STRUCTURE.md +0 -126
- package/.claude-plugin/hooks/hooks.json +0 -74
- package/.claude-plugin/marketplace.json +0 -98
- package/.claude-plugin/plugin.json +0 -70
- package/.claude-plugin/scripts/install.sh +0 -234
- package/.claude-plugin/scripts/uninstall.sh +0 -36
- package/.claude-plugin/scripts/verify.sh +0 -108
- package/LICENSE +0 -21
- package/README.md +0 -687
- package/bin/cli.js +0 -11
- package/bin/npx-safe-launch.js +0 -9
- package/packages/@monomind/cli/README.md +0 -687
- package/packages/@monomind/cli/bin/cli.js +0 -156
- package/packages/@monomind/cli/bin/mcp-server.js +0 -189
- package/packages/@monomind/cli/bin/preinstall.cjs +0 -2
- package/packages/@monomind/cli/dist/src/agents/halt-signal.d.ts +0 -25
- package/packages/@monomind/cli/dist/src/agents/halt-signal.js +0 -50
- package/packages/@monomind/cli/dist/src/agents/index.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/agents/index.js +0 -13
- package/packages/@monomind/cli/dist/src/agents/managed-agent.d.ts +0 -41
- package/packages/@monomind/cli/dist/src/agents/managed-agent.js +0 -66
- package/packages/@monomind/cli/dist/src/agents/prompt-experiment.d.ts +0 -22
- package/packages/@monomind/cli/dist/src/agents/prompt-experiment.js +0 -49
- package/packages/@monomind/cli/dist/src/agents/prompt-version-manager.d.ts +0 -19
- package/packages/@monomind/cli/dist/src/agents/prompt-version-manager.js +0 -58
- package/packages/@monomind/cli/dist/src/agents/registry-builder.d.ts +0 -36
- package/packages/@monomind/cli/dist/src/agents/registry-builder.js +0 -200
- package/packages/@monomind/cli/dist/src/agents/registry-query.d.ts +0 -71
- package/packages/@monomind/cli/dist/src/agents/registry-query.js +0 -125
- package/packages/@monomind/cli/dist/src/agents/score-decay.d.ts +0 -19
- package/packages/@monomind/cli/dist/src/agents/score-decay.js +0 -22
- package/packages/@monomind/cli/dist/src/agents/shared-instructions-loader.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/agents/shared-instructions-loader.js +0 -40
- package/packages/@monomind/cli/dist/src/agents/specialization-scorer.d.ts +0 -54
- package/packages/@monomind/cli/dist/src/agents/specialization-scorer.js +0 -204
- package/packages/@monomind/cli/dist/src/agents/termination-watcher.d.ts +0 -30
- package/packages/@monomind/cli/dist/src/agents/termination-watcher.js +0 -84
- package/packages/@monomind/cli/dist/src/agents/trigger-index.d.ts +0 -20
- package/packages/@monomind/cli/dist/src/agents/trigger-index.js +0 -38
- package/packages/@monomind/cli/dist/src/agents/trigger-scanner.d.ts +0 -62
- package/packages/@monomind/cli/dist/src/agents/trigger-scanner.js +0 -260
- package/packages/@monomind/cli/dist/src/agents/version-diff.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/agents/version-diff.js +0 -64
- package/packages/@monomind/cli/dist/src/agents/version-store.d.ts +0 -61
- package/packages/@monomind/cli/dist/src/agents/version-store.js +0 -212
- package/packages/@monomind/cli/dist/src/autopilot-state.d.ts +0 -77
- package/packages/@monomind/cli/dist/src/autopilot-state.js +0 -279
- package/packages/@monomind/cli/dist/src/benchmarks/benchmark-runner.d.ts +0 -82
- package/packages/@monomind/cli/dist/src/benchmarks/benchmark-runner.js +0 -261
- package/packages/@monomind/cli/dist/src/benchmarks/metric-evaluators.d.ts +0 -35
- package/packages/@monomind/cli/dist/src/benchmarks/metric-evaluators.js +0 -91
- package/packages/@monomind/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -58
- package/packages/@monomind/cli/dist/src/benchmarks/pretrain/index.js +0 -404
- package/packages/@monomind/cli/dist/src/commands/agent-wasm.d.ts +0 -14
- package/packages/@monomind/cli/dist/src/commands/agent-wasm.js +0 -333
- package/packages/@monomind/cli/dist/src/commands/agent.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/agent.js +0 -941
- package/packages/@monomind/cli/dist/src/commands/analyze.d.ts +0 -19
- package/packages/@monomind/cli/dist/src/commands/analyze.js +0 -2048
- package/packages/@monomind/cli/dist/src/commands/appliance-advanced.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/commands/appliance-advanced.js +0 -215
- package/packages/@monomind/cli/dist/src/commands/appliance.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/appliance.js +0 -406
- package/packages/@monomind/cli/dist/src/commands/autopilot.d.ts +0 -15
- package/packages/@monomind/cli/dist/src/commands/autopilot.js +0 -362
- package/packages/@monomind/cli/dist/src/commands/benchmark.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/benchmark.js +0 -460
- package/packages/@monomind/cli/dist/src/commands/claims.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/claims.js +0 -624
- package/packages/@monomind/cli/dist/src/commands/cleanup.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/commands/cleanup.js +0 -218
- package/packages/@monomind/cli/dist/src/commands/completions.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/completions.js +0 -539
- package/packages/@monomind/cli/dist/src/commands/config.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/config.js +0 -428
- package/packages/@monomind/cli/dist/src/commands/daemon.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/daemon.js +0 -669
- package/packages/@monomind/cli/dist/src/commands/deployment.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/deployment.js +0 -672
- package/packages/@monomind/cli/dist/src/commands/doctor.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/doctor.js +0 -619
- package/packages/@monomind/cli/dist/src/commands/embeddings.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/commands/embeddings.js +0 -1576
- package/packages/@monomind/cli/dist/src/commands/guidance.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/guidance.js +0 -560
- package/packages/@monomind/cli/dist/src/commands/hive-mind.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/hive-mind.js +0 -1237
- package/packages/@monomind/cli/dist/src/commands/hooks.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/hooks.js +0 -4442
- package/packages/@monomind/cli/dist/src/commands/index.d.ts +0 -117
- package/packages/@monomind/cli/dist/src/commands/index.js +0 -391
- package/packages/@monomind/cli/dist/src/commands/init.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/init.js +0 -817
- package/packages/@monomind/cli/dist/src/commands/issues.d.ts +0 -21
- package/packages/@monomind/cli/dist/src/commands/issues.js +0 -567
- package/packages/@monomind/cli/dist/src/commands/mcp.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/mcp.js +0 -718
- package/packages/@monomind/cli/dist/src/commands/memory.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/memory.js +0 -1565
- package/packages/@monomind/cli/dist/src/commands/migrate.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/migrate.js +0 -742
- package/packages/@monomind/cli/dist/src/commands/neural.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/neural.js +0 -1454
- package/packages/@monomind/cli/dist/src/commands/performance.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/performance.js +0 -579
- package/packages/@monomind/cli/dist/src/commands/plugins.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/plugins.js +0 -820
- package/packages/@monomind/cli/dist/src/commands/process.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/process.js +0 -695
- package/packages/@monomind/cli/dist/src/commands/progress.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/progress.js +0 -259
- package/packages/@monomind/cli/dist/src/commands/providers.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/providers.js +0 -359
- package/packages/@monomind/cli/dist/src/commands/replay.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/replay.js +0 -60
- package/packages/@monomind/cli/dist/src/commands/route.d.ts +0 -16
- package/packages/@monomind/cli/dist/src/commands/route.js +0 -907
- package/packages/@monomind/cli/dist/src/commands/ruvector/backup.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/backup.js +0 -746
- package/packages/@monomind/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/benchmark.js +0 -489
- package/packages/@monomind/cli/dist/src/commands/ruvector/import.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/commands/ruvector/import.js +0 -349
- package/packages/@monomind/cli/dist/src/commands/ruvector/index.d.ts +0 -29
- package/packages/@monomind/cli/dist/src/commands/ruvector/index.js +0 -129
- package/packages/@monomind/cli/dist/src/commands/ruvector/init.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/init.js +0 -466
- package/packages/@monomind/cli/dist/src/commands/ruvector/migrate.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/migrate.js +0 -497
- package/packages/@monomind/cli/dist/src/commands/ruvector/optimize.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/optimize.js +0 -504
- package/packages/@monomind/cli/dist/src/commands/ruvector/setup.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/commands/ruvector/setup.js +0 -765
- package/packages/@monomind/cli/dist/src/commands/ruvector/status.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/status.js +0 -478
- package/packages/@monomind/cli/dist/src/commands/security.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/commands/security.js +0 -794
- package/packages/@monomind/cli/dist/src/commands/session.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/session.js +0 -750
- package/packages/@monomind/cli/dist/src/commands/start.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/start.js +0 -418
- package/packages/@monomind/cli/dist/src/commands/status.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/status.js +0 -591
- package/packages/@monomind/cli/dist/src/commands/swarm.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/swarm.js +0 -801
- package/packages/@monomind/cli/dist/src/commands/task.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/task.js +0 -671
- package/packages/@monomind/cli/dist/src/commands/tokens.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/tokens.js +0 -107
- package/packages/@monomind/cli/dist/src/commands/transfer-store.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/commands/transfer-store.js +0 -428
- package/packages/@monomind/cli/dist/src/commands/ui.js +0 -68
- package/packages/@monomind/cli/dist/src/commands/update.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/update.js +0 -276
- package/packages/@monomind/cli/dist/src/commands/workflow.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/commands/workflow.js +0 -617
- package/packages/@monomind/cli/dist/src/config-adapter.d.ts +0 -15
- package/packages/@monomind/cli/dist/src/config-adapter.js +0 -186
- package/packages/@monomind/cli/dist/src/consensus/audit-writer.d.ts +0 -50
- package/packages/@monomind/cli/dist/src/consensus/audit-writer.js +0 -109
- package/packages/@monomind/cli/dist/src/consensus/index.d.ts +0 -7
- package/packages/@monomind/cli/dist/src/consensus/index.js +0 -6
- package/packages/@monomind/cli/dist/src/consensus/vote-signer.d.ts +0 -39
- package/packages/@monomind/cli/dist/src/consensus/vote-signer.js +0 -63
- package/packages/@monomind/cli/dist/src/context/context-provider.d.ts +0 -44
- package/packages/@monomind/cli/dist/src/context/context-provider.js +0 -25
- package/packages/@monomind/cli/dist/src/context/git-state-provider.d.ts +0 -12
- package/packages/@monomind/cli/dist/src/context/git-state-provider.js +0 -34
- package/packages/@monomind/cli/dist/src/context/index.d.ts +0 -12
- package/packages/@monomind/cli/dist/src/context/index.js +0 -12
- package/packages/@monomind/cli/dist/src/context/project-conventions-provider.d.ts +0 -15
- package/packages/@monomind/cli/dist/src/context/project-conventions-provider.js +0 -19
- package/packages/@monomind/cli/dist/src/context/prompt-assembler.d.ts +0 -26
- package/packages/@monomind/cli/dist/src/context/prompt-assembler.js +0 -93
- package/packages/@monomind/cli/dist/src/context/task-history-provider.d.ts +0 -24
- package/packages/@monomind/cli/dist/src/context/task-history-provider.js +0 -32
- package/packages/@monomind/cli/dist/src/context/user-preferences-provider.d.ts +0 -14
- package/packages/@monomind/cli/dist/src/context/user-preferences-provider.js +0 -27
- package/packages/@monomind/cli/dist/src/dlq/dlq-reader.d.ts +0 -29
- package/packages/@monomind/cli/dist/src/dlq/dlq-reader.js +0 -64
- package/packages/@monomind/cli/dist/src/dlq/dlq-replayer.d.ts +0 -20
- package/packages/@monomind/cli/dist/src/dlq/dlq-replayer.js +0 -56
- package/packages/@monomind/cli/dist/src/dlq/dlq-writer.d.ts +0 -24
- package/packages/@monomind/cli/dist/src/dlq/dlq-writer.js +0 -43
- package/packages/@monomind/cli/dist/src/dlq/index.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/dlq/index.js +0 -7
- package/packages/@monomind/cli/dist/src/eval/dataset-manager.d.ts +0 -33
- package/packages/@monomind/cli/dist/src/eval/dataset-manager.js +0 -97
- package/packages/@monomind/cli/dist/src/eval/dataset-runner.d.ts +0 -23
- package/packages/@monomind/cli/dist/src/eval/dataset-runner.js +0 -59
- package/packages/@monomind/cli/dist/src/eval/index.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/eval/index.js +0 -7
- package/packages/@monomind/cli/dist/src/eval/trace-collector.d.ts +0 -40
- package/packages/@monomind/cli/dist/src/eval/trace-collector.js +0 -82
- package/packages/@monomind/cli/dist/src/index.d.ts +0 -82
- package/packages/@monomind/cli/dist/src/index.js +0 -578
- package/packages/@monomind/cli/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
- package/packages/@monomind/cli/dist/src/infrastructure/in-memory-repositories.js +0 -264
- package/packages/@monomind/cli/dist/src/init/claudemd-generator.d.ts +0 -25
- package/packages/@monomind/cli/dist/src/init/claudemd-generator.js +0 -522
- package/packages/@monomind/cli/dist/src/init/executor.d.ts +0 -38
- package/packages/@monomind/cli/dist/src/init/executor.js +0 -1919
- package/packages/@monomind/cli/dist/src/init/helpers-generator.d.ts +0 -60
- package/packages/@monomind/cli/dist/src/init/helpers-generator.js +0 -1222
- package/packages/@monomind/cli/dist/src/init/index.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/init/index.js +0 -15
- package/packages/@monomind/cli/dist/src/init/mcp-generator.d.ts +0 -26
- package/packages/@monomind/cli/dist/src/init/mcp-generator.js +0 -99
- package/packages/@monomind/cli/dist/src/init/settings-generator.d.ts +0 -14
- package/packages/@monomind/cli/dist/src/init/settings-generator.js +0 -392
- package/packages/@monomind/cli/dist/src/init/statusline-generator.d.ts +0 -25
- package/packages/@monomind/cli/dist/src/init/statusline-generator.js +0 -1157
- package/packages/@monomind/cli/dist/src/init/types.d.ts +0 -291
- package/packages/@monomind/cli/dist/src/init/types.js +0 -258
- package/packages/@monomind/cli/dist/src/interactive/interrupt.d.ts +0 -22
- package/packages/@monomind/cli/dist/src/interactive/interrupt.js +0 -66
- package/packages/@monomind/cli/dist/src/mcp/deprecation-injector.d.ts +0 -25
- package/packages/@monomind/cli/dist/src/mcp/deprecation-injector.js +0 -48
- package/packages/@monomind/cli/dist/src/mcp/tool-registry.d.ts +0 -61
- package/packages/@monomind/cli/dist/src/mcp/tool-registry.js +0 -212
- package/packages/@monomind/cli/dist/src/mcp-client.d.ts +0 -92
- package/packages/@monomind/cli/dist/src/mcp-client.js +0 -261
- package/packages/@monomind/cli/dist/src/mcp-server.d.ts +0 -163
- package/packages/@monomind/cli/dist/src/mcp-server.js +0 -682
- package/packages/@monomind/cli/dist/src/mcp-tools/a2a-tools.d.ts +0 -14
- package/packages/@monomind/cli/dist/src/mcp-tools/a2a-tools.js +0 -244
- package/packages/@monomind/cli/dist/src/mcp-tools/agent-tools.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/mcp-tools/agent-tools.js +0 -564
- package/packages/@monomind/cli/dist/src/mcp-tools/agentdb-tools.d.ts +0 -30
- package/packages/@monomind/cli/dist/src/mcp-tools/agentdb-tools.js +0 -569
- package/packages/@monomind/cli/dist/src/mcp-tools/analyze-tools.d.ts +0 -38
- package/packages/@monomind/cli/dist/src/mcp-tools/analyze-tools.js +0 -317
- package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.d.ts +0 -83
- package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.js +0 -131
- package/packages/@monomind/cli/dist/src/mcp-tools/autopilot-tools.d.ts +0 -12
- package/packages/@monomind/cli/dist/src/mcp-tools/autopilot-tools.js +0 -227
- package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.js +0 -550
- package/packages/@monomind/cli/dist/src/mcp-tools/claims-tools.d.ts +0 -12
- package/packages/@monomind/cli/dist/src/mcp-tools/claims-tools.js +0 -747
- package/packages/@monomind/cli/dist/src/mcp-tools/config-tools.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/mcp-tools/config-tools.js +0 -353
- package/packages/@monomind/cli/dist/src/mcp-tools/coordination-tools.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/mcp-tools/coordination-tools.js +0 -673
- package/packages/@monomind/cli/dist/src/mcp-tools/daa-tools.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/mcp-tools/daa-tools.js +0 -473
- package/packages/@monomind/cli/dist/src/mcp-tools/embeddings-tools.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/mcp-tools/embeddings-tools.js +0 -782
- package/packages/@monomind/cli/dist/src/mcp-tools/github-tools.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/mcp-tools/github-tools.js +0 -472
- package/packages/@monomind/cli/dist/src/mcp-tools/graphify-tools.d.ts +0 -73
- package/packages/@monomind/cli/dist/src/mcp-tools/graphify-tools.js +0 -1235
- package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.d.ts +0 -15
- package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.js +0 -618
- package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.js +0 -877
- package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.d.ts +0 -44
- package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.js +0 -3397
- package/packages/@monomind/cli/dist/src/mcp-tools/index.d.ts +0 -38
- package/packages/@monomind/cli/dist/src/mcp-tools/index.js +0 -40
- package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.d.ts +0 -14
- package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.js +0 -514
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.d.ts +0 -16
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.js +0 -634
- package/packages/@monomind/cli/dist/src/mcp-tools/performance-tools.d.ts +0 -16
- package/packages/@monomind/cli/dist/src/mcp-tools/performance-tools.js +0 -643
- package/packages/@monomind/cli/dist/src/mcp-tools/progress-tools.d.ts +0 -14
- package/packages/@monomind/cli/dist/src/mcp-tools/progress-tools.js +0 -348
- package/packages/@monomind/cli/dist/src/mcp-tools/request-tracker.d.ts +0 -17
- package/packages/@monomind/cli/dist/src/mcp-tools/request-tracker.js +0 -27
- package/packages/@monomind/cli/dist/src/mcp-tools/ruvllm-tools.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/mcp-tools/ruvllm-tools.js +0 -284
- package/packages/@monomind/cli/dist/src/mcp-tools/security-tools.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/mcp-tools/security-tools.js +0 -434
- package/packages/@monomind/cli/dist/src/mcp-tools/session-tools.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/mcp-tools/session-tools.js +0 -338
- package/packages/@monomind/cli/dist/src/mcp-tools/swarm-tools.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/mcp-tools/swarm-tools.js +0 -289
- package/packages/@monomind/cli/dist/src/mcp-tools/system-tools.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/mcp-tools/system-tools.js +0 -551
- package/packages/@monomind/cli/dist/src/mcp-tools/task-tools.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/mcp-tools/task-tools.js +0 -406
- package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.js +0 -260
- package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.d.ts +0 -14
- package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.js +0 -396
- package/packages/@monomind/cli/dist/src/mcp-tools/types.d.ts +0 -37
- package/packages/@monomind/cli/dist/src/mcp-tools/types.js +0 -14
- package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.js +0 -230
- package/packages/@monomind/cli/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
- package/packages/@monomind/cli/dist/src/mcp-tools/workflow-tools.js +0 -562
- package/packages/@monomind/cli/dist/src/memory/ewc-consolidation.d.ts +0 -295
- package/packages/@monomind/cli/dist/src/memory/ewc-consolidation.js +0 -601
- package/packages/@monomind/cli/dist/src/memory/intelligence.d.ts +0 -338
- package/packages/@monomind/cli/dist/src/memory/intelligence.js +0 -1023
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.d.ts +0 -409
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +0 -1561
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.d.ts +0 -414
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.js +0 -2222
- package/packages/@monomind/cli/dist/src/memory/sona-optimizer.d.ts +0 -227
- package/packages/@monomind/cli/dist/src/memory/sona-optimizer.js +0 -633
- package/packages/@monomind/cli/dist/src/model/complexity-scorer.d.ts +0 -21
- package/packages/@monomind/cli/dist/src/model/complexity-scorer.js +0 -106
- package/packages/@monomind/cli/dist/src/model/index.d.ts +0 -4
- package/packages/@monomind/cli/dist/src/model/index.js +0 -4
- package/packages/@monomind/cli/dist/src/model/model-settings.d.ts +0 -22
- package/packages/@monomind/cli/dist/src/model/model-settings.js +0 -33
- package/packages/@monomind/cli/dist/src/model/model-tier-resolver.d.ts +0 -24
- package/packages/@monomind/cli/dist/src/model/model-tier-resolver.js +0 -65
- package/packages/@monomind/cli/dist/src/orchestration/index.d.ts +0 -7
- package/packages/@monomind/cli/dist/src/orchestration/index.js +0 -6
- package/packages/@monomind/cli/dist/src/orchestration/mode-dispatcher.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/orchestration/mode-dispatcher.js +0 -31
- package/packages/@monomind/cli/dist/src/orchestration/routing-modes.d.ts +0 -68
- package/packages/@monomind/cli/dist/src/orchestration/routing-modes.js +0 -150
- package/packages/@monomind/cli/dist/src/output.d.ts +0 -133
- package/packages/@monomind/cli/dist/src/output.js +0 -514
- package/packages/@monomind/cli/dist/src/parser.d.ts +0 -51
- package/packages/@monomind/cli/dist/src/parser.js +0 -425
- package/packages/@monomind/cli/dist/src/plugins/manager.d.ts +0 -133
- package/packages/@monomind/cli/dist/src/plugins/manager.js +0 -400
- package/packages/@monomind/cli/dist/src/plugins/store/discovery.d.ts +0 -88
- package/packages/@monomind/cli/dist/src/plugins/store/discovery.js +0 -841
- package/packages/@monomind/cli/dist/src/plugins/store/index.d.ts +0 -76
- package/packages/@monomind/cli/dist/src/plugins/store/index.js +0 -141
- package/packages/@monomind/cli/dist/src/plugins/store/search.d.ts +0 -46
- package/packages/@monomind/cli/dist/src/plugins/store/search.js +0 -230
- package/packages/@monomind/cli/dist/src/plugins/store/types.d.ts +0 -274
- package/packages/@monomind/cli/dist/src/plugins/store/types.js +0 -7
- package/packages/@monomind/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +0 -7
- package/packages/@monomind/cli/dist/src/plugins/tests/demo-plugin-store.js +0 -126
- package/packages/@monomind/cli/dist/src/plugins/tests/standalone-test.d.ts +0 -12
- package/packages/@monomind/cli/dist/src/plugins/tests/standalone-test.js +0 -188
- package/packages/@monomind/cli/dist/src/plugins/tests/test-plugin-store.d.ts +0 -7
- package/packages/@monomind/cli/dist/src/plugins/tests/test-plugin-store.js +0 -206
- package/packages/@monomind/cli/dist/src/production/circuit-breaker.d.ts +0 -101
- package/packages/@monomind/cli/dist/src/production/circuit-breaker.js +0 -241
- package/packages/@monomind/cli/dist/src/production/error-handler.d.ts +0 -92
- package/packages/@monomind/cli/dist/src/production/error-handler.js +0 -299
- package/packages/@monomind/cli/dist/src/production/index.d.ts +0 -23
- package/packages/@monomind/cli/dist/src/production/index.js +0 -18
- package/packages/@monomind/cli/dist/src/production/monitoring.d.ts +0 -161
- package/packages/@monomind/cli/dist/src/production/monitoring.js +0 -356
- package/packages/@monomind/cli/dist/src/production/rate-limiter.d.ts +0 -80
- package/packages/@monomind/cli/dist/src/production/rate-limiter.js +0 -201
- package/packages/@monomind/cli/dist/src/production/retry.d.ts +0 -48
- package/packages/@monomind/cli/dist/src/production/retry.js +0 -179
- package/packages/@monomind/cli/dist/src/prompt.d.ts +0 -44
- package/packages/@monomind/cli/dist/src/prompt.js +0 -501
- package/packages/@monomind/cli/dist/src/runtime/headless.d.ts +0 -60
- package/packages/@monomind/cli/dist/src/runtime/headless.js +0 -284
- package/packages/@monomind/cli/dist/src/ruvector/agent-wasm.d.ts +0 -182
- package/packages/@monomind/cli/dist/src/ruvector/agent-wasm.js +0 -316
- package/packages/@monomind/cli/dist/src/ruvector/ast-analyzer.d.ts +0 -67
- package/packages/@monomind/cli/dist/src/ruvector/ast-analyzer.js +0 -277
- package/packages/@monomind/cli/dist/src/ruvector/coverage-router.d.ts +0 -160
- package/packages/@monomind/cli/dist/src/ruvector/coverage-router.js +0 -529
- package/packages/@monomind/cli/dist/src/ruvector/coverage-tools.d.ts +0 -33
- package/packages/@monomind/cli/dist/src/ruvector/coverage-tools.js +0 -157
- package/packages/@monomind/cli/dist/src/ruvector/diff-classifier.d.ts +0 -175
- package/packages/@monomind/cli/dist/src/ruvector/diff-classifier.js +0 -698
- package/packages/@monomind/cli/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
- package/packages/@monomind/cli/dist/src/ruvector/enhanced-model-router.js +0 -529
- package/packages/@monomind/cli/dist/src/ruvector/flash-attention.d.ts +0 -195
- package/packages/@monomind/cli/dist/src/ruvector/flash-attention.js +0 -643
- package/packages/@monomind/cli/dist/src/ruvector/graph-analyzer.d.ts +0 -187
- package/packages/@monomind/cli/dist/src/ruvector/graph-analyzer.js +0 -929
- package/packages/@monomind/cli/dist/src/ruvector/index.d.ts +0 -40
- package/packages/@monomind/cli/dist/src/ruvector/index.js +0 -76
- package/packages/@monomind/cli/dist/src/ruvector/lora-adapter.d.ts +0 -218
- package/packages/@monomind/cli/dist/src/ruvector/lora-adapter.js +0 -455
- package/packages/@monomind/cli/dist/src/ruvector/model-router.d.ts +0 -220
- package/packages/@monomind/cli/dist/src/ruvector/model-router.js +0 -488
- package/packages/@monomind/cli/dist/src/ruvector/moe-router.d.ts +0 -206
- package/packages/@monomind/cli/dist/src/ruvector/moe-router.js +0 -626
- package/packages/@monomind/cli/dist/src/ruvector/q-learning-router.d.ts +0 -211
- package/packages/@monomind/cli/dist/src/ruvector/q-learning-router.js +0 -681
- package/packages/@monomind/cli/dist/src/ruvector/ruvllm-wasm.d.ts +0 -179
- package/packages/@monomind/cli/dist/src/ruvector/ruvllm-wasm.js +0 -363
- package/packages/@monomind/cli/dist/src/ruvector/semantic-router.d.ts +0 -77
- package/packages/@monomind/cli/dist/src/ruvector/semantic-router.js +0 -178
- package/packages/@monomind/cli/dist/src/ruvector/vector-db.d.ts +0 -69
- package/packages/@monomind/cli/dist/src/ruvector/vector-db.js +0 -243
- package/packages/@monomind/cli/dist/src/services/agentic-flow-bridge.d.ts +0 -50
- package/packages/@monomind/cli/dist/src/services/agentic-flow-bridge.js +0 -95
- package/packages/@monomind/cli/dist/src/services/claim-service.d.ts +0 -204
- package/packages/@monomind/cli/dist/src/services/claim-service.js +0 -818
- package/packages/@monomind/cli/dist/src/services/config-file-manager.d.ts +0 -37
- package/packages/@monomind/cli/dist/src/services/config-file-manager.js +0 -224
- package/packages/@monomind/cli/dist/src/services/container-worker-pool.d.ts +0 -197
- package/packages/@monomind/cli/dist/src/services/container-worker-pool.js +0 -583
- package/packages/@monomind/cli/dist/src/services/headless-worker-executor.d.ts +0 -304
- package/packages/@monomind/cli/dist/src/services/headless-worker-executor.js +0 -1024
- package/packages/@monomind/cli/dist/src/services/index.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/services/index.js +0 -11
- package/packages/@monomind/cli/dist/src/services/registry-api.d.ts +0 -58
- package/packages/@monomind/cli/dist/src/services/registry-api.js +0 -146
- package/packages/@monomind/cli/dist/src/services/ruvector-training.d.ts +0 -222
- package/packages/@monomind/cli/dist/src/services/ruvector-training.js +0 -688
- package/packages/@monomind/cli/dist/src/services/worker-daemon.d.ts +0 -245
- package/packages/@monomind/cli/dist/src/services/worker-daemon.js +0 -999
- package/packages/@monomind/cli/dist/src/services/worker-queue.d.ts +0 -194
- package/packages/@monomind/cli/dist/src/services/worker-queue.js +0 -513
- package/packages/@monomind/cli/dist/src/suggest.d.ts +0 -53
- package/packages/@monomind/cli/dist/src/suggest.js +0 -200
- package/packages/@monomind/cli/dist/src/swarm/communication-graph.d.ts +0 -25
- package/packages/@monomind/cli/dist/src/swarm/communication-graph.js +0 -77
- package/packages/@monomind/cli/dist/src/swarm/flow-enforcer.d.ts +0 -29
- package/packages/@monomind/cli/dist/src/swarm/flow-enforcer.js +0 -49
- package/packages/@monomind/cli/dist/src/swarm/flow-visualizer.d.ts +0 -16
- package/packages/@monomind/cli/dist/src/swarm/flow-visualizer.js +0 -44
- package/packages/@monomind/cli/dist/src/transfer/anonymization/index.d.ts +0 -25
- package/packages/@monomind/cli/dist/src/transfer/anonymization/index.js +0 -175
- package/packages/@monomind/cli/dist/src/transfer/deploy-seraphine.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/transfer/deploy-seraphine.js +0 -205
- package/packages/@monomind/cli/dist/src/transfer/export.d.ts +0 -25
- package/packages/@monomind/cli/dist/src/transfer/export.js +0 -113
- package/packages/@monomind/cli/dist/src/transfer/index.d.ts +0 -12
- package/packages/@monomind/cli/dist/src/transfer/index.js +0 -31
- package/packages/@monomind/cli/dist/src/transfer/ipfs/client.d.ts +0 -109
- package/packages/@monomind/cli/dist/src/transfer/ipfs/client.js +0 -307
- package/packages/@monomind/cli/dist/src/transfer/ipfs/upload.d.ts +0 -95
- package/packages/@monomind/cli/dist/src/transfer/ipfs/upload.js +0 -411
- package/packages/@monomind/cli/dist/src/transfer/models/seraphine.d.ts +0 -72
- package/packages/@monomind/cli/dist/src/transfer/models/seraphine.js +0 -373
- package/packages/@monomind/cli/dist/src/transfer/serialization/cfp.d.ts +0 -49
- package/packages/@monomind/cli/dist/src/transfer/serialization/cfp.js +0 -183
- package/packages/@monomind/cli/dist/src/transfer/storage/gcs.d.ts +0 -82
- package/packages/@monomind/cli/dist/src/transfer/storage/gcs.js +0 -272
- package/packages/@monomind/cli/dist/src/transfer/storage/index.d.ts +0 -6
- package/packages/@monomind/cli/dist/src/transfer/storage/index.js +0 -6
- package/packages/@monomind/cli/dist/src/transfer/store/discovery.d.ts +0 -84
- package/packages/@monomind/cli/dist/src/transfer/store/discovery.js +0 -382
- package/packages/@monomind/cli/dist/src/transfer/store/download.d.ts +0 -70
- package/packages/@monomind/cli/dist/src/transfer/store/download.js +0 -334
- package/packages/@monomind/cli/dist/src/transfer/store/index.d.ts +0 -84
- package/packages/@monomind/cli/dist/src/transfer/store/index.js +0 -153
- package/packages/@monomind/cli/dist/src/transfer/store/publish.d.ts +0 -76
- package/packages/@monomind/cli/dist/src/transfer/store/publish.js +0 -294
- package/packages/@monomind/cli/dist/src/transfer/store/registry.d.ts +0 -58
- package/packages/@monomind/cli/dist/src/transfer/store/registry.js +0 -285
- package/packages/@monomind/cli/dist/src/transfer/store/search.d.ts +0 -54
- package/packages/@monomind/cli/dist/src/transfer/store/search.js +0 -232
- package/packages/@monomind/cli/dist/src/transfer/store/tests/standalone-test.d.ts +0 -12
- package/packages/@monomind/cli/dist/src/transfer/store/tests/standalone-test.js +0 -190
- package/packages/@monomind/cli/dist/src/transfer/store/types.d.ts +0 -193
- package/packages/@monomind/cli/dist/src/transfer/store/types.js +0 -6
- package/packages/@monomind/cli/dist/src/transfer/test-seraphine.d.ts +0 -6
- package/packages/@monomind/cli/dist/src/transfer/test-seraphine.js +0 -105
- package/packages/@monomind/cli/dist/src/transfer/tests/test-store.d.ts +0 -7
- package/packages/@monomind/cli/dist/src/transfer/tests/test-store.js +0 -214
- package/packages/@monomind/cli/dist/src/transfer/types.d.ts +0 -245
- package/packages/@monomind/cli/dist/src/transfer/types.js +0 -6
- package/packages/@monomind/cli/dist/src/types.d.ts +0 -198
- package/packages/@monomind/cli/dist/src/types.js +0 -38
- package/packages/@monomind/cli/dist/src/update/checker.d.ts +0 -34
- package/packages/@monomind/cli/dist/src/update/checker.js +0 -185
- package/packages/@monomind/cli/dist/src/update/executor.d.ts +0 -32
- package/packages/@monomind/cli/dist/src/update/executor.js +0 -181
- package/packages/@monomind/cli/dist/src/update/index.d.ts +0 -33
- package/packages/@monomind/cli/dist/src/update/index.js +0 -64
- package/packages/@monomind/cli/dist/src/update/rate-limiter.d.ts +0 -20
- package/packages/@monomind/cli/dist/src/update/rate-limiter.js +0 -96
- package/packages/@monomind/cli/dist/src/update/validator.d.ts +0 -17
- package/packages/@monomind/cli/dist/src/update/validator.js +0 -118
- package/packages/@monomind/cli/dist/src/workflow/condition-evaluator.d.ts +0 -10
- package/packages/@monomind/cli/dist/src/workflow/condition-evaluator.js +0 -48
- package/packages/@monomind/cli/dist/src/workflow/context-resolver.d.ts +0 -12
- package/packages/@monomind/cli/dist/src/workflow/context-resolver.js +0 -23
- package/packages/@monomind/cli/dist/src/workflow/dag-builder.d.ts +0 -17
- package/packages/@monomind/cli/dist/src/workflow/dag-builder.js +0 -113
- package/packages/@monomind/cli/dist/src/workflow/dag-executor.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/workflow/dag-executor.js +0 -78
- package/packages/@monomind/cli/dist/src/workflow/dag-types.d.ts +0 -41
- package/packages/@monomind/cli/dist/src/workflow/dag-types.js +0 -8
- package/packages/@monomind/cli/dist/src/workflow/dsl-parser.d.ts +0 -12
- package/packages/@monomind/cli/dist/src/workflow/dsl-parser.js +0 -20
- package/packages/@monomind/cli/dist/src/workflow/dsl-schema.d.ts +0 -162
- package/packages/@monomind/cli/dist/src/workflow/dsl-schema.js +0 -78
- package/packages/@monomind/cli/dist/src/workflow/index.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/workflow/index.js +0 -11
- package/packages/@monomind/cli/dist/src/workflow/template-engine.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/workflow/template-engine.js +0 -33
- package/packages/@monomind/cli/dist/src/workflow/workflow-executor.d.ts +0 -29
- package/packages/@monomind/cli/dist/src/workflow/workflow-executor.js +0 -146
- package/packages/@monomind/cli/package.json +0 -105
- package/packages/@monomind/guidance/README.md +0 -1195
- package/packages/@monomind/guidance/dist/adversarial.d.ts +0 -284
- package/packages/@monomind/guidance/dist/adversarial.js +0 -572
- package/packages/@monomind/guidance/dist/analyzer.d.ts +0 -530
- package/packages/@monomind/guidance/dist/analyzer.js +0 -2518
- package/packages/@monomind/guidance/dist/artifacts.d.ts +0 -283
- package/packages/@monomind/guidance/dist/artifacts.js +0 -356
- package/packages/@monomind/guidance/dist/authority.d.ts +0 -290
- package/packages/@monomind/guidance/dist/authority.js +0 -558
- package/packages/@monomind/guidance/dist/capabilities.d.ts +0 -209
- package/packages/@monomind/guidance/dist/capabilities.js +0 -485
- package/packages/@monomind/guidance/dist/coherence.d.ts +0 -233
- package/packages/@monomind/guidance/dist/coherence.js +0 -372
- package/packages/@monomind/guidance/dist/compiler.d.ts +0 -87
- package/packages/@monomind/guidance/dist/compiler.js +0 -419
- package/packages/@monomind/guidance/dist/conformance-kit.d.ts +0 -225
- package/packages/@monomind/guidance/dist/conformance-kit.js +0 -629
- package/packages/@monomind/guidance/dist/continue-gate.d.ts +0 -214
- package/packages/@monomind/guidance/dist/continue-gate.js +0 -353
- package/packages/@monomind/guidance/dist/crypto-utils.d.ts +0 -17
- package/packages/@monomind/guidance/dist/crypto-utils.js +0 -24
- package/packages/@monomind/guidance/dist/evolution.d.ts +0 -282
- package/packages/@monomind/guidance/dist/evolution.js +0 -500
- package/packages/@monomind/guidance/dist/gates.d.ts +0 -79
- package/packages/@monomind/guidance/dist/gates.js +0 -302
- package/packages/@monomind/guidance/dist/gateway.d.ts +0 -206
- package/packages/@monomind/guidance/dist/gateway.js +0 -452
- package/packages/@monomind/guidance/dist/generators.d.ts +0 -153
- package/packages/@monomind/guidance/dist/generators.js +0 -682
- package/packages/@monomind/guidance/dist/headless.d.ts +0 -177
- package/packages/@monomind/guidance/dist/headless.js +0 -342
- package/packages/@monomind/guidance/dist/hooks.d.ts +0 -109
- package/packages/@monomind/guidance/dist/hooks.js +0 -347
- package/packages/@monomind/guidance/dist/index.d.ts +0 -205
- package/packages/@monomind/guidance/dist/index.js +0 -321
- package/packages/@monomind/guidance/dist/ledger.d.ts +0 -162
- package/packages/@monomind/guidance/dist/ledger.js +0 -375
- package/packages/@monomind/guidance/dist/manifest-validator.d.ts +0 -289
- package/packages/@monomind/guidance/dist/manifest-validator.js +0 -838
- package/packages/@monomind/guidance/dist/memory-gate.d.ts +0 -222
- package/packages/@monomind/guidance/dist/memory-gate.js +0 -382
- package/packages/@monomind/guidance/dist/meta-governance.d.ts +0 -265
- package/packages/@monomind/guidance/dist/meta-governance.js +0 -348
- package/packages/@monomind/guidance/dist/optimizer.d.ts +0 -104
- package/packages/@monomind/guidance/dist/optimizer.js +0 -329
- package/packages/@monomind/guidance/dist/persistence.d.ts +0 -189
- package/packages/@monomind/guidance/dist/persistence.js +0 -464
- package/packages/@monomind/guidance/dist/proof.d.ts +0 -185
- package/packages/@monomind/guidance/dist/proof.js +0 -238
- package/packages/@monomind/guidance/dist/retriever.d.ts +0 -116
- package/packages/@monomind/guidance/dist/retriever.js +0 -394
- package/packages/@monomind/guidance/dist/ruvbot-integration.d.ts +0 -370
- package/packages/@monomind/guidance/dist/ruvbot-integration.js +0 -738
- package/packages/@monomind/guidance/dist/temporal.d.ts +0 -426
- package/packages/@monomind/guidance/dist/temporal.js +0 -658
- package/packages/@monomind/guidance/dist/trust.d.ts +0 -283
- package/packages/@monomind/guidance/dist/trust.js +0 -473
- package/packages/@monomind/guidance/dist/truth-anchors.d.ts +0 -276
- package/packages/@monomind/guidance/dist/truth-anchors.js +0 -488
- package/packages/@monomind/guidance/dist/types.d.ts +0 -378
- package/packages/@monomind/guidance/dist/types.js +0 -10
- package/packages/@monomind/guidance/dist/uncertainty.d.ts +0 -372
- package/packages/@monomind/guidance/dist/uncertainty.js +0 -619
- package/packages/@monomind/guidance/dist/wasm-kernel.d.ts +0 -48
- package/packages/@monomind/guidance/dist/wasm-kernel.js +0 -158
- package/packages/@monomind/guidance/package.json +0 -198
- package/packages/@monomind/shared/README.md +0 -323
- package/packages/@monomind/shared/dist/agent-contract.d.ts +0 -28
- package/packages/@monomind/shared/dist/agent-contract.js +0 -57
- package/packages/@monomind/shared/dist/agent-error-result.d.ts +0 -17
- package/packages/@monomind/shared/dist/agent-error-result.js +0 -23
- package/packages/@monomind/shared/dist/core/config/defaults.d.ts +0 -41
- package/packages/@monomind/shared/dist/core/config/defaults.js +0 -186
- package/packages/@monomind/shared/dist/core/config/index.d.ts +0 -8
- package/packages/@monomind/shared/dist/core/config/index.js +0 -12
- package/packages/@monomind/shared/dist/core/config/loader.d.ts +0 -45
- package/packages/@monomind/shared/dist/core/config/loader.js +0 -238
- package/packages/@monomind/shared/dist/core/config/schema.d.ts +0 -324
- package/packages/@monomind/shared/dist/core/config/schema.js +0 -160
- package/packages/@monomind/shared/dist/core/config/validator.d.ts +0 -92
- package/packages/@monomind/shared/dist/core/config/validator.js +0 -147
- package/packages/@monomind/shared/dist/core/event-bus.d.ts +0 -31
- package/packages/@monomind/shared/dist/core/event-bus.js +0 -197
- package/packages/@monomind/shared/dist/core/index.d.ts +0 -15
- package/packages/@monomind/shared/dist/core/index.js +0 -19
- package/packages/@monomind/shared/dist/core/interfaces/agent.interface.d.ts +0 -200
- package/packages/@monomind/shared/dist/core/interfaces/agent.interface.js +0 -6
- package/packages/@monomind/shared/dist/core/interfaces/coordinator.interface.d.ts +0 -310
- package/packages/@monomind/shared/dist/core/interfaces/coordinator.interface.js +0 -7
- package/packages/@monomind/shared/dist/core/interfaces/event.interface.d.ts +0 -224
- package/packages/@monomind/shared/dist/core/interfaces/event.interface.js +0 -46
- package/packages/@monomind/shared/dist/core/interfaces/index.d.ts +0 -10
- package/packages/@monomind/shared/dist/core/interfaces/index.js +0 -15
- package/packages/@monomind/shared/dist/core/interfaces/memory.interface.d.ts +0 -298
- package/packages/@monomind/shared/dist/core/interfaces/memory.interface.js +0 -7
- package/packages/@monomind/shared/dist/core/interfaces/task.interface.d.ts +0 -185
- package/packages/@monomind/shared/dist/core/interfaces/task.interface.js +0 -6
- package/packages/@monomind/shared/dist/core/orchestrator/event-coordinator.d.ts +0 -35
- package/packages/@monomind/shared/dist/core/orchestrator/event-coordinator.js +0 -101
- package/packages/@monomind/shared/dist/core/orchestrator/health-monitor.d.ts +0 -60
- package/packages/@monomind/shared/dist/core/orchestrator/health-monitor.js +0 -166
- package/packages/@monomind/shared/dist/core/orchestrator/index.d.ts +0 -46
- package/packages/@monomind/shared/dist/core/orchestrator/index.js +0 -64
- package/packages/@monomind/shared/dist/core/orchestrator/lifecycle-manager.d.ts +0 -56
- package/packages/@monomind/shared/dist/core/orchestrator/lifecycle-manager.js +0 -195
- package/packages/@monomind/shared/dist/core/orchestrator/session-manager.d.ts +0 -83
- package/packages/@monomind/shared/dist/core/orchestrator/session-manager.js +0 -193
- package/packages/@monomind/shared/dist/core/orchestrator/task-manager.d.ts +0 -49
- package/packages/@monomind/shared/dist/core/orchestrator/task-manager.js +0 -253
- package/packages/@monomind/shared/dist/events/domain-events.d.ts +0 -282
- package/packages/@monomind/shared/dist/events/domain-events.js +0 -165
- package/packages/@monomind/shared/dist/events/event-store.d.ts +0 -126
- package/packages/@monomind/shared/dist/events/event-store.js +0 -416
- package/packages/@monomind/shared/dist/events/event-store.test.d.ts +0 -8
- package/packages/@monomind/shared/dist/events/event-store.test.js +0 -293
- package/packages/@monomind/shared/dist/events/example-usage.d.ts +0 -10
- package/packages/@monomind/shared/dist/events/example-usage.js +0 -193
- package/packages/@monomind/shared/dist/events/index.d.ts +0 -21
- package/packages/@monomind/shared/dist/events/index.js +0 -22
- package/packages/@monomind/shared/dist/events/projections.d.ts +0 -177
- package/packages/@monomind/shared/dist/events/projections.js +0 -421
- package/packages/@monomind/shared/dist/events/rvf-event-log.d.ts +0 -82
- package/packages/@monomind/shared/dist/events/rvf-event-log.js +0 -340
- package/packages/@monomind/shared/dist/events/state-reconstructor.d.ts +0 -101
- package/packages/@monomind/shared/dist/events/state-reconstructor.js +0 -263
- package/packages/@monomind/shared/dist/events.d.ts +0 -80
- package/packages/@monomind/shared/dist/events.js +0 -249
- package/packages/@monomind/shared/dist/hooks/example-usage.d.ts +0 -42
- package/packages/@monomind/shared/dist/hooks/example-usage.js +0 -351
- package/packages/@monomind/shared/dist/hooks/executor.d.ts +0 -100
- package/packages/@monomind/shared/dist/hooks/executor.js +0 -264
- package/packages/@monomind/shared/dist/hooks/hooks.test.d.ts +0 -9
- package/packages/@monomind/shared/dist/hooks/hooks.test.js +0 -322
- package/packages/@monomind/shared/dist/hooks/index.d.ts +0 -52
- package/packages/@monomind/shared/dist/hooks/index.js +0 -51
- package/packages/@monomind/shared/dist/hooks/registry.d.ts +0 -133
- package/packages/@monomind/shared/dist/hooks/registry.js +0 -277
- package/packages/@monomind/shared/dist/hooks/safety/bash-safety.d.ts +0 -105
- package/packages/@monomind/shared/dist/hooks/safety/bash-safety.js +0 -481
- package/packages/@monomind/shared/dist/hooks/safety/file-organization.d.ts +0 -144
- package/packages/@monomind/shared/dist/hooks/safety/file-organization.js +0 -328
- package/packages/@monomind/shared/dist/hooks/safety/git-commit.d.ts +0 -158
- package/packages/@monomind/shared/dist/hooks/safety/git-commit.js +0 -450
- package/packages/@monomind/shared/dist/hooks/safety/index.d.ts +0 -17
- package/packages/@monomind/shared/dist/hooks/safety/index.js +0 -17
- package/packages/@monomind/shared/dist/hooks/session-hooks.d.ts +0 -234
- package/packages/@monomind/shared/dist/hooks/session-hooks.js +0 -334
- package/packages/@monomind/shared/dist/hooks/task-hooks.d.ts +0 -163
- package/packages/@monomind/shared/dist/hooks/task-hooks.js +0 -326
- package/packages/@monomind/shared/dist/hooks/types.d.ts +0 -267
- package/packages/@monomind/shared/dist/hooks/types.js +0 -62
- package/packages/@monomind/shared/dist/hooks/verify-exports.test.d.ts +0 -9
- package/packages/@monomind/shared/dist/hooks/verify-exports.test.js +0 -93
- package/packages/@monomind/shared/dist/index.d.ts +0 -46
- package/packages/@monomind/shared/dist/index.js +0 -77
- package/packages/@monomind/shared/dist/mcp/connection-pool.d.ts +0 -98
- package/packages/@monomind/shared/dist/mcp/connection-pool.js +0 -364
- package/packages/@monomind/shared/dist/mcp/index.d.ts +0 -69
- package/packages/@monomind/shared/dist/mcp/index.js +0 -84
- package/packages/@monomind/shared/dist/mcp/server.d.ts +0 -166
- package/packages/@monomind/shared/dist/mcp/server.js +0 -593
- package/packages/@monomind/shared/dist/mcp/session-manager.d.ts +0 -136
- package/packages/@monomind/shared/dist/mcp/session-manager.js +0 -335
- package/packages/@monomind/shared/dist/mcp/tool-registry.d.ts +0 -178
- package/packages/@monomind/shared/dist/mcp/tool-registry.js +0 -439
- package/packages/@monomind/shared/dist/mcp/transport/http.d.ts +0 -104
- package/packages/@monomind/shared/dist/mcp/transport/http.js +0 -476
- package/packages/@monomind/shared/dist/mcp/transport/index.d.ts +0 -102
- package/packages/@monomind/shared/dist/mcp/transport/index.js +0 -238
- package/packages/@monomind/shared/dist/mcp/transport/stdio.d.ts +0 -104
- package/packages/@monomind/shared/dist/mcp/transport/stdio.js +0 -263
- package/packages/@monomind/shared/dist/mcp/transport/websocket.d.ts +0 -133
- package/packages/@monomind/shared/dist/mcp/transport/websocket.js +0 -396
- package/packages/@monomind/shared/dist/mcp/types.d.ts +0 -438
- package/packages/@monomind/shared/dist/mcp/types.js +0 -54
- package/packages/@monomind/shared/dist/plugin-interface.d.ts +0 -544
- package/packages/@monomind/shared/dist/plugin-interface.js +0 -23
- package/packages/@monomind/shared/dist/plugin-loader.d.ts +0 -139
- package/packages/@monomind/shared/dist/plugin-loader.js +0 -434
- package/packages/@monomind/shared/dist/plugin-registry.d.ts +0 -183
- package/packages/@monomind/shared/dist/plugin-registry.js +0 -457
- package/packages/@monomind/shared/dist/plugins/index.d.ts +0 -10
- package/packages/@monomind/shared/dist/plugins/index.js +0 -10
- package/packages/@monomind/shared/dist/plugins/official/hive-mind-plugin.d.ts +0 -106
- package/packages/@monomind/shared/dist/plugins/official/hive-mind-plugin.js +0 -241
- package/packages/@monomind/shared/dist/plugins/official/index.d.ts +0 -10
- package/packages/@monomind/shared/dist/plugins/official/index.js +0 -10
- package/packages/@monomind/shared/dist/plugins/official/maestro-plugin.d.ts +0 -121
- package/packages/@monomind/shared/dist/plugins/official/maestro-plugin.js +0 -355
- package/packages/@monomind/shared/dist/plugins/types.d.ts +0 -93
- package/packages/@monomind/shared/dist/plugins/types.js +0 -9
- package/packages/@monomind/shared/dist/reducers.d.ts +0 -33
- package/packages/@monomind/shared/dist/reducers.js +0 -89
- package/packages/@monomind/shared/dist/resilience/bulkhead.d.ts +0 -105
- package/packages/@monomind/shared/dist/resilience/bulkhead.js +0 -206
- package/packages/@monomind/shared/dist/resilience/circuit-breaker.d.ts +0 -132
- package/packages/@monomind/shared/dist/resilience/circuit-breaker.js +0 -233
- package/packages/@monomind/shared/dist/resilience/index.d.ts +0 -19
- package/packages/@monomind/shared/dist/resilience/index.js +0 -19
- package/packages/@monomind/shared/dist/resilience/rate-limiter.d.ts +0 -168
- package/packages/@monomind/shared/dist/resilience/rate-limiter.js +0 -314
- package/packages/@monomind/shared/dist/resilience/retry.d.ts +0 -91
- package/packages/@monomind/shared/dist/resilience/retry.js +0 -159
- package/packages/@monomind/shared/dist/retry-policy.d.ts +0 -14
- package/packages/@monomind/shared/dist/retry-policy.js +0 -23
- package/packages/@monomind/shared/dist/retry-runner.d.ts +0 -21
- package/packages/@monomind/shared/dist/retry-runner.js +0 -57
- package/packages/@monomind/shared/dist/schema-validator.d.ts +0 -46
- package/packages/@monomind/shared/dist/schema-validator.js +0 -133
- package/packages/@monomind/shared/dist/scratchpad.d.ts +0 -23
- package/packages/@monomind/shared/dist/scratchpad.js +0 -32
- package/packages/@monomind/shared/dist/security/index.d.ts +0 -10
- package/packages/@monomind/shared/dist/security/index.js +0 -12
- package/packages/@monomind/shared/dist/security/input-validation.d.ts +0 -73
- package/packages/@monomind/shared/dist/security/input-validation.js +0 -201
- package/packages/@monomind/shared/dist/security/secure-random.d.ts +0 -92
- package/packages/@monomind/shared/dist/security/secure-random.js +0 -142
- package/packages/@monomind/shared/dist/services/index.d.ts +0 -7
- package/packages/@monomind/shared/dist/services/index.js +0 -7
- package/packages/@monomind/shared/dist/services/progress.service.d.ts +0 -124
- package/packages/@monomind/shared/dist/services/progress.service.js +0 -402
- package/packages/@monomind/shared/dist/state-manager.d.ts +0 -34
- package/packages/@monomind/shared/dist/state-manager.js +0 -73
- package/packages/@monomind/shared/dist/state-validator.d.ts +0 -20
- package/packages/@monomind/shared/dist/state-validator.js +0 -49
- package/packages/@monomind/shared/dist/swarm-state.d.ts +0 -52
- package/packages/@monomind/shared/dist/swarm-state.js +0 -18
- package/packages/@monomind/shared/dist/testing/fixture-builder.d.ts +0 -14
- package/packages/@monomind/shared/dist/testing/fixture-builder.js +0 -32
- package/packages/@monomind/shared/dist/testing/index.d.ts +0 -2
- package/packages/@monomind/shared/dist/testing/index.js +0 -2
- package/packages/@monomind/shared/dist/testing/test-model.d.ts +0 -29
- package/packages/@monomind/shared/dist/testing/test-model.js +0 -53
- package/packages/@monomind/shared/dist/types/agent-registry.d.ts +0 -62
- package/packages/@monomind/shared/dist/types/agent-registry.js +0 -8
- package/packages/@monomind/shared/dist/types/agent-version.d.ts +0 -49
- package/packages/@monomind/shared/dist/types/agent-version.js +0 -7
- package/packages/@monomind/shared/dist/types/agent.types.d.ts +0 -137
- package/packages/@monomind/shared/dist/types/agent.types.js +0 -6
- package/packages/@monomind/shared/dist/types/benchmark.d.ts +0 -39
- package/packages/@monomind/shared/dist/types/benchmark.js +0 -6
- package/packages/@monomind/shared/dist/types/communication-flow.d.ts +0 -25
- package/packages/@monomind/shared/dist/types/communication-flow.js +0 -7
- package/packages/@monomind/shared/dist/types/consensus-audit.d.ts +0 -38
- package/packages/@monomind/shared/dist/types/consensus-audit.js +0 -7
- package/packages/@monomind/shared/dist/types/dlq.d.ts +0 -40
- package/packages/@monomind/shared/dist/types/dlq.js +0 -7
- package/packages/@monomind/shared/dist/types/eval.d.ts +0 -59
- package/packages/@monomind/shared/dist/types/eval.js +0 -6
- package/packages/@monomind/shared/dist/types/index.d.ts +0 -19
- package/packages/@monomind/shared/dist/types/index.js +0 -33
- package/packages/@monomind/shared/dist/types/mcp.types.d.ts +0 -266
- package/packages/@monomind/shared/dist/types/mcp.types.js +0 -7
- package/packages/@monomind/shared/dist/types/memory.types.d.ts +0 -236
- package/packages/@monomind/shared/dist/types/memory.types.js +0 -7
- package/packages/@monomind/shared/dist/types/retry.d.ts +0 -72
- package/packages/@monomind/shared/dist/types/retry.js +0 -40
- package/packages/@monomind/shared/dist/types/specialization.d.ts +0 -27
- package/packages/@monomind/shared/dist/types/specialization.js +0 -8
- package/packages/@monomind/shared/dist/types/swarm.types.d.ts +0 -186
- package/packages/@monomind/shared/dist/types/swarm.types.js +0 -65
- package/packages/@monomind/shared/dist/types/task.types.d.ts +0 -178
- package/packages/@monomind/shared/dist/types/task.types.js +0 -32
- package/packages/@monomind/shared/dist/types/termination.d.ts +0 -29
- package/packages/@monomind/shared/dist/types/termination.js +0 -14
- package/packages/@monomind/shared/dist/types/tool-version.d.ts +0 -41
- package/packages/@monomind/shared/dist/types/tool-version.js +0 -8
- package/packages/@monomind/shared/dist/types/trigger.d.ts +0 -40
- package/packages/@monomind/shared/dist/types/trigger.js +0 -8
- package/packages/@monomind/shared/dist/types.d.ts +0 -197
- package/packages/@monomind/shared/dist/types.js +0 -21
- package/packages/@monomind/shared/dist/utils/secure-logger.d.ts +0 -69
- package/packages/@monomind/shared/dist/utils/secure-logger.js +0 -208
- package/packages/@monomind/shared/package.json +0 -42
- package/packages/README.md +0 -514
|
@@ -1,1565 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Memory Command
|
|
3
|
-
* Memory operations for AgentDB integration
|
|
4
|
-
*/
|
|
5
|
-
import { output } from '../output.js';
|
|
6
|
-
import { select, confirm, input } from '../prompt.js';
|
|
7
|
-
import { callMCPTool, MCPClientError } from '../mcp-client.js';
|
|
8
|
-
// Memory backends
|
|
9
|
-
const BACKENDS = [
|
|
10
|
-
{ value: 'agentdb', label: 'AgentDB', hint: 'Vector database with HNSW indexing (150x-12,500x faster)' },
|
|
11
|
-
{ value: 'sqlite', label: 'SQLite', hint: 'Lightweight local storage' },
|
|
12
|
-
{ value: 'hybrid', label: 'Hybrid', hint: 'SQLite + AgentDB (recommended)' },
|
|
13
|
-
{ value: 'memory', label: 'In-Memory', hint: 'Fast but non-persistent' }
|
|
14
|
-
];
|
|
15
|
-
// Store command
|
|
16
|
-
const storeCommand = {
|
|
17
|
-
name: 'store',
|
|
18
|
-
description: 'Store data in memory',
|
|
19
|
-
options: [
|
|
20
|
-
{
|
|
21
|
-
name: 'key',
|
|
22
|
-
short: 'k',
|
|
23
|
-
description: 'Storage key/namespace',
|
|
24
|
-
type: 'string',
|
|
25
|
-
required: true
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'value',
|
|
29
|
-
// Note: No short flag - global -v is reserved for verbose
|
|
30
|
-
description: 'Value to store (use --value)',
|
|
31
|
-
type: 'string'
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'namespace',
|
|
35
|
-
short: 'n',
|
|
36
|
-
description: 'Memory namespace',
|
|
37
|
-
type: 'string',
|
|
38
|
-
default: 'default'
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'ttl',
|
|
42
|
-
description: 'Time to live in seconds',
|
|
43
|
-
type: 'number'
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'tags',
|
|
47
|
-
description: 'Comma-separated tags',
|
|
48
|
-
type: 'string'
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: 'vector',
|
|
52
|
-
description: 'Store as vector embedding',
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
default: false
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'upsert',
|
|
58
|
-
short: 'u',
|
|
59
|
-
description: 'Update if key exists (insert or replace)',
|
|
60
|
-
type: 'boolean',
|
|
61
|
-
default: false
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
examples: [
|
|
65
|
-
{ command: 'monomind memory store -k "api/auth" -v "JWT implementation"', description: 'Store text' },
|
|
66
|
-
{ command: 'monomind memory store -k "pattern/singleton" --vector', description: 'Store vector' },
|
|
67
|
-
{ command: 'monomind memory store -k "pattern" -v "updated" --upsert', description: 'Update existing' }
|
|
68
|
-
],
|
|
69
|
-
action: async (ctx) => {
|
|
70
|
-
const key = ctx.flags.key;
|
|
71
|
-
let value = ctx.flags.value || ctx.args[0];
|
|
72
|
-
const namespace = ctx.flags.namespace;
|
|
73
|
-
const ttl = ctx.flags.ttl;
|
|
74
|
-
const tags = ctx.flags.tags ? ctx.flags.tags.split(',') : [];
|
|
75
|
-
const asVector = ctx.flags.vector;
|
|
76
|
-
const upsert = ctx.flags.upsert;
|
|
77
|
-
if (!key) {
|
|
78
|
-
output.printError('Key is required. Use --key or -k');
|
|
79
|
-
return { success: false, exitCode: 1 };
|
|
80
|
-
}
|
|
81
|
-
if (!value && ctx.interactive) {
|
|
82
|
-
value = await input({
|
|
83
|
-
message: 'Enter value to store:',
|
|
84
|
-
validate: (v) => v.length > 0 || 'Value is required'
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
if (!value) {
|
|
88
|
-
output.printError('Value is required. Use --value');
|
|
89
|
-
return { success: false, exitCode: 1 };
|
|
90
|
-
}
|
|
91
|
-
const storeData = {
|
|
92
|
-
key,
|
|
93
|
-
namespace,
|
|
94
|
-
value,
|
|
95
|
-
ttl,
|
|
96
|
-
tags,
|
|
97
|
-
asVector,
|
|
98
|
-
storedAt: new Date().toISOString(),
|
|
99
|
-
size: Buffer.byteLength(value, 'utf8')
|
|
100
|
-
};
|
|
101
|
-
output.printInfo(`Storing in ${namespace}/${key}...`);
|
|
102
|
-
// Use direct sql.js storage with automatic embedding generation
|
|
103
|
-
try {
|
|
104
|
-
const { storeEntry } = await import('../memory/memory-initializer.js');
|
|
105
|
-
if (asVector) {
|
|
106
|
-
output.writeln(output.dim(' Generating embedding vector...'));
|
|
107
|
-
}
|
|
108
|
-
const result = await storeEntry({
|
|
109
|
-
key,
|
|
110
|
-
value,
|
|
111
|
-
namespace,
|
|
112
|
-
generateEmbeddingFlag: true, // Always generate embeddings for semantic search
|
|
113
|
-
tags,
|
|
114
|
-
ttl,
|
|
115
|
-
upsert
|
|
116
|
-
});
|
|
117
|
-
if (!result.success) {
|
|
118
|
-
output.printError(result.error || 'Failed to store');
|
|
119
|
-
return { success: false, exitCode: 1 };
|
|
120
|
-
}
|
|
121
|
-
output.writeln();
|
|
122
|
-
output.printTable({
|
|
123
|
-
columns: [
|
|
124
|
-
{ key: 'property', header: 'Property', width: 15 },
|
|
125
|
-
{ key: 'val', header: 'Value', width: 40 }
|
|
126
|
-
],
|
|
127
|
-
data: [
|
|
128
|
-
{ property: 'Key', val: key },
|
|
129
|
-
{ property: 'Namespace', val: namespace },
|
|
130
|
-
{ property: 'Size', val: `${storeData.size} bytes` },
|
|
131
|
-
{ property: 'TTL', val: ttl ? `${ttl}s` : 'None' },
|
|
132
|
-
{ property: 'Tags', val: tags.length > 0 ? tags.join(', ') : 'None' },
|
|
133
|
-
{ property: 'Vector', val: result.embedding ? `Yes (${result.embedding.dimensions}-dim)` : 'No' },
|
|
134
|
-
{ property: 'ID', val: result.id.substring(0, 20) }
|
|
135
|
-
]
|
|
136
|
-
});
|
|
137
|
-
output.writeln();
|
|
138
|
-
output.printSuccess('Data stored successfully');
|
|
139
|
-
return { success: true, data: { ...storeData, id: result.id, embedding: result.embedding } };
|
|
140
|
-
}
|
|
141
|
-
catch (error) {
|
|
142
|
-
output.printError(`Failed to store: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
143
|
-
return { success: false, exitCode: 1 };
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
// Retrieve command
|
|
148
|
-
const retrieveCommand = {
|
|
149
|
-
name: 'retrieve',
|
|
150
|
-
aliases: ['get'],
|
|
151
|
-
description: 'Retrieve data from memory',
|
|
152
|
-
options: [
|
|
153
|
-
{
|
|
154
|
-
name: 'key',
|
|
155
|
-
short: 'k',
|
|
156
|
-
description: 'Storage key',
|
|
157
|
-
type: 'string'
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
name: 'namespace',
|
|
161
|
-
short: 'n',
|
|
162
|
-
description: 'Memory namespace',
|
|
163
|
-
type: 'string',
|
|
164
|
-
default: 'default'
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
action: async (ctx) => {
|
|
168
|
-
const key = ctx.flags.key || ctx.args[0];
|
|
169
|
-
const namespace = ctx.flags.namespace;
|
|
170
|
-
if (!key) {
|
|
171
|
-
output.printError('Key is required');
|
|
172
|
-
return { success: false, exitCode: 1 };
|
|
173
|
-
}
|
|
174
|
-
// Use sql.js directly for consistent data access
|
|
175
|
-
try {
|
|
176
|
-
const { getEntry } = await import('../memory/memory-initializer.js');
|
|
177
|
-
const result = await getEntry({ key, namespace });
|
|
178
|
-
if (!result.success) {
|
|
179
|
-
output.printError(`Failed to retrieve: ${result.error}`);
|
|
180
|
-
return { success: false, exitCode: 1 };
|
|
181
|
-
}
|
|
182
|
-
if (!result.found || !result.entry) {
|
|
183
|
-
output.printWarning(`Key not found: ${key}`);
|
|
184
|
-
return { success: false, exitCode: 1, data: { key, found: false } };
|
|
185
|
-
}
|
|
186
|
-
const entry = result.entry;
|
|
187
|
-
if (ctx.flags.format === 'json') {
|
|
188
|
-
output.printJson(entry);
|
|
189
|
-
return { success: true, data: entry };
|
|
190
|
-
}
|
|
191
|
-
output.writeln();
|
|
192
|
-
output.printBox([
|
|
193
|
-
`Namespace: ${entry.namespace}`,
|
|
194
|
-
`Key: ${entry.key}`,
|
|
195
|
-
`Size: ${entry.content.length} bytes`,
|
|
196
|
-
`Access Count: ${entry.accessCount}`,
|
|
197
|
-
`Tags: ${entry.tags.length > 0 ? entry.tags.join(', ') : 'None'}`,
|
|
198
|
-
`Vector: ${entry.hasEmbedding ? 'Yes' : 'No'}`,
|
|
199
|
-
'',
|
|
200
|
-
output.bold('Value:'),
|
|
201
|
-
entry.content
|
|
202
|
-
].join('\n'), 'Memory Entry');
|
|
203
|
-
return { success: true, data: entry };
|
|
204
|
-
}
|
|
205
|
-
catch (error) {
|
|
206
|
-
output.printError(`Failed to retrieve: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
207
|
-
return { success: false, exitCode: 1 };
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
// Search command
|
|
212
|
-
const searchCommand = {
|
|
213
|
-
name: 'search',
|
|
214
|
-
description: 'Search memory with semantic/vector search',
|
|
215
|
-
options: [
|
|
216
|
-
{
|
|
217
|
-
name: 'query',
|
|
218
|
-
short: 'q',
|
|
219
|
-
description: 'Search query',
|
|
220
|
-
type: 'string',
|
|
221
|
-
required: true
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
name: 'namespace',
|
|
225
|
-
short: 'n',
|
|
226
|
-
description: 'Memory namespace',
|
|
227
|
-
type: 'string'
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: 'limit',
|
|
231
|
-
short: 'l',
|
|
232
|
-
description: 'Maximum results',
|
|
233
|
-
type: 'number',
|
|
234
|
-
default: 10
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
name: 'threshold',
|
|
238
|
-
description: 'Similarity threshold (0-1)',
|
|
239
|
-
type: 'number',
|
|
240
|
-
default: 0.7
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
name: 'type',
|
|
244
|
-
short: 't',
|
|
245
|
-
description: 'Search type (semantic, keyword, hybrid)',
|
|
246
|
-
type: 'string',
|
|
247
|
-
default: 'semantic',
|
|
248
|
-
choices: ['semantic', 'keyword', 'hybrid']
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
name: 'build-hnsw',
|
|
252
|
-
description: 'Build/rebuild HNSW index before searching (enables 150x-12,500x speedup)',
|
|
253
|
-
type: 'boolean',
|
|
254
|
-
default: false
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
examples: [
|
|
258
|
-
{ command: 'monomind memory search -q "authentication patterns"', description: 'Semantic search' },
|
|
259
|
-
{ command: 'monomind memory search -q "JWT" -t keyword', description: 'Keyword search' },
|
|
260
|
-
{ command: 'monomind memory search -q "test" --build-hnsw', description: 'Build HNSW index and search' }
|
|
261
|
-
],
|
|
262
|
-
action: async (ctx) => {
|
|
263
|
-
const query = ctx.flags.query || ctx.args[0];
|
|
264
|
-
const namespace = ctx.flags.namespace || 'all';
|
|
265
|
-
const limit = ctx.flags.limit || 10;
|
|
266
|
-
const threshold = ctx.flags.threshold || 0.3;
|
|
267
|
-
const searchType = ctx.flags.type || 'semantic';
|
|
268
|
-
const buildHnsw = (ctx.flags['build-hnsw'] || ctx.flags.buildHnsw);
|
|
269
|
-
if (!query) {
|
|
270
|
-
output.printError('Query is required. Use --query or -q');
|
|
271
|
-
return { success: false, exitCode: 1 };
|
|
272
|
-
}
|
|
273
|
-
// Build/rebuild HNSW index if requested
|
|
274
|
-
if (buildHnsw) {
|
|
275
|
-
output.printInfo('Building HNSW index...');
|
|
276
|
-
try {
|
|
277
|
-
const { getHNSWIndex, getHNSWStatus } = await import('../memory/memory-initializer.js');
|
|
278
|
-
const startTime = Date.now();
|
|
279
|
-
const index = await getHNSWIndex({ forceRebuild: true });
|
|
280
|
-
const buildTime = Date.now() - startTime;
|
|
281
|
-
if (index) {
|
|
282
|
-
const status = getHNSWStatus();
|
|
283
|
-
output.printSuccess(`HNSW index built (${status.entryCount} vectors, ${buildTime}ms)`);
|
|
284
|
-
output.writeln(output.dim(` Dimensions: ${status.dimensions}, Metric: cosine`));
|
|
285
|
-
output.writeln(output.dim(` Search speedup: ${status.entryCount > 10000 ? '12,500x' : status.entryCount > 1000 ? '150x' : '10x'}`));
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
output.printWarning('HNSW index not available (install @ruvector/core for acceleration)');
|
|
289
|
-
}
|
|
290
|
-
output.writeln();
|
|
291
|
-
}
|
|
292
|
-
catch (error) {
|
|
293
|
-
output.printWarning(`HNSW build failed: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
294
|
-
output.writeln(output.dim(' Falling back to brute-force search'));
|
|
295
|
-
output.writeln();
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
output.printInfo(`Searching: "${query}" (${searchType})`);
|
|
299
|
-
output.writeln();
|
|
300
|
-
// Use direct sql.js search with vector similarity
|
|
301
|
-
try {
|
|
302
|
-
const { searchEntries } = await import('../memory/memory-initializer.js');
|
|
303
|
-
const searchResult = await searchEntries({
|
|
304
|
-
query,
|
|
305
|
-
namespace,
|
|
306
|
-
limit,
|
|
307
|
-
threshold
|
|
308
|
-
});
|
|
309
|
-
if (!searchResult.success) {
|
|
310
|
-
output.printError(searchResult.error || 'Search failed');
|
|
311
|
-
return { success: false, exitCode: 1 };
|
|
312
|
-
}
|
|
313
|
-
const results = searchResult.results.map(r => ({
|
|
314
|
-
key: r.key,
|
|
315
|
-
score: r.score,
|
|
316
|
-
namespace: r.namespace,
|
|
317
|
-
preview: r.content
|
|
318
|
-
}));
|
|
319
|
-
if (ctx.flags.format === 'json') {
|
|
320
|
-
output.printJson({ query, searchType, results, searchTime: `${searchResult.searchTime}ms` });
|
|
321
|
-
return { success: true, data: results };
|
|
322
|
-
}
|
|
323
|
-
// Performance stats
|
|
324
|
-
output.writeln(output.dim(` Search time: ${searchResult.searchTime}ms`));
|
|
325
|
-
output.writeln();
|
|
326
|
-
if (results.length === 0) {
|
|
327
|
-
output.printWarning('No results found');
|
|
328
|
-
output.writeln(output.dim('Try: monomind memory store -k "key" --value "data"'));
|
|
329
|
-
return { success: true, data: [] };
|
|
330
|
-
}
|
|
331
|
-
output.printTable({
|
|
332
|
-
columns: [
|
|
333
|
-
{ key: 'key', header: 'Key', width: 20 },
|
|
334
|
-
{ key: 'score', header: 'Score', width: 8, align: 'right', format: (v) => Number(v).toFixed(2) },
|
|
335
|
-
{ key: 'namespace', header: 'Namespace', width: 12 },
|
|
336
|
-
{ key: 'preview', header: 'Preview', width: 35 }
|
|
337
|
-
],
|
|
338
|
-
data: results
|
|
339
|
-
});
|
|
340
|
-
output.writeln();
|
|
341
|
-
output.printInfo(`Found ${results.length} results`);
|
|
342
|
-
return { success: true, data: results };
|
|
343
|
-
}
|
|
344
|
-
catch (error) {
|
|
345
|
-
output.printError(`Search failed: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
346
|
-
return { success: false, exitCode: 1 };
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
};
|
|
350
|
-
// List command
|
|
351
|
-
const listCommand = {
|
|
352
|
-
name: 'list',
|
|
353
|
-
aliases: ['ls'],
|
|
354
|
-
description: 'List memory entries',
|
|
355
|
-
options: [
|
|
356
|
-
{
|
|
357
|
-
name: 'namespace',
|
|
358
|
-
short: 'n',
|
|
359
|
-
description: 'Filter by namespace',
|
|
360
|
-
type: 'string'
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
name: 'tags',
|
|
364
|
-
short: 't',
|
|
365
|
-
description: 'Filter by tags (comma-separated)',
|
|
366
|
-
type: 'string'
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
name: 'limit',
|
|
370
|
-
short: 'l',
|
|
371
|
-
description: 'Maximum entries',
|
|
372
|
-
type: 'number',
|
|
373
|
-
default: 20
|
|
374
|
-
}
|
|
375
|
-
],
|
|
376
|
-
action: async (ctx) => {
|
|
377
|
-
const namespace = ctx.flags.namespace;
|
|
378
|
-
const limit = ctx.flags.limit;
|
|
379
|
-
// Use sql.js directly for consistent data access
|
|
380
|
-
try {
|
|
381
|
-
const { listEntries } = await import('../memory/memory-initializer.js');
|
|
382
|
-
const listResult = await listEntries({ namespace, limit, offset: 0 });
|
|
383
|
-
if (!listResult.success) {
|
|
384
|
-
output.printError(`Failed to list: ${listResult.error}`);
|
|
385
|
-
return { success: false, exitCode: 1 };
|
|
386
|
-
}
|
|
387
|
-
// Format entries for display
|
|
388
|
-
const entries = listResult.entries.map(e => ({
|
|
389
|
-
key: e.key,
|
|
390
|
-
namespace: e.namespace,
|
|
391
|
-
size: e.size + ' B',
|
|
392
|
-
vector: e.hasEmbedding ? '✓' : '-',
|
|
393
|
-
accessCount: e.accessCount,
|
|
394
|
-
updated: formatRelativeTime(e.updatedAt)
|
|
395
|
-
}));
|
|
396
|
-
if (ctx.flags.format === 'json') {
|
|
397
|
-
output.printJson(listResult.entries);
|
|
398
|
-
return { success: true, data: listResult.entries };
|
|
399
|
-
}
|
|
400
|
-
output.writeln();
|
|
401
|
-
output.writeln(output.bold('Memory Entries'));
|
|
402
|
-
output.writeln();
|
|
403
|
-
if (entries.length === 0) {
|
|
404
|
-
output.printWarning('No entries found');
|
|
405
|
-
output.printInfo('Store data: monomind memory store -k "key" --value "data"');
|
|
406
|
-
return { success: true, data: [] };
|
|
407
|
-
}
|
|
408
|
-
output.printTable({
|
|
409
|
-
columns: [
|
|
410
|
-
{ key: 'key', header: 'Key', width: 25 },
|
|
411
|
-
{ key: 'namespace', header: 'Namespace', width: 12 },
|
|
412
|
-
{ key: 'size', header: 'Size', width: 10, align: 'right' },
|
|
413
|
-
{ key: 'vector', header: 'Vector', width: 8, align: 'center' },
|
|
414
|
-
{ key: 'accessCount', header: 'Accessed', width: 10, align: 'right' },
|
|
415
|
-
{ key: 'updated', header: 'Updated', width: 12 }
|
|
416
|
-
],
|
|
417
|
-
data: entries
|
|
418
|
-
});
|
|
419
|
-
output.writeln();
|
|
420
|
-
output.printInfo(`Showing ${entries.length} of ${listResult.total} entries`);
|
|
421
|
-
return { success: true, data: listResult.entries };
|
|
422
|
-
}
|
|
423
|
-
catch (error) {
|
|
424
|
-
output.printError(`Failed to list: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
425
|
-
return { success: false, exitCode: 1 };
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
// Helper function to format relative time
|
|
430
|
-
function formatRelativeTime(isoDate) {
|
|
431
|
-
const now = Date.now();
|
|
432
|
-
const date = new Date(isoDate).getTime();
|
|
433
|
-
const diff = now - date;
|
|
434
|
-
const seconds = Math.floor(diff / 1000);
|
|
435
|
-
const minutes = Math.floor(seconds / 60);
|
|
436
|
-
const hours = Math.floor(minutes / 60);
|
|
437
|
-
const days = Math.floor(hours / 24);
|
|
438
|
-
if (days > 0)
|
|
439
|
-
return `${days}d ago`;
|
|
440
|
-
if (hours > 0)
|
|
441
|
-
return `${hours}h ago`;
|
|
442
|
-
if (minutes > 0)
|
|
443
|
-
return `${minutes}m ago`;
|
|
444
|
-
return 'just now';
|
|
445
|
-
}
|
|
446
|
-
// Delete command
|
|
447
|
-
// Edit command
|
|
448
|
-
const editCommand = {
|
|
449
|
-
name: 'edit',
|
|
450
|
-
description: 'Edit a memory entry (AgentDB, Memory Palace, or knowledge chunk)',
|
|
451
|
-
options: [
|
|
452
|
-
{ name: 'key', short: 'k', description: 'Storage key (AgentDB)', type: 'string' },
|
|
453
|
-
{ name: 'namespace', short: 'n', description: 'Memory namespace (AgentDB)', type: 'string', default: 'default' },
|
|
454
|
-
{ name: 'value', description: 'New value/content', type: 'string' },
|
|
455
|
-
{ name: 'source', short: 's', description: 'Source to edit: agentdb, palace, knowledge', type: 'string', default: 'agentdb', choices: ['agentdb', 'palace', 'knowledge'] },
|
|
456
|
-
{ name: 'id', description: 'Entry ID (palace/knowledge)', type: 'string' }
|
|
457
|
-
],
|
|
458
|
-
examples: [
|
|
459
|
-
{ command: 'monomind memory edit -k "pattern/auth" --value "updated content"', description: 'Edit AgentDB entry' },
|
|
460
|
-
{ command: 'monomind memory edit --source palace --id "abc123" --value "new content"', description: 'Edit Memory Palace drawer' },
|
|
461
|
-
{ command: 'monomind memory edit --source knowledge --id "chunk-42" --value "updated"', description: 'Edit knowledge chunk' }
|
|
462
|
-
],
|
|
463
|
-
action: async (ctx) => {
|
|
464
|
-
const source = ctx.flags.source || 'agentdb';
|
|
465
|
-
let value = ctx.flags.value || ctx.args[0];
|
|
466
|
-
const fs = await import('fs');
|
|
467
|
-
const path = await import('path');
|
|
468
|
-
if (source === 'agentdb') {
|
|
469
|
-
const key = ctx.flags.key;
|
|
470
|
-
const namespace = ctx.flags.namespace || 'default';
|
|
471
|
-
if (!key) {
|
|
472
|
-
output.printError('Key is required for AgentDB edit. Use --key or -k');
|
|
473
|
-
return { success: false, exitCode: 1 };
|
|
474
|
-
}
|
|
475
|
-
if (!value && ctx.interactive) {
|
|
476
|
-
value = await input({ message: 'Enter new value:', validate: v => v.length > 0 || 'Value required' });
|
|
477
|
-
}
|
|
478
|
-
if (!value) {
|
|
479
|
-
output.printError('Value is required. Use --value');
|
|
480
|
-
return { success: false, exitCode: 1 };
|
|
481
|
-
}
|
|
482
|
-
try {
|
|
483
|
-
const { storeEntry } = await import('../memory/memory-initializer.js');
|
|
484
|
-
const result = await storeEntry({ key, value, namespace, generateEmbeddingFlag: true, upsert: true });
|
|
485
|
-
if (!result.success) {
|
|
486
|
-
output.printError(result.error || 'Failed to update');
|
|
487
|
-
return { success: false, exitCode: 1 };
|
|
488
|
-
}
|
|
489
|
-
output.printSuccess(`Updated "${key}" in namespace "${namespace}"`);
|
|
490
|
-
return { success: true, data: result };
|
|
491
|
-
}
|
|
492
|
-
catch (error) {
|
|
493
|
-
output.printError(`Failed to edit: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
494
|
-
return { success: false, exitCode: 1 };
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
// palace or knowledge — JSONL file edit
|
|
498
|
-
const id = ctx.flags.id;
|
|
499
|
-
if (!id) {
|
|
500
|
-
output.printError('Entry ID is required for palace/knowledge edit. Use --id');
|
|
501
|
-
return { success: false, exitCode: 1 };
|
|
502
|
-
}
|
|
503
|
-
const filePath = source === 'palace'
|
|
504
|
-
? path.join(process.cwd(), '.monomind', 'palace', 'drawers.jsonl')
|
|
505
|
-
: path.join(process.cwd(), '.monomind', 'knowledge', 'chunks.jsonl');
|
|
506
|
-
if (!fs.existsSync(filePath)) {
|
|
507
|
-
output.printError(`File not found: ${filePath}`);
|
|
508
|
-
return { success: false, exitCode: 1 };
|
|
509
|
-
}
|
|
510
|
-
let entries;
|
|
511
|
-
try {
|
|
512
|
-
const raw = fs.readFileSync(filePath, 'utf8');
|
|
513
|
-
entries = raw.split('\n').filter(Boolean).map(l => JSON.parse(l));
|
|
514
|
-
}
|
|
515
|
-
catch (err) {
|
|
516
|
-
output.printError(`Failed to read ${source} file: ${err instanceof Error ? err.message : 'Unknown error'}`);
|
|
517
|
-
return { success: false, exitCode: 1 };
|
|
518
|
-
}
|
|
519
|
-
const idx = entries.findIndex(e => e.id === id);
|
|
520
|
-
if (idx === -1) {
|
|
521
|
-
output.printWarning(`Entry not found with id "${id}"`);
|
|
522
|
-
return { success: false, exitCode: 1 };
|
|
523
|
-
}
|
|
524
|
-
if (!value && ctx.interactive) {
|
|
525
|
-
output.writeln(output.dim('Current content:'));
|
|
526
|
-
output.writeln(entries[idx].content || '(empty)');
|
|
527
|
-
output.writeln();
|
|
528
|
-
value = await input({ message: 'Enter new content:', validate: v => v.length > 0 || 'Content required' });
|
|
529
|
-
}
|
|
530
|
-
if (!value) {
|
|
531
|
-
output.printError('Value is required. Use --value');
|
|
532
|
-
return { success: false, exitCode: 1 };
|
|
533
|
-
}
|
|
534
|
-
entries[idx] = { ...entries[idx], content: value, ts: new Date().toISOString() };
|
|
535
|
-
try {
|
|
536
|
-
fs.writeFileSync(filePath, entries.map(e => JSON.stringify(e)).join('\n') + '\n');
|
|
537
|
-
output.printSuccess(`Updated ${source} entry "${id}"`);
|
|
538
|
-
return { success: true, data: entries[idx] };
|
|
539
|
-
}
|
|
540
|
-
catch (err) {
|
|
541
|
-
output.printError(`Failed to write ${source} file: ${err instanceof Error ? err.message : 'Unknown error'}`);
|
|
542
|
-
return { success: false, exitCode: 1 };
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
// Templates command
|
|
547
|
-
const templatesCommand = {
|
|
548
|
-
name: 'templates',
|
|
549
|
-
description: 'Show best-practice templates for memory entries',
|
|
550
|
-
options: [
|
|
551
|
-
{ name: 'type', short: 't', description: 'Template type: user, feedback, project, reference', type: 'string', choices: ['user', 'feedback', 'project', 'reference'] }
|
|
552
|
-
],
|
|
553
|
-
examples: [
|
|
554
|
-
{ command: 'monomind memory templates', description: 'Show all templates' },
|
|
555
|
-
{ command: 'monomind memory templates -t feedback', description: 'Show feedback template only' }
|
|
556
|
-
],
|
|
557
|
-
action: async (ctx) => {
|
|
558
|
-
const filter = ctx.flags.type;
|
|
559
|
-
const templates = {
|
|
560
|
-
user: {
|
|
561
|
-
label: 'User Memory',
|
|
562
|
-
description: 'Role, goals, preferences, knowledge level',
|
|
563
|
-
example: [
|
|
564
|
-
'---',
|
|
565
|
-
'name: user_role',
|
|
566
|
-
'description: <one-line summary of user role and context>',
|
|
567
|
-
'type: user',
|
|
568
|
-
'---',
|
|
569
|
-
'',
|
|
570
|
-
'<Role and experience description. What does the user know well? What are they new to?>',
|
|
571
|
-
'Frame explanations accordingly.'
|
|
572
|
-
].join('\n')
|
|
573
|
-
},
|
|
574
|
-
feedback: {
|
|
575
|
-
label: 'Feedback Memory',
|
|
576
|
-
description: 'How to approach work — corrections and validated choices',
|
|
577
|
-
example: [
|
|
578
|
-
'---',
|
|
579
|
-
'name: feedback_<topic>',
|
|
580
|
-
'description: <one-line rule that triggers on lookup>',
|
|
581
|
-
'type: feedback',
|
|
582
|
-
'---',
|
|
583
|
-
'',
|
|
584
|
-
'<The rule itself — what to do or avoid.>',
|
|
585
|
-
'',
|
|
586
|
-
'**Why:** <Reason the user gave — past incident, strong preference, etc.>',
|
|
587
|
-
'',
|
|
588
|
-
'**How to apply:** <When does this kick in? What edge cases does it cover?>'
|
|
589
|
-
].join('\n')
|
|
590
|
-
},
|
|
591
|
-
project: {
|
|
592
|
-
label: 'Project Memory',
|
|
593
|
-
description: 'Ongoing work context, goals, decisions, deadlines',
|
|
594
|
-
example: [
|
|
595
|
-
'---',
|
|
596
|
-
'name: project_<initiative>',
|
|
597
|
-
'description: <one-line fact about the project decision or constraint>',
|
|
598
|
-
'type: project',
|
|
599
|
-
'---',
|
|
600
|
-
'',
|
|
601
|
-
'<The fact or decision — what is happening and what was decided.>',
|
|
602
|
-
'',
|
|
603
|
-
'**Why:** <Motivation — constraint, deadline, stakeholder ask, compliance issue.>',
|
|
604
|
-
'',
|
|
605
|
-
'**How to apply:** <How should this shape future suggestions and decisions?>'
|
|
606
|
-
].join('\n')
|
|
607
|
-
},
|
|
608
|
-
reference: {
|
|
609
|
-
label: 'Reference Memory',
|
|
610
|
-
description: 'Pointers to external resources and where to find information',
|
|
611
|
-
example: [
|
|
612
|
-
'---',
|
|
613
|
-
'name: reference_<resource>',
|
|
614
|
-
'description: <what this resource contains and when to use it>',
|
|
615
|
-
'type: reference',
|
|
616
|
-
'---',
|
|
617
|
-
'',
|
|
618
|
-
'<Resource name and location (URL, project name, channel, etc.)>',
|
|
619
|
-
'',
|
|
620
|
-
'Use this when: <specific scenarios where this reference is relevant>.'
|
|
621
|
-
].join('\n')
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
output.writeln();
|
|
625
|
-
output.writeln(output.bold('Memory Entry Templates'));
|
|
626
|
-
output.writeln(output.dim('Best-practice scaffolds for .claude/projects/.../memory/ entries'));
|
|
627
|
-
output.writeln();
|
|
628
|
-
const keys = filter ? [filter] : Object.keys(templates);
|
|
629
|
-
for (const key of keys) {
|
|
630
|
-
const t = templates[key];
|
|
631
|
-
if (!t) {
|
|
632
|
-
output.printError(`Unknown type: "${key}". Valid types: user, feedback, project, reference`);
|
|
633
|
-
return { success: false, exitCode: 1 };
|
|
634
|
-
}
|
|
635
|
-
output.writeln(output.bold(`── ${t.label} (--type ${key})`));
|
|
636
|
-
output.writeln(output.dim(` ${t.description}`));
|
|
637
|
-
output.writeln();
|
|
638
|
-
output.writeln(t.example);
|
|
639
|
-
output.writeln();
|
|
640
|
-
}
|
|
641
|
-
output.writeln(output.dim('Save with: monomind memory store -k "<name>" --value "<content>" --namespace auto-memory'));
|
|
642
|
-
return { success: true };
|
|
643
|
-
}
|
|
644
|
-
};
|
|
645
|
-
// Delete command
|
|
646
|
-
const deleteCommand = {
|
|
647
|
-
name: 'delete',
|
|
648
|
-
aliases: ['rm'],
|
|
649
|
-
description: 'Delete a memory entry (AgentDB, Memory Palace, or knowledge chunk)',
|
|
650
|
-
options: [
|
|
651
|
-
{
|
|
652
|
-
name: 'key',
|
|
653
|
-
short: 'k',
|
|
654
|
-
description: 'Storage key (AgentDB)',
|
|
655
|
-
type: 'string'
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
name: 'namespace',
|
|
659
|
-
short: 'n',
|
|
660
|
-
description: 'Memory namespace (AgentDB)',
|
|
661
|
-
type: 'string',
|
|
662
|
-
default: 'default'
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
name: 'source',
|
|
666
|
-
short: 's',
|
|
667
|
-
description: 'Source to delete from: agentdb, palace, knowledge',
|
|
668
|
-
type: 'string',
|
|
669
|
-
default: 'agentdb',
|
|
670
|
-
choices: ['agentdb', 'palace', 'knowledge']
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
name: 'id',
|
|
674
|
-
description: 'Entry ID (palace/knowledge)',
|
|
675
|
-
type: 'string'
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
name: 'force',
|
|
679
|
-
short: 'f',
|
|
680
|
-
description: 'Skip confirmation',
|
|
681
|
-
type: 'boolean',
|
|
682
|
-
default: false
|
|
683
|
-
}
|
|
684
|
-
],
|
|
685
|
-
examples: [
|
|
686
|
-
{ command: 'monomind memory delete -k "mykey"', description: 'Delete AgentDB entry' },
|
|
687
|
-
{ command: 'monomind memory delete -k "lesson" -n "lessons"', description: 'Delete from specific namespace' },
|
|
688
|
-
{ command: 'monomind memory delete --source palace --id "abc123"', description: 'Delete Memory Palace drawer' },
|
|
689
|
-
{ command: 'monomind memory delete --source knowledge --id "chunk-42" -f', description: 'Delete knowledge chunk (no confirm)' }
|
|
690
|
-
],
|
|
691
|
-
action: async (ctx) => {
|
|
692
|
-
const source = ctx.flags.source || 'agentdb';
|
|
693
|
-
const force = ctx.flags.force;
|
|
694
|
-
if (source === 'agentdb') {
|
|
695
|
-
const key = ctx.flags.key || ctx.args[0];
|
|
696
|
-
const namespace = ctx.flags.namespace || 'default';
|
|
697
|
-
if (!key) {
|
|
698
|
-
output.printError('Key is required. Use: memory delete -k "key" [-n "namespace"]');
|
|
699
|
-
return { success: false, exitCode: 1 };
|
|
700
|
-
}
|
|
701
|
-
if (!force && ctx.interactive) {
|
|
702
|
-
const confirmed = await confirm({
|
|
703
|
-
message: `Delete memory entry "${key}" from namespace "${namespace}"?`,
|
|
704
|
-
default: false
|
|
705
|
-
});
|
|
706
|
-
if (!confirmed) {
|
|
707
|
-
output.printInfo('Operation cancelled');
|
|
708
|
-
return { success: true };
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
try {
|
|
712
|
-
const { deleteEntry } = await import('../memory/memory-initializer.js');
|
|
713
|
-
const result = await deleteEntry({ key, namespace });
|
|
714
|
-
if (!result.success) {
|
|
715
|
-
output.printError(result.error || 'Failed to delete');
|
|
716
|
-
return { success: false, exitCode: 1 };
|
|
717
|
-
}
|
|
718
|
-
if (result.deleted) {
|
|
719
|
-
output.printSuccess(`Deleted "${key}" from namespace "${namespace}"`);
|
|
720
|
-
output.printInfo(`Remaining entries: ${result.remainingEntries}`);
|
|
721
|
-
}
|
|
722
|
-
else {
|
|
723
|
-
output.printWarning(`Key not found: "${key}" in namespace "${namespace}"`);
|
|
724
|
-
}
|
|
725
|
-
return { success: result.deleted, data: result };
|
|
726
|
-
}
|
|
727
|
-
catch (error) {
|
|
728
|
-
output.printError(`Failed to delete: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
729
|
-
return { success: false, exitCode: 1 };
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
// palace or knowledge — JSONL file delete
|
|
733
|
-
const id = ctx.flags.id || ctx.args[0];
|
|
734
|
-
if (!id) {
|
|
735
|
-
output.printError('Entry ID is required for palace/knowledge delete. Use --id');
|
|
736
|
-
return { success: false, exitCode: 1 };
|
|
737
|
-
}
|
|
738
|
-
const fs = await import('fs');
|
|
739
|
-
const path = await import('path');
|
|
740
|
-
const filePath = source === 'palace'
|
|
741
|
-
? path.join(process.cwd(), '.monomind', 'palace', 'drawers.jsonl')
|
|
742
|
-
: path.join(process.cwd(), '.monomind', 'knowledge', 'chunks.jsonl');
|
|
743
|
-
if (!fs.existsSync(filePath)) {
|
|
744
|
-
output.printError(`File not found: ${filePath}`);
|
|
745
|
-
return { success: false, exitCode: 1 };
|
|
746
|
-
}
|
|
747
|
-
let entries;
|
|
748
|
-
try {
|
|
749
|
-
const raw = fs.readFileSync(filePath, 'utf8');
|
|
750
|
-
entries = raw.split('\n').filter(Boolean).map(l => JSON.parse(l));
|
|
751
|
-
}
|
|
752
|
-
catch (err) {
|
|
753
|
-
output.printError(`Failed to read ${source} file: ${err instanceof Error ? err.message : 'Unknown error'}`);
|
|
754
|
-
return { success: false, exitCode: 1 };
|
|
755
|
-
}
|
|
756
|
-
const idx = entries.findIndex(e => e.id === id);
|
|
757
|
-
if (idx === -1) {
|
|
758
|
-
output.printWarning(`Entry not found with id "${id}"`);
|
|
759
|
-
return { success: false, exitCode: 1 };
|
|
760
|
-
}
|
|
761
|
-
if (!force && ctx.interactive) {
|
|
762
|
-
const confirmed = await confirm({
|
|
763
|
-
message: `Delete ${source} entry "${id}"?`,
|
|
764
|
-
default: false
|
|
765
|
-
});
|
|
766
|
-
if (!confirmed) {
|
|
767
|
-
output.printInfo('Operation cancelled');
|
|
768
|
-
return { success: true };
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
entries.splice(idx, 1);
|
|
772
|
-
try {
|
|
773
|
-
fs.writeFileSync(filePath, entries.map(e => JSON.stringify(e)).join('\n') + (entries.length ? '\n' : ''));
|
|
774
|
-
output.printSuccess(`Deleted ${source} entry "${id}"`);
|
|
775
|
-
output.printInfo(`Remaining entries: ${entries.length}`);
|
|
776
|
-
return { success: true, data: { id, deleted: true, remainingEntries: entries.length } };
|
|
777
|
-
}
|
|
778
|
-
catch (err) {
|
|
779
|
-
output.printError(`Failed to write ${source} file: ${err instanceof Error ? err.message : 'Unknown error'}`);
|
|
780
|
-
return { success: false, exitCode: 1 };
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
|
-
// Stats command
|
|
785
|
-
const statsCommand = {
|
|
786
|
-
name: 'stats',
|
|
787
|
-
description: 'Show memory statistics',
|
|
788
|
-
action: async (ctx) => {
|
|
789
|
-
// Call MCP memory/stats tool for real statistics
|
|
790
|
-
try {
|
|
791
|
-
const statsResult = await callMCPTool('memory_stats', {});
|
|
792
|
-
const stats = {
|
|
793
|
-
backend: statsResult.backend,
|
|
794
|
-
entries: {
|
|
795
|
-
total: statsResult.totalEntries,
|
|
796
|
-
vectors: 0, // Would need vector backend support
|
|
797
|
-
text: statsResult.totalEntries
|
|
798
|
-
},
|
|
799
|
-
storage: {
|
|
800
|
-
total: statsResult.totalSize,
|
|
801
|
-
location: statsResult.location
|
|
802
|
-
},
|
|
803
|
-
version: statsResult.version,
|
|
804
|
-
oldestEntry: statsResult.oldestEntry,
|
|
805
|
-
newestEntry: statsResult.newestEntry
|
|
806
|
-
};
|
|
807
|
-
if (ctx.flags.format === 'json') {
|
|
808
|
-
output.printJson(stats);
|
|
809
|
-
return { success: true, data: stats };
|
|
810
|
-
}
|
|
811
|
-
output.writeln();
|
|
812
|
-
output.writeln(output.bold('Memory Statistics'));
|
|
813
|
-
output.writeln();
|
|
814
|
-
output.writeln(output.bold('Overview'));
|
|
815
|
-
output.printTable({
|
|
816
|
-
columns: [
|
|
817
|
-
{ key: 'metric', header: 'Metric', width: 20 },
|
|
818
|
-
{ key: 'value', header: 'Value', width: 30, align: 'right' }
|
|
819
|
-
],
|
|
820
|
-
data: [
|
|
821
|
-
{ metric: 'Backend', value: stats.backend },
|
|
822
|
-
{ metric: 'Version', value: stats.version },
|
|
823
|
-
{ metric: 'Total Entries', value: stats.entries.total.toLocaleString() },
|
|
824
|
-
{ metric: 'Total Storage', value: stats.storage.total },
|
|
825
|
-
{ metric: 'Location', value: stats.storage.location }
|
|
826
|
-
]
|
|
827
|
-
});
|
|
828
|
-
output.writeln();
|
|
829
|
-
output.writeln(output.bold('Timeline'));
|
|
830
|
-
output.printTable({
|
|
831
|
-
columns: [
|
|
832
|
-
{ key: 'metric', header: 'Metric', width: 20 },
|
|
833
|
-
{ key: 'value', header: 'Value', width: 30, align: 'right' }
|
|
834
|
-
],
|
|
835
|
-
data: [
|
|
836
|
-
{ metric: 'Oldest Entry', value: stats.oldestEntry || 'N/A' },
|
|
837
|
-
{ metric: 'Newest Entry', value: stats.newestEntry || 'N/A' }
|
|
838
|
-
]
|
|
839
|
-
});
|
|
840
|
-
output.writeln();
|
|
841
|
-
output.printInfo('v1 Performance: 150x-12,500x faster search with HNSW indexing');
|
|
842
|
-
return { success: true, data: stats };
|
|
843
|
-
}
|
|
844
|
-
catch (error) {
|
|
845
|
-
output.printError(`Failed to get stats: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
846
|
-
return { success: false, exitCode: 1 };
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
};
|
|
850
|
-
// Configure command
|
|
851
|
-
const configureCommand = {
|
|
852
|
-
name: 'configure',
|
|
853
|
-
aliases: ['config'],
|
|
854
|
-
description: 'Configure memory backend',
|
|
855
|
-
options: [
|
|
856
|
-
{
|
|
857
|
-
name: 'backend',
|
|
858
|
-
short: 'b',
|
|
859
|
-
description: 'Memory backend',
|
|
860
|
-
type: 'string',
|
|
861
|
-
choices: BACKENDS.map(b => b.value)
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
name: 'path',
|
|
865
|
-
description: 'Storage path',
|
|
866
|
-
type: 'string'
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
name: 'cache-size',
|
|
870
|
-
description: 'Cache size in MB',
|
|
871
|
-
type: 'number'
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
name: 'hnsw-m',
|
|
875
|
-
description: 'HNSW M parameter',
|
|
876
|
-
type: 'number',
|
|
877
|
-
default: 16
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
name: 'hnsw-ef',
|
|
881
|
-
description: 'HNSW ef parameter',
|
|
882
|
-
type: 'number',
|
|
883
|
-
default: 200
|
|
884
|
-
}
|
|
885
|
-
],
|
|
886
|
-
action: async (ctx) => {
|
|
887
|
-
let backend = ctx.flags.backend;
|
|
888
|
-
if (!backend && ctx.interactive) {
|
|
889
|
-
backend = await select({
|
|
890
|
-
message: 'Select memory backend:',
|
|
891
|
-
options: BACKENDS,
|
|
892
|
-
default: 'hybrid'
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
const config = {
|
|
896
|
-
backend: backend || 'hybrid',
|
|
897
|
-
path: ctx.flags.path || './data/memory',
|
|
898
|
-
cacheSize: ctx.flags.cacheSize || 256,
|
|
899
|
-
hnsw: {
|
|
900
|
-
m: ctx.flags.hnswM || 16,
|
|
901
|
-
ef: ctx.flags.hnswEf || 200
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
|
-
output.writeln();
|
|
905
|
-
output.printInfo('Memory Configuration');
|
|
906
|
-
output.writeln();
|
|
907
|
-
output.printTable({
|
|
908
|
-
columns: [
|
|
909
|
-
{ key: 'setting', header: 'Setting', width: 20 },
|
|
910
|
-
{ key: 'value', header: 'Value', width: 25 }
|
|
911
|
-
],
|
|
912
|
-
data: [
|
|
913
|
-
{ setting: 'Backend', value: config.backend },
|
|
914
|
-
{ setting: 'Storage Path', value: config.path },
|
|
915
|
-
{ setting: 'Cache Size', value: `${config.cacheSize} MB` },
|
|
916
|
-
{ setting: 'HNSW M', value: config.hnsw.m },
|
|
917
|
-
{ setting: 'HNSW ef', value: config.hnsw.ef }
|
|
918
|
-
]
|
|
919
|
-
});
|
|
920
|
-
output.writeln();
|
|
921
|
-
output.printSuccess('Memory configuration updated');
|
|
922
|
-
return { success: true, data: config };
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
// Cleanup command
|
|
926
|
-
const cleanupCommand = {
|
|
927
|
-
name: 'cleanup',
|
|
928
|
-
description: 'Clean up stale and expired memory entries',
|
|
929
|
-
options: [
|
|
930
|
-
{
|
|
931
|
-
name: 'dry-run',
|
|
932
|
-
short: 'd',
|
|
933
|
-
description: 'Show what would be deleted',
|
|
934
|
-
type: 'boolean',
|
|
935
|
-
default: false
|
|
936
|
-
},
|
|
937
|
-
{
|
|
938
|
-
name: 'older-than',
|
|
939
|
-
short: 'o',
|
|
940
|
-
description: 'Delete entries older than (e.g., "7d", "30d")',
|
|
941
|
-
type: 'string'
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
name: 'expired-only',
|
|
945
|
-
short: 'e',
|
|
946
|
-
description: 'Only delete expired TTL entries',
|
|
947
|
-
type: 'boolean',
|
|
948
|
-
default: false
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
name: 'low-quality',
|
|
952
|
-
short: 'l',
|
|
953
|
-
description: 'Delete low quality patterns (threshold)',
|
|
954
|
-
type: 'number'
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
name: 'namespace',
|
|
958
|
-
short: 'n',
|
|
959
|
-
description: 'Clean specific namespace only',
|
|
960
|
-
type: 'string'
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
name: 'force',
|
|
964
|
-
short: 'f',
|
|
965
|
-
description: 'Skip confirmation',
|
|
966
|
-
type: 'boolean',
|
|
967
|
-
default: false
|
|
968
|
-
}
|
|
969
|
-
],
|
|
970
|
-
examples: [
|
|
971
|
-
{ command: 'monomind memory cleanup --dry-run', description: 'Preview cleanup' },
|
|
972
|
-
{ command: 'monomind memory cleanup --older-than 30d', description: 'Delete entries older than 30 days' },
|
|
973
|
-
{ command: 'monomind memory cleanup --expired-only', description: 'Clean expired entries' }
|
|
974
|
-
],
|
|
975
|
-
action: async (ctx) => {
|
|
976
|
-
const dryRun = ctx.flags.dryRun;
|
|
977
|
-
const force = ctx.flags.force;
|
|
978
|
-
if (dryRun) {
|
|
979
|
-
output.writeln(output.warning('DRY RUN - No changes will be made'));
|
|
980
|
-
}
|
|
981
|
-
output.printInfo('Analyzing memory for cleanup...');
|
|
982
|
-
try {
|
|
983
|
-
const result = await callMCPTool('memory_cleanup', {
|
|
984
|
-
dryRun,
|
|
985
|
-
olderThan: ctx.flags.olderThan,
|
|
986
|
-
expiredOnly: ctx.flags.expiredOnly,
|
|
987
|
-
lowQualityThreshold: ctx.flags.lowQuality,
|
|
988
|
-
namespace: ctx.flags.namespace,
|
|
989
|
-
});
|
|
990
|
-
if (ctx.flags.format === 'json') {
|
|
991
|
-
output.printJson(result);
|
|
992
|
-
return { success: true, data: result };
|
|
993
|
-
}
|
|
994
|
-
output.writeln();
|
|
995
|
-
output.writeln(output.bold('Cleanup Analysis'));
|
|
996
|
-
output.printTable({
|
|
997
|
-
columns: [
|
|
998
|
-
{ key: 'category', header: 'Category', width: 20 },
|
|
999
|
-
{ key: 'count', header: 'Count', width: 15, align: 'right' }
|
|
1000
|
-
],
|
|
1001
|
-
data: [
|
|
1002
|
-
{ category: 'Expired (TTL)', count: result.candidates.expired },
|
|
1003
|
-
{ category: 'Stale (unused)', count: result.candidates.stale },
|
|
1004
|
-
{ category: 'Low Quality', count: result.candidates.lowQuality },
|
|
1005
|
-
{ category: output.bold('Total'), count: output.bold(String(result.candidates.total)) }
|
|
1006
|
-
]
|
|
1007
|
-
});
|
|
1008
|
-
if (!dryRun && result.candidates.total > 0 && !force) {
|
|
1009
|
-
const confirmed = await confirm({
|
|
1010
|
-
message: `Delete ${result.candidates.total} entries (${result.freed.formatted})?`,
|
|
1011
|
-
default: false
|
|
1012
|
-
});
|
|
1013
|
-
if (!confirmed) {
|
|
1014
|
-
output.printInfo('Cleanup cancelled');
|
|
1015
|
-
return { success: true, data: result };
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
if (!dryRun) {
|
|
1019
|
-
output.writeln();
|
|
1020
|
-
output.printSuccess(`Cleaned ${result.deleted.entries} entries`);
|
|
1021
|
-
output.printList([
|
|
1022
|
-
`Vectors removed: ${result.deleted.vectors}`,
|
|
1023
|
-
`Patterns removed: ${result.deleted.patterns}`,
|
|
1024
|
-
`Space freed: ${result.freed.formatted}`,
|
|
1025
|
-
`Duration: ${result.duration}ms`
|
|
1026
|
-
]);
|
|
1027
|
-
}
|
|
1028
|
-
return { success: true, data: result };
|
|
1029
|
-
}
|
|
1030
|
-
catch (error) {
|
|
1031
|
-
if (error instanceof MCPClientError) {
|
|
1032
|
-
output.printError(`Cleanup error: ${error.message}`);
|
|
1033
|
-
}
|
|
1034
|
-
else {
|
|
1035
|
-
output.printError(`Unexpected error: ${String(error)}`);
|
|
1036
|
-
}
|
|
1037
|
-
return { success: false, exitCode: 1 };
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
};
|
|
1041
|
-
// Compress command
|
|
1042
|
-
const compressCommand = {
|
|
1043
|
-
name: 'compress',
|
|
1044
|
-
description: 'Compress and optimize memory storage',
|
|
1045
|
-
options: [
|
|
1046
|
-
{
|
|
1047
|
-
name: 'level',
|
|
1048
|
-
short: 'l',
|
|
1049
|
-
description: 'Compression level (fast, balanced, max)',
|
|
1050
|
-
type: 'string',
|
|
1051
|
-
choices: ['fast', 'balanced', 'max'],
|
|
1052
|
-
default: 'balanced'
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
name: 'target',
|
|
1056
|
-
short: 't',
|
|
1057
|
-
description: 'Target (vectors, text, patterns, all)',
|
|
1058
|
-
type: 'string',
|
|
1059
|
-
choices: ['vectors', 'text', 'patterns', 'all'],
|
|
1060
|
-
default: 'all'
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
name: 'quantize',
|
|
1064
|
-
short: 'z',
|
|
1065
|
-
description: 'Enable vector quantization (reduces memory 4-32x)',
|
|
1066
|
-
type: 'boolean',
|
|
1067
|
-
default: false
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
name: 'bits',
|
|
1071
|
-
description: 'Quantization bits (4, 8, 16)',
|
|
1072
|
-
type: 'number',
|
|
1073
|
-
default: 8
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
name: 'rebuild-index',
|
|
1077
|
-
short: 'r',
|
|
1078
|
-
description: 'Rebuild HNSW index after compression',
|
|
1079
|
-
type: 'boolean',
|
|
1080
|
-
default: true
|
|
1081
|
-
}
|
|
1082
|
-
],
|
|
1083
|
-
examples: [
|
|
1084
|
-
{ command: 'monomind memory compress', description: 'Balanced compression' },
|
|
1085
|
-
{ command: 'monomind memory compress --quantize --bits 4', description: '4-bit quantization (32x reduction)' },
|
|
1086
|
-
{ command: 'monomind memory compress -l max -t vectors', description: 'Max compression on vectors' }
|
|
1087
|
-
],
|
|
1088
|
-
action: async (ctx) => {
|
|
1089
|
-
const level = ctx.flags.level || 'balanced';
|
|
1090
|
-
const target = ctx.flags.target || 'all';
|
|
1091
|
-
const quantize = ctx.flags.quantize;
|
|
1092
|
-
const bits = ctx.flags.bits || 8;
|
|
1093
|
-
const rebuildIndex = ctx.flags.rebuildIndex ?? true;
|
|
1094
|
-
output.writeln();
|
|
1095
|
-
output.writeln(output.bold('Memory Compression'));
|
|
1096
|
-
output.writeln(output.dim(`Level: ${level}, Target: ${target}, Quantize: ${quantize ? `${bits}-bit` : 'no'}`));
|
|
1097
|
-
output.writeln();
|
|
1098
|
-
const spinner = output.createSpinner({ text: 'Analyzing current storage...', spinner: 'dots' });
|
|
1099
|
-
spinner.start();
|
|
1100
|
-
try {
|
|
1101
|
-
const result = await callMCPTool('memory_compress', {
|
|
1102
|
-
level,
|
|
1103
|
-
target,
|
|
1104
|
-
quantize,
|
|
1105
|
-
bits,
|
|
1106
|
-
rebuildIndex,
|
|
1107
|
-
});
|
|
1108
|
-
spinner.succeed('Compression complete');
|
|
1109
|
-
if (ctx.flags.format === 'json') {
|
|
1110
|
-
output.printJson(result);
|
|
1111
|
-
return { success: true, data: result };
|
|
1112
|
-
}
|
|
1113
|
-
output.writeln();
|
|
1114
|
-
output.writeln(output.bold('Storage Comparison'));
|
|
1115
|
-
output.printTable({
|
|
1116
|
-
columns: [
|
|
1117
|
-
{ key: 'category', header: 'Category', width: 15 },
|
|
1118
|
-
{ key: 'before', header: 'Before', width: 12, align: 'right' },
|
|
1119
|
-
{ key: 'after', header: 'After', width: 12, align: 'right' },
|
|
1120
|
-
{ key: 'saved', header: 'Saved', width: 12, align: 'right' }
|
|
1121
|
-
],
|
|
1122
|
-
data: [
|
|
1123
|
-
{ category: 'Vectors', before: result.before.vectorsSize, after: result.after.vectorsSize, saved: '-' },
|
|
1124
|
-
{ category: 'Text', before: result.before.textSize, after: result.after.textSize, saved: '-' },
|
|
1125
|
-
{ category: 'Patterns', before: result.before.patternsSize, after: result.after.patternsSize, saved: '-' },
|
|
1126
|
-
{ category: 'Index', before: result.before.indexSize, after: result.after.indexSize, saved: '-' },
|
|
1127
|
-
{ category: output.bold('Total'), before: result.before.totalSize, after: result.after.totalSize, saved: output.success(result.compression.formattedSaved) }
|
|
1128
|
-
]
|
|
1129
|
-
});
|
|
1130
|
-
output.writeln();
|
|
1131
|
-
output.printBox([
|
|
1132
|
-
`Compression Ratio: ${result.compression.ratio.toFixed(2)}x`,
|
|
1133
|
-
`Space Saved: ${result.compression.formattedSaved}`,
|
|
1134
|
-
`Quantization: ${result.compression.quantizationApplied ? `Yes (${bits}-bit)` : 'No'}`,
|
|
1135
|
-
`Index Rebuilt: ${result.compression.indexRebuilt ? 'Yes' : 'No'}`,
|
|
1136
|
-
`Duration: ${(result.duration / 1000).toFixed(1)}s`
|
|
1137
|
-
].join('\n'), 'Results');
|
|
1138
|
-
if (result.performance) {
|
|
1139
|
-
output.writeln();
|
|
1140
|
-
output.writeln(output.bold('Performance Impact'));
|
|
1141
|
-
output.printList([
|
|
1142
|
-
`Search latency: ${result.performance.searchLatencyBefore.toFixed(2)}ms → ${result.performance.searchLatencyAfter.toFixed(2)}ms`,
|
|
1143
|
-
`Speedup: ${output.success(result.performance.searchSpeedup)}`
|
|
1144
|
-
]);
|
|
1145
|
-
}
|
|
1146
|
-
return { success: true, data: result };
|
|
1147
|
-
}
|
|
1148
|
-
catch (error) {
|
|
1149
|
-
spinner.fail('Compression failed');
|
|
1150
|
-
if (error instanceof MCPClientError) {
|
|
1151
|
-
output.printError(`Compression error: ${error.message}`);
|
|
1152
|
-
}
|
|
1153
|
-
else {
|
|
1154
|
-
output.printError(`Unexpected error: ${String(error)}`);
|
|
1155
|
-
}
|
|
1156
|
-
return { success: false, exitCode: 1 };
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
};
|
|
1160
|
-
// Export command
|
|
1161
|
-
const exportCommand = {
|
|
1162
|
-
name: 'export',
|
|
1163
|
-
description: 'Export memory to file',
|
|
1164
|
-
options: [
|
|
1165
|
-
{
|
|
1166
|
-
name: 'output',
|
|
1167
|
-
short: 'o',
|
|
1168
|
-
description: 'Output file path',
|
|
1169
|
-
type: 'string',
|
|
1170
|
-
required: true
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
name: 'format',
|
|
1174
|
-
short: 'f',
|
|
1175
|
-
description: 'Export format (json, csv, binary)',
|
|
1176
|
-
type: 'string',
|
|
1177
|
-
choices: ['json', 'csv', 'binary'],
|
|
1178
|
-
default: 'json'
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
name: 'namespace',
|
|
1182
|
-
short: 'n',
|
|
1183
|
-
description: 'Export specific namespace',
|
|
1184
|
-
type: 'string'
|
|
1185
|
-
},
|
|
1186
|
-
{
|
|
1187
|
-
name: 'include-vectors',
|
|
1188
|
-
description: 'Include vector embeddings',
|
|
1189
|
-
type: 'boolean',
|
|
1190
|
-
default: true
|
|
1191
|
-
}
|
|
1192
|
-
],
|
|
1193
|
-
examples: [
|
|
1194
|
-
{ command: 'monomind memory export -o ./backup.json', description: 'Export all to JSON' },
|
|
1195
|
-
{ command: 'monomind memory export -o ./data.csv -f csv', description: 'Export to CSV' }
|
|
1196
|
-
],
|
|
1197
|
-
action: async (ctx) => {
|
|
1198
|
-
const outputPath = ctx.flags.output;
|
|
1199
|
-
const format = ctx.flags.format || 'json';
|
|
1200
|
-
if (!outputPath) {
|
|
1201
|
-
output.printError('Output path is required. Use --output or -o');
|
|
1202
|
-
return { success: false, exitCode: 1 };
|
|
1203
|
-
}
|
|
1204
|
-
output.printInfo(`Exporting memory to ${outputPath}...`);
|
|
1205
|
-
try {
|
|
1206
|
-
const result = await callMCPTool('memory_export', {
|
|
1207
|
-
outputPath,
|
|
1208
|
-
format,
|
|
1209
|
-
namespace: ctx.flags.namespace,
|
|
1210
|
-
includeVectors: ctx.flags.includeVectors ?? true,
|
|
1211
|
-
});
|
|
1212
|
-
output.printSuccess(`Exported to ${result.outputPath}`);
|
|
1213
|
-
output.printList([
|
|
1214
|
-
`Entries: ${result.exported.entries}`,
|
|
1215
|
-
`Vectors: ${result.exported.vectors}`,
|
|
1216
|
-
`Patterns: ${result.exported.patterns}`,
|
|
1217
|
-
`File size: ${result.fileSize}`
|
|
1218
|
-
]);
|
|
1219
|
-
return { success: true, data: result };
|
|
1220
|
-
}
|
|
1221
|
-
catch (error) {
|
|
1222
|
-
if (error instanceof MCPClientError) {
|
|
1223
|
-
output.printError(`Export error: ${error.message}`);
|
|
1224
|
-
}
|
|
1225
|
-
else {
|
|
1226
|
-
output.printError(`Unexpected error: ${String(error)}`);
|
|
1227
|
-
}
|
|
1228
|
-
return { success: false, exitCode: 1 };
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
// Import command
|
|
1233
|
-
const importCommand = {
|
|
1234
|
-
name: 'import',
|
|
1235
|
-
description: 'Import memory from file',
|
|
1236
|
-
options: [
|
|
1237
|
-
{
|
|
1238
|
-
name: 'input',
|
|
1239
|
-
short: 'i',
|
|
1240
|
-
description: 'Input file path',
|
|
1241
|
-
type: 'string',
|
|
1242
|
-
required: true
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
name: 'merge',
|
|
1246
|
-
short: 'm',
|
|
1247
|
-
description: 'Merge with existing (skip duplicates)',
|
|
1248
|
-
type: 'boolean',
|
|
1249
|
-
default: true
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
name: 'namespace',
|
|
1253
|
-
short: 'n',
|
|
1254
|
-
description: 'Import into specific namespace',
|
|
1255
|
-
type: 'string'
|
|
1256
|
-
}
|
|
1257
|
-
],
|
|
1258
|
-
examples: [
|
|
1259
|
-
{ command: 'monomind memory import -i ./backup.json', description: 'Import from file' },
|
|
1260
|
-
{ command: 'monomind memory import -i ./data.json -n archive', description: 'Import to namespace' }
|
|
1261
|
-
],
|
|
1262
|
-
action: async (ctx) => {
|
|
1263
|
-
const inputPath = ctx.flags.input || ctx.args[0];
|
|
1264
|
-
if (!inputPath) {
|
|
1265
|
-
output.printError('Input path is required. Use --input or -i');
|
|
1266
|
-
return { success: false, exitCode: 1 };
|
|
1267
|
-
}
|
|
1268
|
-
output.printInfo(`Importing memory from ${inputPath}...`);
|
|
1269
|
-
try {
|
|
1270
|
-
const result = await callMCPTool('memory_import', {
|
|
1271
|
-
inputPath,
|
|
1272
|
-
merge: ctx.flags.merge ?? true,
|
|
1273
|
-
namespace: ctx.flags.namespace,
|
|
1274
|
-
});
|
|
1275
|
-
output.printSuccess(`Imported from ${result.inputPath}`);
|
|
1276
|
-
output.printList([
|
|
1277
|
-
`Entries: ${result.imported.entries}`,
|
|
1278
|
-
`Vectors: ${result.imported.vectors}`,
|
|
1279
|
-
`Patterns: ${result.imported.patterns}`,
|
|
1280
|
-
`Skipped (duplicates): ${result.skipped}`,
|
|
1281
|
-
`Duration: ${result.duration}ms`
|
|
1282
|
-
]);
|
|
1283
|
-
return { success: true, data: result };
|
|
1284
|
-
}
|
|
1285
|
-
catch (error) {
|
|
1286
|
-
if (error instanceof MCPClientError) {
|
|
1287
|
-
output.printError(`Import error: ${error.message}`);
|
|
1288
|
-
}
|
|
1289
|
-
else {
|
|
1290
|
-
output.printError(`Unexpected error: ${String(error)}`);
|
|
1291
|
-
}
|
|
1292
|
-
return { success: false, exitCode: 1 };
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
// Init subcommand - initialize memory database using sql.js
|
|
1297
|
-
const initMemoryCommand = {
|
|
1298
|
-
name: 'init',
|
|
1299
|
-
description: 'Initialize memory database with sql.js (WASM SQLite) - includes vector embeddings, pattern learning, temporal decay',
|
|
1300
|
-
options: [
|
|
1301
|
-
{
|
|
1302
|
-
name: 'backend',
|
|
1303
|
-
short: 'b',
|
|
1304
|
-
description: 'Backend type: hybrid (default), sqlite, or agentdb',
|
|
1305
|
-
type: 'string',
|
|
1306
|
-
default: 'hybrid'
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
name: 'path',
|
|
1310
|
-
short: 'p',
|
|
1311
|
-
description: 'Database path',
|
|
1312
|
-
type: 'string'
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
name: 'force',
|
|
1316
|
-
short: 'f',
|
|
1317
|
-
description: 'Overwrite existing database',
|
|
1318
|
-
type: 'boolean',
|
|
1319
|
-
default: false
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
name: 'verbose',
|
|
1323
|
-
description: 'Show detailed initialization output',
|
|
1324
|
-
type: 'boolean',
|
|
1325
|
-
default: false
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
name: 'verify',
|
|
1329
|
-
description: 'Run verification tests after initialization',
|
|
1330
|
-
type: 'boolean',
|
|
1331
|
-
default: true
|
|
1332
|
-
},
|
|
1333
|
-
{
|
|
1334
|
-
name: 'load-embeddings',
|
|
1335
|
-
description: 'Pre-load ONNX embedding model (lazy by default)',
|
|
1336
|
-
type: 'boolean',
|
|
1337
|
-
default: false
|
|
1338
|
-
}
|
|
1339
|
-
],
|
|
1340
|
-
examples: [
|
|
1341
|
-
{ command: 'monomind memory init', description: 'Initialize hybrid backend with all features' },
|
|
1342
|
-
{ command: 'monomind memory init -b agentdb', description: 'Initialize AgentDB backend' },
|
|
1343
|
-
{ command: 'monomind memory init -p ./data/memory.db --force', description: 'Reinitialize at custom path' },
|
|
1344
|
-
{ command: 'monomind memory init --verbose --verify', description: 'Initialize with full verification' }
|
|
1345
|
-
],
|
|
1346
|
-
action: async (ctx) => {
|
|
1347
|
-
const backend = ctx.flags.backend || 'hybrid';
|
|
1348
|
-
const customPath = ctx.flags.path;
|
|
1349
|
-
const force = ctx.flags.force;
|
|
1350
|
-
const verbose = ctx.flags.verbose;
|
|
1351
|
-
const verify = ctx.flags.verify !== false; // Default true
|
|
1352
|
-
const loadEmbeddings = ctx.flags.loadEmbeddings;
|
|
1353
|
-
output.writeln();
|
|
1354
|
-
output.writeln(output.bold('Initializing Memory Database'));
|
|
1355
|
-
output.writeln(output.dim('─'.repeat(50)));
|
|
1356
|
-
const spinner = output.createSpinner({ text: 'Initializing schema...', spinner: 'dots' });
|
|
1357
|
-
spinner.start();
|
|
1358
|
-
try {
|
|
1359
|
-
// Import the memory initializer
|
|
1360
|
-
const { initializeMemoryDatabase, loadEmbeddingModel, verifyMemoryInit } = await import('../memory/memory-initializer.js');
|
|
1361
|
-
const result = await initializeMemoryDatabase({
|
|
1362
|
-
backend,
|
|
1363
|
-
dbPath: customPath,
|
|
1364
|
-
force,
|
|
1365
|
-
verbose
|
|
1366
|
-
});
|
|
1367
|
-
if (!result.success) {
|
|
1368
|
-
spinner.fail('Initialization failed');
|
|
1369
|
-
output.printError(result.error || 'Unknown error');
|
|
1370
|
-
return { success: false, exitCode: 1 };
|
|
1371
|
-
}
|
|
1372
|
-
spinner.succeed('Schema initialized');
|
|
1373
|
-
// Lazy load or pre-load embedding model
|
|
1374
|
-
if (loadEmbeddings) {
|
|
1375
|
-
const embeddingSpinner = output.createSpinner({ text: 'Loading embedding model...', spinner: 'dots' });
|
|
1376
|
-
embeddingSpinner.start();
|
|
1377
|
-
const embeddingResult = await loadEmbeddingModel({ verbose });
|
|
1378
|
-
if (embeddingResult.success) {
|
|
1379
|
-
embeddingSpinner.succeed(`Embedding model loaded: ${embeddingResult.modelName} (${embeddingResult.dimensions}-dim, ${embeddingResult.loadTime}ms)`);
|
|
1380
|
-
}
|
|
1381
|
-
else {
|
|
1382
|
-
embeddingSpinner.stop(output.warning(`Embedding model: ${embeddingResult.error || 'Using fallback'}`));
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
output.writeln();
|
|
1386
|
-
// Show features enabled with detailed capabilities
|
|
1387
|
-
const featureLines = [
|
|
1388
|
-
`Backend: ${result.backend}`,
|
|
1389
|
-
`Schema Version: ${result.schemaVersion}`,
|
|
1390
|
-
`Database Path: ${result.dbPath}`,
|
|
1391
|
-
'',
|
|
1392
|
-
output.bold('Features:'),
|
|
1393
|
-
` Vector Embeddings: ${result.features.vectorEmbeddings ? output.success('✓ Enabled') : output.dim('✗ Disabled')}`,
|
|
1394
|
-
` Pattern Learning: ${result.features.patternLearning ? output.success('✓ Enabled') : output.dim('✗ Disabled')}`,
|
|
1395
|
-
` Temporal Decay: ${result.features.temporalDecay ? output.success('✓ Enabled') : output.dim('✗ Disabled')}`,
|
|
1396
|
-
` HNSW Indexing: ${result.features.hnswIndexing ? output.success('✓ Enabled') : output.dim('✗ Disabled')}`,
|
|
1397
|
-
` Migration Tracking: ${result.features.migrationTracking ? output.success('✓ Enabled') : output.dim('✗ Disabled')}`
|
|
1398
|
-
];
|
|
1399
|
-
if (verbose) {
|
|
1400
|
-
featureLines.push('', output.bold('HNSW Configuration:'), ` M (connections): 16`, ` ef (construction): 200`, ` ef (search): 100`, ` Metric: cosine`, '', output.bold('Pattern Learning:'), ` Confidence scoring: 0.0 - 1.0`, ` Temporal decay: Half-life 30 days`, ` Pattern versioning: Enabled`, ` Types: task-routing, error-recovery, optimization, coordination, prediction`);
|
|
1401
|
-
}
|
|
1402
|
-
output.printBox(featureLines.join('\n'), 'Configuration');
|
|
1403
|
-
output.writeln();
|
|
1404
|
-
// ADR-053: Show ControllerRegistry activation results
|
|
1405
|
-
if (result.controllers) {
|
|
1406
|
-
const { activated, failed, initTimeMs } = result.controllers;
|
|
1407
|
-
if (activated.length > 0 || failed.length > 0) {
|
|
1408
|
-
const controllerLines = [
|
|
1409
|
-
output.bold('AgentDB Controllers:'),
|
|
1410
|
-
` Activated: ${activated.length} Failed: ${failed.length} Init: ${Math.round(initTimeMs)}ms`,
|
|
1411
|
-
];
|
|
1412
|
-
if (verbose && activated.length > 0) {
|
|
1413
|
-
controllerLines.push('');
|
|
1414
|
-
for (const name of activated) {
|
|
1415
|
-
controllerLines.push(` ${output.success('✓')} ${name}`);
|
|
1416
|
-
}
|
|
1417
|
-
}
|
|
1418
|
-
if (failed.length > 0 && verbose) {
|
|
1419
|
-
controllerLines.push('');
|
|
1420
|
-
for (const name of failed) {
|
|
1421
|
-
controllerLines.push(` ${output.dim('✗')} ${name}`);
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
output.printBox(controllerLines.join('\n'), 'Controller Registry (ADR-053)');
|
|
1425
|
-
output.writeln();
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
// Show tables created
|
|
1429
|
-
if (verbose && result.tablesCreated.length > 0) {
|
|
1430
|
-
output.writeln(output.bold('Tables Created:'));
|
|
1431
|
-
output.printTable({
|
|
1432
|
-
columns: [
|
|
1433
|
-
{ key: 'table', header: 'Table', width: 22 },
|
|
1434
|
-
{ key: 'purpose', header: 'Purpose', width: 38 }
|
|
1435
|
-
],
|
|
1436
|
-
data: [
|
|
1437
|
-
{ table: 'memory_entries', purpose: 'Core memory storage with embeddings' },
|
|
1438
|
-
{ table: 'patterns', purpose: 'Learned patterns with confidence scores' },
|
|
1439
|
-
{ table: 'pattern_history', purpose: 'Pattern versioning and evolution' },
|
|
1440
|
-
{ table: 'trajectories', purpose: 'SONA learning trajectories' },
|
|
1441
|
-
{ table: 'trajectory_steps', purpose: 'Individual trajectory steps' },
|
|
1442
|
-
{ table: 'migration_state', purpose: 'Migration progress tracking' },
|
|
1443
|
-
{ table: 'sessions', purpose: 'Context persistence' },
|
|
1444
|
-
{ table: 'vector_indexes', purpose: 'HNSW index configuration' },
|
|
1445
|
-
{ table: 'metadata', purpose: 'System metadata' }
|
|
1446
|
-
]
|
|
1447
|
-
});
|
|
1448
|
-
output.writeln();
|
|
1449
|
-
output.writeln(output.bold('Indexes Created:'));
|
|
1450
|
-
output.printList(result.indexesCreated.slice(0, 8).map(idx => output.dim(idx)));
|
|
1451
|
-
if (result.indexesCreated.length > 8) {
|
|
1452
|
-
output.writeln(output.dim(` ... and ${result.indexesCreated.length - 8} more`));
|
|
1453
|
-
}
|
|
1454
|
-
output.writeln();
|
|
1455
|
-
}
|
|
1456
|
-
// Run verification if enabled
|
|
1457
|
-
if (verify) {
|
|
1458
|
-
const verifySpinner = output.createSpinner({ text: 'Verifying initialization...', spinner: 'dots' });
|
|
1459
|
-
verifySpinner.start();
|
|
1460
|
-
const verification = await verifyMemoryInit(result.dbPath, { verbose });
|
|
1461
|
-
if (verification.success) {
|
|
1462
|
-
verifySpinner.succeed(`Verification passed (${verification.summary.passed}/${verification.summary.total} tests)`);
|
|
1463
|
-
}
|
|
1464
|
-
else {
|
|
1465
|
-
verifySpinner.fail(`Verification failed (${verification.summary.failed}/${verification.summary.total} tests failed)`);
|
|
1466
|
-
}
|
|
1467
|
-
if (verbose || !verification.success) {
|
|
1468
|
-
output.writeln();
|
|
1469
|
-
output.writeln(output.bold('Verification Results:'));
|
|
1470
|
-
output.printTable({
|
|
1471
|
-
columns: [
|
|
1472
|
-
{ key: 'status', header: '', width: 3 },
|
|
1473
|
-
{ key: 'name', header: 'Test', width: 22 },
|
|
1474
|
-
{ key: 'details', header: 'Details', width: 30 },
|
|
1475
|
-
{ key: 'duration', header: 'Time', width: 8, align: 'right' }
|
|
1476
|
-
],
|
|
1477
|
-
data: verification.tests.map(t => ({
|
|
1478
|
-
status: t.passed ? output.success('✓') : output.error('✗'),
|
|
1479
|
-
name: t.name,
|
|
1480
|
-
details: t.details || '',
|
|
1481
|
-
duration: t.duration ? `${t.duration}ms` : '-'
|
|
1482
|
-
}))
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
output.writeln();
|
|
1486
|
-
}
|
|
1487
|
-
// Show next steps
|
|
1488
|
-
output.writeln(output.bold('Next Steps:'));
|
|
1489
|
-
output.printList([
|
|
1490
|
-
`Store data: ${output.highlight('monomind memory store -k "key" --value "data"')}`,
|
|
1491
|
-
`Search: ${output.highlight('monomind memory search -q "query"')}`,
|
|
1492
|
-
`Train patterns: ${output.highlight('monomind neural train -p coordination')}`,
|
|
1493
|
-
`View stats: ${output.highlight('monomind memory stats')}`
|
|
1494
|
-
]);
|
|
1495
|
-
// Also sync to .claude directory
|
|
1496
|
-
const fs = await import('fs');
|
|
1497
|
-
const path = await import('path');
|
|
1498
|
-
const claudeDir = path.join(process.cwd(), '.claude');
|
|
1499
|
-
const claudeDbPath = path.join(claudeDir, 'memory.db');
|
|
1500
|
-
if (!fs.existsSync(claudeDir)) {
|
|
1501
|
-
fs.mkdirSync(claudeDir, { recursive: true });
|
|
1502
|
-
}
|
|
1503
|
-
if (fs.existsSync(result.dbPath) && (!fs.existsSync(claudeDbPath) || force)) {
|
|
1504
|
-
fs.copyFileSync(result.dbPath, claudeDbPath);
|
|
1505
|
-
output.writeln();
|
|
1506
|
-
output.writeln(output.dim(`Synced to: ${claudeDbPath}`));
|
|
1507
|
-
}
|
|
1508
|
-
// Fix #1428: ONNX worker threads keep the event loop alive after init.
|
|
1509
|
-
// Force-exit after a short delay to allow final I/O to flush.
|
|
1510
|
-
if (typeof globalThis !== 'undefined') {
|
|
1511
|
-
setTimeout(() => {
|
|
1512
|
-
process.exit(0);
|
|
1513
|
-
}, 500).unref();
|
|
1514
|
-
}
|
|
1515
|
-
return {
|
|
1516
|
-
success: true,
|
|
1517
|
-
data: result
|
|
1518
|
-
};
|
|
1519
|
-
}
|
|
1520
|
-
catch (error) {
|
|
1521
|
-
spinner.fail('Initialization failed');
|
|
1522
|
-
output.printError(`Failed to initialize memory: ${error instanceof Error ? error.message : String(error)}`);
|
|
1523
|
-
return { success: false, exitCode: 1 };
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
};
|
|
1527
|
-
// Main memory command
|
|
1528
|
-
export const memoryCommand = {
|
|
1529
|
-
name: 'memory',
|
|
1530
|
-
description: 'Memory management commands',
|
|
1531
|
-
subcommands: [initMemoryCommand, storeCommand, editCommand, retrieveCommand, searchCommand, listCommand, deleteCommand, templatesCommand, statsCommand, configureCommand, cleanupCommand, compressCommand, exportCommand, importCommand],
|
|
1532
|
-
options: [],
|
|
1533
|
-
examples: [
|
|
1534
|
-
{ command: 'monomind memory store -k "key" -v "value"', description: 'Store data' },
|
|
1535
|
-
{ command: 'monomind memory search -q "auth patterns"', description: 'Search memory' },
|
|
1536
|
-
{ command: 'monomind memory stats', description: 'Show statistics' }
|
|
1537
|
-
],
|
|
1538
|
-
action: async (ctx) => {
|
|
1539
|
-
output.writeln();
|
|
1540
|
-
output.writeln(output.bold('Memory Management Commands'));
|
|
1541
|
-
output.writeln();
|
|
1542
|
-
output.writeln('Usage: monomind memory <subcommand> [options]');
|
|
1543
|
-
output.writeln();
|
|
1544
|
-
output.writeln('Subcommands:');
|
|
1545
|
-
output.printList([
|
|
1546
|
-
`${output.highlight('init')} - Initialize memory database (sql.js)`,
|
|
1547
|
-
`${output.highlight('store')} - Store data in memory`,
|
|
1548
|
-
`${output.highlight('edit')} - Edit an entry (AgentDB, palace, knowledge)`,
|
|
1549
|
-
`${output.highlight('retrieve')} - Retrieve data from memory`,
|
|
1550
|
-
`${output.highlight('search')} - Semantic/vector search`,
|
|
1551
|
-
`${output.highlight('list')} - List memory entries`,
|
|
1552
|
-
`${output.highlight('delete')} - Delete an entry (AgentDB, palace, knowledge)`,
|
|
1553
|
-
`${output.highlight('templates')} - Show best-practice entry templates`,
|
|
1554
|
-
`${output.highlight('stats')} - Show statistics`,
|
|
1555
|
-
`${output.highlight('configure')} - Configure backend`,
|
|
1556
|
-
`${output.highlight('cleanup')} - Clean expired entries`,
|
|
1557
|
-
`${output.highlight('compress')} - Compress database`,
|
|
1558
|
-
`${output.highlight('export')} - Export memory to file`,
|
|
1559
|
-
`${output.highlight('import')} - Import from file`
|
|
1560
|
-
]);
|
|
1561
|
-
return { success: true };
|
|
1562
|
-
}
|
|
1563
|
-
};
|
|
1564
|
-
export default memoryCommand;
|
|
1565
|
-
//# sourceMappingURL=memory.js.map
|