monomind 1.10.56 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/core/coordinator.md +71 -0
- package/.claude/agents/generated/case-analyst.md +50 -0
- package/.claude/agents/generated/copy-editor.md +45 -0
- package/.claude/agents/generated/court-reporter.md +50 -0
- package/.claude/agents/generated/defender.md +51 -0
- package/.claude/agents/generated/editor-in-chief.md +45 -0
- package/.claude/agents/generated/fact-checker.md +45 -0
- package/.claude/agents/generated/judge.md +51 -0
- package/.claude/agents/generated/prosecutor.md +51 -0
- package/.claude/agents/generated/reporter.md +45 -0
- package/.claude/commands/hooks/README.md +1 -1
- package/.claude/commands/hooks/overview.md +1 -1
- package/.claude/commands/mastermind/_repeat.md +1 -1
- package/.claude/commands/mastermind/do.md +3 -1
- package/.claude/commands/mastermind/help.md +2 -2
- package/.claude/commands/mastermind/master.md +39 -6
- package/.claude/commands/mastermind/memory.md +1 -1
- package/.claude/commands/memory/memory-search.md +2 -2
- package/.claude/commands/monitoring/status.md +1 -1
- package/.claude/commands/{browse.md → monobrowse.md} +2 -2
- package/.claude/commands/sparc.md +1 -1
- package/.claude/helpers/handlers/graph-status-handler.cjs +1 -1
- package/.claude/helpers/loop-tracker.cjs +1 -1
- package/.claude/scheduled_tasks.lock +1 -1
- package/.claude/skills/agent-browser-testing/SKILL.md +1 -1
- package/.claude/skills/hooks-automation/SKILL.md +0 -3
- package/.claude/skills/mastermind/build.md +1 -1
- package/.claude/skills/mastermind/code-quality-reviewer-prompt.md +60 -0
- package/.claude/skills/mastermind/content.md +1 -1
- package/.claude/skills/mastermind/createorg.md +79 -2
- package/.claude/skills/mastermind/design.md +3 -1
- package/.claude/skills/mastermind/finance.md +1 -1
- package/.claude/skills/mastermind/implementer-prompt.md +109 -0
- package/.claude/skills/mastermind/marketing.md +1 -1
- package/.claude/skills/mastermind/ops.md +1 -1
- package/.claude/skills/mastermind/plan.md +20 -2
- package/.claude/skills/mastermind/release.md +1 -1
- package/.claude/skills/mastermind/research.md +1 -1
- package/.claude/skills/mastermind/review.md +1 -1
- package/.claude/skills/mastermind/sales.md +1 -1
- package/.claude/skills/mastermind/spec-reviewer-prompt.md +63 -0
- package/.claude/skills/sparc-methodology/SKILL.md +3 -3
- package/.claude/skills/swarm-advanced/SKILL.md +1 -4
- package/.claude-plugin/README.md +1 -2
- package/.claude-plugin/docs/PLUGIN_SUMMARY.md +0 -1
- package/README.md +18 -32
- package/package.json +1 -1
- package/packages/@monomind/cli/README.md +18 -32
- package/packages/@monomind/cli/dist/src/agents/registry-builder.d.ts +1 -7
- package/packages/@monomind/cli/dist/src/agents/registry-builder.js +10 -6
- package/packages/@monomind/cli/dist/src/benchmarks/benchmark-runner.d.ts +59 -12
- package/packages/@monomind/cli/dist/src/benchmarks/benchmark-runner.js +67 -13
- package/packages/@monomind/cli/dist/src/benchmarks/pretrain/index.d.ts +0 -13
- package/packages/@monomind/cli/dist/src/commands/agent-wasm.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/commands/agent-wasm.js +5 -5
- package/packages/@monomind/cli/dist/src/commands/agent.js +1 -6
- package/packages/@monomind/cli/dist/src/commands/analyze.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/commands/analyze.js +8 -18
- package/packages/@monomind/cli/dist/src/commands/doctor.js +53 -3
- package/packages/@monomind/cli/dist/src/commands/embeddings.js +9 -33
- package/packages/@monomind/cli/dist/src/commands/hooks.js +24 -76
- package/packages/@monomind/cli/dist/src/commands/index.d.ts +4 -6
- package/packages/@monomind/cli/dist/src/commands/index.js +8 -15
- package/packages/@monomind/cli/dist/src/commands/init.js +2 -2
- package/packages/@monomind/cli/dist/src/commands/issues.js +16 -11
- package/packages/@monomind/cli/dist/src/commands/mcp.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/commands/memory.js +6 -6
- package/packages/@monomind/cli/dist/src/commands/migrate.js +1 -2
- package/packages/@monomind/cli/dist/src/commands/monograph.js +18 -11
- package/packages/@monomind/cli/dist/src/commands/monovector/backup.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/backup.js +25 -25
- package/packages/@monomind/cli/dist/src/commands/monovector/benchmark.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/benchmark.js +14 -14
- package/packages/@monomind/cli/dist/src/commands/monovector/import.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/import.js +21 -21
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/index.d.ts +6 -6
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/index.js +22 -22
- package/packages/@monomind/cli/dist/src/commands/monovector/init.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/init.js +36 -36
- package/packages/@monomind/cli/dist/src/commands/monovector/migrate.d.ts +11 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/migrate.js +16 -16
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/optimize.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/optimize.js +10 -10
- package/packages/@monomind/cli/dist/src/commands/monovector/setup.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/setup.js +77 -77
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/status.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/commands/{ruvector → monovector}/status.js +34 -34
- package/packages/@monomind/cli/dist/src/commands/neural.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/commands/neural.js +31 -608
- package/packages/@monomind/cli/dist/src/commands/performance.js +7 -10
- package/packages/@monomind/cli/dist/src/commands/plugins.js +3 -4
- package/packages/@monomind/cli/dist/src/commands/process.js +5 -12
- package/packages/@monomind/cli/dist/src/commands/progress.js +16 -16
- package/packages/@monomind/cli/dist/src/commands/route.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/commands/route.js +23 -23
- package/packages/@monomind/cli/dist/src/commands/status.js +0 -3
- package/packages/@monomind/cli/dist/src/commands/swarm.js +2 -3
- package/packages/@monomind/cli/dist/src/commands/update.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/config-adapter.js +27 -0
- package/packages/@monomind/cli/dist/src/consensus/audit-writer.d.ts +44 -17
- package/packages/@monomind/cli/dist/src/dlq/dlq-replayer.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/index.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/index.js +5 -5
- package/packages/@monomind/cli/dist/src/init/claudemd-generator.js +10 -14
- package/packages/@monomind/cli/dist/src/init/executor.js +17 -27
- package/packages/@monomind/cli/dist/src/init/helpers-generator.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/init/helpers-generator.js +2 -2
- package/packages/@monomind/cli/dist/src/init/types.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-client.js +1 -7
- package/packages/@monomind/cli/dist/src/mcp-server.js +9 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/agent-tools.js +1 -52
- package/packages/@monomind/cli/dist/src/mcp-tools/analyze-tools.js +5 -5
- package/packages/@monomind/cli/dist/src/mcp-tools/auto-install.d.ts +4 -4
- package/packages/@monomind/cli/dist/src/mcp-tools/autopilot-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/browser-tools.js +6 -5
- package/packages/@monomind/cli/dist/src/mcp-tools/claims-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/coordination-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/coordination-tools.js +51 -54
- package/packages/@monomind/cli/dist/src/mcp-tools/daa-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/embeddings-tools.js +10 -10
- package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/guidance-tools.js +0 -24
- package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.js +189 -446
- package/packages/@monomind/cli/dist/src/mcp-tools/index.d.ts +0 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/index.js +0 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.d.ts +334 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-compat.js +1108 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.js +76 -34
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.js +2 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/progress-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/ruvllm-tools.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/mcp-tools/ruvllm-tools.js +3 -3
- package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/terminal-tools.js +29 -19
- package/packages/@monomind/cli/dist/src/mcp-tools/transfer-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/mcp-tools/wasm-agent-tools.js +2 -2
- package/packages/@monomind/cli/dist/src/memory/intelligence.js +14 -8
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.d.ts +17 -2
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +76 -23
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/memory/memory-initializer.js +37 -39
- package/packages/@monomind/cli/dist/src/monovector/capabilities.d.ts +34 -0
- package/packages/@monomind/cli/dist/src/monovector/capabilities.js +37 -0
- package/packages/@monomind/cli/dist/src/monovector/command-outcomes.d.ts +37 -0
- package/packages/@monomind/cli/dist/src/monovector/command-outcomes.js +87 -0
- package/packages/@monomind/cli/dist/src/monovector/coverage-router.d.ts +103 -0
- package/packages/@monomind/cli/dist/src/monovector/coverage-router.js +337 -0
- package/packages/@monomind/cli/dist/src/monovector/coverage-tools.d.ts +14 -0
- package/packages/@monomind/cli/dist/src/monovector/coverage-tools.js +112 -0
- package/packages/@monomind/cli/dist/src/{ruvector → monovector}/diff-classifier.d.ts +2 -2
- package/packages/@monomind/cli/dist/src/monovector/index.d.ts +61 -0
- package/packages/@monomind/cli/dist/src/monovector/index.js +67 -0
- package/packages/@monomind/cli/dist/src/monovector/init-state.d.ts +35 -0
- package/packages/@monomind/cli/dist/src/monovector/init-state.js +36 -0
- package/packages/@monomind/cli/dist/src/monovector/route-outcomes.d.ts +55 -0
- package/packages/@monomind/cli/dist/src/monovector/route-outcomes.js +137 -0
- package/packages/@monomind/cli/dist/src/parser.js +3 -3
- package/packages/@monomind/cli/dist/src/plugins/store/discovery.js +0 -31
- package/packages/@monomind/cli/dist/src/production/circuit-breaker.d.ts +26 -6
- package/packages/@monomind/cli/dist/src/production/error-handler.d.ts +55 -30
- package/packages/@monomind/cli/dist/src/production/index.d.ts +3 -20
- package/packages/@monomind/cli/dist/src/production/index.js +3 -15
- package/packages/@monomind/cli/dist/src/production/monitoring.d.ts +54 -34
- package/packages/@monomind/cli/dist/src/production/monitoring.js +12 -14
- package/packages/@monomind/cli/dist/src/production/rate-limiter.d.ts +64 -19
- package/packages/@monomind/cli/dist/src/production/rate-limiter.js +5 -5
- package/packages/@monomind/cli/dist/src/production/retry.js +4 -2
- package/packages/@monomind/cli/dist/src/runtime/headless.d.ts +3 -3
- package/packages/@monomind/cli/dist/src/services/claim-service.d.ts +50 -59
- package/packages/@monomind/cli/dist/src/services/claim-service.js +83 -50
- package/packages/@monomind/cli/dist/src/services/config-file-manager.js +8 -1
- package/packages/@monomind/cli/dist/src/services/worker-daemon.js +4 -0
- package/packages/@monomind/cli/dist/src/transfer/ipfs/upload.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/transfer/storage/gcs.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/types.d.ts +13 -0
- package/packages/@monomind/cli/dist/src/update/checker.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/update/index.d.ts +1 -1
- package/packages/@monomind/cli/package.json +13 -13
- package/packages/@monomind/guidance/dist/index.d.ts +1 -1
- package/packages/@monomind/guidance/dist/index.js +1 -1
- package/packages/@monomind/guidance/package.json +1 -2
- package/scripts/build-monovector.sh +10 -0
- package/scripts/publish-monovector.sh +20 -0
- package/.claude/commands/monomind/adr.md +0 -11
- package/.claude/commands/monomind/budget.md +0 -7
- package/.claude/commands/monomind/createtask.md +0 -277
- package/.claude/commands/monomind/do.md +0 -498
- package/.claude/commands/monomind/graph-status.md +0 -7
- package/.claude/commands/monomind/help.md +0 -118
- package/.claude/commands/monomind/idea.md +0 -273
- package/.claude/commands/monomind/improve.md +0 -352
- package/.claude/commands/monomind/loops.md +0 -7
- package/.claude/commands/monomind/memory.md +0 -230
- package/.claude/commands/monomind/repeat.md +0 -257
- package/.claude/commands/monomind/review.md +0 -317
- package/.claude/commands/monomind/specialagents.md +0 -125
- package/.claude/commands/monomind/swarm.md +0 -161
- package/.claude/commands/monomind/understand.md +0 -139
- package/.claude/commands/training/README.md +0 -39
- package/.claude/commands/training/neural-patterns.md +0 -73
- package/.claude/commands/training/neural-train.md +0 -79
- package/packages/@monomind/cli/dist/src/commands/appliance-advanced.d.ts +0 -9
- package/packages/@monomind/cli/dist/src/commands/appliance-advanced.js +0 -238
- 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/ruvector/backup.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/benchmark.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/import.d.ts +0 -18
- package/packages/@monomind/cli/dist/src/commands/ruvector/init.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/migrate.d.ts +0 -11
- package/packages/@monomind/cli/dist/src/commands/ruvector/setup.d.ts +0 -18
- 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 -539
- 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/enhanced-model-router.d.ts +0 -146
- package/packages/@monomind/cli/dist/src/ruvector/enhanced-model-router.js +0 -551
- 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 -56
- package/packages/@monomind/cli/dist/src/ruvector/index.js +0 -58
- 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 -222
- package/packages/@monomind/cli/dist/src/ruvector/model-router.js +0 -512
- package/packages/@monomind/cli/dist/src/ruvector/moe-router.d.ts +0 -213
- package/packages/@monomind/cli/dist/src/ruvector/moe-router.js +0 -649
- package/packages/@monomind/cli/dist/src/ruvector/q-learning-router.d.ts +0 -217
- package/packages/@monomind/cli/dist/src/ruvector/q-learning-router.js +0 -712
- 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/ruvector-training.d.ts +0 -222
- package/packages/@monomind/cli/dist/src/services/ruvector-training.js +0 -696
- /package/packages/@monomind/cli/dist/src/{ruvector → monovector}/diff-classifier.js +0 -0
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Coordination MCP Tools for CLI
|
|
3
|
-
*
|
|
4
|
-
* V2 Compatibility - Swarm coordination and orchestration tools
|
|
5
|
-
*
|
|
6
|
-
* ⚠️ IMPORTANT: These tools provide LOCAL STATE MANAGEMENT.
|
|
7
|
-
* - Topology/consensus state is tracked locally
|
|
8
|
-
* - No actual distributed coordination
|
|
9
|
-
* - Useful for single-machine workflow orchestration
|
|
10
|
-
*/
|
|
11
1
|
import { getProjectCwd } from './types.js';
|
|
12
2
|
import { existsSync, readFileSync, writeFileSync, renameSync, mkdirSync } from 'node:fs';
|
|
13
3
|
import { join } from 'node:path';
|
|
@@ -82,8 +72,9 @@ export const coordinationTools = [
|
|
|
82
72
|
},
|
|
83
73
|
},
|
|
84
74
|
handler: async (input) => {
|
|
75
|
+
const args = input;
|
|
85
76
|
const store = loadCoordStore();
|
|
86
|
-
const action =
|
|
77
|
+
const action = args.action || 'get';
|
|
87
78
|
if (action === 'get') {
|
|
88
79
|
return {
|
|
89
80
|
success: true,
|
|
@@ -93,14 +84,14 @@ export const coordinationTools = [
|
|
|
93
84
|
};
|
|
94
85
|
}
|
|
95
86
|
if (action === 'set') {
|
|
96
|
-
if (
|
|
97
|
-
store.topology.type =
|
|
98
|
-
if (
|
|
99
|
-
store.topology.maxNodes =
|
|
100
|
-
if (
|
|
101
|
-
store.topology.redundancy =
|
|
102
|
-
if (
|
|
103
|
-
store.topology.consensusAlgorithm =
|
|
87
|
+
if (args.type)
|
|
88
|
+
store.topology.type = args.type;
|
|
89
|
+
if (args.maxNodes)
|
|
90
|
+
store.topology.maxNodes = args.maxNodes;
|
|
91
|
+
if (args.redundancy)
|
|
92
|
+
store.topology.redundancy = args.redundancy;
|
|
93
|
+
if (args.consensusAlgorithm)
|
|
94
|
+
store.topology.consensusAlgorithm = args.consensusAlgorithm;
|
|
104
95
|
saveCoordStore(store);
|
|
105
96
|
return {
|
|
106
97
|
success: true,
|
|
@@ -150,8 +141,9 @@ export const coordinationTools = [
|
|
|
150
141
|
},
|
|
151
142
|
},
|
|
152
143
|
handler: async (input) => {
|
|
144
|
+
const args = input;
|
|
153
145
|
const store = loadCoordStore();
|
|
154
|
-
const action =
|
|
146
|
+
const action = args.action || 'get';
|
|
155
147
|
if (action === 'get') {
|
|
156
148
|
const nodes = Object.values(store.nodes);
|
|
157
149
|
const avgLoad = nodes.length > 0
|
|
@@ -169,10 +161,10 @@ export const coordinationTools = [
|
|
|
169
161
|
};
|
|
170
162
|
}
|
|
171
163
|
if (action === 'set') {
|
|
172
|
-
if (
|
|
173
|
-
store.loadBalance.algorithm =
|
|
174
|
-
if (
|
|
175
|
-
store.loadBalance.weights =
|
|
164
|
+
if (args.algorithm)
|
|
165
|
+
store.loadBalance.algorithm = args.algorithm;
|
|
166
|
+
if (args.weights)
|
|
167
|
+
store.loadBalance.weights = args.weights;
|
|
176
168
|
saveCoordStore(store);
|
|
177
169
|
return {
|
|
178
170
|
success: true,
|
|
@@ -181,7 +173,7 @@ export const coordinationTools = [
|
|
|
181
173
|
};
|
|
182
174
|
}
|
|
183
175
|
if (action === 'distribute') {
|
|
184
|
-
const task =
|
|
176
|
+
const task = args.task;
|
|
185
177
|
const nodes = Object.values(store.nodes).filter(n => n.status === 'active');
|
|
186
178
|
if (nodes.length === 0) {
|
|
187
179
|
return { success: false, error: 'No active nodes available' };
|
|
@@ -228,8 +220,9 @@ export const coordinationTools = [
|
|
|
228
220
|
},
|
|
229
221
|
},
|
|
230
222
|
handler: async (input) => {
|
|
223
|
+
const args = input;
|
|
231
224
|
const store = loadCoordStore();
|
|
232
|
-
const action =
|
|
225
|
+
const action = args.action || 'status';
|
|
233
226
|
if (action === 'status') {
|
|
234
227
|
const timeSinceSync = Date.now() - new Date(store.sync.lastSync).getTime();
|
|
235
228
|
return {
|
|
@@ -255,7 +248,7 @@ export const coordinationTools = [
|
|
|
255
248
|
};
|
|
256
249
|
}
|
|
257
250
|
if (action === 'resolve') {
|
|
258
|
-
const strategy =
|
|
251
|
+
const strategy = args.conflictResolution || 'latest';
|
|
259
252
|
if (store.sync.conflicts > 0) {
|
|
260
253
|
const resolved = store.sync.conflicts;
|
|
261
254
|
store.sync.conflicts = 0;
|
|
@@ -289,8 +282,9 @@ export const coordinationTools = [
|
|
|
289
282
|
},
|
|
290
283
|
},
|
|
291
284
|
handler: async (input) => {
|
|
285
|
+
const args = input;
|
|
292
286
|
const store = loadCoordStore();
|
|
293
|
-
const action =
|
|
287
|
+
const action = args.action || 'list';
|
|
294
288
|
if (action === 'list') {
|
|
295
289
|
const nodes = Object.values(store.nodes);
|
|
296
290
|
return {
|
|
@@ -309,7 +303,7 @@ export const coordinationTools = [
|
|
|
309
303
|
const MAX_NODES = 1000;
|
|
310
304
|
const MAX_NODE_ID_LEN = 200;
|
|
311
305
|
if (action === 'add') {
|
|
312
|
-
const nodeId =
|
|
306
|
+
const nodeId = args.nodeId || `node-${Date.now()}`;
|
|
313
307
|
if (typeof nodeId !== 'string' || nodeId.length === 0 || nodeId.length > MAX_NODE_ID_LEN) {
|
|
314
308
|
return { success: false, error: 'Invalid nodeId' };
|
|
315
309
|
}
|
|
@@ -336,7 +330,7 @@ export const coordinationTools = [
|
|
|
336
330
|
};
|
|
337
331
|
}
|
|
338
332
|
if (action === 'remove') {
|
|
339
|
-
const nodeId =
|
|
333
|
+
const nodeId = args.nodeId;
|
|
340
334
|
// Match the `add` denylist + Object.hasOwn so a tampered store.json
|
|
341
335
|
// can't have its inherited Object.prototype slots exposed via remove.
|
|
342
336
|
if (typeof nodeId !== 'string' || nodeId.length === 0 || nodeId.length > MAX_NODE_ID_LEN ||
|
|
@@ -356,7 +350,7 @@ export const coordinationTools = [
|
|
|
356
350
|
};
|
|
357
351
|
}
|
|
358
352
|
if (action === 'heartbeat') {
|
|
359
|
-
const nodeId =
|
|
353
|
+
const nodeId = args.nodeId;
|
|
360
354
|
if (!nodeId || typeof nodeId !== 'string' || ['__proto__', 'constructor', 'prototype'].includes(nodeId)) {
|
|
361
355
|
return {
|
|
362
356
|
success: false,
|
|
@@ -398,9 +392,10 @@ export const coordinationTools = [
|
|
|
398
392
|
},
|
|
399
393
|
},
|
|
400
394
|
handler: async (input) => {
|
|
395
|
+
const args = input;
|
|
401
396
|
const store = loadCoordStore();
|
|
402
|
-
const action =
|
|
403
|
-
const strategy =
|
|
397
|
+
const action = args.action || 'status';
|
|
398
|
+
const strategy = args.strategy || 'raft';
|
|
404
399
|
const nodeCount = Object.keys(store.nodes).length || 1;
|
|
405
400
|
// Initialize consensus storage in the coordination store if missing
|
|
406
401
|
if (!store.consensus) {
|
|
@@ -421,9 +416,9 @@ export const coordinationTools = [
|
|
|
421
416
|
return Math.floor(total / 2) + 1;
|
|
422
417
|
}
|
|
423
418
|
if (action === 'status') {
|
|
424
|
-
if (
|
|
419
|
+
if (args.proposalId) {
|
|
425
420
|
// Status for specific proposal
|
|
426
|
-
const p = consensus.pending.find(x => x.proposalId ===
|
|
421
|
+
const p = consensus.pending.find(x => x.proposalId === args.proposalId);
|
|
427
422
|
if (p) {
|
|
428
423
|
const votesFor = Object.values(p.votes).filter(v => v).length;
|
|
429
424
|
const votesAgainst = Object.values(p.votes).filter(v => !v).length;
|
|
@@ -439,7 +434,7 @@ export const coordinationTools = [
|
|
|
439
434
|
resolved: false,
|
|
440
435
|
};
|
|
441
436
|
}
|
|
442
|
-
const h = consensus.history.find(x => x.proposalId ===
|
|
437
|
+
const h = consensus.history.find(x => x.proposalId === args.proposalId);
|
|
443
438
|
if (h)
|
|
444
439
|
return { success: true, ...h, resolved: true, historical: true };
|
|
445
440
|
return { success: false, error: 'Proposal not found' };
|
|
@@ -458,8 +453,8 @@ export const coordinationTools = [
|
|
|
458
453
|
}
|
|
459
454
|
if (action === 'propose') {
|
|
460
455
|
const proposalId = `proposal-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
461
|
-
const quorumPreset =
|
|
462
|
-
const term =
|
|
456
|
+
const quorumPreset = args.quorumPreset || 'majority';
|
|
457
|
+
const term = args.term || 1;
|
|
463
458
|
const required = calcRequired(strategy, nodeCount, quorumPreset);
|
|
464
459
|
// Raft: one pending proposal per term
|
|
465
460
|
if (strategy === 'raft') {
|
|
@@ -478,12 +473,12 @@ export const coordinationTools = [
|
|
|
478
473
|
// Validate proposal size and shape — schema only declares object,
|
|
479
474
|
// so without these checks an attacker could submit a 10MB blob 200x
|
|
480
475
|
// and inflate store.json to 2GB on every saveCoordStore.
|
|
481
|
-
if (
|
|
476
|
+
if (args.proposal === null || typeof args.proposal !== 'object' || Array.isArray(args.proposal)) {
|
|
482
477
|
return { success: false, error: 'proposal must be a plain object' };
|
|
483
478
|
}
|
|
484
479
|
let proposalSerialized;
|
|
485
480
|
try {
|
|
486
|
-
proposalSerialized = JSON.stringify(
|
|
481
|
+
proposalSerialized = JSON.stringify(args.proposal);
|
|
487
482
|
}
|
|
488
483
|
catch {
|
|
489
484
|
return { success: false, error: 'proposal contains non-serializable values' };
|
|
@@ -494,8 +489,8 @@ export const coordinationTools = [
|
|
|
494
489
|
consensus.pending.push({
|
|
495
490
|
proposalId,
|
|
496
491
|
type: 'coordination',
|
|
497
|
-
proposal:
|
|
498
|
-
proposedBy:
|
|
492
|
+
proposal: args.proposal,
|
|
493
|
+
proposedBy: args.voterId || 'system',
|
|
499
494
|
proposedAt: new Date().toISOString(),
|
|
500
495
|
votes: {},
|
|
501
496
|
status: 'pending',
|
|
@@ -509,7 +504,7 @@ export const coordinationTools = [
|
|
|
509
504
|
success: true,
|
|
510
505
|
action: 'proposed',
|
|
511
506
|
proposalId,
|
|
512
|
-
proposal:
|
|
507
|
+
proposal: args.proposal,
|
|
513
508
|
strategy,
|
|
514
509
|
status: 'pending',
|
|
515
510
|
required,
|
|
@@ -518,13 +513,13 @@ export const coordinationTools = [
|
|
|
518
513
|
};
|
|
519
514
|
}
|
|
520
515
|
if (action === 'vote') {
|
|
521
|
-
const p = consensus.pending.find(x => x.proposalId ===
|
|
516
|
+
const p = consensus.pending.find(x => x.proposalId === args.proposalId);
|
|
522
517
|
if (!p)
|
|
523
518
|
return { success: false, error: 'Proposal not found or already resolved' };
|
|
524
|
-
const voterId =
|
|
519
|
+
const voterId = args.voterId;
|
|
525
520
|
if (!voterId)
|
|
526
521
|
return { success: false, error: 'voterId is required' };
|
|
527
|
-
const voteValue =
|
|
522
|
+
const voteValue = args.vote === 'accept';
|
|
528
523
|
const pStrategy = p.strategy || 'raft';
|
|
529
524
|
const required = calcRequired(pStrategy, nodeCount, p.quorumPreset);
|
|
530
525
|
// Double-vote prevention
|
|
@@ -607,7 +602,7 @@ export const coordinationTools = [
|
|
|
607
602
|
action: 'voted',
|
|
608
603
|
proposalId: p.proposalId,
|
|
609
604
|
voterId,
|
|
610
|
-
vote:
|
|
605
|
+
vote: args.vote,
|
|
611
606
|
strategy: pStrategy,
|
|
612
607
|
votesFor,
|
|
613
608
|
votesAgainst,
|
|
@@ -620,13 +615,13 @@ export const coordinationTools = [
|
|
|
620
615
|
}
|
|
621
616
|
if (action === 'commit') {
|
|
622
617
|
// Commit is a no-op confirmation for already-resolved proposals
|
|
623
|
-
if (
|
|
624
|
-
const h = consensus.history.find(x => x.proposalId ===
|
|
618
|
+
if (args.proposalId) {
|
|
619
|
+
const h = consensus.history.find(x => x.proposalId === args.proposalId);
|
|
625
620
|
if (h) {
|
|
626
621
|
return {
|
|
627
622
|
success: true,
|
|
628
623
|
action: 'committed',
|
|
629
|
-
proposalId:
|
|
624
|
+
proposalId: args.proposalId,
|
|
630
625
|
result: h.result,
|
|
631
626
|
committedAt: new Date().toISOString(),
|
|
632
627
|
};
|
|
@@ -653,10 +648,11 @@ export const coordinationTools = [
|
|
|
653
648
|
required: ['task'],
|
|
654
649
|
},
|
|
655
650
|
handler: async (input) => {
|
|
651
|
+
const args = input;
|
|
656
652
|
const store = loadCoordStore();
|
|
657
|
-
const task =
|
|
658
|
-
const agents =
|
|
659
|
-
const strategy =
|
|
653
|
+
const task = args.task;
|
|
654
|
+
const agents = args.agents || Object.keys(store.nodes);
|
|
655
|
+
const strategy = args.strategy || 'parallel';
|
|
660
656
|
const orchestrationId = `orch-${Date.now()}`;
|
|
661
657
|
return {
|
|
662
658
|
success: true,
|
|
@@ -682,8 +678,9 @@ export const coordinationTools = [
|
|
|
682
678
|
},
|
|
683
679
|
},
|
|
684
680
|
handler: async (input) => {
|
|
681
|
+
const args = input;
|
|
685
682
|
const store = loadCoordStore();
|
|
686
|
-
const metric =
|
|
683
|
+
const metric = args.metric || 'all';
|
|
687
684
|
const nodes = Object.values(store.nodes);
|
|
688
685
|
const activeNodes = nodes.filter(n => n.status === 'active');
|
|
689
686
|
const metrics = {
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* - No distributed network communication
|
|
9
9
|
* - Useful for workflow orchestration and state tracking
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
11
|
+
import type { MCPTool } from './types.js';
|
|
12
12
|
export declare const daaTools: MCPTool[];
|
|
13
13
|
//# sourceMappingURL=daa-tools.d.ts.map
|
|
@@ -472,7 +472,7 @@ export const embeddingsTools = [
|
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
name: 'embeddings_neural',
|
|
475
|
-
description: '
|
|
475
|
+
description: 'Embedding substrate operations (drift, memory physics, coherence)',
|
|
476
476
|
category: 'embeddings',
|
|
477
477
|
inputSchema: {
|
|
478
478
|
type: 'object',
|
|
@@ -510,7 +510,7 @@ export const embeddingsTools = [
|
|
|
510
510
|
enabled: true,
|
|
511
511
|
driftThreshold: input.driftThreshold || 0.3,
|
|
512
512
|
decayRate: input.decayRate || 0.01,
|
|
513
|
-
|
|
513
|
+
monovector: {
|
|
514
514
|
enabled: true,
|
|
515
515
|
sona: true,
|
|
516
516
|
flashAttention: true,
|
|
@@ -529,7 +529,7 @@ export const embeddingsTools = [
|
|
|
529
529
|
success: true,
|
|
530
530
|
action: 'init',
|
|
531
531
|
neural: config.neural,
|
|
532
|
-
message: '
|
|
532
|
+
message: 'Embedding substrate initialized',
|
|
533
533
|
};
|
|
534
534
|
case 'drift':
|
|
535
535
|
// Get real drift metrics if available
|
|
@@ -586,7 +586,7 @@ export const embeddingsTools = [
|
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
588
|
case 'adapt':
|
|
589
|
-
// Get real
|
|
589
|
+
// Get real (JS) pattern-adaptation metrics
|
|
590
590
|
try {
|
|
591
591
|
const { benchmarkAdaptation, initializeIntelligence } = await import('../memory/intelligence.js');
|
|
592
592
|
await initializeIntelligence();
|
|
@@ -604,8 +604,8 @@ export const embeddingsTools = [
|
|
|
604
604
|
},
|
|
605
605
|
},
|
|
606
606
|
message: benchmark.targetMet
|
|
607
|
-
? `
|
|
608
|
-
: `
|
|
607
|
+
? `Pattern adaptation: ${(benchmark.avgMs * 1000).toFixed(2)}μs (target <50μs met)`
|
|
608
|
+
: `Pattern adaptation: ${(benchmark.avgMs * 1000).toFixed(2)}μs (target not met)`,
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
611
|
catch {
|
|
@@ -628,7 +628,7 @@ export const embeddingsTools = [
|
|
|
628
628
|
neural: {
|
|
629
629
|
enabled: config.neural.enabled,
|
|
630
630
|
sonaEnabled: stats.sonaEnabled,
|
|
631
|
-
|
|
631
|
+
monovector: config.neural.monovector || { enabled: false },
|
|
632
632
|
features: config.neural.features || {},
|
|
633
633
|
realMetrics: {
|
|
634
634
|
patternsLearned: stats.patternsLearned,
|
|
@@ -642,7 +642,7 @@ export const embeddingsTools = [
|
|
|
642
642
|
},
|
|
643
643
|
},
|
|
644
644
|
capabilities: [
|
|
645
|
-
stats.sonaEnabled ? '✅
|
|
645
|
+
stats.sonaEnabled ? '✅ Pattern logging active' : '❌ Pattern logging inactive',
|
|
646
646
|
benchmark.targetMet ? '✅ <0.05ms Target Met' : '⚠️ Target Not Met',
|
|
647
647
|
`${stats.patternsLearned} patterns learned`,
|
|
648
648
|
`${stats.trajectoriesRecorded} trajectories recorded`,
|
|
@@ -655,7 +655,7 @@ export const embeddingsTools = [
|
|
|
655
655
|
action: 'status',
|
|
656
656
|
neural: {
|
|
657
657
|
enabled: config.neural.enabled,
|
|
658
|
-
|
|
658
|
+
monovector: config.neural.monovector || { enabled: false },
|
|
659
659
|
features: config.neural.features || {},
|
|
660
660
|
},
|
|
661
661
|
message: 'Intelligence module not available - showing config only',
|
|
@@ -802,7 +802,7 @@ export const embeddingsTools = [
|
|
|
802
802
|
hyperbolic: config.hyperbolic,
|
|
803
803
|
neural: {
|
|
804
804
|
enabled: config.neural.enabled,
|
|
805
|
-
|
|
805
|
+
monovector: config.neural.monovector?.enabled ?? false,
|
|
806
806
|
},
|
|
807
807
|
},
|
|
808
808
|
paths: {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Helps the system navigate Monomind's capabilities by providing structured
|
|
5
5
|
* discovery of tools, commands, agents, skills, and recommended workflows.
|
|
6
6
|
*
|
|
7
|
-
* @module @
|
|
7
|
+
* @module @monomind/cli/mcp-tools/guidance
|
|
8
8
|
*/
|
|
9
9
|
import { type MCPTool } from './types.js';
|
|
10
10
|
/**
|
|
@@ -161,24 +161,6 @@ const CAPABILITY_CATALOG = {
|
|
|
161
161
|
skills: ['agentdb-vector-search', 'agentdb-optimization'],
|
|
162
162
|
whenToUse: 'When you need semantic search, document embedding, or vector similarity operations.',
|
|
163
163
|
},
|
|
164
|
-
'wasm-agents': {
|
|
165
|
-
name: 'WASM Sandboxed Agents',
|
|
166
|
-
description: 'Sandboxed AI agents running in WebAssembly with virtual filesystem, no OS access.',
|
|
167
|
-
tools: ['wasm_agent_create', 'wasm_agent_prompt', 'wasm_agent_tool', 'wasm_agent_list', 'wasm_agent_terminate', 'wasm_agent_files', 'wasm_agent_export', 'wasm_gallery_list', 'wasm_gallery_search', 'wasm_gallery_create'],
|
|
168
|
-
commands: [],
|
|
169
|
-
agents: [],
|
|
170
|
-
skills: [],
|
|
171
|
-
whenToUse: 'When you need sandboxed agent execution without OS access (safe, isolated environments).',
|
|
172
|
-
},
|
|
173
|
-
'ruvllm-inference': {
|
|
174
|
-
name: 'RuVLLM Inference',
|
|
175
|
-
description: 'WASM-based HNSW routing, SONA instant adaptation, MicroLoRA, chat formatting.',
|
|
176
|
-
tools: ['ruvllm_status', 'ruvllm_hnsw_create', 'ruvllm_sona_create', 'ruvllm_microlora_create', 'ruvllm_chat_format', 'ruvllm_kvcache_create'],
|
|
177
|
-
commands: [],
|
|
178
|
-
agents: [],
|
|
179
|
-
skills: [],
|
|
180
|
-
whenToUse: 'When you need WASM-native HNSW routing, SONA adaptation, or MicroLoRA fine-tuning.',
|
|
181
|
-
},
|
|
182
164
|
'code-analysis': {
|
|
183
165
|
name: 'Code Analysis & Diff',
|
|
184
166
|
description: 'AST analysis, diff classification, coverage routing, dependency graph analysis.',
|
|
@@ -219,7 +201,6 @@ const TASK_ROUTES = [
|
|
|
219
201
|
{ pattern: /\b(release|deploy|publish|version|changelog)\b/i, areas: ['github-integration', 'session-workflow'], workflow: 'release' },
|
|
220
202
|
{ pattern: /\b(swarm|multi.agent|coordin|hive|consensus)\b/i, areas: ['swarm-orchestration', 'hive-mind'], workflow: 'swarm' },
|
|
221
203
|
{ pattern: /\b(learn|train|neural|pattern|sona|lora)\b/i, areas: ['intelligence-learning'], workflow: 'learning' },
|
|
222
|
-
{ pattern: /\b(wasm|sandbox|isolated|gallery)\b/i, areas: ['wasm-agents', 'ruvllm-inference'], workflow: 'wasm' },
|
|
223
204
|
{ pattern: /\b(hook|pre.task|post.task|worker|daemon)\b/i, areas: ['hooks-automation', 'session-workflow'], workflow: 'automation' },
|
|
224
205
|
{ pattern: /\b(config|setup|init|provider|doctor)\b/i, areas: ['config-system'], workflow: 'setup' },
|
|
225
206
|
];
|
|
@@ -279,11 +260,6 @@ const WORKFLOW_TEMPLATES = {
|
|
|
279
260
|
agents: ['sona-learning-optimizer'],
|
|
280
261
|
topology: 'hierarchical',
|
|
281
262
|
},
|
|
282
|
-
wasm: {
|
|
283
|
-
steps: ['Check WASM availability', 'Create sandboxed agent', 'Execute tools in sandbox', 'Export results'],
|
|
284
|
-
agents: [],
|
|
285
|
-
topology: 'hierarchical',
|
|
286
|
-
},
|
|
287
263
|
automation: {
|
|
288
264
|
steps: ['List available hooks/workers', 'Configure hook handlers', 'Dispatch workers', 'Monitor outcomes'],
|
|
289
265
|
agents: [],
|